@giridharan_r/sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deepspot-sdk.esm.js +1392 -0
- package/dist/deepspot-sdk.js +821 -0
- package/dist/html2canvas.esm-CzwMv54K.js +4870 -0
- package/dist/index.d.ts +146 -0
- package/dist/index.es-UxP8a3iB.js +5631 -0
- package/dist/jspdf.es.min-DIdZC3N_.js +8107 -0
- package/dist/purify.es-CuxL4pit.js +471 -0
- package/package.json +40 -0
|
@@ -0,0 +1,821 @@
|
|
|
1
|
+
(function(pa,ms){typeof exports=="object"&&typeof module!="undefined"?ms(exports):typeof define=="function"&&define.amd?define(["exports"],ms):(pa=typeof globalThis!="undefined"?globalThis:pa||self,ms(pa.DeepspotSDK={}))})(this,function(pa){"use strict";class ms{constructor(A,e){this.tokenCache=new Map,this.baseUrl=A.replace(/\/$/,""),this.apiKey=e}async getEmbedToken(A){var i,a,s,o;const e=[A.dashboardId,A.embedType,(i=A.embedLevel)!=null?i:"",(a=A.componentId)!=null?a:"",(s=A.userId)!=null?s:""].join(":"),t=this.tokenCache.get(e);if(t&&t.expiresAt>Date.now()+6e4)return t.token;const n=await this.post("/dashboard-builder/embed-token",{dashboardId:A.dashboardId,embedType:A.embedType,embedLevel:(o=A.embedLevel)!=null?o:"dashboard",componentId:A.componentId,userId:A.userId,tenantId:A.tenantId,expiresIn:3600},{"x-deepspot-api-key":this.apiKey});return this.tokenCache.set(e,{token:n.token,expiresAt:new Date(n.expiresAt).getTime()}),n.token}async getDashboardRender(A,e,t={}){var i;const n=new URLSearchParams({embedType:"dashboard",embedLevel:(i=t.embedLevel)!=null?i:"dashboard"});return t.pageId&&n.set("pageId",t.pageId),t.tabId&&n.set("tabId",t.tabId),t.filters&&Object.entries(t.filters).forEach(([a,s])=>{s!=null&&s!==""&&n.set(`filter[${a}]`,Array.isArray(s)?s.join(","):String(s))}),this.get(`/dashboard-builder/embed/${A}/render?${n}`,{"x-embed-token":e})}async getReportRender(A,e,t,n={}){const i=new URLSearchParams({embedType:"report",embedLevel:"report",componentId:e});return n.filters&&Object.entries(n.filters).forEach(([a,s])=>{s!=null&&s!==""&&i.set(`filter[${a}]`,Array.isArray(s)?s.join(","):String(s))}),this.get(`/dashboard-builder/embed/${A}/render?${i}`,{"x-embed-token":t})}async createApiKey(A,e){return this.post("/dashboard-builder/api-keys",A,{Authorization:`Bearer ${e}`})}async listApiKeys(A){return this.get("/dashboard-builder/api-keys",{Authorization:`Bearer ${A}`})}async deleteApiKey(A,e){await this.delete(`/dashboard-builder/api-keys/${A}`,{Authorization:`Bearer ${e}`})}clearTokenCache(){this.tokenCache.clear()}async get(A,e={}){const t=await fetch(`${this.baseUrl}${A}`,{method:"GET",headers:{"Content-Type":"application/json",...e}});return this.handleResponse(t)}async post(A,e,t={}){const n=await fetch(`${this.baseUrl}${A}`,{method:"POST",headers:{"Content-Type":"application/json",...t},body:JSON.stringify(e)});return this.handleResponse(n)}async delete(A,e={}){const t=await fetch(`${this.baseUrl}${A}`,{method:"DELETE",headers:{"Content-Type":"application/json",...e}});if(!t.ok)throw new Error(`Deepspot SDK: DELETE ${A} failed (${t.status})`)}async handleResponse(A){if(!A.ok){let e=`HTTP ${A.status}`;try{const t=await A.json();e=(t==null?void 0:t.message)||(t==null?void 0:t.error)||e}catch(t){}throw new Error(`Deepspot SDK: ${e}`)}return A.json()}}class Fp{constructor(A){var e,t;this.destroyed=!1,this.refreshTimer=null,this.opts=A,this.filters={...A.activeFilters},this.activePageId=(e=A.activePageId)!=null?e:"",this.activeTabId=(t=A.activeTabId)!=null?t:""}getActiveFilters(){return{...this.filters}}setFilter(A,e){this.filters[A]=e,this.scheduleRefresh()}setFilters(A){Object.assign(this.filters,A),this.scheduleRefresh()}goToPage(A){this.opts.embedType==="dashboard"&&(this.activePageId=A,this.opts.renderer.goToPage(A))}goToTab(A,e){this.opts.embedType==="dashboard"&&(this.activePageId=A,this.activeTabId=e,this.opts.renderer.goToTab(A,e))}async refresh(){if(!this.destroyed)try{const A=await this.fetchData();this.opts.renderer.update(A)}catch(A){console.error("Deepspot SDK: refresh failed",A)}}exportPDF(){this.opts.embedType==="dashboard"&&this.opts.renderer.exportPDF()}destroy(){this.destroyed=!0,this.refreshTimer&&clearTimeout(this.refreshTimer),this.opts.renderer.destroy(),this.opts.apiClient.clearTokenCache()}scheduleRefresh(){this.refreshTimer&&clearTimeout(this.refreshTimer),this.refreshTimer=setTimeout(()=>this.refresh(),300)}async fetchData(){const{apiClient:A,dashboardId:e,componentId:t,token:n,embedType:i,embedLevel:a}=this.opts;return i==="report"&&t?A.getReportRender(e,t,n,{filters:this.filters}):A.getDashboardRender(e,n,{embedLevel:a,pageId:this.activePageId||void 0,tabId:this.activeTabId||void 0,filters:this.filters})}}const Qp=24,Gc=10,va=8;class Up{constructor(A){this.containerWidth=A}get colWidth(){return(this.containerWidth-va*(Qp-1))/Qp}toPx(A){const e=this.colWidth;return{left:A.x*(e+va),top:A.y*(Gc+va),width:A.w*e+(A.w-1)*va,height:A.h*Gc+(A.h-1)*va}}static totalHeight(A){return A.length?Math.max(...A.map(t=>t.y+t.h))*(Gc+va):400}applyStyles(A,e){const t=this.toPx(e);A.style.position="absolute",A.style.left=`${t.left}px`,A.style.top=`${t.top}px`,A.style.width=`${t.width}px`,A.style.height=`${t.height}px`}}class Ep{constructor(A){this.chart=null,this.container=A}render(A,e,t){if(!e||e.length===0){this.renderEmpty(A.title);return}const n=this.buildOptions(A,e,t);if(!n){this.renderEmpty(A.title);return}this.container.innerHTML=`
|
|
2
|
+
<div class="ds-chart-card">
|
|
3
|
+
<div class="ds-chart-title">${A.title||""}</div>
|
|
4
|
+
<div class="ds-chart-body" id="ds-chart-body-${A.id}"></div>
|
|
5
|
+
</div>
|
|
6
|
+
`;const i=this.container.querySelector(`#ds-chart-body-${A.id}`);if(i)try{this.chart&&this.chart.destroy(),this.chart=new ApexCharts(i,n),this.chart.render()}catch(a){i.innerHTML='<div class="ds-chart-empty">Chart render error</div>'}}update(A,e,t){if(!this.chart||!e||e.length===0){this.render(A,e,t);return}const{series:n,categories:i}=this.extractSeriesAndCategories(A,e);try{this.chart.updateOptions({series:n,xaxis:{categories:i},theme:{mode:t}})}catch(a){this.render(A,e,t)}}destroy(){var A;try{(A=this.chart)==null||A.destroy()}catch(e){}this.chart=null}buildOptions(A,e,t){const n=A.type;return n==="pie"||n==="donut"?this.buildPieOptions(A,e,t):n==="bar"||n==="line"||n==="area"?this.buildCartesianOptions(A,e,t):null}buildCartesianOptions(A,e,t){var d;const{series:n,categories:i,xAxisLabel:a,yAxisLabel:s}=this.extractSeriesAndCategories(A,e),o=A.properties||{},u=o.colors?Object.values(o.colors):["#6366f1","#8b5cf6","#ec4899","#f59e0b","#10b981","#3b82f6"],f=t==="dark";return{chart:{type:A.type==="area"?"area":A.type==="line"?"line":"bar",toolbar:{show:!1},background:"transparent",animations:{enabled:!0,speed:400},fontFamily:"inherit"},theme:{mode:t},series:n,xaxis:{categories:i,title:{text:a},labels:{rotate:i.length>10?-45:0,style:{colors:f?"#94a3b8":"#6b7280",fontSize:"11px"}},axisBorder:{color:f?"#334155":"#e5e7eb"},axisTicks:{color:f?"#334155":"#e5e7eb"}},yaxis:{title:{text:s},labels:{style:{colors:f?"#94a3b8":"#6b7280",fontSize:"11px"}}},colors:u,legend:{show:n.length>1||((d=o.showLegend)!=null?d:!1),position:"bottom",labels:{colors:f?"#94a3b8":"#6b7280"}},grid:{borderColor:f?"#1e293b":"#f3f4f6",strokeDashArray:4},tooltip:{theme:t},stroke:{curve:"smooth",width:A.type==="bar"?0:2},fill:A.type==="area"?{type:"gradient",gradient:{shadeIntensity:.5,opacityFrom:.4,opacityTo:0}}:{},dataLabels:{enabled:!1},plotOptions:{bar:{borderRadius:4,distributed:n.length===1}}}}buildPieOptions(A,e,t){const n=A.properties||{},i=e.length>0?Object.keys(e[0]):[],a=i[0]||"label",s=i[1]||"value",o=e.map(p=>{var h;return String((h=p[a])!=null?h:"")}),u=e.map(p=>Number(p[s])||0),f=t==="dark",d=n.colors?Object.values(n.colors):["#6366f1","#8b5cf6","#ec4899","#f59e0b","#10b981","#3b82f6"];return{chart:{type:A.type,toolbar:{show:!1},background:"transparent",fontFamily:"inherit"},theme:{mode:t},series:u,labels:o,colors:d,legend:{position:"bottom",labels:{colors:f?"#94a3b8":"#6b7280"}},tooltip:{theme:t},dataLabels:{enabled:o.length<=8},plotOptions:{pie:{donut:{size:A.type==="donut"?"65%":"0%"}}}}}extractSeriesAndCategories(A,e){const t=A.properties||{},n=e.length>0?Object.keys(e[0]):[],i=t.xAxis||n[0]||"x";let a=[];if(t.selectedYAxisColumn)try{const d=typeof t.selectedYAxisColumn=="string"?JSON.parse(t.selectedYAxisColumn):t.selectedYAxisColumn;Array.isArray(d)&&(a=d.map(p=>typeof p=="string"?{column:p}:p))}catch(d){}if(!a.length&&t.yAxis){const d=t.yAxis;a=(Array.isArray(d)?d:[d]).map(h=>({column:String(h)}))}!a.length&&n.length>1&&(a=n.slice(1).map(d=>({column:d})));const s=e.map(d=>{var p;return String((p=d[i])!=null?p:"")}),o=a.map(d=>({name:d.label||d.column.replace(/_/g," "),data:e.map(p=>{const h=p[d.column];return h!=null?Number(h):null})})),u=t.xAxisLabel||i.replace(/_/g," "),f=t.yAxisLabel||(o.length===1?o[0].name:"Values");return{series:o,categories:s,xAxisLabel:u,yAxisLabel:f}}renderEmpty(A){this.container.innerHTML=`
|
|
7
|
+
<div class="ds-chart-card">
|
|
8
|
+
${A?`<div class="ds-chart-title">${A}</div>`:""}
|
|
9
|
+
<div class="ds-chart-empty">No data available</div>
|
|
10
|
+
</div>
|
|
11
|
+
`}}class xp{render(A,e,t){var u;if(!t||t.length===0){A.innerHTML=`
|
|
12
|
+
<div class="ds-table-card">
|
|
13
|
+
<div class="ds-table-title">${e.title||""}</div>
|
|
14
|
+
<div class="ds-chart-empty">No data available</div>
|
|
15
|
+
</div>
|
|
16
|
+
`;return}const n=Object.keys(t[0]),i=((u=e.properties)==null?void 0:u.columns)||[],a=i.length?i.filter(f=>n.includes(f)):n,s=a.map(f=>`<th>${this.formatHeader(f)}</th>`).join(""),o=t.map(f=>`<tr>${a.map(p=>{const h=f[p];return`<td title="${this.escape(String(h!=null?h:""))}">${this.escape(this.formatValue(h))}</td>`}).join("")}</tr>`).join("");A.innerHTML=`
|
|
17
|
+
<div class="ds-table-card">
|
|
18
|
+
<div class="ds-table-title">${e.title||""}</div>
|
|
19
|
+
<div class="ds-table-scroll">
|
|
20
|
+
<table class="ds-table">
|
|
21
|
+
<thead><tr>${s}</tr></thead>
|
|
22
|
+
<tbody>${o}</tbody>
|
|
23
|
+
</table>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
`}formatHeader(A){return A.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}formatValue(A){return A==null?"—":typeof A=="number"?A%1===0?A.toLocaleString():A.toFixed(2):String(A)}escape(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}class Ip{render(A,e,t){const n=e.properties||{};let i=null;if(t&&t.length>0){const f=t[0],d=n.metric||Object.keys(f)[0];i=f[d]}const a=this.formatValue(i,n),s=n.backgroundColor||"#ffffff",o=n.textColor||"#111827",u=e.title||"";A.innerHTML=`
|
|
27
|
+
<div class="ds-card" style="background:${s}; border-color:${s};">
|
|
28
|
+
<div class="ds-card-label" style="color:${o}; opacity:0.7;">${u}</div>
|
|
29
|
+
<div class="ds-card-value" style="color:${o};">${a}</div>
|
|
30
|
+
</div>
|
|
31
|
+
`}formatValue(A,e){if(A==null)return"—";const t=Number(A);if(isNaN(t))return String(A);const n=(e==null?void 0:e.prefix)||(e==null?void 0:e.currencySymbol)||"",i=(e==null?void 0:e.suffix)||"";let a;return Math.abs(t)>=1e6?a=(t/1e6).toFixed(1)+"M":Math.abs(t)>=1e3?a=(t/1e3).toFixed(1)+"K":a=t%1===0?t.toLocaleString():t.toFixed(2),`${n}${a}${i}`}}class Dm{constructor(A,e){this.currentValues={},this.container=A,this.onFilterChange=e}render(A,e={}){if(!A||A.length===0){this.container.style.display="none";return}this.container.style.display="",this.currentValues={...e},this.container.innerHTML=`<div class="ds-filter-bar">${A.map(t=>this.renderFilter(t,e[t.applyToField||t.filterId])).join("")}</div>`,this.attachListeners(A)}updateValues(A){Object.assign(this.currentValues,A),Object.entries(A).forEach(([e,t])=>{const n=this.container.querySelector(`[data-filter-id="${e}"]`);n&&t!==void 0&&(n.value=String(t))})}renderFilter(A,e){const t=`ds-filter-${A.filterId}`,n=`<label class="ds-filter-label" for="${t}">${A.label}</label>`;switch(A.type){case"dropdown":return`
|
|
32
|
+
<div class="ds-filter-item">
|
|
33
|
+
${n}
|
|
34
|
+
<select class="ds-filter-select" id="${t}" data-filter-id="${A.filterId}">
|
|
35
|
+
<option value="">All</option>
|
|
36
|
+
${(A.options||[]).map(s=>`
|
|
37
|
+
<option value="${this.escAttr(s)}" ${e===s?"selected":""}>
|
|
38
|
+
${this.escText(s)}
|
|
39
|
+
</option>
|
|
40
|
+
`).join("")}
|
|
41
|
+
</select>
|
|
42
|
+
</div>`;case"multi-select":return`
|
|
43
|
+
<div class="ds-filter-item">
|
|
44
|
+
${n}
|
|
45
|
+
<select class="ds-filter-select" id="${t}" data-filter-id="${A.filterId}" multiple size="1">
|
|
46
|
+
${(A.options||[]).map(s=>`
|
|
47
|
+
<option value="${this.escAttr(s)}">${this.escText(s)}</option>
|
|
48
|
+
`).join("")}
|
|
49
|
+
</select>
|
|
50
|
+
</div>`;case"date-range":const i=(e==null?void 0:e.from)||"",a=(e==null?void 0:e.to)||"";return`
|
|
51
|
+
<div class="ds-filter-item">
|
|
52
|
+
${n}
|
|
53
|
+
<div class="ds-date-range-inputs">
|
|
54
|
+
<input type="date" class="ds-filter-input"
|
|
55
|
+
data-filter-id="${A.filterId}" data-date-part="from"
|
|
56
|
+
value="${i}" />
|
|
57
|
+
<span>–</span>
|
|
58
|
+
<input type="date" class="ds-filter-input"
|
|
59
|
+
data-filter-id="${A.filterId}" data-date-part="to"
|
|
60
|
+
value="${a}" />
|
|
61
|
+
</div>
|
|
62
|
+
</div>`;case"text-input":return`
|
|
63
|
+
<div class="ds-filter-item">
|
|
64
|
+
${n}
|
|
65
|
+
<input type="text" class="ds-filter-input" id="${t}"
|
|
66
|
+
data-filter-id="${A.filterId}"
|
|
67
|
+
value="${this.escAttr(String(e!=null?e:""))}"
|
|
68
|
+
placeholder="Search..." />
|
|
69
|
+
</div>`;case"number-input":return`
|
|
70
|
+
<div class="ds-filter-item">
|
|
71
|
+
${n}
|
|
72
|
+
<input type="number" class="ds-filter-input" id="${t}"
|
|
73
|
+
data-filter-id="${A.filterId}"
|
|
74
|
+
value="${this.escAttr(String(e!=null?e:""))}" />
|
|
75
|
+
</div>`;default:return""}}attachListeners(A){const e={};this.container.querySelectorAll("[data-filter-id]").forEach(t=>{const n=t.dataset.filterId,i=t.dataset.datePart,a=A.find(o=>o.filterId===n),s=()=>{let o;if((a==null?void 0:a.type)==="date-range"&&i)e[n]=e[n]||{},e[n][i]=t.value,o={...e[n]};else if((a==null?void 0:a.type)==="multi-select"){const u=t;o=Array.from(u.selectedOptions).map(f=>f.value).filter(Boolean)}else o=t.value;this.currentValues[n]=o,this.onFilterChange(n,o)};t.addEventListener((a==null?void 0:a.type)==="text-input"?"input":"change",s)})}escAttr(A){return A.replace(/"/g,""").replace(/'/g,"'")}escText(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}class Rm{constructor(A,e){this.activePageId="",this.activeTabId="",this.activeFilters={},this.chartRenderers=new Map,this.tableRenderer=new xp,this.cardRenderer=new Ip,this.isLoadingTab=!1,this.root=A,this.opts=e,this.activeFilters={...e.initialFilters}}render(A){var e,t;this.renderData=A,this.activePageId=A.activePage,this.activeTabId=A.activeTab,this.buildShell(),this.renderNavigation(),this.renderFilterBar(),this.renderGrid(),(t=(e=this.opts).onReady)==null||t.call(e)}update(A){this.renderData=A,this.activePageId=A.activePage,this.activeTabId=A.activeTab,this.isLoadingTab=!1,this.syncNavHighlight(),this.updateFilterBar(),this.renderGrid()}goToPage(A){const e=this.getTabsForPage(A)[0];e&&this.triggerTabSwitch(A,e.id)}goToTab(A,e){this.triggerTabSwitch(A,e)}destroy(){this.chartRenderers.forEach(A=>A.destroy()),this.chartRenderers.clear(),this.root.innerHTML=""}exportPDF(){const A=this.root.querySelector("#ds-canvas");A&&Promise.resolve().then(()=>O1).then(({default:e})=>e(A,{scale:2,useCORS:!0}).then(t=>Promise.resolve().then(()=>cU).then(({jsPDF:n})=>{const i=new n({orientation:"landscape",unit:"px"});i.addImage(t.toDataURL("image/png"),"PNG",0,0,i.internal.pageSize.width,0),i.save(`${this.renderData.dashboard.name||"dashboard"}.pdf`)})))}exportCSV(){this.renderData.components.forEach(A=>{const e=this.renderData.data[A.id];if(!(e!=null&&e.length)||!["table","bar","line","area"].includes(A.type))return;const t=Object.keys(e[0]),n=[t.join(","),...e.map(a=>t.map(s=>{var o;return JSON.stringify((o=a[s])!=null?o:"")}).join(","))].join(`
|
|
76
|
+
`);Object.assign(document.createElement("a"),{href:URL.createObjectURL(new Blob([n],{type:"text/csv"})),download:`${A.title||A.id}.csv`}).click()})}updateFilterValues(A){var e;Object.assign(this.activeFilters,A),(e=this.filterRenderer)==null||e.updateValues(A)}buildShell(){const A=this.opts.embedLevel,e=this.renderData.dashboard.pages,t=A==="dashboard"&&e.length>1,n=A==="page"||A==="dashboard";this.root.innerHTML=`
|
|
77
|
+
${this.opts.hideExport?"":'<div class="ds-toolbar" id="ds-toolbar"></div>'}
|
|
78
|
+
${t?'<nav class="ds-page-nav" id="ds-page-nav"></nav>':""}
|
|
79
|
+
${n?'<nav class="ds-page-nav" id="ds-tab-nav"></nav>':""}
|
|
80
|
+
<div id="ds-filter-container"></div>
|
|
81
|
+
<div class="ds-canvas" id="ds-canvas">
|
|
82
|
+
<div class="ds-grid" id="ds-grid"></div>
|
|
83
|
+
</div>
|
|
84
|
+
<div id="ds-tab-loading" style="display:none;position:absolute;inset:0;
|
|
85
|
+
background:rgba(255,255,255,0.5);align-items:center;justify-content:center;">
|
|
86
|
+
<div class="ds-embed-spinner"></div>
|
|
87
|
+
</div>
|
|
88
|
+
`,this.root.style.position="relative",this.opts.hideExport||this.buildExportToolbar();const i=this.root.querySelector("#ds-filter-container");this.filterRenderer=new Dm(i,(a,s)=>{var o,u;this.activeFilters[a]=s,(u=(o=this.opts).onFilterChange)==null||u.call(o,this.activeFilters),this.opts.onTabSwitch(this.activePageId,this.activeTabId)})}buildExportToolbar(){var e,t;const A=this.root.querySelector("#ds-toolbar");A&&(A.innerHTML=`
|
|
89
|
+
<button class="ds-toolbar-btn" id="ds-btn-pdf">⬇ PDF</button>
|
|
90
|
+
<button class="ds-toolbar-btn" id="ds-btn-csv">⬇ CSV</button>
|
|
91
|
+
`,(e=A.querySelector("#ds-btn-pdf"))==null||e.addEventListener("click",()=>this.exportPDF()),(t=A.querySelector("#ds-btn-csv"))==null||t.addEventListener("click",()=>this.exportCSV()))}renderNavigation(){this.renderPageNav(),this.renderTabNav(this.activePageId)}renderPageNav(){const A=this.root.querySelector("#ds-page-nav");A&&(A.innerHTML=this.renderData.dashboard.pages.map(e=>`
|
|
92
|
+
<button class="ds-page-tab ${e.pageId===this.activePageId?"ds-active":""}"
|
|
93
|
+
data-page-id="${e.pageId}">${e.title}</button>
|
|
94
|
+
`).join(""),A.querySelectorAll(".ds-page-tab").forEach(e=>{e.addEventListener("click",()=>{var n,i;const t=e.dataset.pageId;t===this.activePageId&&!this.isLoadingTab||this.triggerTabSwitch(t,(i=(n=this.getTabsForPage(t)[0])==null?void 0:n.id)!=null?i:"")})}))}renderTabNav(A){const e=this.root.querySelector("#ds-tab-nav");e&&this.buildTabButtons(e,A)}buildTabButtons(A,e){const t=this.getTabsForPage(e);if(t.length<=1){A.style.display="none";return}A.style.display="",A.innerHTML=t.map(n=>`
|
|
95
|
+
<button class="ds-page-tab ${n.id===this.activeTabId?"ds-active":""}"
|
|
96
|
+
data-tab-id="${n.id}" data-page-id="${e}">${n.title}</button>
|
|
97
|
+
`).join(""),A.querySelectorAll(".ds-page-tab").forEach(n=>{n.addEventListener("click",()=>{const i=n.dataset.tabId,a=n.dataset.pageId;i===this.activeTabId&&a===this.activePageId&&!this.isLoadingTab||this.triggerTabSwitch(a,i)})})}triggerTabSwitch(A,e){this.isLoadingTab||!A||!e||(this.isLoadingTab=!0,this.activePageId=A,this.activeTabId=e,this.syncNavHighlight(),this.showTabSpinner(),this.opts.onTabSwitch(A,e))}syncNavHighlight(){this.root.querySelectorAll("#ds-page-nav .ds-page-tab").forEach(e=>{e.classList.toggle("ds-active",e.dataset.pageId===this.activePageId)});const A=this.root.querySelector("#ds-tab-nav");A&&this.buildTabButtons(A,this.activePageId)}renderFilterBar(){this.opts.hideFilters||this.filterRenderer.render(this.renderData.filters,this.activeFilters)}updateFilterBar(){this.opts.hideFilters||this.filterRenderer.render(this.renderData.filters,this.activeFilters)}renderGrid(){this.hideTabSpinner();const A=this.root.querySelector("#ds-grid");if(!A)return;this.chartRenderers.forEach(i=>i.destroy()),this.chartRenderers.clear();const e=this.renderData.components;if(!e.length){A.style.height="200px",A.innerHTML='<div class="ds-chart-empty" style="padding-top:80px;">No components on this tab.</div>';return}const t=A.clientWidth||1248,n=new Up(t);A.style.height=`${Up.totalHeight(e.map(i=>i.position))}px`,A.innerHTML="",e.forEach(i=>{const a=document.createElement("div");a.className="ds-component-wrapper",a.dataset.componentId=i.id,n.applyStyles(a,i.position),A.appendChild(a),this.renderComponent(a,i)})}renderComponent(A,e){var i,a;const t=this.renderData.data[e.id]||[],n=this.opts.theme;switch(e.type){case"bar":case"line":case"pie":case"donut":case"area":{const s=new Ep(A);s.render(e,t,n),this.chartRenderers.set(e.id,s);break}case"table":this.tableRenderer.render(A,e,t);break;case"number-card":this.cardRenderer.render(A,e,t);break;case"text":{const s=Object.entries(((i=e.properties)==null?void 0:i.style)||{}).map(([o,u])=>`${o}:${u}`).join(";");A.innerHTML=`<div style="${s};padding:8px;">${((a=e.properties)==null?void 0:a.content)||""}</div>`;break}}}showTabSpinner(){const A=this.root.querySelector("#ds-tab-loading"),e=this.root.querySelector("#ds-grid");A&&(A.style.display="flex"),e&&(e.style.opacity="0.35")}hideTabSpinner(){const A=this.root.querySelector("#ds-tab-loading"),e=this.root.querySelector("#ds-grid");A&&(A.style.display="none"),e&&(e.style.opacity="1")}getTabsForPage(A){var e,t;return(t=(e=this.renderData.dashboard.pages.find(n=>n.pageId===A))==null?void 0:e.tabs)!=null?t:[]}}class Mm{constructor(A,e){this.chartRenderer=null,this.tableRenderer=new xp,this.cardRenderer=new Ip,this.root=A,this.theme=e}render(A,e){const t=A.components[0];if(!t){this.root.innerHTML=`<div class="ds-embed-error">
|
|
98
|
+
<div class="ds-embed-error-icon">⚠</div>
|
|
99
|
+
<div>Component not found.</div>
|
|
100
|
+
</div>`;return}const n=A.data[t.id]||[];this.renderComponent(t,n),e==null||e()}update(A){const e=A.components[0];if(!e)return;const t=A.data[e.id]||[];switch(e.type){case"bar":case"line":case"pie":case"donut":case"area":this.chartRenderer?this.chartRenderer.update(e,t,this.theme):this.renderComponent(e,t);break;case"table":this.tableRenderer.render(this.root,e,t);break;case"number-card":this.cardRenderer.render(this.root,e,t);break}}destroy(){var A;(A=this.chartRenderer)==null||A.destroy(),this.chartRenderer=null,this.root.innerHTML=""}renderComponent(A,e){var t;switch(A.type){case"bar":case"line":case"pie":case"donut":case"area":(t=this.chartRenderer)==null||t.destroy(),this.chartRenderer=new Ep(this.root),this.chartRenderer.render(A,e,this.theme);break;case"table":this.tableRenderer.render(this.root,A,e);break;case"number-card":this.cardRenderer.render(this.root,A,e);break;default:this.root.innerHTML=`<div class="ds-chart-empty">Unsupported component type: ${A.type}</div>`}}}let Sp=!1;function km(){if(!(Sp||typeof document=="undefined")){Sp=!0;try{const r=`/* ─────────────────────────────────────────────────────────────────────────────
|
|
101
|
+
Deepspot SDK — Base Embed Styles
|
|
102
|
+
Injected once into the host page's <head> by the SDK.
|
|
103
|
+
All selectors are scoped under .ds-embed-* to avoid leaking into host styles.
|
|
104
|
+
───────────────────────────────────────────────────────────────────────────── */
|
|
105
|
+
|
|
106
|
+
/* ── Reset inside SDK containers ──────────────────────────────────────────── */
|
|
107
|
+
.ds-embed-root *,
|
|
108
|
+
.ds-embed-root *::before,
|
|
109
|
+
.ds-embed-root *::after {
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
margin: 0;
|
|
112
|
+
padding: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* ── Root container ────────────────────────────────────────────────────────── */
|
|
116
|
+
.ds-embed-root {
|
|
117
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
|
118
|
+
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
line-height: 1.5;
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: 100%;
|
|
123
|
+
overflow: auto;
|
|
124
|
+
position: relative;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ds-embed-root.ds-theme-light {
|
|
128
|
+
background: #ffffff;
|
|
129
|
+
color: #111827;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ds-embed-root.ds-theme-dark {
|
|
133
|
+
background: #0f172a;
|
|
134
|
+
color: #f1f5f9;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ── Loading state ─────────────────────────────────────────────────────────── */
|
|
138
|
+
.ds-embed-loading {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
height: 100%;
|
|
144
|
+
min-height: 200px;
|
|
145
|
+
gap: 12px;
|
|
146
|
+
color: #6b7280;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ds-embed-spinner {
|
|
150
|
+
width: 36px;
|
|
151
|
+
height: 36px;
|
|
152
|
+
border: 3px solid #e5e7eb;
|
|
153
|
+
border-top-color: #6366f1;
|
|
154
|
+
border-radius: 50%;
|
|
155
|
+
animation: ds-spin 0.8s linear infinite;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@keyframes ds-spin {
|
|
159
|
+
to { transform: rotate(360deg); }
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ds-embed-loading-text {
|
|
163
|
+
font-size: 13px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* ── Error state ───────────────────────────────────────────────────────────── */
|
|
167
|
+
.ds-embed-error {
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
align-items: center;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
height: 100%;
|
|
173
|
+
min-height: 200px;
|
|
174
|
+
gap: 8px;
|
|
175
|
+
padding: 24px;
|
|
176
|
+
text-align: center;
|
|
177
|
+
color: #ef4444;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ds-embed-error-icon {
|
|
181
|
+
font-size: 32px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ds-embed-error-message {
|
|
185
|
+
font-size: 13px;
|
|
186
|
+
color: #6b7280;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* ── Filter bar ────────────────────────────────────────────────────────────── */
|
|
190
|
+
.ds-filter-bar {
|
|
191
|
+
display: flex;
|
|
192
|
+
flex-wrap: wrap;
|
|
193
|
+
align-items: center;
|
|
194
|
+
gap: 10px;
|
|
195
|
+
padding: 10px 16px;
|
|
196
|
+
border-bottom: 1px solid #e5e7eb;
|
|
197
|
+
background: inherit;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ds-theme-dark .ds-filter-bar {
|
|
201
|
+
border-bottom-color: #1e293b;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ds-filter-item {
|
|
205
|
+
display: flex;
|
|
206
|
+
flex-direction: column;
|
|
207
|
+
gap: 4px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ds-filter-label {
|
|
211
|
+
font-size: 11px;
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
text-transform: uppercase;
|
|
214
|
+
letter-spacing: 0.05em;
|
|
215
|
+
color: #6b7280;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.ds-filter-select,
|
|
219
|
+
.ds-filter-input {
|
|
220
|
+
height: 32px;
|
|
221
|
+
padding: 0 10px;
|
|
222
|
+
border: 1px solid #d1d5db;
|
|
223
|
+
border-radius: 6px;
|
|
224
|
+
font-size: 13px;
|
|
225
|
+
background: #ffffff;
|
|
226
|
+
color: #111827;
|
|
227
|
+
cursor: pointer;
|
|
228
|
+
min-width: 130px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.ds-theme-dark .ds-filter-select,
|
|
232
|
+
.ds-theme-dark .ds-filter-input {
|
|
233
|
+
background: #1e293b;
|
|
234
|
+
border-color: #334155;
|
|
235
|
+
color: #f1f5f9;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ds-filter-select:focus,
|
|
239
|
+
.ds-filter-input:focus {
|
|
240
|
+
outline: none;
|
|
241
|
+
border-color: #6366f1;
|
|
242
|
+
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.ds-date-range-inputs {
|
|
246
|
+
display: flex;
|
|
247
|
+
gap: 6px;
|
|
248
|
+
align-items: center;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.ds-date-range-inputs input[type="date"] {
|
|
252
|
+
height: 32px;
|
|
253
|
+
padding: 0 8px;
|
|
254
|
+
border: 1px solid #d1d5db;
|
|
255
|
+
border-radius: 6px;
|
|
256
|
+
font-size: 13px;
|
|
257
|
+
background: #ffffff;
|
|
258
|
+
color: #111827;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.ds-theme-dark .ds-date-range-inputs input[type="date"] {
|
|
262
|
+
background: #1e293b;
|
|
263
|
+
border-color: #334155;
|
|
264
|
+
color: #f1f5f9;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/* ── Page / Tab navigation ─────────────────────────────────────────────────── */
|
|
268
|
+
.ds-page-nav {
|
|
269
|
+
display: flex;
|
|
270
|
+
gap: 4px;
|
|
271
|
+
padding: 8px 16px 0;
|
|
272
|
+
border-bottom: 1px solid #e5e7eb;
|
|
273
|
+
overflow-x: auto;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.ds-theme-dark .ds-page-nav {
|
|
277
|
+
border-bottom-color: #1e293b;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.ds-page-tab {
|
|
281
|
+
padding: 6px 16px;
|
|
282
|
+
font-size: 13px;
|
|
283
|
+
font-weight: 500;
|
|
284
|
+
border: none;
|
|
285
|
+
border-bottom: 2px solid transparent;
|
|
286
|
+
background: transparent;
|
|
287
|
+
color: #6b7280;
|
|
288
|
+
cursor: pointer;
|
|
289
|
+
white-space: nowrap;
|
|
290
|
+
transition: color 0.15s, border-color 0.15s;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ds-page-tab:hover {
|
|
294
|
+
color: #111827;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ds-theme-dark .ds-page-tab:hover {
|
|
298
|
+
color: #f1f5f9;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ds-page-tab.ds-active {
|
|
302
|
+
color: #6366f1;
|
|
303
|
+
border-bottom-color: #6366f1;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* ── Grid canvas ───────────────────────────────────────────────────────────── */
|
|
307
|
+
.ds-canvas {
|
|
308
|
+
position: relative;
|
|
309
|
+
width: 100%;
|
|
310
|
+
padding: 16px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.ds-grid {
|
|
314
|
+
position: relative;
|
|
315
|
+
width: 100%;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.ds-component-wrapper {
|
|
319
|
+
position: absolute;
|
|
320
|
+
overflow: hidden;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* ── Chart component ───────────────────────────────────────────────────────── */
|
|
324
|
+
.ds-chart-card {
|
|
325
|
+
width: 100%;
|
|
326
|
+
height: 100%;
|
|
327
|
+
background: #ffffff;
|
|
328
|
+
border: 1px solid #e5e7eb;
|
|
329
|
+
border-radius: 10px;
|
|
330
|
+
overflow: hidden;
|
|
331
|
+
display: flex;
|
|
332
|
+
flex-direction: column;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.ds-theme-dark .ds-chart-card {
|
|
336
|
+
background: #1e293b;
|
|
337
|
+
border-color: #334155;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.ds-chart-title {
|
|
341
|
+
padding: 10px 14px 4px;
|
|
342
|
+
font-size: 13px;
|
|
343
|
+
font-weight: 600;
|
|
344
|
+
color: #374151;
|
|
345
|
+
flex-shrink: 0;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.ds-theme-dark .ds-chart-title {
|
|
349
|
+
color: #e2e8f0;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ds-chart-body {
|
|
353
|
+
flex: 1;
|
|
354
|
+
min-height: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.ds-chart-empty {
|
|
358
|
+
display: flex;
|
|
359
|
+
align-items: center;
|
|
360
|
+
justify-content: center;
|
|
361
|
+
height: 100%;
|
|
362
|
+
color: #9ca3af;
|
|
363
|
+
font-size: 13px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* ── Table component ───────────────────────────────────────────────────────── */
|
|
367
|
+
.ds-table-card {
|
|
368
|
+
width: 100%;
|
|
369
|
+
height: 100%;
|
|
370
|
+
background: #ffffff;
|
|
371
|
+
border: 1px solid #e5e7eb;
|
|
372
|
+
border-radius: 10px;
|
|
373
|
+
overflow: hidden;
|
|
374
|
+
display: flex;
|
|
375
|
+
flex-direction: column;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.ds-theme-dark .ds-table-card {
|
|
379
|
+
background: #1e293b;
|
|
380
|
+
border-color: #334155;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.ds-table-title {
|
|
384
|
+
padding: 10px 14px 4px;
|
|
385
|
+
font-size: 13px;
|
|
386
|
+
font-weight: 600;
|
|
387
|
+
color: #374151;
|
|
388
|
+
flex-shrink: 0;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.ds-theme-dark .ds-table-title {
|
|
392
|
+
color: #e2e8f0;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ds-table-scroll {
|
|
396
|
+
flex: 1;
|
|
397
|
+
overflow: auto;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.ds-table {
|
|
401
|
+
width: 100%;
|
|
402
|
+
border-collapse: collapse;
|
|
403
|
+
font-size: 12px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ds-table th {
|
|
407
|
+
position: sticky;
|
|
408
|
+
top: 0;
|
|
409
|
+
padding: 8px 12px;
|
|
410
|
+
text-align: left;
|
|
411
|
+
font-weight: 600;
|
|
412
|
+
font-size: 11px;
|
|
413
|
+
text-transform: uppercase;
|
|
414
|
+
letter-spacing: 0.05em;
|
|
415
|
+
background: #f9fafb;
|
|
416
|
+
color: #6b7280;
|
|
417
|
+
border-bottom: 1px solid #e5e7eb;
|
|
418
|
+
white-space: nowrap;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.ds-theme-dark .ds-table th {
|
|
422
|
+
background: #0f172a;
|
|
423
|
+
color: #94a3b8;
|
|
424
|
+
border-bottom-color: #334155;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.ds-table td {
|
|
428
|
+
padding: 8px 12px;
|
|
429
|
+
border-bottom: 1px solid #f3f4f6;
|
|
430
|
+
color: #374151;
|
|
431
|
+
max-width: 200px;
|
|
432
|
+
overflow: hidden;
|
|
433
|
+
text-overflow: ellipsis;
|
|
434
|
+
white-space: nowrap;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.ds-theme-dark .ds-table td {
|
|
438
|
+
color: #cbd5e1;
|
|
439
|
+
border-bottom-color: #1e293b;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ds-table tr:hover td {
|
|
443
|
+
background: #f9fafb;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.ds-theme-dark .ds-table tr:hover td {
|
|
447
|
+
background: #1e293b;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/* ── KPI Number Card ───────────────────────────────────────────────────────── */
|
|
451
|
+
.ds-card {
|
|
452
|
+
width: 100%;
|
|
453
|
+
height: 100%;
|
|
454
|
+
border: 1px solid #e5e7eb;
|
|
455
|
+
border-radius: 10px;
|
|
456
|
+
display: flex;
|
|
457
|
+
flex-direction: column;
|
|
458
|
+
align-items: center;
|
|
459
|
+
justify-content: center;
|
|
460
|
+
padding: 16px;
|
|
461
|
+
text-align: center;
|
|
462
|
+
background: #ffffff;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.ds-theme-dark .ds-card {
|
|
466
|
+
background: #1e293b;
|
|
467
|
+
border-color: #334155;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.ds-card-label {
|
|
471
|
+
font-size: 12px;
|
|
472
|
+
font-weight: 500;
|
|
473
|
+
color: #6b7280;
|
|
474
|
+
margin-bottom: 6px;
|
|
475
|
+
text-transform: uppercase;
|
|
476
|
+
letter-spacing: 0.05em;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.ds-card-value {
|
|
480
|
+
font-size: 32px;
|
|
481
|
+
font-weight: 700;
|
|
482
|
+
color: #111827;
|
|
483
|
+
line-height: 1.1;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.ds-theme-dark .ds-card-value {
|
|
487
|
+
color: #f1f5f9;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/* ── Export toolbar ────────────────────────────────────────────────────────── */
|
|
491
|
+
.ds-toolbar {
|
|
492
|
+
display: flex;
|
|
493
|
+
justify-content: flex-end;
|
|
494
|
+
padding: 8px 16px 0;
|
|
495
|
+
gap: 8px;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.ds-toolbar-btn {
|
|
499
|
+
height: 30px;
|
|
500
|
+
padding: 0 12px;
|
|
501
|
+
border: 1px solid #d1d5db;
|
|
502
|
+
border-radius: 6px;
|
|
503
|
+
font-size: 12px;
|
|
504
|
+
font-weight: 500;
|
|
505
|
+
background: #ffffff;
|
|
506
|
+
color: #374151;
|
|
507
|
+
cursor: pointer;
|
|
508
|
+
display: flex;
|
|
509
|
+
align-items: center;
|
|
510
|
+
gap: 5px;
|
|
511
|
+
transition: background 0.15s, border-color 0.15s;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.ds-toolbar-btn:hover {
|
|
515
|
+
background: #f9fafb;
|
|
516
|
+
border-color: #9ca3af;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.ds-theme-dark .ds-toolbar-btn {
|
|
520
|
+
background: #1e293b;
|
|
521
|
+
border-color: #334155;
|
|
522
|
+
color: #e2e8f0;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.ds-theme-dark .ds-toolbar-btn:hover {
|
|
526
|
+
background: #0f172a;
|
|
527
|
+
}
|
|
528
|
+
`,A=document.createElement("style");A.id="deepspot-sdk-styles",A.textContent=r,document.head.appendChild(A)}catch(r){}}}function Lp(r){if(typeof r=="string"){const A=document.querySelector(r);if(!A)throw new Error(`Deepspot SDK: container "${r}" not found in DOM`);return A}return r}class Km{constructor(A){if(!A.apiKey)throw new Error("Deepspot SDK: apiKey is required");if(!A.baseUrl)throw new Error("Deepspot SDK: baseUrl is required");this.apiClient=new ms(A.baseUrl,A.apiKey),km()}async embedDashboard(A){var a,s,o,u,f;const e=Lp(A.container),t=(a=A.embedLevel)!=null?a:"dashboard",n=(s=A.theme)!=null?s:"light";e.style.height=A.height||"600px",e.style.display="block";const i=this.createRoot(e,n);this.showLoading(i);try{const d=await this.apiClient.getEmbedToken({dashboardId:A.dashboardId,embedType:"dashboard",embedLevel:t,userId:A.userId,tenantId:A.tenantId}),p=await this.apiClient.getDashboardRender(A.dashboardId,d,{embedLevel:t,pageId:A.pageId,tabId:A.tabId,filters:A.filters||{}});let h;const m=new Rm(i,{embedLevel:t,theme:n,hideFilters:(o=A.hideFilters)!=null?o:!1,hideExport:(u=A.hideExport)!=null?u:!1,initialFilters:A.filters||{},onFilterChange:A.onFilterChange,onReady:A.onReady,onTabSwitch:async(w,F)=>{var y,Q,T;(y=A.onTabSwitch)==null||y.call(A,w,F);try{const P=await this.apiClient.getDashboardRender(A.dashboardId,d,{embedLevel:t,pageId:w,tabId:F,filters:(T=(Q=h==null?void 0:h.getActiveFilters())!=null?Q:A.filters)!=null?T:{}});m.update(P)}catch(P){console.error("Deepspot SDK: tab fetch failed",P)}}});return m.render(p),h=new Fp({dashboardId:A.dashboardId,token:d,embedType:"dashboard",embedLevel:t,activePageId:p.activePage,activeTabId:p.activeTab,activeFilters:A.filters||{},apiClient:this.apiClient,renderer:m,onFilterChange:A.onFilterChange}),h}catch(d){throw this.showError(i,(d==null?void 0:d.message)||"Failed to load dashboard"),(f=A.onError)==null||f.call(A,(d==null?void 0:d.message)||"Failed to load dashboard"),d}}async embedReport(A){var n;const e=Lp(A.container);e.style.height=A.height||"400px",e.style.display="block";const t=this.createRoot(e,A.theme||"light");this.showLoading(t);try{const i=await this.apiClient.getEmbedToken({dashboardId:A.dashboardId,embedType:"report",componentId:A.componentId,userId:A.userId,tenantId:A.tenantId}),a=await this.apiClient.getReportRender(A.dashboardId,A.componentId,i,{filters:A.filters||{}}),s=new Mm(t,A.theme||"light");return s.render(a,A.onReady),new Fp({dashboardId:A.dashboardId,componentId:A.componentId,token:i,embedType:"report",activeFilters:A.filters||{},apiClient:this.apiClient,renderer:s})}catch(i){throw this.showError(t,(i==null?void 0:i.message)||"Failed to load report"),(n=A.onError)==null||n.call(A,(i==null?void 0:i.message)||"Failed to load report"),i}}createRoot(A,e){A.innerHTML="";const t=document.createElement("div");return t.className=`ds-embed-root ds-theme-${e}`,t.style.width="100%",t.style.height="100%",A.appendChild(t),t}showLoading(A){A.innerHTML=`
|
|
529
|
+
<div class="ds-embed-loading">
|
|
530
|
+
<div class="ds-embed-spinner"></div>
|
|
531
|
+
<div class="ds-embed-loading-text">Loading…</div>
|
|
532
|
+
</div>
|
|
533
|
+
`}showError(A,e){A.innerHTML=`
|
|
534
|
+
<div class="ds-embed-error">
|
|
535
|
+
<div class="ds-embed-error-icon">⚠</div>
|
|
536
|
+
<div>${e}</div>
|
|
537
|
+
<div class="ds-embed-error-message">Check your SDK configuration.</div>
|
|
538
|
+
</div>
|
|
539
|
+
`}}/*!
|
|
540
|
+
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
541
|
+
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
542
|
+
* Released under MIT License
|
|
543
|
+
*//*! *****************************************************************************
|
|
544
|
+
Copyright (c) Microsoft Corporation.
|
|
545
|
+
|
|
546
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
547
|
+
purpose with or without fee is hereby granted.
|
|
548
|
+
|
|
549
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
550
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
551
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
552
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
553
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
554
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
555
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
556
|
+
***************************************************************************** */var $c=function(r,A){return $c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},$c(r,A)};function Vr(r,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");$c(r,A);function e(){this.constructor=r}r.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var qc=function(){return qc=Object.assign||function(A){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},qc.apply(this,arguments)};function Jt(r,A,e,t){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function s(f){try{u(t.next(f))}catch(d){a(d)}}function o(f){try{u(t.throw(f))}catch(d){a(d)}}function u(f){f.done?i(f.value):n(f.value).then(s,o)}u((t=t.apply(r,[])).next())})}function kt(r,A){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return o([u,f])}}function o(u){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,n=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=A.call(r,e)}catch(f){u=[6,f],n=0}finally{t=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Jo(r,A,e){if(arguments.length===2)for(var t=0,n=A.length,i;t<n;t++)(i||!(t in A))&&(i||(i=Array.prototype.slice.call(A,0,t)),i[t]=A[t]);return r.concat(i||A)}for(var Un=function(){function r(A,e,t,n){this.left=A,this.top=e,this.width=t,this.height=n}return r.prototype.add=function(A,e,t,n){return new r(this.left+A,this.top+e,this.width+t,this.height+n)},r.fromClientRect=function(A,e){return new r(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},r.fromDOMRectList=function(A,e){var t=Array.from(e).find(function(n){return n.width!==0});return t?new r(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r}(),Zo=function(r,A){return Un.fromClientRect(r,A.getBoundingClientRect())},jm=function(r){var A=r.body,e=r.documentElement;if(!A||!e)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),n=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new Un(0,0,t,n)},Al=function(r){for(var A=[],e=0,t=r.length;e<t;){var n=r.charCodeAt(e++);if(n>=55296&&n<=56319&&e<t){var i=r.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},rt=function(){for(var r=[],A=0;A<arguments.length;A++)r[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var e=r.length;if(!e)return"";for(var t=[],n=-1,i="";++n<e;){var a=r[n];a<=65535?t.push(a):(a-=65536,t.push((a>>10)+55296,a%1024+56320)),(n+1===e||t.length>16384)&&(i+=String.fromCharCode.apply(String,t),t.length=0)}return i},Np="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vm=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),el=0;el<Np.length;el++)Vm[Np.charCodeAt(el)]=el;for(var Tp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ys=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),tl=0;tl<Tp.length;tl++)ys[Tp.charCodeAt(tl)]=tl;for(var Gm=function(r){var A=r.length*.75,e=r.length,t,n=0,i,a,s,o;r[r.length-1]==="="&&(A--,r[r.length-2]==="="&&A--);var u=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(A):new Array(A),f=Array.isArray(u)?u:new Uint8Array(u);for(t=0;t<e;t+=4)i=ys[r.charCodeAt(t)],a=ys[r.charCodeAt(t+1)],s=ys[r.charCodeAt(t+2)],o=ys[r.charCodeAt(t+3)],f[n++]=i<<2|a>>4,f[n++]=(a&15)<<4|s>>2,f[n++]=(s&3)<<6|o&63;return u},$m=function(r){for(var A=r.length,e=[],t=0;t<A;t+=2)e.push(r[t+1]<<8|r[t]);return e},qm=function(r){for(var A=r.length,e=[],t=0;t<A;t+=4)e.push(r[t+3]<<24|r[t+2]<<16|r[t+1]<<8|r[t]);return e},Ni=5,Wc=11,zc=2,Wm=Wc-Ni,Op=65536>>Ni,zm=1<<Ni,Xc=zm-1,Xm=1024>>Ni,Ym=Op+Xm,Jm=Ym,Zm=32,Ay=Jm+Zm,ey=65536>>Wc,ty=1<<Wm,ry=ty-1,Hp=function(r,A,e){return r.slice?r.slice(A,e):new Uint16Array(Array.prototype.slice.call(r,A,e))},ny=function(r,A,e){return r.slice?r.slice(A,e):new Uint32Array(Array.prototype.slice.call(r,A,e))},iy=function(r,A){var e=Gm(r),t=Array.isArray(e)?qm(e):new Uint32Array(e),n=Array.isArray(e)?$m(e):new Uint16Array(e),i=24,a=Hp(n,i/2,t[4]/2),s=t[5]===2?Hp(n,(i+t[4])/2):ny(t,Math.ceil((i+t[4])/4));return new ay(t[0],t[1],t[2],t[3],a,s)},ay=function(){function r(A,e,t,n,i,a){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=n,this.index=i,this.data=a}return r.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Ni],e=(e<<zc)+(A&Xc),this.data[e];if(A<=65535)return e=this.index[Op+(A-55296>>Ni)],e=(e<<zc)+(A&Xc),this.data[e];if(A<this.highStart)return e=Ay-ey+(A>>Wc),e=this.index[e],e+=A>>Ni&ry,e=this.index[e],e=(e<<zc)+(A&Xc),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),_p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sy=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),rl=0;rl<_p.length;rl++)sy[_p.charCodeAt(rl)]=rl;var oy="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Pp=50,ly=1,Dp=2,Rp=3,uy=4,cy=5,Mp=7,kp=8,Kp=9,Xn=10,Yc=11,jp=12,Jc=13,fy=14,bs=15,Zc=16,nl=17,Cs=18,hy=19,Vp=20,Af=21,Fs=22,ef=23,Ba=24,Br=25,Qs=26,Us=27,wa=28,dy=29,Ti=30,gy=31,il=32,al=33,tf=34,rf=35,nf=36,Es=37,af=38,sl=39,ol=40,sf=41,Gp=42,py=43,vy=[9001,65288],$p="!",Be="×",ll="÷",of=iy(oy),En=[Ti,nf],lf=[ly,Dp,Rp,cy],qp=[Xn,kp],Wp=[Us,Qs],By=lf.concat(qp),zp=[af,sl,ol,tf,rf],wy=[bs,Jc],my=function(r,A){A===void 0&&(A="strict");var e=[],t=[],n=[];return r.forEach(function(i,a){var s=of.get(i);if(s>Pp?(n.push(!0),s-=Pp):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return t.push(a),e.push(Zc);if(s===uy||s===Yc){if(a===0)return t.push(a),e.push(Ti);var o=e[a-1];return By.indexOf(o)===-1?(t.push(t[a-1]),e.push(o)):(t.push(a),e.push(Ti))}if(t.push(a),s===gy)return e.push(A==="strict"?Af:Es);if(s===Gp||s===dy)return e.push(Ti);if(s===py)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Es):e.push(Ti);e.push(s)}),[t,e,n]},uf=function(r,A,e,t){var n=t[e];if(Array.isArray(r)?r.indexOf(n)!==-1:r===n)for(var i=e;i<=t.length;){i++;var a=t[i];if(a===A)return!0;if(a!==Xn)break}if(n===Xn)for(var i=e;i>0;){i--;var s=t[i];if(Array.isArray(r)?r.indexOf(s)!==-1:r===s)for(var o=e;o<=t.length;){o++;var a=t[o];if(a===A)return!0;if(a!==Xn)break}if(s!==Xn)break}return!1},Xp=function(r,A){for(var e=r;e>=0;){var t=A[e];if(t===Xn)e--;else return t}return 0},yy=function(r,A,e,t,n){if(e[t]===0)return Be;var i=t-1;if(Array.isArray(n)&&n[i]===!0)return Be;var a=i-1,s=i+1,o=A[i],u=a>=0?A[a]:0,f=A[s];if(o===Dp&&f===Rp)return Be;if(lf.indexOf(o)!==-1)return $p;if(lf.indexOf(f)!==-1||qp.indexOf(f)!==-1)return Be;if(Xp(i,A)===kp)return ll;if(of.get(r[i])===Yc||(o===il||o===al)&&of.get(r[s])===Yc||o===Mp||f===Mp||o===Kp||[Xn,Jc,bs].indexOf(o)===-1&&f===Kp||[nl,Cs,hy,Ba,wa].indexOf(f)!==-1||Xp(i,A)===Fs||uf(ef,Fs,i,A)||uf([nl,Cs],Af,i,A)||uf(jp,jp,i,A))return Be;if(o===Xn)return ll;if(o===ef||f===ef)return Be;if(f===Zc||o===Zc)return ll;if([Jc,bs,Af].indexOf(f)!==-1||o===fy||u===nf&&wy.indexOf(o)!==-1||o===wa&&f===nf||f===Vp||En.indexOf(f)!==-1&&o===Br||En.indexOf(o)!==-1&&f===Br||o===Us&&[Es,il,al].indexOf(f)!==-1||[Es,il,al].indexOf(o)!==-1&&f===Qs||En.indexOf(o)!==-1&&Wp.indexOf(f)!==-1||Wp.indexOf(o)!==-1&&En.indexOf(f)!==-1||[Us,Qs].indexOf(o)!==-1&&(f===Br||[Fs,bs].indexOf(f)!==-1&&A[s+1]===Br)||[Fs,bs].indexOf(o)!==-1&&f===Br||o===Br&&[Br,wa,Ba].indexOf(f)!==-1)return Be;if([Br,wa,Ba,nl,Cs].indexOf(f)!==-1)for(var d=i;d>=0;){var p=A[d];if(p===Br)return Be;if([wa,Ba].indexOf(p)!==-1)d--;else break}if([Us,Qs].indexOf(f)!==-1)for(var d=[nl,Cs].indexOf(o)!==-1?a:i;d>=0;){var p=A[d];if(p===Br)return Be;if([wa,Ba].indexOf(p)!==-1)d--;else break}if(af===o&&[af,sl,tf,rf].indexOf(f)!==-1||[sl,tf].indexOf(o)!==-1&&[sl,ol].indexOf(f)!==-1||[ol,rf].indexOf(o)!==-1&&f===ol||zp.indexOf(o)!==-1&&[Vp,Qs].indexOf(f)!==-1||zp.indexOf(f)!==-1&&o===Us||En.indexOf(o)!==-1&&En.indexOf(f)!==-1||o===Ba&&En.indexOf(f)!==-1||En.concat(Br).indexOf(o)!==-1&&f===Fs&&vy.indexOf(r[s])===-1||En.concat(Br).indexOf(f)!==-1&&o===Cs)return Be;if(o===sf&&f===sf){for(var h=e[i],m=1;h>0&&(h--,A[h]===sf);)m++;if(m%2!==0)return Be}return o===il&&f===al?Be:ll},by=function(r,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=my(r,A.lineBreak),t=e[0],n=e[1],i=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(s){return[Br,Ti,Gp].indexOf(s)!==-1?Es:s}));var a=A.wordBreak==="keep-all"?i.map(function(s,o){return s&&r[o]>=19968&&r[o]<=40959}):void 0;return[t,n,a]},Cy=function(){function r(A,e,t,n){this.codePoints=A,this.required=e===$p,this.start=t,this.end=n}return r.prototype.slice=function(){return rt.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),Fy=function(r,A){var e=Al(r),t=by(e,A),n=t[0],i=t[1],a=t[2],s=e.length,o=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var f=Be;u<s&&(f=yy(e,i,n,++u,a))===Be;);if(f!==Be||u===s){var d=new Cy(e,f,o,u);return o=u,{value:d,done:!1}}return{done:!0,value:null}}}},Qy=1,Uy=2,xs=4,Yp=8,ul=10,Jp=47,Is=92,Ey=9,xy=32,cl=34,Ss=61,Iy=35,Sy=36,Ly=37,fl=39,hl=40,Ls=41,Ny=95,or=45,Ty=33,Oy=60,Hy=62,_y=64,Py=91,Dy=93,Ry=61,My=123,dl=63,ky=125,Zp=124,Ky=126,jy=128,A0=65533,cf=42,Oi=43,Vy=44,Gy=58,$y=59,Ns=46,qy=0,Wy=8,zy=11,Xy=14,Yy=31,Jy=127,fn=-1,e0=48,t0=97,r0=101,Zy=102,Ab=117,eb=122,n0=65,i0=69,a0=70,tb=85,rb=90,Kt=function(r){return r>=e0&&r<=57},nb=function(r){return r>=55296&&r<=57343},ma=function(r){return Kt(r)||r>=n0&&r<=a0||r>=t0&&r<=Zy},ib=function(r){return r>=t0&&r<=eb},ab=function(r){return r>=n0&&r<=rb},sb=function(r){return ib(r)||ab(r)},ob=function(r){return r>=jy},gl=function(r){return r===ul||r===Ey||r===xy},pl=function(r){return sb(r)||ob(r)||r===Ny},s0=function(r){return pl(r)||Kt(r)||r===or},lb=function(r){return r>=qy&&r<=Wy||r===zy||r>=Xy&&r<=Yy||r===Jy},Yn=function(r,A){return r!==Is?!1:A!==ul},vl=function(r,A,e){return r===or?pl(A)||Yn(A,e):pl(r)?!0:!!(r===Is&&Yn(r,A))},ff=function(r,A,e){return r===Oi||r===or?Kt(A)?!0:A===Ns&&Kt(e):Kt(r===Ns?A:r)},ub=function(r){var A=0,e=1;(r[A]===Oi||r[A]===or)&&(r[A]===or&&(e=-1),A++);for(var t=[];Kt(r[A]);)t.push(r[A++]);var n=t.length?parseInt(rt.apply(void 0,t),10):0;r[A]===Ns&&A++;for(var i=[];Kt(r[A]);)i.push(r[A++]);var a=i.length,s=a?parseInt(rt.apply(void 0,i),10):0;(r[A]===i0||r[A]===r0)&&A++;var o=1;(r[A]===Oi||r[A]===or)&&(r[A]===or&&(o=-1),A++);for(var u=[];Kt(r[A]);)u.push(r[A++]);var f=u.length?parseInt(rt.apply(void 0,u),10):0;return e*(n+s*Math.pow(10,-a))*Math.pow(10,o*f)},cb={type:2},fb={type:3},hb={type:4},db={type:13},gb={type:8},pb={type:21},vb={type:9},Bb={type:10},wb={type:11},mb={type:12},yb={type:14},Bl={type:23},bb={type:1},Cb={type:25},Fb={type:24},Qb={type:26},Ub={type:27},Eb={type:28},xb={type:29},Ib={type:31},hf={type:32},o0=function(){function r(){this._value=[]}return r.prototype.write=function(A){this._value=this._value.concat(Al(A))},r.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==hf;)A.push(e),e=this.consumeToken();return A},r.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case cl:return this.consumeStringToken(cl);case Iy:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(s0(e)||Yn(t,n)){var i=vl(e,t,n)?Uy:Qy,a=this.consumeName();return{type:5,value:a,flags:i}}break;case Sy:if(this.peekCodePoint(0)===Ss)return this.consumeCodePoint(),db;break;case fl:return this.consumeStringToken(fl);case hl:return cb;case Ls:return fb;case cf:if(this.peekCodePoint(0)===Ss)return this.consumeCodePoint(),yb;break;case Oi:if(ff(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Vy:return hb;case or:var s=A,o=this.peekCodePoint(0),u=this.peekCodePoint(1);if(ff(s,o,u))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(vl(s,o,u))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===or&&u===Hy)return this.consumeCodePoint(),this.consumeCodePoint(),Fb;break;case Ns:if(ff(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Jp:if(this.peekCodePoint(0)===cf)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===cf&&(f=this.consumeCodePoint(),f===Jp))return this.consumeToken();if(f===fn)return this.consumeToken()}break;case Gy:return Qb;case $y:return Ub;case Oy:if(this.peekCodePoint(0)===Ty&&this.peekCodePoint(1)===or&&this.peekCodePoint(2)===or)return this.consumeCodePoint(),this.consumeCodePoint(),Cb;break;case _y:var d=this.peekCodePoint(0),p=this.peekCodePoint(1),h=this.peekCodePoint(2);if(vl(d,p,h)){var a=this.consumeName();return{type:7,value:a}}break;case Py:return Eb;case Is:if(Yn(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Dy:return xb;case Ry:if(this.peekCodePoint(0)===Ss)return this.consumeCodePoint(),gb;break;case My:return wb;case ky:return mb;case Ab:case tb:var m=this.peekCodePoint(0),w=this.peekCodePoint(1);return m===Oi&&(ma(w)||w===dl)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Zp:if(this.peekCodePoint(0)===Ss)return this.consumeCodePoint(),vb;if(this.peekCodePoint(0)===Zp)return this.consumeCodePoint(),pb;break;case Ky:if(this.peekCodePoint(0)===Ss)return this.consumeCodePoint(),Bb;break;case fn:return hf}return gl(A)?(this.consumeWhiteSpace(),Ib):Kt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):pl(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:rt(A)}},r.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A=="undefined"?-1:A},r.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},r.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},r.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();ma(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;e===dl&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(rt.apply(void 0,A.map(function(o){return o===dl?e0:o})),16),i=parseInt(rt.apply(void 0,A.map(function(o){return o===dl?a0:o})),16);return{type:30,start:n,end:i}}var a=parseInt(rt.apply(void 0,A),16);if(this.peekCodePoint(0)===or&&ma(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var s=[];ma(e)&&s.length<6;)s.push(e),e=this.consumeCodePoint();var i=parseInt(rt.apply(void 0,s),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},r.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===hl?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===hl?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},r.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===fn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===fl||e===cl){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===fn||this.peekCodePoint(0)===Ls)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Bl)}for(;;){var n=this.consumeCodePoint();if(n===fn||n===Ls)return{type:22,value:rt.apply(void 0,A)};if(gl(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===fn||this.peekCodePoint(0)===Ls?(this.consumeCodePoint(),{type:22,value:rt.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Bl);if(n===cl||n===fl||n===hl||lb(n))return this.consumeBadUrlRemnants(),Bl;if(n===Is)if(Yn(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bl;else A.push(n)}},r.prototype.consumeWhiteSpace=function(){for(;gl(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ls||A===fn)return;Yn(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(A){for(var e=5e4,t="";A>0;){var n=Math.min(e,A);t+=rt.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},r.prototype.consumeStringToken=function(A){var e="",t=0;do{var n=this._value[t];if(n===fn||n===void 0||n===A)return e+=this.consumeStringSlice(t),{type:0,value:e};if(n===ul)return this._value.splice(0,t),bb;if(n===Is){var i=this._value[t+1];i!==fn&&i!==void 0&&(i===ul?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):Yn(n,i)&&(e+=this.consumeStringSlice(t),e+=rt(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},r.prototype.consumeNumber=function(){var A=[],e=xs,t=this.peekCodePoint(0);for((t===Oi||t===or)&&A.push(this.consumeCodePoint());Kt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===Ns&&Kt(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Yp;Kt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((t===i0||t===r0)&&((n===Oi||n===or)&&Kt(i)||Kt(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Yp;Kt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[ub(A),e]},r.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(vl(n,i,a)){var s=this.consumeName();return{type:15,number:e,flags:t,unit:s}}return n===Ly?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},r.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(ma(A)){for(var e=rt(A);ma(this.peekCodePoint(0))&&e.length<6;)e+=rt(this.consumeCodePoint());gl(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return t===0||nb(t)||t>1114111?A0:t}return A===fn?A0:A},r.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(s0(e))A+=rt(e);else if(Yn(e,this.peekCodePoint(0)))A+=rt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},r}(),l0=function(){function r(A){this._tokens=A}return r.create=function(A){var e=new o0;return e.write(A),new r(e.read())},r.parseValue=function(A){return r.create(A).parseComponentValue()},r.parseValues=function(A){return r.create(A).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},r.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},r.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||Lb(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},r.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A=="undefined"?hf:A},r.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},r}(),Ts=function(r){return r.type===15},ya=function(r){return r.type===17},Ne=function(r){return r.type===20},Sb=function(r){return r.type===0},df=function(r,A){return Ne(r)&&r.value===A},u0=function(r){return r.type!==31},ba=function(r){return r.type!==31&&r.type!==4},hn=function(r){var A=[],e=[];return r.forEach(function(t){if(t.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}t.type!==31&&e.push(t)}),e.length&&A.push(e),A},Lb=function(r,A){return A===11&&r.type===12||A===28&&r.type===29?!0:A===2&&r.type===3},Jn=function(r){return r.type===17||r.type===15},gt=function(r){return r.type===16||Jn(r)},c0=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Ot={type:17,number:0,flags:xs},gf={type:16,number:50,flags:xs},Zn={type:16,number:100,flags:xs},Os=function(r,A,e){var t=r[0],n=r[1];return[_e(t,A),_e(typeof n!="undefined"?n:t,e)]},_e=function(r,A){if(r.type===16)return r.number/100*A;if(Ts(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},f0="deg",h0="grad",d0="rad",g0="turn",wl={name:"angle",parse:function(r,A){if(A.type===15)switch(A.unit){case f0:return Math.PI*A.number/180;case h0:return Math.PI/200*A.number;case d0:return A.number;case g0:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},p0=function(r){return r.type===15&&(r.unit===f0||r.unit===h0||r.unit===d0||r.unit===g0)},v0=function(r){var A=r.filter(Ne).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ot,Ot];case"to top":case"bottom":return Ir(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ot,Zn];case"to right":case"left":return Ir(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Zn,Zn];case"to bottom":case"top":return Ir(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Zn,Ot];case"to left":case"right":return Ir(270)}return 0},Ir=function(r){return Math.PI*r/180},Ai={name:"color",parse:function(r,A){if(A.type===18){var e=Nb[A.name];if(typeof e=="undefined")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(r,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return ti(parseInt(t+t,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),a=A.value.substring(3,4);return ti(parseInt(t+t,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return ti(parseInt(t,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),a=A.value.substring(6,8);return ti(parseInt(t,16),parseInt(n,16),parseInt(i,16),parseInt(a,16)/255)}}if(A.type===20){var s=xn[A.value.toUpperCase()];if(typeof s!="undefined")return s}return xn.TRANSPARENT}},ei=function(r){return(255&r)===0},Ut=function(r){var A=255&r,e=255&r>>8,t=255&r>>16,n=255&r>>24;return A<255?"rgba("+n+","+t+","+e+","+A/255+")":"rgb("+n+","+t+","+e+")"},ti=function(r,A,e,t){return(r<<24|A<<16|e<<8|Math.round(t*255)<<0)>>>0},B0=function(r,A){if(r.type===17)return r.number;if(r.type===16){var e=A===3?1:255;return A===3?r.number/100*e:Math.round(r.number/100*e)}return 0},w0=function(r,A){var e=A.filter(ba);if(e.length===3){var t=e.map(B0),n=t[0],i=t[1],a=t[2];return ti(n,i,a,1)}if(e.length===4){var s=e.map(B0),n=s[0],i=s[1],a=s[2],o=s[3];return ti(n,i,a,o)}return 0};function pf(r,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-r)*e*6+r:e<1/2?A:e<2/3?(A-r)*6*(2/3-e)+r:r}var m0=function(r,A){var e=A.filter(ba),t=e[0],n=e[1],i=e[2],a=e[3],s=(t.type===17?Ir(t.number):wl.parse(r,t))/(Math.PI*2),o=gt(n)?n.number/100:0,u=gt(i)?i.number/100:0,f=typeof a!="undefined"&>(a)?_e(a,1):1;if(o===0)return ti(u*255,u*255,u*255,1);var d=u<=.5?u*(o+1):u+o-u*o,p=u*2-d,h=pf(p,d,s+1/3),m=pf(p,d,s),w=pf(p,d,s-1/3);return ti(h*255,m*255,w*255,f)},Nb={hsl:m0,hsla:m0,rgb:w0,rgba:w0},Hs=function(r,A){return Ai.parse(r,l0.create(A).parseComponentValue())},xn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Tb={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,A){return A.map(function(e){if(Ne(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ob={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ml=function(r,A){var e=Ai.parse(r,A[0]),t=A[1];return t&>(t)?{color:e,stop:t}:{color:e,stop:null}},y0=function(r,A){var e=r[0],t=r[r.length-1];e.stop===null&&(e.stop=Ot),t.stop===null&&(t.stop=Zn);for(var n=[],i=0,a=0;a<r.length;a++){var s=r[a].stop;if(s!==null){var o=_e(s,A);o>i?n.push(o):n.push(i),i=o}else n.push(null)}for(var u=null,a=0;a<n.length;a++){var f=n[a];if(f===null)u===null&&(u=a);else if(u!==null){for(var d=a-u,p=n[u-1],h=(f-p)/(d+1),m=1;m<=d;m++)n[u+m-1]=h*m;u=null}}return r.map(function(w,F){var y=w.color;return{color:y,stop:Math.max(Math.min(1,n[F]/A),0)}})},Hb=function(r,A,e){var t=A/2,n=e/2,i=_e(r[0],A)-t,a=n-_e(r[1],e);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},_b=function(r,A,e){var t=typeof r=="number"?r:Hb(r,A,e),n=Math.abs(A*Math.sin(t))+Math.abs(e*Math.cos(t)),i=A/2,a=e/2,s=n/2,o=Math.sin(t-Math.PI/2)*s,u=Math.cos(t-Math.PI/2)*s;return[n,i-u,i+u,a-o,a+o]},Gr=function(r,A){return Math.sqrt(r*r+A*A)},b0=function(r,A,e,t,n){var i=[[0,0],[0,A],[r,0],[r,A]];return i.reduce(function(a,s){var o=s[0],u=s[1],f=Gr(e-o,t-u);return(n?f<a.optimumDistance:f>a.optimumDistance)?{optimumCorner:s,optimumDistance:f}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Pb=function(r,A,e,t,n){var i=0,a=0;switch(r.size){case 0:r.shape===0?i=a=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(e),Math.abs(e-n)):r.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-t)),a=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(r.shape===0)i=a=Math.min(Gr(A,e),Gr(A,e-n),Gr(A-t,e),Gr(A-t,e-n));else if(r.shape===1){var s=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(A),Math.abs(A-t)),o=b0(t,n,A,e,!0),u=o[0],f=o[1];i=Gr(u-A,(f-e)/s),a=s*i}break;case 1:r.shape===0?i=a=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(e),Math.abs(e-n)):r.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-t)),a=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(r.shape===0)i=a=Math.max(Gr(A,e),Gr(A,e-n),Gr(A-t,e),Gr(A-t,e-n));else if(r.shape===1){var s=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(A),Math.abs(A-t)),d=b0(t,n,A,e,!1),u=d[0],f=d[1];i=Gr(u-A,(f-e)/s),a=s*i}break}return Array.isArray(r.size)&&(i=_e(r.size[0],t),a=r.size.length===2?_e(r.size[1],n):i),[i,a]},Db=function(r,A){var e=Ir(180),t=[];return hn(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&a.value==="to"){e=v0(n);return}else if(p0(a)){e=wl.parse(r,a);return}}var s=ml(r,n);t.push(s)}),{angle:e,stops:t,type:1}},yl=function(r,A){var e=Ir(180),t=[];return hn(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){e=v0(n);return}else if(p0(a)){e=(wl.parse(r,a)+Ir(270))%Ir(360);return}}var s=ml(r,n);t.push(s)}),{angle:e,stops:t,type:1}},Rb=function(r,A){var e=Ir(180),t=[],n=1,i=0,a=3,s=[];return hn(A).forEach(function(o,u){var f=o[0];if(u===0){if(Ne(f)&&f.value==="linear"){n=1;return}else if(Ne(f)&&f.value==="radial"){n=2;return}}if(f.type===18){if(f.name==="from"){var d=Ai.parse(r,f.values[0]);t.push({stop:Ot,color:d})}else if(f.name==="to"){var d=Ai.parse(r,f.values[0]);t.push({stop:Zn,color:d})}else if(f.name==="color-stop"){var p=f.values.filter(ba);if(p.length===2){var d=Ai.parse(r,p[1]),h=p[0];ya(h)&&t.push({stop:{type:16,number:h.number*100,flags:h.flags},color:d})}}}}),n===1?{angle:(e+Ir(180))%Ir(360),stops:t,type:n}:{size:a,shape:i,stops:t,position:s,type:n}},C0="closest-side",F0="farthest-side",Q0="closest-corner",U0="farthest-corner",E0="circle",x0="ellipse",I0="cover",S0="contain",Mb=function(r,A){var e=0,t=3,n=[],i=[];return hn(A).forEach(function(a,s){var o=!0;if(s===0){var u=!1;o=a.reduce(function(d,p){if(u)if(Ne(p))switch(p.value){case"center":return i.push(gf),d;case"top":case"left":return i.push(Ot),d;case"right":case"bottom":return i.push(Zn),d}else(gt(p)||Jn(p))&&i.push(p);else if(Ne(p))switch(p.value){case E0:return e=0,!1;case x0:return e=1,!1;case"at":return u=!0,!1;case C0:return t=0,!1;case I0:case F0:return t=1,!1;case S0:case Q0:return t=2,!1;case U0:return t=3,!1}else if(Jn(p)||gt(p))return Array.isArray(t)||(t=[]),t.push(p),!1;return d},o)}if(o){var f=ml(r,a);n.push(f)}}),{size:t,shape:e,stops:n,position:i,type:2}},bl=function(r,A){var e=0,t=3,n=[],i=[];return hn(A).forEach(function(a,s){var o=!0;if(s===0?o=a.reduce(function(f,d){if(Ne(d))switch(d.value){case"center":return i.push(gf),!1;case"top":case"left":return i.push(Ot),!1;case"right":case"bottom":return i.push(Zn),!1}else if(gt(d)||Jn(d))return i.push(d),!1;return f},o):s===1&&(o=a.reduce(function(f,d){if(Ne(d))switch(d.value){case E0:return e=0,!1;case x0:return e=1,!1;case S0:case C0:return t=0,!1;case F0:return t=1,!1;case Q0:return t=2,!1;case I0:case U0:return t=3,!1}else if(Jn(d)||gt(d))return Array.isArray(t)||(t=[]),t.push(d),!1;return f},o)),o){var u=ml(r,a);n.push(u)}}),{size:t,shape:e,stops:n,position:i,type:2}},kb=function(r){return r.type===1},Kb=function(r){return r.type===2},vf={name:"image",parse:function(r,A){if(A.type===22){var e={url:A.value,type:0};return r.cache.addImage(A.value),e}if(A.type===18){var t=L0[A.name];if(typeof t=="undefined")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(r,A.values)}throw new Error("Unsupported image type "+A.type)}};function jb(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!L0[r.name])}var L0={"linear-gradient":Db,"-moz-linear-gradient":yl,"-ms-linear-gradient":yl,"-o-linear-gradient":yl,"-webkit-linear-gradient":yl,"radial-gradient":Mb,"-moz-radial-gradient":bl,"-ms-radial-gradient":bl,"-o-radial-gradient":bl,"-webkit-radial-gradient":bl,"-webkit-gradient":Rb},Vb={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(function(t){return ba(t)&&jb(t)}).map(function(t){return vf.parse(r,t)})}},Gb={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,A){return A.map(function(e){if(Ne(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$b={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,A){return hn(A).map(function(e){return e.filter(gt)}).map(c0)}},qb={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,A){return hn(A).map(function(e){return e.filter(Ne).map(function(t){return t.value}).join(" ")}).map(Wb)}},Wb=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ca;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Ca||(Ca={}));var zb={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,A){return hn(A).map(function(e){return e.filter(Xb)})}},Xb=function(r){return Ne(r)||gt(r)},Cl=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Yb=Cl("top"),Jb=Cl("right"),Zb=Cl("bottom"),AC=Cl("left"),Fl=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return c0(e.filter(gt))}}},eC=Fl("top-left"),tC=Fl("top-right"),rC=Fl("bottom-right"),nC=Fl("bottom-left"),Ql=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},iC=Ql("top"),aC=Ql("right"),sC=Ql("bottom"),oC=Ql("left"),Ul=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Ts(e)?e.number:0}}},lC=Ul("top"),uC=Ul("right"),cC=Ul("bottom"),fC=Ul("left"),hC={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dC={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},gC={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,A){return A.filter(Ne).reduce(function(e,t){return e|pC(t.value)},0)}},pC=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vC={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},BC={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},El;(function(r){r.NORMAL="normal",r.STRICT="strict"})(El||(El={}));var wC={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,A){switch(A){case"strict":return El.STRICT;case"normal":default:return El.NORMAL}}},mC={name:"line-height",initialValue:"normal",prefix:!1,type:4},N0=function(r,A){return Ne(r)&&r.value==="normal"?1.2*A:r.type===17?A*r.number:gt(r)?_e(r,A):A},yC={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,A){return A.type===20&&A.value==="none"?null:vf.parse(r,A)}},bC={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Bf={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},xl=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},CC=xl("top"),FC=xl("right"),QC=xl("bottom"),UC=xl("left"),EC={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,A){return A.filter(Ne).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},xC={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},Il=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},IC=Il("top"),SC=Il("right"),LC=Il("bottom"),NC=Il("left"),TC={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},OC={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},HC={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,A){return A.length===1&&df(A[0],"none")?[]:hn(A).map(function(e){for(var t={color:xn.TRANSPARENT,offsetX:Ot,offsetY:Ot,blur:Ot},n=0,i=0;i<e.length;i++){var a=e[i];Jn(a)?(n===0?t.offsetX=a:n===1?t.offsetY=a:t.blur=a,n++):t.color=Ai.parse(r,a)}return t})}},_C={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(r,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},PC={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(r,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=MC[A.name];if(typeof e=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},DC=function(r){var A=r.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},RC=function(r){var A=r.filter(function(o){return o.type===17}).map(function(o){return o.number}),e=A[0],t=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var a=A[12],s=A[13];return A[14],A[15],A.length===16?[e,t,n,i,a,s]:null},MC={matrix:DC,matrix3d:RC},T0={type:16,number:50,flags:xs},kC=[T0,T0],KC={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,A){var e=A.filter(gt);return e.length!==2?kC:[e[0],e[1]]}},jC={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},_s;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(_s||(_s={}));for(var VC={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,A){switch(A){case"break-all":return _s.BREAK_ALL;case"keep-all":return _s.KEEP_ALL;case"normal":default:return _s.NORMAL}}},GC={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,A){if(A.type===20)return{auto:!0,order:0};if(ya(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},O0={name:"time",parse:function(r,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},$C={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,A){return ya(A)?A.number:1}},qC={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},WC={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,A){return A.filter(Ne).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},zC={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,A){var e=[],t=[];return A.forEach(function(n){switch(n.type){case 20:case 0:e.push(n.value);break;case 17:e.push(n.number.toString());break;case 4:t.push(e.join(" ")),e.length=0;break}}),e.length&&t.push(e.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},XC={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},YC={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,A){if(ya(A))return A.number;if(Ne(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},JC={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,A){return A.filter(Ne).map(function(e){return e.value})}},ZC={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},bt=function(r,A){return(r&A)!==0},A4={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},e4={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var t=[],n=A.filter(u0),i=0;i<n.length;i++){var a=n[i],s=n[i+1];if(a.type===20){var o=s&&ya(s)?s.number:1;t.push({counter:a.value,increment:o})}}return t}},t4={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(r,A){if(A.length===0)return[];for(var e=[],t=A.filter(u0),n=0;n<t.length;n++){var i=t[n],a=t[n+1];if(Ne(i)&&i.value!=="none"){var s=a&&ya(a)?a.number:0;e.push({counter:i.value,reset:s})}}return e}},r4={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(r,A){return A.filter(Ts).map(function(e){return O0.parse(r,e)})}},n4={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(r,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var t=[],n=A.filter(Sb);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var a=n[i].value,s=n[i+1].value;t.push({open:a,close:s})}return t}},H0=function(r,A,e){if(!r)return"";var t=r[Math.min(A,r.length-1)];return t?e?t.open:t.close:""},i4={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,A){return A.length===1&&df(A[0],"none")?[]:hn(A).map(function(e){for(var t={color:255,offsetX:Ot,offsetY:Ot,blur:Ot,spread:Ot,inset:!1},n=0,i=0;i<e.length;i++){var a=e[i];df(a,"inset")?t.inset=!0:Jn(a)?(n===0?t.offsetX=a:n===1?t.offsetY=a:n===2?t.blur=a:t.spread=a,n++):t.color=Ai.parse(r,a)}return t})}},a4={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(r,A){var e=[0,1,2],t=[];return A.filter(Ne).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),e.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},s4={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},o4={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(r,A){return Ts(A)?A.number:0}},l4=function(){function r(A,e){var t,n;this.animationDuration=MA(A,r4,e.animationDuration),this.backgroundClip=MA(A,Tb,e.backgroundClip),this.backgroundColor=MA(A,Ob,e.backgroundColor),this.backgroundImage=MA(A,Vb,e.backgroundImage),this.backgroundOrigin=MA(A,Gb,e.backgroundOrigin),this.backgroundPosition=MA(A,$b,e.backgroundPosition),this.backgroundRepeat=MA(A,qb,e.backgroundRepeat),this.backgroundSize=MA(A,zb,e.backgroundSize),this.borderTopColor=MA(A,Yb,e.borderTopColor),this.borderRightColor=MA(A,Jb,e.borderRightColor),this.borderBottomColor=MA(A,Zb,e.borderBottomColor),this.borderLeftColor=MA(A,AC,e.borderLeftColor),this.borderTopLeftRadius=MA(A,eC,e.borderTopLeftRadius),this.borderTopRightRadius=MA(A,tC,e.borderTopRightRadius),this.borderBottomRightRadius=MA(A,rC,e.borderBottomRightRadius),this.borderBottomLeftRadius=MA(A,nC,e.borderBottomLeftRadius),this.borderTopStyle=MA(A,iC,e.borderTopStyle),this.borderRightStyle=MA(A,aC,e.borderRightStyle),this.borderBottomStyle=MA(A,sC,e.borderBottomStyle),this.borderLeftStyle=MA(A,oC,e.borderLeftStyle),this.borderTopWidth=MA(A,lC,e.borderTopWidth),this.borderRightWidth=MA(A,uC,e.borderRightWidth),this.borderBottomWidth=MA(A,cC,e.borderBottomWidth),this.borderLeftWidth=MA(A,fC,e.borderLeftWidth),this.boxShadow=MA(A,i4,e.boxShadow),this.color=MA(A,hC,e.color),this.direction=MA(A,dC,e.direction),this.display=MA(A,gC,e.display),this.float=MA(A,vC,e.cssFloat),this.fontFamily=MA(A,zC,e.fontFamily),this.fontSize=MA(A,XC,e.fontSize),this.fontStyle=MA(A,ZC,e.fontStyle),this.fontVariant=MA(A,JC,e.fontVariant),this.fontWeight=MA(A,YC,e.fontWeight),this.letterSpacing=MA(A,BC,e.letterSpacing),this.lineBreak=MA(A,wC,e.lineBreak),this.lineHeight=MA(A,mC,e.lineHeight),this.listStyleImage=MA(A,yC,e.listStyleImage),this.listStylePosition=MA(A,bC,e.listStylePosition),this.listStyleType=MA(A,Bf,e.listStyleType),this.marginTop=MA(A,CC,e.marginTop),this.marginRight=MA(A,FC,e.marginRight),this.marginBottom=MA(A,QC,e.marginBottom),this.marginLeft=MA(A,UC,e.marginLeft),this.opacity=MA(A,$C,e.opacity);var i=MA(A,EC,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=MA(A,xC,e.overflowWrap),this.paddingTop=MA(A,IC,e.paddingTop),this.paddingRight=MA(A,SC,e.paddingRight),this.paddingBottom=MA(A,LC,e.paddingBottom),this.paddingLeft=MA(A,NC,e.paddingLeft),this.paintOrder=MA(A,a4,e.paintOrder),this.position=MA(A,OC,e.position),this.textAlign=MA(A,TC,e.textAlign),this.textDecorationColor=MA(A,qC,(t=e.textDecorationColor)!==null&&t!==void 0?t:e.color),this.textDecorationLine=MA(A,WC,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=MA(A,HC,e.textShadow),this.textTransform=MA(A,_C,e.textTransform),this.transform=MA(A,PC,e.transform),this.transformOrigin=MA(A,KC,e.transformOrigin),this.visibility=MA(A,jC,e.visibility),this.webkitTextStrokeColor=MA(A,s4,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=MA(A,o4,e.webkitTextStrokeWidth),this.wordBreak=MA(A,VC,e.wordBreak),this.zIndex=MA(A,GC,e.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return ei(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return bt(this.display,4)||bt(this.display,33554432)||bt(this.display,268435456)||bt(this.display,536870912)||bt(this.display,67108864)||bt(this.display,134217728)},r}(),u4=function(){function r(A,e){this.content=MA(A,A4,e.content),this.quotes=MA(A,n4,e.quotes)}return r}(),_0=function(){function r(A,e){this.counterIncrement=MA(A,e4,e.counterIncrement),this.counterReset=MA(A,t4,e.counterReset)}return r}(),MA=function(r,A,e){var t=new o0,n=e!==null&&typeof e!="undefined"?e.toString():A.initialValue;t.write(n);var i=new l0(t.read());switch(A.type){case 2:var a=i.parseComponentValue();return A.parse(r,Ne(a)?a.value:A.initialValue);case 0:return A.parse(r,i.parseComponentValue());case 1:return A.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return wl.parse(r,i.parseComponentValue());case"color":return Ai.parse(r,i.parseComponentValue());case"image":return vf.parse(r,i.parseComponentValue());case"length":var s=i.parseComponentValue();return Jn(s)?s:Ot;case"length-percentage":var o=i.parseComponentValue();return gt(o)?o:Ot;case"time":return O0.parse(r,i.parseComponentValue())}break}},c4="data-html2canvas-debug",f4=function(r){var A=r.getAttribute(c4);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},wf=function(r,A){var e=f4(r);return e===1||A===e},dn=function(){function r(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,wf(e,3))debugger;this.styles=new l4(A,window.getComputedStyle(e,null)),Tf(e)&&(this.styles.animationDuration.some(function(t){return t>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Zo(this.context,e),wf(e,4)&&(this.flags|=16)}return r}(),h4="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",P0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ps=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Sl=0;Sl<P0.length;Sl++)Ps[P0.charCodeAt(Sl)]=Sl;for(var d4=function(r){var A=r.length*.75,e=r.length,t,n=0,i,a,s,o;r[r.length-1]==="="&&(A--,r[r.length-2]==="="&&A--);var u=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(A):new Array(A),f=Array.isArray(u)?u:new Uint8Array(u);for(t=0;t<e;t+=4)i=Ps[r.charCodeAt(t)],a=Ps[r.charCodeAt(t+1)],s=Ps[r.charCodeAt(t+2)],o=Ps[r.charCodeAt(t+3)],f[n++]=i<<2|a>>4,f[n++]=(a&15)<<4|s>>2,f[n++]=(s&3)<<6|o&63;return u},g4=function(r){for(var A=r.length,e=[],t=0;t<A;t+=2)e.push(r[t+1]<<8|r[t]);return e},p4=function(r){for(var A=r.length,e=[],t=0;t<A;t+=4)e.push(r[t+3]<<24|r[t+2]<<16|r[t+1]<<8|r[t]);return e},Hi=5,mf=11,yf=2,v4=mf-Hi,D0=65536>>Hi,B4=1<<Hi,bf=B4-1,w4=1024>>Hi,m4=D0+w4,y4=m4,b4=32,C4=y4+b4,F4=65536>>mf,Q4=1<<v4,U4=Q4-1,R0=function(r,A,e){return r.slice?r.slice(A,e):new Uint16Array(Array.prototype.slice.call(r,A,e))},E4=function(r,A,e){return r.slice?r.slice(A,e):new Uint32Array(Array.prototype.slice.call(r,A,e))},x4=function(r,A){var e=d4(r),t=Array.isArray(e)?p4(e):new Uint32Array(e),n=Array.isArray(e)?g4(e):new Uint16Array(e),i=24,a=R0(n,i/2,t[4]/2),s=t[5]===2?R0(n,(i+t[4])/2):E4(t,Math.ceil((i+t[4])/4));return new I4(t[0],t[1],t[2],t[3],a,s)},I4=function(){function r(A,e,t,n,i,a){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=n,this.index=i,this.data=a}return r.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Hi],e=(e<<yf)+(A&bf),this.data[e];if(A<=65535)return e=this.index[D0+(A-55296>>Hi)],e=(e<<yf)+(A&bf),this.data[e];if(A<this.highStart)return e=C4-F4+(A>>mf),e=this.index[e],e+=A>>Hi&U4,e=this.index[e],e=(e<<yf)+(A&bf),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),M0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S4=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ll=0;Ll<M0.length;Ll++)S4[M0.charCodeAt(Ll)]=Ll;var L4=1,Cf=2,Ff=3,k0=4,K0=5,N4=7,j0=8,Qf=9,Uf=10,V0=11,G0=12,$0=13,q0=14,Ef=15,T4=function(r){for(var A=[],e=0,t=r.length;e<t;){var n=r.charCodeAt(e++);if(n>=55296&&n<=56319&&e<t){var i=r.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},O4=function(){for(var r=[],A=0;A<arguments.length;A++)r[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var e=r.length;if(!e)return"";for(var t=[],n=-1,i="";++n<e;){var a=r[n];a<=65535?t.push(a):(a-=65536,t.push((a>>10)+55296,a%1024+56320)),(n+1===e||t.length>16384)&&(i+=String.fromCharCode.apply(String,t),t.length=0)}return i},H4=x4(h4),Sr="×",xf="÷",_4=function(r){return H4.get(r)},P4=function(r,A,e){var t=e-2,n=A[t],i=A[e-1],a=A[e];if(i===Cf&&a===Ff)return Sr;if(i===Cf||i===Ff||i===k0||a===Cf||a===Ff||a===k0)return xf;if(i===j0&&[j0,Qf,V0,G0].indexOf(a)!==-1||(i===V0||i===Qf)&&(a===Qf||a===Uf)||(i===G0||i===Uf)&&a===Uf||a===$0||a===K0||a===N4||i===L4)return Sr;if(i===$0&&a===q0){for(;n===K0;)n=A[--t];if(n===q0)return Sr}if(i===Ef&&a===Ef){for(var s=0;n===Ef;)s++,n=A[--t];if(s%2===0)return Sr}return xf},D4=function(r){var A=T4(r),e=A.length,t=0,n=0,i=A.map(_4);return{next:function(){if(t>=e)return{done:!0,value:null};for(var a=Sr;t<e&&(a=P4(A,i,++t))===Sr;);if(a!==Sr||t===e){var s=O4.apply(null,A.slice(n,t));return n=t,{value:s,done:!1}}return{done:!0,value:null}}}},R4=function(r){for(var A=D4(r),e=[],t;!(t=A.next()).done;)t.value&&e.push(t.value.slice());return e},M4=function(r){var A=123;if(r.createRange){var e=r.createRange();if(e.getBoundingClientRect){var t=r.createElement("boundtest");t.style.height=A+"px",t.style.display="block",r.body.appendChild(t),e.selectNode(t);var n=e.getBoundingClientRect(),i=Math.round(n.height);if(r.body.removeChild(t),i===A)return!0}}return!1},k4=function(r){var A=r.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",r.body.appendChild(A);var e=r.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var t=A.firstChild,n=Al(t.data).map(function(o){return rt(o)}),i=0,a={},s=n.every(function(o,u){e.setStart(t,i),e.setEnd(t,i+o.length);var f=e.getBoundingClientRect();i+=o.length;var d=f.x>a.x||f.y>a.y;return a=f,u===0?!0:d});return r.body.removeChild(A),s},K4=function(){return typeof new Image().crossOrigin!="undefined"},j4=function(){return typeof new XMLHttpRequest().responseType=="string"},V4=function(r){var A=new Image,e=r.createElement("canvas"),t=e.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),e.toDataURL()}catch(n){return!1}return!0},W0=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},G4=function(r){var A=r.createElement("canvas"),e=100;A.width=e,A.height=e;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,e,e);var n=new Image,i=A.toDataURL();n.src=i;var a=If(e,e,0,0,n);return t.fillStyle="red",t.fillRect(0,0,e,e),z0(a).then(function(s){t.drawImage(s,0,0);var o=t.getImageData(0,0,e,e).data;t.fillStyle="red",t.fillRect(0,0,e,e);var u=r.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=e+"px",W0(o)?z0(If(e,e,0,0,u)):Promise.reject(!1)}).then(function(s){return t.drawImage(s,0,0),W0(t.getImageData(0,0,e,e).data)}).catch(function(){return!1})},If=function(r,A,e,t,n){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",r.toString()),a.setAttributeNS(null,"height",A.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",e.toString()),s.setAttributeNS(null,"y",t.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(n),a},z0=function(r){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},Ht={get SUPPORT_RANGE_BOUNDS(){var r=M4(document);return Object.defineProperty(Ht,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=Ht.SUPPORT_RANGE_BOUNDS&&k4(document);return Object.defineProperty(Ht,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=V4(document);return Object.defineProperty(Ht,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?G4(document):Promise.resolve(!1);return Object.defineProperty(Ht,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=K4();return Object.defineProperty(Ht,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=j4();return Object.defineProperty(Ht,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ht,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Ht,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Ds=function(){function r(A,e){this.text=A,this.bounds=e}return r}(),$4=function(r,A,e,t){var n=z4(A,e),i=[],a=0;return n.forEach(function(s){if(e.textDecorationLine.length||s.trim().length>0)if(Ht.SUPPORT_RANGE_BOUNDS){var o=X0(t,a,s.length).getClientRects();if(o.length>1){var u=Sf(s),f=0;u.forEach(function(p){i.push(new Ds(p,Un.fromDOMRectList(r,X0(t,f+a,p.length).getClientRects()))),f+=p.length})}else i.push(new Ds(s,Un.fromDOMRectList(r,o)))}else{var d=t.splitText(s.length);i.push(new Ds(s,q4(r,t))),t=d}else Ht.SUPPORT_RANGE_BOUNDS||(t=t.splitText(s.length));a+=s.length}),i},q4=function(r,A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var i=Zo(r,t);return t.firstChild&&n.replaceChild(t.firstChild,t),i}}return Un.EMPTY},X0=function(r,A,e){var t=r.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(r,A),n.setEnd(r,A+e),n},Sf=function(r){if(Ht.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(r)).map(function(e){return e.segment})}return R4(r)},W4=function(r,A){if(Ht.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(r)).map(function(t){return t.segment})}return Y4(r,A)},z4=function(r,A){return A.letterSpacing!==0?Sf(r):W4(r,A)},X4=[32,160,4961,65792,65793,4153,4241],Y4=function(r,A){for(var e=Fy(r,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,i=function(){if(n.value){var a=n.value.slice(),s=Al(a),o="";s.forEach(function(u){X4.indexOf(u)===-1?o+=rt(u):(o.length&&t.push(o),t.push(rt(u)),o="")}),o.length&&t.push(o)}};!(n=e.next()).done;)i();return t},J4=function(){function r(A,e,t){this.text=Z4(e.data,t.textTransform),this.textBounds=$4(A,this.text,t,e)}return r}(),Z4=function(r,A){switch(A){case 1:return r.toLowerCase();case 3:return r.replace(AF,eF);case 2:return r.toUpperCase();default:return r}},AF=/(^|\s|:|-|\(|\))([a-z])/g,eF=function(r,A,e){return r.length>0?A+e.toUpperCase():r},Y0=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return A}(dn),J0=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return A}(dn),Z0=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this,i=new XMLSerializer,a=Zo(e,t);return t.setAttribute("width",a.width+"px"),t.setAttribute("height",a.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(dn),A1=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.value=t.value,n}return A}(dn),Lf=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return A}(dn),tF=[{type:15,flags:0,unit:"px",number:3}],rF=[{type:16,flags:0,number:50}],nF=function(r){return r.width>r.height?new Un(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new Un(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r},iF=function(r){var A=r.type===aF?new Array(r.value.length+1).join("•"):r.value;return A.length===0?r.placeholder||"":A},Nl="checkbox",Tl="radio",aF="password",e1=707406591,Nf=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=iF(t),(n.type===Nl||n.type===Tl)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=nF(n.bounds)),n.type){case Nl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=tF;break;case Tl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=rF;break}return n}return A}(dn),t1=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this,i=t.options[t.selectedIndex||0];return n.value=i&&i.text||"",n}return A}(dn),r1=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.value=t.value,n}return A}(dn),n1=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=a1(e,t.contentWindow.document.documentElement);var i=t.contentWindow.document.documentElement?Hs(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):xn.TRANSPARENT,a=t.contentWindow.document.body?Hs(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):xn.TRANSPARENT;n.backgroundColor=ei(i)?ei(a)?n.styles.backgroundColor:a:i}}catch(s){}return n}return A}(dn),sF=["OL","UL","MENU"],Ol=function(r,A,e,t){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,s1(n)&&n.data.trim().length>0)e.textNodes.push(new J4(r,n,e.styles));else if(Fa(n))if(h1(n)&&n.assignedNodes)n.assignedNodes().forEach(function(s){return Ol(r,s,e,t)});else{var a=i1(r,n);a.styles.isVisible()&&(oF(n,a,t)?a.flags|=4:lF(a.styles)&&(a.flags|=2),sF.indexOf(n.tagName)!==-1&&(a.flags|=8),e.elements.push(a),n.slot,n.shadowRoot?Ol(r,n.shadowRoot,a,t):!_l(n)&&!o1(n)&&!Pl(n)&&Ol(r,n,a,t))}},i1=function(r,A){return Hf(A)?new Y0(r,A):l1(A)?new J0(r,A):o1(A)?new Z0(r,A):uF(A)?new A1(r,A):cF(A)?new Lf(r,A):fF(A)?new Nf(r,A):Pl(A)?new t1(r,A):_l(A)?new r1(r,A):c1(A)?new n1(r,A):new dn(r,A)},a1=function(r,A){var e=i1(r,A);return e.flags|=4,Ol(r,A,e,e),e},oF=function(r,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Of(r)&&e.styles.isTransparent()},lF=function(r){return r.isPositioned()||r.isFloating()},s1=function(r){return r.nodeType===Node.TEXT_NODE},Fa=function(r){return r.nodeType===Node.ELEMENT_NODE},Tf=function(r){return Fa(r)&&typeof r.style!="undefined"&&!Hl(r)},Hl=function(r){return typeof r.className=="object"},uF=function(r){return r.tagName==="LI"},cF=function(r){return r.tagName==="OL"},fF=function(r){return r.tagName==="INPUT"},hF=function(r){return r.tagName==="HTML"},o1=function(r){return r.tagName==="svg"},Of=function(r){return r.tagName==="BODY"},l1=function(r){return r.tagName==="CANVAS"},u1=function(r){return r.tagName==="VIDEO"},Hf=function(r){return r.tagName==="IMG"},c1=function(r){return r.tagName==="IFRAME"},f1=function(r){return r.tagName==="STYLE"},dF=function(r){return r.tagName==="SCRIPT"},_l=function(r){return r.tagName==="TEXTAREA"},Pl=function(r){return r.tagName==="SELECT"},h1=function(r){return r.tagName==="SLOT"},d1=function(r){return r.tagName.indexOf("-")>0},gF=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},r.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},r.prototype.pop=function(A){var e=this;A.forEach(function(t){return e.counters[t].pop()})},r.prototype.parse=function(A){var e=this,t=A.counterIncrement,n=A.counterReset,i=!0;t!==null&&t.forEach(function(s){var o=e.counters[s.counter];o&&s.increment!==0&&(i=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});var a=[];return i&&n.forEach(function(s){var o=e.counters[s.counter];a.push(s.counter),o||(o=e.counters[s.counter]=[]),o.push(s.reset)}),a},r}(),g1={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},p1={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},pF={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},vF={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Qa=function(r,A,e,t,n,i){return r<A||r>e?Ms(r,n,i.length>0):t.integers.reduce(function(a,s,o){for(;r>=s;)r-=s,a+=t.values[o];return a},"")+i},v1=function(r,A,e,t){var n="";do e||r--,n=t(r)+n,r/=A;while(r*A>=A);return n},nt=function(r,A,e,t,n){var i=e-A+1;return(r<0?"-":"")+(v1(Math.abs(r),i,t,function(a){return rt(Math.floor(a%i)+A)})+n)},_i=function(r,A,e){e===void 0&&(e=". ");var t=A.length;return v1(Math.abs(r),t,!1,function(n){return A[Math.floor(n%t)]})+e},Ua=1,ri=2,ni=4,Rs=8,In=function(r,A,e,t,n,i){if(r<-9999||r>9999)return Ms(r,4,n.length>0);var a=Math.abs(r),s=n;if(a===0)return A[0]+s;for(var o=0;a>0&&o<=4;o++){var u=a%10;u===0&&bt(i,Ua)&&s!==""?s=A[u]+s:u>1||u===1&&o===0||u===1&&o===1&&bt(i,ri)||u===1&&o===1&&bt(i,ni)&&r>100||u===1&&o>1&&bt(i,Rs)?s=A[u]+(o>0?e[o-1]:"")+s:u===1&&o>0&&(s=e[o-1]+s),a=Math.floor(a/10)}return(r<0?t:"")+s},B1="十百千萬",w1="拾佰仟萬",m1="マイナス",_f="마이너스",Ms=function(r,A,e){var t=e?". ":"",n=e?"、":"",i=e?", ":"",a=e?" ":"";switch(A){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=nt(r,48,57,!0,t);return s.length<4?"0"+s:s;case 4:return _i(r,"〇一二三四五六七八九",n);case 6:return Qa(r,1,3999,g1,3,t).toLowerCase();case 7:return Qa(r,1,3999,g1,3,t);case 8:return nt(r,945,969,!1,t);case 9:return nt(r,97,122,!1,t);case 10:return nt(r,65,90,!1,t);case 11:return nt(r,1632,1641,!0,t);case 12:case 49:return Qa(r,1,9999,p1,3,t);case 35:return Qa(r,1,9999,p1,3,t).toLowerCase();case 13:return nt(r,2534,2543,!0,t);case 14:case 30:return nt(r,6112,6121,!0,t);case 15:return _i(r,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return _i(r,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return In(r,"零一二三四五六七八九",B1,"負",n,ri|ni|Rs);case 47:return In(r,"零壹貳參肆伍陸柒捌玖",w1,"負",n,Ua|ri|ni|Rs);case 42:return In(r,"零一二三四五六七八九",B1,"负",n,ri|ni|Rs);case 41:return In(r,"零壹贰叁肆伍陆柒捌玖",w1,"负",n,Ua|ri|ni|Rs);case 26:return In(r,"〇一二三四五六七八九","十百千万",m1,n,0);case 25:return In(r,"零壱弐参四伍六七八九","拾百千万",m1,n,Ua|ri|ni);case 31:return In(r,"영일이삼사오육칠팔구","십백천만",_f,i,Ua|ri|ni);case 33:return In(r,"零一二三四五六七八九","十百千萬",_f,i,0);case 32:return In(r,"零壹貳參四五六七八九","拾百千",_f,i,Ua|ri|ni);case 18:return nt(r,2406,2415,!0,t);case 20:return Qa(r,1,19999,vF,3,t);case 21:return nt(r,2790,2799,!0,t);case 22:return nt(r,2662,2671,!0,t);case 22:return Qa(r,1,10999,pF,3,t);case 23:return _i(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return _i(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return nt(r,3302,3311,!0,t);case 28:return _i(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return _i(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return nt(r,3792,3801,!0,t);case 37:return nt(r,6160,6169,!0,t);case 38:return nt(r,4160,4169,!0,t);case 39:return nt(r,2918,2927,!0,t);case 40:return nt(r,1776,1785,!0,t);case 43:return nt(r,3046,3055,!0,t);case 44:return nt(r,3174,3183,!0,t);case 45:return nt(r,3664,3673,!0,t);case 46:return nt(r,3872,3881,!0,t);case 3:default:return nt(r,48,57,!0,t)}},y1="data-html2canvas-ignore",b1=function(){function r(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new gF,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(A,e){var t=this,n=BF(A,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,a=A.defaultView.pageYOffset,s=n.contentWindow,o=s.document,u=yF(n).then(function(){return Jt(t,void 0,void 0,function(){var f,d;return kt(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(QF),s&&(s.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0))),f=this.options.onclone,d=this.clonedReferenceElement,typeof d=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,mF(o)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(o,d)}).then(function(){return n})]:[2,n]}})})});return o.open(),o.write(CF(document.doctype)+"<html></html>"),FF(this.referenceElement.ownerDocument,i,a),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),u},r.prototype.createElementClone=function(A){if(wf(A,2))debugger;if(l1(A))return this.createCanvasClone(A);if(u1(A))return this.createVideoClone(A);if(f1(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Hf(e)&&(Hf(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),d1(e)?this.createCustomElementClone(e):e},r.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Pf(A.style,e),e},r.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},r.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(u){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var s=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.getContext("webgl");if(s){var o=s.getContextAttributes();(o==null?void 0:o.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}a.drawImage(A,0,0)}return n}catch(u){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},r.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(i){this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},r.prototype.appendChildNode=function(A,e,t){(!Fa(e)||!dF(e)&&!e.hasAttribute(y1)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Fa(e)||!f1(e))&&A.appendChild(this.cloneNode(e,t))},r.prototype.cloneChildNodes=function(A,e,t){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(Fa(i)&&h1(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(s){return n.appendChildNode(e,s,t)})}else this.appendChildNode(e,i,t)},r.prototype.cloneNode=function(A,e){if(s1(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Fa(A)&&(Tf(A)||Hl(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=t.getComputedStyle(A),a=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&Tf(n)&&(this.clonedReferenceElement=n),Of(n)&&xF(n);var o=this.counters.parse(new _0(this.context,i)),u=this.resolvePseudoContent(A,n,a,ks.BEFORE);d1(A)&&(e=!0),u1(A)||this.cloneChildNodes(A,n,e),u&&n.insertBefore(u,n.firstChild);var f=this.resolvePseudoContent(A,n,s,ks.AFTER);return f&&n.appendChild(f),this.counters.pop(o),(i&&(this.options.copyStyles||Hl(A))&&!c1(A)||e)&&Pf(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(_l(A)||Pl(A))&&(_l(n)||Pl(n))&&(n.value=A.value),n}return A.cloneNode(!1)},r.prototype.resolvePseudoContent=function(A,e,t,n){var i=this;if(t){var a=t.content,s=e.ownerDocument;if(!(!s||!a||a==="none"||a==="-moz-alt-content"||t.display==="none")){this.counters.parse(new _0(this.context,t));var o=new u4(this.context,t),u=s.createElement("html2canvaspseudoelement");Pf(t,u),o.content.forEach(function(d){if(d.type===0)u.appendChild(s.createTextNode(d.value));else if(d.type===22){var p=s.createElement("img");p.src=d.value,p.style.opacity="1",u.appendChild(p)}else if(d.type===18){if(d.name==="attr"){var h=d.values.filter(Ne);h.length&&u.appendChild(s.createTextNode(A.getAttribute(h[0].value)||""))}else if(d.name==="counter"){var m=d.values.filter(ba),w=m[0],F=m[1];if(w&&Ne(w)){var y=i.counters.getCounterValue(w.value),Q=F&&Ne(F)?Bf.parse(i.context,F.value):3;u.appendChild(s.createTextNode(Ms(y,Q,!1)))}}else if(d.name==="counters"){var T=d.values.filter(ba),w=T[0],P=T[1],F=T[2];if(w&&Ne(w)){var G=i.counters.getCounterValues(w.value),$=F&&Ne(F)?Bf.parse(i.context,F.value):3,j=P&&P.type===0?P.value:"",_=G.map(function(S){return Ms(S,$,!1)}).join(j);u.appendChild(s.createTextNode(_))}}}else if(d.type===20)switch(d.value){case"open-quote":u.appendChild(s.createTextNode(H0(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(s.createTextNode(H0(o.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(s.createTextNode(d.value))}}),u.className=Df+" "+Rf;var f=n===ks.BEFORE?" "+Df:" "+Rf;return Hl(e)?e.className.baseValue+=f:e.className+=f,u}}},r.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},r}(),ks;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(ks||(ks={}));var BF=function(r,A){var e=r.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(y1,"true"),r.body.appendChild(e),e},wF=function(r){return new Promise(function(A){if(r.complete){A();return}if(!r.src){A();return}r.onload=A,r.onerror=A})},mF=function(r){return Promise.all([].slice.call(r.images,0).map(wF))},yF=function(r){return new Promise(function(A,e){var t=r.contentWindow;if(!t)return e("No window assigned for iframe");var n=t.document;t.onload=r.onload=function(){t.onload=r.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(r))},50)}})},bF=["all","d","content"],Pf=function(r,A){for(var e=r.length-1;e>=0;e--){var t=r.item(e);bF.indexOf(t)===-1&&A.style.setProperty(t,r.getPropertyValue(t))}return A},CF=function(r){var A="";return r&&(A+="<!DOCTYPE ",r.name&&(A+=r.name),r.internalSubset&&(A+=r.internalSubset),r.publicId&&(A+='"'+r.publicId+'"'),r.systemId&&(A+='"'+r.systemId+'"'),A+=">"),A},FF=function(r,A,e){r&&r.defaultView&&(A!==r.defaultView.pageXOffset||e!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(A,e)},QF=function(r){var A=r[0],e=r[1],t=r[2];A.scrollLeft=e,A.scrollTop=t},UF=":before",EF=":after",Df="___html2canvas___pseudoelement_before",Rf="___html2canvas___pseudoelement_after",C1=`{
|
|
557
|
+
content: "" !important;
|
|
558
|
+
display: none !important;
|
|
559
|
+
}`,xF=function(r){IF(r,"."+Df+UF+C1+`
|
|
560
|
+
.`+Rf+EF+C1)},IF=function(r,A){var e=r.ownerDocument;if(e){var t=e.createElement("style");t.textContent=A,r.appendChild(t)}},F1=function(){function r(){}return r.getOrigin=function(A){var e=r._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},r.isSameOrigin=function(A){return r.getOrigin(A)===r._origin},r.setContext=function(A){r._link=A.document.createElement("a"),r._origin=r.getOrigin(A.location.href)},r._origin="about:blank",r}(),SF=function(){function r(A,e){this.context=A,this._options=e,this._cache={}}return r.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(kf(A)||OF(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},r.prototype.match=function(A){return this._cache[A]},r.prototype.loadImage=function(A){return Jt(this,void 0,void 0,function(){var e,t,n,i,a=this;return kt(this,function(s){switch(s.label){case 0:return e=F1.isSameOrigin(A),t=!Mf(A)&&this._options.useCORS===!0&&Ht.SUPPORT_CORS_IMAGES&&!e,n=!Mf(A)&&!e&&!kf(A)&&typeof this._options.proxy=="string"&&Ht.SUPPORT_CORS_XHR&&!t,!e&&this._options.allowTaint===!1&&!Mf(A)&&!kf(A)&&!n&&!t?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(o,u){var f=new Image;f.onload=function(){return o(f)},f.onerror=u,(HF(i)||t)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return o(f)},500),a._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},r.prototype.has=function(A){return typeof this._cache[A]!="undefined"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,a){var s=Ht.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(s==="text")i(o.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(p){return a(p)},!1),d.readAsDataURL(o.response)}else a("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=a;var u=t.indexOf("?")>-1?"&":"?";if(o.open("GET",""+t+u+"url="+encodeURIComponent(A)+"&responseType="+s),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var f=e._options.imageTimeout;o.timeout=f,o.ontimeout=function(){return a("Timed out ("+f+"ms) proxying "+n)}}o.send()})},r}(),LF=/^data:image\/svg\+xml/i,NF=/^data:image\/.*;base64,/i,TF=/^data:image\/.*/i,OF=function(r){return Ht.SUPPORT_SVG_DRAWING||!_F(r)},Mf=function(r){return TF.test(r)},HF=function(r){return NF.test(r)},kf=function(r){return r.substr(0,4)==="blob"},_F=function(r){return r.substr(-3).toLowerCase()==="svg"||LF.test(r)},PA=function(){function r(A,e){this.type=0,this.x=A,this.y=e}return r.prototype.add=function(A,e){return new r(this.x+A,this.y+e)},r}(),Ea=function(r,A,e){return new PA(r.x+(A.x-r.x)*e,r.y+(A.y-r.y)*e)},Dl=function(){function r(A,e,t,n){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=n}return r.prototype.subdivide=function(A,e){var t=Ea(this.start,this.startControl,A),n=Ea(this.startControl,this.endControl,A),i=Ea(this.endControl,this.end,A),a=Ea(t,n,A),s=Ea(n,i,A),o=Ea(a,s,A);return e?new r(this.start,t,a,o):new r(o,s,i,this.end)},r.prototype.add=function(A,e){return new r(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Lr=function(r){return r.type===1},PF=function(){function r(A){var e=A.styles,t=A.bounds,n=Os(e.borderTopLeftRadius,t.width,t.height),i=n[0],a=n[1],s=Os(e.borderTopRightRadius,t.width,t.height),o=s[0],u=s[1],f=Os(e.borderBottomRightRadius,t.width,t.height),d=f[0],p=f[1],h=Os(e.borderBottomLeftRadius,t.width,t.height),m=h[0],w=h[1],F=[];F.push((i+o)/t.width),F.push((m+d)/t.width),F.push((a+w)/t.height),F.push((u+p)/t.height);var y=Math.max.apply(Math,F);y>1&&(i/=y,a/=y,o/=y,u/=y,d/=y,p/=y,m/=y,w/=y);var Q=t.width-o,T=t.height-p,P=t.width-d,G=t.height-w,$=e.borderTopWidth,j=e.borderRightWidth,_=e.borderBottomWidth,q=e.borderLeftWidth,iA=_e(e.paddingTop,A.bounds.width),S=_e(e.paddingRight,A.bounds.width),L=_e(e.paddingBottom,A.bounds.width),k=_e(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Ve(t.left+q/3,t.top+$/3,i-q/3,a-$/3,Ee.TOP_LEFT):new PA(t.left+q/3,t.top+$/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Ve(t.left+Q,t.top+$/3,o-j/3,u-$/3,Ee.TOP_RIGHT):new PA(t.left+t.width-j/3,t.top+$/3),this.bottomRightBorderDoubleOuterBox=d>0||p>0?Ve(t.left+P,t.top+T,d-j/3,p-_/3,Ee.BOTTOM_RIGHT):new PA(t.left+t.width-j/3,t.top+t.height-_/3),this.bottomLeftBorderDoubleOuterBox=m>0||w>0?Ve(t.left+q/3,t.top+G,m-q/3,w-_/3,Ee.BOTTOM_LEFT):new PA(t.left+q/3,t.top+t.height-_/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Ve(t.left+q*2/3,t.top+$*2/3,i-q*2/3,a-$*2/3,Ee.TOP_LEFT):new PA(t.left+q*2/3,t.top+$*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Ve(t.left+Q,t.top+$*2/3,o-j*2/3,u-$*2/3,Ee.TOP_RIGHT):new PA(t.left+t.width-j*2/3,t.top+$*2/3),this.bottomRightBorderDoubleInnerBox=d>0||p>0?Ve(t.left+P,t.top+T,d-j*2/3,p-_*2/3,Ee.BOTTOM_RIGHT):new PA(t.left+t.width-j*2/3,t.top+t.height-_*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||w>0?Ve(t.left+q*2/3,t.top+G,m-q*2/3,w-_*2/3,Ee.BOTTOM_LEFT):new PA(t.left+q*2/3,t.top+t.height-_*2/3),this.topLeftBorderStroke=i>0||a>0?Ve(t.left+q/2,t.top+$/2,i-q/2,a-$/2,Ee.TOP_LEFT):new PA(t.left+q/2,t.top+$/2),this.topRightBorderStroke=i>0||a>0?Ve(t.left+Q,t.top+$/2,o-j/2,u-$/2,Ee.TOP_RIGHT):new PA(t.left+t.width-j/2,t.top+$/2),this.bottomRightBorderStroke=d>0||p>0?Ve(t.left+P,t.top+T,d-j/2,p-_/2,Ee.BOTTOM_RIGHT):new PA(t.left+t.width-j/2,t.top+t.height-_/2),this.bottomLeftBorderStroke=m>0||w>0?Ve(t.left+q/2,t.top+G,m-q/2,w-_/2,Ee.BOTTOM_LEFT):new PA(t.left+q/2,t.top+t.height-_/2),this.topLeftBorderBox=i>0||a>0?Ve(t.left,t.top,i,a,Ee.TOP_LEFT):new PA(t.left,t.top),this.topRightBorderBox=o>0||u>0?Ve(t.left+Q,t.top,o,u,Ee.TOP_RIGHT):new PA(t.left+t.width,t.top),this.bottomRightBorderBox=d>0||p>0?Ve(t.left+P,t.top+T,d,p,Ee.BOTTOM_RIGHT):new PA(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=m>0||w>0?Ve(t.left,t.top+G,m,w,Ee.BOTTOM_LEFT):new PA(t.left,t.top+t.height),this.topLeftPaddingBox=i>0||a>0?Ve(t.left+q,t.top+$,Math.max(0,i-q),Math.max(0,a-$),Ee.TOP_LEFT):new PA(t.left+q,t.top+$),this.topRightPaddingBox=o>0||u>0?Ve(t.left+Math.min(Q,t.width-j),t.top+$,Q>t.width+j?0:Math.max(0,o-j),Math.max(0,u-$),Ee.TOP_RIGHT):new PA(t.left+t.width-j,t.top+$),this.bottomRightPaddingBox=d>0||p>0?Ve(t.left+Math.min(P,t.width-q),t.top+Math.min(T,t.height-_),Math.max(0,d-j),Math.max(0,p-_),Ee.BOTTOM_RIGHT):new PA(t.left+t.width-j,t.top+t.height-_),this.bottomLeftPaddingBox=m>0||w>0?Ve(t.left+q,t.top+Math.min(G,t.height-_),Math.max(0,m-q),Math.max(0,w-_),Ee.BOTTOM_LEFT):new PA(t.left+q,t.top+t.height-_),this.topLeftContentBox=i>0||a>0?Ve(t.left+q+k,t.top+$+iA,Math.max(0,i-(q+k)),Math.max(0,a-($+iA)),Ee.TOP_LEFT):new PA(t.left+q+k,t.top+$+iA),this.topRightContentBox=o>0||u>0?Ve(t.left+Math.min(Q,t.width+q+k),t.top+$+iA,Q>t.width+q+k?0:o-q+k,u-($+iA),Ee.TOP_RIGHT):new PA(t.left+t.width-(j+S),t.top+$+iA),this.bottomRightContentBox=d>0||p>0?Ve(t.left+Math.min(P,t.width-(q+k)),t.top+Math.min(T,t.height+$+iA),Math.max(0,d-(j+S)),p-(_+L),Ee.BOTTOM_RIGHT):new PA(t.left+t.width-(j+S),t.top+t.height-(_+L)),this.bottomLeftContentBox=m>0||w>0?Ve(t.left+q+k,t.top+G,Math.max(0,m-(q+k)),w-(_+L),Ee.BOTTOM_LEFT):new PA(t.left+q+k,t.top+t.height-(_+L))}return r}(),Ee;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ee||(Ee={}));var Ve=function(r,A,e,t,n){var i=4*((Math.sqrt(2)-1)/3),a=e*i,s=t*i,o=r+e,u=A+t;switch(n){case Ee.TOP_LEFT:return new Dl(new PA(r,u),new PA(r,u-s),new PA(o-a,A),new PA(o,A));case Ee.TOP_RIGHT:return new Dl(new PA(r,A),new PA(r+a,A),new PA(o,u-s),new PA(o,u));case Ee.BOTTOM_RIGHT:return new Dl(new PA(o,A),new PA(o,A+s),new PA(r+a,u),new PA(r,u));case Ee.BOTTOM_LEFT:default:return new Dl(new PA(o,u),new PA(o-a,u),new PA(r,A+s),new PA(r,A))}},Rl=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},DF=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},Ml=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},RF=function(){function r(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return r}(),kl=function(){function r(A,e){this.path=A,this.target=e,this.type=1}return r}(),MF=function(){function r(A){this.opacity=A,this.type=2,this.target=6}return r}(),kF=function(r){return r.type===0},Q1=function(r){return r.type===1},KF=function(r){return r.type===2},U1=function(r,A){return r.length===A.length?r.some(function(e,t){return e===A[t]}):!1},jF=function(r,A,e,t,n){return r.map(function(i,a){switch(a){case 0:return i.add(A,e);case 1:return i.add(A+t,e);case 2:return i.add(A+t,e+n);case 3:return i.add(A,e+n)}return i})},E1=function(){function r(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),x1=function(){function r(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new PF(this.container),this.container.styles.opacity<1&&this.effects.push(new MF(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new RF(t,n,i))}if(this.container.styles.overflowX!==0){var a=Rl(this.curves),s=Ml(this.curves);U1(a,s)?this.effects.push(new kl(a,6)):(this.effects.push(new kl(a,2)),this.effects.push(new kl(s,4)))}}return r.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var i=t.effects.filter(function(o){return!Q1(o)});if(e||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,i),e=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var a=Rl(t.curves),s=Ml(t.curves);U1(a,s)||n.unshift(new kl(s,6))}}else n.unshift.apply(n,i);t=t.parent}return n.filter(function(o){return bt(o.target,A)})},r}(),Kf=function(r,A,e,t){r.container.elements.forEach(function(n){var i=bt(n.flags,4),a=bt(n.flags,2),s=new x1(n,r);bt(n.styles.display,2048)&&t.push(s);var o=bt(n.flags,8)?[]:t;if(i||a){var u=i||n.styles.isPositioned()?e:A,f=new E1(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var p=0;u.negativeZIndex.some(function(m,w){return d>m.element.container.styles.zIndex.order?(p=w,!1):p>0}),u.negativeZIndex.splice(p,0,f)}else if(d>0){var h=0;u.positiveZIndex.some(function(m,w){return d>=m.element.container.styles.zIndex.order?(h=w+1,!1):h>0}),u.positiveZIndex.splice(h,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else n.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Kf(s,f,i?f:e,o)}else n.styles.isInlineLevel()?A.inlineLevel.push(s):A.nonInlineLevel.push(s),Kf(s,A,e,o);bt(n.flags,8)&&I1(n,o)})},I1=function(r,A){for(var e=r instanceof Lf?r.start:1,t=r instanceof Lf?r.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof A1&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=Ms(e,i.container.styles.listStyleType,!0),e+=t?-1:1}},VF=function(r){var A=new x1(r,null),e=new E1(A),t=[];return Kf(A,e,e,t),I1(A.container,t),e},S1=function(r,A){switch(A){case 0:return Nr(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return Nr(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return Nr(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return Nr(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},GF=function(r,A){switch(A){case 0:return Nr(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return Nr(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return Nr(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return Nr(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},$F=function(r,A){switch(A){case 0:return Nr(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return Nr(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return Nr(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return Nr(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},qF=function(r,A){switch(A){case 0:return Kl(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return Kl(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return Kl(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return Kl(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},Kl=function(r,A){var e=[];return Lr(r)?e.push(r.subdivide(.5,!1)):e.push(r),Lr(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Nr=function(r,A,e,t){var n=[];return Lr(r)?n.push(r.subdivide(.5,!1)):n.push(r),Lr(e)?n.push(e.subdivide(.5,!0)):n.push(e),Lr(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),Lr(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},L1=function(r){var A=r.bounds,e=r.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},jl=function(r){var A=r.styles,e=r.bounds,t=_e(A.paddingLeft,e.width),n=_e(A.paddingRight,e.width),i=_e(A.paddingTop,e.width),a=_e(A.paddingBottom,e.width);return e.add(t+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+n),-(A.borderTopWidth+A.borderBottomWidth+i+a))},WF=function(r,A){return r===0?A.bounds:r===2?jl(A):L1(A)},zF=function(r,A){return r===0?A.bounds:r===2?jl(A):L1(A)},jf=function(r,A,e){var t=WF(Ia(r.styles.backgroundOrigin,A),r),n=zF(Ia(r.styles.backgroundClip,A),r),i=XF(Ia(r.styles.backgroundSize,A),e,t),a=i[0],s=i[1],o=Os(Ia(r.styles.backgroundPosition,A),t.width-a,t.height-s),u=YF(Ia(r.styles.backgroundRepeat,A),o,i,t,n),f=Math.round(t.left+o[0]),d=Math.round(t.top+o[1]);return[u,f,d,a,s]},xa=function(r){return Ne(r)&&r.value===Ca.AUTO},Vl=function(r){return typeof r=="number"},XF=function(r,A,e){var t=A[0],n=A[1],i=A[2],a=r[0],s=r[1];if(!a)return[0,0];if(gt(a)&&s&>(s))return[_e(a,e.width),_e(s,e.height)];var o=Vl(i);if(Ne(a)&&(a.value===Ca.CONTAIN||a.value===Ca.COVER)){if(Vl(i)){var u=e.width/e.height;return u<i!=(a.value===Ca.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Vl(t),d=Vl(n),p=f||d;if(xa(a)&&(!s||xa(s))){if(f&&d)return[t,n];if(!o&&!p)return[e.width,e.height];if(p&&o){var h=f?t:n*i,m=d?n:t/i;return[h,m]}var w=f?t:e.width,F=d?n:e.height;return[w,F]}if(o){var y=0,Q=0;return gt(a)?y=_e(a,e.width):gt(s)&&(Q=_e(s,e.height)),xa(a)?y=Q*i:(!s||xa(s))&&(Q=y/i),[y,Q]}var T=null,P=null;if(gt(a)?T=_e(a,e.width):s&>(s)&&(P=_e(s,e.height)),T!==null&&(!s||xa(s))&&(P=f&&d?T/t*n:e.height),P!==null&&xa(a)&&(T=f&&d?P/n*t:e.width),T!==null&&P!==null)return[T,P];throw new Error("Unable to calculate background-size for element")},Ia=function(r,A){var e=r[A];return typeof e=="undefined"?r[0]:e},YF=function(r,A,e,t,n){var i=A[0],a=A[1],s=e[0],o=e[1];switch(r){case 2:return[new PA(Math.round(t.left),Math.round(t.top+a)),new PA(Math.round(t.left+t.width),Math.round(t.top+a)),new PA(Math.round(t.left+t.width),Math.round(o+t.top+a)),new PA(Math.round(t.left),Math.round(o+t.top+a))];case 3:return[new PA(Math.round(t.left+i),Math.round(t.top)),new PA(Math.round(t.left+i+s),Math.round(t.top)),new PA(Math.round(t.left+i+s),Math.round(t.height+t.top)),new PA(Math.round(t.left+i),Math.round(t.height+t.top))];case 1:return[new PA(Math.round(t.left+i),Math.round(t.top+a)),new PA(Math.round(t.left+i+s),Math.round(t.top+a)),new PA(Math.round(t.left+i+s),Math.round(t.top+a+o)),new PA(Math.round(t.left+i),Math.round(t.top+a+o))];default:return[new PA(Math.round(n.left),Math.round(n.top)),new PA(Math.round(n.left+n.width),Math.round(n.top)),new PA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new PA(Math.round(n.left),Math.round(n.height+n.top))]}},JF="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",N1="Hidden Text",ZF=function(){function r(A){this._data={},this._document=A}return r.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",a.appendChild(t),n.src=JF,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(N1)),t.appendChild(i),t.appendChild(n);var s=n.offsetTop-i.offsetTop+2;t.removeChild(i),t.appendChild(this._document.createTextNode(N1)),t.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-t.offsetTop+2;return a.removeChild(t),{baseline:s,middle:o}},r.prototype.getMetrics=function(A,e){var t=A+" "+e;return typeof this._data[t]=="undefined"&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},r}(),T1=function(){function r(A,e){this.context=A,this.options=e}return r}(),AQ=1e4,eQ=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new ZF(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return A.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(n){return t.applyEffect(n)})},A.prototype.applyEffect=function(e){this.ctx.save(),KF(e)&&(this.ctx.globalAlpha=e.opacity),kF(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Q1(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return Jt(this,void 0,void 0,function(){var t;return kt(this,function(n){switch(n.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return Jt(this,void 0,void 0,function(){return kt(this,function(t){switch(t.label){case 0:if(bt(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,t,n){var i=this;if(t===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var a=Sf(e.text);a.reduce(function(s,o){return i.ctx.fillText(o,s,e.bounds.top+n),s+i.ctx.measureText(o).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=aQ(e.fontFamily).join(", "),i=Ts(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(e,t){return Jt(this,void 0,void 0,function(){var n,i,a,s,o,u,f,d,p=this;return kt(this,function(h){return n=this.createFontStyle(t),i=n[0],a=n[1],s=n[2],this.ctx.font=i,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(a,s),u=o.baseline,f=o.middle,d=t.paintOrder,e.textBounds.forEach(function(m){d.forEach(function(w){switch(w){case 0:p.ctx.fillStyle=Ut(t.color),p.renderTextWithLetterSpacing(m,t.letterSpacing,u);var F=t.textShadow;F.length&&m.text.trim().length&&(F.slice(0).reverse().forEach(function(y){p.ctx.shadowColor=Ut(y.color),p.ctx.shadowOffsetX=y.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=y.offsetY.number*p.options.scale,p.ctx.shadowBlur=y.blur.number,p.renderTextWithLetterSpacing(m,t.letterSpacing,u)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),t.textDecorationLine.length&&(p.ctx.fillStyle=Ut(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(y){switch(y){case 1:p.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+u),m.bounds.width,1);break;case 2:p.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:p.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+f),m.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&m.text.trim().length&&(p.ctx.strokeStyle=Ut(t.webkitTextStrokeColor),p.ctx.lineWidth=t.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+u)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=jl(e),a=Ml(t);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return Jt(this,void 0,void 0,function(){var t,n,i,a,s,o,Q,Q,u,f,d,p,P,h,m,G,w,F,y,Q,T,P,G;return kt(this,function($){switch($.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,n=e.curves,i=t.styles,a=0,s=t.textNodes,$.label=1;case 1:return a<s.length?(o=s[a],[4,this.renderTextNode(o,i)]):[3,4];case 2:$.sent(),$.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof Y0))return[3,8];$.label=5;case 5:return $.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return Q=$.sent(),this.renderReplacedElement(t,n,Q),[3,8];case 7:return $.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof J0&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof Z0))return[3,12];$.label=9;case 9:return $.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return Q=$.sent(),this.renderReplacedElement(t,n,Q),[3,12];case 11:return $.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof n1&&t.tree?(u=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,u.render(t.tree)]):[3,14];case 13:f=$.sent(),t.width&&t.height&&this.ctx.drawImage(f,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),$.label=14;case 14:if(t instanceof Nf&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===Nl?t.checked&&(this.ctx.save(),this.path([new PA(t.bounds.left+d*.39363,t.bounds.top+d*.79),new PA(t.bounds.left+d*.16,t.bounds.top+d*.5549),new PA(t.bounds.left+d*.27347,t.bounds.top+d*.44071),new PA(t.bounds.left+d*.39694,t.bounds.top+d*.5649),new PA(t.bounds.left+d*.72983,t.bounds.top+d*.23),new PA(t.bounds.left+d*.84,t.bounds.top+d*.34085),new PA(t.bounds.left+d*.39363,t.bounds.top+d*.79)]),this.ctx.fillStyle=Ut(e1),this.ctx.fill(),this.ctx.restore()):t.type===Tl&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ut(e1),this.ctx.fill(),this.ctx.restore())),tQ(t)&&t.value.length){switch(p=this.createFontStyle(i),P=p[0],h=p[1],m=this.fontMetrics.getMetrics(P,h).baseline,this.ctx.font=P,this.ctx.fillStyle=Ut(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=nQ(t.styles.textAlign),G=jl(t),w=0,t.styles.textAlign){case 1:w+=G.width/2;break;case 2:w+=G.width;break}F=G.add(w,0,0,-G.height/2+1),this.ctx.save(),this.path([new PA(G.left,G.top),new PA(G.left+G.width,G.top),new PA(G.left+G.width,G.top+G.height),new PA(G.left,G.top+G.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ds(t.value,F),i.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!bt(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(y=t.styles.listStyleImage,y.type!==0)return[3,18];Q=void 0,T=y.url,$.label=15;case 15:return $.trys.push([15,17,,18]),[4,this.context.cache.match(T)];case 16:return Q=$.sent(),this.ctx.drawImage(Q,t.bounds.left-(Q.width+10),t.bounds.top),[3,18];case 17:return $.sent(),this.context.logger.error("Error loading list-style-image "+T),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==-1&&(P=this.createFontStyle(i)[0],this.ctx.font=P,this.ctx.fillStyle=Ut(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",G=new Un(t.bounds.left,t.bounds.top+_e(t.styles.paddingTop,t.bounds.width),t.bounds.width,N0(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ds(e.listValue,G),i.letterSpacing,N0(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),$.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return Jt(this,void 0,void 0,function(){var t,n,y,i,a,y,s,o,y,u,f,y,d,p,y,h,m,y,w,F,y;return kt(this,function(Q){switch(Q.label){case 0:if(bt(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:Q.sent(),t=0,n=e.negativeZIndex,Q.label=2;case 2:return t<n.length?(y=n[t],[4,this.renderStack(y)]):[3,5];case 3:Q.sent(),Q.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:Q.sent(),i=0,a=e.nonInlineLevel,Q.label=7;case 7:return i<a.length?(y=a[i],[4,this.renderNode(y)]):[3,10];case 8:Q.sent(),Q.label=9;case 9:return i++,[3,7];case 10:s=0,o=e.nonPositionedFloats,Q.label=11;case 11:return s<o.length?(y=o[s],[4,this.renderStack(y)]):[3,14];case 12:Q.sent(),Q.label=13;case 13:return s++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,Q.label=15;case 15:return u<f.length?(y=f[u],[4,this.renderStack(y)]):[3,18];case 16:Q.sent(),Q.label=17;case 17:return u++,[3,15];case 18:d=0,p=e.inlineLevel,Q.label=19;case 19:return d<p.length?(y=p[d],[4,this.renderNode(y)]):[3,22];case 20:Q.sent(),Q.label=21;case 21:return d++,[3,19];case 22:h=0,m=e.zeroOrAutoZIndexOrTransformedOrOpacity,Q.label=23;case 23:return h<m.length?(y=m[h],[4,this.renderStack(y)]):[3,26];case 24:Q.sent(),Q.label=25;case 25:return h++,[3,23];case 26:w=0,F=e.positiveZIndex,Q.label=27;case 27:return w<F.length?(y=F[w],[4,this.renderStack(y)]):[3,30];case 28:Q.sent(),Q.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var t=this;e.forEach(function(n,i){var a=Lr(n)?n.start:n;i===0?t.ctx.moveTo(a.x,a.y):t.ctx.lineTo(a.x,a.y),Lr(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(e,t,n,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.prototype.resizeImage=function(e,t,n){var i;if(e.width===t&&e.height===n)return e;var a=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=a.createElement("canvas");s.width=Math.max(1,t),s.height=Math.max(1,n);var o=s.getContext("2d");return o.drawImage(e,0,0,e.width,e.height,0,0,t,n),s},A.prototype.renderBackgroundImage=function(e){return Jt(this,void 0,void 0,function(){var t,n,i,a,s,o;return kt(this,function(u){switch(u.label){case 0:t=e.styles.backgroundImage.length-1,n=function(f){var d,p,h,iA,rA,oA,k,M,_,m,iA,rA,oA,k,M,w,F,y,Q,T,P,G,$,j,_,q,iA,S,L,k,M,sA,rA,oA,tA,aA,cA,QA,U,O,R,V;return kt(this,function(J){switch(J.label){case 0:if(f.type!==0)return[3,5];d=void 0,p=f.url,J.label=1;case 1:return J.trys.push([1,3,,4]),[4,i.context.cache.match(p)];case 2:return d=J.sent(),[3,4];case 3:return J.sent(),i.context.logger.error("Error loading background-image "+p),[3,4];case 4:return d&&(h=jf(e,t,[d.width,d.height,d.width/d.height]),iA=h[0],rA=h[1],oA=h[2],k=h[3],M=h[4],_=i.ctx.createPattern(i.resizeImage(d,k,M),"repeat"),i.renderRepeat(iA,_,rA,oA)),[3,6];case 5:kb(f)?(m=jf(e,t,[null,null,null]),iA=m[0],rA=m[1],oA=m[2],k=m[3],M=m[4],w=_b(f.angle,k,M),F=w[0],y=w[1],Q=w[2],T=w[3],P=w[4],G=document.createElement("canvas"),G.width=k,G.height=M,$=G.getContext("2d"),j=$.createLinearGradient(y,T,Q,P),y0(f.stops,F).forEach(function(AA){return j.addColorStop(AA.stop,Ut(AA.color))}),$.fillStyle=j,$.fillRect(0,0,k,M),k>0&&M>0&&(_=i.ctx.createPattern(G,"repeat"),i.renderRepeat(iA,_,rA,oA))):Kb(f)&&(q=jf(e,t,[null,null,null]),iA=q[0],S=q[1],L=q[2],k=q[3],M=q[4],sA=f.position.length===0?[gf]:f.position,rA=_e(sA[0],k),oA=_e(sA[sA.length-1],M),tA=Pb(f,rA,oA,k,M),aA=tA[0],cA=tA[1],aA>0&&cA>0&&(QA=i.ctx.createRadialGradient(S+rA,L+oA,0,S+rA,L+oA,aA),y0(f.stops,aA*2).forEach(function(AA){return QA.addColorStop(AA.stop,Ut(AA.color))}),i.path(iA),i.ctx.fillStyle=QA,aA!==cA?(U=e.bounds.left+.5*e.bounds.width,O=e.bounds.top+.5*e.bounds.height,R=cA/aA,V=1/R,i.ctx.save(),i.ctx.translate(U,O),i.ctx.transform(1,0,0,R,0,0),i.ctx.translate(-U,-O),i.ctx.fillRect(S,V*(L-O)+O,k,M*V),i.ctx.restore()):i.ctx.fill())),J.label=6;case 6:return t--,[2]}})},i=this,a=0,s=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return a<s.length?(o=s[a],[5,n(o)]):[3,4];case 2:u.sent(),u.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,t,n){return Jt(this,void 0,void 0,function(){return kt(this,function(i){return this.path(S1(n,t)),this.ctx.fillStyle=Ut(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,t,n,i){return Jt(this,void 0,void 0,function(){var a,s;return kt(this,function(o){switch(o.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,i)]:[3,2];case 1:return o.sent(),[2];case 2:return a=GF(i,n),this.path(a),this.ctx.fillStyle=Ut(e),this.ctx.fill(),s=$F(i,n),this.path(s),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return Jt(this,void 0,void 0,function(){var t,n,i,a,s,o,u,f,d=this;return kt(this,function(p){switch(p.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!ei(t.backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],a=rQ(Ia(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),ei(t.backgroundColor)||(this.ctx.fillStyle=Ut(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(h){d.ctx.save();var m=Rl(e.curves),w=h.inset?0:AQ,F=jF(m,-w+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(d.path(m),d.ctx.clip(),d.mask(F)):(d.mask(m),d.ctx.clip(),d.path(F)),d.ctx.shadowOffsetX=h.offsetX.number+w,d.ctx.shadowOffsetY=h.offsetY.number,d.ctx.shadowColor=Ut(h.color),d.ctx.shadowBlur=h.blur.number,d.ctx.fillStyle=h.inset?Ut(h.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),p.label=2;case 2:s=0,o=0,u=i,p.label=3;case 3:return o<u.length?(f=u[o],f.style!==0&&!ei(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,s,e.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,s,e.curves,3)];case 6:return p.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,s,e.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,s,e.curves)];case 10:p.sent(),p.label=11;case 11:s++,p.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,t,n,i,a){return Jt(this,void 0,void 0,function(){var s,o,u,f,d,p,h,m,w,F,y,Q,T,P,G,$,G,$;return kt(this,function(j){return this.ctx.save(),s=qF(i,n),o=S1(i,n),a===2&&(this.path(o),this.ctx.clip()),Lr(o[0])?(u=o[0].start.x,f=o[0].start.y):(u=o[0].x,f=o[0].y),Lr(o[1])?(d=o[1].end.x,p=o[1].end.y):(d=o[1].x,p=o[1].y),n===0||n===2?h=Math.abs(u-d):h=Math.abs(f-p),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(o.slice(0,2)),m=t<3?t*3:t*2,w=t<3?t*2:t,a===3&&(m=t,w=t),F=!0,h<=m*2?F=!1:h<=m*2+w?(y=h/(2*m+w),m*=y,w*=y):(Q=Math.floor((h+w)/(m+w)),T=(h-Q*m)/(Q-1),P=(h-(Q+1)*m)/Q,w=P<=0||Math.abs(w-T)<Math.abs(w-P)?T:P),F&&(a===3?this.ctx.setLineDash([0,m+w]):this.ctx.setLineDash([m,w])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=Ut(e),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(Lr(o[0])&&(G=o[3],$=o[0],this.ctx.beginPath(),this.formatPath([new PA(G.end.x,G.end.y),new PA($.start.x,$.start.y)]),this.ctx.stroke()),Lr(o[1])&&(G=o[1],$=o[2],this.ctx.beginPath(),this.formatPath([new PA(G.end.x,G.end.y),new PA($.start.x,$.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return Jt(this,void 0,void 0,function(){var t;return kt(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ut(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=VF(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(T1),tQ=function(r){return r instanceof r1||r instanceof t1?!0:r instanceof Nf&&r.type!==Tl&&r.type!==Nl},rQ=function(r,A){switch(r){case 0:return Rl(A);case 2:return DF(A);case 1:default:return Ml(A)}},nQ=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},iQ=["-apple-system","system-ui"],aQ=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(A){return iQ.indexOf(A)===-1}):r},sQ=function(r){Vr(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return A.prototype.render=function(e){return Jt(this,void 0,void 0,function(){var t,n;return kt(this,function(i){switch(i.label){case 0:return t=If(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,oQ(t)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ut(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(T1),oQ=function(r){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},lQ=function(){function r(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return r.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Jo([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},r.prototype.getTime=function(){return Date.now()-this.start},r.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Jo([this.id,this.getTime()+"ms"],A))},r.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Jo([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},r.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Jo([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},r.instances={},r}(),uQ=function(){function r(A,e){var t;this.windowBounds=e,this.instanceName="#"+r.instanceCount++,this.logger=new lQ({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new SF(this,A)}return r.instanceCount=1,r}(),cQ=function(r,A){return A===void 0&&(A={}),fQ(r,A)};typeof window!="undefined"&&F1.setContext(window);var fQ=function(r,A){return Jt(void 0,void 0,void 0,function(){var e,t,n,i,a,s,o,u,f,d,p,h,m,w,F,y,Q,T,P,G,j,$,j,_,q,iA,S,L,k,M,sA,rA,oA,tA,aA,cA,QA,U,O,R;return kt(this,function(V){switch(V.label){case 0:if(!r||typeof r!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=r.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(t=e.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(_=A.allowTaint)!==null&&_!==void 0?_:!1,imageTimeout:(q=A.imageTimeout)!==null&&q!==void 0?q:15e3,proxy:A.proxy,useCORS:(iA=A.useCORS)!==null&&iA!==void 0?iA:!1},i=qc({logging:(S=A.logging)!==null&&S!==void 0?S:!0,cache:A.cache},n),a={windowWidth:(L=A.windowWidth)!==null&&L!==void 0?L:t.innerWidth,windowHeight:(k=A.windowHeight)!==null&&k!==void 0?k:t.innerHeight,scrollX:(M=A.scrollX)!==null&&M!==void 0?M:t.pageXOffset,scrollY:(sA=A.scrollY)!==null&&sA!==void 0?sA:t.pageYOffset},s=new Un(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),o=new uQ(i,s),u=(rA=A.foreignObjectRendering)!==null&&rA!==void 0?rA:!1,f={allowTaint:(oA=A.allowTaint)!==null&&oA!==void 0?oA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},o.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),d=new b1(o,r,f),p=d.clonedReferenceElement,p?[4,d.toIFrame(e,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=V.sent(),m=Of(p)||hF(p)?jm(p.ownerDocument):Zo(o,p),w=m.width,F=m.height,y=m.left,Q=m.top,T=hQ(o,p,A.backgroundColor),P={canvas:A.canvas,backgroundColor:T,scale:(aA=(tA=A.scale)!==null&&tA!==void 0?tA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((cA=A.x)!==null&&cA!==void 0?cA:0)+y,y:((QA=A.y)!==null&&QA!==void 0?QA:0)+Q,width:(U=A.width)!==null&&U!==void 0?U:Math.ceil(w),height:(O=A.height)!==null&&O!==void 0?O:Math.ceil(F)},u?(o.logger.debug("Document cloned, using foreign object rendering"),j=new sQ(o,P),[4,j.render(p)]):[3,3];case 2:return G=V.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+y+","+Q+" with size "+w+"x"+F+" using computed rendering"),o.logger.debug("Starting DOM parsing"),$=a1(o,p),T===$.styles.backgroundColor&&($.styles.backgroundColor=xn.TRANSPARENT),o.logger.debug("Starting renderer for element at "+P.x+","+P.y+" with size "+P.width+"x"+P.height),j=new eQ(o,P),[4,j.render($)];case 4:G=V.sent(),V.label=5;case 5:return(!((R=A.removeContainer)!==null&&R!==void 0)||R)&&(b1.destroy(h)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,G]}})})},hQ=function(r,A,e){var t=A.ownerDocument,n=t.documentElement?Hs(r,getComputedStyle(t.documentElement).backgroundColor):xn.TRANSPARENT,i=t.body?Hs(r,getComputedStyle(t.body).backgroundColor):xn.TRANSPARENT,a=typeof e=="string"?Hs(r,e):e===null?xn.TRANSPARENT:4294967295;return A===t.documentElement?ei(n)?ei(i)?a:i:n:a};const O1=Object.freeze(Object.defineProperty({__proto__:null,default:cQ},Symbol.toStringTag,{value:"Module"}));function Qe(r){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},Qe(r)}var jt=Uint8Array,wr=Uint16Array,Vf=Int32Array,Gl=new jt([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]),$l=new jt([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]),Gf=new jt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),H1=function(r,A){for(var e=new wr(31),t=0;t<31;++t)e[t]=A+=1<<r[t-1];for(var n=new Vf(e[30]),t=1;t<30;++t)for(var i=e[t];i<e[t+1];++i)n[i]=i-e[t]<<5|t;return{b:e,r:n}},_1=H1(Gl,2),P1=_1.b,$f=_1.r;P1[28]=258,$f[258]=28;for(var D1=H1($l,0),dQ=D1.b,R1=D1.r,qf=new wr(32768),ke=0;ke<32768;++ke){var ii=(ke&43690)>>1|(ke&21845)<<1;ii=(ii&52428)>>2|(ii&13107)<<2,ii=(ii&61680)>>4|(ii&3855)<<4,qf[ke]=((ii&65280)>>8|(ii&255)<<8)>>1}for(var gn=function(r,A,e){for(var t=r.length,n=0,i=new wr(A);n<t;++n)r[n]&&++i[r[n]-1];var a=new wr(A);for(n=1;n<A;++n)a[n]=a[n-1]+i[n-1]<<1;var s;if(e){s=new wr(1<<A);var o=15-A;for(n=0;n<t;++n)if(r[n])for(var u=n<<4|r[n],f=A-r[n],d=a[r[n]-1]++<<f,p=d|(1<<f)-1;d<=p;++d)s[qf[d]>>o]=u}else for(s=new wr(t),n=0;n<t;++n)r[n]&&(s[n]=qf[a[r[n]-1]++]>>15-r[n]);return s},ai=new jt(288),ke=0;ke<144;++ke)ai[ke]=8;for(var ke=144;ke<256;++ke)ai[ke]=9;for(var ke=256;ke<280;++ke)ai[ke]=7;for(var ke=280;ke<288;++ke)ai[ke]=8;for(var Ks=new jt(32),ke=0;ke<32;++ke)Ks[ke]=5;var gQ=gn(ai,9,0),pQ=gn(ai,9,1),vQ=gn(Ks,5,0),BQ=gn(Ks,5,1),Wf=function(r){for(var A=r[0],e=1;e<r.length;++e)r[e]>A&&(A=r[e]);return A},$r=function(r,A,e){var t=A/8|0;return(r[t]|r[t+1]<<8)>>(A&7)&e},zf=function(r,A){var e=A/8|0;return(r[e]|r[e+1]<<8|r[e+2]<<16)>>(A&7)},Xf=function(r){return(r+7)/8|0},M1=function(r,A,e){return(e==null||e>r.length)&&(e=r.length),new jt(r.subarray(A,e))},wQ=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],qr=function(r,A,e){var t=new Error(A||wQ[r]);if(t.code=r,Error.captureStackTrace&&Error.captureStackTrace(t,qr),!e)throw t;return t},mQ=function(r,A,e,t){var n=r.length,i=0;if(!n||A.f&&!A.l)return e||new jt(0);var a=!e,s=a||A.i!=2,o=A.i;a&&(e=new jt(n*3));var u=function(FA){var NA=e.length;if(FA>NA){var LA=new jt(Math.max(NA*2,FA));LA.set(e),e=LA}},f=A.f||0,d=A.p||0,p=A.b||0,h=A.l,m=A.d,w=A.m,F=A.n,y=n*8;do{if(!h){f=$r(r,d,1);var Q=$r(r,d+1,3);if(d+=3,Q)if(Q==1)h=pQ,m=BQ,w=9,F=5;else if(Q==2){var $=$r(r,d,31)+257,j=$r(r,d+10,15)+4,_=$+$r(r,d+5,31)+1;d+=14;for(var q=new jt(_),iA=new jt(19),S=0;S<j;++S)iA[Gf[S]]=$r(r,d+S*3,7);d+=j*3;for(var L=Wf(iA),k=(1<<L)-1,M=gn(iA,L,1),S=0;S<_;){var sA=M[$r(r,d,k)];d+=sA&15;var T=sA>>4;if(T<16)q[S++]=T;else{var rA=0,oA=0;for(T==16?(oA=3+$r(r,d,3),d+=2,rA=q[S-1]):T==17?(oA=3+$r(r,d,7),d+=3):T==18&&(oA=11+$r(r,d,127),d+=7);oA--;)q[S++]=rA}}var tA=q.subarray(0,$),aA=q.subarray($);w=Wf(tA),F=Wf(aA),h=gn(tA,w,1),m=gn(aA,F,1)}else qr(1);else{var T=Xf(d)+4,P=r[T-4]|r[T-3]<<8,G=T+P;if(G>n){o&&qr(0);break}s&&u(p+P),e.set(r.subarray(T,G),p),A.b=p+=P,A.p=d=G*8,A.f=f;continue}if(d>y){o&&qr(0);break}}s&&u(p+131072);for(var cA=(1<<w)-1,QA=(1<<F)-1,U=d;;U=d){var rA=h[zf(r,d)&cA],O=rA>>4;if(d+=rA&15,d>y){o&&qr(0);break}if(rA||qr(2),O<256)e[p++]=O;else if(O==256){U=d,h=null;break}else{var R=O-254;if(O>264){var S=O-257,V=Gl[S];R=$r(r,d,(1<<V)-1)+P1[S],d+=V}var J=m[zf(r,d)&QA],AA=J>>4;J||qr(3),d+=J&15;var aA=dQ[AA];if(AA>3){var V=$l[AA];aA+=zf(r,d)&(1<<V)-1,d+=V}if(d>y){o&&qr(0);break}s&&u(p+131072);var fA=p+R;if(p<aA){var hA=i-aA,EA=Math.min(aA,fA);for(hA+p<0&&qr(3);p<EA;++p)e[p]=t[hA+p]}for(;p<fA;++p)e[p]=e[p-aA]}}A.l=h,A.p=U,A.b=p,A.f=f,h&&(f=1,A.m=w,A.d=m,A.n=F)}while(!f);return p!=e.length&&a?M1(e,0,p):e.subarray(0,p)},Sn=function(r,A,e){e<<=A&7;var t=A/8|0;r[t]|=e,r[t+1]|=e>>8},js=function(r,A,e){e<<=A&7;var t=A/8|0;r[t]|=e,r[t+1]|=e>>8,r[t+2]|=e>>16},Yf=function(r,A){for(var e=[],t=0;t<r.length;++t)r[t]&&e.push({s:t,f:r[t]});var n=e.length,i=e.slice();if(!n)return{t:V1,l:0};if(n==1){var a=new jt(e[0].s+1);return a[e[0].s]=1,{t:a,l:1}}e.sort(function(G,$){return G.f-$.f}),e.push({s:-1,f:25001});var s=e[0],o=e[1],u=0,f=1,d=2;for(e[0]={s:-1,f:s.f+o.f,l:s,r:o};f!=n-1;)s=e[e[u].f<e[d].f?u++:d++],o=e[u!=f&&e[u].f<e[d].f?u++:d++],e[f++]={s:-1,f:s.f+o.f,l:s,r:o};for(var p=i[0].s,t=1;t<n;++t)i[t].s>p&&(p=i[t].s);var h=new wr(p+1),m=Jf(e[f-1],h,0);if(m>A){var t=0,w=0,F=m-A,y=1<<F;for(i.sort(function($,j){return h[j.s]-h[$.s]||$.f-j.f});t<n;++t){var Q=i[t].s;if(h[Q]>A)w+=y-(1<<m-h[Q]),h[Q]=A;else break}for(w>>=F;w>0;){var T=i[t].s;h[T]<A?w-=1<<A-h[T]++-1:++t}for(;t>=0&&w;--t){var P=i[t].s;h[P]==A&&(--h[P],++w)}m=A}return{t:new jt(h),l:m}},Jf=function(r,A,e){return r.s==-1?Math.max(Jf(r.l,A,e+1),Jf(r.r,A,e+1)):A[r.s]=e},k1=function(r){for(var A=r.length;A&&!r[--A];);for(var e=new wr(++A),t=0,n=r[0],i=1,a=function(o){e[t++]=o},s=1;s<=A;++s)if(r[s]==n&&s!=A)++i;else{if(!n&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(n),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(n);i=1,n=r[s]}return{c:e.subarray(0,t),n:A}},Vs=function(r,A){for(var e=0,t=0;t<A.length;++t)e+=r[t]*A[t];return e},K1=function(r,A,e){var t=e.length,n=Xf(A+2);r[n]=t&255,r[n+1]=t>>8,r[n+2]=r[n]^255,r[n+3]=r[n+1]^255;for(var i=0;i<t;++i)r[n+i+4]=e[i];return(n+4+t)*8},j1=function(r,A,e,t,n,i,a,s,o,u,f){Sn(A,f++,e),++n[256];for(var d=Yf(n,15),p=d.t,h=d.l,m=Yf(i,15),w=m.t,F=m.l,y=k1(p),Q=y.c,T=y.n,P=k1(w),G=P.c,$=P.n,j=new wr(19),_=0;_<Q.length;++_)++j[Q[_]&31];for(var _=0;_<G.length;++_)++j[G[_]&31];for(var q=Yf(j,7),iA=q.t,S=q.l,L=19;L>4&&!iA[Gf[L-1]];--L);var k=u+5<<3,M=Vs(n,ai)+Vs(i,Ks)+a,sA=Vs(n,p)+Vs(i,w)+a+14+3*L+Vs(j,iA)+2*j[16]+3*j[17]+7*j[18];if(o>=0&&k<=M&&k<=sA)return K1(A,f,r.subarray(o,o+u));var rA,oA,tA,aA;if(Sn(A,f,1+(sA<M)),f+=2,sA<M){rA=gn(p,h,0),oA=p,tA=gn(w,F,0),aA=w;var cA=gn(iA,S,0);Sn(A,f,T-257),Sn(A,f+5,$-1),Sn(A,f+10,L-4),f+=14;for(var _=0;_<L;++_)Sn(A,f+3*_,iA[Gf[_]]);f+=3*L;for(var QA=[Q,G],U=0;U<2;++U)for(var O=QA[U],_=0;_<O.length;++_){var R=O[_]&31;Sn(A,f,cA[R]),f+=iA[R],R>15&&(Sn(A,f,O[_]>>5&127),f+=O[_]>>12)}}else rA=gQ,oA=ai,tA=vQ,aA=Ks;for(var _=0;_<s;++_){var V=t[_];if(V>255){var R=V>>18&31;js(A,f,rA[R+257]),f+=oA[R+257],R>7&&(Sn(A,f,V>>23&31),f+=Gl[R]);var J=V&31;js(A,f,tA[J]),f+=aA[J],J>3&&(js(A,f,V>>5&8191),f+=$l[J])}else js(A,f,rA[V]),f+=oA[V]}return js(A,f,rA[256]),f+oA[256]},yQ=new Vf([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),V1=new jt(0),bQ=function(r,A,e,t,n,i){var a=i.z||r.length,s=new jt(t+a+5*(1+Math.ceil(a/7e3))+n),o=s.subarray(t,s.length-n),u=i.l,f=(i.r||0)&7;if(A){f&&(o[0]=i.r>>3);for(var d=yQ[A-1],p=d>>13,h=d&8191,m=(1<<e)-1,w=i.p||new wr(32768),F=i.h||new wr(m+1),y=Math.ceil(e/3),Q=2*y,T=function(VA){return(r[VA]^r[VA+1]<<y^r[VA+2]<<Q)&m},P=new Vf(25e3),G=new wr(288),$=new wr(32),j=0,_=0,q=i.i||0,iA=0,S=i.w||0,L=0;q+2<a;++q){var k=T(q),M=q&32767,sA=F[k];if(w[M]=sA,F[k]=M,S<=q){var rA=a-q;if((j>7e3||iA>24576)&&(rA>423||!u)){f=j1(r,o,0,P,G,$,_,iA,L,q-L,f),iA=j=_=0,L=q;for(var oA=0;oA<286;++oA)G[oA]=0;for(var oA=0;oA<30;++oA)$[oA]=0}var tA=2,aA=0,cA=h,QA=M-sA&32767;if(rA>2&&k==T(q-QA))for(var U=Math.min(p,rA)-1,O=Math.min(32767,q),R=Math.min(258,rA);QA<=O&&--cA&&M!=sA;){if(r[q+tA]==r[q+tA-QA]){for(var V=0;V<R&&r[q+V]==r[q+V-QA];++V);if(V>tA){if(tA=V,aA=QA,V>U)break;for(var J=Math.min(QA,V-2),AA=0,oA=0;oA<J;++oA){var fA=q-QA+oA&32767,hA=w[fA],EA=fA-hA&32767;EA>AA&&(AA=EA,sA=fA)}}}M=sA,sA=w[M],QA+=M-sA&32767}if(aA){P[iA++]=268435456|$f[tA]<<18|R1[aA];var FA=$f[tA]&31,NA=R1[aA]&31;_+=Gl[FA]+$l[NA],++G[257+FA],++$[NA],S=q+tA,++j}else P[iA++]=r[q],++G[r[q]]}}for(q=Math.max(q,S);q<a;++q)P[iA++]=r[q],++G[r[q]];f=j1(r,o,u,P,G,$,_,iA,L,q-L,f),u||(i.r=f&7|o[f/8|0]<<3,f-=7,i.h=F,i.p=w,i.i=q,i.w=S)}else{for(var q=i.w||0;q<a+u;q+=65535){var LA=q+65535;LA>=a&&(o[f/8|0]=u,LA=a),f=K1(o,f+1,r.subarray(q,LA))}i.i=a}return M1(s,0,t+Xf(f)+n)},G1=function(){var r=1,A=0;return{p:function(e){for(var t=r,n=A,i=e.length|0,a=0;a!=i;){for(var s=Math.min(a+2655,i);a<s;++a)n+=t+=e[a];t=(t&65535)+15*(t>>16),n=(n&65535)+15*(n>>16)}r=t,A=n},d:function(){return r%=65521,A%=65521,(r&255)<<24|(r&65280)<<8|(A&255)<<8|A>>8}}},CQ=function(r,A,e,t,n){if(!n&&(n={l:1},A.dictionary)){var i=A.dictionary.subarray(-32768),a=new jt(i.length+r.length);a.set(i),a.set(r,i.length),r=a,n.w=i.length}return bQ(r,A.level==null?6:A.level,A.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+A.mem,e,t,n)},$1=function(r,A,e){for(;e;++A)r[A]=e,e>>>=8},FQ=function(r,A){var e=A.level,t=e==0?0:e<6?1:e==9?3:2;if(r[0]=120,r[1]=t<<6|(A.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,A.dictionary){var n=G1();n.p(A.dictionary),$1(r,2,n.d())}},QQ=function(r,A){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&qr(6,"invalid zlib data"),(r[1]>>5&1)==1&&qr(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function Zf(r,A){A||(A={});var e=G1();e.p(r);var t=CQ(r,A,A.dictionary?6:2,4);return FQ(t,A),$1(t,t.length-4,e.d()),t}function UQ(r,A){return mQ(r.subarray(QQ(r),-4),{i:2},A,A)}var EQ=typeof TextDecoder!="undefined"&&new TextDecoder,xQ=0;try{EQ.decode(V1,{stream:!0}),xQ=1}catch(r){}/** @license
|
|
561
|
+
*
|
|
562
|
+
* jsPDF - PDF Document creation from JavaScript
|
|
563
|
+
* Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
|
|
564
|
+
* CommitID 00000000
|
|
565
|
+
*
|
|
566
|
+
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|
567
|
+
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|
568
|
+
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|
569
|
+
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|
570
|
+
* 2010 Aaron Spike, https://github.com/acspike
|
|
571
|
+
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
572
|
+
* 2012 Pablo Hess, https://github.com/pablohess
|
|
573
|
+
* 2012 Florian Jenett, https://github.com/fjenett
|
|
574
|
+
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|
575
|
+
* 2013 Youssef Beddad, https://github.com/lifof
|
|
576
|
+
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|
577
|
+
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|
578
|
+
* 2013 Jeremy Morel, https://github.com/jmorel
|
|
579
|
+
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|
580
|
+
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|
581
|
+
* 2014 James Makes, https://github.com/dollaruw
|
|
582
|
+
* 2014 Diego Casorran, https://github.com/diegocr
|
|
583
|
+
* 2014 Steven Spungin, https://github.com/Flamenco
|
|
584
|
+
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|
585
|
+
*
|
|
586
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
587
|
+
* a copy of this software and associated documentation files (the
|
|
588
|
+
* "Software"), to deal in the Software without restriction, including
|
|
589
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
590
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
591
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
592
|
+
* the following conditions:
|
|
593
|
+
*
|
|
594
|
+
* The above copyright notice and this permission notice shall be
|
|
595
|
+
* included in all copies or substantial portions of the Software.
|
|
596
|
+
*
|
|
597
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
598
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
599
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
600
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
601
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
602
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
603
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
604
|
+
*
|
|
605
|
+
* Contributor(s):
|
|
606
|
+
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
607
|
+
* kim3er, mfo, alnorth, Flamenco
|
|
608
|
+
*/var ee=function(){return typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this}();function Ah(){ee.console&&typeof ee.console.log=="function"&&ee.console.log.apply(ee.console,arguments)}var Oe={log:Ah,warn:function(r){ee.console&&(typeof ee.console.warn=="function"?ee.console.warn.apply(ee.console,arguments):Ah.call(null,arguments))},error:function(r){ee.console&&(typeof ee.console.error=="function"?ee.console.error.apply(ee.console,arguments):Ah(r))}};function eh(r,A,e){var t=new XMLHttpRequest;t.open("GET",r),t.responseType="blob",t.onload=function(){Pi(t.response,A,e)},t.onerror=function(){Oe.error("could not download file")},t.send()}function q1(r){var A=new XMLHttpRequest;A.open("HEAD",r,!1);try{A.send()}catch(e){}return A.status>=200&&A.status<=299}function ql(r){try{r.dispatchEvent(new MouseEvent("click"))}catch(e){var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(A)}}var Gs,th,Pi=ee.saveAs||((typeof window=="undefined"?"undefined":Qe(window))!=="object"||window!==ee?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(r,A,e){var t=ee.URL||ee.webkitURL,n=document.createElement("a");A=A||r.name||"download",n.download=A,n.rel="noopener",typeof r=="string"?(n.href=r,n.origin!==location.origin?q1(n.href)?eh(r,A,e):ql(n,n.target="_blank"):ql(n)):(n.href=t.createObjectURL(r),setTimeout(function(){t.revokeObjectURL(n.href)},4e4),setTimeout(function(){ql(n)},0))}:"msSaveOrOpenBlob"in navigator?function(r,A,e){if(A=A||r.name||"download",typeof r=="string")if(q1(r))eh(r,A,e);else{var t=document.createElement("a");t.href=r,t.target="_blank",setTimeout(function(){ql(t)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Qe(i)!=="object"&&(Oe.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(r,e),A)}:function(r,A,e,t){if((t=t||open("","_blank"))&&(t.document.title=t.document.body.innerText="downloading..."),typeof r=="string")return eh(r,A,e);var n=r.type==="application/octet-stream",i=/constructor/i.test(ee.HTMLElement)||ee.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i)&&(typeof FileReader=="undefined"?"undefined":Qe(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var f=s.result;f=a?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),t?t.location.href=f:location=f,t=null},s.readAsDataURL(r)}else{var o=ee.URL||ee.webkitURL,u=o.createObjectURL(r);t?t.location=u:location.href=u,t=null,setTimeout(function(){o.revokeObjectURL(u)},4e4)}});/**
|
|
609
|
+
* A class to parse color values
|
|
610
|
+
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
611
|
+
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
612
|
+
* @license Use it if you like it
|
|
613
|
+
*/function W1(r){var A;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;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(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],t=0;t<e.length;t++){var n=e[t].re,i=e[t].process,a=n.exec(r);a&&(A=i(a),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),o=this.g.toString(16),u=this.b.toString(16);return s.length==1&&(s="0"+s),o.length==1&&(o="0"+o),u.length==1&&(u="0"+u),"#"+s+o+u}}/**
|
|
614
|
+
* @license
|
|
615
|
+
* Joseph Myers does not specify a particular license for his work.
|
|
616
|
+
*
|
|
617
|
+
* Author: Joseph Myers
|
|
618
|
+
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|
619
|
+
*
|
|
620
|
+
* Modified by: Owen Leong
|
|
621
|
+
*/function rh(r,A){var e=r[0],t=r[1],n=r[2],i=r[3];e=Vt(e,t,n,i,A[0],7,-680876936),i=Vt(i,e,t,n,A[1],12,-389564586),n=Vt(n,i,e,t,A[2],17,606105819),t=Vt(t,n,i,e,A[3],22,-1044525330),e=Vt(e,t,n,i,A[4],7,-176418897),i=Vt(i,e,t,n,A[5],12,1200080426),n=Vt(n,i,e,t,A[6],17,-1473231341),t=Vt(t,n,i,e,A[7],22,-45705983),e=Vt(e,t,n,i,A[8],7,1770035416),i=Vt(i,e,t,n,A[9],12,-1958414417),n=Vt(n,i,e,t,A[10],17,-42063),t=Vt(t,n,i,e,A[11],22,-1990404162),e=Vt(e,t,n,i,A[12],7,1804603682),i=Vt(i,e,t,n,A[13],12,-40341101),n=Vt(n,i,e,t,A[14],17,-1502002290),e=Gt(e,t=Vt(t,n,i,e,A[15],22,1236535329),n,i,A[1],5,-165796510),i=Gt(i,e,t,n,A[6],9,-1069501632),n=Gt(n,i,e,t,A[11],14,643717713),t=Gt(t,n,i,e,A[0],20,-373897302),e=Gt(e,t,n,i,A[5],5,-701558691),i=Gt(i,e,t,n,A[10],9,38016083),n=Gt(n,i,e,t,A[15],14,-660478335),t=Gt(t,n,i,e,A[4],20,-405537848),e=Gt(e,t,n,i,A[9],5,568446438),i=Gt(i,e,t,n,A[14],9,-1019803690),n=Gt(n,i,e,t,A[3],14,-187363961),t=Gt(t,n,i,e,A[8],20,1163531501),e=Gt(e,t,n,i,A[13],5,-1444681467),i=Gt(i,e,t,n,A[2],9,-51403784),n=Gt(n,i,e,t,A[7],14,1735328473),e=$t(e,t=Gt(t,n,i,e,A[12],20,-1926607734),n,i,A[5],4,-378558),i=$t(i,e,t,n,A[8],11,-2022574463),n=$t(n,i,e,t,A[11],16,1839030562),t=$t(t,n,i,e,A[14],23,-35309556),e=$t(e,t,n,i,A[1],4,-1530992060),i=$t(i,e,t,n,A[4],11,1272893353),n=$t(n,i,e,t,A[7],16,-155497632),t=$t(t,n,i,e,A[10],23,-1094730640),e=$t(e,t,n,i,A[13],4,681279174),i=$t(i,e,t,n,A[0],11,-358537222),n=$t(n,i,e,t,A[3],16,-722521979),t=$t(t,n,i,e,A[6],23,76029189),e=$t(e,t,n,i,A[9],4,-640364487),i=$t(i,e,t,n,A[12],11,-421815835),n=$t(n,i,e,t,A[15],16,530742520),e=qt(e,t=$t(t,n,i,e,A[2],23,-995338651),n,i,A[0],6,-198630844),i=qt(i,e,t,n,A[7],10,1126891415),n=qt(n,i,e,t,A[14],15,-1416354905),t=qt(t,n,i,e,A[5],21,-57434055),e=qt(e,t,n,i,A[12],6,1700485571),i=qt(i,e,t,n,A[3],10,-1894986606),n=qt(n,i,e,t,A[10],15,-1051523),t=qt(t,n,i,e,A[1],21,-2054922799),e=qt(e,t,n,i,A[8],6,1873313359),i=qt(i,e,t,n,A[15],10,-30611744),n=qt(n,i,e,t,A[6],15,-1560198380),t=qt(t,n,i,e,A[13],21,1309151649),e=qt(e,t,n,i,A[4],6,-145523070),i=qt(i,e,t,n,A[11],10,-1120210379),n=qt(n,i,e,t,A[2],15,718787259),t=qt(t,n,i,e,A[9],21,-343485551),r[0]=si(e,r[0]),r[1]=si(t,r[1]),r[2]=si(n,r[2]),r[3]=si(i,r[3])}function Wl(r,A,e,t,n,i){return A=si(si(A,r),si(t,i)),si(A<<n|A>>>32-n,e)}function Vt(r,A,e,t,n,i,a){return Wl(A&e|~A&t,r,A,n,i,a)}function Gt(r,A,e,t,n,i,a){return Wl(A&t|e&~t,r,A,n,i,a)}function $t(r,A,e,t,n,i,a){return Wl(A^e^t,r,A,n,i,a)}function qt(r,A,e,t,n,i,a){return Wl(e^(A|~t),r,A,n,i,a)}function z1(r){var A,e=r.length,t=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=r.length;A+=64)rh(t,IQ(r.substring(A-64,A)));r=r.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<r.length;A++)n[A>>2]|=r.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(rh(t,n),A=0;A<16;A++)n[A]=0;return n[14]=8*e,rh(t,n),t}function IQ(r){var A,e=[];for(A=0;A<64;A+=4)e[A>>2]=r.charCodeAt(A)+(r.charCodeAt(A+1)<<8)+(r.charCodeAt(A+2)<<16)+(r.charCodeAt(A+3)<<24);return e}Gs=ee.atob.bind(ee),th=ee.btoa.bind(ee);var X1="0123456789abcdef".split("");function SQ(r){for(var A="",e=0;e<4;e++)A+=X1[r>>8*e+4&15]+X1[r>>8*e&15];return A}function LQ(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function nh(r){return z1(r).map(LQ).join("")}var NQ=function(r){for(var A=0;A<r.length;A++)r[A]=SQ(r[A]);return r.join("")}(z1("hello"))!="5d41402abc4b2a76b9719d911017c592";function si(r,A){if(NQ){var e=(65535&r)+(65535&A);return(r>>16)+(A>>16)+(e>>16)<<16|65535&e}return r+A&4294967295}/**
|
|
622
|
+
* @license
|
|
623
|
+
* FPDF is released under a permissive license: there is no usage restriction.
|
|
624
|
+
* You may embed it freely in your application (commercial or not), with or
|
|
625
|
+
* without modifications.
|
|
626
|
+
*
|
|
627
|
+
* Reference: http://www.fpdf.org/en/script/script37.php
|
|
628
|
+
*/function ih(r,A){var e,t,n,i;if(r!==e){for(var a=(n=r,i=1+(256/r.length>>0),new Array(i+1).join(n)),s=[],o=0;o<256;o++)s[o]=o;var u=0;for(o=0;o<256;o++){var f=s[o];u=(u+f+a.charCodeAt(o))%256,s[o]=s[u],s[u]=f}e=r,t=s}else s=t;var d=A.length,p=0,h=0,m="";for(o=0;o<d;o++)h=(h+(f=s[p=(p+1)%256]))%256,s[p]=s[h],s[h]=f,a=s[(s[p]+s[h])%256],m+=String.fromCharCode(A.charCodeAt(o)^a);return m}/**
|
|
629
|
+
* @license
|
|
630
|
+
* Licensed under the MIT License.
|
|
631
|
+
* http://opensource.org/licenses/mit-license
|
|
632
|
+
* Author: Owen Leong (@owenl131)
|
|
633
|
+
* Date: 15 Oct 2020
|
|
634
|
+
* References:
|
|
635
|
+
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
636
|
+
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
637
|
+
* http://www.fpdf.org/en/script/script37.php
|
|
638
|
+
*/var Y1={print:4,modify:8,copy:16,"annot-forms":32};function Sa(r,A,e,t){this.v=1,this.r=2;var n=192;r.forEach(function(s){if(Y1.perm!==void 0)throw new Error("Invalid permission: "+s);n+=Y1[s]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(A+this.padding).substr(0,32),a=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=nh(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(t)).substr(0,5),this.U=ih(this.encryptionKey,this.padding)}function La(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var A="",e=r.length,t=0;t<e;t++){var n=r.charCodeAt(t);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?A+="#"+("0"+n.toString(16)).slice(-2):A+=r[t]}return A}function J1(r){if(Qe(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(e,t,n){if(n=n||!1,typeof e!="string"||typeof t!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(e)||(A[e]={});var i=Math.random().toString(35);return A[e][i]=[t,!!n],i},this.unsubscribe=function(e){for(var t in A)if(A[t][e])return delete A[t][e],Object.keys(A[t]).length===0&&delete A[t],!0;return!1},this.publish=function(e){if(A.hasOwnProperty(e)){var t=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[e]){var a=A[e][i];try{a[0].apply(r,t)}catch(s){ee.console&&Oe.error("jsPDF PubSub Error",s.message,s)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function $s(r){if(!(this instanceof $s))return new $s(r);var A="opacity,stroke-opacity".split(",");for(var e in r)r.hasOwnProperty(e)&&A.indexOf(e)>=0&&(this[e]=r[e]);this.id="",this.objectNumber=-1}function Z1(r,A){this.gState=r,this.matrix=A,this.id="",this.objectNumber=-1}function oi(r,A,e,t,n){if(!(this instanceof oi))return new oi(r,A,e,t,n);this.type=r==="axial"?2:3,this.coords=A,this.colors=e,Z1.call(this,t,n)}function Di(r,A,e,t,n){if(!(this instanceof Di))return new Di(r,A,e,t,n);this.boundingBox=r,this.xStep=A,this.yStep=e,this.stream="",this.cloneIndex=0,Z1.call(this,t,n)}function ZA(r){var A,e=typeof arguments[0]=="string"?arguments[0]:"p",t=arguments[1],n=arguments[2],i=arguments[3],a=[],s=1,o=16,u="S",f=null;Qe(r=r||{})==="object"&&(e=r.orientation,t=r.unit||t,n=r.format||n,i=r.compress||r.compressPdf||i,(f=r.encryption||null)!==null&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),s=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(A=r.precision),r.floatPrecision!==void 0&&(o=r.floatPrecision),u=r.defaultPathOperation||"S"),a=r.filters||(i===!0?["FlateEncode"]:a),t=t||"mm",e=(""+(e||"P")).toLowerCase();var d=r.putOnlyUsedFonts||!1,p={},h={internal:{},__private__:{}};h.__private__.PubSub=J1;var m="1.3",w=h.__private__.getPdfVersion=function(){return m};h.__private__.setPdfVersion=function(g){m=g};var F={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]};h.__private__.getPageFormats=function(){return F};var y=h.__private__.getPageFormat=function(g){return F[g]};n=n||"a4";var Q={COMPAT:"compat",ADVANCED:"advanced"},T=Q.COMPAT;function P(){this.saveGraphicsState(),K(new YA(TA,0,0,-TA,0,mi()*TA).toString()+" cm"),this.setFontSize(this.getFontSize()/TA),u="n",T=Q.ADVANCED}function G(){this.restoreGraphicsState(),u="S",T=Q.COMPAT}var $=h.__private__.combineFontStyleAndFontWeight=function(g,C){if(g=="bold"&&C=="normal"||g=="bold"&&C==400||g=="normal"&&C=="italic"||g=="bold"&&C=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return C&&(g=C==400||C==="normal"?g==="italic"?"italic":"normal":C!=700&&C!=="bold"||g!=="normal"?(C==700?"bold":C)+""+g:"bold"),g};h.advancedAPI=function(g){var C=T===Q.COMPAT;return C&&P.call(this),typeof g!="function"||(g(this),C&&G.call(this)),this},h.compatAPI=function(g){var C=T===Q.ADVANCED;return C&&G.call(this),typeof g!="function"||(g(this),C&&P.call(this)),this},h.isAdvancedAPI=function(){return T===Q.ADVANCED};var j,_=function(g){if(T!==Q.ADVANCED)throw new Error(g+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},q=h.roundToPrecision=h.__private__.roundToPrecision=function(g,C){var D=A||C;if(isNaN(g)||isNaN(D))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return g.toFixed(D).replace(/0+$/,"")};j=h.hpf=h.__private__.hpf=typeof o=="number"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return q(g,o)}:o==="smart"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return q(g,g>-1&&g<1?16:5)}:function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return q(g,16)};var iA=h.f2=h.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f2");return q(g,2)},S=h.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return q(g,3)},L=h.scale=h.__private__.scale=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.scale");return T===Q.COMPAT?g*TA:T===Q.ADVANCED?g:void 0},k=function(g){return T===Q.COMPAT?mi()-g:T===Q.ADVANCED?g:void 0},M=function(g){return L(k(g))};h.__private__.setPrecision=h.setPrecision=function(g){typeof parseInt(g,10)=="number"&&(A=parseInt(g,10))};var sA,rA="00000000000000000000000000000000",oA=h.__private__.getFileId=function(){return rA},tA=h.__private__.setFileId=function(g){return rA=g!==void 0&&/^[a-fA-F0-9]{32}$/.test(g)?g.toUpperCase():rA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),f!==null&&(Xt=new Sa(f.userPermissions,f.userPassword,f.ownerPassword,rA)),rA};h.setFileId=function(g){return tA(g),this},h.getFileId=function(){return oA()};var aA=h.__private__.convertDateToPDFDate=function(g){var C=g.getTimezoneOffset(),D=C<0?"+":"-",W=Math.floor(Math.abs(C/60)),nA=Math.abs(C%60),pA=[D,R(W),"'",R(nA),"'"].join("");return["D:",g.getFullYear(),R(g.getMonth()+1),R(g.getDate()),R(g.getHours()),R(g.getMinutes()),R(g.getSeconds()),pA].join("")},cA=h.__private__.convertPDFDateToDate=function(g){var C=parseInt(g.substr(2,4),10),D=parseInt(g.substr(6,2),10)-1,W=parseInt(g.substr(8,2),10),nA=parseInt(g.substr(10,2),10),pA=parseInt(g.substr(12,2),10),CA=parseInt(g.substr(14,2),10);return new Date(C,D,W,nA,pA,CA,0)},QA=h.__private__.setCreationDate=function(g){var C;if(g===void 0&&(g=new Date),g instanceof Date)C=aA(g);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(g))throw new Error("Invalid argument passed to jsPDF.setCreationDate");C=g}return sA=C},U=h.__private__.getCreationDate=function(g){var C=sA;return g==="jsDate"&&(C=cA(sA)),C};h.setCreationDate=function(g){return QA(g),this},h.getCreationDate=function(g){return U(g)};var O,R=h.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},V=h.__private__.padd2Hex=function(g){return("00"+(g=g.toString())).substr(g.length)},J=0,AA=[],fA=[],hA=0,EA=[],FA=[],NA=!1,LA=fA,VA=function(){J=0,hA=0,fA=[],AA=[],EA=[],_r=Ce(),rr=Ce()};h.__private__.setCustomOutputDestination=function(g){NA=!0,LA=g};var dA=function(g){NA||(LA=g)};h.__private__.resetCustomOutputDestination=function(){NA=!1,LA=fA};var K=h.__private__.out=function(g){return g=g.toString(),hA+=g.length+1,LA.push(g),LA},Ae=h.__private__.write=function(g){return K(arguments.length===1?g.toString():Array.prototype.join.call(arguments," "))},kA=h.__private__.getArrayBuffer=function(g){for(var C=g.length,D=new ArrayBuffer(C),W=new Uint8Array(D);C--;)W[C]=g.charCodeAt(C);return D},yA=[["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]];h.__private__.getStandardFonts=function(){return yA};var xA=r.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(g){return xA=T===Q.ADVANCED?g/TA:g,this};var SA,IA=h.__private__.getFontSize=h.getFontSize=function(){return T===Q.COMPAT?xA:xA*TA},KA=r.R2L||!1;h.__private__.setR2L=h.setR2L=function(g){return KA=g,this},h.__private__.getR2L=h.getR2L=function(){return KA};var qA,te=h.__private__.setZoomMode=function(g){var C=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(g))SA=g;else if(isNaN(g)){if(C.indexOf(g)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+g+'" is not recognized.');SA=g}else SA=parseInt(g,10)};h.__private__.getZoomMode=function(){return SA};var re,se=h.__private__.setPageMode=function(g){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(g)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+g+'" is not recognized.');qA=g};h.__private__.getPageMode=function(){return qA};var he=h.__private__.setLayoutMode=function(g){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(g)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+g+'" is not recognized.');re=g};h.__private__.getLayoutMode=function(){return re},h.__private__.setDisplayMode=h.setDisplayMode=function(g,C,D){return te(g),he(C),se(D),this};var zA={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(g){if(Object.keys(zA).indexOf(g)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zA[g]},h.__private__.getDocumentProperties=function(){return zA},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(g){for(var C in zA)zA.hasOwnProperty(C)&&g[C]&&(zA[C]=g[C]);return this},h.__private__.setDocumentProperty=function(g,C){if(Object.keys(zA).indexOf(g)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zA[g]=C};var ne,TA,Ke,de,Ft,we={},ge={},lt=[],pe={},zt={},Ie={},qe={},De=null,$e=0,GA=[],ve=new J1(h),Rn=r.hotfixes||[],Bt={},fr={},yr=[],YA=function g(C,D,W,nA,pA,CA){if(!(this instanceof g))return new g(C,D,W,nA,pA,CA);isNaN(C)&&(C=1),isNaN(D)&&(D=0),isNaN(W)&&(W=0),isNaN(nA)&&(nA=1),isNaN(pA)&&(pA=0),isNaN(CA)&&(CA=0),this._matrix=[C,D,W,nA,pA,CA]};Object.defineProperty(YA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(YA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(YA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(YA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(YA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(YA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(YA.prototype,"a",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(YA.prototype,"b",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(YA.prototype,"c",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(YA.prototype,"d",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(YA.prototype,"e",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(YA.prototype,"f",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(YA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(YA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(YA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(YA.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),YA.prototype.join=function(g){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(j).join(g)},YA.prototype.multiply=function(g){var C=g.sx*this.sx+g.shy*this.shx,D=g.sx*this.shy+g.shy*this.sy,W=g.shx*this.sx+g.sy*this.shx,nA=g.shx*this.shy+g.sy*this.sy,pA=g.tx*this.sx+g.ty*this.shx+this.tx,CA=g.tx*this.shy+g.ty*this.sy+this.ty;return new YA(C,D,W,nA,pA,CA)},YA.prototype.decompose=function(){var g=this.sx,C=this.shy,D=this.shx,W=this.sy,nA=this.tx,pA=this.ty,CA=Math.sqrt(g*g+C*C),DA=(g/=CA)*D+(C/=CA)*W;D-=g*DA,W-=C*DA;var XA=Math.sqrt(D*D+W*W);return DA/=XA,g*(W/=XA)<C*(D/=XA)&&(g=-g,C=-C,DA=-DA,CA=-CA),{scale:new YA(CA,0,0,XA,0,0),translate:new YA(1,0,0,1,nA,pA),rotate:new YA(g,C,-C,g,0,0),skew:new YA(1,0,DA,1,0,0)}},YA.prototype.toString=function(g){return this.join(" ")},YA.prototype.inversed=function(){var g=this.sx,C=this.shy,D=this.shx,W=this.sy,nA=this.tx,pA=this.ty,CA=1/(g*W-C*D),DA=W*CA,XA=-C*CA,ue=-D*CA,oe=g*CA;return new YA(DA,XA,ue,oe,-DA*nA-ue*pA,-XA*nA-oe*pA)},YA.prototype.applyToPoint=function(g){var C=g.x*this.sx+g.y*this.shx+this.tx,D=g.x*this.shy+g.y*this.sy+this.ty;return new ns(C,D)},YA.prototype.applyToRectangle=function(g){var C=this.applyToPoint(g),D=this.applyToPoint(new ns(g.x+g.w,g.y+g.h));return new No(C.x,C.y,D.x-C.x,D.y-C.y)},YA.prototype.clone=function(){var g=this.sx,C=this.shy,D=this.shx,W=this.sy,nA=this.tx,pA=this.ty;return new YA(g,C,D,W,nA,pA)},h.Matrix=YA;var br=h.matrixMult=function(g,C){return C.multiply(g)},tr=new YA(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=tr;var xt=function(g,C){if(!zt[g]){var D=(C instanceof oi?"Sh":"P")+(Object.keys(pe).length+1).toString(10);C.id=D,zt[g]=D,pe[D]=C,ve.publish("addPattern",C)}};h.ShadingPattern=oi,h.TilingPattern=Di,h.addShadingPattern=function(g,C){return _("addShadingPattern()"),xt(g,C),this},h.beginTilingPattern=function(g){_("beginTilingPattern()"),wc(g.boundingBox[0],g.boundingBox[1],g.boundingBox[2]-g.boundingBox[0],g.boundingBox[3]-g.boundingBox[1],g.matrix)},h.endTilingPattern=function(g,C){_("endTilingPattern()"),C.stream=FA[O].join(`
|
|
639
|
+
`),xt(g,C),ve.publish("endTilingPattern",C),yr.pop().restore()};var ut=h.__private__.newObject=function(){var g=Ce();return It(g,!0),g},Ce=h.__private__.newObjectDeferred=function(){return J++,AA[J]=function(){return hA},J},It=function(g,C){return C=typeof C=="boolean"&&C,AA[g]=hA,C&&K(g+" 0 obj"),g},Mn=h.__private__.newAdditionalObject=function(){var g={objId:Ce(),content:""};return EA.push(g),g},_r=Ce(),rr=Ce(),Dt=h.__private__.decodeColorString=function(g){var C=g.split(" ");if(C.length!==2||C[1]!=="g"&&C[1]!=="G")C.length===5&&(C[4]==="k"||C[4]==="K")&&(C=[(1-C[0])*(1-C[3]),(1-C[1])*(1-C[3]),(1-C[2])*(1-C[3]),"r"]);else{var D=parseFloat(C[0]);C=[D,D,D,"r"]}for(var W="#",nA=0;nA<3;nA++)W+=("0"+Math.floor(255*parseFloat(C[nA])).toString(16)).slice(-2);return W},ct=h.__private__.encodeColorString=function(g){var C;typeof g=="string"&&(g={ch1:g});var D=g.ch1,W=g.ch2,nA=g.ch3,pA=g.ch4,CA=g.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof D=="string"&&D.charAt(0)!=="#"){var DA=new W1(D);if(DA.ok)D=DA.toHex();else if(!/^\d*\.?\d*$/.test(D))throw new Error('Invalid color "'+D+'" passed to jsPDF.encodeColorString.')}if(typeof D=="string"&&/^#[0-9A-Fa-f]{3}$/.test(D)&&(D="#"+D[1]+D[1]+D[2]+D[2]+D[3]+D[3]),typeof D=="string"&&/^#[0-9A-Fa-f]{6}$/.test(D)){var XA=parseInt(D.substr(1),16);D=XA>>16&255,W=XA>>8&255,nA=255&XA}if(W===void 0||pA===void 0&&D===W&&W===nA)if(typeof D=="string")C=D+" "+CA[0];else switch(g.precision){case 2:C=iA(D/255)+" "+CA[0];break;case 3:default:C=S(D/255)+" "+CA[0]}else if(pA===void 0||Qe(pA)==="object"){if(pA&&!isNaN(pA.a)&&pA.a===0)return C=["1.","1.","1.",CA[1]].join(" ");if(typeof D=="string")C=[D,W,nA,CA[1]].join(" ");else switch(g.precision){case 2:C=[iA(D/255),iA(W/255),iA(nA/255),CA[1]].join(" ");break;default:case 3:C=[S(D/255),S(W/255),S(nA/255),CA[1]].join(" ")}}else if(typeof D=="string")C=[D,W,nA,pA,CA[2]].join(" ");else switch(g.precision){case 2:C=[iA(D),iA(W),iA(nA),iA(pA),CA[2]].join(" ");break;case 3:default:C=[S(D),S(W),S(nA),S(pA),CA[2]].join(" ")}return C},Cr=h.__private__.getFilters=function(){return a},nr=h.__private__.putStream=function(g){var C=(g=g||{}).data||"",D=g.filters||Cr(),W=g.alreadyAppliedFilters||[],nA=g.addLength1||!1,pA=C.length,CA=g.objectId,DA=function(Yt){return Yt};if(f!==null&&CA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");f!==null&&(DA=Xt.encryptor(CA,0));var XA={};D===!0&&(D=["FlateEncode"]);var ue=g.additionalKeyValues||[],oe=(XA=ZA.API.processDataByFilters!==void 0?ZA.API.processDataByFilters(C,D):{data:C,reverseChain:[]}).reverseChain+(Array.isArray(W)?W.join(" "):W.toString());if(XA.data.length!==0&&(ue.push({key:"Length",value:XA.data.length}),nA===!0&&ue.push({key:"Length1",value:pA})),oe.length!=0)if(oe.split("/").length-1==1)ue.push({key:"Filter",value:oe});else{ue.push({key:"Filter",value:"["+oe+"]"});for(var be=0;be<ue.length;be+=1)if(ue[be].key==="DecodeParms"){for(var ze=[],et=0;et<XA.reverseChain.split("/").length-1;et+=1)ze.push("null");ze.push(ue[be].value),ue[be].value="["+ze.join(" ")+"]"}}K("<<");for(var wt=0;wt<ue.length;wt++)K("/"+ue[wt].key+" "+ue[wt].value);K(">>"),XA.data.length!==0&&(K("stream"),K(DA(XA.data)),K("endstream"))},Fr=h.__private__.putPage=function(g){var C=g.number,D=g.data,W=g.objId,nA=g.contentsObjId;It(W,!0),K("<</Type /Page"),K("/Parent "+g.rootDictionaryObjId+" 0 R"),K("/Resources "+g.resourceDictionaryObjId+" 0 R"),K("/MediaBox ["+parseFloat(j(g.mediaBox.bottomLeftX))+" "+parseFloat(j(g.mediaBox.bottomLeftY))+" "+j(g.mediaBox.topRightX)+" "+j(g.mediaBox.topRightY)+"]"),g.cropBox!==null&&K("/CropBox ["+j(g.cropBox.bottomLeftX)+" "+j(g.cropBox.bottomLeftY)+" "+j(g.cropBox.topRightX)+" "+j(g.cropBox.topRightY)+"]"),g.bleedBox!==null&&K("/BleedBox ["+j(g.bleedBox.bottomLeftX)+" "+j(g.bleedBox.bottomLeftY)+" "+j(g.bleedBox.topRightX)+" "+j(g.bleedBox.topRightY)+"]"),g.trimBox!==null&&K("/TrimBox ["+j(g.trimBox.bottomLeftX)+" "+j(g.trimBox.bottomLeftY)+" "+j(g.trimBox.topRightX)+" "+j(g.trimBox.topRightY)+"]"),g.artBox!==null&&K("/ArtBox ["+j(g.artBox.bottomLeftX)+" "+j(g.artBox.bottomLeftY)+" "+j(g.artBox.topRightX)+" "+j(g.artBox.topRightY)+"]"),typeof g.userUnit=="number"&&g.userUnit!==1&&K("/UserUnit "+g.userUnit),ve.publish("putPage",{objId:W,pageContext:GA[C],pageNumber:C,page:D}),K("/Contents "+nA+" 0 R"),K(">>"),K("endobj");var pA=D.join(`
|
|
640
|
+
`);return T===Q.ADVANCED&&(pA+=`
|
|
641
|
+
Q`),It(nA,!0),nr({data:pA,filters:Cr(),objectId:nA}),K("endobj"),W},yn=h.__private__.putPages=function(){var g,C,D=[];for(g=1;g<=$e;g++)GA[g].objId=Ce(),GA[g].contentsObjId=Ce();for(g=1;g<=$e;g++)D.push(Fr({number:g,data:FA[g],objId:GA[g].objId,contentsObjId:GA[g].contentsObjId,mediaBox:GA[g].mediaBox,cropBox:GA[g].cropBox,bleedBox:GA[g].bleedBox,trimBox:GA[g].trimBox,artBox:GA[g].artBox,userUnit:GA[g].userUnit,rootDictionaryObjId:_r,resourceDictionaryObjId:rr}));It(_r,!0),K("<</Type /Pages");var W="/Kids [";for(C=0;C<$e;C++)W+=D[C]+" 0 R ";K(W+"]"),K("/Count "+$e),K(">>"),K("endobj"),ve.publish("postPutPages")},vi=function(g){ve.publish("putFont",{font:g,out:K,newObject:ut,putStream:nr}),g.isAlreadyPutted!==!0&&(g.objectNumber=ut(),K("<<"),K("/Type /Font"),K("/BaseFont /"+La(g.postScriptName)),K("/Subtype /Type1"),typeof g.encoding=="string"&&K("/Encoding /"+g.encoding),K("/FirstChar 32"),K("/LastChar 255"),K(">>"),K("endobj"))},$A=function(){for(var g in we)we.hasOwnProperty(g)&&(d===!1||d===!0&&p.hasOwnProperty(g))&&vi(we[g])},z=function(g){g.objectNumber=ut();var C=[];C.push({key:"Type",value:"/XObject"}),C.push({key:"Subtype",value:"/Form"}),C.push({key:"BBox",value:"["+[j(g.x),j(g.y),j(g.x+g.width),j(g.y+g.height)].join(" ")+"]"}),C.push({key:"Matrix",value:"["+g.matrix.toString()+"]"});var D=g.pages[1].join(`
|
|
642
|
+
`);nr({data:D,additionalKeyValues:C,objectId:g.objectNumber}),K("endobj")},UA=function(){for(var g in Bt)Bt.hasOwnProperty(g)&&z(Bt[g])},OA=function(g,C){var D,W=[],nA=1/(C-1);for(D=0;D<1;D+=nA)W.push(D);if(W.push(1),g[0].offset!=0){var pA={offset:0,color:g[0].color};g.unshift(pA)}if(g[g.length-1].offset!=1){var CA={offset:1,color:g[g.length-1].color};g.push(CA)}for(var DA="",XA=0,ue=0;ue<W.length;ue++){for(D=W[ue];D>g[XA+1].offset;)XA++;var oe=g[XA].offset,be=(D-oe)/(g[XA+1].offset-oe),ze=g[XA].color,et=g[XA+1].color;DA+=V(Math.round((1-be)*ze[0]+be*et[0]).toString(16))+V(Math.round((1-be)*ze[1]+be*et[1]).toString(16))+V(Math.round((1-be)*ze[2]+be*et[2]).toString(16))}return DA.trim()},ye=function(g,C){C||(C=21);var D=ut(),W=OA(g.colors,C),nA=[];nA.push({key:"FunctionType",value:"0"}),nA.push({key:"Domain",value:"[0.0 1.0]"}),nA.push({key:"Size",value:"["+C+"]"}),nA.push({key:"BitsPerSample",value:"8"}),nA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),nA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),nr({data:W,additionalKeyValues:nA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:D}),K("endobj"),g.objectNumber=ut(),K("<< /ShadingType "+g.type),K("/ColorSpace /DeviceRGB");var pA="/Coords ["+j(parseFloat(g.coords[0]))+" "+j(parseFloat(g.coords[1]))+" ";g.type===2?pA+=j(parseFloat(g.coords[2]))+" "+j(parseFloat(g.coords[3])):pA+=j(parseFloat(g.coords[2]))+" "+j(parseFloat(g.coords[3]))+" "+j(parseFloat(g.coords[4]))+" "+j(parseFloat(g.coords[5])),K(pA+="]"),g.matrix&&K("/Matrix ["+g.matrix.toString()+"]"),K("/Function "+D+" 0 R"),K("/Extend [true true]"),K(">>"),K("endobj")},St=function(g,C){var D=Ce(),W=ut();C.push({resourcesOid:D,objectOid:W}),g.objectNumber=W;var nA=[];nA.push({key:"Type",value:"/Pattern"}),nA.push({key:"PatternType",value:"1"}),nA.push({key:"PaintType",value:"1"}),nA.push({key:"TilingType",value:"1"}),nA.push({key:"BBox",value:"["+g.boundingBox.map(j).join(" ")+"]"}),nA.push({key:"XStep",value:j(g.xStep)}),nA.push({key:"YStep",value:j(g.yStep)}),nA.push({key:"Resources",value:D+" 0 R"}),g.matrix&&nA.push({key:"Matrix",value:"["+g.matrix.toString()+"]"}),nr({data:g.stream,additionalKeyValues:nA,objectId:g.objectNumber}),K("endobj")},We=function(g){var C;for(C in pe)pe.hasOwnProperty(C)&&(pe[C]instanceof oi?ye(pe[C]):pe[C]instanceof Di&&St(pe[C],g))},At=function(g){for(var C in g.objectNumber=ut(),K("<<"),g)switch(C){case"opacity":K("/ca "+iA(g[C]));break;case"stroke-opacity":K("/CA "+iA(g[C]))}K(">>"),K("endobj")},an=function(){var g;for(g in Ie)Ie.hasOwnProperty(g)&&At(Ie[g])},je=function(){for(var g in K("/XObject <<"),Bt)Bt.hasOwnProperty(g)&&Bt[g].objectNumber>=0&&K("/"+g+" "+Bt[g].objectNumber+" 0 R");ve.publish("putXobjectDict"),K(">>")},na=function(){Xt.oid=ut(),K("<<"),K("/Filter /Standard"),K("/V "+Xt.v),K("/R "+Xt.r),K("/U <"+Xt.toHexString(Xt.U)+">"),K("/O <"+Xt.toHexString(Xt.O)+">"),K("/P "+Xt.P),K(">>"),K("endobj")},ia=function(){for(var g in K("/Font <<"),we)we.hasOwnProperty(g)&&(d===!1||d===!0&&p.hasOwnProperty(g))&&K("/"+g+" "+we[g].objectNumber+" 0 R");K(">>")},rc=function(){if(Object.keys(pe).length>0){for(var g in K("/Shading <<"),pe)pe.hasOwnProperty(g)&&pe[g]instanceof oi&&pe[g].objectNumber>=0&&K("/"+g+" "+pe[g].objectNumber+" 0 R");ve.publish("putShadingPatternDict"),K(">>")}},Ya=function(g){if(Object.keys(pe).length>0){for(var C in K("/Pattern <<"),pe)pe.hasOwnProperty(C)&&pe[C]instanceof h.TilingPattern&&pe[C].objectNumber>=0&&pe[C].objectNumber<g&&K("/"+C+" "+pe[C].objectNumber+" 0 R");ve.publish("putTilingPatternDict"),K(">>")}},kg=function(){if(Object.keys(Ie).length>0){var g;for(g in K("/ExtGState <<"),Ie)Ie.hasOwnProperty(g)&&Ie[g].objectNumber>=0&&K("/"+g+" "+Ie[g].objectNumber+" 0 R");ve.publish("putGStateDict"),K(">>")}},ft=function(g){It(g.resourcesOid,!0),K("<<"),K("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ia(),rc(),Ya(g.objectOid),kg(),je(),K(">>"),K("endobj")},nc=function(){var g=[];$A(),an(),UA(),We(g),ve.publish("putResources"),g.forEach(ft),ft({resourcesOid:rr,objectOid:Number.MAX_SAFE_INTEGER}),ve.publish("postPutResources")},ic=function(){ve.publish("putAdditionalObjects");for(var g=0;g<EA.length;g++){var C=EA[g];It(C.objId,!0),K(C.content),K("endobj")}ve.publish("postPutAdditionalObjects")},ac=function(g){ge[g.fontName]=ge[g.fontName]||{},ge[g.fontName][g.fontStyle]=g.id},Co=function(g,C,D,W,nA){var pA={id:"F"+(Object.keys(we).length+1).toString(10),postScriptName:g,fontName:C,fontStyle:D,encoding:W,isStandardFont:nA||!1,metadata:{}};return ve.publish("addFont",{font:pA,instance:this}),we[pA.id]=pA,ac(pA),pA.id},Kg=function(g){for(var C=0,D=yA.length;C<D;C++){var W=Co.call(this,g[C][0],g[C][1],g[C][2],yA[C][3],!0);d===!1&&(p[W]=!0);var nA=g[C][0].split("-");ac({id:W,fontName:nA[0],fontStyle:nA[1]||""})}ve.publish("addFonts",{fonts:we,dictionary:ge})},sn=function(g){return g.foo=function(){try{return g.apply(this,arguments)}catch(W){var C=W.stack||"";~C.indexOf(" at ")&&(C=C.split(" at ")[1]);var D="Error in function "+C.split(`
|
|
643
|
+
`)[0].split("<")[0]+": "+W.message;if(!ee.console)throw new Error(D);ee.console.error(D,W),ee.alert&&alert(D)}},g.foo.bar=g,g.foo},Ja=function(g,C){var D,W,nA,pA,CA,DA,XA,ue,oe;if(nA=(C=C||{}).sourceEncoding||"Unicode",CA=C.outputEncoding,(C.autoencode||CA)&&we[ne].metadata&&we[ne].metadata[nA]&&we[ne].metadata[nA].encoding&&(pA=we[ne].metadata[nA].encoding,!CA&&we[ne].encoding&&(CA=we[ne].encoding),!CA&&pA.codePages&&(CA=pA.codePages[0]),typeof CA=="string"&&(CA=pA[CA]),CA)){for(XA=!1,DA=[],D=0,W=g.length;D<W;D++)(ue=CA[g.charCodeAt(D)])?DA.push(String.fromCharCode(ue)):DA.push(g[D]),DA[D].charCodeAt(0)>>8&&(XA=!0);g=DA.join("")}for(D=g.length;XA===void 0&&D!==0;)g.charCodeAt(D-1)>>8&&(XA=!0),D--;if(!XA)return g;for(DA=C.noBOM?[]:[254,255],D=0,W=g.length;D<W;D++){if((oe=(ue=g.charCodeAt(D))>>8)>>8)throw new Error("Character at position "+D+" of string '"+g+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");DA.push(oe),DA.push(ue-(oe<<8))}return String.fromCharCode.apply(void 0,DA)},hr=h.__private__.pdfEscape=h.pdfEscape=function(g,C){return Ja(g,C).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Fo=h.__private__.beginPage=function(g){FA[++$e]=[],GA[$e]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(g[0]),topRightY:Number(g[1])}},oc($e),dA(FA[O])},sc=function(g,C){var D,W,nA;switch(e=C||e,typeof g=="string"&&(D=y(g.toLowerCase()),Array.isArray(D)&&(W=D[0],nA=D[1])),Array.isArray(g)&&(W=g[0]*TA,nA=g[1]*TA),isNaN(W)&&(W=n[0],nA=n[1]),(W>14400||nA>14400)&&(Oe.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),W=Math.min(14400,W),nA=Math.min(14400,nA)),n=[W,nA],e.substr(0,1)){case"l":nA>W&&(n=[nA,W]);break;case"p":W>nA&&(n=[nA,W])}Fo(n),dc(xo),K(on),So!==0&&K(So+" J"),Lo!==0&&K(Lo+" j"),ve.publish("addPage",{pageNumber:$e})},jg=function(g){g>0&&g<=$e&&(FA.splice(g,1),GA.splice(g,1),$e--,O>$e&&(O=$e),this.setPage(O))},oc=function(g){g>0&&g<=$e&&(O=g)},Vg=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return FA.length-1},lc=function(g,C,D){var W,nA=void 0;return D=D||{},g=g!==void 0?g:we[ne].fontName,C=C!==void 0?C:we[ne].fontStyle,W=g.toLowerCase(),ge[W]!==void 0&&ge[W][C]!==void 0?nA=ge[W][C]:ge[g]!==void 0&&ge[g][C]!==void 0?nA=ge[g][C]:D.disableWarning===!1&&Oe.warn("Unable to look up font label for font '"+g+"', '"+C+"'. Refer to getFontList() for available fonts."),nA||D.noFallback||(nA=ge.times[C])==null&&(nA=ge.times.normal),nA},Gg=h.__private__.putInfo=function(){var g=ut(),C=function(W){return W};for(var D in f!==null&&(C=Xt.encryptor(g,0)),K("<<"),K("/Producer ("+hr(C("jsPDF "+ZA.version))+")"),zA)zA.hasOwnProperty(D)&&zA[D]&&K("/"+D.substr(0,1).toUpperCase()+D.substr(1)+" ("+hr(C(zA[D]))+")");K("/CreationDate ("+hr(C(sA))+")"),K(">>"),K("endobj")},Qo=h.__private__.putCatalog=function(g){var C=(g=g||{}).rootDictionaryObjId||_r;switch(ut(),K("<<"),K("/Type /Catalog"),K("/Pages "+C+" 0 R"),SA||(SA="fullwidth"),SA){case"fullwidth":K("/OpenAction [3 0 R /FitH null]");break;case"fullheight":K("/OpenAction [3 0 R /FitV null]");break;case"fullpage":K("/OpenAction [3 0 R /Fit]");break;case"original":K("/OpenAction [3 0 R /XYZ null null 1]");break;default:var D=""+SA;D.substr(D.length-1)==="%"&&(SA=parseInt(SA)/100),typeof SA=="number"&&K("/OpenAction [3 0 R /XYZ null null "+iA(SA)+"]")}switch(re||(re="continuous"),re){case"continuous":K("/PageLayout /OneColumn");break;case"single":K("/PageLayout /SinglePage");break;case"two":case"twoleft":K("/PageLayout /TwoColumnLeft");break;case"tworight":K("/PageLayout /TwoColumnRight")}qA&&K("/PageMode /"+qA),ve.publish("putCatalog"),K(">>"),K("endobj")},$g=h.__private__.putTrailer=function(){K("trailer"),K("<<"),K("/Size "+(J+1)),K("/Root "+J+" 0 R"),K("/Info "+(J-1)+" 0 R"),f!==null&&K("/Encrypt "+Xt.oid+" 0 R"),K("/ID [ <"+rA+"> <"+rA+"> ]"),K(">>")},qg=h.__private__.putHeader=function(){K("%PDF-"+m),K("%ºß¬à")},Wg=h.__private__.putXRef=function(){var g="0000000000";K("xref"),K("0 "+(J+1)),K("0000000000 65535 f ");for(var C=1;C<=J;C++)typeof AA[C]=="function"?K((g+AA[C]()).slice(-10)+" 00000 n "):AA[C]!==void 0?K((g+AA[C]).slice(-10)+" 00000 n "):K("0000000000 00000 n ")},kn=h.__private__.buildDocument=function(){VA(),dA(fA),ve.publish("buildDocument"),qg(),yn(),ic(),nc(),f!==null&&na(),Gg(),Qo();var g=hA;return Wg(),$g(),K("startxref"),K(""+g),K("%%EOF"),dA(FA[O]),fA.join(`
|
|
644
|
+
`)},Za=h.__private__.getBlob=function(g){return new Blob([kA(g)],{type:"application/pdf"})},As=h.output=h.__private__.output=sn(function(g,C){switch(typeof(C=C||{})=="string"?C={filename:C}:C.filename=C.filename||"generated.pdf",g){case void 0:return kn();case"save":h.save(C.filename);break;case"arraybuffer":return kA(kn());case"blob":return Za(kn());case"bloburi":case"bloburl":if(ee.URL!==void 0&&typeof ee.URL.createObjectURL=="function")return ee.URL&&ee.URL.createObjectURL(Za(kn()))||void 0;Oe.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var D="",W=kn();try{D=th(W)}catch(et){D=th(unescape(encodeURIComponent(W)))}return"data:application/pdf;filename="+C.filename+";base64,"+D;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ee)==="[object Window]"){var nA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",pA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';C.pdfObjectUrl&&(nA=C.pdfObjectUrl,pA="");var CA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+nA+'"'+pA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(C)+");<\/script></body></html>",DA=ee.open();return DA!==null&&DA.document.write(CA),DA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ee)==="[object Window]"){var XA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(C.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+C.filename+'" width="500px" height="400px" /></body></html>',ue=ee.open();if(ue!==null){ue.document.write(XA);var oe=this;ue.document.documentElement.querySelector("#pdfViewer").onload=function(){ue.document.title=C.filename,ue.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(oe.output("bloburl"))}}return ue}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ee)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var be='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",C)+'"></iframe></body></html>',ze=ee.open();if(ze!==null&&(ze.document.write(be),ze.document.title=C.filename),ze||typeof safari=="undefined")return ze;break;case"datauri":case"dataurl":return ee.document.location.href=this.output("datauristring",C);default:return null}}),uc=function(g){return Array.isArray(Rn)===!0&&Rn.indexOf(g)>-1};switch(t){case"pt":TA=1;break;case"mm":TA=72/25.4;break;case"cm":TA=72/2.54;break;case"in":TA=72;break;case"px":TA=uc("px_scaling")==1?.75:96/72;break;case"pc":case"em":TA=12;break;case"ex":TA=6;break;default:if(typeof t!="number")throw new Error("Invalid unit: "+t);TA=t}var Xt=null;QA(),tA();var zg=function(g){return f!==null?Xt.encryptor(g,0):function(C){return C}},cc=h.__private__.getPageInfo=h.getPageInfo=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:GA[g].objId,pageNumber:g,pageContext:GA[g]}},ie=h.__private__.getPageInfoByObjId=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var C in GA)if(GA[C].objId===g)break;return cc(C)},Xg=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:GA[O].objId,pageNumber:O,pageContext:GA[O]}};h.addPage=function(){return sc.apply(this,arguments),this},h.setPage=function(){return oc.apply(this,arguments),dA.call(this,FA[O]),this},h.insertPage=function(g){return this.addPage(),this.movePage(O,g),this},h.movePage=function(g,C){var D,W;if(g>C){D=FA[g],W=GA[g];for(var nA=g;nA>C;nA--)FA[nA]=FA[nA-1],GA[nA]=GA[nA-1];FA[C]=D,GA[C]=W,this.setPage(C)}else if(g<C){D=FA[g],W=GA[g];for(var pA=g;pA<C;pA++)FA[pA]=FA[pA+1],GA[pA]=GA[pA+1];FA[C]=D,GA[C]=W,this.setPage(C)}return this},h.deletePage=function(){return jg.apply(this,arguments),this},h.__private__.text=h.text=function(g,C,D,W,nA){var pA,CA,DA,XA,ue,oe,be,ze,et,wt=(W=W||{}).scope||this;if(typeof g=="number"&&typeof C=="number"&&(typeof D=="string"||Array.isArray(D))){var Yt=D;D=C,C=g,g=Yt}if(arguments[3]instanceof YA?(_("The transform parameter of text() with a Matrix value"),et=nA):(DA=arguments[4],XA=arguments[5],Qe(be=arguments[3])==="object"&&be!==null||(typeof DA=="string"&&(XA=DA,DA=null),typeof be=="string"&&(XA=be,be=null),typeof be=="number"&&(DA=be,be=null),W={flags:be,angle:DA,align:XA})),isNaN(C)||isNaN(D)||g==null)throw new Error("Invalid arguments passed to jsPDF.text");if(g.length===0)return wt;var Lt="",ln=!1,Qr=typeof W.lineHeightFactor=="number"?W.lineHeightFactor:sa,Fn=wt.internal.scaleFactor;function mc(Re){return Re=Re.split(" ").join(Array(W.TabLen||9).join(" ")),hr(Re,be)}function _o(Re){for(var Me,dt=Re.concat(),Qt=[],$n=dt.length;$n--;)typeof(Me=dt.shift())=="string"?Qt.push(Me):Array.isArray(Re)&&(Me.length===1||Me[1]===void 0&&Me[2]===void 0)?Qt.push(Me[0]):Qt.push([Me[0],Me[1],Me[2]]);return Qt}function Po(Re,Me){var dt;if(typeof Re=="string")dt=Me(Re)[0];else if(Array.isArray(Re)){for(var Qt,$n,Go=Re.concat(),gs=[],Qc=Go.length;Qc--;)typeof(Qt=Go.shift())=="string"?gs.push(Me(Qt)[0]):Array.isArray(Qt)&&typeof Qt[0]=="string"&&($n=Me(Qt[0],Qt[1],Qt[2]),gs.push([$n[0],$n[1],$n[2]]));dt=gs}return dt}var as=!1,Do=!0;if(typeof g=="string")as=!0;else if(Array.isArray(g)){var Ro=g.concat();CA=[];for(var ss,Rt=Ro.length;Rt--;)(typeof(ss=Ro.shift())!="string"||Array.isArray(ss)&&typeof ss[0]!="string")&&(Do=!1);as=Do}if(as===!1)throw new Error('Type of text must be string or Array. "'+g+'" is not recognized.');typeof g=="string"&&(g=g.match(/[\r?\n]/)?g.split(/\r\n|\r|\n/g):[g]);var os=xA/wt.internal.scaleFactor,ls=os*(Qr-1);switch(W.baseline){case"bottom":D-=ls;break;case"top":D+=os-ls;break;case"hanging":D+=os-2*ls;break;case"middle":D+=os/2-ls}if((oe=W.maxWidth||0)>0&&(typeof g=="string"?g=wt.splitTextToSize(g,oe):Object.prototype.toString.call(g)==="[object Array]"&&(g=g.reduce(function(Re,Me){return Re.concat(wt.splitTextToSize(Me,oe))},[]))),pA={text:g,x:C,y:D,options:W,mutex:{pdfEscape:hr,activeFontKey:ne,fonts:we,activeFontSize:xA}},ve.publish("preProcessText",pA),g=pA.text,DA=(W=pA.options).angle,!(et instanceof YA)&&DA&&typeof DA=="number"){DA*=Math.PI/180,W.rotationDirection===0&&(DA=-DA),T===Q.ADVANCED&&(DA=-DA);var us=Math.cos(DA),Mo=Math.sin(DA);et=new YA(us,Mo,-Mo,us,0,0)}else DA&&DA instanceof YA&&(et=DA);T!==Q.ADVANCED||et||(et=tr),(ue=W.charSpace||rs)!==void 0&&(Lt+=j(L(ue))+` Tc
|
|
645
|
+
`,this.setCharSpace(this.getCharSpace()||0)),(ze=W.horizontalScale)!==void 0&&(Lt+=j(100*ze)+` Tz
|
|
646
|
+
`),W.lang;var dr=-1,ap=W.renderingMode!==void 0?W.renderingMode:W.stroke,ko=wt.internal.getCurrentPageInfo().pageContext;switch(ap){case 0:case!1:case"fill":dr=0;break;case 1:case!0:case"stroke":dr=1;break;case 2:case"fillThenStroke":dr=2;break;case 3:case"invisible":dr=3;break;case 4:case"fillAndAddForClipping":dr=4;break;case 5:case"strokeAndAddPathForClipping":dr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":dr=6;break;case 7:case"addToPathForClipping":dr=7}var yc=ko.usedRenderingMode!==void 0?ko.usedRenderingMode:-1;dr!==-1?Lt+=dr+` Tr
|
|
647
|
+
`:yc!==-1&&(Lt+=`0 Tr
|
|
648
|
+
`),dr!==-1&&(ko.usedRenderingMode=dr),XA=W.align||"left";var Pr,cs=xA*Qr,bc=wt.internal.pageSize.getWidth(),Cc=we[ne];ue=W.charSpace||rs,oe=W.maxWidth||0,be=Object.assign({autoencode:!0,noBOM:!0},W.flags);var yi=[],ua=function(Re){return wt.getStringUnitWidth(Re,{font:Cc,charSpace:ue,fontSize:xA,doKerning:!1})*xA/Fn};if(Object.prototype.toString.call(g)==="[object Array]"){var gr;CA=_o(g),XA!=="left"&&(Pr=CA.map(ua));var ir,bi=0;if(XA==="right"){C-=Pr[0],g=[],Rt=CA.length;for(var jn=0;jn<Rt;jn++)jn===0?(ir=Cn(C),gr=Kn(D)):(ir=L(bi-Pr[jn]),gr=-cs),g.push([CA[jn],ir,gr]),bi=Pr[jn]}else if(XA==="center"){C-=Pr[0]/2,g=[],Rt=CA.length;for(var Vn=0;Vn<Rt;Vn++)Vn===0?(ir=Cn(C),gr=Kn(D)):(ir=L((bi-Pr[Vn])/2),gr=-cs),g.push([CA[Vn],ir,gr]),bi=Pr[Vn]}else if(XA==="left"){g=[],Rt=CA.length;for(var fs=0;fs<Rt;fs++)g.push(CA[fs])}else if(XA==="justify"&&Cc.encoding==="Identity-H"){g=[],Rt=CA.length,oe=oe!==0?oe:bc;for(var Gn=0,ht=0;ht<Rt;ht++)if(gr=ht===0?Kn(D):-cs,ir=ht===0?Cn(C):Gn,ht<Rt-1){var Ko=L((oe-Pr[ht])/(CA[ht].split(" ").length-1)),ar=CA[ht].split(" ");g.push([ar[0]+" ",ir,gr]),Gn=0;for(var Dr=1;Dr<ar.length;Dr++){var hs=(ua(ar[Dr-1]+" "+ar[Dr])-ua(ar[Dr]))*Fn+Ko;Dr==ar.length-1?g.push([ar[Dr],hs,0]):g.push([ar[Dr]+" ",hs,0]),Gn-=hs}}else g.push([CA[ht],ir,gr]);g.push(["",Gn,0])}else{if(XA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(g=[],Rt=CA.length,oe=oe!==0?oe:bc,ht=0;ht<Rt;ht++)gr=ht===0?Kn(D):-cs,ir=ht===0?Cn(C):0,ht<Rt-1?yi.push(j(L((oe-Pr[ht])/(CA[ht].split(" ").length-1)))):yi.push(0),g.push([CA[ht],ir,gr])}}var Fc=typeof W.R2L=="boolean"?W.R2L:KA;Fc===!0&&(g=Po(g,function(Re,Me,dt){return[Re.split("").reverse().join(""),Me,dt]})),pA={text:g,x:C,y:D,options:W,mutex:{pdfEscape:hr,activeFontKey:ne,fonts:we,activeFontSize:xA}},ve.publish("postProcessText",pA),g=pA.text,ln=pA.mutex.isHex||!1;var jo=we[ne].encoding;jo!=="WinAnsiEncoding"&&jo!=="StandardEncoding"||(g=Po(g,function(Re,Me,dt){return[mc(Re),Me,dt]})),CA=_o(g),g=[];for(var ca,fa,Ci,ha=0,ds=1,da=Array.isArray(CA[0])?ds:ha,Fi="",Vo=function(Re,Me,dt){var Qt="";return dt instanceof YA?(dt=typeof W.angle=="number"?br(dt,new YA(1,0,0,1,Re,Me)):br(new YA(1,0,0,1,Re,Me),dt),T===Q.ADVANCED&&(dt=br(new YA(1,0,0,-1,0,0),dt)),Qt=dt.join(" ")+` Tm
|
|
649
|
+
`):Qt=j(Re)+" "+j(Me)+` Td
|
|
650
|
+
`,Qt},Rr=0;Rr<CA.length;Rr++){switch(Fi="",da){case ds:Ci=(ln?"<":"(")+CA[Rr][0]+(ln?">":")"),ca=parseFloat(CA[Rr][1]),fa=parseFloat(CA[Rr][2]);break;case ha:Ci=(ln?"<":"(")+CA[Rr]+(ln?">":")"),ca=Cn(C),fa=Kn(D)}yi!==void 0&&yi[Rr]!==void 0&&(Fi=yi[Rr]+` Tw
|
|
651
|
+
`),Rr===0?g.push(Fi+Vo(ca,fa,et)+Ci):da===ha?g.push(Fi+Ci):da===ds&&g.push(Fi+Vo(ca,fa,et)+Ci)}g=da===ha?g.join(` Tj
|
|
652
|
+
T* `):g.join(` Tj
|
|
653
|
+
`),g+=` Tj
|
|
654
|
+
`;var Mr=`BT
|
|
655
|
+
/`;return Mr+=ne+" "+xA+` Tf
|
|
656
|
+
`,Mr+=j(xA*Qr)+` TL
|
|
657
|
+
`,Mr+=oa+`
|
|
658
|
+
`,Mr+=Lt,Mr+=g,K(Mr+="ET"),p[ne]=!0,wt};var Yg=h.__private__.clip=h.clip=function(g){return K(g==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return Yg("evenodd")},h.__private__.discardPath=h.discardPath=function(){return K("n"),this};var bn=h.__private__.isValidStyle=function(g){var C=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(g)!==-1&&(C=!0),C};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(g){return bn(g)&&(u=g),this};var fc=h.__private__.getStyle=h.getStyle=function(g){var C=u;switch(g){case"D":case"S":C="S";break;case"F":C="f";break;case"FD":case"DF":C="B";break;case"f":case"f*":case"B":case"B*":C=g}return C},hc=h.close=function(){return K("h"),this};h.stroke=function(){return K("S"),this},h.fill=function(g){return es("f",g),this},h.fillEvenOdd=function(g){return es("f*",g),this},h.fillStroke=function(g){return es("B",g),this},h.fillStrokeEvenOdd=function(g){return es("B*",g),this};var es=function(g,C){Qe(C)==="object"?Zg(C,g):K(g)},Uo=function(g){g===null||T===Q.ADVANCED&&g===void 0||(g=fc(g),K(g))};function Jg(g,C,D,W,nA){var pA=new Di(C||this.boundingBox,D||this.xStep,W||this.yStep,this.gState,nA||this.matrix);pA.stream=this.stream;var CA=g+"$$"+this.cloneIndex+++"$$";return xt(CA,pA),pA}var Zg=function(g,C){var D=zt[g.key],W=pe[D];if(W instanceof oi)K("q"),K(Ap(C)),W.gState&&h.setGState(W.gState),K(g.matrix.toString()+" cm"),K("/"+D+" sh"),K("Q");else if(W instanceof Di){var nA=new YA(1,0,0,-1,0,mi());g.matrix&&(nA=nA.multiply(g.matrix||tr),D=Jg.call(W,g.key,g.boundingBox,g.xStep,g.yStep,nA).id),K("q"),K("/Pattern cs"),K("/"+D+" scn"),W.gState&&h.setGState(W.gState),K(C),K("Q")}},Ap=function(g){switch(g){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Eo=h.moveTo=function(g,C){return K(j(L(g))+" "+j(M(C))+" m"),this},aa=h.lineTo=function(g,C){return K(j(L(g))+" "+j(M(C))+" l"),this},Bi=h.curveTo=function(g,C,D,W,nA,pA){return K([j(L(g)),j(M(C)),j(L(D)),j(M(W)),j(L(nA)),j(M(pA)),"c"].join(" ")),this};h.__private__.line=h.line=function(g,C,D,W,nA){if(isNaN(g)||isNaN(C)||isNaN(D)||isNaN(W)||!bn(nA))throw new Error("Invalid arguments passed to jsPDF.line");return T===Q.COMPAT?this.lines([[D-g,W-C]],g,C,[1,1],nA||"S"):this.lines([[D-g,W-C]],g,C,[1,1]).stroke()},h.__private__.lines=h.lines=function(g,C,D,W,nA,pA){var CA,DA,XA,ue,oe,be,ze,et,wt,Yt,Lt,ln;if(typeof g=="number"&&(ln=D,D=C,C=g,g=ln),W=W||[1,1],pA=pA||!1,isNaN(C)||isNaN(D)||!Array.isArray(g)||!Array.isArray(W)||!bn(nA)||typeof pA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Eo(C,D),CA=W[0],DA=W[1],ue=g.length,Yt=C,Lt=D,XA=0;XA<ue;XA++)(oe=g[XA]).length===2?(Yt=oe[0]*CA+Yt,Lt=oe[1]*DA+Lt,aa(Yt,Lt)):(be=oe[0]*CA+Yt,ze=oe[1]*DA+Lt,et=oe[2]*CA+Yt,wt=oe[3]*DA+Lt,Yt=oe[4]*CA+Yt,Lt=oe[5]*DA+Lt,Bi(be,ze,et,wt,Yt,Lt));return pA&&hc(),Uo(nA),this},h.path=function(g){for(var C=0;C<g.length;C++){var D=g[C],W=D.c;switch(D.op){case"m":Eo(W[0],W[1]);break;case"l":aa(W[0],W[1]);break;case"c":Bi.apply(this,W);break;case"h":hc()}}return this},h.__private__.rect=h.rect=function(g,C,D,W,nA){if(isNaN(g)||isNaN(C)||isNaN(D)||isNaN(W)||!bn(nA))throw new Error("Invalid arguments passed to jsPDF.rect");return T===Q.COMPAT&&(W=-W),K([j(L(g)),j(M(C)),j(L(D)),j(L(W)),"re"].join(" ")),Uo(nA),this},h.__private__.triangle=h.triangle=function(g,C,D,W,nA,pA,CA){if(isNaN(g)||isNaN(C)||isNaN(D)||isNaN(W)||isNaN(nA)||isNaN(pA)||!bn(CA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[D-g,W-C],[nA-D,pA-W],[g-nA,C-pA]],g,C,[1,1],CA,!0),this},h.__private__.roundedRect=h.roundedRect=function(g,C,D,W,nA,pA,CA){if(isNaN(g)||isNaN(C)||isNaN(D)||isNaN(W)||isNaN(nA)||isNaN(pA)||!bn(CA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var DA=4/3*(Math.SQRT2-1);return nA=Math.min(nA,.5*D),pA=Math.min(pA,.5*W),this.lines([[D-2*nA,0],[nA*DA,0,nA,pA-pA*DA,nA,pA],[0,W-2*pA],[0,pA*DA,-nA*DA,pA,-nA,pA],[2*nA-D,0],[-nA*DA,0,-nA,-pA*DA,-nA,-pA],[0,2*pA-W],[0,-pA*DA,nA*DA,-pA,nA,-pA]],g+nA,C,[1,1],CA,!0),this},h.__private__.ellipse=h.ellipse=function(g,C,D,W,nA){if(isNaN(g)||isNaN(C)||isNaN(D)||isNaN(W)||!bn(nA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var pA=4/3*(Math.SQRT2-1)*D,CA=4/3*(Math.SQRT2-1)*W;return Eo(g+D,C),Bi(g+D,C-CA,g+pA,C-W,g,C-W),Bi(g-pA,C-W,g-D,C-CA,g-D,C),Bi(g-D,C+CA,g-pA,C+W,g,C+W),Bi(g+pA,C+W,g+D,C+CA,g+D,C),Uo(nA),this},h.__private__.circle=h.circle=function(g,C,D,W){if(isNaN(g)||isNaN(C)||isNaN(D)||!bn(W))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(g,C,D,D,W)},h.setFont=function(g,C,D){return D&&(C=$(C,D)),ne=lc(g,C,{disableWarning:!1}),this};var ep=h.__private__.getFont=h.getFont=function(){return we[lc.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var g,C,D={};for(g in ge)if(ge.hasOwnProperty(g))for(C in D[g]=[],ge[g])ge[g].hasOwnProperty(C)&&D[g].push(C);return D},h.addFont=function(g,C,D,W,nA){var pA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&pA.indexOf(arguments[3])!==-1?nA=arguments[3]:arguments[3]&&pA.indexOf(arguments[3])==-1&&(D=$(D,W)),nA=nA||"Identity-H",Co.call(this,g,C,D,nA)};var sa,xo=r.lineWidth||.200025,ts=h.__private__.getLineWidth=h.getLineWidth=function(){return xo},dc=h.__private__.setLineWidth=h.setLineWidth=function(g){return xo=g,K(j(L(g))+" w"),this};h.__private__.setLineDash=ZA.API.setLineDash=ZA.API.setLineDashPattern=function(g,C){if(g=g||[],C=C||0,isNaN(C)||!Array.isArray(g))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return g=g.map(function(D){return j(L(D))}).join(" "),C=j(L(C)),K("["+g+"] "+C+" d"),this};var gc=h.__private__.getLineHeight=h.getLineHeight=function(){return xA*sa};h.__private__.getLineHeight=h.getLineHeight=function(){return xA*sa};var pc=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(g){return typeof(g=g||1.15)=="number"&&(sa=g),this},vc=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return sa};pc(r.lineHeight);var Cn=h.__private__.getHorizontalCoordinate=function(g){return L(g)},Kn=h.__private__.getVerticalCoordinate=function(g){return T===Q.ADVANCED?g:GA[O].mediaBox.topRightY-GA[O].mediaBox.bottomLeftY-L(g)},tp=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(g){return j(Cn(g))},wi=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(g){return j(Kn(g))},on=r.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return Dt(on)},h.__private__.setStrokeColor=h.setDrawColor=function(g,C,D,W){return on=ct({ch1:g,ch2:C,ch3:D,ch4:W,pdfColorType:"draw",precision:2}),K(on),this};var Io=r.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return Dt(Io)},h.__private__.setFillColor=h.setFillColor=function(g,C,D,W){return Io=ct({ch1:g,ch2:C,ch3:D,ch4:W,pdfColorType:"fill",precision:2}),K(Io),this};var oa=r.textColor||"0 g",rp=h.__private__.getTextColor=h.getTextColor=function(){return Dt(oa)};h.__private__.setTextColor=h.setTextColor=function(g,C,D,W){return oa=ct({ch1:g,ch2:C,ch3:D,ch4:W,pdfColorType:"text",precision:3}),this};var rs=r.charSpace,np=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(rs||0)};h.__private__.setCharSpace=h.setCharSpace=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return rs=g,this};var So=0;h.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},h.__private__.setLineCap=h.setLineCap=function(g){var C=h.CapJoinStyles[g];if(C===void 0)throw new Error("Line cap style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return So=C,K(C+" J"),this};var Lo=0;h.__private__.setLineJoin=h.setLineJoin=function(g){var C=h.CapJoinStyles[g];if(C===void 0)throw new Error("Line join style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Lo=C,K(C+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(g){if(g=g||0,isNaN(g))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return K(j(L(g))+" M"),this},h.GState=$s,h.setGState=function(g){(g=typeof g=="string"?Ie[qe[g]]:Bc(null,g)).equals(De)||(K("/"+g.id+" gs"),De=g)};var Bc=function(g,C){if(!g||!qe[g]){var D=!1;for(var W in Ie)if(Ie.hasOwnProperty(W)&&Ie[W].equals(C)){D=!0;break}if(D)C=Ie[W];else{var nA="GS"+(Object.keys(Ie).length+1).toString(10);Ie[nA]=C,C.id=nA}return g&&(qe[g]=C.id),ve.publish("addGState",C),C}};h.addGState=function(g,C){return Bc(g,C),this},h.saveGraphicsState=function(){return K("q"),lt.push({key:ne,size:xA,color:oa}),this},h.restoreGraphicsState=function(){K("Q");var g=lt.pop();return ne=g.key,xA=g.size,oa=g.color,De=null,this},h.setCurrentTransformationMatrix=function(g){return K(g.toString()+" cm"),this},h.comment=function(g){return K("#"+g),this};var ns=function(g,C){var D=g||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return D},set:function(pA){isNaN(pA)||(D=parseFloat(pA))}});var W=C||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return W},set:function(pA){isNaN(pA)||(W=parseFloat(pA))}});var nA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return nA},set:function(pA){nA=pA.toString()}}),this},No=function(g,C,D,W){ns.call(this,g,C),this.type="rect";var nA=D||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return nA},set:function(CA){isNaN(CA)||(nA=parseFloat(CA))}});var pA=W||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pA},set:function(CA){isNaN(CA)||(pA=parseFloat(CA))}}),this},To=function(){this.page=$e,this.currentPage=O,this.pages=FA.slice(0),this.pagesContext=GA.slice(0),this.x=Ke,this.y=de,this.matrix=Ft,this.width=la(O),this.height=mi(O),this.outputDestination=LA,this.id="",this.objectNumber=-1};To.prototype.restore=function(){$e=this.page,O=this.currentPage,GA=this.pagesContext,FA=this.pages,Ke=this.x,de=this.y,Ft=this.matrix,Oo(O,this.width),Ho(O,this.height),LA=this.outputDestination};var wc=function(g,C,D,W,nA){yr.push(new To),$e=O=0,FA=[],Ke=g,de=C,Ft=nA,Fo([D,W])},ip=function(g){if(fr[g])yr.pop().restore();else{var C=new To,D="Xo"+(Object.keys(Bt).length+1).toString(10);C.id=D,fr[g]=D,Bt[D]=C,ve.publish("addFormObject",C),yr.pop().restore()}};for(var is in h.beginFormObject=function(g,C,D,W,nA){return wc(g,C,D,W,nA),this},h.endFormObject=function(g){return ip(g),this},h.doFormObject=function(g,C){var D=Bt[fr[g]];return K("q"),K(C.toString()+" cm"),K("/"+D.id+" Do"),K("Q"),this},h.getFormObject=function(g){var C=Bt[fr[g]];return{x:C.x,y:C.y,width:C.width,height:C.height,matrix:C.matrix}},h.save=function(g,C){return g=g||"generated.pdf",(C=C||{}).returnPromise=C.returnPromise||!1,C.returnPromise===!1?(Pi(Za(kn()),g),typeof Pi.unload=="function"&&ee.setTimeout&&setTimeout(Pi.unload,911),this):new Promise(function(D,W){try{var nA=Pi(Za(kn()),g);typeof Pi.unload=="function"&&ee.setTimeout&&setTimeout(Pi.unload,911),D(nA)}catch(pA){W(pA.message)}})},ZA.API)ZA.API.hasOwnProperty(is)&&(is==="events"&&ZA.API.events.length?function(g,C){var D,W,nA;for(nA=C.length-1;nA!==-1;nA--)D=C[nA][0],W=C[nA][1],g.subscribe.apply(g,[D].concat(typeof W=="function"?[W]:W))}(ve,ZA.API.events):h[is]=ZA.API[is]);var la=h.getPageWidth=function(g){return(GA[g=g||O].mediaBox.topRightX-GA[g].mediaBox.bottomLeftX)/TA},Oo=h.setPageWidth=function(g,C){GA[g].mediaBox.topRightX=C*TA+GA[g].mediaBox.bottomLeftX},mi=h.getPageHeight=function(g){return(GA[g=g||O].mediaBox.topRightY-GA[g].mediaBox.bottomLeftY)/TA},Ho=h.setPageHeight=function(g,C){GA[g].mediaBox.topRightY=C*TA+GA[g].mediaBox.bottomLeftY};return h.internal={pdfEscape:hr,getStyle:fc,getFont:ep,getFontSize:IA,getCharSpace:np,getTextColor:rp,getLineHeight:gc,getLineHeightFactor:vc,getLineWidth:ts,write:Ae,getHorizontalCoordinate:Cn,getVerticalCoordinate:Kn,getCoordinateString:tp,getVerticalCoordinateString:wi,collections:{},newObject:ut,newAdditionalObject:Mn,newObjectDeferred:Ce,newObjectDeferredBegin:It,getFilters:Cr,putStream:nr,events:ve,scaleFactor:TA,pageSize:{getWidth:function(){return la(O)},setWidth:function(g){Oo(O,g)},getHeight:function(){return mi(O)},setHeight:function(g){Ho(O,g)}},encryptionOptions:f,encryption:Xt,getEncryptor:zg,output:As,getNumberOfPages:Vg,pages:FA,out:K,f2:iA,f3:S,getPageInfo:cc,getPageInfoByObjId:ie,getCurrentPageInfo:Xg,getPDFVersion:w,Point:ns,Rectangle:No,Matrix:YA,hasHotfix:uc},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return la(O)},set:function(g){Oo(O,g)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return mi(O)},set:function(g){Ho(O,g)},enumerable:!0,configurable:!0}),Kg.call(h,yA),ne="F1",sc(n,e),ve.publish("initialized"),h}Sa.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},Sa.prototype.toHexString=function(r){return r.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Sa.prototype.hexToBytes=function(r){for(var A=[],e=0;e<r.length;e+=2)A.push(String.fromCharCode(parseInt(r.substr(e,2),16)));return A.join("")},Sa.prototype.processOwnerPassword=function(r,A){return ih(nh(A).substr(0,5),r)},Sa.prototype.encryptor=function(r,A){var e=nh(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&A,A>>8&255)).substr(0,10);return function(t){return ih(e,t)}},$s.prototype.equals=function(r){var A,e="id,objectNumber,equals";if(!r||Qe(r)!==Qe(this))return!1;var t=0;for(A in this)if(!(e.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!r.hasOwnProperty(A)||this[A]!==r[A])return!1;t++}for(A in r)r.hasOwnProperty(A)&&e.indexOf(A)<0&&t--;return t===0},ZA.API={events:[]},ZA.version="2.5.2";var Xe=ZA.API,ah=1,Ri=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Na=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ae=function(r){return r.toFixed(2)},li=function(r){return r.toFixed(5)};Xe.__acroform__={};var lr=function(r,A){r.prototype=Object.create(A.prototype),r.prototype.constructor=r},Av=function(r){return r*ah},pn=function(r){var A=new tv,e=jA.internal.getHeight(r)||0,t=jA.internal.getWidth(r)||0;return A.BBox=[0,0,Number(ae(t)),Number(ae(e))],A},TQ=Xe.__acroform__.setBit=function(r,A){if(r=r||0,A=A||0,isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<<A},OQ=Xe.__acroform__.clearBit=function(r,A){if(r=r||0,A=A||0,isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&=~(1<<A)},HQ=Xe.__acroform__.getBit=function(r,A){if(isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return r&1<<A?1:0},it=Xe.__acroform__.getBitForPdf=function(r,A){if(isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return HQ(r,A-1)},at=Xe.__acroform__.setBitForPdf=function(r,A){if(isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return TQ(r,A-1)},st=Xe.__acroform__.clearBitForPdf=function(r,A){if(isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return OQ(r,A-1)},_Q=Xe.__acroform__.calculateCoordinates=function(r,A){var e=A.internal.getHorizontalCoordinate,t=A.internal.getVerticalCoordinate,n=r[0],i=r[1],a=r[2],s=r[3],o={};return o.lowerLeft_X=e(n)||0,o.lowerLeft_Y=t(i+s)||0,o.upperRight_X=e(n+a)||0,o.upperRight_Y=t(i)||0,[Number(ae(o.lowerLeft_X)),Number(ae(o.lowerLeft_Y)),Number(ae(o.upperRight_X)),Number(ae(o.upperRight_Y))]},PQ=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var A=[],e=r._V||r.DV,t=sh(r,e),n=r.scope.internal.getFont(r.fontName,r.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(r.scope.__private__.encodeColorString(r.color)),A.push("/"+n+" "+ae(t.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(t.text),A.push("ET"),A.push("Q"),A.push("EMC");var i=pn(r);return i.scope=r.scope,i.stream=A.join(`
|
|
659
|
+
`),i}},sh=function(r,A){var e=r.fontSize===0?r.maxFontSize:r.fontSize,t={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=r.multiline?n.map(function(S){return S.split(`
|
|
660
|
+
`)}):n.map(function(S){return[S]});var i=e,a=jA.internal.getHeight(r)||0;a=a<0?-a:a;var s=jA.internal.getWidth(r)||0;s=s<0?-s:s;var o=function(S,L,k){if(S+1<n.length){var M=L+" "+n[S+1][0];return zl(M,r,k).width<=s-4}return!1};i++;A:for(;i>0;){A="",i--;var u,f,d=zl("3",r,i).height,p=r.multiline?a-i:(a-d)/2,h=p+=2,m=0,w=0,F=0;if(i<=0){A=`(...) Tj
|
|
661
|
+
`,A+="% Width of Text: "+zl(A,r,i=12).width+", FieldWidth:"+s+`
|
|
662
|
+
`;break}for(var y="",Q=0,T=0;T<n.length;T++)if(n.hasOwnProperty(T)){var P=!1;if(n[T].length!==1&&F!==n[T].length-1){if((d+2)*(Q+2)+2>a)continue A;y+=n[T][F],P=!0,w=T,T--}else{y=(y+=n[T][F]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var G=parseInt(T),$=o(G,y,i),j=T>=n.length-1;if($&&!j){y+=" ",F=0;continue}if($||j){if(j)w=G;else if(r.multiline&&(d+2)*(Q+2)+2>a)continue A}else{if(!r.multiline||(d+2)*(Q+2)+2>a)continue A;w=G}}for(var _="",q=m;q<=w;q++){var iA=n[q];if(r.multiline){if(q===w){_+=iA[F]+" ",F=(F+1)%iA.length;continue}if(q===m){_+=iA[iA.length-1]+" ";continue}}_+=iA[0]+" "}switch(_=_.substr(_.length-1)==" "?_.substr(0,_.length-1):_,f=zl(_,r,i).width,r.textAlign){case"right":u=s-f-2;break;case"center":u=(s-f)/2;break;case"left":default:u=2}A+=ae(u)+" "+ae(h)+` Td
|
|
663
|
+
`,A+="("+Ri(_)+`) Tj
|
|
664
|
+
`,A+=-ae(u)+` 0 Td
|
|
665
|
+
`,h=-(i+2),f=0,m=P?w:w+1,Q++,y=""}break}return t.text=A,t.fontSize=i,t},zl=function(r,A,e){var t=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(r,{font:t,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:A.scope.getStringUnitWidth("3",{font:t,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},DQ={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},RQ=function(r,A){var e={type:"reference",object:r};A.internal.getPageInfo(r.page).pageContext.annotations.find(function(t){return t.type===e.type&&t.object===e.object})===void 0&&A.internal.getPageInfo(r.page).pageContext.annotations.push(e)},MQ=function(r,A){for(var e in r)if(r.hasOwnProperty(e)){var t=e,n=r[e];A.internal.newObjectDeferredBegin(n.objId,!0),Qe(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete r[t]}},kQ=function(r,A){if(A.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(Wr.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(DQ)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ah=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new rv,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.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})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];i.objId=void 0,i.hasAnnotation&&RQ(i,e)}})(r)}),r.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")})(r)}),r.internal.events.subscribe("postPutPages",function(e){(function(t,n){var i=!t;for(var a in t||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(a)){var s=t[a],o=[],u=s.Rect;if(s.Rect&&(s.Rect=_Q(s.Rect,n)),n.internal.newObjectDeferredBegin(s.objId,!0),s.DA=jA.createDefaultAppearanceStream(s),Qe(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(o=s.getKeyValueListForStream()),s.Rect=u,s.hasAppearanceStream&&!s.appearanceStreamContent){var f=PQ(s);o.push({key:"AP",value:"<</N "+f+">>"}),n.internal.acroformPlugin.xForms.push(f)}if(s.appearanceStreamContent){var d="";for(var p in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(p)){var h=s.appearanceStreamContent[p];if(d+="/"+p+" ",d+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var a in h)if(h.hasOwnProperty(a)){var m=h[a];typeof m=="function"&&(m=m.call(n,s)),d+="/"+a+" "+m+" ",n.internal.acroformPlugin.xForms.indexOf(m)>=0||n.internal.acroformPlugin.xForms.push(m)}}else typeof(m=h)=="function"&&(m=m.call(n,s)),d+="/"+a+" "+m,n.internal.acroformPlugin.xForms.indexOf(m)>=0||n.internal.acroformPlugin.xForms.push(m);d+=">>"}o.push({key:"AP",value:`<<
|
|
666
|
+
`+d+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:s.objId}),n.internal.out("endobj")}i&&MQ(n.internal.acroformPlugin.xForms,n)})(e,r)}),r.internal.acroformPlugin.isInitialized=!0}},ev=Xe.__acroform__.arrayToPdfArray=function(r,A,e){var t=function(a){return a};if(Array.isArray(r)){for(var n="[",i=0;i<r.length;i++)switch(i!==0&&(n+=" "),Qe(r[i])){case"boolean":case"number":case"object":n+=r[i].toString();break;case"string":r[i].substr(0,1)!=="/"?(A!==void 0&&e&&(t=e.internal.getEncryptor(A)),n+="("+Ri(t(r[i].toString()))+")"):n+=r[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},oh=function(r,A,e){var t=function(n){return n};return A!==void 0&&e&&(t=e.internal.getEncryptor(A)),(r=r||"").toString(),r="("+Ri(t(r))+")"},vn=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(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};vn.prototype.toString=function(){return this.objId+" 0 R"},vn.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},vn.prototype.getKeyValueListForStream=function(){var r=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in A)if(Object.getOwnPropertyDescriptor(this,A[e]).configurable===!1){var t=A[e],n=this[t];n&&(Array.isArray(n)?r.push({key:t,value:ev(n,this.objId,this.scope)}):n instanceof vn?(n.scope=this.scope,r.push({key:t,value:n.objId+" 0 R"})):typeof n!="function"&&r.push({key:t,value:n}))}return r};var tv=function(){vn.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 r,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){r=e.trim()},get:function(){return r||null}})};lr(tv,vn);var rv=function(){vn.call(this);var r,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Ri(e(r))+")"}},set:function(e){r=e}})};lr(rv,vn);var Wr=function r(){vn.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');A=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!it(A,3)},set:function(y){y?this.F=at(A,3):this.F=st(A,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 t=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(t.length!==0)return t},set:function(y){t=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!t||isNaN(t[0])?0:t[0]},set:function(y){t[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!t||isNaN(t[1])?0:t[1]},set:function(y){t[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!t||isNaN(t[2])?0:t[2]},set:function(y){t[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!t||isNaN(t[3])?0:t[3]},set:function(y){t[3]=y}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Xl)return;i="FieldObject"+r.FieldNum++}var y=function(Q){return Q};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Ri(y(i))+")"},set:function(y){i=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(y){i=y}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(y){a=y}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/ah:u},set:function(y){u=y}});var f="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return f},set:function(y){f=y}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof Xl||this instanceof ui))return oh(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=y}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Ct?p:oh(p,this.objId,this.scope)},set:function(y){y=y.toString(),p=this instanceof Ct?y:y.substr(0,1)==="("?Na(y.substr(1,y.length-2)):Na(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ct?Na(p.substr(1,p.length-1)):p},set:function(y){y=y.toString(),p=this instanceof Ct?"/"+y:y}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Ct?h:oh(h,this.objId,this.scope)},set:function(y){y=y.toString(),h=this instanceof Ct?y:y.substr(0,1)==="("?Na(y.substr(1,y.length-2)):Na(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ct?Na(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof Ct?"/"+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 m,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(y){y=!!y,w=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(y){m=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,1)},set:function(y){y?this.Ff=at(this.Ff,1):this.Ff=st(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,2)},set:function(y){y?this.Ff=at(this.Ff,2):this.Ff=st(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,3)},set:function(y){y?this.Ff=at(this.Ff,3):this.Ff=st(this.Ff,3)}});var F=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(F!==null)return F},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');F=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(F){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:F=2;break;case"center":case 1:F=1;break;case"left":case 0:default:F=0}}})};lr(Wr,vn);var Mi=function(){Wr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){r=e}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ev(A,this.objId,this.scope)},set:function(e){var t,n;n=[],typeof(t=e)=="string"&&(n=function(i,a,s){s||(s=1);for(var o,u=[];o=a.exec(i);)u.push(o[s]);return u}(t,/\((.*?)\)/g)),A=n}}),this.getOptions=function(){return A},this.setOptions=function(e){A=e,this.sort&&A.sort()},this.addOption=function(e){e=(e=e||"").toString(),A.push(e),this.sort&&A.sort()},this.removeOption=function(e,t){for(t=t||!1,e=(e=e||"").toString();A.indexOf(e)!==-1&&(A.splice(A.indexOf(e),1),t!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,18)},set:function(e){e?this.Ff=at(this.Ff,18):this.Ff=st(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=at(this.Ff,19):this.Ff=st(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,20)},set:function(e){e?(this.Ff=at(this.Ff,20),A.sort()):this.Ff=st(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,22)},set:function(e){e?this.Ff=at(this.Ff,22):this.Ff=st(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,23)},set:function(e){e?this.Ff=at(this.Ff,23):this.Ff=st(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,27)},set:function(e){e?this.Ff=at(this.Ff,27):this.Ff=st(this.Ff,27)}}),this.hasAppearanceStream=!1};lr(Mi,Wr);var ki=function(){Mi.call(this),this.fontName="helvetica",this.combo=!1};lr(ki,Mi);var Ki=function(){ki.call(this),this.combo=!0};lr(Ki,ki);var qs=function(){Ki.call(this),this.edit=!0};lr(qs,Ki);var Ct=function(){Wr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,15)},set:function(e){e?this.Ff=at(this.Ff,15):this.Ff=st(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,16)},set:function(e){e?this.Ff=at(this.Ff,16):this.Ff=st(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,17)},set:function(e){e?this.Ff=at(this.Ff,17):this.Ff=st(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,26)},set:function(e){e?this.Ff=at(this.Ff,26):this.Ff=st(this.Ff,26)}});var r,A={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(A).length!==0){var t,n=[];for(t in n.push("<<"),A)n.push("/"+t+" ("+Ri(e(A[t]))+")");return n.push(">>"),n.join(`
|
|
667
|
+
`)}},set:function(e){Qe(e)==="object"&&(A=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(e){typeof e=="string"&&(A.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}})};lr(Ct,Wr);var Ws=function(){Ct.call(this),this.pushButton=!0};lr(Ws,Ct);var ji=function(){Ct.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(A){r=A!==void 0?A:[]}})};lr(ji,Ct);var Xl=function(){var r,A;Wr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(n){r=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),t)a.push("/"+i+" ("+Ri(n(t[i]))+")");return a.push(">>"),a.join(`
|
|
668
|
+
`)},set:function(n){Qe(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=jA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};lr(Xl,Wr),ji.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var e=this.Kids[A];e.appearanceStreamContent=r.createAppearanceStream(e.optionName),e.caption=r.getCA()}},ji.prototype.createOption=function(r){var A=new Xl;return A.Parent=this,A.optionName=r,this.Kids.push(A),KQ.call(this.scope,A),A};var zs=function(){Ct.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=jA.CheckBox.createAppearanceStream()};lr(zs,Ct);var ui=function(){Wr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,13)},set:function(A){A?this.Ff=at(this.Ff,13):this.Ff=st(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,21)},set:function(A){A?this.Ff=at(this.Ff,21):this.Ff=st(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,23)},set:function(A){A?this.Ff=at(this.Ff,23):this.Ff=st(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,24)},set:function(A){A?this.Ff=at(this.Ff,24):this.Ff=st(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,25)},set:function(A){A?this.Ff=at(this.Ff,25):this.Ff=st(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,26)},set:function(A){A?this.Ff=at(this.Ff,26):this.Ff=st(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(A){r=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(A){Number.isInteger(A)&&(r=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};lr(ui,Wr);var Xs=function(){ui.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!it(this.Ff,14)},set:function(r){r?this.Ff=at(this.Ff,14):this.Ff=st(this.Ff,14)}}),this.password=!0};lr(Xs,ui);var jA={CheckBox:{createAppearanceStream:function(){return{N:{On:jA.CheckBox.YesNormal},D:{On:jA.CheckBox.YesPushDown,Off:jA.CheckBox.OffPushDown}}},YesPushDown:function(r){var A=pn(r);A.scope=r.scope;var e=[],t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color),i=sh(r,r.caption);return e.push("0.749023 g"),e.push("0 0 "+ae(jA.internal.getWidth(r))+" "+ae(jA.internal.getHeight(r))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+t+" "+ae(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),A.stream=e.join(`
|
|
669
|
+
`),A},YesNormal:function(r){var A=pn(r);A.scope=r.scope;var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,t=r.scope.__private__.encodeColorString(r.color),n=[],i=jA.internal.getHeight(r),a=jA.internal.getWidth(r),s=sh(r,r.caption);return n.push("1 g"),n.push("0 0 "+ae(a)+" "+ae(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ae(a-1)+" "+ae(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+ae(s.fontSize)+" Tf "+t),n.push(s.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
|
|
670
|
+
`),A},OffPushDown:function(r){var A=pn(r);A.scope=r.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ae(jA.internal.getWidth(r))+" "+ae(jA.internal.getHeight(r))+" re"),e.push("f"),A.stream=e.join(`
|
|
671
|
+
`),A}},RadioButton:{Circle:{createAppearanceStream:function(r){var A={D:{Off:jA.RadioButton.Circle.OffPushDown},N:{}};return A.N[r]=jA.RadioButton.Circle.YesNormal,A.D[r]=jA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(r){var A=pn(r);A.scope=r.scope;var e=[],t=jA.internal.getWidth(r)<=jA.internal.getHeight(r)?jA.internal.getWidth(r)/4:jA.internal.getHeight(r)/4;t=Number((.9*t).toFixed(5));var n=jA.internal.Bezier_C,i=Number((t*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+li(jA.internal.getWidth(r)/2)+" "+li(jA.internal.getHeight(r)/2)+" cm"),e.push(t+" 0 m"),e.push(t+" "+i+" "+i+" "+t+" 0 "+t+" c"),e.push("-"+i+" "+t+" -"+t+" "+i+" -"+t+" 0 c"),e.push("-"+t+" -"+i+" -"+i+" -"+t+" 0 -"+t+" c"),e.push(i+" -"+t+" "+t+" -"+i+" "+t+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
|
|
672
|
+
`),A},YesPushDown:function(r){var A=pn(r);A.scope=r.scope;var e=[],t=jA.internal.getWidth(r)<=jA.internal.getHeight(r)?jA.internal.getWidth(r)/4:jA.internal.getHeight(r)/4;t=Number((.9*t).toFixed(5));var n=Number((2*t).toFixed(5)),i=Number((n*jA.internal.Bezier_C).toFixed(5)),a=Number((t*jA.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+li(jA.internal.getWidth(r)/2)+" "+li(jA.internal.getHeight(r)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+li(jA.internal.getWidth(r)/2)+" "+li(jA.internal.getHeight(r)/2)+" cm"),e.push(t+" 0 m"),e.push(t+" "+a+" "+a+" "+t+" 0 "+t+" c"),e.push("-"+a+" "+t+" -"+t+" "+a+" -"+t+" 0 c"),e.push("-"+t+" -"+a+" -"+a+" -"+t+" 0 -"+t+" c"),e.push(a+" -"+t+" "+t+" -"+a+" "+t+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
|
|
673
|
+
`),A},OffPushDown:function(r){var A=pn(r);A.scope=r.scope;var e=[],t=jA.internal.getWidth(r)<=jA.internal.getHeight(r)?jA.internal.getWidth(r)/4:jA.internal.getHeight(r)/4;t=Number((.9*t).toFixed(5));var n=Number((2*t).toFixed(5)),i=Number((n*jA.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+li(jA.internal.getWidth(r)/2)+" "+li(jA.internal.getHeight(r)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
|
|
674
|
+
`),A}},Cross:{createAppearanceStream:function(r){var A={D:{Off:jA.RadioButton.Cross.OffPushDown},N:{}};return A.N[r]=jA.RadioButton.Cross.YesNormal,A.D[r]=jA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(r){var A=pn(r);A.scope=r.scope;var e=[],t=jA.internal.calculateCross(r);return e.push("q"),e.push("1 1 "+ae(jA.internal.getWidth(r)-2)+" "+ae(jA.internal.getHeight(r)-2)+" re"),e.push("W"),e.push("n"),e.push(ae(t.x1.x)+" "+ae(t.x1.y)+" m"),e.push(ae(t.x2.x)+" "+ae(t.x2.y)+" l"),e.push(ae(t.x4.x)+" "+ae(t.x4.y)+" m"),e.push(ae(t.x3.x)+" "+ae(t.x3.y)+" l"),e.push("s"),e.push("Q"),A.stream=e.join(`
|
|
675
|
+
`),A},YesPushDown:function(r){var A=pn(r);A.scope=r.scope;var e=jA.internal.calculateCross(r),t=[];return t.push("0.749023 g"),t.push("0 0 "+ae(jA.internal.getWidth(r))+" "+ae(jA.internal.getHeight(r))+" re"),t.push("f"),t.push("q"),t.push("1 1 "+ae(jA.internal.getWidth(r)-2)+" "+ae(jA.internal.getHeight(r)-2)+" re"),t.push("W"),t.push("n"),t.push(ae(e.x1.x)+" "+ae(e.x1.y)+" m"),t.push(ae(e.x2.x)+" "+ae(e.x2.y)+" l"),t.push(ae(e.x4.x)+" "+ae(e.x4.y)+" m"),t.push(ae(e.x3.x)+" "+ae(e.x3.y)+" l"),t.push("s"),t.push("Q"),A.stream=t.join(`
|
|
676
|
+
`),A},OffPushDown:function(r){var A=pn(r);A.scope=r.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ae(jA.internal.getWidth(r))+" "+ae(jA.internal.getHeight(r))+" re"),e.push("f"),A.stream=e.join(`
|
|
677
|
+
`),A}}},createDefaultAppearanceStream:function(r){var A=r.scope.internal.getFont(r.fontName,r.fontStyle).id,e=r.scope.__private__.encodeColorString(r.color);return"/"+A+" "+r.fontSize+" Tf "+e}};jA.internal={Bezier_C:.551915024494,calculateCross:function(r){var A=jA.internal.getWidth(r),e=jA.internal.getHeight(r),t=Math.min(A,e);return{x1:{x:(A-t)/2,y:(e-t)/2+t},x2:{x:(A-t)/2+t,y:(e-t)/2},x3:{x:(A-t)/2,y:(e-t)/2},x4:{x:(A-t)/2+t,y:(e-t)/2+t}}}},jA.internal.getWidth=function(r){var A=0;return Qe(r)==="object"&&(A=Av(r.Rect[2])),A},jA.internal.getHeight=function(r){var A=0;return Qe(r)==="object"&&(A=Av(r.Rect[3])),A};var KQ=Xe.addField=function(r){if(kQ(this,r),!(r instanceof Wr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=r).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};Xe.AcroFormChoiceField=Mi,Xe.AcroFormListBox=ki,Xe.AcroFormComboBox=Ki,Xe.AcroFormEditBox=qs,Xe.AcroFormButton=Ct,Xe.AcroFormPushButton=Ws,Xe.AcroFormRadioButton=ji,Xe.AcroFormCheckBox=zs,Xe.AcroFormTextField=ui,Xe.AcroFormPasswordField=Xs,Xe.AcroFormAppearance=jA,Xe.AcroForm={ChoiceField:Mi,ListBox:ki,ComboBox:Ki,EditBox:qs,Button:Ct,PushButton:Ws,RadioButton:ji,CheckBox:zs,TextField:ui,PasswordField:Xs,Appearance:jA},ZA.AcroForm={ChoiceField:Mi,ListBox:ki,ComboBox:Ki,EditBox:qs,Button:Ct,PushButton:Ws,RadioButton:ji,CheckBox:zs,TextField:ui,PasswordField:Xs,Appearance:jA},ZA.AcroForm;function nv(r){return r.reduce(function(A,e,t){return A[e]=t,A},{})}(function(r){r.__addimage__={};var A="UNKNOWN",e={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]]},t=r.__addimage__.getImageFileTypeByImageData=function(S,L){var k,M,sA,rA,oA,tA=A;if((L=L||A)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if($(S))for(oA in e)for(sA=e[oA],k=0;k<sA.length;k+=1){for(rA=!0,M=0;M<sA[k].length;M+=1)if(sA[k][M]!==void 0&&sA[k][M]!==S[M]){rA=!1;break}if(rA===!0){tA=oA;break}}else for(oA in e)for(sA=e[oA],k=0;k<sA.length;k+=1){for(rA=!0,M=0;M<sA[k].length;M+=1)if(sA[k][M]!==void 0&&sA[k][M]!==S.charCodeAt(M)){rA=!1;break}if(rA===!0){tA=oA;break}}return tA===A&&L!==A&&(tA=L),tA},n=function S(L){for(var k=this.internal.write,M=this.internal.putStream,sA=(0,this.internal.getFilters)();sA.indexOf("FlateEncode")!==-1;)sA.splice(sA.indexOf("FlateEncode"),1);L.objectId=this.internal.newObject();var rA=[];if(rA.push({key:"Type",value:"/XObject"}),rA.push({key:"Subtype",value:"/Image"}),rA.push({key:"Width",value:L.width}),rA.push({key:"Height",value:L.height}),L.colorSpace===F.INDEXED?rA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(L.palette.length/3-1)+" "+("sMask"in L&&L.sMask!==void 0?L.objectId+2:L.objectId+1)+" 0 R]"}):(rA.push({key:"ColorSpace",value:"/"+L.colorSpace}),L.colorSpace===F.DEVICE_CMYK&&rA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),rA.push({key:"BitsPerComponent",value:L.bitsPerComponent}),"decodeParameters"in L&&L.decodeParameters!==void 0&&rA.push({key:"DecodeParms",value:"<<"+L.decodeParameters+">>"}),"transparency"in L&&Array.isArray(L.transparency)){for(var oA="",tA=0,aA=L.transparency.length;tA<aA;tA++)oA+=L.transparency[tA]+" "+L.transparency[tA]+" ";rA.push({key:"Mask",value:"["+oA+"]"})}L.sMask!==void 0&&rA.push({key:"SMask",value:L.objectId+1+" 0 R"});var cA=L.filter!==void 0?["/"+L.filter]:void 0;if(M({data:L.data,additionalKeyValues:rA,alreadyAppliedFilters:cA,objectId:L.objectId}),k("endobj"),"sMask"in L&&L.sMask!==void 0){var QA="/Predictor "+L.predictor+" /Colors 1 /BitsPerComponent "+L.bitsPerComponent+" /Columns "+L.width,U={width:L.width,height:L.height,colorSpace:"DeviceGray",bitsPerComponent:L.bitsPerComponent,decodeParameters:QA,data:L.sMask};"filter"in L&&(U.filter=L.filter),S.call(this,U)}if(L.colorSpace===F.INDEXED){var O=this.internal.newObject();M({data:_(new Uint8Array(L.palette)),objectId:O}),k("endobj")}},i=function(){var S=this.internal.collections.addImage_images;for(var L in S)n.call(this,S[L])},a=function(){var S,L=this.internal.collections.addImage_images,k=this.internal.write;for(var M in L)k("/I"+(S=L[M]).index,S.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a))},o=function(){var S=this.internal.collections.addImage_images;return s.call(this),S},u=function(){return Object.keys(this.internal.collections.addImage_images).length},f=function(S){return typeof r["process"+S.toUpperCase()]=="function"},d=function(S){return Qe(S)==="object"&&S.nodeType===1},p=function(S,L){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var k=""+S.getAttribute("src");if(k.indexOf("data:image/")===0)return Gs(unescape(k).split("base64,").pop());var M=r.loadFile(k,!0);if(M!==void 0)return M}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var sA;switch(L){case"PNG":sA="image/png";break;case"WEBP":sA="image/webp";break;case"JPEG":case"JPG":default:sA="image/jpeg"}return Gs(S.toDataURL(sA,1).split("base64,").pop())}},h=function(S){var L=this.internal.collections.addImage_images;if(L){for(var k in L)if(S===L[k].alias)return L[k]}},m=function(S,L,k){return S||L||(S=-96,L=-96),S<0&&(S=-1*k.width*72/S/this.internal.scaleFactor),L<0&&(L=-1*k.height*72/L/this.internal.scaleFactor),S===0&&(S=L*k.width/k.height),L===0&&(L=S*k.height/k.width),[S,L]},w=function(S,L,k,M,sA,rA){var oA=m.call(this,k,M,sA),tA=this.internal.getCoordinateString,aA=this.internal.getVerticalCoordinateString,cA=o.call(this);if(k=oA[0],M=oA[1],cA[sA.index]=sA,rA){rA*=Math.PI/180;var QA=Math.cos(rA),U=Math.sin(rA),O=function(V){return V.toFixed(4)},R=[O(QA),O(U),O(-1*U),O(QA),0,0,"cm"]}this.internal.write("q"),rA?(this.internal.write([1,"0","0",1,tA(S),aA(L+M),"cm"].join(" ")),this.internal.write(R.join(" ")),this.internal.write([tA(k),"0","0",tA(M),"0","0","cm"].join(" "))):this.internal.write([tA(k),"0","0",tA(M),tA(S),aA(L+M),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+sA.index+" Do"),this.internal.write("Q")},F=r.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"};r.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 y=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Q=r.__addimage__.sHashCode=function(S){var L,k,M=0;if(typeof S=="string")for(k=S.length,L=0;L<k;L++)M=(M<<5)-M+S.charCodeAt(L),M|=0;else if($(S))for(k=S.byteLength/2,L=0;L<k;L++)M=(M<<5)-M+S[L],M|=0;return M},T=r.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var L=!0;return S.length===0&&(L=!1),S.length%4!=0&&(L=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(L=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(L=!1),L},P=r.__addimage__.extractImageFromDataUrl=function(S){var L=(S=S||"").split("base64,"),k=null;if(L.length===2){var M=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(L[0]);Array.isArray(M)&&(k={mimeType:M[1],charset:M[2],data:L[1]})}return k},G=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};r.__addimage__.isArrayBuffer=function(S){return G()&&S instanceof ArrayBuffer};var $=r.__addimage__.isArrayBufferView=function(S){return G()&&typeof Uint32Array!="undefined"&&(S instanceof Int8Array||S instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array)},j=r.__addimage__.binaryStringToUint8Array=function(S){for(var L=S.length,k=new Uint8Array(L),M=0;M<L;M++)k[M]=S.charCodeAt(M);return k},_=r.__addimage__.arrayBufferToBinaryString=function(S){for(var L="",k=$(S)?S:new Uint8Array(S),M=0;M<k.length;M+=8192)L+=String.fromCharCode.apply(null,k.subarray(M,M+8192));return L};r.addImage=function(){var S,L,k,M,sA,rA,oA,tA,aA;if(typeof arguments[1]=="number"?(L=A,k=arguments[1],M=arguments[2],sA=arguments[3],rA=arguments[4],oA=arguments[5],tA=arguments[6],aA=arguments[7]):(L=arguments[1],k=arguments[2],M=arguments[3],sA=arguments[4],rA=arguments[5],oA=arguments[6],tA=arguments[7],aA=arguments[8]),Qe(S=arguments[0])==="object"&&!d(S)&&"imageData"in S){var cA=S;S=cA.imageData,L=cA.format||L||A,k=cA.x||k||0,M=cA.y||M||0,sA=cA.w||cA.width||sA,rA=cA.h||cA.height||rA,oA=cA.alias||oA,tA=cA.compression||tA,aA=cA.rotation||cA.angle||aA}var QA=this.internal.getFilters();if(tA===void 0&&QA.indexOf("FlateEncode")!==-1&&(tA="SLOW"),isNaN(k)||isNaN(M))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var U=q.call(this,S,L,oA,tA);return w.call(this,k,M,sA,rA,U,aA),this};var q=function(S,L,k,M){var sA,rA,oA;if(typeof S=="string"&&t(S)===A){S=unescape(S);var tA=iA(S,!1);(tA!==""||(tA=r.loadFile(S,!0))!==void 0)&&(S=tA)}if(d(S)&&(S=p(S,L)),L=t(S,L),!f(L))throw new Error("addImage does not support files of type '"+L+"', please ensure that a plugin for '"+L+"' support is added.");if(((oA=k)==null||oA.length===0)&&(k=function(aA){return typeof aA=="string"||$(aA)?Q(aA):$(aA.data)?Q(aA.data):null}(S)),(sA=h.call(this,k))||(G()&&(S instanceof Uint8Array||L==="RGBA"||(rA=S,S=j(S))),sA=this["process"+L.toUpperCase()](S,u.call(this),k,function(aA){return aA&&typeof aA=="string"&&(aA=aA.toUpperCase()),aA in r.image_compression?aA:y.NONE}(M),rA)),!sA)throw new Error("An unknown error occurred whilst processing the image.");return sA},iA=r.__addimage__.convertBase64ToBinaryString=function(S,L){var k;L=typeof L!="boolean"||L;var M,sA="";if(typeof S=="string"){M=(k=P(S))!==null?k.data:S;try{sA=Gs(M)}catch(rA){if(L)throw T(M)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+rA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return sA};r.getImageProperties=function(S){var L,k,M="";if(d(S)&&(S=p(S)),typeof S=="string"&&t(S)===A&&((M=iA(S,!1))===""&&(M=r.loadFile(S)||""),S=M),k=t(S),!f(k))throw new Error("addImage does not support files of type '"+k+"', please ensure that a plugin for '"+k+"' support is added.");if(!G()||S instanceof Uint8Array||(S=j(S)),!(L=this["process"+k.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return L.fileType=k,L}})(ZA.API),function(r){var A=function(e){if(e!==void 0&&e!="")return!0};ZA.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(e){for(var t,n,i,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(e.objId),u=e.pageContext.annotations,f=!1,d=0;d<u.length&&!f;d++)switch((t=u[d]).type){case"link":(A(t.options.url)||A(t.options.pageNumber))&&(f=!0);break;case"reference":case"text":case"freetext":f=!0}if(f!=0){this.internal.write("/Annots [");for(var p=0;p<u.length;p++){t=u[p];var h=this.internal.pdfEscape,m=this.internal.getEncryptor(e.objId);switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var w=this.internal.newAdditionalObject(),F=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(w.objId),Q=t.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(t.bounds.x)+" "+s(t.bounds.y+t.bounds.h)+" "+a(t.bounds.x+t.bounds.w)+" "+s(t.bounds.y)+"] ")+"/Contents ("+h(y(t.contents))+")",i+=" /Popup "+F.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+h(y(Q))+") >>",w.content=i;var T=w.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(t.bounds.x+30)+" "+s(t.bounds.y+t.bounds.h)+" "+a(t.bounds.x+t.bounds.w+30)+" "+s(t.bounds.y)+"] ")+" /Parent "+T,t.open&&(i+=" /Open true"),i+=" >>",F.content=i,this.internal.write(w.objId,"0 R",F.objId,"0 R");break;case"freetext":n="/Rect ["+a(t.bounds.x)+" "+s(t.bounds.y)+" "+a(t.bounds.x+t.bounds.w)+" "+s(t.bounds.y+t.bounds.h)+"] ";var P=t.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(m(t.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+P+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(t.options.name){var G=this.annotations._nameMap[t.options.name];t.options.pageNumber=G.page,t.options.top=G.y}else t.options.top||(t.options.top=0);if(n="/Rect ["+t.finalBounds.x+" "+t.finalBounds.y+" "+t.finalBounds.w+" "+t.finalBounds.h+"] ",i="",t.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(m(t.options.url))+") >>";else if(t.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(t.options.pageNumber).objId+" 0 R",t.options.magFactor=t.options.magFactor||"XYZ",t.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0,i+=" /FitV "+t.options.left+"]";break;case"XYZ":default:var $=s(t.options.top);t.options.left=t.options.left||0,t.options.zoom===void 0&&(t.options.zoom=0),i+=" /XYZ "+t.options.left+" "+$+" "+t.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),r.createAnnotation=function(e){var t=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":t.pageContext.annotations.push(e)}},r.link=function(e,t,n,i,a){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(e),y:u(t),w:o(e+n),h:u(t+i)},options:a,type:"link"})},r.textWithLink=function(e,t,n,i){var a,s,o=this.getTextWidth(e),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var f=this.splitTextToSize(e,s).length;a=Math.ceil(u*f)}else s=o,a=u;return this.text(e,t,n,i),n+=.2*u,i.align==="center"&&(t-=o/2),i.align==="right"&&(t-=o),this.link(t,n-u,s,a,i),o},r.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(ZA.API),function(r){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},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}},t={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];r.__arabicParser__={};var i=r.__arabicParser__.isInArabicSubstitutionA=function(w){return A[w.charCodeAt(0)]!==void 0},a=r.__arabicParser__.isArabicLetter=function(w){return typeof w=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(w)},s=r.__arabicParser__.isArabicEndLetter=function(w){return a(w)&&i(w)&&A[w.charCodeAt(0)].length<=2},o=r.__arabicParser__.isArabicAlfLetter=function(w){return a(w)&&n.indexOf(w.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return a(w)&&i(w)&&A[w.charCodeAt(0)].length>=1};var u=r.__arabicParser__.arabicLetterHasFinalForm=function(w){return a(w)&&i(w)&&A[w.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(w){return a(w)&&i(w)&&A[w.charCodeAt(0)].length>=3};var f=r.__arabicParser__.arabicLetterHasMedialForm=function(w){return a(w)&&i(w)&&A[w.charCodeAt(0)].length==4},d=r.__arabicParser__.resolveLigatures=function(w){var F=0,y=e,Q="",T=0;for(F=0;F<w.length;F+=1)y[w.charCodeAt(F)]!==void 0?(T++,typeof(y=y[w.charCodeAt(F)])=="number"&&(Q+=String.fromCharCode(y),y=e,T=0),F===w.length-1&&(y=e,Q+=w.charAt(F-(T-1)),F-=T-1,T=0)):(y=e,Q+=w.charAt(F-T),F-=T,T=0);return Q};r.__arabicParser__.isArabicDiacritic=function(w){return w!==void 0&&t[w.charCodeAt(0)]!==void 0};var p=r.__arabicParser__.getCorrectForm=function(w,F,y){return a(w)?i(w)===!1?-1:!u(w)||!a(F)&&!a(y)||!a(y)&&s(F)||s(w)&&!a(F)||s(w)&&o(F)||s(w)&&s(F)?0:f(w)&&a(F)&&!s(F)&&a(y)&&u(y)?3:s(w)||!a(y)?1:2:-1},h=function(w){var F=0,y=0,Q=0,T="",P="",G="",$=(w=w||"").split("\\s+"),j=[];for(F=0;F<$.length;F+=1){for(j.push(""),y=0;y<$[F].length;y+=1)T=$[F][y],P=$[F][y-1],G=$[F][y+1],a(T)?(Q=p(T,P,G),j[F]+=Q!==-1?String.fromCharCode(A[T.charCodeAt(0)][Q]):T):j[F]+=T;j[F]=d(j[F])}return j.join(" ")},m=r.__arabicParser__.processArabic=r.processArabic=function(){var w,F=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(F)){var Q=0;for(y=[],Q=0;Q<F.length;Q+=1)Array.isArray(F[Q])?y.push([h(F[Q][0]),F[Q][1],F[Q][2]]):y.push([h(F[Q])]);w=y}else w=h(F);return typeof arguments[0]=="string"?w:(arguments[0].text=w,arguments[0])};r.events.push(["preProcessText",m])}(ZA.API),ZA.API.autoPrint=function(r){var A;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+A+" 0 R")})}return this},function(r){var A=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(s){e=s}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(s){t=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(s){i=s}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(s){a=s}}),Object.defineProperty(this,"parentNode",{})};A.prototype.getContext=function(e,t){var n;if((e=e||"2d")!=="2d")return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}(ZA.API),function(r){var A={left:0,top:0,bottom:0,right:0},e=!1,t=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},A),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(w){o=w}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(w){u=w}});var f=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return f},set:function(w){f=w}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(w){d=w}});var p=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return p},set:function(w){p=w}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(w){h=w}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(w){m=w}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(o){return t.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},r.getTextDimensions=function(o,u){t.call(this);var f=(u=u||{}).fontSize||this.getFontSize(),d=u.font||this.getFont(),p=u.scaleFactor||this.internal.scaleFactor,h=0,m=0,w=0,F=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var y=u.maxWidth;y>0?typeof o=="string"?o=this.splitTextToSize(o,y):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(T,P){return T.concat(F.splitTextToSize(P,y))},[])):o=Array.isArray(o)?o:[o];for(var Q=0;Q<o.length;Q++)h<(w=this.getStringUnitWidth(o[Q],{font:d})*f)&&(h=w);return h!==0&&(m=o.length),{w:h/=p,h:Math.max((m*f*this.getLineHeightFactor()-f*(this.getLineHeightFactor()-1))/p,0)}},r.cellAddPage=function(){t.call(this),this.addPage();var o=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=r.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),t.call(this);var u=this.internal.__cell__.lastCell,f=this.internal.__cell__.padding,d=this.internal.__cell__.margins||A,p=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===o.lineNumber?(o.x=(u.x||0)+(u.width||0),o.y=u.y||0):u.y+u.height+o.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=d.top,h&&p&&(this.printHeaderRow(o.lineNumber,!0),o.y+=p[0].height)):o.y=u.y+u.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,e===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-f,o.y+f,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+f,{align:"center",baseline:"top",maxWidth:o.width-f-f}):this.text(o.text,o.x+f,o.y+f,{align:"left",baseline:"top",maxWidth:o.width-f-f})),this.internal.__cell__.lastCell=o,this};r.table=function(o,u,f,d,p){if(t.call(this),!f)throw new Error("No data for PDF table.");var h,m,w,F,y=[],Q=[],T=[],P={},G={},$=[],j=[],_=(p=p||{}).autoSize||!1,q=p.printHeaders!==!1,iA=p.css&&p.css["font-size"]!==void 0?16*p.css["font-size"]:p.fontSize||12,S=p.margins||Object.assign({width:this.getPageWidth()},A),L=typeof p.padding=="number"?p.padding:3,k=p.headerBackgroundColor||"#c8c8c8",M=p.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=q,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=iA,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=M,this.setFontSize(iA),d==null)Q=y=Object.keys(f[0]),T=y.map(function(){return"left"});else if(Array.isArray(d)&&Qe(d[0])==="object")for(y=d.map(function(cA){return cA.name}),Q=d.map(function(cA){return cA.prompt||cA.name||""}),T=d.map(function(cA){return cA.align||"left"}),h=0;h<d.length;h+=1)G[d[h].name]=d[h].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(Q=y=d,T=y.map(function(){return"left"}));if(_||Array.isArray(d)&&typeof d[0]=="string")for(h=0;h<y.length;h+=1){for(P[F=y[h]]=f.map(function(cA){return cA[F]}),this.setFont(void 0,"bold"),$.push(this.getTextDimensions(Q[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),m=P[F],this.setFont(void 0,"normal"),w=0;w<m.length;w+=1)$.push(this.getTextDimensions(m[w],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);G[F]=Math.max.apply(null,$)+L+L,$=[]}if(q){var sA={};for(h=0;h<y.length;h+=1)sA[y[h]]={},sA[y[h]].text=Q[h],sA[y[h]].align=T[h];var rA=s.call(this,sA,G);j=y.map(function(cA){return new i(o,u,G[cA],rA,sA[cA].text,void 0,sA[cA].align)}),this.setTableHeaderRow(j),this.printHeaderRow(1,!1)}var oA=d.reduce(function(cA,QA){return cA[QA.name]=QA.align,cA},{});for(h=0;h<f.length;h+=1){"rowStart"in p&&p.rowStart instanceof Function&&p.rowStart({row:h,data:f[h]},this);var tA=s.call(this,f[h],G);for(w=0;w<y.length;w+=1){var aA=f[h][y[w]];"cellStart"in p&&p.cellStart instanceof Function&&p.cellStart({row:h,col:w,data:aA},this),a.call(this,new i(o,u,G[y[w]],tA,aA,h+2,oA[y[w]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=u,this};var s=function(o,u){var f=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,p=this.internal.scaleFactor;return Object.keys(o).map(function(h){var m=o[h];return this.splitTextToSize(m.hasOwnProperty("text")?m.text:m,u[h]-f-f)},this).map(function(h){return this.getLineHeightFactor()*h.length*d/p+f+f},this).reduce(function(h,m){return Math.max(h,m)},0)};r.setTableHeaderRow=function(o){t.call(this),this.internal.__cell__.tableHeaderRow=o},r.printHeaderRow=function(o,u){if(t.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var f;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var p=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){f=this.internal.__cell__.tableHeaderRow[h].clone(),u&&(f.y=this.internal.__cell__.margins.top||0,p.push(f)),f.lineNumber=o;var m=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,f),this.setTextColor(m)}p.length>0&&this.setTableHeaderRow(p),this.setFont(void 0,"normal"),e=!1}}(ZA.API);var iv={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},av=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],lh=nv(av),sv=[100,200,300,400,500,600,700,800,900],jQ=nv(sv);function uh(r){var A=r.family.replace(/"|'/g,"").toLowerCase(),e=function(i){return iv[i=i||"normal"]?i:"normal"}(r.style),t=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(r.weight),n=function(i){return typeof lh[i=i||"normal"]=="number"?i:"normal"}(r.stretch);return{family:A,style:e,weight:t,stretch:n,src:r.src||[],ref:r.ref||{name:A,style:[n,e,t].join(" ")}}}function ov(r,A,e,t){var n;for(n=e;n>=0&&n<A.length;n+=t)if(r[A[n]])return r[A[n]];for(n=e;n>=0&&n<A.length;n-=t)if(r[A[n]])return r[A[n]]}var VQ={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},lv={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function uv(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function GQ(r,A,e){for(var t=(e=e||{}).defaultFontFamily||"times",n=Object.assign({},VQ,e.genericFontFamilies||{}),i=null,a=null,s=0;s<A.length;++s)if(n[(i=uh(A[s])).family]&&(i.family=n[i.family]),r.hasOwnProperty(i.family)){a=r[i.family];break}if(!(a=a||r[t]))throw new Error("Could not find a font-family for the rule '"+uv(i)+"' and default family '"+t+"'.");if(a=function(o,u){if(u[o])return u[o];var f=lh[o],d=f<=lh.normal?-1:1,p=ov(u,av,f,d);if(!p)throw new Error("Could not find a matching font-stretch value for "+o);return p}(i.stretch,a),a=function(o,u){if(u[o])return u[o];for(var f=iv[o],d=0;d<f.length;++d)if(u[f[d]])return u[f[d]];throw new Error("Could not find a matching font-style for "+o)}(i.style,a),!(a=function(o,u){if(u[o])return u[o];if(o===400&&u[500])return u[500];if(o===500&&u[400])return u[400];var f=jQ[o],d=ov(u,sv,f,o<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+o);return d}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+uv(i)+"'.");return a}function cv(r){return r.trimLeft()}function $Q(r,A){for(var e=0;e<r.length;){if(r.charAt(e)===A)return[r.substring(0,e),r.substring(e+1)];e+=1}return null}function qQ(r){var A=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return A===null?null:[A[0],r.substring(A[0].length)]}var Yl,fv,hv,ch=["times"];(function(r){var A,e,t,n,i,a,s,o,u,f=function(U){return U=U||{},this.isStrokeTransparent=U.isStrokeTransparent||!1,this.strokeOpacity=U.strokeOpacity||1,this.strokeStyle=U.strokeStyle||"#000000",this.fillStyle=U.fillStyle||"#000000",this.isFillTransparent=U.isFillTransparent||!1,this.fillOpacity=U.fillOpacity||1,this.font=U.font||"10px sans-serif",this.textBaseline=U.textBaseline||"alphabetic",this.textAlign=U.textAlign||"left",this.lineWidth=U.lineWidth||1,this.lineJoin=U.lineJoin||"miter",this.lineCap=U.lineCap||"butt",this.path=U.path||[],this.transform=U.transform!==void 0?U.transform.clone():new o,this.globalCompositeOperation=U.globalCompositeOperation||"normal",this.globalAlpha=U.globalAlpha||1,this.clip_path=U.clip_path||[],this.currentPoint=U.currentPoint||new a,this.miterLimit=U.miterLimit||10,this.lastPoint=U.lastPoint||new a,this.lineDashOffset=U.lineDashOffset||0,this.lineDash=U.lineDash||[],this.margin=U.margin||[0,0,0,0],this.prevPageLastElemOffset=U.prevPageLastElemOffset||0,this.ignoreClearRect=typeof U.ignoreClearRect!="boolean"||U.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new d(this),A=this.internal.f2,e=this.internal.getCoordinateString,t=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,o=this.internal.Matrix,u=new f}]);var d=function(U){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var O=U;Object.defineProperty(this,"pdf",{get:function(){return O}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(dA){R=!!dA}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(dA){V=!!dA}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(dA){isNaN(dA)||(J=dA)}});var AA=0;Object.defineProperty(this,"posY",{get:function(){return AA},set:function(dA){isNaN(dA)||(AA=dA)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(dA){var K;typeof dA=="number"?K=[dA,dA,dA,dA]:((K=new Array(4))[0]=dA[0],K[1]=dA.length>=2?dA[1]:K[0],K[2]=dA.length>=3?dA[2]:K[0],K[3]=dA.length>=4?dA[3]:K[1]),u.margin=K}});var fA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return fA},set:function(dA){fA=dA}});var hA=0;Object.defineProperty(this,"lastBreak",{get:function(){return hA},set:function(dA){hA=dA}});var EA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return EA},set:function(dA){EA=dA}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(dA){dA instanceof f&&(u=dA)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(dA){u.path=dA}});var FA=[];Object.defineProperty(this,"ctxStack",{get:function(){return FA},set:function(dA){FA=dA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(dA){var K;K=p(dA),this.ctx.fillStyle=K.style,this.ctx.isFillTransparent=K.a===0,this.ctx.fillOpacity=K.a,this.pdf.setFillColor(K.r,K.g,K.b,{a:K.a}),this.pdf.setTextColor(K.r,K.g,K.b,{a:K.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(dA){var K=p(dA);this.ctx.strokeStyle=K.style,this.ctx.isStrokeTransparent=K.a===0,this.ctx.strokeOpacity=K.a,K.a===0?this.pdf.setDrawColor(255,255,255):(K.a,this.pdf.setDrawColor(K.r,K.g,K.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(dA){["butt","round","square"].indexOf(dA)!==-1&&(this.ctx.lineCap=dA,this.pdf.setLineCap(dA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(dA){isNaN(dA)||(this.ctx.lineWidth=dA,this.pdf.setLineWidth(dA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(dA){["bevel","round","miter"].indexOf(dA)!==-1&&(this.ctx.lineJoin=dA,this.pdf.setLineJoin(dA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(dA){isNaN(dA)||(this.ctx.miterLimit=dA,this.pdf.setMiterLimit(dA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(dA){this.ctx.textBaseline=dA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(dA){["right","end","center","left","start"].indexOf(dA)!==-1&&(this.ctx.textAlign=dA)}});var NA=null;function LA(dA,K){if(NA===null){var Ae=function(kA){var yA=[];return Object.keys(kA).forEach(function(xA){kA[xA].forEach(function(SA){var IA=null;switch(SA){case"bold":IA={family:xA,weight:"bold"};break;case"italic":IA={family:xA,style:"italic"};break;case"bolditalic":IA={family:xA,weight:"bold",style:"italic"};break;case"":case"normal":IA={family:xA}}IA!==null&&(IA.ref={name:xA,style:SA},yA.push(IA))})}),yA}(dA.getFontList());NA=function(kA){for(var yA={},xA=0;xA<kA.length;++xA){var SA=uh(kA[xA]),IA=SA.family,KA=SA.stretch,qA=SA.style,te=SA.weight;yA[IA]=yA[IA]||{},yA[IA][KA]=yA[IA][KA]||{},yA[IA][KA][qA]=yA[IA][KA][qA]||{},yA[IA][KA][qA][te]=SA}return yA}(Ae.concat(K))}return NA}var VA=null;Object.defineProperty(this,"fontFaces",{get:function(){return VA},set:function(dA){NA=null,VA=dA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(dA){var K;if(this.ctx.font=dA,(K=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(dA))!==null){var Ae=K[1],kA=(K[2],K[3]),yA=K[4],xA=(K[5],K[6]),SA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yA)[2];yA=Math.floor(SA==="px"?parseFloat(yA)*this.pdf.internal.scaleFactor:SA==="em"?parseFloat(yA)*this.pdf.getFontSize():parseFloat(yA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yA);var IA=function(zA){var ne,TA,Ke=[],de=zA.trim();if(de==="")return ch;if(de in lv)return[lv[de]];for(;de!=="";){switch(TA=null,ne=(de=cv(de)).charAt(0)){case'"':case"'":TA=$Q(de.substring(1),ne);break;default:TA=qQ(de)}if(TA===null||(Ke.push(TA[0]),(de=cv(TA[1]))!==""&&de.charAt(0)!==","))return ch;de=de.replace(/^,/,"")}return Ke}(xA);if(this.fontFaces){var KA=GQ(LA(this.pdf,this.fontFaces),IA.map(function(zA){return{family:zA,stretch:"normal",weight:kA,style:Ae}}));this.pdf.setFont(KA.ref.name,KA.ref.style)}else{var qA="";(kA==="bold"||parseInt(kA,10)>=700||Ae==="bold")&&(qA="bold"),Ae==="italic"&&(qA+="italic"),qA.length===0&&(qA="normal");for(var te="",re={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"},se=0;se<IA.length;se++){if(this.pdf.internal.getFont(IA[se],qA,{noFallback:!0,disableWarning:!0})!==void 0){te=IA[se];break}if(qA==="bolditalic"&&this.pdf.internal.getFont(IA[se],"bold",{noFallback:!0,disableWarning:!0})!==void 0)te=IA[se],qA="bold";else if(this.pdf.internal.getFont(IA[se],"normal",{noFallback:!0,disableWarning:!0})!==void 0){te=IA[se],qA="normal";break}}if(te===""){for(var he=0;he<IA.length;he++)if(re[IA[he]]){te=re[IA[he]];break}}te=te===""?"Times":te,this.pdf.setFont(te,qA)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(dA){this.ctx.globalCompositeOperation=dA}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(dA){this.ctx.globalAlpha=dA}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(dA){this.ctx.lineDashOffset=dA,QA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(dA){this.ctx.lineDash=dA,QA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(dA){this.ctx.ignoreClearRect=!!dA}})};d.prototype.setLineDash=function(U){this.lineDash=U},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){P.call(this,"fill",!1)},d.prototype.stroke=function(){P.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(U,O){if(isNaN(U)||isNaN(O))throw Oe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var R=this.ctx.transform.applyToPoint(new a(U,O));this.path.push({type:"mt",x:R.x,y:R.y}),this.ctx.lastPoint=new a(U,O)},d.prototype.closePath=function(){var U=new a(0,0),O=0;for(O=this.path.length-1;O!==-1;O--)if(this.path[O].type==="begin"&&Qe(this.path[O+1])==="object"&&typeof this.path[O+1].x=="number"){U=new a(this.path[O+1].x,this.path[O+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(U.x,U.y)},d.prototype.lineTo=function(U,O){if(isNaN(U)||isNaN(O))throw Oe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var R=this.ctx.transform.applyToPoint(new a(U,O));this.path.push({type:"lt",x:R.x,y:R.y}),this.ctx.lastPoint=new a(R.x,R.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),P.call(this,null,!0)},d.prototype.quadraticCurveTo=function(U,O,R,V){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(O))throw Oe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new a(R,V)),AA=this.ctx.transform.applyToPoint(new a(U,O));this.path.push({type:"qct",x1:AA.x,y1:AA.y,x:J.x,y:J.y}),this.ctx.lastPoint=new a(J.x,J.y)},d.prototype.bezierCurveTo=function(U,O,R,V,J,AA){if(isNaN(J)||isNaN(AA)||isNaN(U)||isNaN(O)||isNaN(R)||isNaN(V))throw Oe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var fA=this.ctx.transform.applyToPoint(new a(J,AA)),hA=this.ctx.transform.applyToPoint(new a(U,O)),EA=this.ctx.transform.applyToPoint(new a(R,V));this.path.push({type:"bct",x1:hA.x,y1:hA.y,x2:EA.x,y2:EA.y,x:fA.x,y:fA.y}),this.ctx.lastPoint=new a(fA.x,fA.y)},d.prototype.arc=function(U,O,R,V,J,AA){if(isNaN(U)||isNaN(O)||isNaN(R)||isNaN(V)||isNaN(J))throw Oe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(AA=!!AA,!this.ctx.transform.isIdentity){var fA=this.ctx.transform.applyToPoint(new a(U,O));U=fA.x,O=fA.y;var hA=this.ctx.transform.applyToPoint(new a(0,R)),EA=this.ctx.transform.applyToPoint(new a(0,0));R=Math.sqrt(Math.pow(hA.x-EA.x,2)+Math.pow(hA.y-EA.y,2))}Math.abs(J-V)>=2*Math.PI&&(V=0,J=2*Math.PI),this.path.push({type:"arc",x:U,y:O,radius:R,startAngle:V,endAngle:J,counterclockwise:AA})},d.prototype.arcTo=function(U,O,R,V,J){throw new Error("arcTo not implemented.")},d.prototype.rect=function(U,O,R,V){if(isNaN(U)||isNaN(O)||isNaN(R)||isNaN(V))throw Oe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(U,O),this.lineTo(U+R,O),this.lineTo(U+R,O+V),this.lineTo(U,O+V),this.lineTo(U,O),this.lineTo(U+R,O),this.lineTo(U,O)},d.prototype.fillRect=function(U,O,R,V){if(isNaN(U)||isNaN(O)||isNaN(R)||isNaN(V))throw Oe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(U,O,R,V),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},d.prototype.strokeRect=function(U,O,R,V){if(isNaN(U)||isNaN(O)||isNaN(R)||isNaN(V))throw Oe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(U,O,R,V),this.stroke())},d.prototype.clearRect=function(U,O,R,V){if(isNaN(U)||isNaN(O)||isNaN(R)||isNaN(V))throw Oe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(U,O,R,V))},d.prototype.save=function(U){U=typeof U!="boolean"||U;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("q");if(this.pdf.setPage(O),U){this.ctx.fontSize=this.pdf.internal.getFontSize();var V=new f(this.ctx);this.ctxStack.push(this.ctx),this.ctx=V}},d.prototype.restore=function(U){U=typeof U!="boolean"||U;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("Q");this.pdf.setPage(O),U&&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)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(U){var O,R,V,J;if(U.isCanvasGradient===!0&&(U=U.getColor()),!U)return{r:0,g:0,b:0,a:0,style:U};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(U))O=0,R=0,V=0,J=0;else{var AA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(U);if(AA!==null)O=parseInt(AA[1]),R=parseInt(AA[2]),V=parseInt(AA[3]),J=1;else if((AA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(U))!==null)O=parseInt(AA[1]),R=parseInt(AA[2]),V=parseInt(AA[3]),J=parseFloat(AA[4]);else{if(J=1,typeof U=="string"&&U.charAt(0)!=="#"){var fA=new W1(U);U=fA.ok?fA.toHex():"#000000"}U.length===4?(O=U.substring(1,2),O+=O,R=U.substring(2,3),R+=R,V=U.substring(3,4),V+=V):(O=U.substring(1,3),R=U.substring(3,5),V=U.substring(5,7)),O=parseInt(O,16),R=parseInt(R,16),V=parseInt(V,16)}}return{r:O,g:R,b:V,a:J,style:U}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(U,O,R,V){if(isNaN(O)||isNaN(R)||typeof U!="string")throw Oe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(V=isNaN(V)?void 0:V,!h.call(this)){var J=tA(this.ctx.transform.rotation),AA=this.ctx.transform.scaleX;L.call(this,{text:U,x:O,y:R,scale:AA,angle:J,align:this.textAlign,maxWidth:V})}},d.prototype.strokeText=function(U,O,R,V){if(isNaN(O)||isNaN(R)||typeof U!="string")throw Oe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){V=isNaN(V)?void 0:V;var J=tA(this.ctx.transform.rotation),AA=this.ctx.transform.scaleX;L.call(this,{text:U,x:O,y:R,scale:AA,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:V})}},d.prototype.measureText=function(U){if(typeof U!="string")throw Oe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var O=this.pdf,R=this.pdf.internal.scaleFactor,V=O.internal.getFontSize(),J=O.getStringUnitWidth(U)*V/O.internal.scaleFactor,AA=function(fA){var hA=(fA=fA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return hA}}),this};return new AA({width:J*=Math.round(96*R/72*1e4)/1e4})},d.prototype.scale=function(U,O){if(isNaN(U)||isNaN(O))throw Oe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var R=new o(U,0,0,O,0,0);this.ctx.transform=this.ctx.transform.multiply(R)},d.prototype.rotate=function(U){if(isNaN(U))throw Oe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var O=new o(Math.cos(U),Math.sin(U),-Math.sin(U),Math.cos(U),0,0);this.ctx.transform=this.ctx.transform.multiply(O)},d.prototype.translate=function(U,O){if(isNaN(U)||isNaN(O))throw Oe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var R=new o(1,0,0,1,U,O);this.ctx.transform=this.ctx.transform.multiply(R)},d.prototype.transform=function(U,O,R,V,J,AA){if(isNaN(U)||isNaN(O)||isNaN(R)||isNaN(V)||isNaN(J)||isNaN(AA))throw Oe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var fA=new o(U,O,R,V,J,AA);this.ctx.transform=this.ctx.transform.multiply(fA)},d.prototype.setTransform=function(U,O,R,V,J,AA){U=isNaN(U)?1:U,O=isNaN(O)?0:O,R=isNaN(R)?0:R,V=isNaN(V)?1:V,J=isNaN(J)?0:J,AA=isNaN(AA)?0:AA,this.ctx.transform=new o(U,O,R,V,J,AA)};var w=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(U,O,R,V,J,AA,fA,hA,EA){var FA=this.pdf.getImageProperties(U),NA=1,LA=1,VA=1,dA=1;V!==void 0&&hA!==void 0&&(VA=hA/V,dA=EA/J,NA=FA.width/V*hA/V,LA=FA.height/J*EA/J),AA===void 0&&(AA=O,fA=R,O=0,R=0),V!==void 0&&hA===void 0&&(hA=V,EA=J),V===void 0&&hA===void 0&&(hA=FA.width,EA=FA.height);for(var K,Ae=this.ctx.transform.decompose(),kA=tA(Ae.rotate.shx),yA=new o,xA=(yA=(yA=(yA=yA.multiply(Ae.translate)).multiply(Ae.skew)).multiply(Ae.scale)).applyToRectangle(new s(AA-O*VA,fA-R*dA,V*NA,J*LA)),SA=F.call(this,xA),IA=[],KA=0;KA<SA.length;KA+=1)IA.indexOf(SA[KA])===-1&&IA.push(SA[KA]);if(T(IA),this.autoPaging)for(var qA=IA[0],te=IA[IA.length-1],re=qA;re<te+1;re++){this.pdf.setPage(re);var se=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],he=re===1?this.posY+this.margin[0]:this.margin[0],zA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],TA=re===1?0:zA+(re-2)*ne;if(this.ctx.clip_path.length!==0){var Ke=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Q(K,this.posX+this.margin[3],-TA+he+this.ctx.prevPageLastElemOffset),G.call(this,"fill",!0),this.path=Ke}var de=JSON.parse(JSON.stringify(xA));de=Q([de],this.posX+this.margin[3],-TA+he+this.ctx.prevPageLastElemOffset)[0];var Ft=(re>qA||re<te)&&w.call(this);Ft&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],se,ne,null).clip().discardPath()),this.pdf.addImage(U,"JPEG",de.x,de.y,de.w,de.h,null,null,kA),Ft&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(U,"JPEG",xA.x,xA.y,xA.w,xA.h,null,null,kA)};var F=function(U,O,R){var V=[];O=O||this.pdf.internal.pageSize.width,R=R||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(U.type){default:case"mt":case"lt":V.push(Math.floor((U.y+J)/R)+1);break;case"arc":V.push(Math.floor((U.y+J-U.radius)/R)+1),V.push(Math.floor((U.y+J+U.radius)/R)+1);break;case"qct":var AA=aA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x,U.y);V.push(Math.floor((AA.y+J)/R)+1),V.push(Math.floor((AA.y+AA.h+J)/R)+1);break;case"bct":var fA=cA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x2,U.y2,U.x,U.y);V.push(Math.floor((fA.y+J)/R)+1),V.push(Math.floor((fA.y+fA.h+J)/R)+1);break;case"rect":V.push(Math.floor((U.y+J)/R)+1),V.push(Math.floor((U.y+U.h+J)/R)+1)}for(var hA=0;hA<V.length;hA+=1)for(;this.pdf.internal.getNumberOfPages()<V[hA];)y.call(this);return V},y=function(){var U=this.fillStyle,O=this.strokeStyle,R=this.font,V=this.lineCap,J=this.lineWidth,AA=this.lineJoin;this.pdf.addPage(),this.fillStyle=U,this.strokeStyle=O,this.font=R,this.lineCap=V,this.lineWidth=J,this.lineJoin=AA},Q=function(U,O,R){for(var V=0;V<U.length;V++)switch(U[V].type){case"bct":U[V].x2+=O,U[V].y2+=R;case"qct":U[V].x1+=O,U[V].y1+=R;case"mt":case"lt":case"arc":default:U[V].x+=O,U[V].y+=R}return U},T=function(U){return U.sort(function(O,R){return O-R})},P=function(U,O){for(var R,V,J=this.fillStyle,AA=this.strokeStyle,fA=this.lineCap,hA=this.lineWidth,EA=Math.abs(hA*this.ctx.transform.scaleX),FA=this.lineJoin,NA=JSON.parse(JSON.stringify(this.path)),LA=JSON.parse(JSON.stringify(this.path)),VA=[],dA=0;dA<LA.length;dA++)if(LA[dA].x!==void 0)for(var K=F.call(this,LA[dA]),Ae=0;Ae<K.length;Ae+=1)VA.indexOf(K[Ae])===-1&&VA.push(K[Ae]);for(var kA=0;kA<VA.length;kA++)for(;this.pdf.internal.getNumberOfPages()<VA[kA];)y.call(this);if(T(VA),this.autoPaging)for(var yA=VA[0],xA=VA[VA.length-1],SA=yA;SA<xA+1;SA++){this.pdf.setPage(SA),this.fillStyle=J,this.strokeStyle=AA,this.lineCap=fA,this.lineWidth=EA,this.lineJoin=FA;var IA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],KA=SA===1?this.posY+this.margin[0]:this.margin[0],qA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],te=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],re=SA===1?0:qA+(SA-2)*te;if(this.ctx.clip_path.length!==0){var se=this.path;R=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Q(R,this.posX+this.margin[3],-re+KA+this.ctx.prevPageLastElemOffset),G.call(this,U,!0),this.path=se}if(V=JSON.parse(JSON.stringify(NA)),this.path=Q(V,this.posX+this.margin[3],-re+KA+this.ctx.prevPageLastElemOffset),O===!1||SA===0){var he=(SA>yA||SA<xA)&&w.call(this);he&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],IA,te,null).clip().discardPath()),G.call(this,U,O),he&&this.pdf.restoreGraphicsState()}this.lineWidth=hA}else this.lineWidth=EA,G.call(this,U,O),this.lineWidth=hA;this.path=NA},G=function(U,O){if((U!=="stroke"||O||!m.call(this))&&(U==="stroke"||O||!h.call(this))){for(var R,V,J=[],AA=this.path,fA=0;fA<AA.length;fA++){var hA=AA[fA];switch(hA.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:hA,deltas:[],abs:[]});break;case"lt":var EA=J.length;if(AA[fA-1]&&!isNaN(AA[fA-1].x)&&(R=[hA.x-AA[fA-1].x,hA.y-AA[fA-1].y],EA>0)){for(;EA>=0;EA--)if(J[EA-1].close!==!0&&J[EA-1].begin!==!0){J[EA-1].deltas.push(R),J[EA-1].abs.push(hA);break}}break;case"bct":R=[hA.x1-AA[fA-1].x,hA.y1-AA[fA-1].y,hA.x2-AA[fA-1].x,hA.y2-AA[fA-1].y,hA.x-AA[fA-1].x,hA.y-AA[fA-1].y],J[J.length-1].deltas.push(R);break;case"qct":var FA=AA[fA-1].x+2/3*(hA.x1-AA[fA-1].x),NA=AA[fA-1].y+2/3*(hA.y1-AA[fA-1].y),LA=hA.x+2/3*(hA.x1-hA.x),VA=hA.y+2/3*(hA.y1-hA.y),dA=hA.x,K=hA.y;R=[FA-AA[fA-1].x,NA-AA[fA-1].y,LA-AA[fA-1].x,VA-AA[fA-1].y,dA-AA[fA-1].x,K-AA[fA-1].y],J[J.length-1].deltas.push(R);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(hA)}}V=O?null:U==="stroke"?"stroke":"fill";for(var Ae=!1,kA=0;kA<J.length;kA++)if(J[kA].arc)for(var yA=J[kA].abs,xA=0;xA<yA.length;xA++){var SA=yA[xA];SA.type==="arc"?_.call(this,SA.x,SA.y,SA.radius,SA.startAngle,SA.endAngle,SA.counterclockwise,void 0,O,!Ae):k.call(this,SA.x,SA.y),Ae=!0}else if(J[kA].close===!0)this.pdf.internal.out("h"),Ae=!1;else if(J[kA].begin!==!0){var IA=J[kA].start.x,KA=J[kA].start.y;M.call(this,J[kA].deltas,IA,KA),Ae=!0}V&&q.call(this,V),O&&iA.call(this)}},$=function(U){var O=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,R=O*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return U-R;case"top":return U+O-R;case"hanging":return U+O-2*R;case"middle":return U+O/2-R;case"ideographic":return U;case"alphabetic":default:return U}},j=function(U){return U+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var U=function(){};return U.colorStops=[],U.addColorStop=function(O,R){this.colorStops.push([O,R])},U.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},U.isCanvasGradient=!0,U},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var _=function(U,O,R,V,J,AA,fA,hA,EA){for(var FA=rA.call(this,R,V,J,AA),NA=0;NA<FA.length;NA++){var LA=FA[NA];NA===0&&(EA?S.call(this,LA.x1+U,LA.y1+O):k.call(this,LA.x1+U,LA.y1+O)),sA.call(this,U,O,LA.x2,LA.y2,LA.x3,LA.y3,LA.x4,LA.y4)}hA?iA.call(this):q.call(this,fA)},q=function(U){switch(U){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},iA=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(U,O){this.pdf.internal.out(e(U)+" "+t(O)+" m")},L=function(U){var O;switch(U.align){case"right":case"end":O="right";break;case"center":O="center";break;case"left":case"start":default:O="left"}var R=this.pdf.getTextDimensions(U.text),V=$.call(this,U.y),J=j.call(this,V)-R.h,AA=this.ctx.transform.applyToPoint(new a(U.x,V)),fA=this.ctx.transform.decompose(),hA=new o;hA=(hA=(hA=hA.multiply(fA.translate)).multiply(fA.skew)).multiply(fA.scale);for(var EA,FA,NA,LA=this.ctx.transform.applyToRectangle(new s(U.x,V,R.w,R.h)),VA=hA.applyToRectangle(new s(U.x,J,R.w,R.h)),dA=F.call(this,VA),K=[],Ae=0;Ae<dA.length;Ae+=1)K.indexOf(dA[Ae])===-1&&K.push(dA[Ae]);if(T(K),this.autoPaging)for(var kA=K[0],yA=K[K.length-1],xA=kA;xA<yA+1;xA++){this.pdf.setPage(xA);var SA=xA===1?this.posY+this.margin[0]:this.margin[0],IA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],KA=this.pdf.internal.pageSize.height-this.margin[2],qA=KA-this.margin[0],te=this.pdf.internal.pageSize.width-this.margin[1],re=te-this.margin[3],se=xA===1?0:IA+(xA-2)*qA;if(this.ctx.clip_path.length!==0){var he=this.path;EA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Q(EA,this.posX+this.margin[3],-1*se+SA),G.call(this,"fill",!0),this.path=he}var zA=Q([JSON.parse(JSON.stringify(VA))],this.posX+this.margin[3],-se+SA+this.ctx.prevPageLastElemOffset)[0];U.scale>=.01&&(FA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(FA*U.scale),NA=this.lineWidth,this.lineWidth=NA*U.scale);var ne=this.autoPaging!=="text";if(ne||zA.y+zA.h<=KA){if(ne||zA.y>=SA&&zA.x<=te){var TA=ne?U.text:this.pdf.splitTextToSize(U.text,U.maxWidth||te-zA.x)[0],Ke=Q([JSON.parse(JSON.stringify(LA))],this.posX+this.margin[3],-se+SA+this.ctx.prevPageLastElemOffset)[0],de=ne&&(xA>kA||xA<yA)&&w.call(this);de&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],re,qA,null).clip().discardPath()),this.pdf.text(TA,Ke.x,Ke.y,{angle:U.angle,align:O,renderingMode:U.renderingMode}),de&&this.pdf.restoreGraphicsState()}}else zA.y<KA&&(this.ctx.prevPageLastElemOffset+=KA-zA.y);U.scale>=.01&&(this.pdf.setFontSize(FA),this.lineWidth=NA)}else U.scale>=.01&&(FA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(FA*U.scale),NA=this.lineWidth,this.lineWidth=NA*U.scale),this.pdf.text(U.text,AA.x+this.posX,AA.y+this.posY,{angle:U.angle,align:O,renderingMode:U.renderingMode,maxWidth:U.maxWidth}),U.scale>=.01&&(this.pdf.setFontSize(FA),this.lineWidth=NA)},k=function(U,O,R,V){R=R||0,V=V||0,this.pdf.internal.out(e(U+R)+" "+t(O+V)+" l")},M=function(U,O,R){return this.pdf.lines(U,O,R,null,null)},sA=function(U,O,R,V,J,AA,fA,hA){this.pdf.internal.out([A(n(R+U)),A(i(V+O)),A(n(J+U)),A(i(AA+O)),A(n(fA+U)),A(i(hA+O)),"c"].join(" "))},rA=function(U,O,R,V){for(var J=2*Math.PI,AA=Math.PI/2;O>R;)O-=J;var fA=Math.abs(R-O);fA<J&&V&&(fA=J-fA);for(var hA=[],EA=V?-1:1,FA=O;fA>1e-5;){var NA=FA+EA*Math.min(fA,AA);hA.push(oA.call(this,U,FA,NA)),fA-=Math.abs(NA-FA),FA=NA}return hA},oA=function(U,O,R){var V=(R-O)/2,J=U*Math.cos(V),AA=U*Math.sin(V),fA=J,hA=-AA,EA=fA*fA+hA*hA,FA=EA+fA*J+hA*AA,NA=4/3*(Math.sqrt(2*EA*FA)-FA)/(fA*AA-hA*J),LA=fA-NA*hA,VA=hA+NA*fA,dA=LA,K=-VA,Ae=V+O,kA=Math.cos(Ae),yA=Math.sin(Ae);return{x1:U*Math.cos(O),y1:U*Math.sin(O),x2:LA*kA-VA*yA,y2:LA*yA+VA*kA,x3:dA*kA-K*yA,y3:dA*yA+K*kA,x4:U*Math.cos(R),y4:U*Math.sin(R)}},tA=function(U){return 180*U/Math.PI},aA=function(U,O,R,V,J,AA){var fA=U+.5*(R-U),hA=O+.5*(V-O),EA=J+.5*(R-J),FA=AA+.5*(V-AA),NA=Math.min(U,J,fA,EA),LA=Math.max(U,J,fA,EA),VA=Math.min(O,AA,hA,FA),dA=Math.max(O,AA,hA,FA);return new s(NA,VA,LA-NA,dA-VA)},cA=function(U,O,R,V,J,AA,fA,hA){var EA,FA,NA,LA,VA,dA,K,Ae,kA,yA,xA,SA,IA,KA,qA=R-U,te=V-O,re=J-R,se=AA-V,he=fA-J,zA=hA-AA;for(FA=0;FA<41;FA++)kA=(K=(NA=U+(EA=FA/40)*qA)+EA*((VA=R+EA*re)-NA))+EA*(VA+EA*(J+EA*he-VA)-K),yA=(Ae=(LA=O+EA*te)+EA*((dA=V+EA*se)-LA))+EA*(dA+EA*(AA+EA*zA-dA)-Ae),FA==0?(xA=kA,SA=yA,IA=kA,KA=yA):(xA=Math.min(xA,kA),SA=Math.min(SA,yA),IA=Math.max(IA,kA),KA=Math.max(KA,yA));return new s(Math.round(xA),Math.round(SA),Math.round(IA-xA),Math.round(KA-SA))},QA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var U,O,R=(U=this.ctx.lineDash,O=this.ctx.lineDashOffset,JSON.stringify({lineDash:U,lineDashOffset:O}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(ZA.API),function(r){var A=function(i){var a,s,o,u,f,d,p,h,m,w;for(s=[],o=0,u=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;u>o;o+=4)(f=(i.charCodeAt(o)<<24)+(i.charCodeAt(o+1)<<16)+(i.charCodeAt(o+2)<<8)+i.charCodeAt(o+3))!==0?(d=(f=((f=((f=((f=(f-(w=f%85))/85)-(m=f%85))/85)-(h=f%85))/85)-(p=f%85))/85)%85,s.push(d+33,p+33,h+33,m+33,w+33)):s.push(122);return function(F,y){for(var Q=y;Q>0;Q--)F.pop()}(s,a.length),String.fromCharCode.apply(String,s)+"~>"},e=function(i){var a,s,o,u,f,d=String,p="length",h=255,m="charCodeAt",w="slice",F="replace";for(i[w](-2),i=i[w](0,-2)[F](/\s/g,"")[F]("z","!!!!!"),o=[],u=0,f=(i+=a="uuuuu"[w](i[p]%5||5))[p];f>u;u+=5)s=52200625*(i[m](u)-33)+614125*(i[m](u+1)-33)+7225*(i[m](u+2)-33)+85*(i[m](u+3)-33)+(i[m](u+4)-33),o.push(h&s>>24,h&s>>16,h&s>>8,h&s);return function(y,Q){for(var T=Q;T>0;T--)y.pop()}(o,a[p]),d.fromCharCode.apply(d,o)},t=function(i){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),a.test(i)===!1)return"";for(var s="",o=0;o<i.length;o+=2)s+=String.fromCharCode("0x"+(i[o]+i[o+1]));return s},n=function(i){for(var a=new Uint8Array(i.length),s=i.length;s--;)a[s]=i.charCodeAt(s);return i=(a=Zf(a)).reduce(function(o,u){return o+String.fromCharCode(u)},"")};r.processDataByFilters=function(i,a){var s=0,o=i||"",u=[];for(typeof(a=a||[])=="string"&&(a=[a]),s=0;s<a.length;s+=1)switch(a[s]){case"ASCII85Decode":case"/ASCII85Decode":o=e(o),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=A(o),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=t(o),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map(function(f){return("0"+f.charCodeAt().toString(16)).slice(-2)}).join("")+">",u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=n(o),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:o,reverseChain:u.reverse().join(" ")}}}(ZA.API),function(r){r.loadFile=function(A,e,t){return function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(o,u,f){var d=new XMLHttpRequest,p=0,h=function(m){var w=m.length,F=[],y=String.fromCharCode;for(p=0;p<w;p+=1)F.push(y(255&m.charCodeAt(p)));return F.join("")};if(d.open("GET",o,!u),d.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(d.onload=function(){d.status===200?f(h(this.responseText)):f(void 0)}),d.send(null),u&&d.status===200)return h(d.responseText)}(n,i,a)}catch(o){}return s}(A,e,t)},r.loadImageFile=r.loadFile}(ZA.API),function(r){function A(){return(ee.html2canvas?Promise.resolve(ee.html2canvas):Promise.resolve().then(()=>O1)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function e(){return(ee.DOMPurify?Promise.resolve(ee.DOMPurify):Promise.resolve().then(()=>kU)).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var t=function(a){var s=Qe(a);return s==="undefined"?"undefined":s==="string"||a instanceof String?"string":s==="number"||a instanceof Number?"number":s==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":s==="object"?"object":"unknown"},n=function(a,s){var o=document.createElement(a);for(var u in s.className&&(o.className=s.className),s.innerHTML&&s.dompurify&&(o.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)o.style[u]=s.style[u];return o},i=function a(s){var o=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),u=a.convert(Promise.resolve(),o);return u=(u=u.setProgress(1,a,1,[a])).set(s)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(a,s){return a.__proto__=s||i.prototype,a},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(a,s){return this.then(function(){switch(s=s||function(o){switch(t(o)){case"string":return"string";case"element":return o.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(e).then(function(o){return this.set({src:n("div",{innerHTML:a,dompurify:o})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},i.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=function o(u,f){for(var d=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),p=u.firstChild;p;p=p.nextSibling)f!==!0&&p.nodeType===1&&p.nodeName==="SCRIPT"||d.appendChild(o(p,f));return u.nodeType===1&&(u.nodeName==="CANVAS"?(d.width=u.width,d.height=u.height,d.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(d.value=u.value),d.addEventListener("load",function(){d.scrollTop=u.scrollTop,d.scrollLeft=u.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(s){var o=Object.assign({},this.opt.html2canvas);return delete o.onrendered,s(this.prop.container,o)}).then(function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(s){var o=this.opt.jsPDF,u=this.opt.fontFaces,f=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,d=Object.assign({async:!0,allowTaint:!0,scale:f,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 d.onrendered,o.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,o.context2d.posX=this.opt.x,o.context2d.posY=this.opt.y,o.context2d.margin=this.opt.margin,o.context2d.fontFaces=u,u)for(var p=0;p<u.length;++p){var h=u[p],m=h.src.find(function(w){return w.format==="truetype"});m&&o.addFont(m.url,h.ref.name,h.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,o.context2d.save(!0),s(this.prop.container,d)}).then(function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(a,s,o){return(o=o||"pdf").toLowerCase()==="img"||o.toLowerCase()==="image"?this.outputImg(a,s):this.outputPdf(a,s)},i.prototype.outputPdf=function(a,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,s)})},i.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},i.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(a){if(t(a)!=="object")return this;var s=Object.keys(a||{}).map(function(o){if(o in i.template.prop)return function(){this.prop[o]=a[o]};switch(o){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[o]=a[o]}}},this);return this.then(function(){return this.thenList(s)})},i.prototype.get=function(a,s){return this.then(function(){var o=a in i.template.prop?this.prop[a]:this.opt[a];return s?s(o):o})},i.prototype.setMargin=function(a){return this.then(function(){switch(t(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},i.prototype.setPageSize=function(a){function s(o,u){return Math.floor(o*u/72*96)}return this.then(function(){(a=a||ZA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:s(a.inner.width,a.k),height:s(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},i.prototype.setProgress=function(a,s,o,u){return a!=null&&(this.progress.val=a),s!=null&&(this.progress.state=s),o!=null&&(this.progress.n=o),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,s,o,u){return this.setProgress(a?this.progress.val+a:null,s||null,o?this.progress.n+o:null,u?this.progress.stack.concat(u):null)},i.prototype.then=function(a,s){var o=this;return this.thenCore(a,s,function(u,f){return o.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(d){return o.updateProgress(null,u),d}).then(u,f).then(function(d){return o.updateProgress(1),d})})},i.prototype.thenCore=function(a,s,o){o=o||Promise.prototype.then,a&&(a=a.bind(this)),s&&(s=s.bind(this));var u=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),f=o.call(u,a,s);return i.convert(f,this.__proto__)},i.prototype.thenExternal=function(a,s){return Promise.prototype.then.call(this,a,s)},i.prototype.thenList=function(a){var s=this;return a.forEach(function(o){s=s.thenCore(o)}),s},i.prototype.catch=function(a){a&&(a=a.bind(this));var s=Promise.prototype.catch.call(this,a);return i.convert(s,this)},i.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},i.prototype.error=function(a){return this.then(function(){throw new Error(a)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,ZA.getPageSize=function(a,s,o){if(Qe(a)==="object"){var u=a;a=u.orientation,s=u.unit||s,o=u.format||o}s=s||"mm",o=o||"a4",a=(""+(a||"P")).toLowerCase();var f,d=(""+o).toLowerCase(),p={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(s){case"pt":f=1;break;case"mm":f=72/25.4;break;case"cm":f=72/2.54;break;case"in":f=72;break;case"px":f=.75;break;case"pc":case"em":f=12;break;case"ex":f=6;break;default:throw"Invalid unit: "+s}var h,m=0,w=0;if(p.hasOwnProperty(d))m=p[d][1]/f,w=p[d][0]/f;else try{m=o[1],w=o[0]}catch(F){throw new Error("Invalid format: "+o)}if(a==="p"||a==="portrait")a="p",w>m&&(h=w,w=m,m=h);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",m>w&&(h=w,w=m,m=h)}return{width:w,height:m,unit:s,k:f,orientation:a}},r.html=function(a,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(uh):null;var o=new i(s);return s.worker?o:o.from(a).doCallback()}}(ZA.API),ZA.API.addJS=function(r){return hv=r,this.internal.events.subscribe("postPutResources",function(){Yl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Yl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),fv=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+hv+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Yl!==void 0&&fv!==void 0&&this.internal.out("/Names <</JavaScript "+Yl+" 0 R>>")}),this},function(r){var A;r.events.push(["postPutResources",function(){var e=this,t=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],s=t.exec(a);if(s!=null){var o=s[1];e.internal.newObjectDeferredBegin(o,!1)}e.internal.write(a)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,f=[];for(i=0;i<u;i++){var d=e.internal.newObject();f.push(d);var p=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+p.objId+" 0 R /XYZ null null null]>> endobj")}var h=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<f.length;i++)e.internal.write("(page_"+(i+1)+")"+f[i]+" 0 R");e.internal.write(" ] >>","endobj"),A=e.internal.newObject(),e.internal.write("<< /Dests "+h+" 0 R"),e.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+A+" 0 R"))}]),r.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(t,n,i){var a={title:n,options:i,children:[]};return t==null&&(t=this.root),t.children.push(a),a},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(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<t.children.length;i++){var a=t.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(t)),i>0&&this.line("/Prev "+this.makeRef(t.children[i-1])),i<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[i+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var s=this.count=this.count_r({count:0},a);if(s>0&&this.line("/Count "+s),a.options&&a.options.pageNumber){var o=e.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var u=0;u<t.children.length;u++)this.renderItems(t.children[u])},e.outline.line=function(t){this.ctx.val+=t+`\r
|
|
678
|
+
`},e.outline.makeRef=function(t){return t.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(t){this.ctx.val+=`\r
|
|
679
|
+
`+t.id+` 0 obj\r
|
|
680
|
+
<<\r
|
|
681
|
+
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
682
|
+
endobj\r
|
|
683
|
+
`},e.outline.count_r=function(t,n){for(var i=0;i<n.children.length;i++)t.count++,this.count_r(t,n.children[i]);return t.count}}])}(ZA.API),function(r){var A=[192,193,194,195,196,197,198,199];r.processJPEG=function(e,t,n,i,a,s){var o,u=this.decode.DCT_DECODE,f=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=a||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(o=function(d){for(var p,h=256*d.charCodeAt(4)+d.charCodeAt(5),m=d.length,w={width:0,height:0,numcomponents:1},F=4;F<m;F+=2){if(F+=h,A.indexOf(d.charCodeAt(F+1))!==-1){p=256*d.charCodeAt(F+5)+d.charCodeAt(F+6),w={width:256*d.charCodeAt(F+7)+d.charCodeAt(F+8),height:p,numcomponents:d.charCodeAt(F+9)};break}h=256*d.charCodeAt(F+2)+d.charCodeAt(F+3)}return w}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}f={data:e,width:o.width,height:o.height,colorSpace:s,bitsPerComponent:8,filter:u,index:t,alias:n}}return f}}(ZA.API);var Ta,Jl,dv,gv,pv,WQ=function(){var r,A,e;function t(i){var a,s,o,u,f,d,p,h,m,w,F,y,Q,T;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},d=null;;){switch(a=this.readUInt32(),m=function(){var P,G;for(G=[],P=0;P<4;++P)G.push(String.fromCharCode(this.data[this.pos++]));return G}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(a);break;case"fcTL":d&&this.animation.frames.push(d),this.pos+=4,d={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},f=this.readUInt16(),u=this.readUInt16()||100,d.delay=1e3*f/u,d.disposeOp=this.data[this.pos++],d.blendOp=this.data[this.pos++],d.data=[];break;case"IDAT":case"fdAT":for(m==="fdAT"&&(this.pos+=4,a-=4),i=(d!=null?d.data:void 0)||this.imgData,y=0;0<=a?y<a:y>a;0<=a?++y:--y)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(o=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>o)throw new Error("More transparent colors than palette size");if((w=o-this.transparency.indexed.length)>0)for(Q=0;0<=w?Q<w:Q>w;0<=w?++Q:--Q)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":p=(F=this.read(a)).indexOf(0),h=String.fromCharCode.apply(String,F.slice(0,p)),this.text[h]=String.fromCharCode.apply(String,F.slice(p+1));break;case"IEND":return d&&this.animation.frames.push(d),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(T=this.colorType)===4||T===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}t.prototype.read=function(i){var a,s;for(s=[],a=0;0<=i?a<i:a>i;0<=i?++a:--a)s.push(this.data[this.pos++]);return s},t.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},t.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},t.prototype.decodePixels=function(i){var a=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*a),o=0,u=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function f(d,p,h,m){var w,F,y,Q,T,P,G,$,j,_,q,iA,S,L,k,M,sA,rA,oA,tA,aA,cA=Math.ceil((u.width-d)/h),QA=Math.ceil((u.height-p)/m),U=u.width==cA&&u.height==QA;for(L=a*cA,iA=U?s:new Uint8Array(L*QA),P=i.length,S=0,F=0;S<QA&&o<P;){switch(i[o++]){case 0:for(Q=sA=0;sA<L;Q=sA+=1)iA[F++]=i[o++];break;case 1:for(Q=rA=0;rA<L;Q=rA+=1)w=i[o++],T=Q<a?0:iA[F-a],iA[F++]=(w+T)%256;break;case 2:for(Q=oA=0;oA<L;Q=oA+=1)w=i[o++],y=(Q-Q%a)/a,k=S&&iA[(S-1)*L+y*a+Q%a],iA[F++]=(k+w)%256;break;case 3:for(Q=tA=0;tA<L;Q=tA+=1)w=i[o++],y=(Q-Q%a)/a,T=Q<a?0:iA[F-a],k=S&&iA[(S-1)*L+y*a+Q%a],iA[F++]=(w+Math.floor((T+k)/2))%256;break;case 4:for(Q=aA=0;aA<L;Q=aA+=1)w=i[o++],y=(Q-Q%a)/a,T=Q<a?0:iA[F-a],S===0?k=M=0:(k=iA[(S-1)*L+y*a+Q%a],M=y&&iA[(S-1)*L+(y-1)*a+Q%a]),G=T+k-M,$=Math.abs(G-T),_=Math.abs(G-k),q=Math.abs(G-M),j=$<=_&&$<=q?T:_<=q?k:M,iA[F++]=(w+j)%256;break;default:throw new Error("Invalid filter algorithm: "+i[o-1])}if(!U){var O=((p+S*m)*u.width+d)*a,R=S*L;for(Q=0;Q<cA;Q+=1){for(var V=0;V<a;V+=1)s[O++]=iA[R++];O+=(h-1)*a}}S++}}return i=UQ(i),u.interlaceMethod==1?(f(0,0,8,8),f(4,0,8,8),f(0,4,4,8),f(2,0,4,4),f(0,2,2,4),f(1,0,2,2),f(0,1,1,2)):f(0,0,1,1),s},t.prototype.decodePalette=function(){var i,a,s,o,u,f,d,p,h;for(s=this.palette,f=this.transparency.indexed||[],u=new Uint8Array((f.length||0)+s.length),o=0,i=0,a=d=0,p=s.length;d<p;a=d+=3)u[o++]=s[a],u[o++]=s[a+1],u[o++]=s[a+2],u[o++]=(h=f[i++])!=null?h:255;return u},t.prototype.copyToImageData=function(i,a){var s,o,u,f,d,p,h,m,w,F,y;if(o=this.colors,w=null,s=this.hasAlphaChannel,this.palette.length&&(w=(y=this._decodedPalette)!=null?y:this._decodedPalette=this.decodePalette(),o=4,s=!0),m=(u=i.data||i).length,d=w||a,f=p=0,o===1)for(;f<m;)h=w?4*a[f/4]:p,F=d[h++],u[f++]=F,u[f++]=F,u[f++]=F,u[f++]=s?d[h++]:255,p=h;else for(;f<m;)h=w?4*a[f/4]:p,u[f++]=d[h++],u[f++]=d[h++],u[f++]=d[h++],u[f++]=s?d[h++]:255,p=h},t.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var n=function(){if(Object.prototype.toString.call(ee)==="[object Window]"){try{A=ee.document.createElement("canvas"),e=A.getContext("2d")}catch(i){return!1}return!0}return!1};return n(),r=function(i){var a;if(n()===!0)return e.width=i.width,e.height=i.height,e.clearRect(0,0,i.width,i.height),e.putImageData(i,0,0),(a=new Image).src=A.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},t.prototype.decodeFrames=function(i){var a,s,o,u,f,d,p,h;if(this.animation){for(h=[],s=f=0,d=(p=this.animation.frames).length;f<d;s=++f)a=p[s],o=i.createImageData(a.width,a.height),u=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(o,u),a.imageData=o,h.push(a.image=r(o));return h}},t.prototype.renderFrame=function(i,a){var s,o,u;return s=(o=this.animation.frames)[a],u=o[a-1],a===0&&i.clearRect(0,0,this.width,this.height),(u!=null?u.disposeOp:void 0)===1?i.clearRect(u.xOffset,u.yOffset,u.width,u.height):(u!=null?u.disposeOp:void 0)===2&&i.putImageData(u.imageData,u.xOffset,u.yOffset),s.blendOp===0&&i.clearRect(s.xOffset,s.yOffset,s.width,s.height),i.drawImage(s.image,s.xOffset,s.yOffset)},t.prototype.animate=function(i){var a,s,o,u,f,d,p=this;return s=0,d=this.animation,u=d.numFrames,o=d.frames,f=d.numPlays,(a=function(){var h,m;if(h=s++%u,m=o[h],p.renderFrame(i,h),u>1&&s/u<f)return p.animation._timeout=setTimeout(a,m.delay)})()},t.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},t.prototype.render=function(i){var a,s;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,a=i.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(s=a.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),a.putImageData(s,0,0))},t}();/**
|
|
684
|
+
* @license
|
|
685
|
+
*
|
|
686
|
+
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|
687
|
+
*
|
|
688
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
689
|
+
* a copy of this software and associated documentation files (the
|
|
690
|
+
* "Software"), to deal in the Software without restriction, including
|
|
691
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
692
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
693
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
694
|
+
* the following conditions:
|
|
695
|
+
*
|
|
696
|
+
* The above copyright notice and this permission notice shall be
|
|
697
|
+
* included in all copies or substantial portions of the Software.
|
|
698
|
+
*
|
|
699
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
700
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
701
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
702
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
703
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
704
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
705
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
706
|
+
* ====================================================================
|
|
707
|
+
*//**
|
|
708
|
+
* @license
|
|
709
|
+
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|
710
|
+
*
|
|
711
|
+
* https://github.com/deanm/omggif
|
|
712
|
+
*
|
|
713
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
714
|
+
* of this software and associated documentation files (the "Software"), to
|
|
715
|
+
* deal in the Software without restriction, including without limitation the
|
|
716
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
717
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
|
718
|
+
* furnished to do so, subject to the following conditions:
|
|
719
|
+
*
|
|
720
|
+
* The above copyright notice and this permission notice shall be included in
|
|
721
|
+
* all copies or substantial portions of the Software.
|
|
722
|
+
*
|
|
723
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
724
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
725
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
726
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
727
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
728
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
729
|
+
* IN THE SOFTWARE.
|
|
730
|
+
*
|
|
731
|
+
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|
732
|
+
* including animation and compression. It does not rely on any specific
|
|
733
|
+
* underlying system, so should run in the browser, Node, or Plask.
|
|
734
|
+
*/function zQ(r){var A=0;if(r[A++]!==71||r[A++]!==73||r[A++]!==70||r[A++]!==56||(r[A++]+1&253)!=56||r[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=r[A++]|r[A++]<<8,t=r[A++]|r[A++]<<8,n=r[A++],i=n>>7,a=1<<(7&n)+1;r[A++],r[A++];var s=null,o=null;i&&(s=A,o=a,A+=3*a);var u=!0,f=[],d=0,p=null,h=0,m=null;for(this.width=e,this.height=t;u&&A<r.length;)switch(r[A++]){case 33:switch(r[A++]){case 255:if(r[A]!==11||r[A+1]==78&&r[A+2]==69&&r[A+3]==84&&r[A+4]==83&&r[A+5]==67&&r[A+6]==65&&r[A+7]==80&&r[A+8]==69&&r[A+9]==50&&r[A+10]==46&&r[A+11]==48&&r[A+12]==3&&r[A+13]==1&&r[A+16]==0)A+=14,m=r[A++]|r[A++]<<8,A++;else for(A+=12;;){if(!((S=r[A++])>=0))throw Error("Invalid block size");if(S===0)break;A+=S}break;case 249:if(r[A++]!==4||r[A+4]!==0)throw new Error("Invalid graphics extension block.");var w=r[A++];d=r[A++]|r[A++]<<8,p=r[A++],!(1&w)&&(p=null),h=w>>2&7,A++;break;case 254:for(;;){if(!((S=r[A++])>=0))throw Error("Invalid block size");if(S===0)break;A+=S}break;default:throw new Error("Unknown graphic control label: 0x"+r[A-1].toString(16))}break;case 44:var F=r[A++]|r[A++]<<8,y=r[A++]|r[A++]<<8,Q=r[A++]|r[A++]<<8,T=r[A++]|r[A++]<<8,P=r[A++],G=P>>6&1,$=1<<(7&P)+1,j=s,_=o,q=!1;P>>7&&(q=!0,j=A,_=$,A+=3*$);var iA=A;for(A++;;){var S;if(!((S=r[A++])>=0))throw Error("Invalid block size");if(S===0)break;A+=S}f.push({x:F,y,width:Q,height:T,has_local_palette:q,palette_offset:j,palette_size:_,data_offset:iA,data_length:A-iA,transparent_index:p,interlaced:!!G,delay:d,disposal:h});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+r[A-1].toString(16))}this.numFrames=function(){return f.length},this.loopCount=function(){return m},this.frameInfo=function(L){if(L<0||L>=f.length)throw new Error("Frame index out of range.");return f[L]},this.decodeAndBlitFrameBGRA=function(L,k){var M=this.frameInfo(L),sA=M.width*M.height,rA=new Uint8Array(sA);vv(r,M.data_offset,rA,sA);var oA=M.palette_offset,tA=M.transparent_index;tA===null&&(tA=256);var aA=M.width,cA=e-aA,QA=aA,U=4*(M.y*e+M.x),O=4*((M.y+M.height)*e+M.x),R=U,V=4*cA;M.interlaced===!0&&(V+=4*e*7);for(var J=8,AA=0,fA=rA.length;AA<fA;++AA){var hA=rA[AA];if(QA===0&&(QA=aA,(R+=V)>=O&&(V=4*cA+4*e*(J-1),R=U+(aA+cA)*(J<<1),J>>=1)),hA===tA)R+=4;else{var EA=r[oA+3*hA],FA=r[oA+3*hA+1],NA=r[oA+3*hA+2];k[R++]=NA,k[R++]=FA,k[R++]=EA,k[R++]=255}--QA}},this.decodeAndBlitFrameRGBA=function(L,k){var M=this.frameInfo(L),sA=M.width*M.height,rA=new Uint8Array(sA);vv(r,M.data_offset,rA,sA);var oA=M.palette_offset,tA=M.transparent_index;tA===null&&(tA=256);var aA=M.width,cA=e-aA,QA=aA,U=4*(M.y*e+M.x),O=4*((M.y+M.height)*e+M.x),R=U,V=4*cA;M.interlaced===!0&&(V+=4*e*7);for(var J=8,AA=0,fA=rA.length;AA<fA;++AA){var hA=rA[AA];if(QA===0&&(QA=aA,(R+=V)>=O&&(V=4*cA+4*e*(J-1),R=U+(aA+cA)*(J<<1),J>>=1)),hA===tA)R+=4;else{var EA=r[oA+3*hA],FA=r[oA+3*hA+1],NA=r[oA+3*hA+2];k[R++]=EA,k[R++]=FA,k[R++]=NA,k[R++]=255}--QA}}}function vv(r,A,e,t){for(var n=r[A++],i=1<<n,a=i+1,s=a+1,o=n+1,u=(1<<o)-1,f=0,d=0,p=0,h=r[A++],m=new Int32Array(4096),w=null;;){for(;f<16&&h!==0;)d|=r[A++]<<f,f+=8,h===1?h=r[A++]:--h;if(f<o)break;var F=d&u;if(d>>=o,f-=o,F!==i){if(F===a)break;for(var y=F<s?F:w,Q=0,T=y;T>i;)T=m[T]>>8,++Q;var P=T;if(p+Q+(y!==F?1:0)>t)return void Oe.log("Warning, gif stream longer than expected.");e[p++]=P;var G=p+=Q;for(y!==F&&(e[p++]=P),T=y;Q--;)T=m[T],e[--G]=255&T,T>>=8;w!==null&&s<4096&&(m[s++]=w<<8|P,s>=u+1&&o<12&&(++o,u=u<<1|1)),w=F}else s=a+1,u=(1<<(o=n+1))-1,w=null}return p!==t&&Oe.log("Warning, gif stream shorter than expected."),e}/**
|
|
735
|
+
* @license
|
|
736
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
|
737
|
+
All rights reserved.
|
|
738
|
+
|
|
739
|
+
Redistribution and use in source and binary forms, with or without
|
|
740
|
+
modification, are permitted provided that the following conditions are
|
|
741
|
+
met:
|
|
742
|
+
|
|
743
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
744
|
+
this list of conditions and the following disclaimer.
|
|
745
|
+
|
|
746
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
747
|
+
notice, this list of conditions and the following disclaimer in the
|
|
748
|
+
documentation and/or other materials provided with the distribution.
|
|
749
|
+
|
|
750
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
751
|
+
contributors may be used to endorse or promote products derived from
|
|
752
|
+
this software without specific prior written permission.
|
|
753
|
+
|
|
754
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
755
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
756
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
757
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
758
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
759
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
760
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
761
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
762
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
763
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
764
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
765
|
+
*/function fh(r){var A,e,t,n,i,a=Math.floor,s=new Array(64),o=new Array(64),u=new Array(64),f=new Array(64),d=new Array(65535),p=new Array(65535),h=new Array(64),m=new Array(64),w=[],F=0,y=7,Q=new Array(64),T=new Array(64),P=new Array(64),G=new Array(256),$=new Array(2048),j=[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],_=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],iA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],sA=[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 rA(U,O){for(var R=0,V=0,J=new Array,AA=1;AA<=16;AA++){for(var fA=1;fA<=U[AA];fA++)J[O[V]]=[],J[O[V]][0]=R,J[O[V]][1]=AA,V++,R++;R*=2}return J}function oA(U){for(var O=U[0],R=U[1]-1;R>=0;)O&1<<R&&(F|=1<<y),R--,--y<0&&(F==255?(tA(255),tA(0)):tA(F),y=7,F=0)}function tA(U){w.push(U)}function aA(U){tA(U>>8&255),tA(255&U)}function cA(U,O,R,V,J){for(var AA,fA=J[0],hA=J[240],EA=function(yA,xA){var SA,IA,KA,qA,te,re,se,he,zA,ne,TA=0;for(zA=0;zA<8;++zA){SA=yA[TA],IA=yA[TA+1],KA=yA[TA+2],qA=yA[TA+3],te=yA[TA+4],re=yA[TA+5],se=yA[TA+6];var Ke=SA+(he=yA[TA+7]),de=SA-he,Ft=IA+se,we=IA-se,ge=KA+re,lt=KA-re,pe=qA+te,zt=qA-te,Ie=Ke+pe,qe=Ke-pe,De=Ft+ge,$e=Ft-ge;yA[TA]=Ie+De,yA[TA+4]=Ie-De;var GA=.707106781*($e+qe);yA[TA+2]=qe+GA,yA[TA+6]=qe-GA;var ve=.382683433*((Ie=zt+lt)-($e=we+de)),Rn=.5411961*Ie+ve,Bt=1.306562965*$e+ve,fr=.707106781*(De=lt+we),yr=de+fr,YA=de-fr;yA[TA+5]=YA+Rn,yA[TA+3]=YA-Rn,yA[TA+1]=yr+Bt,yA[TA+7]=yr-Bt,TA+=8}for(TA=0,zA=0;zA<8;++zA){SA=yA[TA],IA=yA[TA+8],KA=yA[TA+16],qA=yA[TA+24],te=yA[TA+32],re=yA[TA+40],se=yA[TA+48];var br=SA+(he=yA[TA+56]),tr=SA-he,xt=IA+se,ut=IA-se,Ce=KA+re,It=KA-re,Mn=qA+te,_r=qA-te,rr=br+Mn,Dt=br-Mn,ct=xt+Ce,Cr=xt-Ce;yA[TA]=rr+ct,yA[TA+32]=rr-ct;var nr=.707106781*(Cr+Dt);yA[TA+16]=Dt+nr,yA[TA+48]=Dt-nr;var Fr=.382683433*((rr=_r+It)-(Cr=ut+tr)),yn=.5411961*rr+Fr,vi=1.306562965*Cr+Fr,$A=.707106781*(ct=It+ut),z=tr+$A,UA=tr-$A;yA[TA+40]=UA+yn,yA[TA+24]=UA-yn,yA[TA+8]=z+vi,yA[TA+56]=z-vi,TA++}for(zA=0;zA<64;++zA)ne=yA[zA]*xA[zA],h[zA]=ne>0?ne+.5|0:ne-.5|0;return h}(U,O),FA=0;FA<64;++FA)m[j[FA]]=EA[FA];var NA=m[0]-R;R=m[0],NA==0?oA(V[0]):(oA(V[p[AA=32767+NA]]),oA(d[AA]));for(var LA=63;LA>0&&m[LA]==0;)LA--;if(LA==0)return oA(fA),R;for(var VA,dA=1;dA<=LA;){for(var K=dA;m[dA]==0&&dA<=LA;)++dA;var Ae=dA-K;if(Ae>=16){VA=Ae>>4;for(var kA=1;kA<=VA;++kA)oA(hA);Ae&=15}AA=32767+m[dA],oA(J[(Ae<<4)+p[AA]]),oA(d[AA]),dA++}return LA!=63&&oA(fA),R}function QA(U){U=Math.min(Math.max(U,1),100),i!=U&&(function(O){for(var R=[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],V=0;V<64;V++){var J=a((R[V]*O+50)/100);J=Math.min(Math.max(J,1),255),s[j[V]]=J}for(var AA=[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],fA=0;fA<64;fA++){var hA=a((AA[fA]*O+50)/100);hA=Math.min(Math.max(hA,1),255),o[j[fA]]=hA}for(var EA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],FA=0,NA=0;NA<8;NA++)for(var LA=0;LA<8;LA++)u[FA]=1/(s[j[FA]]*EA[NA]*EA[LA]*8),f[FA]=1/(o[j[FA]]*EA[NA]*EA[LA]*8),FA++}(U<50?Math.floor(5e3/U):Math.floor(200-2*U)),i=U)}this.encode=function(U,O){O&&QA(O),w=new Array,F=0,y=7,aA(65496),aA(65504),aA(16),tA(74),tA(70),tA(73),tA(70),tA(0),tA(1),tA(1),tA(0),aA(1),aA(1),tA(0),tA(0),function(){aA(65499),aA(132),tA(0);for(var IA=0;IA<64;IA++)tA(s[IA]);tA(1);for(var KA=0;KA<64;KA++)tA(o[KA])}(),function(IA,KA){aA(65472),aA(17),tA(8),aA(KA),aA(IA),tA(3),tA(1),tA(17),tA(0),tA(2),tA(17),tA(1),tA(3),tA(17),tA(1)}(U.width,U.height),function(){aA(65476),aA(418),tA(0);for(var IA=0;IA<16;IA++)tA(_[IA+1]);for(var KA=0;KA<=11;KA++)tA(q[KA]);tA(16);for(var qA=0;qA<16;qA++)tA(iA[qA+1]);for(var te=0;te<=161;te++)tA(S[te]);tA(1);for(var re=0;re<16;re++)tA(L[re+1]);for(var se=0;se<=11;se++)tA(k[se]);tA(17);for(var he=0;he<16;he++)tA(M[he+1]);for(var zA=0;zA<=161;zA++)tA(sA[zA])}(),aA(65498),aA(12),tA(3),tA(1),tA(0),tA(2),tA(17),tA(3),tA(17),tA(0),tA(63),tA(0);var R=0,V=0,J=0;F=0,y=7,this.encode.displayName="_encode_";for(var AA,fA,hA,EA,FA,NA,LA,VA,dA,K=U.data,Ae=U.width,kA=U.height,yA=4*Ae,xA=0;xA<kA;){for(AA=0;AA<yA;){for(FA=yA*xA+AA,LA=-1,VA=0,dA=0;dA<64;dA++)NA=FA+(VA=dA>>3)*yA+(LA=4*(7&dA)),xA+VA>=kA&&(NA-=yA*(xA+1+VA-kA)),AA+LA>=yA&&(NA-=AA+LA-yA+4),fA=K[NA++],hA=K[NA++],EA=K[NA++],Q[dA]=($[fA]+$[hA+256>>0]+$[EA+512>>0]>>16)-128,T[dA]=($[fA+768>>0]+$[hA+1024>>0]+$[EA+1280>>0]>>16)-128,P[dA]=($[fA+1280>>0]+$[hA+1536>>0]+$[EA+1792>>0]>>16)-128;R=cA(Q,u,R,A,t),V=cA(T,f,V,e,n),J=cA(P,f,J,e,n),AA+=32}xA+=8}if(y>=0){var SA=[];SA[1]=y+1,SA[0]=(1<<y+1)-1,oA(SA)}return aA(65497),new Uint8Array(w)},r=r||50,function(){for(var U=String.fromCharCode,O=0;O<256;O++)G[O]=U(O)}(),A=rA(_,q),e=rA(L,k),t=rA(iA,S),n=rA(M,sA),function(){for(var U=1,O=2,R=1;R<=15;R++){for(var V=U;V<O;V++)p[32767+V]=R,d[32767+V]=[],d[32767+V][1]=R,d[32767+V][0]=V;for(var J=-(O-1);J<=-U;J++)p[32767+J]=R,d[32767+J]=[],d[32767+J][1]=R,d[32767+J][0]=O-1+J;U<<=1,O<<=1}}(),function(){for(var U=0;U<256;U++)$[U]=19595*U,$[U+256>>0]=38470*U,$[U+512>>0]=7471*U+32768,$[U+768>>0]=-11059*U,$[U+1024>>0]=-21709*U,$[U+1280>>0]=32768*U+8421375,$[U+1536>>0]=-27439*U,$[U+1792>>0]=-5329*U}(),QA(r)}/**
|
|
766
|
+
* @license
|
|
767
|
+
* Copyright (c) 2017 Aras Abbasi
|
|
768
|
+
*
|
|
769
|
+
* Licensed under the MIT License.
|
|
770
|
+
* http://opensource.org/licenses/mit-license
|
|
771
|
+
*/function zr(r,A){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Bv(r){function A(_){if(!_)throw Error("assert :P")}function e(_,q,iA){for(var S=0;4>S;S++)if(_[q+S]!=iA.charCodeAt(S))return!0;return!1}function t(_,q,iA,S,L){for(var k=0;k<L;k++)_[q+k]=iA[S+k]}function n(_,q,iA,S){for(var L=0;L<S;L++)_[q+L]=iA}function i(_){return new Int32Array(_)}function a(_,q){for(var iA=[],S=0;S<_;S++)iA.push(new q);return iA}function s(_,q){var iA=[];return function S(L,k,M){for(var sA=M[k],rA=0;rA<sA&&(L.push(M.length>k+1?[]:new q),!(M.length<k+1));rA++)S(L[rA],k+1,M)}(iA,0,_),iA}var o=function(){var _=this;function q(l,c){for(var v=1<<c-1>>>0;l&v;)v>>>=1;return v?(l&v-1)+v:l}function iA(l,c,v,B,b){A(!(B%v));do l[c+(B-=v)]=b;while(0<B)}function S(l,c,v,B,b){if(A(2328>=b),512>=b)var E=i(512);else if((E=i(b))==null)return 0;return function(x,I,N,H,X,lA){var uA,eA,wA=I,gA=1<<N,Y=i(16),Z=i(16);for(A(X!=0),A(H!=null),A(x!=null),A(0<N),eA=0;eA<X;++eA){if(15<H[eA])return 0;++Y[H[eA]]}if(Y[0]==X)return 0;for(Z[1]=0,uA=1;15>uA;++uA){if(Y[uA]>1<<uA)return 0;Z[uA+1]=Z[uA]+Y[uA]}for(eA=0;eA<X;++eA)uA=H[eA],0<H[eA]&&(lA[Z[uA]++]=eA);if(Z[15]==1)return(H=new L).g=0,H.value=lA[0],iA(x,wA,1,gA,H),gA;var vA,mA=-1,BA=gA-1,RA=0,HA=1,JA=1,_A=1<<N;for(eA=0,uA=1,X=2;uA<=N;++uA,X<<=1){if(HA+=JA<<=1,0>(JA-=Y[uA]))return 0;for(;0<Y[uA];--Y[uA])(H=new L).g=uA,H.value=lA[eA++],iA(x,wA+RA,X,_A,H),RA=q(RA,uA)}for(uA=N+1,X=2;15>=uA;++uA,X<<=1){if(HA+=JA<<=1,0>(JA-=Y[uA]))return 0;for(;0<Y[uA];--Y[uA]){if(H=new L,(RA&BA)!=mA){for(wA+=_A,vA=1<<(mA=uA)-N;15>mA&&!(0>=(vA-=Y[mA]));)++mA,vA<<=1;gA+=_A=1<<(vA=mA-N),x[I+(mA=RA&BA)].g=vA+N,x[I+mA].value=wA-I-mA}H.g=uA-N,H.value=lA[eA++],iA(x,wA+(RA>>N),X,_A,H),RA=q(RA,uA)}}return HA!=2*Z[15]-1?0:gA}(l,c,v,B,b,E)}function L(){this.value=this.g=0}function k(){this.value=this.g=0}function M(){this.G=a(5,L),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Rt,k)}function sA(l,c,v,B){A(l!=null),A(c!=null),A(2147483648>B),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=c,l.pa=v,l.Jd=c,l.Yc=v+B,l.Zc=4<=B?v+B-4+1:v,AA(l)}function rA(l,c){for(var v=0;0<c--;)v|=hA(l,128)<<c;return v}function oA(l,c){var v=rA(l,c);return fA(l)?-v:v}function tA(l,c,v,B){var b,E=0;for(A(l!=null),A(c!=null),A(4294967288>B),l.Sb=B,l.Ra=0,l.u=0,l.h=0,4<B&&(B=4),b=0;b<B;++b)E+=c[v+b]<<8*b;l.Ra=E,l.bb=B,l.oa=c,l.pa=v}function aA(l){for(;8<=l.u&&l.bb<l.Sb;)l.Ra>>>=8,l.Ra+=l.oa[l.pa+l.bb]<<us-8>>>0,++l.bb,l.u-=8;R(l)&&(l.h=1,l.u=0)}function cA(l,c){if(A(0<=c),!l.h&&c<=ls){var v=O(l)&os[c];return l.u+=c,aA(l),v}return l.h=1,l.u=0}function QA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function U(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function O(l){return l.Ra>>>(l.u&us-1)>>>0}function R(l){return A(l.bb<=l.Sb),l.h||l.bb==l.Sb&&l.u>us}function V(l,c){l.u=c,l.h=R(l)}function J(l){l.u>=Mo&&(A(l.u>=Mo),aA(l))}function AA(l){A(l!=null&&l.oa!=null),l.pa<l.Zc?(l.I=(l.oa[l.pa++]|l.I<<8)>>>0,l.b+=8):(A(l!=null&&l.oa!=null),l.pa<l.Yc?(l.b+=8,l.I=l.oa[l.pa++]|l.I<<8):l.Ka?l.b=0:(l.I<<=8,l.b+=8,l.Ka=1))}function fA(l){return rA(l,1)}function hA(l,c){var v=l.Ca;0>l.b&&AA(l);var B=l.b,b=v*c>>>8,E=(l.I>>>B>b)+0;for(E?(v-=b,l.I-=b+1<<B>>>0):v=b+1,B=v,b=0;256<=B;)b+=8,B>>=8;return B=7^b+dr[B],l.b-=B,l.Ca=(v<<B)-1,E}function EA(l,c,v){l[c+0]=v>>24&255,l[c+1]=v>>16&255,l[c+2]=v>>8&255,l[c+3]=v>>0&255}function FA(l,c){return l[c+0]<<0|l[c+1]<<8}function NA(l,c){return FA(l,c)|l[c+2]<<16}function LA(l,c){return FA(l,c)|FA(l,c+2)<<16}function VA(l,c){var v=1<<c;return A(l!=null),A(0<c),l.X=i(v),l.X==null?0:(l.Mb=32-c,l.Xa=c,1)}function dA(l,c){A(l!=null),A(c!=null),A(l.Xa==c.Xa),t(c.X,0,l.X,0,1<<c.Xa)}function K(){this.X=[],this.Xa=this.Mb=0}function Ae(l,c,v,B){A(v!=null),A(B!=null);var b=v[0],E=B[0];return b==0&&(b=(l*E+c/2)/c),E==0&&(E=(c*b+l/2)/l),0>=b||0>=E?0:(v[0]=b,B[0]=E,1)}function kA(l,c){return l+(1<<c)-1>>>c}function yA(l,c){return((4278255360&l)+(4278255360&c)>>>0&4278255360)+((16711935&l)+(16711935&c)>>>0&16711935)>>>0}function xA(l,c){_[c]=function(v,B,b,E,x,I,N){var H;for(H=0;H<x;++H){var X=_[l](I[N+H-1],b,E+H);I[N+H]=yA(v[B+H],X)}}}function SA(){this.ud=this.hd=this.jd=0}function IA(l,c){return((4278124286&(l^c))>>>1)+(l&c)>>>0}function KA(l){return 0<=l&&256>l?l:0>l?0:255<l?255:void 0}function qA(l,c){return KA(l+(l-c+.5>>1))}function te(l,c,v){return Math.abs(c-v)-Math.abs(l-v)}function re(l,c,v,B,b,E,x){for(B=E[x-1],v=0;v<b;++v)E[x+v]=B=yA(l[c+v],B)}function se(l,c,v,B,b){var E;for(E=0;E<v;++E){var x=l[c+E],I=x>>8&255,N=16711935&(N=(N=16711935&x)+((I<<16)+I));B[b+E]=(4278255360&x)+N>>>0}}function he(l,c){c.jd=l>>0&255,c.hd=l>>8&255,c.ud=l>>16&255}function zA(l,c,v,B,b,E){var x;for(x=0;x<B;++x){var I=c[v+x],N=I>>>8,H=I,X=255&(X=(X=I>>>16)+((l.jd<<24>>24)*(N<<24>>24)>>>5));H=255&(H=(H=H+((l.hd<<24>>24)*(N<<24>>24)>>>5))+((l.ud<<24>>24)*(X<<24>>24)>>>5)),b[E+x]=(4278255360&I)+(X<<16)+H}}function ne(l,c,v,B,b){_[c]=function(E,x,I,N,H,X,lA,uA,eA){for(N=lA;N<uA;++N)for(lA=0;lA<eA;++lA)H[X++]=b(I[B(E[x++])])},_[l]=function(E,x,I,N,H,X,lA){var uA=8>>E.b,eA=E.Ea,wA=E.K[0],gA=E.w;if(8>uA)for(E=(1<<E.b)-1,gA=(1<<uA)-1;x<I;++x){var Y,Z=0;for(Y=0;Y<eA;++Y)Y&E||(Z=B(N[H++])),X[lA++]=b(wA[Z&gA]),Z>>=uA}else _["VP8LMapColor"+v](N,H,wA,gA,X,lA,x,I,eA)}}function TA(l,c,v,B,b){for(v=c+v;c<v;){var E=l[c++];B[b++]=E>>16&255,B[b++]=E>>8&255,B[b++]=E>>0&255}}function Ke(l,c,v,B,b){for(v=c+v;c<v;){var E=l[c++];B[b++]=E>>16&255,B[b++]=E>>8&255,B[b++]=E>>0&255,B[b++]=E>>24&255}}function de(l,c,v,B,b){for(v=c+v;c<v;){var E=(x=l[c++])>>16&240|x>>12&15,x=x>>0&240|x>>28&15;B[b++]=E,B[b++]=x}}function Ft(l,c,v,B,b){for(v=c+v;c<v;){var E=(x=l[c++])>>16&248|x>>13&7,x=x>>5&224|x>>3&31;B[b++]=E,B[b++]=x}}function we(l,c,v,B,b){for(v=c+v;c<v;){var E=l[c++];B[b++]=E>>0&255,B[b++]=E>>8&255,B[b++]=E>>16&255}}function ge(l,c,v,B,b,E){if(E==0)for(v=c+v;c<v;)EA(B,((E=l[c++])[0]>>24|E[1]>>8&65280|E[2]<<8&16711680|E[3]<<24)>>>0),b+=32;else t(B,b,l,c,v)}function lt(l,c){_[c][0]=_[l+"0"],_[c][1]=_[l+"1"],_[c][2]=_[l+"2"],_[c][3]=_[l+"3"],_[c][4]=_[l+"4"],_[c][5]=_[l+"5"],_[c][6]=_[l+"6"],_[c][7]=_[l+"7"],_[c][8]=_[l+"8"],_[c][9]=_[l+"9"],_[c][10]=_[l+"10"],_[c][11]=_[l+"11"],_[c][12]=_[l+"12"],_[c][13]=_[l+"13"],_[c][14]=_[l+"0"],_[c][15]=_[l+"0"]}function pe(l){return l==lp||l==up||l==Lc||l==cp}function zt(){this.eb=[],this.size=this.A=this.fb=0}function Ie(){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 qe(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new zt,this.f.kb=new Ie,this.sd=null}function De(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function $e(){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 GA(l){return alert("todo:WebPSamplerProcessPlane"),l.T}function ve(l,c){var v=l.T,B=c.ba.f.RGBA,b=B.eb,E=B.fb+l.ka*B.A,x=Kr[c.ba.S],I=l.y,N=l.O,H=l.f,X=l.N,lA=l.ea,uA=l.W,eA=c.cc,wA=c.dc,gA=c.Mc,Y=c.Nc,Z=l.ka,vA=l.ka+l.T,mA=l.U,BA=mA+1>>1;for(Z==0?x(I,N,null,null,H,X,lA,uA,H,X,lA,uA,b,E,null,null,mA):(x(c.ec,c.fc,I,N,eA,wA,gA,Y,H,X,lA,uA,b,E-B.A,b,E,mA),++v);Z+2<vA;Z+=2)eA=H,wA=X,gA=lA,Y=uA,X+=l.Rc,uA+=l.Rc,E+=2*B.A,x(I,(N+=2*l.fa)-l.fa,I,N,eA,wA,gA,Y,H,X,lA,uA,b,E-B.A,b,E,mA);return N+=l.fa,l.j+vA<l.o?(t(c.ec,c.fc,I,N,mA),t(c.cc,c.dc,H,X,BA),t(c.Mc,c.Nc,lA,uA,BA),v--):1&vA||x(I,N,null,null,H,X,lA,uA,H,X,lA,uA,b,E+B.A,null,null,mA),v}function Rn(l,c,v){var B=l.F,b=[l.J];if(B!=null){var E=l.U,x=c.ba.S,I=x==Sc||x==Lc;c=c.ba.f.RGBA;var N=[0],H=l.ka;N[0]=l.T,l.Kb&&(H==0?--N[0]:(--H,b[0]-=l.width),l.j+l.ka+l.T==l.o&&(N[0]=l.o-l.j-H));var X=c.eb;H=c.fb+H*c.A,l=Me(B,b[0],l.width,E,N,X,H+(I?0:3),c.A),A(v==N),l&&pe(x)&&Mr(X,H,I,E,N,c.A)}return 0}function Bt(l){var c=l.ma,v=c.ba.S,B=11>v,b=v==xc||v==Ic||v==Sc||v==op||v==12||pe(v);if(c.memory=null,c.Ib=null,c.Jb=null,c.Nd=null,!Do(c.Oa,l,b?11:12))return 0;if(b&&pe(v)&&CA(),l.da)alert("todo:use_scaling");else{if(B){if(c.Ib=GA,l.Kb){if(v=l.U+1>>1,c.memory=i(l.U+2*v),c.memory==null)return 0;c.ec=c.memory,c.fc=0,c.cc=c.ec,c.dc=c.fc+l.U,c.Mc=c.cc,c.Nc=c.dc+v,c.Ib=ve,CA()}}else alert("todo:EmitYUV");b&&(c.Jb=Rn,B&&nA())}if(B&&!mm){for(l=0;256>l;++l)l_[l]=89858*(l-128)+Tc>>Nc,f_[l]=-22014*(l-128)+Tc,c_[l]=-45773*(l-128),u_[l]=113618*(l-128)+Tc>>Nc;for(l=qo;l<dp;++l)c=76283*(l-16)+Tc>>Nc,h_[l-qo]=Qr(c,255),d_[l-qo]=Qr(c+8>>4,15);mm=1}return 1}function fr(l){var c=l.ma,v=l.U,B=l.T;return A(!(1&l.ka)),0>=v||0>=B?0:(v=c.Ib(l,c),c.Jb!=null&&c.Jb(l,c,v),c.Dc+=v,1)}function yr(l){l.ma.memory=null}function YA(l,c,v,B){return cA(l,8)!=47?0:(c[0]=cA(l,14)+1,v[0]=cA(l,14)+1,B[0]=cA(l,1),cA(l,3)!=0?0:!l.h)}function br(l,c){if(4>l)return l+1;var v=l-2>>1;return(2+(1&l)<<v)+cA(c,v)+1}function tr(l,c){return 120<c?c-120:1<=(v=((v=zH[c-1])>>4)*l+(8-(15&v)))?v:1;var v}function xt(l,c,v){var B=O(v),b=l[c+=255&B].g-8;return 0<b&&(V(v,v.u+8),B=O(v),c+=l[c].value,c+=B&(1<<b)-1),V(v,v.u+l[c].g),l[c].value}function ut(l,c,v){return v.g+=l.g,v.value+=l.value<<c>>>0,A(8>=v.g),l.g}function Ce(l,c,v){var B=l.xc;return A((c=B==0?0:l.vc[l.md*(v>>B)+(c>>B)])<l.Wb),l.Ya[c]}function It(l,c,v,B){var b=l.ab,E=l.c*c,x=l.C;c=x+c;var I=v,N=B;for(B=l.Ta,v=l.Ua;0<b--;){var H=l.gc[b],X=x,lA=c,uA=I,eA=N,wA=(N=B,I=v,H.Ea);switch(A(X<lA),A(lA<=H.nc),H.hc){case 2:yc(uA,eA,(lA-X)*wA,N,I);break;case 0:var gA=X,Y=lA,Z=N,vA=I,mA=(_A=H).Ea;gA==0&&(ap(uA,eA,null,null,1,Z,vA),re(uA,eA+1,0,0,mA-1,Z,vA+1),eA+=mA,vA+=mA,++gA);for(var BA=1<<_A.b,RA=BA-1,HA=kA(mA,_A.b),JA=_A.K,_A=_A.w+(gA>>_A.b)*HA;gA<Y;){var Ue=JA,Se=_A,Fe=1;for(ko(uA,eA,Z,vA-mA,1,Z,vA);Fe<mA;){var me=(Fe&~RA)+BA;me>mA&&(me=mA),(0,yi[Ue[Se++]>>8&15])(uA,eA+ +Fe,Z,vA+Fe-mA,me-Fe,Z,vA+Fe),Fe=me}eA+=mA,vA+=mA,++gA&RA||(_A+=HA)}lA!=H.nc&&t(N,I-wA,N,I+(lA-X-1)*wA,wA);break;case 1:for(wA=uA,Y=eA,mA=(uA=H.Ea)-(vA=uA&~(Z=(eA=1<<H.b)-1)),gA=kA(uA,H.b),BA=H.K,H=H.w+(X>>H.b)*gA;X<lA;){for(RA=BA,HA=H,JA=new SA,_A=Y+vA,Ue=Y+uA;Y<_A;)he(RA[HA++],JA),ua(JA,wA,Y,eA,N,I),Y+=eA,I+=eA;Y<Ue&&(he(RA[HA++],JA),ua(JA,wA,Y,mA,N,I),Y+=mA,I+=mA),++X&Z||(H+=gA)}break;case 3:if(uA==N&&eA==I&&0<H.b){for(Y=N,uA=wA=I+(lA-X)*wA-(vA=(lA-X)*kA(H.Ea,H.b)),eA=N,Z=I,gA=[],vA=(mA=vA)-1;0<=vA;--vA)gA[vA]=eA[Z+vA];for(vA=mA-1;0<=vA;--vA)Y[uA+vA]=gA[vA];Pr(H,X,lA,N,wA,N,I)}else Pr(H,X,lA,uA,eA,N,I)}I=B,N=v}N!=v&&t(B,v,I,N,E)}function Mn(l,c){var v=l.V,B=l.Ba+l.c*l.C,b=c-l.C;if(A(c<=l.l.o),A(16>=b),0<b){var E=l.l,x=l.Ta,I=l.Ua,N=E.width;if(It(l,b,v,B),b=I=[I],A((v=l.C)<(B=c)),A(E.v<E.va),B>E.o&&(B=E.o),v<E.j){var H=E.j-v;v=E.j,b[0]+=H*N}if(v>=B?v=0:(b[0]+=4*E.v,E.ka=v-E.j,E.U=E.va-E.v,E.T=B-v,v=1),v){if(I=I[0],11>(v=l.ca).S){var X=v.f.RGBA,lA=(B=v.S,b=E.U,E=E.T,H=X.eb,X.A),uA=E;for(X=X.fb+l.Ma*X.A;0<uA--;){var eA=x,wA=I,gA=b,Y=H,Z=X;switch(B){case Ec:gr(eA,wA,gA,Y,Z);break;case xc:ir(eA,wA,gA,Y,Z);break;case lp:ir(eA,wA,gA,Y,Z),Mr(Y,Z,0,gA,1,0);break;case cm:Vn(eA,wA,gA,Y,Z);break;case Ic:ge(eA,wA,gA,Y,Z,1);break;case up:ge(eA,wA,gA,Y,Z,1),Mr(Y,Z,0,gA,1,0);break;case Sc:ge(eA,wA,gA,Y,Z,0);break;case Lc:ge(eA,wA,gA,Y,Z,0),Mr(Y,Z,1,gA,1,0);break;case op:bi(eA,wA,gA,Y,Z);break;case cp:bi(eA,wA,gA,Y,Z),Re(Y,Z,gA,1,0);break;case fm:jn(eA,wA,gA,Y,Z);break;default:A(0)}I+=N,X+=lA}l.Ma+=E}else alert("todo:EmitRescaledRowsYUVA");A(l.Ma<=v.height)}}l.C=c,A(l.C<=l.i)}function _r(l){var c;if(0<l.ua)return 0;for(c=0;c<l.Wb;++c){var v=l.Ya[c].G,B=l.Ya[c].H;if(0<v[1][B[1]+0].g||0<v[2][B[2]+0].g||0<v[3][B[3]+0].g)return 0}return 1}function rr(l,c,v,B,b,E){if(l.Z!=0){var x=l.qd,I=l.rd;for(A(Ui[l.Z]!=null);c<v;++c)Ui[l.Z](x,I,B,b,B,b,E),x=B,I=b,b+=E;l.qd=x,l.rd=I}}function Dt(l,c){var v=l.l.ma,B=v.Z==0||v.Z==1?l.l.j:l.C;if(B=l.C<B?B:l.C,A(c<=l.l.o),c>B){var b=l.l.width,E=v.ca,x=v.tb+b*B,I=l.V,N=l.Ba+l.c*B,H=l.gc;A(l.ab==1),A(H[0].hc==3),bc(H[0],B,c,I,N,E,x),rr(v,B,c,E,x,b)}l.C=l.Ma=c}function ct(l,c,v,B,b,E,x){var I=l.$/B,N=l.$%B,H=l.m,X=l.s,lA=v+l.$,uA=lA;b=v+B*b;var eA=v+B*E,wA=280+X.ua,gA=l.Pb?I:16777216,Y=0<X.ua?X.Wa:null,Z=X.wc,vA=lA<eA?Ce(X,N,I):null;A(l.C<E),A(eA<=b);var mA=!1;A:for(;;){for(;mA||lA<eA;){var BA=0;if(I>=gA){var RA=lA-v;A((gA=l).Pb),gA.wd=gA.m,gA.xd=RA,0<gA.s.ua&&dA(gA.s.Wa,gA.s.vb),gA=I+YH}if(N&Z||(vA=Ce(X,N,I)),A(vA!=null),vA.Qb&&(c[lA]=vA.qb,mA=!0),!mA)if(J(H),vA.jc){BA=H,RA=c;var HA=lA,JA=vA.pd[O(BA)&Rt-1];A(vA.jc),256>JA.g?(V(BA,BA.u+JA.g),RA[HA]=JA.value,BA=0):(V(BA,BA.u+JA.g-256),A(256<=JA.value),BA=JA.value),BA==0&&(mA=!0)}else BA=xt(vA.G[0],vA.H[0],H);if(H.h)break;if(mA||256>BA){if(!mA)if(vA.nd)c[lA]=(vA.qb|BA<<8)>>>0;else{if(J(H),mA=xt(vA.G[1],vA.H[1],H),J(H),RA=xt(vA.G[2],vA.H[2],H),HA=xt(vA.G[3],vA.H[3],H),H.h)break;c[lA]=(HA<<24|mA<<16|BA<<8|RA)>>>0}if(mA=!1,++lA,++N>=B&&(N=0,++I,x!=null&&I<=E&&!(I%16)&&x(l,I),Y!=null))for(;uA<lA;)BA=c[uA++],Y.X[(506832829*BA&4294967295)>>>Y.Mb]=BA}else if(280>BA){if(BA=br(BA-256,H),RA=xt(vA.G[4],vA.H[4],H),J(H),RA=tr(B,RA=br(RA,H)),H.h)break;if(lA-v<RA||b-lA<BA)break A;for(HA=0;HA<BA;++HA)c[lA+HA]=c[lA+HA-RA];for(lA+=BA,N+=BA;N>=B;)N-=B,++I,x!=null&&I<=E&&!(I%16)&&x(l,I);if(A(lA<=b),N&Z&&(vA=Ce(X,N,I)),Y!=null)for(;uA<lA;)BA=c[uA++],Y.X[(506832829*BA&4294967295)>>>Y.Mb]=BA}else{if(!(BA<wA))break A;for(mA=BA-280,A(Y!=null);uA<lA;)BA=c[uA++],Y.X[(506832829*BA&4294967295)>>>Y.Mb]=BA;BA=lA,A(!(mA>>>(RA=Y).Xa)),c[BA]=RA.X[mA],mA=!0}mA||A(H.h==R(H))}if(l.Pb&&H.h&&lA<b)A(l.m.h),l.a=5,l.m=l.wd,l.$=l.xd,0<l.s.ua&&dA(l.s.vb,l.s.Wa);else{if(H.h)break A;x!=null&&x(l,I>E?E:I),l.a=0,l.$=lA-v}return 1}return l.a=3,0}function Cr(l){A(l!=null),l.vc=null,l.yc=null,l.Ya=null;var c=l.Wa;c!=null&&(c.X=null),l.vb=null,A(l!=null)}function nr(){var l=new ip;return l==null?null:(l.a=0,l.xb=gm,lt("Predictor","VP8LPredictors"),lt("Predictor","VP8LPredictors_C"),lt("PredictorAdd","VP8LPredictorsAdd"),lt("PredictorAdd","VP8LPredictorsAdd_C"),yc=se,ua=zA,gr=TA,ir=Ke,bi=de,jn=Ft,Vn=we,_.VP8LMapColor32b=cs,_.VP8LMapColor8b=Cc,l)}function Fr(l,c,v,B,b){var E=1,x=[l],I=[c],N=B.m,H=B.s,X=null,lA=0;A:for(;;){if(v)for(;E&&cA(N,1);){var uA=x,eA=I,wA=B,gA=1,Y=wA.m,Z=wA.gc[wA.ab],vA=cA(Y,2);if(wA.Oc&1<<vA)E=0;else{switch(wA.Oc|=1<<vA,Z.hc=vA,Z.Ea=uA[0],Z.nc=eA[0],Z.K=[null],++wA.ab,A(4>=wA.ab),vA){case 0:case 1:Z.b=cA(Y,3)+2,gA=Fr(kA(Z.Ea,Z.b),kA(Z.nc,Z.b),0,wA,Z.K),Z.K=Z.K[0];break;case 3:var mA,BA=cA(Y,8)+1,RA=16<BA?0:4<BA?1:2<BA?2:3;if(uA[0]=kA(Z.Ea,RA),Z.b=RA,mA=gA=Fr(BA,1,0,wA,Z.K)){var HA,JA=BA,_A=Z,Ue=1<<(8>>_A.b),Se=i(Ue);if(Se==null)mA=0;else{var Fe=_A.K[0],me=_A.w;for(Se[0]=_A.K[0][0],HA=1;HA<1*JA;++HA)Se[HA]=yA(Fe[me+HA],Se[HA-1]);for(;HA<4*Ue;++HA)Se[HA]=0;_A.K[0]=null,_A.K[0]=Se,mA=1}}gA=mA;break;case 2:break;default:A(0)}E=gA}}if(x=x[0],I=I[0],E&&cA(N,1)&&!(E=1<=(lA=cA(N,4))&&11>=lA)){B.a=3;break A}var He;if(He=E)e:{var Te,ce,mt,pr=B,yt=x,vr=I,Le=lA,Er=v,xr=pr.m,Nt=pr.s,Mt=[null],sr=1,jr=0,Qn=XH[Le];t:for(;;){if(Er&&cA(xr,1)){var Tt=cA(xr,3)+2,Wn=kA(yt,Tt),ga=kA(vr,Tt),ps=Wn*ga;if(!Fr(Wn,ga,0,pr,Mt))break t;for(Mt=Mt[0],Nt.xc=Tt,Te=0;Te<ps;++Te){var Ei=Mt[Te]>>8&65535;Mt[Te]=Ei,Ei>=sr&&(sr=Ei+1)}}if(xr.h)break t;for(ce=0;5>ce;++ce){var tt=hm[ce];!ce&&0<Le&&(tt+=1<<Le),jr<tt&&(jr=tt)}var gp=a(sr*Qn,L),Cm=sr,Fm=a(Cm,M);if(Fm==null)var Hc=null;else A(65536>=Cm),Hc=Fm;var Wo=i(jr);if(Hc==null||Wo==null||gp==null){pr.a=1;break t}var _c=gp;for(Te=mt=0;Te<sr;++Te){var cn=Hc[Te],vs=cn.G,Bs=cn.H,Qm=0,Pc=1,Um=0;for(ce=0;5>ce;++ce){tt=hm[ce],vs[ce]=_c,Bs[ce]=mt,!ce&&0<Le&&(tt+=1<<Le);n:{var Dc,pp=tt,Rc=pr,zo=Wo,v_=_c,B_=mt,vp=0,xi=Rc.m,w_=cA(xi,1);if(n(zo,0,0,pp),w_){var m_=cA(xi,1)+1,y_=cA(xi,1),Em=cA(xi,y_==0?1:8);zo[Em]=1,m_==2&&(zo[Em=cA(xi,8)]=1);var Mc=1}else{var xm=i(19),Im=cA(xi,4)+4;if(19<Im){Rc.a=3;var kc=0;break n}for(Dc=0;Dc<Im;++Dc)xm[WH[Dc]]=cA(xi,3);var Bp=void 0,Xo=void 0,Sm=Rc,b_=xm,Kc=pp,Lm=zo,wp=0,Ii=Sm.m,Nm=8,Tm=a(128,L);r:for(;S(Tm,0,7,b_,19);){if(cA(Ii,1)){var C_=2+2*cA(Ii,3);if((Bp=2+cA(Ii,C_))>Kc)break r}else Bp=Kc;for(Xo=0;Xo<Kc&&Bp--;){J(Ii);var Om=Tm[0+(127&O(Ii))];V(Ii,Ii.u+Om.g);var ws=Om.value;if(16>ws)Lm[Xo++]=ws,ws!=0&&(Nm=ws);else{var F_=ws==16,Hm=ws-16,Q_=$H[Hm],_m=cA(Ii,GH[Hm])+Q_;if(Xo+_m>Kc)break r;for(var U_=F_?Nm:0;0<_m--;)Lm[Xo++]=U_}}wp=1;break r}wp||(Sm.a=3),Mc=wp}(Mc=Mc&&!xi.h)&&(vp=S(v_,B_,8,zo,pp)),Mc&&vp!=0?kc=vp:(Rc.a=3,kc=0)}if(kc==0)break t;if(Pc&&qH[ce]==1&&(Pc=_c[mt].g==0),Qm+=_c[mt].g,mt+=kc,3>=ce){var Yo,mp=Wo[0];for(Yo=1;Yo<tt;++Yo)Wo[Yo]>mp&&(mp=Wo[Yo]);Um+=mp}}if(cn.nd=Pc,cn.Qb=0,Pc&&(cn.qb=(vs[3][Bs[3]+0].value<<24|vs[1][Bs[1]+0].value<<16|vs[2][Bs[2]+0].value)>>>0,Qm==0&&256>vs[0][Bs[0]+0].value&&(cn.Qb=1,cn.qb+=vs[0][Bs[0]+0].value<<8)),cn.jc=!cn.Qb&&6>Um,cn.jc){var jc,zn=cn;for(jc=0;jc<Rt;++jc){var Si=jc,Li=zn.pd[Si],Vc=zn.G[0][zn.H[0]+Si];256<=Vc.value?(Li.g=Vc.g+256,Li.value=Vc.value):(Li.g=0,Li.value=0,Si>>=ut(Vc,8,Li),Si>>=ut(zn.G[1][zn.H[1]+Si],16,Li),Si>>=ut(zn.G[2][zn.H[2]+Si],0,Li),ut(zn.G[3][zn.H[3]+Si],24,Li))}}}Nt.vc=Mt,Nt.Wb=sr,Nt.Ya=Hc,Nt.yc=gp,He=1;break e}He=0}if(!(E=He)){B.a=3;break A}if(0<lA){if(H.ua=1<<lA,!VA(H.Wa,lA)){B.a=1,E=0;break A}}else H.ua=0;var yp=B,Pm=x,E_=I,bp=yp.s,Cp=bp.xc;if(yp.c=Pm,yp.i=E_,bp.md=kA(Pm,Cp),bp.wc=Cp==0?-1:(1<<Cp)-1,v){B.xb=n_;break A}if((X=i(x*I))==null){B.a=1,E=0;break A}E=(E=ct(B,X,0,x,I,I,null))&&!N.h;break A}return E?(b!=null?b[0]=X:(A(X==null),A(v)),B.$=0,v||Cr(H)):Cr(H),E}function yn(l,c){var v=l.c*l.i,B=v+c+16*c;return A(l.c<=c),l.V=i(B),l.V==null?(l.Ta=null,l.Ua=0,l.a=1,0):(l.Ta=l.V,l.Ua=l.Ba+v+c,1)}function vi(l,c){var v=l.C,B=c-v,b=l.V,E=l.Ba+l.c*v;for(A(c<=l.l.o);0<B;){var x=16<B?16:B,I=l.l.ma,N=l.l.width,H=N*x,X=I.ca,lA=I.tb+N*v,uA=l.Ta,eA=l.Ua;It(l,x,b,E),dt(uA,eA,X,lA,H),rr(I,v,v+x,X,lA,N),B-=x,b+=x*l.c,v+=x}A(v==c),l.C=l.Ma=c}function $A(){this.ub=this.yd=this.td=this.Rb=0}function z(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function UA(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function OA(){this.Yb=function(){var l=[];return function c(v,B,b){for(var E=b[B],x=0;x<E&&(v.push(b.length>B+1?[]:0),!(b.length<B+1));x++)c(v[x],B+1,b)}(l,0,[3,11]),l}()}function ye(){this.jb=i(3),this.Wc=s([4,8],OA),this.Xc=s([4,17],OA)}function St(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function We(){this.ld=this.La=this.dd=this.tc=0}function At(){this.Na=this.la=0}function an(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function je(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function na(){this.uc=this.M=this.Nb=0,this.wa=Array(new We),this.Y=0,this.ya=Array(new je),this.aa=0,this.l=new Ya}function ia(){this.y=i(16),this.f=i(8),this.ea=i(8)}function rc(){this.cb=this.a=0,this.sc="",this.m=new QA,this.Od=new $A,this.Kc=new z,this.ed=new St,this.Qa=new UA,this.Ic=this.$c=this.Aa=0,this.D=new na,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,QA),this.ia=0,this.pb=a(4,an),this.Pa=new ye,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ia),this.Hd=0,this.rb=Array(new At),this.sb=0,this.wa=Array(new We),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 je),this.L=this.aa=0,this.gd=s([4,2],We),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 Ya(){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 kg(){var l=new rc;return l!=null&&(l.a=0,l.sc="OK",l.cb=0,l.Xb=0,$o||($o=ac)),l}function ft(l,c,v){return l.a==0&&(l.a=c,l.sc=v,l.cb=0),0}function nc(l,c,v){return 3<=v&&l[c+0]==157&&l[c+1]==1&&l[c+2]==42}function ic(l,c){if(l==null)return 0;if(l.a=0,l.sc="OK",c==null)return ft(l,2,"null VP8Io passed to VP8GetHeaders()");var v=c.data,B=c.w,b=c.ha;if(4>b)return ft(l,7,"Truncated header.");var E=v[B+0]|v[B+1]<<8|v[B+2]<<16,x=l.Od;if(x.Rb=!(1&E),x.td=E>>1&7,x.yd=E>>4&1,x.ub=E>>5,3<x.td)return ft(l,3,"Incorrect keyframe parameters.");if(!x.yd)return ft(l,4,"Frame not displayable.");B+=3,b-=3;var I=l.Kc;if(x.Rb){if(7>b)return ft(l,7,"cannot parse picture header");if(!nc(v,B,b))return ft(l,3,"Bad code word");I.c=16383&(v[B+4]<<8|v[B+3]),I.Td=v[B+4]>>6,I.i=16383&(v[B+6]<<8|v[B+5]),I.Ud=v[B+6]>>6,B+=7,b-=7,l.za=I.c+15>>4,l.Ub=I.i+15>>4,c.width=I.c,c.height=I.i,c.Da=0,c.j=0,c.v=0,c.va=c.width,c.o=c.height,c.da=0,c.ib=c.width,c.hb=c.height,c.U=c.width,c.T=c.height,n((E=l.Pa).jb,0,255,E.jb.length),A((E=l.Qa)!=null),E.Cb=0,E.Bb=0,E.Fb=1,n(E.Zb,0,0,E.Zb.length),n(E.Lb,0,0,E.Lb)}if(x.ub>b)return ft(l,7,"bad partition length");sA(E=l.m,v,B,x.ub),B+=x.ub,b-=x.ub,x.Rb&&(I.Ld=fA(E),I.Kd=fA(E)),I=l.Qa;var N,H=l.Pa;if(A(E!=null),A(I!=null),I.Cb=fA(E),I.Cb){if(I.Bb=fA(E),fA(E)){for(I.Fb=fA(E),N=0;4>N;++N)I.Zb[N]=fA(E)?oA(E,7):0;for(N=0;4>N;++N)I.Lb[N]=fA(E)?oA(E,6):0}if(I.Bb)for(N=0;3>N;++N)H.jb[N]=fA(E)?rA(E,8):255}else I.Bb=0;if(E.Ka)return ft(l,3,"cannot parse segment header");if((I=l.ed).zd=fA(E),I.Tb=rA(E,6),I.wb=rA(E,3),I.Pc=fA(E),I.Pc&&fA(E)){for(H=0;4>H;++H)fA(E)&&(I.vd[H]=oA(E,6));for(H=0;4>H;++H)fA(E)&&(I.od[H]=oA(E,6))}if(l.L=I.Tb==0?0:I.zd?1:2,E.Ka)return ft(l,3,"cannot parse filter header");var X=b;if(b=N=B,B=N+X,I=X,l.Xb=(1<<rA(l.m,2))-1,X<3*(H=l.Xb))v=7;else{for(N+=3*H,I-=3*H,X=0;X<H;++X){var lA=v[b+0]|v[b+1]<<8|v[b+2]<<16;lA>I&&(lA=I),sA(l.Jc[+X],v,N,lA),N+=lA,I-=lA,b+=3}sA(l.Jc[+H],v,N,I),v=N<B?0:5}if(v!=0)return ft(l,v,"cannot parse partitions");for(v=rA(N=l.m,7),b=fA(N)?oA(N,4):0,B=fA(N)?oA(N,4):0,I=fA(N)?oA(N,4):0,H=fA(N)?oA(N,4):0,N=fA(N)?oA(N,4):0,X=l.Qa,lA=0;4>lA;++lA){if(X.Cb){var uA=X.Zb[lA];X.Fb||(uA+=v)}else{if(0<lA){l.pb[lA]=l.pb[0];continue}uA=v}var eA=l.pb[lA];eA.Sc[0]=fp[Qr(uA+b,127)],eA.Sc[1]=hp[Qr(uA+0,127)],eA.Eb[0]=2*fp[Qr(uA+B,127)],eA.Eb[1]=101581*hp[Qr(uA+I,127)]>>16,8>eA.Eb[1]&&(eA.Eb[1]=8),eA.Qc[0]=fp[Qr(uA+H,117)],eA.Qc[1]=hp[Qr(uA+N,127)],eA.lc=uA+N}if(!x.Rb)return ft(l,4,"Not a key frame.");for(fA(E),x=l.Pa,v=0;4>v;++v){for(b=0;8>b;++b)for(B=0;3>B;++B)for(I=0;11>I;++I)H=hA(E,t_[v][b][B][I])?rA(E,8):A_[v][b][B][I],x.Wc[v][b].Yb[B][I]=H;for(b=0;17>b;++b)x.Xc[v][b]=x.Wc[v][r_[b]]}return l.kc=fA(E),l.kc&&(l.Bd=rA(E,8)),l.cb=1}function ac(l,c,v,B,b,E,x){var I=c[b].Yb[v];for(v=0;16>b;++b){if(!hA(l,I[v+0]))return b;for(;!hA(l,I[v+1]);)if(I=c[++b].Yb[0],v=0,b==16)return 16;var N=c[b+1].Yb;if(hA(l,I[v+2])){var H=l,X=0;if(hA(H,(uA=I)[(lA=v)+3]))if(hA(H,uA[lA+6])){for(I=0,lA=2*(X=hA(H,uA[lA+8]))+(uA=hA(H,uA[lA+9+X])),X=0,uA=JH[lA];uA[I];++I)X+=X+hA(H,uA[I]);X+=3+(8<<lA)}else hA(H,uA[lA+7])?(X=7+2*hA(H,165),X+=hA(H,145)):X=5+hA(H,159);else X=hA(H,uA[lA+4])?3+hA(H,uA[lA+5]):2;I=N[2]}else X=1,I=N[1];N=x+ZH[b],0>(H=l).b&&AA(H);var lA,uA=H.b,eA=(lA=H.Ca>>1)-(H.I>>uA)>>31;--H.b,H.Ca+=eA,H.Ca|=1,H.I-=(lA+1&eA)<<uA,E[N]=((X^eA)-eA)*B[(0<b)+0]}return 16}function Co(l){var c=l.rb[l.sb-1];c.la=0,c.Na=0,n(l.zc,0,0,l.zc.length),l.ja=0}function Kg(l,c){if(l==null)return 0;if(c==null)return ft(l,2,"NULL VP8Io parameter in VP8Decode().");if(!l.cb&&!ic(l,c))return 0;if(A(l.cb),c.ac==null||c.ac(c)){c.ob&&(l.L=0);var v=Oc[l.L];if(l.L==2?(l.yb=0,l.zb=0):(l.yb=c.v-v>>4,l.zb=c.j-v>>4,0>l.yb&&(l.yb=0),0>l.zb&&(l.zb=0)),l.Va=c.o+15+v>>4,l.Hb=c.va+15+v>>4,l.Hb>l.za&&(l.Hb=l.za),l.Va>l.Ub&&(l.Va=l.Ub),0<l.L){var B=l.ed;for(v=0;4>v;++v){var b;if(l.Qa.Cb){var E=l.Qa.Lb[v];l.Qa.Fb||(E+=B.Tb)}else E=B.Tb;for(b=0;1>=b;++b){var x=l.gd[v][b],I=E;if(B.Pc&&(I+=B.vd[0],b&&(I+=B.od[0])),0<(I=0>I?0:63<I?63:I)){var N=I;0<B.wb&&(N=4<B.wb?N>>2:N>>1)>9-B.wb&&(N=9-B.wb),1>N&&(N=1),x.dd=N,x.tc=2*I+N,x.ld=40<=I?2:15<=I?1:0}else x.tc=0;x.La=b}}}v=0}else ft(l,6,"Frame setup failed"),v=l.a;if(v=v==0){if(v){l.$c=0,0<l.Aa||(l.Ic=p_);A:{v=l.Ic,B=4*(N=l.za);var H=32*N,X=N+1,lA=0<l.L?N*(0<l.Aa?2:1):0,uA=(l.Aa==2?2:1)*N;if((x=B+832+(b=3*(16*v+Oc[l.L])/2*H)+(E=l.Fa!=null&&0<l.Fa.length?l.Kc.c*l.Kc.i:0))!=x)v=0;else{if(x>l.Vb){if(l.Vb=0,l.Ec=i(x),l.Fc=0,l.Ec==null){v=ft(l,1,"no memory during frame initialization.");break A}l.Vb=x}x=l.Ec,I=l.Fc,l.Ac=x,l.Bc=I,I+=B,l.Gd=a(H,ia),l.Hd=0,l.rb=a(X+1,At),l.sb=1,l.wa=lA?a(lA,We):null,l.Y=0,l.D.Nb=0,l.D.wa=l.wa,l.D.Y=l.Y,0<l.Aa&&(l.D.Y+=N),A(!0),l.oc=x,l.pc=I,I+=832,l.ya=a(uA,je),l.aa=0,l.D.ya=l.ya,l.D.aa=l.aa,l.Aa==2&&(l.D.aa+=N),l.R=16*N,l.B=8*N,N=(H=Oc[l.L])*l.R,H=H/2*l.B,l.sa=x,l.ta=I+N,l.qa=l.sa,l.ra=l.ta+16*v*l.R+H,l.Ha=l.qa,l.Ia=l.ra+8*v*l.B+H,l.$c=0,I+=b,l.mb=E?x:null,l.nb=E?I:null,A(I+E<=l.Fc+l.Vb),Co(l),n(l.Ac,l.Bc,0,B),v=1}}if(v){if(c.ka=0,c.y=l.sa,c.O=l.ta,c.f=l.qa,c.N=l.ra,c.ea=l.Ha,c.Vd=l.Ia,c.fa=l.R,c.Rc=l.B,c.F=null,c.J=0,!Qc){for(v=-255;255>=v;++v)Qt[255+v]=0>v?-v:v;for(v=-1020;1020>=v;++v)$n[1020+v]=-128>v?-128:127<v?127:v;for(v=-112;112>=v;++v)Go[112+v]=-16>v?-16:15<v?15:v;for(v=-255;510>=v;++v)gs[255+v]=0>v?0:255<v?255:v;Qc=1}fs=Gg,Gn=jg,Ko=oc,ar=Vg,Dr=lc,ht=sc,hs=Io,Fc=oa,jo=np,ca=So,fa=rp,Ci=rs,ha=Lo,ds=Bc,da=vc,Fi=Cn,Vo=Kn,Rr=tp,un[0]=bn,un[1]=$g,un[2]=Xg,un[3]=Yg,un[4]=fc,un[5]=es,un[6]=hc,un[7]=Uo,un[8]=Zg,un[9]=Jg,Qi[0]=uc,Qi[1]=Wg,Qi[2]=kn,Qi[3]=Za,Qi[4]=Xt,Qi[5]=zg,Qi[6]=cc,qn[0]=Bi,qn[1]=qg,qn[2]=Ap,qn[3]=Eo,qn[4]=sa,qn[5]=ep,qn[6]=xo,v=1}else v=0}v&&(v=function(eA,wA){for(eA.M=0;eA.M<eA.Va;++eA.M){var gA,Y=eA.Jc[eA.M&eA.Xb],Z=eA.m,vA=eA;for(gA=0;gA<vA.za;++gA){var mA=Z,BA=vA,RA=BA.Ac,HA=BA.Bc+4*gA,JA=BA.zc,_A=BA.ya[BA.aa+gA];if(BA.Qa.Bb?_A.$b=hA(mA,BA.Pa.jb[0])?2+hA(mA,BA.Pa.jb[2]):hA(mA,BA.Pa.jb[1]):_A.$b=0,BA.kc&&(_A.Ad=hA(mA,BA.Bd)),_A.Za=!hA(mA,145)+0,_A.Za){var Ue=_A.Ob,Se=0;for(BA=0;4>BA;++BA){var Fe,me=JA[0+BA];for(Fe=0;4>Fe;++Fe){me=e_[RA[HA+Fe]][me];for(var He=dm[hA(mA,me[0])];0<He;)He=dm[2*He+hA(mA,me[He])];me=-He,RA[HA+Fe]=me}t(Ue,Se,RA,HA,4),Se+=4,JA[0+BA]=me}}else me=hA(mA,156)?hA(mA,128)?1:3:hA(mA,163)?2:0,_A.Ob[0]=me,n(RA,HA,me,4),n(JA,0,me,4);_A.Dd=hA(mA,142)?hA(mA,114)?hA(mA,183)?1:3:2:0}if(vA.m.Ka)return ft(eA,7,"Premature end-of-partition0 encountered.");for(;eA.ja<eA.za;++eA.ja){if(vA=Y,mA=(Z=eA).rb[Z.sb-1],RA=Z.rb[Z.sb+Z.ja],gA=Z.ya[Z.aa+Z.ja],HA=Z.kc?gA.Ad:0)mA.la=RA.la=0,gA.Za||(mA.Na=RA.Na=0),gA.Hc=0,gA.Gc=0,gA.ia=0;else{var Te,ce;if(mA=RA,RA=vA,HA=Z.Pa.Xc,JA=Z.ya[Z.aa+Z.ja],_A=Z.pb[JA.$b],BA=JA.ad,Ue=0,Se=Z.rb[Z.sb-1],me=Fe=0,n(BA,Ue,0,384),JA.Za)var mt=0,pr=HA[3];else{He=i(16);var yt=mA.Na+Se.Na;if(yt=$o(RA,HA[1],yt,_A.Eb,0,He,0),mA.Na=Se.Na=(0<yt)+0,1<yt)fs(He,0,BA,Ue);else{var vr=He[0]+3>>3;for(He=0;256>He;He+=16)BA[Ue+He]=vr}mt=1,pr=HA[0]}var Le=15&mA.la,Er=15&Se.la;for(He=0;4>He;++He){var xr=1&Er;for(vr=ce=0;4>vr;++vr)Le=Le>>1|(xr=(yt=$o(RA,pr,yt=xr+(1&Le),_A.Sc,mt,BA,Ue))>mt)<<7,ce=ce<<2|(3<yt?3:1<yt?2:BA[Ue+0]!=0),Ue+=16;Le>>=4,Er=Er>>1|xr<<7,Fe=(Fe<<8|ce)>>>0}for(pr=Le,mt=Er>>4,Te=0;4>Te;Te+=2){for(ce=0,Le=mA.la>>4+Te,Er=Se.la>>4+Te,He=0;2>He;++He){for(xr=1&Er,vr=0;2>vr;++vr)yt=xr+(1&Le),Le=Le>>1|(xr=0<(yt=$o(RA,HA[2],yt,_A.Qc,0,BA,Ue)))<<3,ce=ce<<2|(3<yt?3:1<yt?2:BA[Ue+0]!=0),Ue+=16;Le>>=2,Er=Er>>1|xr<<5}me|=ce<<4*Te,pr|=Le<<4<<Te,mt|=(240&Er)<<Te}mA.la=pr,Se.la=mt,JA.Hc=Fe,JA.Gc=me,JA.ia=43690&me?0:_A.ia,HA=!(Fe|me)}if(0<Z.L&&(Z.wa[Z.Y+Z.ja]=Z.gd[gA.$b][gA.Za],Z.wa[Z.Y+Z.ja].La|=!HA),vA.Ka)return ft(eA,7,"Premature end-of-file encountered.")}if(Co(eA),Z=wA,vA=1,gA=(Y=eA).D,mA=0<Y.L&&Y.M>=Y.zb&&Y.M<=Y.Va,Y.Aa==0)A:{if(gA.M=Y.M,gA.uc=mA,Po(Y,gA),vA=1,gA=(ce=Y.D).Nb,mA=(me=Oc[Y.L])*Y.R,RA=me/2*Y.B,He=16*gA*Y.R,vr=8*gA*Y.B,HA=Y.sa,JA=Y.ta-mA+He,_A=Y.qa,BA=Y.ra-RA+vr,Ue=Y.Ha,Se=Y.Ia-RA+vr,Er=(Le=ce.M)==0,Fe=Le>=Y.Va-1,Y.Aa==2&&Po(Y,ce),ce.uc)for(xr=(yt=Y).D.M,A(yt.D.uc),ce=yt.yb;ce<yt.Hb;++ce){mt=ce,pr=xr;var Nt=(Mt=(tt=yt).D).Nb;Te=tt.R;var Mt=Mt.wa[Mt.Y+mt],sr=tt.sa,jr=tt.ta+16*Nt*Te+16*mt,Qn=Mt.dd,Tt=Mt.tc;if(Tt!=0)if(A(3<=Tt),tt.L==1)0<mt&&Fi(sr,jr,Te,Tt+4),Mt.La&&Rr(sr,jr,Te,Tt),0<pr&&da(sr,jr,Te,Tt+4),Mt.La&&Vo(sr,jr,Te,Tt);else{var Wn=tt.B,ga=tt.qa,ps=tt.ra+8*Nt*Wn+8*mt,Ei=tt.Ha,tt=tt.Ia+8*Nt*Wn+8*mt;Nt=Mt.ld,0<mt&&(Fc(sr,jr,Te,Tt+4,Qn,Nt),ca(ga,ps,Ei,tt,Wn,Tt+4,Qn,Nt)),Mt.La&&(Ci(sr,jr,Te,Tt,Qn,Nt),ds(ga,ps,Ei,tt,Wn,Tt,Qn,Nt)),0<pr&&(hs(sr,jr,Te,Tt+4,Qn,Nt),jo(ga,ps,Ei,tt,Wn,Tt+4,Qn,Nt)),Mt.La&&(fa(sr,jr,Te,Tt,Qn,Nt),ha(ga,ps,Ei,tt,Wn,Tt,Qn,Nt))}}if(Y.ia&&alert("todo:DitherRow"),Z.put!=null){if(ce=16*Le,Le=16*(Le+1),Er?(Z.y=Y.sa,Z.O=Y.ta+He,Z.f=Y.qa,Z.N=Y.ra+vr,Z.ea=Y.Ha,Z.W=Y.Ia+vr):(ce-=me,Z.y=HA,Z.O=JA,Z.f=_A,Z.N=BA,Z.ea=Ue,Z.W=Se),Fe||(Le-=me),Le>Z.o&&(Le=Z.o),Z.F=null,Z.J=null,Y.Fa!=null&&0<Y.Fa.length&&ce<Le&&(Z.J=Ho(Y,Z,ce,Le-ce),Z.F=Y.mb,Z.F==null&&Z.F.length==0)){vA=ft(Y,3,"Could not decode alpha data.");break A}ce<Z.j&&(me=Z.j-ce,ce=Z.j,A(!(1&me)),Z.O+=Y.R*me,Z.N+=Y.B*(me>>1),Z.W+=Y.B*(me>>1),Z.F!=null&&(Z.J+=Z.width*me)),ce<Le&&(Z.O+=Z.v,Z.N+=Z.v>>1,Z.W+=Z.v>>1,Z.F!=null&&(Z.J+=Z.v),Z.ka=ce-Z.j,Z.U=Z.va-Z.v,Z.T=Le-ce,vA=Z.put(Z))}gA+1!=Y.Ic||Fe||(t(Y.sa,Y.ta-mA,HA,JA+16*Y.R,mA),t(Y.qa,Y.ra-RA,_A,BA+8*Y.B,RA),t(Y.Ha,Y.Ia-RA,Ue,Se+8*Y.B,RA))}if(!vA)return ft(eA,6,"Output aborted.")}return 1}(l,c)),c.bc!=null&&c.bc(c),v&=1}return v?(l.cb=0,v):0}function sn(l,c,v,B,b){b=l[c+v+32*B]+(b>>3),l[c+v+32*B]=-256&b?0>b?0:255:b}function Ja(l,c,v,B,b,E){sn(l,c,0,v,B+b),sn(l,c,1,v,B+E),sn(l,c,2,v,B-E),sn(l,c,3,v,B-b)}function hr(l){return(20091*l>>16)+l}function Fo(l,c,v,B){var b,E=0,x=i(16);for(b=0;4>b;++b){var I=l[c+0]+l[c+8],N=l[c+0]-l[c+8],H=(35468*l[c+4]>>16)-hr(l[c+12]),X=hr(l[c+4])+(35468*l[c+12]>>16);x[E+0]=I+X,x[E+1]=N+H,x[E+2]=N-H,x[E+3]=I-X,E+=4,c++}for(b=E=0;4>b;++b)I=(l=x[E+0]+4)+x[E+8],N=l-x[E+8],H=(35468*x[E+4]>>16)-hr(x[E+12]),sn(v,B,0,0,I+(X=hr(x[E+4])+(35468*x[E+12]>>16))),sn(v,B,1,0,N+H),sn(v,B,2,0,N-H),sn(v,B,3,0,I-X),E++,B+=32}function sc(l,c,v,B){var b=l[c+0]+4,E=35468*l[c+4]>>16,x=hr(l[c+4]),I=35468*l[c+1]>>16;Ja(v,B,0,b+x,l=hr(l[c+1]),I),Ja(v,B,1,b+E,l,I),Ja(v,B,2,b-E,l,I),Ja(v,B,3,b-x,l,I)}function jg(l,c,v,B,b){Fo(l,c,v,B),b&&Fo(l,c+16,v,B+4)}function oc(l,c,v,B){Gn(l,c+0,v,B,1),Gn(l,c+32,v,B+128,1)}function Vg(l,c,v,B){var b;for(l=l[c+0]+4,b=0;4>b;++b)for(c=0;4>c;++c)sn(v,B,c,b,l)}function lc(l,c,v,B){l[c+0]&&ar(l,c+0,v,B),l[c+16]&&ar(l,c+16,v,B+4),l[c+32]&&ar(l,c+32,v,B+128),l[c+48]&&ar(l,c+48,v,B+128+4)}function Gg(l,c,v,B){var b,E=i(16);for(b=0;4>b;++b){var x=l[c+0+b]+l[c+12+b],I=l[c+4+b]+l[c+8+b],N=l[c+4+b]-l[c+8+b],H=l[c+0+b]-l[c+12+b];E[0+b]=x+I,E[8+b]=x-I,E[4+b]=H+N,E[12+b]=H-N}for(b=0;4>b;++b)x=(l=E[0+4*b]+3)+E[3+4*b],I=E[1+4*b]+E[2+4*b],N=E[1+4*b]-E[2+4*b],H=l-E[3+4*b],v[B+0]=x+I>>3,v[B+16]=H+N>>3,v[B+32]=x-I>>3,v[B+48]=H-N>>3,B+=64}function Qo(l,c,v){var B,b=c-32,E=Ur,x=255-l[b-1];for(B=0;B<v;++B){var I,N=E,H=x+l[c-1];for(I=0;I<v;++I)l[c+I]=N[H+l[b+I]];c+=32}}function $g(l,c){Qo(l,c,4)}function qg(l,c){Qo(l,c,8)}function Wg(l,c){Qo(l,c,16)}function kn(l,c){var v;for(v=0;16>v;++v)t(l,c+32*v,l,c-32,16)}function Za(l,c){var v;for(v=16;0<v;--v)n(l,c,l[c-1],16),c+=32}function As(l,c,v){var B;for(B=0;16>B;++B)n(c,v+32*B,l,16)}function uc(l,c){var v,B=16;for(v=0;16>v;++v)B+=l[c-1+32*v]+l[c+v-32];As(B>>5,l,c)}function Xt(l,c){var v,B=8;for(v=0;16>v;++v)B+=l[c-1+32*v];As(B>>4,l,c)}function zg(l,c){var v,B=8;for(v=0;16>v;++v)B+=l[c+v-32];As(B>>4,l,c)}function cc(l,c){As(128,l,c)}function ie(l,c,v){return l+2*c+v+2>>2}function Xg(l,c){var v,B=c-32;for(B=new Uint8Array([ie(l[B-1],l[B+0],l[B+1]),ie(l[B+0],l[B+1],l[B+2]),ie(l[B+1],l[B+2],l[B+3]),ie(l[B+2],l[B+3],l[B+4])]),v=0;4>v;++v)t(l,c+32*v,B,0,B.length)}function Yg(l,c){var v=l[c-1],B=l[c-1+32],b=l[c-1+64],E=l[c-1+96];EA(l,c+0,16843009*ie(l[c-1-32],v,B)),EA(l,c+32,16843009*ie(v,B,b)),EA(l,c+64,16843009*ie(B,b,E)),EA(l,c+96,16843009*ie(b,E,E))}function bn(l,c){var v,B=4;for(v=0;4>v;++v)B+=l[c+v-32]+l[c-1+32*v];for(B>>=3,v=0;4>v;++v)n(l,c+32*v,B,4)}function fc(l,c){var v=l[c-1+0],B=l[c-1+32],b=l[c-1+64],E=l[c-1-32],x=l[c+0-32],I=l[c+1-32],N=l[c+2-32],H=l[c+3-32];l[c+0+96]=ie(B,b,l[c-1+96]),l[c+1+96]=l[c+0+64]=ie(v,B,b),l[c+2+96]=l[c+1+64]=l[c+0+32]=ie(E,v,B),l[c+3+96]=l[c+2+64]=l[c+1+32]=l[c+0+0]=ie(x,E,v),l[c+3+64]=l[c+2+32]=l[c+1+0]=ie(I,x,E),l[c+3+32]=l[c+2+0]=ie(N,I,x),l[c+3+0]=ie(H,N,I)}function hc(l,c){var v=l[c+1-32],B=l[c+2-32],b=l[c+3-32],E=l[c+4-32],x=l[c+5-32],I=l[c+6-32],N=l[c+7-32];l[c+0+0]=ie(l[c+0-32],v,B),l[c+1+0]=l[c+0+32]=ie(v,B,b),l[c+2+0]=l[c+1+32]=l[c+0+64]=ie(B,b,E),l[c+3+0]=l[c+2+32]=l[c+1+64]=l[c+0+96]=ie(b,E,x),l[c+3+32]=l[c+2+64]=l[c+1+96]=ie(E,x,I),l[c+3+64]=l[c+2+96]=ie(x,I,N),l[c+3+96]=ie(I,N,N)}function es(l,c){var v=l[c-1+0],B=l[c-1+32],b=l[c-1+64],E=l[c-1-32],x=l[c+0-32],I=l[c+1-32],N=l[c+2-32],H=l[c+3-32];l[c+0+0]=l[c+1+64]=E+x+1>>1,l[c+1+0]=l[c+2+64]=x+I+1>>1,l[c+2+0]=l[c+3+64]=I+N+1>>1,l[c+3+0]=N+H+1>>1,l[c+0+96]=ie(b,B,v),l[c+0+64]=ie(B,v,E),l[c+0+32]=l[c+1+96]=ie(v,E,x),l[c+1+32]=l[c+2+96]=ie(E,x,I),l[c+2+32]=l[c+3+96]=ie(x,I,N),l[c+3+32]=ie(I,N,H)}function Uo(l,c){var v=l[c+0-32],B=l[c+1-32],b=l[c+2-32],E=l[c+3-32],x=l[c+4-32],I=l[c+5-32],N=l[c+6-32],H=l[c+7-32];l[c+0+0]=v+B+1>>1,l[c+1+0]=l[c+0+64]=B+b+1>>1,l[c+2+0]=l[c+1+64]=b+E+1>>1,l[c+3+0]=l[c+2+64]=E+x+1>>1,l[c+0+32]=ie(v,B,b),l[c+1+32]=l[c+0+96]=ie(B,b,E),l[c+2+32]=l[c+1+96]=ie(b,E,x),l[c+3+32]=l[c+2+96]=ie(E,x,I),l[c+3+64]=ie(x,I,N),l[c+3+96]=ie(I,N,H)}function Jg(l,c){var v=l[c-1+0],B=l[c-1+32],b=l[c-1+64],E=l[c-1+96];l[c+0+0]=v+B+1>>1,l[c+2+0]=l[c+0+32]=B+b+1>>1,l[c+2+32]=l[c+0+64]=b+E+1>>1,l[c+1+0]=ie(v,B,b),l[c+3+0]=l[c+1+32]=ie(B,b,E),l[c+3+32]=l[c+1+64]=ie(b,E,E),l[c+3+64]=l[c+2+64]=l[c+0+96]=l[c+1+96]=l[c+2+96]=l[c+3+96]=E}function Zg(l,c){var v=l[c-1+0],B=l[c-1+32],b=l[c-1+64],E=l[c-1+96],x=l[c-1-32],I=l[c+0-32],N=l[c+1-32],H=l[c+2-32];l[c+0+0]=l[c+2+32]=v+x+1>>1,l[c+0+32]=l[c+2+64]=B+v+1>>1,l[c+0+64]=l[c+2+96]=b+B+1>>1,l[c+0+96]=E+b+1>>1,l[c+3+0]=ie(I,N,H),l[c+2+0]=ie(x,I,N),l[c+1+0]=l[c+3+32]=ie(v,x,I),l[c+1+32]=l[c+3+64]=ie(B,v,x),l[c+1+64]=l[c+3+96]=ie(b,B,v),l[c+1+96]=ie(E,b,B)}function Ap(l,c){var v;for(v=0;8>v;++v)t(l,c+32*v,l,c-32,8)}function Eo(l,c){var v;for(v=0;8>v;++v)n(l,c,l[c-1],8),c+=32}function aa(l,c,v){var B;for(B=0;8>B;++B)n(c,v+32*B,l,8)}function Bi(l,c){var v,B=8;for(v=0;8>v;++v)B+=l[c+v-32]+l[c-1+32*v];aa(B>>4,l,c)}function ep(l,c){var v,B=4;for(v=0;8>v;++v)B+=l[c+v-32];aa(B>>3,l,c)}function sa(l,c){var v,B=4;for(v=0;8>v;++v)B+=l[c-1+32*v];aa(B>>3,l,c)}function xo(l,c){aa(128,l,c)}function ts(l,c,v){var B=l[c-v],b=l[c+0],E=3*(b-B)+sp[1020+l[c-2*v]-l[c+v]],x=Uc[112+(E+4>>3)];l[c-v]=Ur[255+B+Uc[112+(E+3>>3)]],l[c+0]=Ur[255+b-x]}function dc(l,c,v,B){var b=l[c+0],E=l[c+v];return kr[255+l[c-2*v]-l[c-v]]>B||kr[255+E-b]>B}function gc(l,c,v,B){return 4*kr[255+l[c-v]-l[c+0]]+kr[255+l[c-2*v]-l[c+v]]<=B}function pc(l,c,v,B,b){var E=l[c-3*v],x=l[c-2*v],I=l[c-v],N=l[c+0],H=l[c+v],X=l[c+2*v],lA=l[c+3*v];return 4*kr[255+I-N]+kr[255+x-H]>B?0:kr[255+l[c-4*v]-E]<=b&&kr[255+E-x]<=b&&kr[255+x-I]<=b&&kr[255+lA-X]<=b&&kr[255+X-H]<=b&&kr[255+H-N]<=b}function vc(l,c,v,B){var b=2*B+1;for(B=0;16>B;++B)gc(l,c+B,v,b)&&ts(l,c+B,v)}function Cn(l,c,v,B){var b=2*B+1;for(B=0;16>B;++B)gc(l,c+B*v,1,b)&&ts(l,c+B*v,1)}function Kn(l,c,v,B){var b;for(b=3;0<b;--b)vc(l,c+=4*v,v,B)}function tp(l,c,v,B){var b;for(b=3;0<b;--b)Cn(l,c+=4,v,B)}function wi(l,c,v,B,b,E,x,I){for(E=2*E+1;0<b--;){if(pc(l,c,v,E,x))if(dc(l,c,v,I))ts(l,c,v);else{var N=l,H=c,X=v,lA=N[H-2*X],uA=N[H-X],eA=N[H+0],wA=N[H+X],gA=N[H+2*X],Y=27*(vA=sp[1020+3*(eA-uA)+sp[1020+lA-wA]])+63>>7,Z=18*vA+63>>7,vA=9*vA+63>>7;N[H-3*X]=Ur[255+N[H-3*X]+vA],N[H-2*X]=Ur[255+lA+Z],N[H-X]=Ur[255+uA+Y],N[H+0]=Ur[255+eA-Y],N[H+X]=Ur[255+wA-Z],N[H+2*X]=Ur[255+gA-vA]}c+=B}}function on(l,c,v,B,b,E,x,I){for(E=2*E+1;0<b--;){if(pc(l,c,v,E,x))if(dc(l,c,v,I))ts(l,c,v);else{var N=l,H=c,X=v,lA=N[H-X],uA=N[H+0],eA=N[H+X],wA=Uc[112+((gA=3*(uA-lA))+4>>3)],gA=Uc[112+(gA+3>>3)],Y=wA+1>>1;N[H-2*X]=Ur[255+N[H-2*X]+Y],N[H-X]=Ur[255+lA+gA],N[H+0]=Ur[255+uA-wA],N[H+X]=Ur[255+eA-Y]}c+=B}}function Io(l,c,v,B,b,E){wi(l,c,v,1,16,B,b,E)}function oa(l,c,v,B,b,E){wi(l,c,1,v,16,B,b,E)}function rp(l,c,v,B,b,E){var x;for(x=3;0<x;--x)on(l,c+=4*v,v,1,16,B,b,E)}function rs(l,c,v,B,b,E){var x;for(x=3;0<x;--x)on(l,c+=4,1,v,16,B,b,E)}function np(l,c,v,B,b,E,x,I){wi(l,c,b,1,8,E,x,I),wi(v,B,b,1,8,E,x,I)}function So(l,c,v,B,b,E,x,I){wi(l,c,1,b,8,E,x,I),wi(v,B,1,b,8,E,x,I)}function Lo(l,c,v,B,b,E,x,I){on(l,c+4*b,b,1,8,E,x,I),on(v,B+4*b,b,1,8,E,x,I)}function Bc(l,c,v,B,b,E,x,I){on(l,c+4,1,b,8,E,x,I),on(v,B+4,1,b,8,E,x,I)}function ns(){this.ba=new qe,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new $e,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function No(){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 To(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function wc(){this.ua=0,this.Wa=new K,this.vb=new K,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new M,this.yc=new L}function ip(){this.xb=this.a=0,this.l=new Ya,this.ca=new qe,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new U,this.Pb=0,this.wd=new U,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new wc,this.ab=0,this.gc=a(4,To),this.Oc=0}function is(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ya,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function la(l,c,v,B,b,E,x){for(l=l==null?0:l[c+0],c=0;c<x;++c)b[E+c]=l+v[B+c]&255,l=b[E+c]}function Oo(l,c,v,B,b,E,x){var I;if(l==null)la(null,null,v,B,b,E,x);else for(I=0;I<x;++I)b[E+I]=l[c+I]+v[B+I]&255}function mi(l,c,v,B,b,E,x){if(l==null)la(null,null,v,B,b,E,x);else{var I,N=l[c+0],H=N,X=N;for(I=0;I<x;++I)H=X+(N=l[c+I])-H,X=v[B+I]+(-256&H?0>H?0:255:H)&255,H=N,b[E+I]=X}}function Ho(l,c,v,B){var b=c.width,E=c.o;if(A(l!=null&&c!=null),0>v||0>=B||v+B>E)return null;if(!l.Cc){if(l.ga==null){var x;if(l.ga=new is,(x=l.ga==null)||(x=c.width*c.o,A(l.Gb.length==0),l.Gb=i(x),l.Uc=0,l.Gb==null?x=0:(l.mb=l.Gb,l.nb=l.Uc,l.rc=null,x=1),x=!x),!x){x=l.ga;var I=l.Fa,N=l.P,H=l.qc,X=l.mb,lA=l.nb,uA=N+1,eA=H-1,wA=x.l;if(A(I!=null&&X!=null&&c!=null),Ui[0]=null,Ui[1]=la,Ui[2]=Oo,Ui[3]=mi,x.ca=X,x.tb=lA,x.c=c.width,x.i=c.height,A(0<x.c&&0<x.i),1>=H)c=0;else if(x.$a=I[N+0]>>0&3,x.Z=I[N+0]>>2&3,x.Lc=I[N+0]>>4&3,N=I[N+0]>>6&3,0>x.$a||1<x.$a||4<=x.Z||1<x.Lc||N)c=0;else if(wA.put=fr,wA.ac=Bt,wA.bc=yr,wA.ma=x,wA.width=c.width,wA.height=c.height,wA.Da=c.Da,wA.v=c.v,wA.va=c.va,wA.j=c.j,wA.o=c.o,x.$a)A:{A(x.$a==1),c=nr();e:for(;;){if(c==null){c=0;break A}if(A(x!=null),x.mc=c,c.c=x.c,c.i=x.i,c.l=x.l,c.l.ma=x,c.l.width=x.c,c.l.height=x.i,c.a=0,tA(c.m,I,uA,eA),!Fr(x.c,x.i,1,c,null)||(c.ab==1&&c.gc[0].hc==3&&_r(c.s)?(x.ic=1,I=c.c*c.i,c.Ta=null,c.Ua=0,c.V=i(I),c.Ba=0,c.V==null?(c.a=1,c=0):c=1):(x.ic=0,c=yn(c,x.c)),!c))break e;c=1;break A}x.mc=null,c=0}else c=eA>=x.c*x.i;x=!c}if(x)return null;l.ga.Lc!=1?l.Ga=0:B=E-v}A(l.ga!=null),A(v+B<=E);A:{if(c=(I=l.ga).c,E=I.l.o,I.$a==0){if(uA=l.rc,eA=l.Vc,wA=l.Fa,N=l.P+1+v*c,H=l.mb,X=l.nb+v*c,A(N<=l.P+l.qc),I.Z!=0)for(A(Ui[I.Z]!=null),x=0;x<B;++x)Ui[I.Z](uA,eA,wA,N,H,X,c),uA=H,eA=X,X+=c,N+=c;else for(x=0;x<B;++x)t(H,X,wA,N,c),uA=H,eA=X,X+=c,N+=c;l.rc=uA,l.Vc=eA}else{if(A(I.mc!=null),c=v+B,A((x=I.mc)!=null),A(c<=x.i),x.C>=c)c=1;else if(I.ic||nA(),I.ic){I=x.V,uA=x.Ba,eA=x.c;var gA=x.i,Y=(wA=1,N=x.$/eA,H=x.$%eA,X=x.m,lA=x.s,x.$),Z=eA*gA,vA=eA*c,mA=lA.wc,BA=Y<vA?Ce(lA,H,N):null;A(Y<=Z),A(c<=gA),A(_r(lA));e:for(;;){for(;!X.h&&Y<vA;){if(H&mA||(BA=Ce(lA,H,N)),A(BA!=null),J(X),256>(gA=xt(BA.G[0],BA.H[0],X)))I[uA+Y]=gA,++Y,++H>=eA&&(H=0,++N<=c&&!(N%16)&&Dt(x,N));else{if(!(280>gA)){wA=0;break e}gA=br(gA-256,X);var RA,HA=xt(BA.G[4],BA.H[4],X);if(J(X),!(Y>=(HA=tr(eA,HA=br(HA,X)))&&Z-Y>=gA)){wA=0;break e}for(RA=0;RA<gA;++RA)I[uA+Y+RA]=I[uA+Y+RA-HA];for(Y+=gA,H+=gA;H>=eA;)H-=eA,++N<=c&&!(N%16)&&Dt(x,N);Y<vA&&H&mA&&(BA=Ce(lA,H,N))}A(X.h==R(X))}Dt(x,N>c?c:N);break e}!wA||X.h&&Y<Z?(wA=0,x.a=X.h?5:3):x.$=Y,c=wA}else c=ct(x,x.V,x.Ba,x.c,x.i,c,vi);if(!c){B=0;break A}}v+B>=E&&(l.Cc=1),B=1}if(!B)return null;if(l.Cc&&((B=l.ga)!=null&&(B.mc=null),l.ga=null,0<l.Ga))return alert("todo:WebPDequantizeLevels"),null}return l.nb+v*b}function g(l,c,v,B,b,E){for(;0<b--;){var x,I=l,N=c+(v?1:0),H=l,X=c+(v?0:3);for(x=0;x<B;++x){var lA=H[X+4*x];lA!=255&&(lA*=32897,I[N+4*x+0]=I[N+4*x+0]*lA>>23,I[N+4*x+1]=I[N+4*x+1]*lA>>23,I[N+4*x+2]=I[N+4*x+2]*lA>>23)}c+=E}}function C(l,c,v,B,b){for(;0<B--;){var E;for(E=0;E<v;++E){var x=l[c+2*E+0],I=15&(H=l[c+2*E+1]),N=4369*I,H=(240&H|H>>4)*N>>16;l[c+2*E+0]=(240&x|x>>4)*N>>16&240|(15&x|x<<4)*N>>16>>4&15,l[c+2*E+1]=240&H|I}c+=b}}function D(l,c,v,B,b,E,x,I){var N,H,X=255;for(H=0;H<b;++H){for(N=0;N<B;++N){var lA=l[c+N];E[x+4*N]=lA,X&=lA}c+=v,x+=I}return X!=255}function W(l,c,v,B,b){var E;for(E=0;E<b;++E)v[B+E]=l[c+E]>>8}function nA(){Mr=g,Re=C,Me=D,dt=W}function pA(l,c,v){_[l]=function(B,b,E,x,I,N,H,X,lA,uA,eA,wA,gA,Y,Z,vA,mA){var BA,RA=mA-1>>1,HA=I[N+0]|H[X+0]<<16,JA=lA[uA+0]|eA[wA+0]<<16;A(B!=null);var _A=3*HA+JA+131074>>2;for(c(B[b+0],255&_A,_A>>16,gA,Y),E!=null&&(_A=3*JA+HA+131074>>2,c(E[x+0],255&_A,_A>>16,Z,vA)),BA=1;BA<=RA;++BA){var Ue=I[N+BA]|H[X+BA]<<16,Se=lA[uA+BA]|eA[wA+BA]<<16,Fe=HA+Ue+JA+Se+524296,me=Fe+2*(Ue+JA)>>3;_A=me+HA>>1,HA=(Fe=Fe+2*(HA+Se)>>3)+Ue>>1,c(B[b+2*BA-1],255&_A,_A>>16,gA,Y+(2*BA-1)*v),c(B[b+2*BA-0],255&HA,HA>>16,gA,Y+(2*BA-0)*v),E!=null&&(_A=Fe+JA>>1,HA=me+Se>>1,c(E[x+2*BA-1],255&_A,_A>>16,Z,vA+(2*BA-1)*v),c(E[x+2*BA+0],255&HA,HA>>16,Z,vA+(2*BA+0)*v)),HA=Ue,JA=Se}1&mA||(_A=3*HA+JA+131074>>2,c(B[b+mA-1],255&_A,_A>>16,gA,Y+(mA-1)*v),E!=null&&(_A=3*JA+HA+131074>>2,c(E[x+mA-1],255&_A,_A>>16,Z,vA+(mA-1)*v)))}}function CA(){Kr[Ec]=i_,Kr[xc]=pm,Kr[cm]=a_,Kr[Ic]=vm,Kr[Sc]=Bm,Kr[op]=wm,Kr[fm]=s_,Kr[lp]=pm,Kr[up]=vm,Kr[Lc]=Bm,Kr[cp]=wm}function DA(l){return l&-16384?0>l?0:255:l>>o_}function XA(l,c){return DA((19077*l>>8)+(26149*c>>8)-14234)}function ue(l,c,v){return DA((19077*l>>8)-(6419*c>>8)-(13320*v>>8)+8708)}function oe(l,c){return DA((19077*l>>8)+(33050*c>>8)-17685)}function be(l,c,v,B,b){B[b+0]=XA(l,v),B[b+1]=ue(l,c,v),B[b+2]=oe(l,c)}function ze(l,c,v,B,b){B[b+0]=oe(l,c),B[b+1]=ue(l,c,v),B[b+2]=XA(l,v)}function et(l,c,v,B,b){var E=ue(l,c,v);c=E<<3&224|oe(l,c)>>3,B[b+0]=248&XA(l,v)|E>>5,B[b+1]=c}function wt(l,c,v,B,b){var E=240&oe(l,c)|15;B[b+0]=240&XA(l,v)|ue(l,c,v)>>4,B[b+1]=E}function Yt(l,c,v,B,b){B[b+0]=255,be(l,c,v,B,b+1)}function Lt(l,c,v,B,b){ze(l,c,v,B,b),B[b+3]=255}function ln(l,c,v,B,b){be(l,c,v,B,b),B[b+3]=255}function Qr(l,c){return 0>l?0:l>c?c:l}function Fn(l,c,v){_[l]=function(B,b,E,x,I,N,H,X,lA){for(var uA=X+(-2&lA)*v;X!=uA;)c(B[b+0],E[x+0],I[N+0],H,X),c(B[b+1],E[x+0],I[N+0],H,X+v),b+=2,++x,++N,X+=2*v;1&lA&&c(B[b+0],E[x+0],I[N+0],H,X)}}function mc(l,c,v){return v==0?l==0?c==0?6:5:c==0?4:0:v}function _o(l,c,v,B,b){switch(l>>>30){case 3:Gn(c,v,B,b,0);break;case 2:ht(c,v,B,b);break;case 1:ar(c,v,B,b)}}function Po(l,c){var v,B,b=c.M,E=c.Nb,x=l.oc,I=l.pc+40,N=l.oc,H=l.pc+584,X=l.oc,lA=l.pc+600;for(v=0;16>v;++v)x[I+32*v-1]=129;for(v=0;8>v;++v)N[H+32*v-1]=129,X[lA+32*v-1]=129;for(0<b?x[I-1-32]=N[H-1-32]=X[lA-1-32]=129:(n(x,I-32-1,127,21),n(N,H-32-1,127,9),n(X,lA-32-1,127,9)),B=0;B<l.za;++B){var uA=c.ya[c.aa+B];if(0<B){for(v=-1;16>v;++v)t(x,I+32*v-4,x,I+32*v+12,4);for(v=-1;8>v;++v)t(N,H+32*v-4,N,H+32*v+4,4),t(X,lA+32*v-4,X,lA+32*v+4,4)}var eA=l.Gd,wA=l.Hd+B,gA=uA.ad,Y=uA.Hc;if(0<b&&(t(x,I-32,eA[wA].y,0,16),t(N,H-32,eA[wA].f,0,8),t(X,lA-32,eA[wA].ea,0,8)),uA.Za){var Z=x,vA=I-32+16;for(0<b&&(B>=l.za-1?n(Z,vA,eA[wA].y[15],4):t(Z,vA,eA[wA+1].y,0,4)),v=0;4>v;v++)Z[vA+128+v]=Z[vA+256+v]=Z[vA+384+v]=Z[vA+0+v];for(v=0;16>v;++v,Y<<=2)Z=x,vA=I+ym[v],un[uA.Ob[v]](Z,vA),_o(Y,gA,16*+v,Z,vA)}else if(Z=mc(B,b,uA.Ob[0]),Qi[Z](x,I),Y!=0)for(v=0;16>v;++v,Y<<=2)_o(Y,gA,16*+v,x,I+ym[v]);for(v=uA.Gc,Z=mc(B,b,uA.Dd),qn[Z](N,H),qn[Z](X,lA),Y=gA,Z=N,vA=H,255&(uA=v>>0)&&(170&uA?Ko(Y,256,Z,vA):Dr(Y,256,Z,vA)),uA=X,Y=lA,255&(v>>=8)&&(170&v?Ko(gA,320,uA,Y):Dr(gA,320,uA,Y)),b<l.Ub-1&&(t(eA[wA].y,0,x,I+480,16),t(eA[wA].f,0,N,H+224,8),t(eA[wA].ea,0,X,lA+224,8)),v=8*E*l.B,eA=l.sa,wA=l.ta+16*B+16*E*l.R,gA=l.qa,uA=l.ra+8*B+v,Y=l.Ha,Z=l.Ia+8*B+v,v=0;16>v;++v)t(eA,wA+v*l.R,x,I+32*v,16);for(v=0;8>v;++v)t(gA,uA+v*l.B,N,H+32*v,8),t(Y,Z+v*l.B,X,lA+32*v,8)}}function as(l,c,v,B,b,E,x,I,N){var H=[0],X=[0],lA=0,uA=N!=null?N.kd:0,eA=N!=null?N:new No;if(l==null||12>v)return 7;eA.data=l,eA.w=c,eA.ha=v,c=[c],v=[v],eA.gb=[eA.gb];A:{var wA=c,gA=v,Y=eA.gb;if(A(l!=null),A(gA!=null),A(Y!=null),Y[0]=0,12<=gA[0]&&!e(l,wA[0],"RIFF")){if(e(l,wA[0]+8,"WEBP")){Y=3;break A}var Z=LA(l,wA[0]+4);if(12>Z||4294967286<Z){Y=3;break A}if(uA&&Z>gA[0]-8){Y=7;break A}Y[0]=Z,wA[0]+=12,gA[0]-=12}Y=0}if(Y!=0)return Y;for(Z=0<eA.gb[0],v=v[0];;){A:{var vA=l;gA=c,Y=v;var mA=H,BA=X,RA=wA=[0];if((_A=lA=[lA])[0]=0,8>Y[0])Y=7;else{if(!e(vA,gA[0],"VP8X")){if(LA(vA,gA[0]+4)!=10){Y=3;break A}if(18>Y[0]){Y=7;break A}var HA=LA(vA,gA[0]+8),JA=1+NA(vA,gA[0]+12);if(2147483648<=JA*(vA=1+NA(vA,gA[0]+15))){Y=3;break A}RA!=null&&(RA[0]=HA),mA!=null&&(mA[0]=JA),BA!=null&&(BA[0]=vA),gA[0]+=18,Y[0]-=18,_A[0]=1}Y=0}}if(lA=lA[0],wA=wA[0],Y!=0)return Y;if(gA=!!(2&wA),!Z&&lA)return 3;if(E!=null&&(E[0]=!!(16&wA)),x!=null&&(x[0]=gA),I!=null&&(I[0]=0),x=H[0],wA=X[0],lA&&gA&&N==null){Y=0;break}if(4>v){Y=7;break}if(Z&&lA||!Z&&!lA&&!e(l,c[0],"ALPH")){v=[v],eA.na=[eA.na],eA.P=[eA.P],eA.Sa=[eA.Sa];A:{HA=l,Y=c,Z=v;var _A=eA.gb;mA=eA.na,BA=eA.P,RA=eA.Sa,JA=22,A(HA!=null),A(Z!=null),vA=Y[0];var Ue=Z[0];for(A(mA!=null),A(RA!=null),mA[0]=null,BA[0]=null,RA[0]=0;;){if(Y[0]=vA,Z[0]=Ue,8>Ue){Y=7;break A}var Se=LA(HA,vA+4);if(4294967286<Se){Y=3;break A}var Fe=8+Se+1&-2;if(JA+=Fe,0<_A&&JA>_A){Y=3;break A}if(!e(HA,vA,"VP8 ")||!e(HA,vA,"VP8L")){Y=0;break A}if(Ue[0]<Fe){Y=7;break A}e(HA,vA,"ALPH")||(mA[0]=HA,BA[0]=vA+8,RA[0]=Se),vA+=Fe,Ue-=Fe}}if(v=v[0],eA.na=eA.na[0],eA.P=eA.P[0],eA.Sa=eA.Sa[0],Y!=0)break}v=[v],eA.Ja=[eA.Ja],eA.xa=[eA.xa];A:if(_A=l,Y=c,Z=v,mA=eA.gb[0],BA=eA.Ja,RA=eA.xa,HA=Y[0],vA=!e(_A,HA,"VP8 "),JA=!e(_A,HA,"VP8L"),A(_A!=null),A(Z!=null),A(BA!=null),A(RA!=null),8>Z[0])Y=7;else{if(vA||JA){if(_A=LA(_A,HA+4),12<=mA&&_A>mA-12){Y=3;break A}if(uA&&_A>Z[0]-8){Y=7;break A}BA[0]=_A,Y[0]+=8,Z[0]-=8,RA[0]=JA}else RA[0]=5<=Z[0]&&_A[HA+0]==47&&!(_A[HA+4]>>5),BA[0]=Z[0];Y=0}if(v=v[0],eA.Ja=eA.Ja[0],eA.xa=eA.xa[0],c=c[0],Y!=0)break;if(4294967286<eA.Ja)return 3;if(I==null||gA||(I[0]=eA.xa?2:1),x=[x],wA=[wA],eA.xa){if(5>v){Y=7;break}I=x,uA=wA,gA=E,l==null||5>v?l=0:5<=v&&l[c+0]==47&&!(l[c+4]>>5)?(Z=[0],_A=[0],mA=[0],tA(BA=new U,l,c,v),YA(BA,Z,_A,mA)?(I!=null&&(I[0]=Z[0]),uA!=null&&(uA[0]=_A[0]),gA!=null&&(gA[0]=mA[0]),l=1):l=0):l=0}else{if(10>v){Y=7;break}I=wA,l==null||10>v||!nc(l,c+3,v-3)?l=0:(uA=l[c+0]|l[c+1]<<8|l[c+2]<<16,gA=16383&(l[c+7]<<8|l[c+6]),l=16383&(l[c+9]<<8|l[c+8]),1&uA||3<(uA>>1&7)||!(uA>>4&1)||uA>>5>=eA.Ja||!gA||!l?l=0:(x&&(x[0]=gA),I&&(I[0]=l),l=1))}if(!l||(x=x[0],wA=wA[0],lA&&(H[0]!=x||X[0]!=wA)))return 3;N!=null&&(N[0]=eA,N.offset=c-N.w,A(4294967286>c-N.w),A(N.offset==N.ha-v));break}return Y==0||Y==7&&lA&&N==null?(E!=null&&(E[0]|=eA.na!=null&&0<eA.na.length),B!=null&&(B[0]=x),b!=null&&(b[0]=wA),0):Y}function Do(l,c,v){var B=c.width,b=c.height,E=0,x=0,I=B,N=b;if(c.Da=l!=null&&0<l.Da,c.Da&&(I=l.cd,N=l.bd,E=l.v,x=l.j,11>v||(E&=-2,x&=-2),0>E||0>x||0>=I||0>=N||E+I>B||x+N>b))return 0;if(c.v=E,c.j=x,c.va=E+I,c.o=x+N,c.U=I,c.T=N,c.da=l!=null&&0<l.da,c.da){if(!Ae(I,N,v=[l.ib],E=[l.hb]))return 0;c.ib=v[0],c.hb=E[0]}return c.ob=l!=null&&l.ob,c.Kb=l==null||!l.Sd,c.da&&(c.ob=c.ib<3*B/4&&c.hb<3*b/4,c.Kb=0),1}function Ro(l){if(l==null)return 2;if(11>l.S){var c=l.f.RGBA;c.fb+=(l.height-1)*c.A,c.A=-c.A}else c=l.f.kb,l=l.height,c.O+=(l-1)*c.fa,c.fa=-c.fa,c.N+=(l-1>>1)*c.Ab,c.Ab=-c.Ab,c.W+=(l-1>>1)*c.Db,c.Db=-c.Db,c.F!=null&&(c.J+=(l-1)*c.lb,c.lb=-c.lb);return 0}function ss(l,c,v,B){if(B==null||0>=l||0>=c)return 2;if(v!=null){if(v.Da){var b=v.cd,E=v.bd,x=-2&v.v,I=-2&v.j;if(0>x||0>I||0>=b||0>=E||x+b>l||I+E>c)return 2;l=b,c=E}if(v.da){if(!Ae(l,c,b=[v.ib],E=[v.hb]))return 2;l=b[0],c=E[0]}}B.width=l,B.height=c;A:{var N=B.width,H=B.height;if(l=B.S,0>=N||0>=H||!(l>=Ec&&13>l))l=2;else{if(0>=B.Rd&&B.sd==null){x=E=b=c=0;var X=(I=N*bm[l])*H;if(11>l||(E=(H+1)/2*(c=(N+1)/2),l==12&&(x=(b=N)*H)),(H=i(X+2*E+x))==null){l=1;break A}B.sd=H,11>l?((N=B.f.RGBA).eb=H,N.fb=0,N.A=I,N.size=X):((N=B.f.kb).y=H,N.O=0,N.fa=I,N.Fd=X,N.f=H,N.N=0+X,N.Ab=c,N.Cd=E,N.ea=H,N.W=0+X+E,N.Db=c,N.Ed=E,l==12&&(N.F=H,N.J=0+X+2*E),N.Tc=x,N.lb=b)}if(c=1,b=B.S,E=B.width,x=B.height,b>=Ec&&13>b)if(11>b)l=B.f.RGBA,c&=(I=Math.abs(l.A))*(x-1)+E<=l.size,c&=I>=E*bm[b],c&=l.eb!=null;else{l=B.f.kb,I=(E+1)/2,X=(x+1)/2,N=Math.abs(l.fa),H=Math.abs(l.Ab);var lA=Math.abs(l.Db),uA=Math.abs(l.lb),eA=uA*(x-1)+E;c&=N*(x-1)+E<=l.Fd,c&=H*(X-1)+I<=l.Cd,c=(c&=lA*(X-1)+I<=l.Ed)&N>=E&H>=I&lA>=I,c&=l.y!=null,c&=l.f!=null,c&=l.ea!=null,b==12&&(c&=uA>=E,c&=eA<=l.Tc,c&=l.F!=null)}else c=0;l=c?0:2}}return l!=0||v!=null&&v.fd&&(l=Ro(B)),l}var Rt=64,os=[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],ls=24,us=32,Mo=8,dr=[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];xA("Predictor0","PredictorAdd0"),_.Predictor0=function(){return 4278190080},_.Predictor1=function(l){return l},_.Predictor2=function(l,c,v){return c[v+0]},_.Predictor3=function(l,c,v){return c[v+1]},_.Predictor4=function(l,c,v){return c[v-1]},_.Predictor5=function(l,c,v){return IA(IA(l,c[v+1]),c[v+0])},_.Predictor6=function(l,c,v){return IA(l,c[v-1])},_.Predictor7=function(l,c,v){return IA(l,c[v+0])},_.Predictor8=function(l,c,v){return IA(c[v-1],c[v+0])},_.Predictor9=function(l,c,v){return IA(c[v+0],c[v+1])},_.Predictor10=function(l,c,v){return IA(IA(l,c[v-1]),IA(c[v+0],c[v+1]))},_.Predictor11=function(l,c,v){var B=c[v+0];return 0>=te(B>>24&255,l>>24&255,(c=c[v-1])>>24&255)+te(B>>16&255,l>>16&255,c>>16&255)+te(B>>8&255,l>>8&255,c>>8&255)+te(255&B,255&l,255&c)?B:l},_.Predictor12=function(l,c,v){var B=c[v+0];return(KA((l>>24&255)+(B>>24&255)-((c=c[v-1])>>24&255))<<24|KA((l>>16&255)+(B>>16&255)-(c>>16&255))<<16|KA((l>>8&255)+(B>>8&255)-(c>>8&255))<<8|KA((255&l)+(255&B)-(255&c)))>>>0},_.Predictor13=function(l,c,v){var B=c[v-1];return(qA((l=IA(l,c[v+0]))>>24&255,B>>24&255)<<24|qA(l>>16&255,B>>16&255)<<16|qA(l>>8&255,B>>8&255)<<8|qA(l>>0&255,B>>0&255))>>>0};var ap=_.PredictorAdd0;_.PredictorAdd1=re,xA("Predictor2","PredictorAdd2"),xA("Predictor3","PredictorAdd3"),xA("Predictor4","PredictorAdd4"),xA("Predictor5","PredictorAdd5"),xA("Predictor6","PredictorAdd6"),xA("Predictor7","PredictorAdd7"),xA("Predictor8","PredictorAdd8"),xA("Predictor9","PredictorAdd9"),xA("Predictor10","PredictorAdd10"),xA("Predictor11","PredictorAdd11"),xA("Predictor12","PredictorAdd12"),xA("Predictor13","PredictorAdd13");var ko=_.PredictorAdd2;ne("ColorIndexInverseTransform","MapARGB","32b",function(l){return l>>8&255},function(l){return l}),ne("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(l){return l},function(l){return l>>8&255});var yc,Pr=_.ColorIndexInverseTransform,cs=_.MapARGB,bc=_.VP8LColorIndexInverseTransformAlpha,Cc=_.MapAlpha,yi=_.VP8LPredictorsAdd=[];yi.length=16,(_.VP8LPredictors=[]).length=16,(_.VP8LPredictorsAdd_C=[]).length=16,(_.VP8LPredictors_C=[]).length=16;var ua,gr,ir,bi,jn,Vn,fs,Gn,ht,Ko,ar,Dr,hs,Fc,jo,ca,fa,Ci,ha,ds,da,Fi,Vo,Rr,Mr,Re,Me,dt,Qt=i(511),$n=i(2041),Go=i(225),gs=i(767),Qc=0,sp=$n,Uc=Go,Ur=gs,kr=Qt,Ec=0,xc=1,cm=2,Ic=3,Sc=4,op=5,fm=6,lp=7,up=8,Lc=9,cp=10,GH=[2,3,7],$H=[3,3,11],hm=[280,256,256,256,40],qH=[0,1,1,1,0],WH=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],zH=[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],XH=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],YH=8,fp=[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],hp=[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],$o=null,JH=[[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]],ZH=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],dm=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],A_=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],e_=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],t_=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],r_=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Qi=[],un=[],qn=[],n_=1,gm=2,Ui=[],Kr=[];pA("UpsampleRgbLinePair",be,3),pA("UpsampleBgrLinePair",ze,3),pA("UpsampleRgbaLinePair",ln,4),pA("UpsampleBgraLinePair",Lt,4),pA("UpsampleArgbLinePair",Yt,4),pA("UpsampleRgba4444LinePair",wt,2),pA("UpsampleRgb565LinePair",et,2);var i_=_.UpsampleRgbLinePair,a_=_.UpsampleBgrLinePair,pm=_.UpsampleRgbaLinePair,vm=_.UpsampleBgraLinePair,Bm=_.UpsampleArgbLinePair,wm=_.UpsampleRgba4444LinePair,s_=_.UpsampleRgb565LinePair,Nc=16,Tc=1<<Nc-1,qo=-227,dp=482,o_=6,mm=0,l_=i(256),u_=i(256),c_=i(256),f_=i(256),h_=i(dp-qo),d_=i(dp-qo);Fn("YuvToRgbRow",be,3),Fn("YuvToBgrRow",ze,3),Fn("YuvToRgbaRow",ln,4),Fn("YuvToBgraRow",Lt,4),Fn("YuvToArgbRow",Yt,4),Fn("YuvToRgba4444Row",wt,2),Fn("YuvToRgb565Row",et,2);var ym=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Oc=[0,2,8],g_=[8,7,6,4,4,2,2,2,1,1,1,1],p_=1;this.WebPDecodeRGBA=function(l,c,v,B,b){var E=xc,x=new ns,I=new qe;x.ba=I,I.S=E,I.width=[I.width],I.height=[I.height];var N=I.width,H=I.height,X=new De;if(X==null||l==null)var lA=2;else A(X!=null),lA=as(l,c,v,X.width,X.height,X.Pd,X.Qd,X.format,null);if(lA!=0?N=0:(N!=null&&(N[0]=X.width[0]),H!=null&&(H[0]=X.height[0]),N=1),N){I.width=I.width[0],I.height=I.height[0],B!=null&&(B[0]=I.width),b!=null&&(b[0]=I.height);A:{if(B=new Ya,(b=new No).data=l,b.w=c,b.ha=v,b.kd=1,c=[0],A(b!=null),((l=as(b.data,b.w,b.ha,null,null,null,c,null,b))==0||l==7)&&c[0]&&(l=4),(c=l)==0){if(A(x!=null),B.data=b.data,B.w=b.w+b.offset,B.ha=b.ha-b.offset,B.put=fr,B.ac=Bt,B.bc=yr,B.ma=x,b.xa){if((l=nr())==null){x=1;break A}if(function(uA,eA){var wA=[0],gA=[0],Y=[0];e:for(;;){if(uA==null)return 0;if(eA==null)return uA.a=2,0;if(uA.l=eA,uA.a=0,tA(uA.m,eA.data,eA.w,eA.ha),!YA(uA.m,wA,gA,Y)){uA.a=3;break e}if(uA.xb=gm,eA.width=wA[0],eA.height=gA[0],!Fr(wA[0],gA[0],1,uA,null))break e;return 1}return A(uA.a!=0),0}(l,B)){if(B=(c=ss(B.width,B.height,x.Oa,x.ba))==0){e:{B=l;t:for(;;){if(B==null){B=0;break e}if(A(B.s.yc!=null),A(B.s.Ya!=null),A(0<B.s.Wb),A((v=B.l)!=null),A((b=v.ma)!=null),B.xb!=0){if(B.ca=b.ba,B.tb=b.tb,A(B.ca!=null),!Do(b.Oa,v,Ic)){B.a=2;break t}if(!yn(B,v.width)||v.da)break t;if((v.da||pe(B.ca.S))&&nA(),11>B.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),B.ca.f.kb.F!=null&&nA()),B.Pb&&0<B.s.ua&&B.s.vb.X==null&&!VA(B.s.vb,B.s.Wa.Xa)){B.a=1;break t}B.xb=0}if(!ct(B,B.V,B.Ba,B.c,B.i,v.o,Mn))break t;b.Dc=B.Ma,B=1;break e}A(B.a!=0),B=0}B=!B}B&&(c=l.a)}else c=l.a}else{if((l=new kg)==null){x=1;break A}if(l.Fa=b.na,l.P=b.P,l.qc=b.Sa,ic(l,B)){if((c=ss(B.width,B.height,x.Oa,x.ba))==0){if(l.Aa=0,v=x.Oa,A((b=l)!=null),v!=null){if(0<(N=0>(N=v.Md)?0:100<N?255:255*N/100)){for(H=X=0;4>H;++H)12>(lA=b.pb[H]).lc&&(lA.ia=N*g_[0>lA.lc?0:lA.lc]>>3),X|=lA.ia;X&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=v.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}Kg(l,B)||(c=l.a)}}else c=l.a}c==0&&x.Oa!=null&&x.Oa.fd&&(c=Ro(x.ba))}x=c}E=x!=0?null:11>E?I.f.RGBA.eb:I.f.kb.y}else E=null;return E};var bm=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(_,q){for(var iA="",S=0;S<4;S++)iA+=String.fromCharCode(_[q++]);return iA}function f(_,q){return(_[q+0]<<0|_[q+1]<<8|_[q+2]<<16)>>>0}function d(_,q){return(_[q+0]<<0|_[q+1]<<8|_[q+2]<<16|_[q+3]<<24)>>>0}new o;var p=[0],h=[0],m=[],w=new o,F=r,y=function(_,q){var iA={},S=0,L=!1,k=0,M=0;if(iA.frames=[],!function(O,R,V,J){for(var AA=0;AA<J;AA++)if(O[R+AA]!=V.charCodeAt(AA))return!0;return!1}(_,q,"RIFF",4)){var sA,rA;for(d(_,q+=4),q+=8;q<_.length;){var oA=u(_,q),tA=d(_,q+=4);q+=4;var aA=tA+(1&tA);switch(oA){case"VP8 ":case"VP8L":iA.frames[S]===void 0&&(iA.frames[S]={}),(U=iA.frames[S]).src_off=L?M:q-8,U.src_size=k+tA+8,S++,L&&(L=!1,k=0,M=0);break;case"VP8X":(U=iA.header={}).feature_flags=_[q];var cA=q+4;U.canvas_width=1+f(_,cA),cA+=3,U.canvas_height=1+f(_,cA),cA+=3;break;case"ALPH":L=!0,k=aA+8,M=q-8;break;case"ANIM":(U=iA.header).bgcolor=d(_,q),cA=q+4,U.loop_count=(sA=_)[(rA=cA)+0]<<0|sA[rA+1]<<8,cA+=2;break;case"ANMF":var QA,U;(U=iA.frames[S]={}).offset_x=2*f(_,q),q+=3,U.offset_y=2*f(_,q),q+=3,U.width=1+f(_,q),q+=3,U.height=1+f(_,q),q+=3,U.duration=f(_,q),q+=3,QA=_[q++],U.dispose=1&QA,U.blend=QA>>1&1}oA!="ANMF"&&(q+=aA)}return iA}}(F,0);y.response=F,y.rgbaoutput=!0,y.dataurl=!1;var Q=y.header?y.header:null,T=y.frames?y.frames:null;if(Q){Q.loop_counter=Q.loop_count,p=[Q.canvas_height],h=[Q.canvas_width];for(var P=0;P<T.length&&T[P].blend!=0;P++);}var G=T[0],$=w.WebPDecodeRGBA(F,G.src_off,G.src_size,h,p);G.rgba=$,G.imgwidth=h[0],G.imgheight=p[0];for(var j=0;j<h[0]*p[0]*4;j++)m[j]=$[j];return this.width=h,this.height=p,this.data=m,this}(function(r){var A=function(){return typeof Zf=="function"},e=function(p,h,m,w){var F=4,y=a;switch(w){case r.image_compression.FAST:F=1,y=i;break;case r.image_compression.MEDIUM:F=6,y=s;break;case r.image_compression.SLOW:F=9,y=o}p=t(p,h,m,y);var Q=Zf(p,{level:F});return r.__addimage__.arrayBufferToBinaryString(Q)},t=function(p,h,m,w){for(var F,y,Q,T=p.length/h,P=new Uint8Array(p.length+T),G=f(),$=0;$<T;$+=1){if(Q=$*h,F=p.subarray(Q,Q+h),w)P.set(w(F,m,y),Q+$);else{for(var j,_=G.length,q=[];j<_;j+=1)q[j]=G[j](F,m,y);var iA=d(q.concat());P.set(q[iA],Q+$)}y=F}return P},n=function(p){var h=Array.apply([],p);return h.unshift(0),h},i=function(p,h){var m,w=[],F=p.length;w[0]=1;for(var y=0;y<F;y+=1)m=p[y-h]||0,w[y+1]=p[y]-m+256&255;return w},a=function(p,h,m){var w,F=[],y=p.length;F[0]=2;for(var Q=0;Q<y;Q+=1)w=m&&m[Q]||0,F[Q+1]=p[Q]-w+256&255;return F},s=function(p,h,m){var w,F,y=[],Q=p.length;y[0]=3;for(var T=0;T<Q;T+=1)w=p[T-h]||0,F=m&&m[T]||0,y[T+1]=p[T]+256-(w+F>>>1)&255;return y},o=function(p,h,m){var w,F,y,Q,T=[],P=p.length;T[0]=4;for(var G=0;G<P;G+=1)w=p[G-h]||0,F=m&&m[G]||0,y=m&&m[G-h]||0,Q=u(w,F,y),T[G+1]=p[G]-Q+256&255;return T},u=function(p,h,m){if(p===h&&h===m)return p;var w=Math.abs(h-m),F=Math.abs(p-m),y=Math.abs(p+h-m-m);return w<=F&&w<=y?p:F<=y?h:m},f=function(){return[n,i,a,s,o]},d=function(p){var h=p.map(function(m){return m.reduce(function(w,F){return w+Math.abs(F)},0)});return h.indexOf(Math.min.apply(null,h))};r.processPNG=function(p,h,m,w){var F,y,Q,T,P,G,$,j,_,q,iA,S,L,k,M,sA=this.decode.FLATE_DECODE,rA="";if(this.__addimage__.isArrayBuffer(p)&&(p=new Uint8Array(p)),this.__addimage__.isArrayBufferView(p)){if(p=(Q=new WQ(p)).imgData,y=Q.bits,F=Q.colorSpace,P=Q.colors,[4,6].indexOf(Q.colorType)!==-1){if(Q.bits===8){_=(j=Q.pixelBitlength==32?new Uint32Array(Q.decodePixels().buffer):Q.pixelBitlength==16?new Uint16Array(Q.decodePixels().buffer):new Uint8Array(Q.decodePixels().buffer)).length,iA=new Uint8Array(_*Q.colors),q=new Uint8Array(_);var oA,tA=Q.pixelBitlength-Q.bits;for(k=0,M=0;k<_;k++){for(L=j[k],oA=0;oA<tA;)iA[M++]=L>>>oA&255,oA+=Q.bits;q[k]=L>>>oA&255}}if(Q.bits===16){_=(j=new Uint32Array(Q.decodePixels().buffer)).length,iA=new Uint8Array(_*(32/Q.pixelBitlength)*Q.colors),q=new Uint8Array(_*(32/Q.pixelBitlength)),S=Q.colors>1,k=0,M=0;for(var aA=0;k<_;)L=j[k++],iA[M++]=L>>>0&255,S&&(iA[M++]=L>>>16&255,L=j[k++],iA[M++]=L>>>0&255),q[aA++]=L>>>16&255;y=8}w!==r.image_compression.NONE&&A()?(p=e(iA,Q.width*Q.colors,Q.colors,w),$=e(q,Q.width,1,w)):(p=iA,$=q,sA=void 0)}if(Q.colorType===3&&(F=this.color_spaces.INDEXED,G=Q.palette,Q.transparency.indexed)){var cA=Q.transparency.indexed,QA=0;for(k=0,_=cA.length;k<_;++k)QA+=cA[k];if((QA/=255)===_-1&&cA.indexOf(0)!==-1)T=[cA.indexOf(0)];else if(QA!==_){for(j=Q.decodePixels(),q=new Uint8Array(j.length),k=0,_=j.length;k<_;k++)q[k]=cA[j[k]];$=e(q,Q.width,1)}}var U=function(O){var R;switch(O){case r.image_compression.FAST:R=11;break;case r.image_compression.MEDIUM:R=13;break;case r.image_compression.SLOW:R=14;break;default:R=12}return R}(w);return sA===this.decode.FLATE_DECODE&&(rA="/Predictor "+U+" "),rA+="/Colors "+P+" /BitsPerComponent "+y+" /Columns "+Q.width,(this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),($&&this.__addimage__.isArrayBuffer($)||this.__addimage__.isArrayBufferView($))&&($=this.__addimage__.arrayBufferToBinaryString($)),{alias:m,data:p,index:h,filter:sA,decodeParameters:rA,transparency:T,palette:G,sMask:$,predictor:U,width:Q.width,height:Q.height,bitsPerComponent:y,colorSpace:F}}}})(ZA.API),function(r){r.processGIF89A=function(A,e,t,n){var i=new zQ(A),a=i.width,s=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var u={data:o,width:a,height:s},f=new fh(100).encode(u,100);return r.processJPEG.call(this,f,e,t,n)},r.processGIF87A=r.processGIF89A}(ZA.API),zr.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 r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var A=0;A<r;A++){var e=this.datav.getUint8(this.pos++,!0),t=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[A]={red:n,green:t,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},zr.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,A=this.width*this.height*4;this.data=new Uint8Array(A),this[r]()}catch(e){Oe.log("bit decode error:"+e)}},zr.prototype.bit1=function(){var r,A=Math.ceil(this.width/8),e=A%4;for(r=this.height-1;r>=0;r--){for(var t=this.bottom_up?r:this.height-1-r,n=0;n<A;n++)for(var i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var o=this.palette[i>>7-s&1];this.data[a+4*s]=o.blue,this.data[a+4*s+1]=o.green,this.data[a+4*s+2]=o.red,this.data[a+4*s+3]=255}e!==0&&(this.pos+=4-e)}},zr.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),A=r%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<r;n++){var i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+2*n*4,s=i>>4,o=15&i,u=this.palette[s];if(this.data[a]=u.blue,this.data[a+1]=u.green,this.data[a+2]=u.red,this.data[a+3]=255,2*n+1>=this.width)break;u=this.palette[o],this.data[a+4]=u.blue,this.data[a+4+1]=u.green,this.data[a+4+2]=u.red,this.data[a+4+3]=255}A!==0&&(this.pos+=4-A)}},zr.prototype.bit8=function(){for(var r=this.width%4,A=this.height-1;A>=0;A--){for(var e=this.bottom_up?A:this.height-1-A,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*t;if(n<this.palette.length){var a=this.palette[n];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}r!==0&&(this.pos+=4-r)}},zr.prototype.bit15=function(){for(var r=this.width%3,A=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&A)/A*255|0,s=(i>>5&A)/A*255|0,o=(i>>10&A)/A*255|0,u=i>>15?255:0,f=t*this.width*4+4*n;this.data[f]=o,this.data[f+1]=s,this.data[f+2]=a,this.data[f+3]=u}this.pos+=r}},zr.prototype.bit16=function(){for(var r=this.width%3,A=parseInt("11111",2),e=parseInt("111111",2),t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&A)/A*255|0,o=(a>>5&e)/e*255|0,u=(a>>11)/A*255|0,f=n*this.width*4+4*i;this.data[f]=u,this.data[f+1]=o,this.data[f+2]=s,this.data[f+3]=255}this.pos+=r}},zr.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var A=this.bottom_up?r:this.height-1-r,e=0;e<this.width;e++){var t=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+4*e;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=t,this.data[a+3]=255}this.pos+=this.width%4}},zr.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var A=this.bottom_up?r:this.height-1-r,e=0;e<this.width;e++){var t=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=A*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=t,this.data[s+3]=a}},zr.prototype.getData=function(){return this.data},function(r){r.processBMP=function(A,e,t,n){var i=new zr(A,!1),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},u=new fh(100).encode(o,100);return r.processJPEG.call(this,u,e,t,n)}}(ZA.API),Bv.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(A,e,t,n){var i=new Bv(A),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},u=new fh(100).encode(o,100);return r.processJPEG.call(this,u,e,t,n)}}(ZA.API),ZA.API.processRGBA=function(r,A,e){for(var t=r.data,n=t.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),s=0,o=0,u=0;u<n;u+=4){var f=t[u],d=t[u+1],p=t[u+2],h=t[u+3];i[s++]=f,i[s++]=d,i[s++]=p,a[o++]=h}var m=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:m,index:A,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},ZA.API.setLanguage=function(r){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,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},Ta=ZA.API,Jl=Ta.getCharWidthsArray=function(r,A){var e,t,n=(A=A||{}).font||this.internal.getFont(),i=A.fontSize||this.internal.getFontSize(),a=A.charSpace||this.internal.getCharSpace(),s=A.widths?A.widths:n.metadata.Unicode.widths,o=s.fof?s.fof:1,u=A.kerning?A.kerning:n.metadata.Unicode.kerning,f=u.fof?u.fof:1,d=A.doKerning!==!1,p=0,h=r.length,m=0,w=s[0]||o,F=[];for(e=0;e<h;e++)t=r.charCodeAt(e),typeof n.metadata.widthOfString=="function"?F.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(t))+a*(1e3/i)||0)/1e3):(p=d&&Qe(u[t])==="object"&&!isNaN(parseInt(u[t][m],10))?u[t][m]/f:0,F.push((s[t]||w)/o+p)),m=t;return F},dv=Ta.getStringUnitWidth=function(r,A){var e=(A=A||{}).fontSize||this.internal.getFontSize(),t=A.font||this.internal.getFont(),n=A.charSpace||this.internal.getCharSpace();return Ta.processArabic&&(r=Ta.processArabic(r)),typeof t.metadata.widthOfString=="function"?t.metadata.widthOfString(r,e,n)/e:Jl.apply(this,arguments).reduce(function(i,a){return i+a},0)},gv=function(r,A,e,t){for(var n=[],i=0,a=r.length,s=0;i!==a&&s+A[i]<e;)s+=A[i],i++;n.push(r.slice(0,i));var o=i;for(s=0;i!==a;)s+A[i]>t&&(n.push(r.slice(o,i)),s=0,o=i),s+=A[i],i++;return o!==i&&n.push(r.slice(o,i)),n},pv=function(r,A,e){e||(e={});var t,n,i,a,s,o,u,f=[],d=[f],p=e.textIndent||0,h=0,m=0,w=r.split(" "),F=Jl.apply(this,[" ",e])[0];if(o=e.lineIndent===-1?w[0].length+2:e.lineIndent||0){var y=Array(o).join(" "),Q=[];w.map(function(P){(P=P.split(/\s*\n/)).length>1?Q=Q.concat(P.map(function(G,$){return($&&G.length?`
|
|
772
|
+
`:"")+G})):Q.push(P[0])}),w=Q,o=dv.apply(this,[y,e])}for(i=0,a=w.length;i<a;i++){var T=0;if(t=w[i],o&&t[0]==`
|
|
773
|
+
`&&(t=t.substr(1),T=1),p+h+(m=(n=Jl.apply(this,[t,e])).reduce(function(P,G){return P+G},0))>A||T){if(m>A){for(s=gv.apply(this,[t,n,A-(p+h),A]),f.push(s.shift()),f=[s.pop()];s.length;)d.push([s.shift()]);m=n.slice(t.length-(f[0]?f[0].length:0)).reduce(function(P,G){return P+G},0)}else f=[t];d.push(f),p=m+o,h=F}else f.push(t),p+=h+m,h=F}return u=o?function(P,G){return(G?y:"")+P.join(" ")}:function(P){return P.join(" ")},d.map(u)},Ta.splitTextToSize=function(r,A,e){var t,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=function(f){if(f.widths&&f.kerning)return{widths:f.widths,kerning:f.kerning};var d=this.internal.getFont(f.fontName,f.fontStyle);return d.metadata.Unicode?{widths:d.metadata.Unicode.widths||{0:1},kerning:d.metadata.Unicode.kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);t=Array.isArray(r)?r:String(r).split(/\r?\n/);var a=1*this.internal.scaleFactor*A/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var s,o,u=[];for(s=0,o=t.length;s<o;s++)u=u.concat(pv.apply(this,[t[s],a,i]));return u},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",e={},t={},n=0;n<A.length;n++)e[A[n]]="0123456789abcdef"[n],t["0123456789abcdef"[n]]=A[n];var i=function(d){return"0x"+parseInt(d,10).toString(16)},a=r.__fontmetrics__.compress=function(d){var p,h,m,w,F=["{"];for(var y in d){if(p=d[y],isNaN(parseInt(y,10))?h="'"+y+"'":(y=parseInt(y,10),h=(h=i(y).slice(2)).slice(0,-1)+t[h.slice(-1)]),typeof p=="number")p<0?(m=i(p).slice(3),w="-"):(m=i(p).slice(2),w=""),m=w+m.slice(0,-1)+t[m.slice(-1)];else{if(Qe(p)!=="object")throw new Error("Don't know what to do with value type "+Qe(p)+".");m=a(p)}F.push(h+m)}return F.push("}"),F.join("")},s=r.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,h,m,w,F={},y=1,Q=F,T=[],P="",G="",$=d.length-1,j=1;j<$;j+=1)(w=d[j])=="'"?p?(m=p.join(""),p=void 0):p=[]:p?p.push(w):w=="{"?(T.push([Q,m]),Q={},m=void 0):w=="}"?((h=T.pop())[0][h[1]]=Q,m=void 0,Q=h[0]):w=="-"?y=-1:m===void 0?e.hasOwnProperty(w)?(P+=e[w],m=parseInt(P,16)*y,y=1,P=""):P+=w:e.hasOwnProperty(w)?(G+=e[w],Q[m]=parseInt(G,16)*y,y=1,m=void 0,G=""):G+=w;return F},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:o,"Courier-Bold":o,"Courier-BoldOblique":o,"Courier-Oblique":o,Helvetica:o,"Helvetica-Bold":o,"Helvetica-BoldOblique":o,"Helvetica-Oblique":o,"Times-Roman":o,"Times-Bold":o,"Times-BoldItalic":o,"Times-Italic":o}},f={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'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":s("{'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:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'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:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'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":s("{'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:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'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":s("{'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":s("{'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}}}")}};r.events.push(["addFont",function(d){var p=d.font,h=f.Unicode[p.postScriptName];h&&(p.metadata.Unicode={},p.metadata.Unicode.widths=h.widths,p.metadata.Unicode.kerning=h.kerning);var m=u.Unicode[p.postScriptName];m&&(p.metadata.Unicode.encoding=m,p.encoding=m.codePages[0])}])}(ZA.API),function(r){var A=function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n};r.API.events.push(["addFont",function(e){var t=void 0,n=e.font,i=e.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(t=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(a,s){s=/^\x00\x01\x00\x00/.test(s)?A(s):A(Gs(s)),a.metadata=r.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,t)}}])}(ZA),function(r){function A(){return(ee.canvg?Promise.resolve(ee.canvg):Promise.resolve().then(()=>VH)).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}ZA.API.addSvgAsImage=function(e,t,n,i,a,s,o,u){if(isNaN(t)||isNaN(n))throw Oe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Oe.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=i,f.height=a;var d=f.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,f.width,f.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return A().then(function(m){return m.fromString(d,e,p)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(p)}).then(function(){h.addImage(f.toDataURL("image/jpeg",1),t,n,i,a,o,u)})}}(),ZA.API.putTotalPages=function(r){var A,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(r,"g"),e=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var t=1;t<=this.internal.getNumberOfPages();t++)for(var n=0;n<this.internal.pages[t].length;n++)this.internal.pages[t][n]=this.internal.pages[t][n].replace(A,e);return this},ZA.API.viewerPreferences=function(r,A){var e;r=r||{},A=A||!1;var t,n,i,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),o=[],u=0,f=0,d=0;function p(m,w){var F,y=!1;for(F=0;F<m.length;F+=1)m[F]===w&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,r==="reset"||A===!0){var h=s.length;for(d=0;d<h;d+=1)e[s[d]].value=e[s[d]].defaultValue,e[s[d]].explicitSet=!1}if(Qe(r)==="object"){for(n in r)if(i=r[n],p(s,n)&&i!==void 0){if(e[n].type==="boolean"&&typeof i=="boolean")e[n].value=i;else if(e[n].type==="name"&&p(e[n].valueSet,i))e[n].value=i;else if(e[n].type==="integer"&&Number.isInteger(i))e[n].value=i;else if(e[n].type==="array"){for(u=0;u<i.length;u+=1)if(t=!0,i[u].length===1&&typeof i[u][0]=="number")o.push(String(i[u]-1));else if(i[u].length>1){for(f=0;f<i[u].length;f+=1)typeof i[u][f]!="number"&&(t=!1);t===!0&&o.push([i[u][0]-1,i[u][1]-1].join(" "))}e[n].value="["+o.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var m,w=[];for(m in e)e[m].explicitSet===!0&&(e[m].type==="name"?w.push("/"+m+" /"+e[m].value):w.push("/"+m+" "+e[m].value));w.length!==0&&this.internal.write(`/ViewerPreferences
|
|
774
|
+
<<
|
|
775
|
+
`+w.join(`
|
|
776
|
+
`)+`
|
|
777
|
+
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(r){var A=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(t)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),u=i.length+a.length+s.length+n.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+u+" >>"),this.internal.write("stream"),this.internal.write(n+i+a+s+o),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};r.addMetadata=function(t,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:t,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",A)),this}}(ZA.API),function(r){var A=r.API,e=A.pdfEscape16=function(i,a){for(var s,o=a.metadata.Unicode.widths,u=["","0","00","000","0000"],f=[""],d=0,p=i.length;d<p;++d){if(s=a.metadata.characterToGlyph(i.charCodeAt(d)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=i.charCodeAt(d),o.indexOf(s)==-1&&(o.push(s),o.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return f.join("");s=s.toString(16),f.push(u[4-s.length],s)}return f.join("")},t=function(i){var a,s,o,u,f,d,p;for(f=`/CIDInit /ProcSet findresource begin
|
|
778
|
+
12 dict begin
|
|
779
|
+
begincmap
|
|
780
|
+
/CIDSystemInfo <<
|
|
781
|
+
/Registry (Adobe)
|
|
782
|
+
/Ordering (UCS)
|
|
783
|
+
/Supplement 0
|
|
784
|
+
>> def
|
|
785
|
+
/CMapName /Adobe-Identity-UCS def
|
|
786
|
+
/CMapType 2 def
|
|
787
|
+
1 begincodespacerange
|
|
788
|
+
<0000><ffff>
|
|
789
|
+
endcodespacerange`,o=[],d=0,p=(s=Object.keys(i).sort(function(h,m){return h-m})).length;d<p;d++)a=s[d],o.length>=100&&(f+=`
|
|
790
|
+
`+o.length+` beginbfchar
|
|
791
|
+
`+o.join(`
|
|
792
|
+
`)+`
|
|
793
|
+
endbfchar`,o=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(u=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),o.push("<"+a+"><"+u+">"));return o.length&&(f+=`
|
|
794
|
+
`+o.length+` beginbfchar
|
|
795
|
+
`+o.join(`
|
|
796
|
+
`)+`
|
|
797
|
+
endbfchar
|
|
798
|
+
`),f+=`endcmap
|
|
799
|
+
CMapName currentdict /CMap defineresource pop
|
|
800
|
+
end
|
|
801
|
+
end`};A.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,u=a.newObject,f=a.putStream;if(s.metadata instanceof r.API.TTFFont&&s.encoding==="Identity-H"){for(var d=s.metadata.Unicode.widths,p=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",m=0;m<p.length;m++)h+=String.fromCharCode(p[m]);var w=u();f({data:h,addLength1:!0,objectId:w}),o("endobj");var F=u();f({data:t(s.metadata.toUnicode),addLength1:!0,objectId:F}),o("endobj");var y=u();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+La(s.fontName)),o("/FontFile2 "+w+" 0 R"),o("/FontBBox "+r.API.PDFObject.convert(s.metadata.bbox)),o("/Flags "+s.metadata.flags),o("/StemV "+s.metadata.stemV),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o(">>"),o("endobj");var Q=u();o("<<"),o("/Type /Font"),o("/BaseFont /"+La(s.fontName)),o("/FontDescriptor "+y+" 0 R"),o("/W "+r.API.PDFObject.convert(d)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+s.encoding+")"),o(">>"),o(">>"),o("endobj"),s.objectNumber=u(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+F+" 0 R"),o("/BaseFont /"+La(s.fontName)),o("/Encoding /"+s.encoding),o("/DescendantFonts ["+Q+" 0 R]"),o(">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,u=a.newObject,f=a.putStream;if(s.metadata instanceof r.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var d=s.metadata.rawData,p="",h=0;h<d.length;h++)p+=String.fromCharCode(d[h]);var m=u();f({data:p,addLength1:!0,objectId:m}),o("endobj");var w=u();f({data:t(s.metadata.toUnicode),addLength1:!0,objectId:w}),o("endobj");var F=u();o("<<"),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o("/StemV "+s.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+m+" 0 R"),o("/Flags 96"),o("/FontBBox "+r.API.PDFObject.convert(s.metadata.bbox)),o("/FontName /"+La(s.fontName)),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o(">>"),o("endobj"),s.objectNumber=u();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+La(s.fontName)+"/FontDescriptor "+F+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]);var n=function(i){var a,s=i.text||"",o=i.x,u=i.y,f=i.options||{},d=i.mutex||{},p=d.pdfEscape,h=d.activeFontKey,m=d.fonts,w=h,F="",y=0,Q="",T=m[w].encoding;if(m[w].encoding!=="Identity-H")return{text:s,x:o,y:u,options:f,mutex:d};for(Q=s,w=h,Array.isArray(s)&&(Q=s[0]),y=0;y<Q.length;y+=1)m[w].metadata.hasOwnProperty("cmap")&&(a=m[w].metadata.cmap.unicode.codeMap[Q[y].charCodeAt(0)]),a||Q[y].charCodeAt(0)<256&&m[w].metadata.hasOwnProperty("Unicode")?F+=Q[y]:F+="";var P="";return parseInt(w.slice(1))<14||T==="WinAnsiEncoding"?P=p(F,w).split("").map(function(G){return G.charCodeAt(0).toString(16)}).join(""):T==="Identity-H"&&(P=e(F,m[w])),d.isHex=!0,{text:P,x:o,y:u,options:f,mutex:d}};A.events.push(["postProcessText",function(i){var a=i.text||"",s=[],o={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var u=0;for(u=0;u<a.length;u+=1)Array.isArray(a[u])&&a[u].length===3?s.push([n(Object.assign({},o,{text:a[u][0]})).text,a[u][1],a[u][2]]):s.push(n(Object.assign({},o,{text:a[u]})).text);i.text=s}else i.text=n(Object.assign({},o,{text:a})).text}])}(ZA),function(r){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0},r.addFileToVFS=function(e,t){return A.call(this),this.internal.vFS[e]=t,this},r.getFileFromVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(ZA.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(t){var n,i,a,s,o,u,f,d=A,p=[[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]],h=[[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]],m={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},w={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},F=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],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)$/),Q=!1,T=0;this.__bidiEngine__={};var P=function(S){var L=S.charCodeAt(),k=L>>8,M=w[k];return M!==void 0?d[256*M+(255&L)]:k===252||k===253?"AL":y.test(k)?"L":k===8?"R":"N"},G=function(S){for(var L,k=0;k<S.length;k++){if((L=P(S.charAt(k)))==="L")return!1;if(L==="R")return!0}return!1},$=function(S,L,k,M){var sA,rA,oA,tA,aA=L[M];switch(aA){case"L":case"R":Q=!1;break;case"N":case"AN":break;case"EN":Q&&(aA="AN");break;case"AL":Q=!0,aA="R";break;case"WS":aA="N";break;case"CS":M<1||M+1>=L.length||(sA=k[M-1])!=="EN"&&sA!=="AN"||(rA=L[M+1])!=="EN"&&rA!=="AN"?aA="N":Q&&(rA="AN"),aA=rA===sA?rA:"N";break;case"ES":aA=(sA=M>0?k[M-1]:"B")==="EN"&&M+1<L.length&&L[M+1]==="EN"?"EN":"N";break;case"ET":if(M>0&&k[M-1]==="EN"){aA="EN";break}if(Q){aA="N";break}for(oA=M+1,tA=L.length;oA<tA&&L[oA]==="ET";)oA++;aA=oA<tA&&L[oA]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(tA=L.length,oA=M+1;oA<tA&&L[oA]==="NSM";)oA++;if(oA<tA){var cA=S[M],QA=cA>=1425&&cA<=2303||cA===64286;if(sA=L[oA],QA&&(sA==="R"||sA==="AL")){aA="R";break}}}aA=M<1||(sA=L[M-1])==="B"?"N":k[M-1];break;case"B":Q=!1,n=!0,aA=T;break;case"S":i=!0,aA="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Q=!1;break;case"BN":aA="N"}return aA},j=function(S,L,k){var M=S.split("");return k&&_(M,k,{hiLevel:T}),M.reverse(),L&&L.reverse(),M.join("")},_=function(S,L,k){var M,sA,rA,oA,tA,aA=-1,cA=S.length,QA=0,U=[],O=T?h:p,R=[];for(Q=!1,n=!1,i=!1,sA=0;sA<cA;sA++)R[sA]=P(S[sA]);for(rA=0;rA<cA;rA++){if(tA=QA,U[rA]=$(S,R,U,rA),M=240&(QA=O[tA][m[U[rA]]]),QA&=15,L[rA]=oA=O[QA][5],M>0)if(M===16){for(sA=aA;sA<rA;sA++)L[sA]=1;aA=-1}else aA=-1;if(O[QA][6])aA===-1&&(aA=rA);else if(aA>-1){for(sA=aA;sA<rA;sA++)L[sA]=oA;aA=-1}R[rA]==="B"&&(L[rA]=0),k.hiLevel|=oA}i&&function(V,J,AA){for(var fA=0;fA<AA;fA++)if(V[fA]==="S"){J[fA]=T;for(var hA=fA-1;hA>=0&&V[hA]==="WS";hA--)J[hA]=T}}(R,L,cA)},q=function(S,L,k,M,sA){if(!(sA.hiLevel<S)){if(S===1&&T===1&&!n)return L.reverse(),void(k&&k.reverse());for(var rA,oA,tA,aA,cA=L.length,QA=0;QA<cA;){if(M[QA]>=S){for(tA=QA+1;tA<cA&&M[tA]>=S;)tA++;for(aA=QA,oA=tA-1;aA<oA;aA++,oA--)rA=L[aA],L[aA]=L[oA],L[oA]=rA,k&&(rA=k[aA],k[aA]=k[oA],k[oA]=rA);QA=tA}QA++}}},iA=function(S,L,k){var M=S.split(""),sA={hiLevel:T};return k||(k=[]),_(M,k,sA),function(rA,oA,tA){if(tA.hiLevel!==0&&f)for(var aA,cA=0;cA<rA.length;cA++)oA[cA]===1&&(aA=F.indexOf(rA[cA]))>=0&&(rA[cA]=F[aA+1])}(M,k,sA),q(2,M,L,k,sA),q(1,M,L,k,sA),M.join("")};return this.__bidiEngine__.doBidiReorder=function(S,L,k){if(function(sA,rA){if(rA)for(var oA=0;oA<sA.length;oA++)rA[oA]=oA;s===void 0&&(s=G(sA)),u===void 0&&(u=G(sA))}(S,L),a||!o||u)if(a&&o&&s^u)T=s?1:0,S=j(S,L,k);else if(!a&&o&&u)T=s?1:0,S=iA(S,L,k),S=j(S,L);else if(!a||s||o||u){if(a&&!o&&s^u)S=j(S,L),s?(T=0,S=iA(S,L,k)):(T=1,S=iA(S,L,k),S=j(S,L));else if(a&&s&&!o&&u)T=1,S=iA(S,L,k),S=j(S,L);else if(!a&&!o&&s^u){var M=f;s?(T=1,S=iA(S,L,k),T=0,f=!1,S=iA(S,L,k),f=M):(T=0,S=iA(S,L,k),S=j(S,L),T=1,f=!1,S=iA(S,L,k),f=M,S=j(S,L))}}else T=0,S=iA(S,L,k);else T=s?1:0,S=iA(S,L,k);return S},this.__bidiEngine__.setOptions=function(S){S&&(a=S.isInputVisual,o=S.isOutputVisual,s=S.isInputRtl,u=S.isOutputRtl,f=S.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(t){var n=t.text,i=(t.x,t.y,t.options||{}),a=(t.mutex,i.lang,[]);if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var s=0;for(a=[],s=0;s<n.length;s+=1)Object.prototype.toString.call(n[s])==="[object Array]"?a.push([e.doBidiReorder(n[s][0]),n[s][1],n[s][2]]):a.push([e.doBidiReorder(n[s])]);t.text=a}else t.text=e.doBidiReorder(n);e.setOptions({isInputVisual:!0})}])}(ZA),ZA.API.TTFFont=function(){function r(A){var e;if(this.rawData=A,e=this.contents=new ci(A),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new uU(this),this.registerTTF()}return r.open=function(A){return new r(A)},r.prototype.parse=function(){return this.directory=new XQ(this.contents),this.head=new JQ(this),this.name=new rU(this),this.cmap=new mv(this),this.toUnicode={},this.hhea=new ZQ(this),this.maxp=new nU(this),this.hmtx=new iU(this),this.post=new eU(this),this.os2=new AU(this),this.loca=new lU(this),this.glyf=new aU(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]},r.prototype.registerTTF=function(){var A,e,t,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var a,s,o,u;for(u=[],a=0,s=(o=this.bbox).length;a<s;a++)A=o[a],u.push(Math.round(A*this.scaleFactor));return u}.call(this),this.stemV=0,this.post.exists?(t=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+t)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(A){var e;return((e=this.cmap.unicode)!=null?e.codeMap[A]:void 0)||0},r.prototype.widthOfGlyph=function(A){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*e},r.prototype.widthOfString=function(A,e,t){var n,i,a,s;for(a=0,i=0,s=(A=""+A).length;0<=s?i<s:i>s;i=0<=s?++i:--i)n=A.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+t*(1e3/e)||0;return a*(e/1e3)},r.prototype.lineHeight=function(A,e){var t;return e==null&&(e=!1),t=e?this.lineGap:0,(this.ascender+t-this.decender)/1e3*A},r}();var Xr,ci=function(){function r(A){this.data=A!=null?A:[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(A){return this.data[this.pos++]=A},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},r.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},r.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},r.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},r.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},r.prototype.readString=function(A){var e,t;for(t=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)t[e]=String.fromCharCode(this.readByte());return t.join("")},r.prototype.writeString=function(A){var e,t,n;for(n=[],e=0,t=A.length;0<=t?e<t:e>t;e=0<=t?++e:--e)n.push(this.writeByte(A.charCodeAt(e)));return n},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(A){return this.writeInt16(A)},r.prototype.readLongLong=function(){var A,e,t,n,i,a,s,o;return A=this.readByte(),e=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^e)+1099511627776*(255^t)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^s)+(255^o)+1):72057594037927940*A+281474976710656*e+1099511627776*t+4294967296*n+16777216*i+65536*a+256*s+o},r.prototype.writeLongLong=function(A){var e,t;return e=Math.floor(A/4294967296),t=4294967295&A,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(A){return this.writeInt32(A)},r.prototype.read=function(A){var e,t;for(e=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)e.push(this.readByte());return e},r.prototype.write=function(A){var e,t,n,i;for(i=[],t=0,n=A.length;t<n;t++)e=A[t],i.push(this.writeByte(e));return i},r}(),XQ=function(){var r;function A(e){var t,n,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return A.prototype.encode=function(e){var t,n,i,a,s,o,u,f,d,p,h,m,w;for(w in h=Object.keys(e).length,o=Math.log(2),d=16*Math.floor(Math.log(h)/o),a=Math.floor(d/o),f=16*h-d,(n=new ci).writeInt(this.scalarType),n.writeShort(h),n.writeShort(d),n.writeShort(a),n.writeShort(f),i=16*h,u=n.pos+i,s=null,m=[],e)for(p=e[w],n.writeString(w),n.writeInt(r(p)),n.writeInt(u),n.writeInt(p.length),m=m.concat(p),w==="head"&&(s=u),u+=p.length;u%4;)m.push(0),u++;return n.write(m),t=2981146554-r(n.data),n.pos=s+8,n.writeUInt32(t),n.data},r=function(e){var t,n,i,a;for(e=yv.call(e);e.length%4;)e.push(0);for(i=new ci(e),n=0,t=0,a=e.length;t<a;t=t+=4)n+=i.readUInt32();return 4294967295&n},A}(),YQ={}.hasOwnProperty,Bn=function(r,A){for(var e in A)YQ.call(A,e)&&(r[e]=A[e]);function t(){this.constructor=r}return t.prototype=A.prototype,r.prototype=new t,r.__super__=A.prototype,r};Xr=function(){function r(A){var e;this.file=A,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 r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r}();var JQ=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="head",A.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},A.prototype.encode=function(e){var t;return(t=new ci).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},A}(),wv=function(){function r(A,e){var t,n,i,a,s,o,u,f,d,p,h,m,w,F,y,Q,T;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=e+A.readInt(),d=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=A.readByte();break;case 4:for(h=A.readUInt16(),p=h/2,A.pos+=6,i=function(){var P,G;for(G=[],o=P=0;0<=p?P<p:P>p;o=0<=p?++P:--P)G.push(A.readUInt16());return G}(),A.pos+=2,w=function(){var P,G;for(G=[],o=P=0;0<=p?P<p:P>p;o=0<=p?++P:--P)G.push(A.readUInt16());return G}(),u=function(){var P,G;for(G=[],o=P=0;0<=p?P<p:P>p;o=0<=p?++P:--P)G.push(A.readUInt16());return G}(),f=function(){var P,G;for(G=[],o=P=0;0<=p?P<p:P>p;o=0<=p?++P:--P)G.push(A.readUInt16());return G}(),n=(this.length-A.pos+this.offset)/2,s=function(){var P,G;for(G=[],o=P=0;0<=n?P<n:P>n;o=0<=n?++P:--P)G.push(A.readUInt16());return G}(),o=y=0,T=i.length;y<T;o=++y)for(F=i[o],t=Q=m=w[o];m<=F?Q<=F:Q>=F;t=m<=F?++Q:--Q)f[o]===0?a=t+u[o]:(a=s[f[o]/2+(t-m)-(p-o)]||0)!==0&&(a+=u[o]),this.codeMap[t]=65535&a}A.pos=d}return r.encode=function(A,e){var t,n,i,a,s,o,u,f,d,p,h,m,w,F,y,Q,T,P,G,$,j,_,q,iA,S,L,k,M,sA,rA,oA,tA,aA,cA,QA,U,O,R,V,J,AA,fA,hA,EA,FA,NA;switch(M=new ci,a=Object.keys(A).sort(function(LA,VA){return LA-VA}),e){case"macroman":for(w=0,F=function(){var LA=[];for(m=0;m<256;++m)LA.push(0);return LA}(),Q={0:0},i={},sA=0,aA=a.length;sA<aA;sA++)Q[hA=A[n=a[sA]]]==null&&(Q[hA]=++w),i[n]={old:A[n],new:Q[A[n]]},F[n]=Q[A[n]];return M.writeUInt16(1),M.writeUInt16(0),M.writeUInt32(12),M.writeUInt16(0),M.writeUInt16(262),M.writeUInt16(0),M.write(F),{charMap:i,subtable:M.data,maxGlyphID:w+1};case"unicode":for(L=[],d=[],T=0,Q={},t={},y=u=null,rA=0,cA=a.length;rA<cA;rA++)Q[G=A[n=a[rA]]]==null&&(Q[G]=++T),t[n]={old:G,new:Q[G]},s=Q[G]-n,y!=null&&s===u||(y&&d.push(y),L.push(n),u=s),y=n;for(y&&d.push(y),d.push(65535),L.push(65535),iA=2*(q=L.length),_=2*Math.pow(Math.log(q)/Math.LN2,2),p=Math.log(_/2)/Math.LN2,j=2*q-_,o=[],$=[],h=[],m=oA=0,QA=L.length;oA<QA;m=++oA){if(S=L[m],f=d[m],S===65535){o.push(0),$.push(0);break}if(S-(k=t[S].new)>=32768)for(o.push(0),$.push(2*(h.length+q-m)),n=tA=S;S<=f?tA<=f:tA>=f;n=S<=f?++tA:--tA)h.push(t[n].new);else o.push(k-S),$.push(0)}for(M.writeUInt16(3),M.writeUInt16(1),M.writeUInt32(12),M.writeUInt16(4),M.writeUInt16(16+8*q+2*h.length),M.writeUInt16(0),M.writeUInt16(iA),M.writeUInt16(_),M.writeUInt16(p),M.writeUInt16(j),AA=0,U=d.length;AA<U;AA++)n=d[AA],M.writeUInt16(n);for(M.writeUInt16(0),fA=0,O=L.length;fA<O;fA++)n=L[fA],M.writeUInt16(n);for(EA=0,R=o.length;EA<R;EA++)s=o[EA],M.writeUInt16(s);for(FA=0,V=$.length;FA<V;FA++)P=$[FA],M.writeUInt16(P);for(NA=0,J=h.length;NA<J;NA++)w=h[NA],M.writeUInt16(w);return{charMap:t,subtable:M.data,maxGlyphID:T+1}}},r}(),mv=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="cmap",A.prototype.parse=function(e){var t,n,i;for(e.pos=this.offset,this.version=e.readUInt16(),i=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)t=new wv(e,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},A.encode=function(e,t){var n,i;return t==null&&(t="macroman"),n=wv.encode(e,t),(i=new ci).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},A}(),ZQ=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="hhea",A.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},A}(),AU=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="OS/2",A.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},A}(),eU=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="post",A.prototype.parse=function(e){var t,n,i;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var a;for(n=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],i=[];e.pos<this.offset+this.length;)t=e.readByte(),i.push(this.names.push(e.readString(t)));return i;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 196608:break;case 262144:return this.map=function(){var s,o,u;for(u=[],a=s=0,o=this.file.maxp.numGlyphs;0<=o?s<o:s>o;a=0<=o?++s:--s)u.push(e.readUInt32());return u}.call(this)}},A}(),tU=function(r,A){this.raw=r,this.length=r.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},rU=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="name",A.prototype.parse=function(e){var t,n,i,a,s,o,u,f,d,p,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),o=e.readShort(),n=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(u={},a=d=0,p=n.length;d<p;a=++d)i=n[a],e.pos=i.offset,f=e.readString(i.length),s=new tU(f,i),u[h=i.nameID]==null&&(u[h]=[]),u[i.nameID].push(s);this.strings=u,this.copyright=u[0],this.fontFamily=u[1],this.fontSubfamily=u[2],this.uniqueSubfamily=u[3],this.fontName=u[4],this.version=u[5];try{this.postscriptName=u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(m){this.postscriptName=u[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=u[7],this.manufacturer=u[8],this.designer=u[9],this.description=u[10],this.vendorUrl=u[11],this.designerUrl=u[12],this.license=u[13],this.licenseUrl=u[14],this.preferredFamily=u[15],this.preferredSubfamily=u[17],this.compatibleFull=u[18],this.sampleText=u[19]},A}(),nU=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="maxp",A.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},A}(),iU=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="hmtx",A.prototype.parse=function(e){var t,n,i,a,s,o,u;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var f,d;for(d=[],t=f=0;0<=i?f<i:f>i;t=0<=i?++f:--f)d.push(e.readInt16());return d}(),this.widths=function(){var f,d,p,h;for(h=[],f=0,d=(p=this.metrics).length;f<d;f++)a=p[f],h.push(a.advance);return h}.call(this),n=this.widths[this.widths.length-1],u=[],t=s=0;0<=i?s<i:s>i;t=0<=i?++s:--s)u.push(this.widths.push(n));return u},A.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},A}(),yv=[].slice,aU=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(e){var t,n,i,a,s,o,u,f,d,p;return e in this.cache?this.cache[e]:(a=this.file.loca,t=this.file.contents,n=a.indexOf(e),(i=a.lengthOf(e))===0?this.cache[e]=null:(t.pos=this.offset+n,s=(o=new ci(t.read(i))).readShort(),f=o.readShort(),p=o.readShort(),u=o.readShort(),d=o.readShort(),this.cache[e]=s===-1?new oU(o,f,p,u,d):new sU(o,s,f,p,u,d),this.cache[e]))},A.prototype.encode=function(e,t,n){var i,a,s,o,u;for(s=[],a=[],o=0,u=t.length;o<u;o++)i=e[t[o]],a.push(s.length),i&&(s=s.concat(i.encode(n)));return a.push(s.length),{table:s,offsets:a}},A}(),sU=function(){function r(A,e,t,n,i,a){this.raw=A,this.numberOfContours=e,this.xMin=t,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),oU=function(){function r(A,e,t,n,i){var a,s;for(this.raw=A,this.xMin=e,this.yMin=t,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;s=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&s;)a.pos+=1&s?4:2,128&s?a.pos+=8:64&s?a.pos+=4:8&s&&(a.pos+=2)}return r.prototype.encode=function(){var A,e,t;for(e=new ci(yv.call(this.raw.data)),A=0,t=this.glyphIDs.length;A<t;++A)e.pos=this.glyphOffsets[A];return e.data},r}(),lU=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return Bn(A,Xr),A.prototype.tag="loca",A.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*e.readUInt16());return a}.call(this):function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(e.readUInt32());return a}.call(this)},A.prototype.indexOf=function(e){return this.offsets[e]},A.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},A.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,s=0;s<n.length;++s)if(n[s]=i,a<t.length&&t[a]==s){++a,n[s]=i;var o=this.offsets[s],u=this.offsets[s+1]-o;u>0&&(i+=u)}for(var f=new Array(4*n.length),d=0;d<n.length;++d)f[4*d+3]=255&n[d],f[4*d+2]=(65280&n[d])>>8,f[4*d+1]=(16711680&n[d])>>16,f[4*d]=(4278190080&n[d])>>24;return f},A}(),uU=function(){function r(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var A,e,t,n,i;for(e in n=this.font.cmap.tables[0].codeMap,A={},i=this.subset)t=i[e],A[e]=n[t];return A},r.prototype.glyphsFor=function(A){var e,t,n,i,a,s,o;for(n={},a=0,s=A.length;a<s;a++)n[i=A[a]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(t=n[i])!=null&&t.compound&&e.push.apply(e,t.glyphIDs);if(e.length>0)for(i in o=this.glyphsFor(e))t=o[i],n[i]=t;return n},r.prototype.encode=function(A,e){var t,n,i,a,s,o,u,f,d,p,h,m,w,F,y;for(n in t=mv.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(A),h={0:0},y=t.charMap)h[(o=y[n]).old]=o.new;for(m in p=t.maxGlyphID,a)m in h||(h[m]=p++);return f=function(Q){var T,P;for(T in P={},Q)P[Q[T]]=T;return P}(h),d=Object.keys(f).sort(function(Q,T){return Q-T}),w=function(){var Q,T,P;for(P=[],Q=0,T=d.length;Q<T;Q++)s=d[Q],P.push(f[s]);return P}(),i=this.font.glyf.encode(a,w,h),u=this.font.loca.encode(i.offsets,w),F={cmap:this.font.cmap.raw(),glyf:i.table,loca:u,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&&(F["OS/2"]=this.font.os2.raw()),this.font.directory.encode(F)},r}();ZA.API.PDFObject=function(){var r;function A(){}return r=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},A.convert=function(e){var t,n,i,a;if(Array.isArray(e))return"["+function(){var s,o,u;for(u=[],s=0,o=e.length;s<o;s++)t=e[s],u.push(A.convert(t));return u}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+r(e.getUTCFullYear(),4)+r(e.getUTCMonth(),2)+r(e.getUTCDate(),2)+r(e.getUTCHours(),2)+r(e.getUTCMinutes(),2)+r(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(n in i=["<<"],e)a=e[n],i.push("/"+n+" "+A.convert(a));return i.push(">>"),i.join(`
|
|
802
|
+
`)}return""+e},A}();const cU=Object.freeze(Object.defineProperty({__proto__:null,AcroFormAppearance:jA,AcroFormButton:Ct,AcroFormCheckBox:zs,AcroFormChoiceField:Mi,AcroFormComboBox:Ki,AcroFormEditBox:qs,AcroFormListBox:ki,AcroFormPasswordField:Xs,AcroFormPushButton:Ws,AcroFormRadioButton:ji,AcroFormTextField:ui,GState:$s,ShadingPattern:oi,TilingPattern:Di,jsPDF:ZA},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function fi(r){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},fi(r)}function hh(r,A){return hh=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},hh(r,A)}function fU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}function Zl(r,A,e){return fU()?Zl=Reflect.construct:Zl=function(n,i,a){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(n,s),u=new o;return a&&hh(u,a.prototype),u},Zl.apply(null,arguments)}function Yr(r){return hU(r)||dU(r)||gU(r)||pU()}function hU(r){if(Array.isArray(r))return dh(r)}function dU(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function gU(r,A){if(r){if(typeof r=="string")return dh(r,A);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return dh(r,A)}}function dh(r,A){(A==null||A>r.length)&&(A=r.length);for(var e=0,t=new Array(A);e<A;e++)t[e]=r[e];return t}function pU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
803
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var vU=Object.hasOwnProperty,bv=Object.setPrototypeOf,BU=Object.isFrozen,wU=Object.getPrototypeOf,mU=Object.getOwnPropertyDescriptor,Zt=Object.freeze,Tr=Object.seal,yU=Object.create,Cv=typeof Reflect!="undefined"&&Reflect,Au=Cv.apply,gh=Cv.construct;Au||(Au=function(A,e,t){return A.apply(e,t)}),Zt||(Zt=function(A){return A}),Tr||(Tr=function(A){return A}),gh||(gh=function(A,e){return Zl(A,Yr(e))});var bU=Or(Array.prototype.forEach),Fv=Or(Array.prototype.pop),Ys=Or(Array.prototype.push),eu=Or(String.prototype.toLowerCase),ph=Or(String.prototype.toString),Qv=Or(String.prototype.match),Jr=Or(String.prototype.replace),CU=Or(String.prototype.indexOf),FU=Or(String.prototype.trim),_t=Or(RegExp.prototype.test),vh=QU(TypeError);function Or(r){return function(A){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return Au(r,A,t)}}function QU(r){return function(){for(var A=arguments.length,e=new Array(A),t=0;t<A;t++)e[t]=arguments[t];return gh(r,e)}}function fe(r,A,e){var t;e=(t=e)!==null&&t!==void 0?t:eu,bv&&bv(r,null);for(var n=A.length;n--;){var i=A[n];if(typeof i=="string"){var a=e(i);a!==i&&(BU(A)||(A[n]=a),i=a)}r[i]=!0}return r}function Vi(r){var A=yU(null),e;for(e in r)Au(vU,r,[e])===!0&&(A[e]=r[e]);return A}function tu(r,A){for(;r!==null;){var e=mU(r,A);if(e){if(e.get)return Or(e.get);if(typeof e.value=="function")return Or(e.value)}r=wU(r)}function t(n){return console.warn("fallback value for",n),null}return t}var Uv=Zt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Bh=Zt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wh=Zt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),UU=Zt(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mh=Zt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),EU=Zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ev=Zt(["#text"]),xv=Zt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),yh=Zt(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Iv=Zt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ru=Zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xU=Tr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),IU=Tr(/<%[\w\W]*|[\w\W]*%>/gm),SU=Tr(/\${[\w\W]*}/gm),LU=Tr(/^data-[\-\w.\u00B7-\uFFFF]+$/),NU=Tr(/^aria-[\-\w]+$/),TU=Tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),OU=Tr(/^(?:\w+script|data):/i),HU=Tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_U=Tr(/^html$/i),PU=Tr(/^[a-z][.\w]*(-[.\w]+)+$/i),DU=function(){return typeof window=="undefined"?null:window},RU=function(A,e){if(fi(A)!=="object"||typeof A.createPolicy!="function")return null;var t=null,n="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(n)&&(t=e.currentScript.getAttribute(n));var i="dompurify"+(t?"#"+t:"");try{return A.createPolicy(i,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Sv(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DU(),A=function(z){return Sv(z)};if(A.version="2.5.8",A.removed=[],!r||!r.document||r.document.nodeType!==9)return A.isSupported=!1,A;var e=r.document,t=r.document,n=r.DocumentFragment,i=r.HTMLTemplateElement,a=r.Node,s=r.Element,o=r.NodeFilter,u=r.NamedNodeMap,f=u===void 0?r.NamedNodeMap||r.MozNamedAttrMap:u,d=r.HTMLFormElement,p=r.DOMParser,h=r.trustedTypes,m=s.prototype,w=tu(m,"cloneNode"),F=tu(m,"nextSibling"),y=tu(m,"childNodes"),Q=tu(m,"parentNode");if(typeof i=="function"){var T=t.createElement("template");T.content&&T.content.ownerDocument&&(t=T.content.ownerDocument)}var P=RU(h,e),G=P?P.createHTML(""):"",$=t,j=$.implementation,_=$.createNodeIterator,q=$.createDocumentFragment,iA=$.getElementsByTagName,S=e.importNode,L={};try{L=Vi(t).documentMode?t.documentMode:{}}catch($A){}var k={};A.isSupported=typeof Q=="function"&&j&&j.createHTMLDocument!==void 0&&L!==9;var M=xU,sA=IU,rA=SU,oA=LU,tA=NU,aA=OU,cA=HU,QA=PU,U=TU,O=null,R=fe({},[].concat(Yr(Uv),Yr(Bh),Yr(wh),Yr(mh),Yr(Ev))),V=null,J=fe({},[].concat(Yr(xv),Yr(yh),Yr(Iv),Yr(ru))),AA=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fA=null,hA=null,EA=!0,FA=!0,NA=!1,LA=!0,VA=!1,dA=!0,K=!1,Ae=!1,kA=!1,yA=!1,xA=!1,SA=!1,IA=!0,KA=!1,qA="user-content-",te=!0,re=!1,se={},he=null,zA=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ne=null,TA=fe({},["audio","video","img","source","image","track"]),Ke=null,de=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ft="http://www.w3.org/1998/Math/MathML",we="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml",lt=ge,pe=!1,zt=null,Ie=fe({},[Ft,we,ge],ph),qe,De=["application/xhtml+xml","text/html"],$e="text/html",GA,ve=null,Rn=t.createElement("form"),Bt=function(z){return z instanceof RegExp||z instanceof Function},fr=function(z){ve&&ve===z||((!z||fi(z)!=="object")&&(z={}),z=Vi(z),qe=De.indexOf(z.PARSER_MEDIA_TYPE)===-1?qe=$e:qe=z.PARSER_MEDIA_TYPE,GA=qe==="application/xhtml+xml"?ph:eu,O="ALLOWED_TAGS"in z?fe({},z.ALLOWED_TAGS,GA):R,V="ALLOWED_ATTR"in z?fe({},z.ALLOWED_ATTR,GA):J,zt="ALLOWED_NAMESPACES"in z?fe({},z.ALLOWED_NAMESPACES,ph):Ie,Ke="ADD_URI_SAFE_ATTR"in z?fe(Vi(de),z.ADD_URI_SAFE_ATTR,GA):de,ne="ADD_DATA_URI_TAGS"in z?fe(Vi(TA),z.ADD_DATA_URI_TAGS,GA):TA,he="FORBID_CONTENTS"in z?fe({},z.FORBID_CONTENTS,GA):zA,fA="FORBID_TAGS"in z?fe({},z.FORBID_TAGS,GA):{},hA="FORBID_ATTR"in z?fe({},z.FORBID_ATTR,GA):{},se="USE_PROFILES"in z?z.USE_PROFILES:!1,EA=z.ALLOW_ARIA_ATTR!==!1,FA=z.ALLOW_DATA_ATTR!==!1,NA=z.ALLOW_UNKNOWN_PROTOCOLS||!1,LA=z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,VA=z.SAFE_FOR_TEMPLATES||!1,dA=z.SAFE_FOR_XML!==!1,K=z.WHOLE_DOCUMENT||!1,yA=z.RETURN_DOM||!1,xA=z.RETURN_DOM_FRAGMENT||!1,SA=z.RETURN_TRUSTED_TYPE||!1,kA=z.FORCE_BODY||!1,IA=z.SANITIZE_DOM!==!1,KA=z.SANITIZE_NAMED_PROPS||!1,te=z.KEEP_CONTENT!==!1,re=z.IN_PLACE||!1,U=z.ALLOWED_URI_REGEXP||U,lt=z.NAMESPACE||ge,AA=z.CUSTOM_ELEMENT_HANDLING||{},z.CUSTOM_ELEMENT_HANDLING&&Bt(z.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(AA.tagNameCheck=z.CUSTOM_ELEMENT_HANDLING.tagNameCheck),z.CUSTOM_ELEMENT_HANDLING&&Bt(z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(AA.attributeNameCheck=z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),z.CUSTOM_ELEMENT_HANDLING&&typeof z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(AA.allowCustomizedBuiltInElements=z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),VA&&(FA=!1),xA&&(yA=!0),se&&(O=fe({},Yr(Ev)),V=[],se.html===!0&&(fe(O,Uv),fe(V,xv)),se.svg===!0&&(fe(O,Bh),fe(V,yh),fe(V,ru)),se.svgFilters===!0&&(fe(O,wh),fe(V,yh),fe(V,ru)),se.mathMl===!0&&(fe(O,mh),fe(V,Iv),fe(V,ru))),z.ADD_TAGS&&(O===R&&(O=Vi(O)),fe(O,z.ADD_TAGS,GA)),z.ADD_ATTR&&(V===J&&(V=Vi(V)),fe(V,z.ADD_ATTR,GA)),z.ADD_URI_SAFE_ATTR&&fe(Ke,z.ADD_URI_SAFE_ATTR,GA),z.FORBID_CONTENTS&&(he===zA&&(he=Vi(he)),fe(he,z.FORBID_CONTENTS,GA)),te&&(O["#text"]=!0),K&&fe(O,["html","head","body"]),O.table&&(fe(O,["tbody"]),delete fA.tbody),Zt&&Zt(z),ve=z)},yr=fe({},["mi","mo","mn","ms","mtext"]),YA=fe({},["annotation-xml"]),br=fe({},["title","style","font","a","script"]),tr=fe({},Bh);fe(tr,wh),fe(tr,UU);var xt=fe({},mh);fe(xt,EU);var ut=function(z){var UA=Q(z);(!UA||!UA.tagName)&&(UA={namespaceURI:lt,tagName:"template"});var OA=eu(z.tagName),ye=eu(UA.tagName);return zt[z.namespaceURI]?z.namespaceURI===we?UA.namespaceURI===ge?OA==="svg":UA.namespaceURI===Ft?OA==="svg"&&(ye==="annotation-xml"||yr[ye]):!!tr[OA]:z.namespaceURI===Ft?UA.namespaceURI===ge?OA==="math":UA.namespaceURI===we?OA==="math"&&YA[ye]:!!xt[OA]:z.namespaceURI===ge?UA.namespaceURI===we&&!YA[ye]||UA.namespaceURI===Ft&&!yr[ye]?!1:!xt[OA]&&(br[OA]||!tr[OA]):!!(qe==="application/xhtml+xml"&&zt[z.namespaceURI]):!1},Ce=function(z){Ys(A.removed,{element:z});try{z.parentNode.removeChild(z)}catch(UA){try{z.outerHTML=G}catch(OA){z.remove()}}},It=function(z,UA){try{Ys(A.removed,{attribute:UA.getAttributeNode(z),from:UA})}catch(OA){Ys(A.removed,{attribute:null,from:UA})}if(UA.removeAttribute(z),z==="is"&&!V[z])if(yA||xA)try{Ce(UA)}catch(OA){}else try{UA.setAttribute(z,"")}catch(OA){}},Mn=function(z){var UA,OA;if(kA)z="<remove></remove>"+z;else{var ye=Qv(z,/^[\r\n\t ]+/);OA=ye&&ye[0]}qe==="application/xhtml+xml"&<===ge&&(z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+z+"</body></html>");var St=P?P.createHTML(z):z;if(lt===ge)try{UA=new p().parseFromString(St,qe)}catch(At){}if(!UA||!UA.documentElement){UA=j.createDocument(lt,"template",null);try{UA.documentElement.innerHTML=pe?G:St}catch(At){}}var We=UA.body||UA.documentElement;return z&&OA&&We.insertBefore(t.createTextNode(OA),We.childNodes[0]||null),lt===ge?iA.call(UA,K?"html":"body")[0]:K?UA.documentElement:We},_r=function(z){return _.call(z.ownerDocument||z,z,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null,!1)},rr=function(z){return z instanceof d&&(typeof z.nodeName!="string"||typeof z.textContent!="string"||typeof z.removeChild!="function"||!(z.attributes instanceof f)||typeof z.removeAttribute!="function"||typeof z.setAttribute!="function"||typeof z.namespaceURI!="string"||typeof z.insertBefore!="function"||typeof z.hasChildNodes!="function")},Dt=function(z){return fi(a)==="object"?z instanceof a:z&&fi(z)==="object"&&typeof z.nodeType=="number"&&typeof z.nodeName=="string"},ct=function(z,UA,OA){k[z]&&bU(k[z],function(ye){ye.call(A,UA,OA,ve)})},Cr=function(z){var UA;if(ct("beforeSanitizeElements",z,null),rr(z)||_t(/[\u0080-\uFFFF]/,z.nodeName))return Ce(z),!0;var OA=GA(z.nodeName);if(ct("uponSanitizeElement",z,{tagName:OA,allowedTags:O}),z.hasChildNodes()&&!Dt(z.firstElementChild)&&(!Dt(z.content)||!Dt(z.content.firstElementChild))&&_t(/<[/\w]/g,z.innerHTML)&&_t(/<[/\w]/g,z.textContent)||OA==="select"&&_t(/<template/i,z.innerHTML)||z.nodeType===7||dA&&z.nodeType===8&&_t(/<[/\w]/g,z.data))return Ce(z),!0;if(!O[OA]||fA[OA]){if(!fA[OA]&&Fr(OA)&&(AA.tagNameCheck instanceof RegExp&&_t(AA.tagNameCheck,OA)||AA.tagNameCheck instanceof Function&&AA.tagNameCheck(OA)))return!1;if(te&&!he[OA]){var ye=Q(z)||z.parentNode,St=y(z)||z.childNodes;if(St&&ye)for(var We=St.length,At=We-1;At>=0;--At){var an=w(St[At],!0);an.__removalCount=(z.__removalCount||0)+1,ye.insertBefore(an,F(z))}}return Ce(z),!0}return z instanceof s&&!ut(z)||(OA==="noscript"||OA==="noembed"||OA==="noframes")&&_t(/<\/no(script|embed|frames)/i,z.innerHTML)?(Ce(z),!0):(VA&&z.nodeType===3&&(UA=z.textContent,UA=Jr(UA,M," "),UA=Jr(UA,sA," "),UA=Jr(UA,rA," "),z.textContent!==UA&&(Ys(A.removed,{element:z.cloneNode()}),z.textContent=UA)),ct("afterSanitizeElements",z,null),!1)},nr=function(z,UA,OA){if(IA&&(UA==="id"||UA==="name")&&(OA in t||OA in Rn))return!1;if(!(FA&&!hA[UA]&&_t(oA,UA))){if(!(EA&&_t(tA,UA))){if(!V[UA]||hA[UA]){if(!(Fr(z)&&(AA.tagNameCheck instanceof RegExp&&_t(AA.tagNameCheck,z)||AA.tagNameCheck instanceof Function&&AA.tagNameCheck(z))&&(AA.attributeNameCheck instanceof RegExp&&_t(AA.attributeNameCheck,UA)||AA.attributeNameCheck instanceof Function&&AA.attributeNameCheck(UA))||UA==="is"&&AA.allowCustomizedBuiltInElements&&(AA.tagNameCheck instanceof RegExp&&_t(AA.tagNameCheck,OA)||AA.tagNameCheck instanceof Function&&AA.tagNameCheck(OA))))return!1}else if(!Ke[UA]){if(!_t(U,Jr(OA,cA,""))){if(!((UA==="src"||UA==="xlink:href"||UA==="href")&&z!=="script"&&CU(OA,"data:")===0&&ne[z])){if(!(NA&&!_t(aA,Jr(OA,cA,"")))){if(OA)return!1}}}}}}return!0},Fr=function(z){return z!=="annotation-xml"&&Qv(z,QA)},yn=function(z){var UA,OA,ye,St;ct("beforeSanitizeAttributes",z,null);var We=z.attributes;if(!(!We||rr(z))){var At={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V};for(St=We.length;St--;){UA=We[St];var an=UA,je=an.name,na=an.namespaceURI;if(OA=je==="value"?UA.value:FU(UA.value),ye=GA(je),At.attrName=ye,At.attrValue=OA,At.keepAttr=!0,At.forceKeepAttr=void 0,ct("uponSanitizeAttribute",z,At),OA=At.attrValue,!At.forceKeepAttr&&(It(je,z),!!At.keepAttr)){if(!LA&&_t(/\/>/i,OA)){It(je,z);continue}VA&&(OA=Jr(OA,M," "),OA=Jr(OA,sA," "),OA=Jr(OA,rA," "));var ia=GA(z.nodeName);if(nr(ia,ye,OA)){if(KA&&(ye==="id"||ye==="name")&&(It(je,z),OA=qA+OA),dA&&_t(/((--!?|])>)|<\/(style|title)/i,OA)){It(je,z);continue}if(P&&fi(h)==="object"&&typeof h.getAttributeType=="function"&&!na)switch(h.getAttributeType(ia,ye)){case"TrustedHTML":{OA=P.createHTML(OA);break}case"TrustedScriptURL":{OA=P.createScriptURL(OA);break}}try{na?z.setAttributeNS(na,je,OA):z.setAttribute(je,OA),rr(z)?Ce(z):Fv(A.removed)}catch(rc){}}}}ct("afterSanitizeAttributes",z,null)}},vi=function $A(z){var UA,OA=_r(z);for(ct("beforeSanitizeShadowDOM",z,null);UA=OA.nextNode();)ct("uponSanitizeShadowNode",UA,null),Cr(UA),yn(UA),UA.content instanceof n&&$A(UA.content);ct("afterSanitizeShadowDOM",z,null)};return A.sanitize=function($A){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},UA,OA,ye,St,We;if(pe=!$A,pe&&($A="<!-->"),typeof $A!="string"&&!Dt($A))if(typeof $A.toString=="function"){if($A=$A.toString(),typeof $A!="string")throw vh("dirty is not a string, aborting")}else throw vh("toString is not a function");if(!A.isSupported){if(fi(r.toStaticHTML)==="object"||typeof r.toStaticHTML=="function"){if(typeof $A=="string")return r.toStaticHTML($A);if(Dt($A))return r.toStaticHTML($A.outerHTML)}return $A}if(Ae||fr(z),A.removed=[],typeof $A=="string"&&(re=!1),re){if($A.nodeName){var At=GA($A.nodeName);if(!O[At]||fA[At])throw vh("root node is forbidden and cannot be sanitized in-place")}}else if($A instanceof a)UA=Mn("<!---->"),OA=UA.ownerDocument.importNode($A,!0),OA.nodeType===1&&OA.nodeName==="BODY"||OA.nodeName==="HTML"?UA=OA:UA.appendChild(OA);else{if(!yA&&!VA&&!K&&$A.indexOf("<")===-1)return P&&SA?P.createHTML($A):$A;if(UA=Mn($A),!UA)return yA?null:SA?G:""}UA&&kA&&Ce(UA.firstChild);for(var an=_r(re?$A:UA);ye=an.nextNode();)ye.nodeType===3&&ye===St||(Cr(ye),yn(ye),ye.content instanceof n&&vi(ye.content),St=ye);if(St=null,re)return $A;if(yA){if(xA)for(We=q.call(UA.ownerDocument);UA.firstChild;)We.appendChild(UA.firstChild);else We=UA;return(V.shadowroot||V.shadowrootmod)&&(We=S.call(e,We,!0)),We}var je=K?UA.outerHTML:UA.innerHTML;return K&&O["!doctype"]&&UA.ownerDocument&&UA.ownerDocument.doctype&&UA.ownerDocument.doctype.name&&_t(_U,UA.ownerDocument.doctype.name)&&(je="<!DOCTYPE "+UA.ownerDocument.doctype.name+`>
|
|
804
|
+
`+je),VA&&(je=Jr(je,M," "),je=Jr(je,sA," "),je=Jr(je,rA," ")),P&&SA?P.createHTML(je):je},A.setConfig=function($A){fr($A),Ae=!0},A.clearConfig=function(){ve=null,Ae=!1},A.isValidAttribute=function($A,z,UA){ve||fr({});var OA=GA($A),ye=GA(z);return nr(OA,ye,UA)},A.addHook=function($A,z){typeof z=="function"&&(k[$A]=k[$A]||[],Ys(k[$A],z))},A.removeHook=function($A){if(k[$A])return Fv(k[$A])},A.removeHooks=function($A){k[$A]&&(k[$A]=[])},A.removeAllHooks=function(){k={}},A}var MU=Sv();const kU=Object.freeze(Object.defineProperty({__proto__:null,default:MU},Symbol.toStringTag,{value:"Module"}));var Oa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Lv(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Js=function(r){return r&&r.Math===Math&&r},Ge=Js(typeof globalThis=="object"&&globalThis)||Js(typeof window=="object"&&window)||Js(typeof self=="object"&&self)||Js(typeof Oa=="object"&&Oa)||Js(typeof Oa=="object"&&Oa)||function(){return this}()||Function("return this")(),Zs={},Ye=function(r){try{return!!r()}catch(A){return!0}},KU=Ye,Zr=!KU(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),jU=Ye,nu=!jU(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),VU=nu,iu=Function.prototype.call,Pt=VU?iu.bind(iu):function(){return iu.apply(iu,arguments)},Nv={},Tv={}.propertyIsEnumerable,Ov=Object.getOwnPropertyDescriptor,GU=Ov&&!Tv.call({1:2},1);Nv.f=GU?function(A){var e=Ov(this,A);return!!e&&e.enumerable}:Tv;var bh=function(r,A){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:A}},Hv=nu,_v=Function.prototype,Ch=_v.call,$U=Hv&&_v.bind.bind(Ch,Ch),Je=Hv?$U:function(r){return function(){return Ch.apply(r,arguments)}},Pv=Je,qU=Pv({}.toString),WU=Pv("".slice),Gi=function(r){return WU(qU(r),8,-1)},zU=Je,XU=Ye,YU=Gi,Fh=Object,JU=zU("".split),Dv=XU(function(){return!Fh("z").propertyIsEnumerable(0)})?function(r){return YU(r)==="String"?JU(r,""):Fh(r)}:Fh,au=function(r){return r==null},ZU=au,A3=TypeError,An=function(r){if(ZU(r))throw new A3("Can't call method on "+r);return r},e3=Dv,t3=An,Ao=function(r){return e3(t3(r))},Qh=typeof document=="object"&&document.all,ot=typeof Qh=="undefined"&&Qh!==void 0?function(r){return typeof r=="function"||r===Qh}:function(r){return typeof r=="function"},r3=ot,ur=function(r){return typeof r=="object"?r!==null:r3(r)},Uh=Ge,n3=ot,i3=function(r){return n3(r)?r:void 0},$i=function(r,A){return arguments.length<2?i3(Uh[r]):Uh[r]&&Uh[r][A]},a3=Je,su=a3({}.isPrototypeOf),s3=Ge,Rv=s3.navigator,Mv=Rv&&Rv.userAgent,eo=Mv?String(Mv):"",kv=Ge,Eh=eo,Kv=kv.process,jv=kv.Deno,Vv=Kv&&Kv.versions||jv&&jv.version,Gv=Vv&&Vv.v8,en,ou;Gv&&(en=Gv.split("."),ou=en[0]>0&&en[0]<4?1:+(en[0]+en[1])),!ou&&Eh&&(en=Eh.match(/Edge\/(\d+)/),(!en||en[1]>=74)&&(en=Eh.match(/Chrome\/(\d+)/),en&&(ou=+en[1])));var xh=ou,$v=xh,o3=Ye,l3=Ge,u3=l3.String,qv=!!Object.getOwnPropertySymbols&&!o3(function(){var r=Symbol("symbol detection");return!u3(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&$v&&$v<41}),c3=qv,Wv=c3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",f3=$i,h3=ot,d3=su,g3=Wv,p3=Object,zv=g3?function(r){return typeof r=="symbol"}:function(r){var A=f3("Symbol");return h3(A)&&d3(A.prototype,p3(r))},v3=String,lu=function(r){try{return v3(r)}catch(A){return"Object"}},B3=ot,w3=lu,m3=TypeError,Ln=function(r){if(B3(r))return r;throw new m3(w3(r)+" is not a function")},y3=Ln,b3=au,Ha=function(r,A){var e=r[A];return b3(e)?void 0:y3(e)},Ih=Pt,Sh=ot,Lh=ur,C3=TypeError,F3=function(r,A){var e,t;if(A==="string"&&Sh(e=r.toString)&&!Lh(t=Ih(e,r))||Sh(e=r.valueOf)&&!Lh(t=Ih(e,r))||A!=="string"&&Sh(e=r.toString)&&!Lh(t=Ih(e,r)))return t;throw new C3("Can't convert object to primitive value")},Xv={exports:{}},Yv=Ge,Q3=Object.defineProperty,Nh=function(r,A){try{Q3(Yv,r,{value:A,configurable:!0,writable:!0})}catch(e){Yv[r]=A}return A},U3=Ge,E3=Nh,Jv="__core-js_shared__",Zv=Xv.exports=U3[Jv]||E3(Jv,{});(Zv.versions||(Zv.versions=[])).push({version:"3.46.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Th=Xv.exports,A2=Th,Oh=function(r,A){return A2[r]||(A2[r]=A||{})},x3=An,I3=Object,uu=function(r){return I3(x3(r))},S3=Je,L3=uu,N3=S3({}.hasOwnProperty),tn=Object.hasOwn||function(A,e){return N3(L3(A),e)},T3=Je,O3=0,H3=Math.random(),_3=T3(1.1.toString),e2=function(r){return"Symbol("+(r===void 0?"":r)+")_"+_3(++O3+H3,36)},P3=Ge,D3=Oh,t2=tn,R3=e2,M3=qv,k3=Wv,_a=P3.Symbol,Hh=D3("wks"),K3=k3?_a.for||_a:_a&&_a.withoutSetter||R3,Et=function(r){return t2(Hh,r)||(Hh[r]=M3&&t2(_a,r)?_a[r]:K3("Symbol."+r)),Hh[r]},j3=Pt,r2=ur,n2=zv,V3=Ha,G3=F3,$3=Et,q3=TypeError,W3=$3("toPrimitive"),z3=function(r,A){if(!r2(r)||n2(r))return r;var e=V3(r,W3),t;if(e){if(A===void 0&&(A="default"),t=j3(e,r,A),!r2(t)||n2(t))return t;throw new q3("Can't convert object to primitive value")}return A===void 0&&(A="number"),G3(r,A)},X3=z3,Y3=zv,i2=function(r){var A=X3(r,"string");return Y3(A)?A:A+""},J3=Ge,a2=ur,_h=J3.document,Z3=a2(_h)&&a2(_h.createElement),cu=function(r){return Z3?_h.createElement(r):{}},AE=Zr,eE=Ye,tE=cu,s2=!AE&&!eE(function(){return Object.defineProperty(tE("div"),"a",{get:function(){return 7}}).a!==7}),rE=Zr,nE=Pt,iE=Nv,aE=bh,sE=Ao,oE=i2,lE=tn,uE=s2,o2=Object.getOwnPropertyDescriptor;Zs.f=rE?o2:function(A,e){if(A=sE(A),e=oE(e),uE)try{return o2(A,e)}catch(t){}if(lE(A,e))return aE(!nE(iE.f,A,e),A[e])};var Nn={},cE=Zr,fE=Ye,l2=cE&&fE(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),hE=ur,dE=String,gE=TypeError,Ar=function(r){if(hE(r))return r;throw new gE(dE(r)+" is not an object")},pE=Zr,vE=s2,BE=l2,fu=Ar,u2=i2,wE=TypeError,Ph=Object.defineProperty,mE=Object.getOwnPropertyDescriptor,Dh="enumerable",Rh="configurable",Mh="writable";Nn.f=pE?BE?function(A,e,t){if(fu(A),e=u2(e),fu(t),typeof A=="function"&&e==="prototype"&&"value"in t&&Mh in t&&!t[Mh]){var n=mE(A,e);n&&n[Mh]&&(A[e]=t.value,t={configurable:Rh in t?t[Rh]:n[Rh],enumerable:Dh in t?t[Dh]:n[Dh],writable:!1})}return Ph(A,e,t)}:Ph:function(A,e,t){if(fu(A),e=u2(e),fu(t),vE)try{return Ph(A,e,t)}catch(n){}if("get"in t||"set"in t)throw new wE("Accessors not supported");return"value"in t&&(A[e]=t.value),A};var yE=Zr,bE=Nn,CE=bh,to=yE?function(r,A,e){return bE.f(r,A,CE(1,e))}:function(r,A,e){return r[A]=e,r},c2={exports:{}},kh=Zr,FE=tn,f2=Function.prototype,QE=kh&&Object.getOwnPropertyDescriptor,h2=FE(f2,"name"),UE=h2&&function(){}.name==="something",EE=h2&&(!kh||kh&&QE(f2,"name").configurable),hu={PROPER:UE,CONFIGURABLE:EE},xE=Je,IE=ot,Kh=Th,SE=xE(Function.toString);IE(Kh.inspectSource)||(Kh.inspectSource=function(r){return SE(r)});var jh=Kh.inspectSource,LE=Ge,NE=ot,d2=LE.WeakMap,TE=NE(d2)&&/native code/.test(String(d2)),OE=Oh,HE=e2,g2=OE("keys"),Vh=function(r){return g2[r]||(g2[r]=HE(r))},Gh={},_E=TE,p2=Ge,PE=ur,DE=to,$h=tn,qh=Th,RE=Vh,ME=Gh,v2="Object already initialized",Wh=p2.TypeError,kE=p2.WeakMap,du,ro,gu,KE=function(r){return gu(r)?ro(r):du(r,{})},jE=function(r){return function(A){var e;if(!PE(A)||(e=ro(A)).type!==r)throw new Wh("Incompatible receiver, "+r+" required");return e}};if(_E||qh.state){var wn=qh.state||(qh.state=new kE);wn.get=wn.get,wn.has=wn.has,wn.set=wn.set,du=function(r,A){if(wn.has(r))throw new Wh(v2);return A.facade=r,wn.set(r,A),A},ro=function(r){return wn.get(r)||{}},gu=function(r){return wn.has(r)}}else{var Pa=RE("state");ME[Pa]=!0,du=function(r,A){if($h(r,Pa))throw new Wh(v2);return A.facade=r,DE(r,Pa,A),A},ro=function(r){return $h(r,Pa)?r[Pa]:{}},gu=function(r){return $h(r,Pa)}}var pu={set:du,get:ro,has:gu,enforce:KE,getterFor:jE},zh=Je,VE=Ye,GE=ot,vu=tn,Xh=Zr,$E=hu.CONFIGURABLE,qE=jh,B2=pu,WE=B2.enforce,zE=B2.get,w2=String,Bu=Object.defineProperty,XE=zh("".slice),YE=zh("".replace),JE=zh([].join),ZE=Xh&&!VE(function(){return Bu(function(){},"length",{value:8}).length!==8}),Ax=String(String).split("String"),ex=c2.exports=function(r,A,e){XE(w2(A),0,7)==="Symbol("&&(A="["+YE(w2(A),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(A="get "+A),e&&e.setter&&(A="set "+A),(!vu(r,"name")||$E&&r.name!==A)&&(Xh?Bu(r,"name",{value:A,configurable:!0}):r.name=A),ZE&&e&&vu(e,"arity")&&r.length!==e.arity&&Bu(r,"length",{value:e.arity});try{e&&vu(e,"constructor")&&e.constructor?Xh&&Bu(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(n){}var t=WE(r);return vu(t,"source")||(t.source=JE(Ax,typeof A=="string"?A:"")),r};Function.prototype.toString=ex(function(){return GE(this)&&zE(this).source||qE(this)},"toString");var m2=c2.exports,tx=ot,rx=Nn,nx=m2,ix=Nh,qi=function(r,A,e,t){t||(t={});var n=t.enumerable,i=t.name!==void 0?t.name:A;if(tx(e)&&nx(e,i,t),t.global)n?r[A]=e:ix(A,e);else{try{t.unsafe?r[A]&&(n=!0):delete r[A]}catch(a){}n?r[A]=e:rx.f(r,A,{value:e,enumerable:!1,configurable:!t.nonConfigurable,writable:!t.nonWritable})}return r},y2={},ax=Math.ceil,sx=Math.floor,ox=Math.trunc||function(A){var e=+A;return(e>0?sx:ax)(e)},lx=ox,wu=function(r){var A=+r;return A!==A||A===0?0:lx(A)},ux=wu,cx=Math.max,fx=Math.min,hx=function(r,A){var e=ux(r);return e<0?cx(e+A,0):fx(e,A)},dx=wu,gx=Math.min,Da=function(r){var A=dx(r);return A>0?gx(A,9007199254740991):0},px=Da,Yh=function(r){return px(r.length)},vx=Ao,Bx=hx,wx=Yh,mx=function(r){return function(A,e,t){var n=vx(A),i=wx(n);if(i===0)return!r&&-1;var a=Bx(t,i),s;if(r&&e!==e){for(;i>a;)if(s=n[a++],s!==s)return!0}else for(;i>a;a++)if((r||a in n)&&n[a]===e)return r||a||0;return!r&&-1}},b2={indexOf:mx(!1)},yx=Je,Jh=tn,bx=Ao,Cx=b2.indexOf,Fx=Gh,C2=yx([].push),F2=function(r,A){var e=bx(r),t=0,n=[],i;for(i in e)!Jh(Fx,i)&&Jh(e,i)&&C2(n,i);for(;A.length>t;)Jh(e,i=A[t++])&&(~Cx(n,i)||C2(n,i));return n},Zh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qx=F2,Ux=Zh,Ex=Ux.concat("length","prototype");y2.f=Object.getOwnPropertyNames||function(A){return Qx(A,Ex)};var Q2={};Q2.f=Object.getOwnPropertySymbols;var xx=$i,Ix=Je,Sx=y2,Lx=Q2,Nx=Ar,Tx=Ix([].concat),Ox=xx("Reflect","ownKeys")||function(A){var e=Sx.f(Nx(A)),t=Lx.f;return t?Tx(e,t(A)):e},U2=tn,Hx=Ox,_x=Zs,Px=Nn,Dx=function(r,A,e){for(var t=Hx(A),n=Px.f,i=_x.f,a=0;a<t.length;a++){var s=t[a];!U2(r,s)&&!(e&&U2(e,s))&&n(r,s,i(A,s))}},Rx=Ye,Mx=ot,kx=/#|\.prototype\./,no=function(r,A){var e=jx[Kx(r)];return e===Gx?!0:e===Vx?!1:Mx(A)?Rx(A):!!A},Kx=no.normalize=function(r){return String(r).replace(kx,".").toLowerCase()},jx=no.data={},Vx=no.NATIVE="N",Gx=no.POLYFILL="P",E2=no,mu=Ge,$x=Zs.f,qx=to,Wx=qi,zx=Nh,Xx=Dx,Yx=E2,er=function(r,A){var e=r.target,t=r.global,n=r.stat,i,a,s,o,u,f;if(t?a=mu:n?a=mu[e]||zx(e,{}):a=mu[e]&&mu[e].prototype,a)for(s in A){if(u=A[s],r.dontCallGetSet?(f=$x(a,s),o=f&&f.value):o=a[s],i=Yx(t?s:e+(n?".":"#")+s,r.forced),!i&&o!==void 0){if(typeof u==typeof o)continue;Xx(u,o)}(r.sham||o&&o.sham)&&qx(u,"sham",!0),Wx(a,s,u,r)}},io=Ge,Jx=eo,Zx=Gi,yu=function(r){return Jx.slice(0,r.length)===r},x2=function(){return yu("Bun/")?"BUN":yu("Cloudflare-Workers")?"CLOUDFLARE":yu("Deno/")?"DENO":yu("Node.js/")?"NODE":io.Bun&&typeof Bun.version=="string"?"BUN":io.Deno&&typeof Deno.version=="object"?"DENO":Zx(io.process)==="process"?"NODE":io.window&&io.document?"BROWSER":"REST"}(),AI=x2,bu=AI==="NODE",eI=Ge,tI=eI,rI=Je,nI=Ln,iI=function(r,A,e){try{return rI(nI(Object.getOwnPropertyDescriptor(r,A)[e]))}catch(t){}},aI=ur,sI=function(r){return aI(r)||r===null},oI=sI,lI=String,uI=TypeError,cI=function(r){if(oI(r))return r;throw new uI("Can't set "+lI(r)+" as a prototype")},fI=iI,hI=ur,dI=An,gI=cI,I2=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,A={},e;try{e=fI(Object.prototype,"__proto__","set"),e(A,[]),r=A instanceof Array}catch(t){}return function(n,i){return dI(n),gI(i),hI(n)&&(r?e(n,i):n.__proto__=i),n}}():void 0),pI=Nn.f,vI=tn,BI=Et,S2=BI("toStringTag"),Cu=function(r,A,e){r&&!e&&(r=r.prototype),r&&!vI(r,S2)&&pI(r,S2,{configurable:!0,value:A})},L2=m2,wI=Nn,mI=function(r,A,e){return e.get&&L2(e.get,A,{getter:!0}),e.set&&L2(e.set,A,{setter:!0}),wI.f(r,A,e)},yI=$i,bI=mI,CI=Et,FI=Zr,N2=CI("species"),QI=function(r){var A=yI(r);FI&&A&&!A[N2]&&bI(A,N2,{configurable:!0,get:function(){return this}})},UI=su,EI=TypeError,xI=function(r,A){if(UI(A,r))return r;throw new EI("Incorrect invocation")},II=Et,SI=II("toStringTag"),T2={};T2[SI]="z";var LI=String(T2)==="[object z]",NI=LI,TI=ot,Fu=Gi,OI=Et,HI=OI("toStringTag"),_I=Object,PI=Fu(function(){return arguments}())==="Arguments",DI=function(r,A){try{return r[A]}catch(e){}},Ad=NI?Fu:function(r){var A,e,t;return r===void 0?"Undefined":r===null?"Null":typeof(e=DI(A=_I(r),HI))=="string"?e:PI?Fu(A):(t=Fu(A))==="Object"&&TI(A.callee)?"Arguments":t},RI=Je,MI=Ye,O2=ot,kI=Ad,KI=$i,jI=jh,H2=function(){},_2=KI("Reflect","construct"),ed=/^\s*(?:class|function)\b/,VI=RI(ed.exec),GI=!ed.test(H2),ao=function(A){if(!O2(A))return!1;try{return _2(H2,[],A),!0}catch(e){return!1}},P2=function(A){if(!O2(A))return!1;switch(kI(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return GI||!!VI(ed,jI(A))}catch(e){return!0}};P2.sham=!0;var $I=!_2||MI(function(){var r;return ao(ao.call)||!ao(Object)||!ao(function(){r=!0})||r})?P2:ao,qI=$I,WI=lu,zI=TypeError,XI=function(r){if(qI(r))return r;throw new zI(WI(r)+" is not a constructor")},D2=Ar,YI=XI,JI=au,ZI=Et,AS=ZI("species"),R2=function(r,A){var e=D2(r).constructor,t;return e===void 0||JI(t=D2(e)[AS])?A:YI(t)},eS=nu,M2=Function.prototype,k2=M2.apply,K2=M2.call,j2=typeof Reflect=="object"&&Reflect.apply||(eS?K2.bind(k2):function(){return K2.apply(k2,arguments)}),tS=Gi,rS=Je,Qu=function(r){if(tS(r)==="Function")return rS(r)},V2=Qu,nS=Ln,iS=nu,aS=V2(V2.bind),td=function(r,A){return nS(r),A===void 0?r:iS?aS(r,A):function(){return r.apply(A,arguments)}},sS=$i,G2=sS("document","documentElement"),oS=Je,lS=oS([].slice),uS=TypeError,cS=function(r,A){if(r<A)throw new uS("Not enough arguments");return r},fS=eo,$2=/(?:ipad|iphone|ipod).*applewebkit/i.test(fS),mr=Ge,hS=j2,dS=td,q2=ot,gS=tn,W2=Ye,z2=G2,pS=lS,X2=cu,vS=cS,BS=$2,wS=bu,rd=mr.setImmediate,Y2=mr.clearImmediate,mS=mr.process,nd=mr.Dispatch,yS=mr.Function,J2=mr.MessageChannel,bS=mr.String,id=0,so={},Z2="onreadystatechange",oo,Wi,ad,sd;W2(function(){oo=mr.location});var od=function(r){if(gS(so,r)){var A=so[r];delete so[r],A()}},ld=function(r){return function(){od(r)}},AB=function(r){od(r.data)},eB=function(r){mr.postMessage(bS(r),oo.protocol+"//"+oo.host)};(!rd||!Y2)&&(rd=function(A){vS(arguments.length,1);var e=q2(A)?A:yS(A),t=pS(arguments,1);return so[++id]=function(){hS(e,void 0,t)},Wi(id),id},Y2=function(A){delete so[A]},wS?Wi=function(r){mS.nextTick(ld(r))}:nd&&nd.now?Wi=function(r){nd.now(ld(r))}:J2&&!BS?(ad=new J2,sd=ad.port2,ad.port1.onmessage=AB,Wi=dS(sd.postMessage,sd)):mr.addEventListener&&q2(mr.postMessage)&&!mr.importScripts&&oo&&oo.protocol!=="file:"&&!W2(eB)?(Wi=eB,mr.addEventListener("message",AB,!1)):Z2 in X2("script")?Wi=function(r){z2.appendChild(X2("script"))[Z2]=function(){z2.removeChild(this),od(r)}}:Wi=function(r){setTimeout(ld(r),0)});var tB={set:rd},rB=Ge,CS=Zr,FS=Object.getOwnPropertyDescriptor,QS=function(r){if(!CS)return rB[r];var A=FS(rB,r);return A&&A.value},nB=function(){this.head=null,this.tail=null};nB.prototype={add:function(r){var A={item:r,next:null},e=this.tail;e?e.next=A:this.head=A,this.tail=A},get:function(){var r=this.head;if(r){var A=this.head=r.next;return A===null&&(this.tail=null),r.item}}};var iB=nB,US=eo,ES=/ipad|iphone|ipod/i.test(US)&&typeof Pebble!="undefined",xS=eo,IS=/web0s(?!.*chrome)/i.test(xS),Ra=Ge,SS=QS,aB=td,ud=tB.set,LS=iB,NS=$2,TS=ES,OS=IS,cd=bu,sB=Ra.MutationObserver||Ra.WebKitMutationObserver,oB=Ra.document,lB=Ra.process,Uu=Ra.Promise,fd=SS("queueMicrotask"),Ma,hd,dd,Eu,uB;if(!fd){var xu=new LS,Iu=function(){var r,A;for(cd&&(r=lB.domain)&&r.exit();A=xu.get();)try{A()}catch(e){throw xu.head&&Ma(),e}r&&r.enter()};!NS&&!cd&&!OS&&sB&&oB?(hd=!0,dd=oB.createTextNode(""),new sB(Iu).observe(dd,{characterData:!0}),Ma=function(){dd.data=hd=!hd}):!TS&&Uu&&Uu.resolve?(Eu=Uu.resolve(void 0),Eu.constructor=Uu,uB=aB(Eu.then,Eu),Ma=function(){uB(Iu)}):cd?Ma=function(){lB.nextTick(Iu)}:(ud=aB(ud,Ra),Ma=function(){ud(Iu)}),fd=function(r){xu.head||Ma(),xu.add(r)}}var HS=fd,_S=function(r,A){try{arguments.length===1?console.error(r):console.error(r,A)}catch(e){}},gd=function(r){try{return{error:!1,value:r()}}catch(A){return{error:!0,value:A}}},PS=Ge,Su=PS.Promise,DS=Ge,lo=Su,RS=ot,MS=E2,kS=jh,KS=Et,cB=x2,pd=xh;lo&&lo.prototype;var jS=KS("species"),vd=!1,fB=RS(DS.PromiseRejectionEvent),VS=MS("Promise",function(){var r=kS(lo),A=r!==String(lo);if(!A&&pd===66)return!0;if(!pd||pd<51||!/native code/.test(r)){var e=new lo(function(i){i(1)}),t=function(i){i(function(){},function(){})},n=e.constructor={};if(n[jS]=t,vd=e.then(function(){})instanceof t,!vd)return!0}return!A&&(cB==="BROWSER"||cB==="DENO")&&!fB}),uo={CONSTRUCTOR:VS,REJECTION_EVENT:fB,SUBCLASSING:vd},ka={},hB=Ln,GS=TypeError,$S=function(r){var A,e;this.promise=new r(function(t,n){if(A!==void 0||e!==void 0)throw new GS("Bad Promise constructor");A=t,e=n}),this.resolve=hB(A),this.reject=hB(e)};ka.f=function(r){return new $S(r)};var qS=er,Lu=bu,hi=Ge,WS=tI,Ka=Pt,dB=qi,gB=I2,zS=Cu,XS=QI,YS=Ln,Nu=ot,JS=ur,ZS=xI,AL=R2,pB=tB.set,Bd=HS,eL=_S,tL=gd,rL=iB,vB=pu,Tu=Su,wd=uo,BB=ka,Ou="Promise",wB=wd.CONSTRUCTOR,nL=wd.REJECTION_EVENT,iL=wd.SUBCLASSING,md=vB.getterFor(Ou),aL=vB.set,ja=Tu&&Tu.prototype,zi=Tu,Hu=ja,mB=hi.TypeError,yd=hi.document,bd=hi.process,Cd=BB.f,sL=Cd,oL=!!(yd&&yd.createEvent&&hi.dispatchEvent),yB="unhandledrejection",lL="rejectionhandled",bB=0,CB=1,uL=2,Fd=1,FB=2,_u,QB,UB,EB,xB=function(r){var A;return JS(r)&&Nu(A=r.then)?A:!1},IB=function(r,A){var e=A.value,t=A.state===CB,n=t?r.ok:r.fail,i=r.resolve,a=r.reject,s=r.domain,o,u,f;try{n?(t||(A.rejection===FB&&fL(A),A.rejection=Fd),n===!0?o=e:(s&&s.enter(),o=n(e),s&&(s.exit(),f=!0)),o===r.promise?a(new mB("Promise-chain cycle")):(u=xB(o))?Ka(u,o,i,a):i(o)):a(e)}catch(d){s&&!f&&s.exit(),a(d)}},SB=function(r,A){r.notified||(r.notified=!0,Bd(function(){for(var e=r.reactions,t;t=e.get();)IB(t,r);r.notified=!1,A&&!r.rejection&&cL(r)}))},LB=function(r,A,e){var t,n;oL?(t=yd.createEvent("Event"),t.promise=A,t.reason=e,t.initEvent(r,!1,!0),hi.dispatchEvent(t)):t={promise:A,reason:e},!nL&&(n=hi["on"+r])?n(t):r===yB&&eL("Unhandled promise rejection",e)},cL=function(r){Ka(pB,hi,function(){var A=r.facade,e=r.value,t=NB(r),n;if(t&&(n=tL(function(){Lu?bd.emit("unhandledRejection",e,A):LB(yB,A,e)}),r.rejection=Lu||NB(r)?FB:Fd,n.error))throw n.value})},NB=function(r){return r.rejection!==Fd&&!r.parent},fL=function(r){Ka(pB,hi,function(){var A=r.facade;Lu?bd.emit("rejectionHandled",A):LB(lL,A,r.value)})},Va=function(r,A,e){return function(t){r(A,t,e)}},Ga=function(r,A,e){r.done||(r.done=!0,e&&(r=e),r.value=A,r.state=uL,SB(r,!0))},Qd=function(r,A,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===A)throw new mB("Promise can't be resolved itself");var t=xB(A);t?Bd(function(){var n={done:!1};try{Ka(t,A,Va(Qd,n,r),Va(Ga,n,r))}catch(i){Ga(n,i,r)}}):(r.value=A,r.state=CB,SB(r,!1))}catch(n){Ga({done:!1},n,r)}}};if(wB&&(zi=function(A){ZS(this,Hu),YS(A),Ka(_u,this);var e=md(this);try{A(Va(Qd,e),Va(Ga,e))}catch(t){Ga(e,t)}},Hu=zi.prototype,_u=function(A){aL(this,{type:Ou,done:!1,notified:!1,parent:!1,reactions:new rL,rejection:!1,state:bB,value:null})},_u.prototype=dB(Hu,"then",function(A,e){var t=md(this),n=Cd(AL(this,zi));return t.parent=!0,n.ok=Nu(A)?A:!0,n.fail=Nu(e)&&e,n.domain=Lu?bd.domain:void 0,t.state===bB?t.reactions.add(n):Bd(function(){IB(n,t)}),n.promise}),QB=function(){var r=new _u,A=md(r);this.promise=r,this.resolve=Va(Qd,A),this.reject=Va(Ga,A)},BB.f=Cd=function(r){return r===zi||r===UB?new QB(r):sL(r)},Nu(Tu)&&ja!==Object.prototype)){EB=ja.then,iL||dB(ja,"then",function(A,e){var t=this;return new zi(function(n,i){Ka(EB,t,n,i)}).then(A,e)},{unsafe:!0});try{delete ja.constructor}catch(r){}gB&&gB(ja,Hu)}qS({global:!0,constructor:!0,wrap:!0,forced:wB},{Promise:zi}),UB=WS.Promise,zS(zi,Ou,!1),XS(Ou);var co={},hL=Et,dL=co,gL=hL("iterator"),pL=Array.prototype,vL=function(r){return r!==void 0&&(dL.Array===r||pL[gL]===r)},BL=Ad,TB=Ha,wL=au,mL=co,yL=Et,bL=yL("iterator"),OB=function(r){if(!wL(r))return TB(r,bL)||TB(r,"@@iterator")||mL[BL(r)]},CL=Pt,FL=Ln,QL=Ar,UL=lu,EL=OB,xL=TypeError,IL=function(r,A){var e=arguments.length<2?EL(r):A;if(FL(e))return QL(CL(e,r));throw new xL(UL(r)+" is not iterable")},SL=Pt,HB=Ar,LL=Ha,NL=function(r,A,e){var t,n;HB(r);try{if(t=LL(r,"return"),!t){if(A==="throw")throw e;return e}t=SL(t,r)}catch(i){n=!0,t=i}if(A==="throw")throw e;if(n)throw t;return HB(t),e},TL=td,OL=Pt,HL=Ar,_L=lu,PL=vL,DL=Yh,_B=su,RL=IL,ML=OB,PB=NL,kL=TypeError,Pu=function(r,A){this.stopped=r,this.result=A},DB=Pu.prototype,RB=function(r,A,e){var t=e&&e.that,n=!!(e&&e.AS_ENTRIES),i=!!(e&&e.IS_RECORD),a=!!(e&&e.IS_ITERATOR),s=!!(e&&e.INTERRUPTED),o=TL(A,t),u,f,d,p,h,m,w,F=function(Q){return u&&PB(u,"normal"),new Pu(!0,Q)},y=function(Q){return n?(HL(Q),s?o(Q[0],Q[1],F):o(Q[0],Q[1])):s?o(Q,F):o(Q)};if(i)u=r.iterator;else if(a)u=r;else{if(f=ML(r),!f)throw new kL(_L(r)+" is not iterable");if(PL(f)){for(d=0,p=DL(r);p>d;d++)if(h=y(r[d]),h&&_B(DB,h))return h;return new Pu(!1)}u=RL(r,f)}for(m=i?r.next:u.next;!(w=OL(m,u)).done;){try{h=y(w.value)}catch(Q){PB(u,"throw",Q)}if(typeof h=="object"&&h&&_B(DB,h))return h}return new Pu(!1)},KL=Et,MB=KL("iterator"),kB=!1;try{var jL=0,KB={next:function(){return{done:!!jL++}},return:function(){kB=!0}};KB[MB]=function(){return this},Array.from(KB,function(){throw 2})}catch(r){}var VL=function(r,A){try{if(!A&&!kB)return!1}catch(n){return!1}var e=!1;try{var t={};t[MB]=function(){return{next:function(){return{done:e=!0}}}},r(t)}catch(n){}return e},GL=Su,$L=VL,qL=uo.CONSTRUCTOR,jB=qL||!$L(function(r){GL.all(r).then(void 0,function(){})}),WL=er,zL=Pt,XL=Ln,YL=ka,JL=gd,ZL=RB,AN=jB;WL({target:"Promise",stat:!0,forced:AN},{all:function(A){var e=this,t=YL.f(e),n=t.resolve,i=t.reject,a=JL(function(){var s=XL(e.resolve),o=[],u=0,f=1;ZL(A,function(d){var p=u++,h=!1;f++,zL(s,e,d).then(function(m){h||(h=!0,o[p]=m,--f||n(o))},i)}),--f||n(o)});return a.error&&i(a.value),t.promise}});var eN=er,tN=uo.CONSTRUCTOR,Ud=Su,rN=$i,nN=ot,iN=qi,VB=Ud&&Ud.prototype;if(eN({target:"Promise",proto:!0,forced:tN,real:!0},{catch:function(r){return this.then(void 0,r)}}),nN(Ud)){var GB=rN("Promise").prototype.catch;VB.catch!==GB&&iN(VB,"catch",GB,{unsafe:!0})}var aN=er,sN=Pt,oN=Ln,lN=ka,uN=gd,cN=RB,fN=jB;aN({target:"Promise",stat:!0,forced:fN},{race:function(A){var e=this,t=lN.f(e),n=t.reject,i=uN(function(){var a=oN(e.resolve);cN(A,function(s){sN(a,e,s).then(t.resolve,n)})});return i.error&&n(i.value),t.promise}});var hN=er,dN=ka,gN=uo.CONSTRUCTOR;hN({target:"Promise",stat:!0,forced:gN},{reject:function(A){var e=dN.f(this),t=e.reject;return t(A),e.promise}});var pN=Ar,vN=ur,BN=ka,wN=function(r,A){if(pN(r),vN(A)&&A.constructor===r)return A;var e=BN.f(r),t=e.resolve;return t(A),e.promise},mN=er,yN=$i,bN=uo.CONSTRUCTOR,CN=wN;yN("Promise"),mN({target:"Promise",stat:!0,forced:bN},{resolve:function(A){return CN(this,A)}});function $B(r,A,e,t,n,i,a){try{var s=r[i](a),o=s.value}catch(u){return void e(u)}s.done?A(o):Promise.resolve(o).then(t,n)}function Tn(r){return function(){var A=this,e=arguments;return new Promise(function(t,n){var i=r.apply(A,e);function a(o){$B(i,t,n,a,s,"next",o)}function s(o){$B(i,t,n,a,s,"throw",o)}a(void 0)})}}var FN=Ad,QN=String,mn=function(r){if(FN(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return QN(r)},UN=Ar,qB=function(){var r=UN(this),A="";return r.hasIndices&&(A+="d"),r.global&&(A+="g"),r.ignoreCase&&(A+="i"),r.multiline&&(A+="m"),r.dotAll&&(A+="s"),r.unicode&&(A+="u"),r.unicodeSets&&(A+="v"),r.sticky&&(A+="y"),A},Ed=Ye,EN=Ge,xd=EN.RegExp,Id=Ed(function(){var r=xd("a","y");return r.lastIndex=2,r.exec("abcd")!==null});Id||Ed(function(){return!xd("a","y").sticky});var xN=Id||Ed(function(){var r=xd("^r","gy");return r.lastIndex=2,r.exec("str")!==null}),WB={BROKEN_CARET:xN,UNSUPPORTED_Y:Id},zB={},IN=F2,SN=Zh,LN=Object.keys||function(A){return IN(A,SN)},NN=Zr,TN=l2,ON=Nn,HN=Ar,_N=Ao,PN=LN;zB.f=NN&&!TN?Object.defineProperties:function(A,e){HN(A);for(var t=_N(e),n=PN(e),i=n.length,a=0,s;i>a;)ON.f(A,s=n[a++],t[s]);return A};var DN=Ar,RN=zB,XB=Zh,MN=Gh,kN=G2,KN=cu,jN=Vh,YB=">",JB="<",Sd="prototype",Ld="script",ZB=jN("IE_PROTO"),Nd=function(){},Aw=function(r){return JB+Ld+YB+r+JB+"/"+Ld+YB},ew=function(r){r.write(Aw("")),r.close();var A=r.parentWindow.Object;return r=null,A},VN=function(){var r=KN("iframe"),A="java"+Ld+":",e;return r.style.display="none",kN.appendChild(r),r.src=String(A),e=r.contentWindow.document,e.open(),e.write(Aw("document.F=Object")),e.close(),e.F},Du,Ru=function(){try{Du=new ActiveXObject("htmlfile")}catch(A){}Ru=typeof document!="undefined"?document.domain&&Du?ew(Du):VN():ew(Du);for(var r=XB.length;r--;)delete Ru[Sd][XB[r]];return Ru()};MN[ZB]=!0;var Td=Object.create||function(A,e){var t;return A!==null?(Nd[Sd]=DN(A),t=new Nd,Nd[Sd]=null,t[ZB]=A):t=Ru(),e===void 0?t:RN.f(t,e)},GN=Ye,$N=Ge,qN=$N.RegExp,WN=GN(function(){var r=qN(".","s");return!(r.dotAll&&r.test(`
|
|
805
|
+
`)&&r.flags==="s")}),zN=Ye,XN=Ge,YN=XN.RegExp,JN=zN(function(){var r=YN("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"}),$a=Pt,Mu=Je,ZN=mn,AT=qB,eT=WB,tT=Oh,rT=Td,nT=pu.get,iT=WN,aT=JN,sT=tT("native-string-replace",String.prototype.replace),ku=RegExp.prototype.exec,Od=ku,oT=Mu("".charAt),lT=Mu("".indexOf),uT=Mu("".replace),Hd=Mu("".slice),_d=function(){var r=/a/,A=/b*/g;return $a(ku,r,"a"),$a(ku,A,"a"),r.lastIndex!==0||A.lastIndex!==0}(),tw=eT.BROKEN_CARET,Pd=/()??/.exec("")[1]!==void 0,cT=_d||Pd||tw||iT||aT;cT&&(Od=function(A){var e=this,t=nT(e),n=ZN(A),i=t.raw,a,s,o,u,f,d,p;if(i)return i.lastIndex=e.lastIndex,a=$a(Od,i,n),e.lastIndex=i.lastIndex,a;var h=t.groups,m=tw&&e.sticky,w=$a(AT,e),F=e.source,y=0,Q=n;if(m&&(w=uT(w,"y",""),lT(w,"g")===-1&&(w+="g"),Q=Hd(n,e.lastIndex),e.lastIndex>0&&(!e.multiline||e.multiline&&oT(n,e.lastIndex-1)!==`
|
|
806
|
+
`)&&(F="(?: "+F+")",Q=" "+Q,y++),s=new RegExp("^(?:"+F+")",w)),Pd&&(s=new RegExp("^"+F+"$(?!\\s)",w)),_d&&(o=e.lastIndex),u=$a(ku,m?s:e,Q),m?u?(u.input=Hd(u.input,y),u[0]=Hd(u[0],y),u.index=e.lastIndex,e.lastIndex+=u[0].length):e.lastIndex=0:_d&&u&&(e.lastIndex=e.global?u.index+u[0].length:o),Pd&&u&&u.length>1&&$a(sT,u[0],s,function(){for(f=1;f<arguments.length-2;f++)arguments[f]===void 0&&(u[f]=void 0)}),u&&h)for(u.groups=d=rT(null),f=0;f<h.length;f++)p=h[f],d[p[0]]=u[p[1]];return u});var Dd=Od,fT=er,rw=Dd;fT({target:"RegExp",proto:!0,forced:/./.exec!==rw},{exec:rw});var nw=Pt,iw=qi,hT=Dd,aw=Ye,sw=Et,dT=to,gT=sw("species"),Rd=RegExp.prototype,Md=function(r,A,e,t){var n=sw(r),i=!aw(function(){var u={};return u[n]=function(){return 7},""[r](u)!==7}),a=i&&!aw(function(){var u=!1,f=/a/;return r==="split"&&(f={},f.constructor={},f.constructor[gT]=function(){return f},f.flags="",f[n]=/./[n]),f.exec=function(){return u=!0,null},f[n](""),!u});if(!i||!a||e){var s=/./[n],o=A(n,""[r],function(u,f,d,p,h){var m=f.exec;return m===hT||m===Rd.exec?i&&!h?{done:!0,value:nw(s,f,d,p)}:{done:!0,value:nw(u,d,f,p)}:{done:!1}});iw(String.prototype,r,o[0]),iw(Rd,n,o[1])}t&&dT(Rd[n],"sham",!0)},kd=Je,pT=wu,vT=mn,BT=An,wT=kd("".charAt),ow=kd("".charCodeAt),mT=kd("".slice),yT=function(r){return function(A,e){var t=vT(BT(A)),n=pT(e),i=t.length,a,s;return n<0||n>=i?r?"":void 0:(a=ow(t,n),a<55296||a>56319||n+1===i||(s=ow(t,n+1))<56320||s>57343?r?wT(t,n):a:r?mT(t,n,n+2):(a-55296<<10)+(s-56320)+65536)}},bT={charAt:yT(!0)},CT=bT.charAt,Kd=function(r,A,e){return A+(e?CT(r,A).length:1)},FT=Ge,QT=Ye,lw=FT.RegExp,UT=!QT(function(){var r=!0;try{lw(".","d")}catch(o){r=!1}var A={},e="",t=r?"dgimsy":"gimsy",n=function(o,u){Object.defineProperty(A,o,{get:function(){return e+=u,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};r&&(i.hasIndices="d");for(var a in i)n(a,i[a]);var s=Object.getOwnPropertyDescriptor(lw.prototype,"flags").get.call(A);return s!==t||e!==t}),ET={correct:UT},xT=Pt,IT=tn,ST=su,uw=ET,LT=qB,NT=RegExp.prototype,jd=uw.correct?function(r){return r.flags}:function(r){return!uw.correct&&ST(NT,r)&&!IT(r,"flags")?xT(LT,r):r.flags},cw=Pt,TT=Ar,OT=ot,HT=Gi,_T=Dd,PT=TypeError,Vd=function(r,A){var e=r.exec;if(OT(e)){var t=cw(e,r,A);return t!==null&&TT(t),t}if(HT(r)==="RegExp")return cw(_T,r,A);throw new PT("RegExp#exec called on incompatible receiver")},DT=Pt,RT=Je,MT=Md,kT=Ar,KT=ur,jT=Da,Ku=mn,VT=An,GT=Ha,$T=Kd,qT=jd,fw=Vd,hw=RT("".indexOf);MT("match",function(r,A,e){return[function(n){var i=VT(this),a=KT(n)?GT(n,r):void 0;return a?DT(a,n,i):new RegExp(n)[r](Ku(i))},function(t){var n=kT(this),i=Ku(t),a=e(A,n,i);if(a.done)return a.value;var s=Ku(qT(n));if(hw(s,"g")===-1)return fw(n,i);var o=hw(s,"u")!==-1;n.lastIndex=0;for(var u=[],f=0,d;(d=fw(n,i))!==null;){var p=Ku(d[0]);u[f]=p,p===""&&(n.lastIndex=$T(i,jT(n.lastIndex),o)),f++}return f===0?null:u}]});var Gd=Je,WT=uu,zT=Math.floor,$d=Gd("".charAt),XT=Gd("".replace),qd=Gd("".slice),YT=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JT=/\$([$&'`]|\d{1,2})/g,ZT=function(r,A,e,t,n,i){var a=e+r.length,s=t.length,o=JT;return n!==void 0&&(n=WT(n),o=YT),XT(i,o,function(u,f){var d;switch($d(f,0)){case"$":return"$";case"&":return r;case"`":return qd(A,0,e);case"'":return qd(A,a);case"<":d=n[qd(f,1,-1)];break;default:var p=+f;if(p===0)return u;if(p>s){var h=zT(p/10);return h===0?u:h<=s?t[h-1]===void 0?$d(f,1):t[h-1]+$d(f,1):u}d=t[p-1]}return d===void 0?"":d})},A6=j2,dw=Pt,ju=Je,e6=Md,t6=Ye,r6=Ar,n6=ot,i6=ur,a6=wu,s6=Da,Xi=mn,o6=An,l6=Kd,u6=Ha,c6=ZT,f6=jd,h6=Vd,d6=Et,Wd=d6("replace"),g6=Math.max,p6=Math.min,v6=ju([].concat),zd=ju([].push),Vu=ju("".indexOf),gw=ju("".slice),B6=function(r){return r===void 0?r:String(r)},w6=function(){return"a".replace(/./,"$0")==="$0"}(),pw=function(){return/./[Wd]?/./[Wd]("a","$0")==="":!1}(),m6=!t6(function(){var r=/./;return r.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(r,"$<a>")!=="7"});e6("replace",function(r,A,e){var t=pw?"$":"$0";return[function(i,a){var s=o6(this),o=i6(i)?u6(i,Wd):void 0;return o?dw(o,i,s,a):dw(A,Xi(s),i,a)},function(n,i){var a=r6(this),s=Xi(n);if(typeof i=="string"&&Vu(i,t)===-1&&Vu(i,"$<")===-1){var o=e(A,a,s,i);if(o.done)return o.value}var u=n6(i);u||(i=Xi(i));var f=Xi(f6(a)),d=Vu(f,"g")!==-1,p;d&&(p=Vu(f,"u")!==-1,a.lastIndex=0);for(var h=[],m;m=h6(a,s),!(m===null||(zd(h,m),!d));){var w=Xi(m[0]);w===""&&(a.lastIndex=l6(s,s6(a.lastIndex),p))}for(var F="",y=0,Q=0;Q<h.length;Q++){m=h[Q];for(var T=Xi(m[0]),P=g6(p6(a6(m.index),s.length),0),G=[],$,j=1;j<m.length;j++)zd(G,B6(m[j]));var _=m.groups;if(u){var q=v6([T],G,P,s);_!==void 0&&zd(q,_),$=Xi(A6(i,void 0,q))}else $=c6(T,s,P,G,_,i);P>=y&&(F+=gw(s,y,P)+$,y=P+T.length)}return F+gw(s,y)}]},!m6||!w6||pw);var y6=ur,b6=Gi,C6=Et,F6=C6("match"),Q6=function(r){var A;return y6(r)&&((A=r[F6])!==void 0?!!A:b6(r)==="RegExp")},U6=Q6,E6=TypeError,Xd=function(r){if(U6(r))throw new E6("The method doesn't accept regular expressions");return r},x6=Et,I6=x6("match"),Yd=function(r){var A=/./;try{"/./"[r](A)}catch(e){try{return A[I6]=!1,"/./"[r](A)}catch(t){}}return!1},S6=er,L6=Qu,N6=Zs.f,T6=Da,vw=mn,O6=Xd,H6=An,_6=Yd,P6=L6("".slice),D6=Math.min,Bw=_6("startsWith"),R6=!Bw&&!!function(){var r=N6(String.prototype,"startsWith");return r&&!r.writable}();S6({target:"String",proto:!0,forced:!R6&&!Bw},{startsWith:function(A){var e=vw(H6(this));O6(A);var t=T6(D6(arguments.length>1?arguments[1]:void 0,e.length)),n=vw(A);return P6(e,t,t+n.length)===n}});var M6=Et,k6=Td,K6=Nn.f,Jd=M6("unscopables"),Zd=Array.prototype;Zd[Jd]===void 0&&K6(Zd,Jd,{configurable:!0,value:k6(null)});var j6=function(r){Zd[Jd][r]=!0},V6=Ye,G6=!V6(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),$6=tn,q6=ot,W6=uu,z6=Vh,X6=G6,ww=z6("IE_PROTO"),Ag=Object,Y6=Ag.prototype,mw=X6?Ag.getPrototypeOf:function(r){var A=W6(r);if($6(A,ww))return A[ww];var e=A.constructor;return q6(e)&&A instanceof e?e.prototype:A instanceof Ag?Y6:null},J6=Ye,Z6=ot,AO=ur,yw=mw,eO=qi,tO=Et,eg=tO("iterator"),bw=!1,Yi,tg,rg;[].keys&&(rg=[].keys(),"next"in rg?(tg=yw(yw(rg)),tg!==Object.prototype&&(Yi=tg)):bw=!0);var rO=!AO(Yi)||J6(function(){var r={};return Yi[eg].call(r)!==r});rO&&(Yi={}),Z6(Yi[eg])||eO(Yi,eg,function(){return this});var Cw={IteratorPrototype:Yi,BUGGY_SAFARI_ITERATORS:bw},nO=Cw.IteratorPrototype,iO=Td,aO=bh,sO=Cu,oO=co,lO=function(){return this},uO=function(r,A,e,t){var n=A+" Iterator";return r.prototype=iO(nO,{next:aO(+!t,e)}),sO(r,n,!1),oO[n]=lO,r},cO=er,fO=Pt,Fw=hu,hO=ot,dO=uO,Qw=mw,Uw=I2,gO=Cu,pO=to,ng=qi,vO=Et,BO=co,Ew=Cw,wO=Fw.PROPER,mO=Fw.CONFIGURABLE,xw=Ew.IteratorPrototype,Gu=Ew.BUGGY_SAFARI_ITERATORS,fo=vO("iterator"),Iw="keys",ho="values",Sw="entries",yO=function(){return this},bO=function(r,A,e,t,n,i,a){dO(e,A,t);var s=function(y){if(y===n&&p)return p;if(!Gu&&y&&y in f)return f[y];switch(y){case Iw:return function(){return new e(this,y)};case ho:return function(){return new e(this,y)};case Sw:return function(){return new e(this,y)}}return function(){return new e(this)}},o=A+" Iterator",u=!1,f=r.prototype,d=f[fo]||f["@@iterator"]||n&&f[n],p=!Gu&&d||s(n),h=A==="Array"&&f.entries||d,m,w,F;if(h&&(m=Qw(h.call(new r)),m!==Object.prototype&&m.next&&(Qw(m)!==xw&&(Uw?Uw(m,xw):hO(m[fo])||ng(m,fo,yO)),gO(m,o,!0))),wO&&n===ho&&d&&d.name!==ho&&(mO?pO(f,"name",ho):(u=!0,p=function(){return fO(d,this)})),n)if(w={values:s(ho),keys:i?p:s(Iw),entries:s(Sw)},a)for(F in w)(Gu||u||!(F in f))&&ng(f,F,w[F]);else cO({target:A,proto:!0,forced:Gu||u},w);return f[fo]!==p&&ng(f,fo,p,{name:n}),BO[A]=p,w},CO=function(r,A){return{value:r,done:A}},FO=Ao,ig=j6,Lw=co,Nw=pu,QO=Nn.f,UO=bO,$u=CO,EO=Zr,Tw="Array Iterator",xO=Nw.set,IO=Nw.getterFor(Tw),SO=UO(Array,"Array",function(r,A){xO(this,{type:Tw,target:FO(r),index:0,kind:A})},function(){var r=IO(this),A=r.target,e=r.index++;if(!A||e>=A.length)return r.target=null,$u(void 0,!0);switch(r.kind){case"keys":return $u(e,!1);case"values":return $u(A[e],!1)}return $u([e,A[e]],!1)},"values"),Ow=Lw.Arguments=Lw.Array;if(ig("keys"),ig("values"),ig("entries"),EO&&Ow.name!=="values")try{QO(Ow,"name",{value:"values"})}catch(r){}var LO={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},NO=cu,ag=NO("span").classList,Hw=ag&&ag.constructor&&ag.constructor.prototype,TO=Hw===Object.prototype?void 0:Hw,_w=Ge,Pw=LO,OO=TO,go=SO,Dw=to,HO=Cu,_O=Et,sg=_O("iterator"),og=go.values,Rw=function(r,A){if(r){if(r[sg]!==og)try{Dw(r,sg,og)}catch(t){r[sg]=og}if(HO(r,A,!0),Pw[A]){for(var e in go)if(r[e]!==go[e])try{Dw(r,e,go[e])}catch(t){r[e]=go[e]}}}};for(var lg in Pw)Rw(_w[lg]&&_w[lg].prototype,lg);Rw(OO,"DOMTokenList");function PO(r,A){if(Qe(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var t=e.call(r,A);if(Qe(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(r)}function DO(r){var A=PO(r,"string");return Qe(A)=="symbol"?A:A+""}function ug(r,A,e){return(A=DO(A))in r?Object.defineProperty(r,A,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[A]=e,r}var RO=Ln,MO=uu,kO=Dv,KO=Yh,Mw=TypeError,kw="Reduce of empty array with no initial value",jO=function(r){return function(A,e,t,n){var i=MO(A),a=kO(i),s=KO(i);if(RO(e),s===0&&t<2)throw new Mw(kw);var o=r?s-1:0,u=r?-1:1;if(t<2)for(;;){if(o in a){n=a[o],o+=u;break}if(o+=u,r?o<0:s<=o)throw new Mw(kw)}for(;r?o>=0:s>o;o+=u)o in a&&(n=e(n,a[o],o,i));return n}},VO={left:jO(!1)},GO=Ye,Kw=function(r,A){var e=[][r];return!!e&&GO(function(){e.call(null,A||function(){return 1},1)})},$O=er,qO=VO.left,WO=Kw,jw=xh,zO=bu,XO=!zO&&jw>79&&jw<83,YO=XO||!WO("reduce");$O({target:"Array",proto:!0,forced:YO},{reduce:function(A){var e=arguments.length;return qO(this,A,e,e>1?arguments[1]:void 0)}});var JO=er,ZO=Qu,A8=Zs.f,e8=Da,Vw=mn,t8=Xd,r8=An,n8=Yd,i8=ZO("".slice),a8=Math.min,Gw=n8("endsWith"),s8=!Gw&&!!function(){var r=A8(String.prototype,"endsWith");return r&&!r.writable}();JO({target:"String",proto:!0,forced:!s8&&!Gw},{endsWith:function(A){var e=Vw(r8(this));t8(A);var t=arguments.length>1?arguments[1]:void 0,n=e.length,i=t===void 0?n:a8(e8(t),n),a=Vw(A);return i8(e,i-a.length,i)===a}});var cg=Pt,$w=Je,o8=Md,l8=Ar,u8=ur,c8=An,f8=R2,h8=Kd,d8=Da,qw=mn,g8=Ha,Ww=Vd,p8=WB,v8=Ye,qa=p8.UNSUPPORTED_Y,B8=4294967295,w8=Math.min,fg=$w([].push),hg=$w("".slice),m8=!v8(function(){var r=/(?:)/,A=r.exec;r.exec=function(){return A.apply(this,arguments)};var e="ab".split(r);return e.length!==2||e[0]!=="a"||e[1]!=="b"}),zw="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;o8("split",function(r,A,e){var t="0".split(void 0,0).length?function(n,i){return n===void 0&&i===0?[]:cg(A,this,n,i)}:A;return[function(i,a){var s=c8(this),o=u8(i)?g8(i,r):void 0;return o?cg(o,i,s,a):cg(t,qw(s),i,a)},function(n,i){var a=l8(this),s=qw(n);if(!zw){var o=e(t,a,s,i,t!==A);if(o.done)return o.value}var u=f8(a,RegExp),f=a.unicode,d=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(qa?"g":"y"),p=new u(qa?"^(?:"+a.source+")":a,d),h=i===void 0?B8:i>>>0;if(h===0)return[];if(s.length===0)return Ww(p,s)===null?[s]:[];for(var m=0,w=0,F=[];w<s.length;){p.lastIndex=qa?0:w;var y=Ww(p,qa?hg(s,w):s),Q;if(y===null||(Q=w8(d8(p.lastIndex+(qa?w:0)),s.length))===m)w=h8(s,w,f);else{if(fg(F,hg(s,m,w)),F.length===h)return F;for(var T=1;T<=y.length-1;T++)if(fg(F,y[T]),F.length===h)return F;w=m=Q}}return fg(F,hg(s,m)),F}]},zw||!m8,qa);var qu={exports:{}},po={exports:{}};(function(){var r,A,e,t,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?po.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(po.exports=function(){return(r()-n)/1e6},A=process.hrtime,r=function(){var a;return a=A(),a[0]*1e9+a[1]},t=r(),i=process.uptime()*1e9,n=t-i):Date.now?(po.exports=function(){return Date.now()-e},e=Date.now()):(po.exports=function(){return new Date().getTime()-e},e=new Date().getTime())}).call(Oa);for(var y8=po.exports,b8=y8,On=typeof window=="undefined"?Oa:window,Wu=["moz","webkit"],Wa="AnimationFrame",za=On["request"+Wa],vo=On["cancel"+Wa]||On["cancelRequest"+Wa],Bo=0;!za&&Bo<Wu.length;Bo++)za=On[Wu[Bo]+"Request"+Wa],vo=On[Wu[Bo]+"Cancel"+Wa]||On[Wu[Bo]+"CancelRequest"+Wa];if(!za||!vo){var dg=0,Xw=0,Ji=[],C8=1e3/60;za=function(r){if(Ji.length===0){var A=b8(),e=Math.max(0,C8-(A-dg));dg=e+A,setTimeout(function(){var t=Ji.slice(0);Ji.length=0;for(var n=0;n<t.length;n++)if(!t[n].cancelled)try{t[n].callback(dg)}catch(i){setTimeout(function(){throw i},0)}},Math.round(e))}return Ji.push({handle:++Xw,callback:r,cancelled:!1}),Xw},vo=function(r){for(var A=0;A<Ji.length;A++)Ji[A].handle===r&&(Ji[A].cancelled=!0)}}qu.exports=function(r){return za.call(On,r)},qu.exports.cancel=function(){vo.apply(On,arguments)},qu.exports.polyfill=function(r){r||(r=On),r.requestAnimationFrame=za,r.cancelAnimationFrame=vo};var F8=qu.exports;const gg=Lv(F8);var Yw=`
|
|
807
|
+
\v\f\r \u2028\u2029\uFEFF`,Q8=Je,U8=An,E8=mn,pg=Yw,Jw=Q8("".replace),x8=RegExp("^["+pg+"]+"),I8=RegExp("(^|[^"+pg+"])["+pg+"]+$"),S8=function(r){return function(A){var e=E8(U8(A));return r&1&&(e=Jw(e,x8,"")),r&2&&(e=Jw(e,I8,"$1")),e}},L8={trim:S8(3)},N8=hu.PROPER,T8=Ye,Zw=Yw,A5="
",O8=function(r){return T8(function(){return!!Zw[r]()||A5[r]()!==A5||N8&&Zw[r].name!==r})},H8=er,_8=L8.trim,P8=O8;H8({target:"String",proto:!0,forced:P8("trim")},{trim:function(){return _8(this)}});var D8=function(r){this.ok=!1,this.alpha=1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r=r.replace(/ /g,""),r=r.toLowerCase();var A={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",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"};r=A[r]||r;for(var e=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3]),parseFloat(o[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],t=0;t<e.length;t++){var n=e[t].re,i=e[t].process,a=n.exec(r);if(a){var s=i(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),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.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var o=this.r.toString(16),u=this.g.toString(16),f=this.b.toString(16);return o.length==1&&(o="0"+o),u.length==1&&(u="0"+u),f.length==1&&(f="0"+f),"#"+o+u+f},this.getHelpXML=function(){for(var o=new Array,u=0;u<e.length;u++)for(var f=e[u].example,d=0;d<f.length;d++)o[o.length]=f[d];for(var p in A)o[o.length]=p;var h=document.createElement("ul");h.setAttribute("id","rgbcolor-examples");for(var u=0;u<o.length;u++)try{var m=document.createElement("li"),w=new RGBColor(o[u]),F=document.createElement("div");F.style.cssText="margin: 3px; border: 1px solid black; background:"+w.toHex()+"; color:"+w.toHex(),F.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+o[u]+" -> "+w.toRGB()+" -> "+w.toHex());m.appendChild(F),m.appendChild(y),h.appendChild(m)}catch(T){}return h}};const vg=Lv(D8);var R8=er,M8=Qu,k8=b2.indexOf,K8=Kw,Bg=M8([].indexOf),e5=!!Bg&&1/Bg([1],1,-0)<0,j8=e5||!K8("indexOf");R8({target:"Array",proto:!0,forced:j8},{indexOf:function(A){var e=arguments.length>1?arguments[1]:void 0;return e5?Bg(this,A,e)||0:k8(this,A,e)}});var V8=er,G8=Je,$8=Xd,q8=An,t5=mn,W8=Yd,z8=G8("".indexOf);V8({target:"String",proto:!0,forced:!W8("includes")},{includes:function(A){return!!~z8(t5(q8(this)),t5($8(A)),arguments.length>1?arguments[1]:void 0)}});var X8=Gi,Y8=Array.isArray||function(A){return X8(A)==="Array"},J8=er,Z8=Je,AH=Y8,eH=Z8([].reverse),r5=[1,2];J8({target:"Array",proto:!0,forced:String(r5)===String(r5.reverse())},{reverse:function(){return AH(this)&&(this.length=this.length),eH(this)}});/*! *****************************************************************************
|
|
808
|
+
Copyright (c) Microsoft Corporation.
|
|
809
|
+
|
|
810
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
811
|
+
purpose with or without fee is hereby granted.
|
|
812
|
+
|
|
813
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
814
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
815
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
816
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
817
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
818
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
819
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
820
|
+
***************************************************************************** */var n5=function(r,A){return(n5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(r,A)};function i5(r,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function e(){this.constructor=r}n5(r,A),r.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}function tH(r){var A="";Array.isArray(r)||(r=[r]);for(var e=0;e<r.length;e++){var t=r[e];if(t.type===bA.CLOSE_PATH)A+="z";else if(t.type===bA.HORIZ_LINE_TO)A+=(t.relative?"h":"H")+t.x;else if(t.type===bA.VERT_LINE_TO)A+=(t.relative?"v":"V")+t.y;else if(t.type===bA.MOVE_TO)A+=(t.relative?"m":"M")+t.x+" "+t.y;else if(t.type===bA.LINE_TO)A+=(t.relative?"l":"L")+t.x+" "+t.y;else if(t.type===bA.CURVE_TO)A+=(t.relative?"c":"C")+t.x1+" "+t.y1+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;else if(t.type===bA.SMOOTH_CURVE_TO)A+=(t.relative?"s":"S")+t.x2+" "+t.y2+" "+t.x+" "+t.y;else if(t.type===bA.QUAD_TO)A+=(t.relative?"q":"Q")+t.x1+" "+t.y1+" "+t.x+" "+t.y;else if(t.type===bA.SMOOTH_QUAD_TO)A+=(t.relative?"t":"T")+t.x+" "+t.y;else{if(t.type!==bA.ARC)throw new Error('Unexpected command type "'+t.type+'" at index '+e+".");A+=(t.relative?"a":"A")+t.rX+" "+t.rY+" "+t.xRot+" "+ +t.lArcFlag+" "+ +t.sweepFlag+" "+t.x+" "+t.y}}return A}function wg(r,A){var e=r[0],t=r[1];return[e*Math.cos(A)-t*Math.sin(A),e*Math.sin(A)+t*Math.cos(A)]}function rn(){for(var r=[],A=0;A<arguments.length;A++)r[A]=arguments[A];for(var e=0;e<r.length;e++)if(typeof r[e]!="number")throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof r[e]+" == typeof "+r[e]);return!0}var di=Math.PI;function mg(r,A,e){r.lArcFlag=r.lArcFlag===0?0:1,r.sweepFlag=r.sweepFlag===0?0:1;var t=r.rX,n=r.rY,i=r.x,a=r.y;t=Math.abs(r.rX),n=Math.abs(r.rY);var s=wg([(A-i)/2,(e-a)/2],-r.xRot/180*di),o=s[0],u=s[1],f=Math.pow(o,2)/Math.pow(t,2)+Math.pow(u,2)/Math.pow(n,2);1<f&&(t*=Math.sqrt(f),n*=Math.sqrt(f)),r.rX=t,r.rY=n;var d=Math.pow(t,2)*Math.pow(u,2)+Math.pow(n,2)*Math.pow(o,2),p=(r.lArcFlag!==r.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(t,2)*Math.pow(n,2)-d)/d)),h=t*u/n*p,m=-n*o/t*p,w=wg([h,m],r.xRot/180*di);r.cX=w[0]+(A+i)/2,r.cY=w[1]+(e+a)/2,r.phi1=Math.atan2((u-m)/n,(o-h)/t),r.phi2=Math.atan2((-u-m)/n,(-o-h)/t),r.sweepFlag===0&&r.phi2>r.phi1&&(r.phi2-=2*di),r.sweepFlag===1&&r.phi2<r.phi1&&(r.phi2+=2*di),r.phi1*=180/di,r.phi2*=180/di}function a5(r,A,e){rn(r,A,e);var t=r*r+A*A-e*e;if(0>t)return[];if(t===0)return[[r*e/(r*r+A*A),A*e/(r*r+A*A)]];var n=Math.sqrt(t);return[[(r*e+A*n)/(r*r+A*A),(A*e-r*n)/(r*r+A*A)],[(r*e-A*n)/(r*r+A*A),(A*e+r*n)/(r*r+A*A)]]}var pt,Hn=Math.PI/180;function s5(r,A,e){return(1-e)*r+e*A}function o5(r,A,e,t){return r+Math.cos(t/180*di)*A+Math.sin(t/180*di)*e}function l5(r,A,e,t){var n=1e-6,i=A-r,a=e-A,s=3*i+3*(t-e)-6*a,o=6*(a-i),u=3*i;return Math.abs(s)<n?[-u/o]:function(f,d,p){var h=f*f/4-d;if(h<-p)return[];if(h<=p)return[-f/2];var m=Math.sqrt(h);return[-f/2-m,-f/2+m]}(o/s,u/s,n)}function u5(r,A,e,t,n){var i=1-n;return r*(i*i*i)+A*(3*i*i*n)+e*(3*i*n*n)+t*(n*n*n)}(function(r){function A(){return n(function(s,o,u){return s.relative&&(s.x1!==void 0&&(s.x1+=o),s.y1!==void 0&&(s.y1+=u),s.x2!==void 0&&(s.x2+=o),s.y2!==void 0&&(s.y2+=u),s.x!==void 0&&(s.x+=o),s.y!==void 0&&(s.y+=u),s.relative=!1),s})}function e(){var s=NaN,o=NaN,u=NaN,f=NaN;return n(function(d,p,h){return d.type&bA.SMOOTH_CURVE_TO&&(d.type=bA.CURVE_TO,s=isNaN(s)?p:s,o=isNaN(o)?h:o,d.x1=d.relative?p-s:2*p-s,d.y1=d.relative?h-o:2*h-o),d.type&bA.CURVE_TO?(s=d.relative?p+d.x2:d.x2,o=d.relative?h+d.y2:d.y2):(s=NaN,o=NaN),d.type&bA.SMOOTH_QUAD_TO&&(d.type=bA.QUAD_TO,u=isNaN(u)?p:u,f=isNaN(f)?h:f,d.x1=d.relative?p-u:2*p-u,d.y1=d.relative?h-f:2*h-f),d.type&bA.QUAD_TO?(u=d.relative?p+d.x1:d.x1,f=d.relative?h+d.y1:d.y1):(u=NaN,f=NaN),d})}function t(){var s=NaN,o=NaN;return n(function(u,f,d){if(u.type&bA.SMOOTH_QUAD_TO&&(u.type=bA.QUAD_TO,s=isNaN(s)?f:s,o=isNaN(o)?d:o,u.x1=u.relative?f-s:2*f-s,u.y1=u.relative?d-o:2*d-o),u.type&bA.QUAD_TO){s=u.relative?f+u.x1:u.x1,o=u.relative?d+u.y1:u.y1;var p=u.x1,h=u.y1;u.type=bA.CURVE_TO,u.x1=((u.relative?0:f)+2*p)/3,u.y1=((u.relative?0:d)+2*h)/3,u.x2=(u.x+2*p)/3,u.y2=(u.y+2*h)/3}else s=NaN,o=NaN;return u})}function n(s){var o=0,u=0,f=NaN,d=NaN;return function(p){if(isNaN(f)&&!(p.type&bA.MOVE_TO))throw new Error("path must start with moveto");var h=s(p,o,u,f,d);return p.type&bA.CLOSE_PATH&&(o=f,u=d),p.x!==void 0&&(o=p.relative?o+p.x:p.x),p.y!==void 0&&(u=p.relative?u+p.y:p.y),p.type&bA.MOVE_TO&&(f=o,d=u),h}}function i(s,o,u,f,d,p){return rn(s,o,u,f,d,p),n(function(h,m,w,F){var y=h.x1,Q=h.x2,T=h.relative&&!isNaN(F),P=h.x!==void 0?h.x:T?0:m,G=h.y!==void 0?h.y:T?0:w;function $(U){return U*U}h.type&bA.HORIZ_LINE_TO&&o!==0&&(h.type=bA.LINE_TO,h.y=h.relative?0:w),h.type&bA.VERT_LINE_TO&&u!==0&&(h.type=bA.LINE_TO,h.x=h.relative?0:m),h.x!==void 0&&(h.x=h.x*s+G*u+(T?0:d)),h.y!==void 0&&(h.y=P*o+h.y*f+(T?0:p)),h.x1!==void 0&&(h.x1=h.x1*s+h.y1*u+(T?0:d)),h.y1!==void 0&&(h.y1=y*o+h.y1*f+(T?0:p)),h.x2!==void 0&&(h.x2=h.x2*s+h.y2*u+(T?0:d)),h.y2!==void 0&&(h.y2=Q*o+h.y2*f+(T?0:p));var j=s*f-o*u;if(h.xRot!==void 0&&(s!==1||o!==0||u!==0||f!==1))if(j===0)delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag,h.type=bA.LINE_TO;else{var _=h.xRot*Math.PI/180,q=Math.sin(_),iA=Math.cos(_),S=1/$(h.rX),L=1/$(h.rY),k=$(iA)*S+$(q)*L,M=2*q*iA*(S-L),sA=$(q)*S+$(iA)*L,rA=k*f*f-M*o*f+sA*o*o,oA=M*(s*f+o*u)-2*(k*u*f+sA*s*o),tA=k*u*u-M*s*u+sA*s*s,aA=(Math.atan2(oA,rA-tA)+Math.PI)%Math.PI/2,cA=Math.sin(aA),QA=Math.cos(aA);h.rX=Math.abs(j)/Math.sqrt(rA*$(QA)+oA*cA*QA+tA*$(cA)),h.rY=Math.abs(j)/Math.sqrt(rA*$(cA)-oA*cA*QA+tA*$(QA)),h.xRot=180*aA/Math.PI}return h.sweepFlag!==void 0&&0>j&&(h.sweepFlag=+!h.sweepFlag),h})}function a(){return function(s){var o={};for(var u in s)o[u]=s[u];return o}}r.ROUND=function(s){function o(u){return Math.round(u*s)/s}return s===void 0&&(s=1e13),rn(s),function(u){return u.x1!==void 0&&(u.x1=o(u.x1)),u.y1!==void 0&&(u.y1=o(u.y1)),u.x2!==void 0&&(u.x2=o(u.x2)),u.y2!==void 0&&(u.y2=o(u.y2)),u.x!==void 0&&(u.x=o(u.x)),u.y!==void 0&&(u.y=o(u.y)),u.rX!==void 0&&(u.rX=o(u.rX)),u.rY!==void 0&&(u.rY=o(u.rY)),u}},r.TO_ABS=A,r.TO_REL=function(){return n(function(s,o,u){return s.relative||(s.x1!==void 0&&(s.x1-=o),s.y1!==void 0&&(s.y1-=u),s.x2!==void 0&&(s.x2-=o),s.y2!==void 0&&(s.y2-=u),s.x!==void 0&&(s.x-=o),s.y!==void 0&&(s.y-=u),s.relative=!0),s})},r.NORMALIZE_HVZ=function(s,o,u){return s===void 0&&(s=!0),o===void 0&&(o=!0),u===void 0&&(u=!0),n(function(f,d,p,h,m){if(isNaN(h)&&!(f.type&bA.MOVE_TO))throw new Error("path must start with moveto");return o&&f.type&bA.HORIZ_LINE_TO&&(f.type=bA.LINE_TO,f.y=f.relative?0:p),u&&f.type&bA.VERT_LINE_TO&&(f.type=bA.LINE_TO,f.x=f.relative?0:d),s&&f.type&bA.CLOSE_PATH&&(f.type=bA.LINE_TO,f.x=f.relative?h-d:h,f.y=f.relative?m-p:m),f.type&bA.ARC&&(f.rX===0||f.rY===0)&&(f.type=bA.LINE_TO,delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag),f})},r.NORMALIZE_ST=e,r.QT_TO_C=t,r.INFO=n,r.SANITIZE=function(s){s===void 0&&(s=0),rn(s);var o=NaN,u=NaN,f=NaN,d=NaN;return n(function(p,h,m,w,F){var y=Math.abs,Q=!1,T=0,P=0;if(p.type&bA.SMOOTH_CURVE_TO&&(T=isNaN(o)?0:h-o,P=isNaN(u)?0:m-u),p.type&(bA.CURVE_TO|bA.SMOOTH_CURVE_TO)?(o=p.relative?h+p.x2:p.x2,u=p.relative?m+p.y2:p.y2):(o=NaN,u=NaN),p.type&bA.SMOOTH_QUAD_TO?(f=isNaN(f)?h:2*h-f,d=isNaN(d)?m:2*m-d):p.type&bA.QUAD_TO?(f=p.relative?h+p.x1:p.x1,d=p.relative?m+p.y1:p.y2):(f=NaN,d=NaN),p.type&bA.LINE_COMMANDS||p.type&bA.ARC&&(p.rX===0||p.rY===0||!p.lArcFlag)||p.type&bA.CURVE_TO||p.type&bA.SMOOTH_CURVE_TO||p.type&bA.QUAD_TO||p.type&bA.SMOOTH_QUAD_TO){var G=p.x===void 0?0:p.relative?p.x:p.x-h,$=p.y===void 0?0:p.relative?p.y:p.y-m;T=isNaN(f)?p.x1===void 0?T:p.relative?p.x:p.x1-h:f-h,P=isNaN(d)?p.y1===void 0?P:p.relative?p.y:p.y1-m:d-m;var j=p.x2===void 0?0:p.relative?p.x:p.x2-h,_=p.y2===void 0?0:p.relative?p.y:p.y2-m;y(G)<=s&&y($)<=s&&y(T)<=s&&y(P)<=s&&y(j)<=s&&y(_)<=s&&(Q=!0)}return p.type&bA.CLOSE_PATH&&y(h-w)<=s&&y(m-F)<=s&&(Q=!0),Q?[]:p})},r.MATRIX=i,r.ROTATE=function(s,o,u){o===void 0&&(o=0),u===void 0&&(u=0),rn(s,o,u);var f=Math.sin(s),d=Math.cos(s);return i(d,f,-f,d,o-o*d+u*f,u-o*f-u*d)},r.TRANSLATE=function(s,o){return o===void 0&&(o=0),rn(s,o),i(1,0,0,1,s,o)},r.SCALE=function(s,o){return o===void 0&&(o=s),rn(s,o),i(s,0,0,o,0,0)},r.SKEW_X=function(s){return rn(s),i(1,0,Math.atan(s),1,0,0)},r.SKEW_Y=function(s){return rn(s),i(1,Math.atan(s),0,1,0,0)},r.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),rn(s),i(-1,0,0,1,s,0)},r.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),rn(s),i(1,0,0,-1,0,s)},r.A_TO_C=function(){return n(function(s,o,u){return bA.ARC===s.type?function(f,d,p){var h,m,w,F;f.cX||mg(f,d,p);for(var y=Math.min(f.phi1,f.phi2),Q=Math.max(f.phi1,f.phi2)-y,T=Math.ceil(Q/90),P=new Array(T),G=d,$=p,j=0;j<T;j++){var _=s5(f.phi1,f.phi2,j/T),q=s5(f.phi1,f.phi2,(j+1)/T),iA=q-_,S=4/3*Math.tan(iA*Hn/4),L=[Math.cos(_*Hn)-S*Math.sin(_*Hn),Math.sin(_*Hn)+S*Math.cos(_*Hn)],k=L[0],M=L[1],sA=[Math.cos(q*Hn),Math.sin(q*Hn)],rA=sA[0],oA=sA[1],tA=[rA+S*Math.sin(q*Hn),oA-S*Math.cos(q*Hn)],aA=tA[0],cA=tA[1];P[j]={relative:f.relative,type:bA.CURVE_TO};var QA=function(U,O){var R=wg([U*f.rX,O*f.rY],f.xRot),V=R[0],J=R[1];return[f.cX+V,f.cY+J]};h=QA(k,M),P[j].x1=h[0],P[j].y1=h[1],m=QA(aA,cA),P[j].x2=m[0],P[j].y2=m[1],w=QA(rA,oA),P[j].x=w[0],P[j].y=w[1],f.relative&&(P[j].x1-=G,P[j].y1-=$,P[j].x2-=G,P[j].y2-=$,P[j].x-=G,P[j].y-=$),G=(F=[P[j].x,P[j].y])[0],$=F[1]}return P}(s,s.relative?0:o,s.relative?0:u):s})},r.ANNOTATE_ARCS=function(){return n(function(s,o,u){return s.relative&&(o=0,u=0),bA.ARC===s.type&&mg(s,o,u),s})},r.CLONE=a,r.CALCULATE_BOUNDS=function(){var s=function(p){var h={};for(var m in p)h[m]=p[m];return h},o=A(),u=t(),f=e(),d=n(function(p,h,m){var w=f(u(o(s(p))));function F(cA){cA>d.maxX&&(d.maxX=cA),cA<d.minX&&(d.minX=cA)}function y(cA){cA>d.maxY&&(d.maxY=cA),cA<d.minY&&(d.minY=cA)}if(w.type&bA.DRAWING_COMMANDS&&(F(h),y(m)),w.type&bA.HORIZ_LINE_TO&&F(w.x),w.type&bA.VERT_LINE_TO&&y(w.y),w.type&bA.LINE_TO&&(F(w.x),y(w.y)),w.type&bA.CURVE_TO){F(w.x),y(w.y);for(var Q=0,T=l5(h,w.x1,w.x2,w.x);Q<T.length;Q++)0<(aA=T[Q])&&1>aA&&F(u5(h,w.x1,w.x2,w.x,aA));for(var P=0,G=l5(m,w.y1,w.y2,w.y);P<G.length;P++)0<(aA=G[P])&&1>aA&&y(u5(m,w.y1,w.y2,w.y,aA))}if(w.type&bA.ARC){F(w.x),y(w.y),mg(w,h,m);for(var $=w.xRot/180*Math.PI,j=Math.cos($)*w.rX,_=Math.sin($)*w.rX,q=-Math.sin($)*w.rY,iA=Math.cos($)*w.rY,S=w.phi1<w.phi2?[w.phi1,w.phi2]:-180>w.phi2?[w.phi2+360,w.phi1+360]:[w.phi2,w.phi1],L=S[0],k=S[1],M=function(cA){var QA=cA[0],U=cA[1],O=180*Math.atan2(U,QA)/Math.PI;return O<L?O+360:O},sA=0,rA=a5(q,-j,0).map(M);sA<rA.length;sA++)(aA=rA[sA])>L&&aA<k&&F(o5(w.cX,j,q,aA));for(var oA=0,tA=a5(iA,-_,0).map(M);oA<tA.length;oA++){var aA;(aA=tA[oA])>L&&aA<k&&y(o5(w.cY,_,iA,aA))}}return p});return d.minX=1/0,d.maxX=-1/0,d.minY=1/0,d.maxY=-1/0,d}})(pt||(pt={}));var nn,c5=function(){function r(){}return r.prototype.round=function(A){return this.transform(pt.ROUND(A))},r.prototype.toAbs=function(){return this.transform(pt.TO_ABS())},r.prototype.toRel=function(){return this.transform(pt.TO_REL())},r.prototype.normalizeHVZ=function(A,e,t){return this.transform(pt.NORMALIZE_HVZ(A,e,t))},r.prototype.normalizeST=function(){return this.transform(pt.NORMALIZE_ST())},r.prototype.qtToC=function(){return this.transform(pt.QT_TO_C())},r.prototype.aToC=function(){return this.transform(pt.A_TO_C())},r.prototype.sanitize=function(A){return this.transform(pt.SANITIZE(A))},r.prototype.translate=function(A,e){return this.transform(pt.TRANSLATE(A,e))},r.prototype.scale=function(A,e){return this.transform(pt.SCALE(A,e))},r.prototype.rotate=function(A,e,t){return this.transform(pt.ROTATE(A,e,t))},r.prototype.matrix=function(A,e,t,n,i,a){return this.transform(pt.MATRIX(A,e,t,n,i,a))},r.prototype.skewX=function(A){return this.transform(pt.SKEW_X(A))},r.prototype.skewY=function(A){return this.transform(pt.SKEW_Y(A))},r.prototype.xSymmetry=function(A){return this.transform(pt.X_AXIS_SYMMETRY(A))},r.prototype.ySymmetry=function(A){return this.transform(pt.Y_AXIS_SYMMETRY(A))},r.prototype.annotateArcs=function(){return this.transform(pt.ANNOTATE_ARCS())},r}(),rH=function(r){return r===" "||r===" "||r==="\r"||r===`
|
|
821
|
+
`},f5=function(r){return 48<=r.charCodeAt(0)&&r.charCodeAt(0)<=57},nH=function(r){function A(){var e=r.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return i5(A,r),A.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(" ",e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},A.prototype.parse=function(e,t){var n=this;t===void 0&&(t=[]);for(var i=function(d){t.push(d),n.curArgs.length=0,n.canParseCommandOrComma=!0},a=0;a<e.length;a++){var s=e[a],o=!(this.curCommandType!==bA.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),u=f5(s)&&(this.curNumber==="0"&&s==="0"||o);if(!f5(s)||u)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var f=Number(this.curNumber);if(isNaN(f))throw new SyntaxError("Invalid number ending at "+a);if(this.curCommandType===bA.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>f)throw new SyntaxError('Expected positive number, got "'+f+'" at index "'+a+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+a+'"')}this.curArgs.push(f),this.curArgs.length===iH[this.curCommandType]&&(bA.HORIZ_LINE_TO===this.curCommandType?i({type:bA.HORIZ_LINE_TO,relative:this.curCommandRelative,x:f}):bA.VERT_LINE_TO===this.curCommandType?i({type:bA.VERT_LINE_TO,relative:this.curCommandRelative,y:f}):this.curCommandType===bA.MOVE_TO||this.curCommandType===bA.LINE_TO||this.curCommandType===bA.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),bA.MOVE_TO===this.curCommandType&&(this.curCommandType=bA.LINE_TO)):this.curCommandType===bA.CURVE_TO?i({type:bA.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===bA.SMOOTH_CURVE_TO?i({type:bA.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===bA.QUAD_TO?i({type:bA.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===bA.ARC&&i({type:bA.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!rH(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(u)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+a+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+a+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=bA.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=bA.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=bA.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=bA.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=bA.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=bA.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=bA.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=bA.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+a+".");this.curCommandType=bA.ARC,this.curCommandRelative=s==="a"}else t.push({type:bA.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return t},A.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){n===void 0&&(n=[]);for(var i=0,a=Object.getPrototypeOf(this).parse.call(this,t);i<a.length;i++){var s=a[i],o=e(s);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},A}(c5),bA=function(r){function A(e){var t=r.call(this)||this;return t.commands=typeof e=="string"?A.parse(e):e,t}return i5(A,r),A.prototype.encode=function(){return A.encode(this.commands)},A.prototype.getBounds=function(){var e=pt.CALCULATE_BOUNDS();return this.transform(e),e},A.prototype.transform=function(e){for(var t=[],n=0,i=this.commands;n<i.length;n++){var a=e(i[n]);Array.isArray(a)?t.push.apply(t,a):t.push(a)}return this.commands=t,this},A.encode=function(e){return tH(e)},A.parse=function(e){var t=new nH,n=[];return t.parse(e,n),t.finish(n),n},A.CLOSE_PATH=1,A.MOVE_TO=2,A.HORIZ_LINE_TO=4,A.VERT_LINE_TO=8,A.LINE_TO=16,A.CURVE_TO=32,A.SMOOTH_CURVE_TO=64,A.QUAD_TO=128,A.SMOOTH_QUAD_TO=256,A.ARC=512,A.LINE_COMMANDS=A.LINE_TO|A.HORIZ_LINE_TO|A.VERT_LINE_TO,A.DRAWING_COMMANDS=A.HORIZ_LINE_TO|A.VERT_LINE_TO|A.LINE_TO|A.CURVE_TO|A.SMOOTH_CURVE_TO|A.QUAD_TO|A.SMOOTH_QUAD_TO|A.ARC,A}(c5),iH=((nn={})[bA.MOVE_TO]=2,nn[bA.LINE_TO]=2,nn[bA.HORIZ_LINE_TO]=1,nn[bA.VERT_LINE_TO]=1,nn[bA.CLOSE_PATH]=0,nn[bA.QUAD_TO]=4,nn[bA.SMOOTH_QUAD_TO]=2,nn[bA.CURVE_TO]=6,nn[bA.SMOOTH_CURVE_TO]=4,nn[bA.ARC]=7,nn),aH=hu.PROPER,sH=qi,oH=Ar,h5=mn,lH=Ye,uH=jd,yg="toString",d5=RegExp.prototype,g5=d5[yg],cH=lH(function(){return g5.call({source:"a",flags:"b"})!=="/a/b"}),fH=aH&&g5.name!==yg;(cH||fH)&&sH(d5,yg,function(){var A=oH(this),e=h5(A.source),t=h5(uH(A));return"/"+e+"/"+t},{unsafe:!0});function zu(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zu=function(A){return typeof A}:zu=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},zu(r)}function hH(r,A){if(!(r instanceof A))throw new TypeError("Cannot call a class as a function")}var dH=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],gH=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function pH(r,A,e,t,n){if(typeof r=="string"&&(r=document.getElementById(r)),!r||zu(r)!=="object"||!("getContext"in r))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=r.getContext("2d");try{return i.getImageData(A,e,t,n)}catch(a){throw new Error("unable to access image data: "+a)}}function vH(r,A,e,t,n,i){if(!(isNaN(i)||i<1)){i|=0;var a=pH(r,A,e,t,n);a=BH(a,A,e,t,n,i),r.getContext("2d").putImageData(a,A,e)}}function BH(r,A,e,t,n,i){for(var a=r.data,s=2*i+1,o=t-1,u=n-1,f=i+1,d=f*(f+1)/2,p=new p5,h=p,m,w=1;w<s;w++)h=h.next=new p5,w===f&&(m=h);h.next=p;for(var F=null,y=null,Q=0,T=0,P=dH[i],G=gH[i],$=0;$<n;$++){h=p;for(var j=a[T],_=a[T+1],q=a[T+2],iA=a[T+3],S=0;S<f;S++)h.r=j,h.g=_,h.b=q,h.a=iA,h=h.next;for(var L=0,k=0,M=0,sA=0,rA=f*j,oA=f*_,tA=f*q,aA=f*iA,cA=d*j,QA=d*_,U=d*q,O=d*iA,R=1;R<f;R++){var V=T+((o<R?o:R)<<2),J=a[V],AA=a[V+1],fA=a[V+2],hA=a[V+3],EA=f-R;cA+=(h.r=J)*EA,QA+=(h.g=AA)*EA,U+=(h.b=fA)*EA,O+=(h.a=hA)*EA,L+=J,k+=AA,M+=fA,sA+=hA,h=h.next}F=p,y=m;for(var FA=0;FA<t;FA++){var NA=O*P>>>G;if(a[T+3]=NA,NA!==0){var LA=255/NA;a[T]=(cA*P>>>G)*LA,a[T+1]=(QA*P>>>G)*LA,a[T+2]=(U*P>>>G)*LA}else a[T]=a[T+1]=a[T+2]=0;cA-=rA,QA-=oA,U-=tA,O-=aA,rA-=F.r,oA-=F.g,tA-=F.b,aA-=F.a;var VA=FA+i+1;VA=Q+(VA<o?VA:o)<<2,L+=F.r=a[VA],k+=F.g=a[VA+1],M+=F.b=a[VA+2],sA+=F.a=a[VA+3],cA+=L,QA+=k,U+=M,O+=sA,F=F.next;var dA=y,K=dA.r,Ae=dA.g,kA=dA.b,yA=dA.a;rA+=K,oA+=Ae,tA+=kA,aA+=yA,L-=K,k-=Ae,M-=kA,sA-=yA,y=y.next,T+=4}Q+=t}for(var xA=0;xA<t;xA++){T=xA<<2;var SA=a[T],IA=a[T+1],KA=a[T+2],qA=a[T+3],te=f*SA,re=f*IA,se=f*KA,he=f*qA,zA=d*SA,ne=d*IA,TA=d*KA,Ke=d*qA;h=p;for(var de=0;de<f;de++)h.r=SA,h.g=IA,h.b=KA,h.a=qA,h=h.next;for(var Ft=t,we=0,ge=0,lt=0,pe=0,zt=1;zt<=i;zt++){T=Ft+xA<<2;var Ie=f-zt;zA+=(h.r=SA=a[T])*Ie,ne+=(h.g=IA=a[T+1])*Ie,TA+=(h.b=KA=a[T+2])*Ie,Ke+=(h.a=qA=a[T+3])*Ie,pe+=SA,we+=IA,ge+=KA,lt+=qA,h=h.next,zt<u&&(Ft+=t)}T=xA,F=p,y=m;for(var qe=0;qe<n;qe++){var De=T<<2;a[De+3]=qA=Ke*P>>>G,qA>0?(qA=255/qA,a[De]=(zA*P>>>G)*qA,a[De+1]=(ne*P>>>G)*qA,a[De+2]=(TA*P>>>G)*qA):a[De]=a[De+1]=a[De+2]=0,zA-=te,ne-=re,TA-=se,Ke-=he,te-=F.r,re-=F.g,se-=F.b,he-=F.a,De=xA+((De=qe+f)<u?De:u)*t<<2,zA+=pe+=F.r=a[De],ne+=we+=F.g=a[De+1],TA+=ge+=F.b=a[De+2],Ke+=lt+=F.a=a[De+3],F=F.next,te+=SA=y.r,re+=IA=y.g,se+=KA=y.b,he+=qA=y.a,pe-=SA,we-=IA,ge-=KA,lt-=qA,y=y.next,T+=t}}return r}var p5=function r(){hH(this,r),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function wH(){var{DOMParser:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:r,createCanvas(e,t){return new OffscreenCanvas(e,t)},createImage(e){return Tn(function*(){var t=yield fetch(e),n=yield t.blob(),i=yield createImageBitmap(n);return i})()}};return(typeof DOMParser!="undefined"||typeof r=="undefined")&&Reflect.deleteProperty(A,"DOMParser"),A}function mH(r){var{DOMParser:A,canvas:e,fetch:t}=r;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:A,fetch:t,createCanvas:e.createCanvas,createImage:e.loadImage}}var yH=Object.freeze({__proto__:null,offscreen:wH,node:mH});function Zi(r){return r.replace(/(?!\u3000)\s+/gm," ")}function v5(r){return r.replace(/^[\n \t]+/,"")}function B5(r){return r.replace(/[\n \t]+$/,"")}function cr(r){var A=(r||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return A.map(parseFloat)}var bH=/^[A-Z-]+$/;function w5(r){return bH.test(r)?r.toLowerCase():r}function bg(r){var A=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(r)||[];return A[2]||A[3]||A[4]}function m5(r){if(!r.startsWith("rgb"))return r;var A=3,e=r.replace(/\d+(\.\d+)?/g,(t,n)=>A--&&n?String(Math.round(parseFloat(t))):t);return e}var CH=/(\[[^\]]+\])/g,FH=/(#[^\s+>~.[:]+)/g,QH=/(\.[^\s+>~.[:]+)/g,UH=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,EH=/(:[\w-]+\([^)]*\))/gi,xH=/(:[^\s+>~.[:]+)/g,IH=/([^\s+>~.[:]+)/g;function Aa(r,A){var e=A.exec(r);return e?[r.replace(A," "),e.length]:[r,0]}function y5(r){var A=[0,0,0],e=r.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),t=0;return[e,t]=Aa(e,CH),A[1]+=t,[e,t]=Aa(e,FH),A[0]+=t,[e,t]=Aa(e,QH),A[1]+=t,[e,t]=Aa(e,UH),A[2]+=t,[e,t]=Aa(e,EH),A[1]+=t,[e,t]=Aa(e,xH),A[1]+=t,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,t]=Aa(e,IH),A[2]+=t,A.join("")}var ea=1e-8;function Cg(r){return Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2))}function Xu(r,A){return(r[0]*A[0]+r[1]*A[1])/(Cg(r)*Cg(A))}function Fg(r,A){return(r[0]*A[1]<r[1]*A[0]?-1:1)*Math.acos(Xu(r,A))}function Qg(r){return r*r*r}function Ug(r){return 3*r*r*(1-r)}function Eg(r){return 3*r*(1-r)*(1-r)}function xg(r){return(1-r)*(1-r)*(1-r)}function Ig(r){return r*r}function Sg(r){return 2*r*(1-r)}function Lg(r){return(1-r)*(1-r)}class WA{constructor(A,e,t){this.document=A,this.name=e,this.value=t,this.isNormalizedColor=!1}static empty(A){return new WA(A,"EMPTY","")}split(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:e,name:t}=this;return Zi(this.getString()).trim().split(A).map(n=>new WA(e,t,n))}hasValue(A){var{value:e}=this;return e!==null&&e!==""&&(A||e!==0)&&typeof e!="undefined"}isString(A){var{value:e}=this,t=typeof e=="string";return!t||!A?t:A.test(e)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var A=this.getString();switch(!0){case A.endsWith("px"):case/^[0-9]+$/.test(A):return!0;default:return!1}}setValue(A){return this.value=A,this}getValue(A){return typeof A=="undefined"||this.hasValue()?this.value:A}getNumber(A){if(!this.hasValue())return typeof A=="undefined"?0:parseFloat(A);var{value:e}=this,t=parseFloat(e);return this.isString(/%$/)&&(t/=100),t}getString(A){return typeof A=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(A)}getColor(A){var e=this.getString(A);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=m5(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[t,n]=typeof A=="boolean"?[void 0,A]:[A],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(t);default:{var a=this.getNumber();return e&&a<1?a*i.computeSize(t):a}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var A=this.getString(),e=/#([^)'"]+)/.exec(A);return e&&(e=e[1]),e||(e=A),this.document.definitions[e]}getFillStyleDefinition(A,e){var t=this.getDefinition();if(!t)return null;if(typeof t.createGradient=="function")return t.createGradient(this.document.ctx,A,e);if(typeof t.createPattern=="function"){if(t.getHrefAttribute().hasValue()){var n=t.getAttribute("patternTransform");t=t.getHrefAttribute().getDefinition(),n.hasValue()&&t.getAttribute("patternTransform",!0).setValue(n.value)}return t.createPattern(this.document.ctx,A,e)}return null}getTextBaseline(){return this.hasValue()?WA.textBaselineMapping[this.getString()]:null}addOpacity(A){for(var e=this.getColor(),t=e.length,n=0,i=0;i<t&&(e[i]===","&&n++,n!==3);i++);if(A.hasValue()&&this.isString()&&n!==3){var a=new vg(e);a.ok&&(a.alpha=A.getNumber(),e=a.toRGBA())}return new WA(this.document,this.name,e)}}WA.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class b5{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(A,e){this.viewPorts.push({width:A,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:A}=this;return A[A.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(A){return typeof A=="number"?A:A==="x"?this.width:A==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Ze{constructor(A,e){this.x=A,this.y=e}static parse(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[t=e,n=e]=cr(A);return new Ze(t,n)}static parseScale(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[t=e,n=t]=cr(A);return new Ze(t,n)}static parsePath(A){for(var e=cr(A),t=e.length,n=[],i=0;i<t;i+=2)n.push(new Ze(e[i],e[i+1]));return n}angleTo(A){return Math.atan2(A.y-this.y,A.x-this.x)}applyTransform(A){var{x:e,y:t}=this,n=e*A[0]+t*A[2]+A[4],i=e*A[1]+t*A[3]+A[5];this.x=n,this.y=i}}class C5{constructor(A){this.screen=A,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:A,onClick:e,onMouseMove:t}=this,n=A.ctx.canvas;n.onclick=e,n.onmousemove=t,this.working=!0}}stop(){if(this.working){var A=this.screen.ctx.canvas;this.working=!1,A.onclick=null,A.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:A,events:e,eventElements:t}=this,{style:n}=A.ctx.canvas;n&&(n.cursor=""),e.forEach((i,a)=>{for(var{run:s}=i,o=t[a];o;)s(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(A,e){if(!(!this.working||!e)){var{events:t,eventElements:n}=this;t.forEach((i,a)=>{var{x:s,y:o}=i;!n[a]&&e.isPointInPath&&e.isPointInPath(s,o)&&(n[a]=A)})}}checkBoundingBox(A,e){if(!(!this.working||!e)){var{events:t,eventElements:n}=this;t.forEach((i,a)=>{var{x:s,y:o}=i;!n[a]&&e.isPointInBox(s,o)&&(n[a]=A)})}}mapXY(A,e){for(var{window:t,ctx:n}=this.screen,i=new Ze(A,e),a=n.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return t.scrollX&&(i.x+=t.scrollX),t.scrollY&&(i.y+=t.scrollY),i}onClick(A){var{x:e,y:t}=this.mapXY(A.clientX,A.clientY);this.events.push({type:"onclick",x:e,y:t,run(n){n.onClick&&n.onClick()}})}onMouseMove(A){var{x:e,y:t}=this.mapXY(A.clientX,A.clientY);this.events.push({type:"onmousemove",x:e,y:t,run(n){n.onMouseMove&&n.onMouseMove()}})}}var F5=typeof window!="undefined"?window:null,Q5=typeof fetch!="undefined"?fetch.bind(void 0):null;class wo{constructor(A){var{fetch:e=Q5,window:t=F5}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=A,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new b5,this.mouse=new C5(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=t,this.fetch=e}wait(A){this.waits.push(A)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var A=this.waits.every(e=>e());return A&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=A,A}setDefaults(A){A.strokeStyle="rgba(0,0,0,0)",A.lineCap="butt",A.lineJoin="miter",A.miterLimit=4}setViewBox(A){var{document:e,ctx:t,aspectRatio:n,width:i,desiredWidth:a,height:s,desiredHeight:o,minX:u=0,minY:f=0,refX:d,refY:p,clip:h=!1,clipX:m=0,clipY:w=0}=A,F=Zi(n).replace(/^defer\s/,""),[y,Q]=F.split(" "),T=y||"xMidYMid",P=Q||"meet",G=i/a,$=s/o,j=Math.min(G,$),_=Math.max(G,$),q=a,iA=o;P==="meet"&&(q*=j,iA*=j),P==="slice"&&(q*=_,iA*=_);var S=new WA(e,"refX",d),L=new WA(e,"refY",p),k=S.hasValue()&&L.hasValue();if(k&&t.translate(-j*S.getPixels("x"),-j*L.getPixels("y")),h){var M=j*m,sA=j*w;t.beginPath(),t.moveTo(M,sA),t.lineTo(i,sA),t.lineTo(i,s),t.lineTo(M,s),t.closePath(),t.clip()}if(!k){var rA=P==="meet"&&j===$,oA=P==="slice"&&_===$,tA=P==="meet"&&j===G,aA=P==="slice"&&_===G;T.startsWith("xMid")&&(rA||oA)&&t.translate(i/2-q/2,0),T.endsWith("YMid")&&(tA||aA)&&t.translate(0,s/2-iA/2),T.startsWith("xMax")&&(rA||oA)&&t.translate(i-q,0),T.endsWith("YMax")&&(tA||aA)&&t.translate(0,s-iA)}switch(!0){case T==="none":t.scale(G,$);break;case P==="meet":t.scale(j,j);break;case P==="slice":t.scale(_,_);break}t.translate(-u,-f)}start(A){var{enableRedraw:e=!1,ignoreMouse:t=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:u,offsetX:f,offsetY:d}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:p,mouse:h}=this,m=1e3/p;if(this.frameDuration=m,this.readyPromise=new Promise(T=>{this.resolveReady=T}),this.isReady()&&this.render(A,i,a,o,u,f,d),!!e){var w=Date.now(),F=w,y=0,Q=()=>{w=Date.now(),y=w-F,y>=m&&(F=w-y%m,this.shouldUpdate(n,s)&&(this.render(A,i,a,o,u,f,d),h.runEvents())),this.intervalId=gg(Q)};t||h.start(),this.intervalId=gg(Q)}}stop(){this.intervalId&&(gg.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(A,e){if(!A){var{frameDuration:t}=this,n=this.animations.reduce((i,a)=>a.update(t)||i,!1);if(n)return!0}return!!(typeof e=="function"&&e()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(A,e,t,n,i,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:u,viewPort:f,ctx:d,isFirstRender:p}=this,h=d.canvas;f.clear(),h.width&&h.height?f.setCurrent(h.width,h.height):f.setCurrent(o,u);var m=A.getStyle("width"),w=A.getStyle("height");!e&&(p||typeof n!="number"&&typeof i!="number")&&(m.hasValue()&&(h.width=m.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),w.hasValue()&&(h.height=w.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var F=h.clientWidth||h.width,y=h.clientHeight||h.height;if(e&&m.hasValue()&&w.hasValue()&&(F=m.getPixels("x"),y=w.getPixels("y")),f.setCurrent(F,y),typeof a=="number"&&A.getAttribute("x",!0).setValue(a),typeof s=="number"&&A.getAttribute("y",!0).setValue(s),typeof n=="number"||typeof i=="number"){var Q=cr(A.getAttribute("viewBox").getString()),T=0,P=0;if(typeof n=="number"){var G=A.getStyle("width");G.hasValue()?T=G.getPixels("x")/n:isNaN(Q[2])||(T=Q[2]/n)}if(typeof i=="number"){var $=A.getStyle("height");$.hasValue()?P=$.getPixels("y")/i:isNaN(Q[3])||(P=Q[3]/i)}T||(T=P),P||(P=T),A.getAttribute("width",!0).setValue(n),A.getAttribute("height",!0).setValue(i);var j=A.getStyle("transform",!0,!0);j.setValue("".concat(j.getString()," scale(").concat(1/T,", ").concat(1/P,")"))}t||d.clearRect(0,0,F,y),A.render(d),p&&(this.isFirstRender=!1)}}wo.defaultWindow=F5,wo.defaultFetch=Q5;var{defaultFetch:SH}=wo,LH=typeof DOMParser!="undefined"?DOMParser:null;class Yu{constructor(){var{fetch:A=SH,DOMParser:e=LH}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=A,this.DOMParser=e}parse(A){var e=this;return Tn(function*(){return A.startsWith("<")?e.parseFromString(A):e.load(A)})()}parseFromString(A){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(A,"image/svg+xml"))}catch(t){return this.checkDocument(e.parseFromString(A,"text/xml"))}}checkDocument(A){var e=A.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return A}load(A){var e=this;return Tn(function*(){var t=yield e.fetch(A),n=yield t.text();return e.parseFromString(n)})()}}class U5{constructor(A,e){this.type="translate",this.point=null,this.point=Ze.parse(e)}apply(A){var{x:e,y:t}=this.point;A.translate(e||0,t||0)}unapply(A){var{x:e,y:t}=this.point;A.translate(-1*e||0,-1*t||0)}applyToPoint(A){var{x:e,y:t}=this.point;A.applyTransform([1,0,0,1,e||0,t||0])}}class E5{constructor(A,e,t){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=cr(e);this.angle=new WA(A,"angle",n[0]),this.originX=t[0],this.originY=t[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(A){var{cx:e,cy:t,originX:n,originY:i,angle:a}=this,s=e+n.getPixels("x"),o=t+i.getPixels("y");A.translate(s,o),A.rotate(a.getRadians()),A.translate(-s,-o)}unapply(A){var{cx:e,cy:t,originX:n,originY:i,angle:a}=this,s=e+n.getPixels("x"),o=t+i.getPixels("y");A.translate(s,o),A.rotate(-1*a.getRadians()),A.translate(-s,-o)}applyToPoint(A){var{cx:e,cy:t,angle:n}=this,i=n.getRadians();A.applyTransform([1,0,0,1,e||0,t||0]),A.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),A.applyTransform([1,0,0,1,-e||0,-t||0])}}class x5{constructor(A,e,t){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=Ze.parseScale(e);(n.x===0||n.y===0)&&(n.x=ea,n.y=ea),this.scale=n,this.originX=t[0],this.originY=t[1]}apply(A){var{scale:{x:e,y:t},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");A.translate(a,s),A.scale(e,t||e),A.translate(-a,-s)}unapply(A){var{scale:{x:e,y:t},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");A.translate(a,s),A.scale(1/e,1/t||e),A.translate(-a,-s)}applyToPoint(A){var{x:e,y:t}=this.scale;A.applyTransform([e||0,0,0,t||0,0,0])}}class Ng{constructor(A,e,t){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=cr(e),this.originX=t[0],this.originY=t[1]}apply(A){var{originX:e,originY:t,matrix:n}=this,i=e.getPixels("x"),a=t.getPixels("y");A.translate(i,a),A.transform(n[0],n[1],n[2],n[3],n[4],n[5]),A.translate(-i,-a)}unapply(A){var{originX:e,originY:t,matrix:n}=this,i=n[0],a=n[2],s=n[4],o=n[1],u=n[3],f=n[5],d=0,p=0,h=1,m=1/(i*(u*h-f*p)-a*(o*h-f*d)+s*(o*p-u*d)),w=e.getPixels("x"),F=t.getPixels("y");A.translate(w,F),A.transform(m*(u*h-f*p),m*(f*d-o*h),m*(s*p-a*h),m*(i*h-s*d),m*(a*f-s*u),m*(s*o-i*f)),A.translate(-w,-F)}applyToPoint(A){A.applyTransform(this.matrix)}}class Tg extends Ng{constructor(A,e,t){super(A,e,t),this.type="skew",this.angle=null,this.angle=new WA(A,"angle",e)}}class I5 extends Tg{constructor(A,e,t){super(A,e,t),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class S5 extends Tg{constructor(A,e,t){super(A,e,t),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function NH(r){return Zi(r).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function TH(r){var[A,e]=r.split("(");return[A.trim(),e.trim().replace(")","")]}class gi{constructor(A,e,t){this.document=A,this.transforms=[];var n=NH(e);n.forEach(i=>{if(i!=="none"){var[a,s]=TH(i),o=gi.transformTypes[a];typeof o!="undefined"&&this.transforms.push(new o(this.document,s,t))}})}static fromElement(A,e){var t=e.getStyle("transform",!1,!0),[n,i=n]=e.getStyle("transform-origin",!1,!0).split(),a=[n,i];return t.hasValue()?new gi(A,t.getString(),a):null}apply(A){for(var{transforms:e}=this,t=e.length,n=0;n<t;n++)e[n].apply(A)}unapply(A){for(var{transforms:e}=this,t=e.length,n=t-1;n>=0;n--)e[n].unapply(A)}applyToPoint(A){for(var{transforms:e}=this,t=e.length,n=0;n<t;n++)e[n].applyToPoint(A)}}gi.transformTypes={translate:U5,rotate:E5,scale:x5,matrix:Ng,skewX:I5,skewY:S5};class Pe{constructor(A,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=A,this.node=e,this.captureTextNodes=t,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!e||e.nodeType!==1)){if(Array.from(e.attributes).forEach(s=>{var o=w5(s.nodeName);this.attributes[o]=new WA(A,o,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(s=>s.trim());n.forEach(s=>{if(s){var[o,u]=s.split(":").map(f=>f.trim());this.styles[o]=new WA(A,o,u)}})}var{definitions:i}=A,a=this.getAttribute("id");a.hasValue()&&(i[a.getString()]||(i[a.getString()]=this)),Array.from(e.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(t&&(s.nodeType===3||s.nodeType===4)){var o=A.createTextNode(s);o.getText().length>0&&this.addChild(o)}})}}getAttribute(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.attributes[A];if(!t&&e){var n=new WA(this.document,A,"");return this.attributes[A]=n,n}return t||WA.empty(this.document)}getHrefAttribute(){for(var A in this.attributes)if(A==="href"||A.endsWith(":href"))return this.attributes[A];return WA.empty(this.document)}getStyle(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[A];if(n)return n;var i=this.getAttribute(A);if(i!=null&&i.hasValue())return this.styles[A]=i,i;if(!t){var{parent:a}=this;if(a){var s=a.getStyle(A);if(s!=null&&s.hasValue())return s}}if(e){var o=new WA(this.document,A,"");return this.styles[A]=o,o}return n||WA.empty(this.document)}render(A){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(A.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(A),e.apply(A,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var t=this.getStyle("filter").getDefinition();t&&(this.applyEffects(A),t.apply(A,this))}else this.setContext(A),this.renderChildren(A),this.clearContext(A);A.restore()}}setContext(A){}applyEffects(A){var e=gi.fromElement(this.document,this);e&&e.apply(A);var t=this.getStyle("clip-path",!1,!0);if(t.hasValue()){var n=t.getDefinition();n&&n.apply(A)}}clearContext(A){}renderChildren(A){this.children.forEach(e=>{e.render(A)})}addChild(A){var e=A instanceof Pe?A:this.document.createElement(A);e.parent=this,Pe.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(A){var e,{node:t}=this;if(typeof t.matches=="function")return t.matches(A);var n=(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"class");return!n||n===""?!1:n.split(" ").some(i=>".".concat(i)===A)}addStylesFromStyleDefinition(){var{styles:A,stylesSpecificity:e}=this.document;for(var t in A)if(!t.startsWith("@")&&this.matchesSelector(t)){var n=A[t],i=e[t];if(n)for(var a in n){var s=this.stylesSpecificity[a];typeof s=="undefined"&&(s="000"),i>=s&&(this.styles[a]=n[a],this.stylesSpecificity[a]=i)}}}removeStyles(A,e){var t=e.reduce((n,i)=>{var a=A.getStyle(i);if(!a.hasValue())return n;var s=a.getString();return a.setValue(""),[...n,[i,s]]},[]);return t}restoreStyles(A,e){e.forEach(t=>{var[n,i]=t;A.getStyle(n,!0).setValue(i)})}isFirstChild(){var A;return((A=this.parent)===null||A===void 0?void 0:A.children.indexOf(this))===0}}Pe.ignoreChildTypes=["title"];class L5 extends Pe{constructor(A,e,t){super(A,e,t)}}function OH(r){var A=r.trim();return/^('|")/.test(A)?A:'"'.concat(A,'"')}function HH(r){return typeof process=="undefined"?r:r.trim().split(",").map(OH).join(",")}function _H(r){if(!r)return"";var A=r.trim().toLowerCase();switch(A){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return A;default:return/^oblique\s+(-|)\d+deg$/.test(A)?A:""}}function PH(r){if(!r)return"";var A=r.trim().toLowerCase();switch(A){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return A;default:return/^[\d.]+$/.test(A)?A:""}}class Wt{constructor(A,e,t,n,i,a){var s=a?typeof a=="string"?Wt.parse(a):a:{};this.fontFamily=i||s.fontFamily,this.fontSize=n||s.fontSize,this.fontStyle=A||s.fontStyle,this.fontWeight=t||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,t="",n="",i="",a="",s="",o=Zi(A).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(f=>{switch(!0){case(!u.fontStyle&&Wt.styles.includes(f)):f!=="inherit"&&(t=f),u.fontStyle=!0;break;case(!u.fontVariant&&Wt.variants.includes(f)):f!=="inherit"&&(n=f),u.fontStyle=!0,u.fontVariant=!0;break;case(!u.fontWeight&&Wt.weights.includes(f)):f!=="inherit"&&(i=f),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:f!=="inherit"&&([a]=f.split("/")),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:f!=="inherit"&&(s+=f)}}),new Wt(t,n,i,a,s,e)}toString(){return[_H(this.fontStyle),this.fontVariant,PH(this.fontWeight),this.fontSize,HH(this.fontFamily)].join(" ").trim()}}Wt.styles="normal|italic|oblique|inherit",Wt.variants="normal|small-caps|inherit",Wt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Hr{constructor(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=A,this.y1=e,this.x2=t,this.y2=n,this.addPoint(A,e),this.addPoint(t,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(A,e){typeof A!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=A,this.x2=A),A<this.x1&&(this.x1=A),A>this.x2&&(this.x2=A)),typeof e!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(A){this.addPoint(A,null)}addY(A){this.addPoint(null,A)}addBoundingBox(A){if(A){var{x1:e,y1:t,x2:n,y2:i}=A;this.addPoint(e,t),this.addPoint(n,i)}}sumCubic(A,e,t,n,i){return Math.pow(1-A,3)*e+3*Math.pow(1-A,2)*A*t+3*(1-A)*Math.pow(A,2)*n+Math.pow(A,3)*i}bezierCurveAdd(A,e,t,n,i){var a=6*e-12*t+6*n,s=-3*e+9*t-9*n+3*i,o=3*t-3*e;if(s===0){if(a===0)return;var u=-o/a;0<u&&u<1&&(A?this.addX(this.sumCubic(u,e,t,n,i)):this.addY(this.sumCubic(u,e,t,n,i)));return}var f=Math.pow(a,2)-4*o*s;if(!(f<0)){var d=(-a+Math.sqrt(f))/(2*s);0<d&&d<1&&(A?this.addX(this.sumCubic(d,e,t,n,i)):this.addY(this.sumCubic(d,e,t,n,i)));var p=(-a-Math.sqrt(f))/(2*s);0<p&&p<1&&(A?this.addX(this.sumCubic(p,e,t,n,i)):this.addY(this.sumCubic(p,e,t,n,i)))}}addBezierCurve(A,e,t,n,i,a,s,o){this.addPoint(A,e),this.addPoint(s,o),this.bezierCurveAdd(!0,A,t,i,s),this.bezierCurveAdd(!1,e,n,a,o)}addQuadraticCurve(A,e,t,n,i,a){var s=A+.6666666666666666*(t-A),o=e+2/3*(n-e),u=s+1/3*(i-A),f=o+1/3*(a-e);this.addBezierCurve(A,e,s,u,o,f,i,a)}isPointInBox(A,e){var{x1:t,y1:n,x2:i,y2:a}=this;return t<=A&&A<=i&&n<=e&&e<=a}}class le extends bA{constructor(A){super(A.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Ze(0,0),this.control=new Ze(0,0),this.current=new Ze(0,0),this.points=[],this.angles=[]}isEnd(){var{i:A,commands:e}=this;return A>=e.length-1}next(){var A=this.commands[++this.i];return this.previousCommand=this.command,this.command=A,A}getPoint(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",t=new Ze(this.command[A],this.command[e]);return this.makeAbsolute(t)}getAsControlPoint(A,e){var t=this.getPoint(A,e);return this.control=t,t}getAsCurrentPoint(A,e){var t=this.getPoint(A,e);return this.current=t,t}getReflectedControlPoint(){var A=this.previousCommand.type;if(A!==bA.CURVE_TO&&A!==bA.SMOOTH_CURVE_TO&&A!==bA.QUAD_TO&&A!==bA.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:t},control:{x:n,y:i}}=this,a=new Ze(2*e-n,2*t-i);return a}makeAbsolute(A){if(this.command.relative){var{x:e,y:t}=this.current;A.x+=e,A.y+=t}return A}addMarker(A,e,t){var{points:n,angles:i}=this;t&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(t)),this.addMarkerAngle(A,e?e.angleTo(A):null)}addMarkerAngle(A,e){this.points.push(A),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:A}=this,e=A.length,t=0;t<e;t++)if(!A[t]){for(var n=t+1;n<e;n++)if(A[n]){A[t]=A[n];break}}return A}}class pi extends Pe{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var A=1,e=this;e;){var t=e.getStyle("opacity",!1,!0);t.hasValue(!0)&&(A*=t.getNumber()),e=e.parent}return A}setContext(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!e){var t=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(t.isUrlDefinition()){var s=t.getFillStyleDefinition(this,n);s&&(A.fillStyle=s)}else if(t.hasValue()){t.getString()==="currentColor"&&t.setValue(this.getStyle("color").getColor());var o=t.getColor();o!=="inherit"&&(A.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(n.hasValue()){var u=new WA(this.document,"fill",A.fillStyle).addOpacity(n).getColor();A.fillStyle=u}if(i.isUrlDefinition()){var f=i.getFillStyleDefinition(this,a);f&&(A.strokeStyle=f)}else if(i.hasValue()){i.getString()==="currentColor"&&i.setValue(this.getStyle("color").getColor());var d=i.getString();d!=="inherit"&&(A.strokeStyle=d==="none"?"rgba(0,0,0,0)":d)}if(a.hasValue()){var p=new WA(this.document,"stroke",A.strokeStyle).addOpacity(a).getString();A.strokeStyle=p}var h=this.getStyle("stroke-width");if(h.hasValue()){var m=h.getPixels();A.lineWidth=m||ea}var w=this.getStyle("stroke-linecap"),F=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),Q=this.getStyle("stroke-dasharray"),T=this.getStyle("stroke-dashoffset");if(w.hasValue()&&(A.lineCap=w.getString()),F.hasValue()&&(A.lineJoin=F.getString()),y.hasValue()&&(A.miterLimit=y.getNumber()),Q.hasValue()&&Q.getString()!=="none"){var P=cr(Q.getString());typeof A.setLineDash!="undefined"?A.setLineDash(P):typeof A.webkitLineDash!="undefined"?A.webkitLineDash=P:typeof A.mozDash!="undefined"&&!(P.length===1&&P[0]===0)&&(A.mozDash=P);var G=T.getPixels();typeof A.lineDashOffset!="undefined"?A.lineDashOffset=G:typeof A.webkitLineDashOffset!="undefined"?A.webkitLineDashOffset=G:typeof A.mozDashOffset!="undefined"&&(A.mozDashOffset=G)}}if(this.modifiedEmSizeStack=!1,typeof A.font!="undefined"){var $=this.getStyle("font"),j=this.getStyle("font-style"),_=this.getStyle("font-variant"),q=this.getStyle("font-weight"),iA=this.getStyle("font-size"),S=this.getStyle("font-family"),L=new Wt(j.getString(),_.getString(),q.getString(),iA.hasValue()?"".concat(iA.getPixels(!0),"px"):"",S.getString(),Wt.parse($.getString(),A.font));j.setValue(L.fontStyle),_.setValue(L.fontVariant),q.setValue(L.fontWeight),iA.setValue(L.fontSize),S.setValue(L.fontFamily),A.font=L.toString(),iA.isPixels()&&(this.document.emSize=iA.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(A),A.globalAlpha=this.calculateOpacity())}clearContext(A){super.clearContext(A),this.modifiedEmSizeStack&&this.document.popEmSize()}}class xe extends pi{constructor(A,e,t){super(A,e,t),this.type="path",this.pathParser=null,this.pathParser=new le(this.getAttribute("d").getString())}path(A){var{pathParser:e}=this,t=new Hr;for(e.reset(),A&&A.beginPath();!e.isEnd();)switch(e.next().type){case le.MOVE_TO:this.pathM(A,t);break;case le.LINE_TO:this.pathL(A,t);break;case le.HORIZ_LINE_TO:this.pathH(A,t);break;case le.VERT_LINE_TO:this.pathV(A,t);break;case le.CURVE_TO:this.pathC(A,t);break;case le.SMOOTH_CURVE_TO:this.pathS(A,t);break;case le.QUAD_TO:this.pathQ(A,t);break;case le.SMOOTH_QUAD_TO:this.pathT(A,t);break;case le.ARC:this.pathA(A,t);break;case le.CLOSE_PATH:this.pathZ(A,t);break}return t}getBoundingBox(A){return this.path()}getMarkers(){var{pathParser:A}=this,e=A.getMarkerPoints(),t=A.getMarkerAngles(),n=e.map((i,a)=>[i,t[a]]);return n}renderChildren(A){this.path(A),this.document.screen.mouse.checkPath(this,A);var e=this.getStyle("fill-rule");A.fillStyle!==""&&(e.getString("inherit")!=="inherit"?A.fill(e.getString()):A.fill()),A.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(A.save(),A.setTransform(1,0,0,1,0,0),A.stroke(),A.restore()):A.stroke());var t=this.getMarkers();if(t){var n=t.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[u,f]=t[0];o.render(A,u,f)}if(a.isUrlDefinition())for(var d=a.getDefinition(),p=1;p<n;p++){var[h,m]=t[p];d.render(A,h,m)}if(s.isUrlDefinition()){var w=s.getDefinition(),[F,y]=t[n];w.render(A,F,y)}}}static pathM(A){var e=A.getAsCurrentPoint();return A.start=A.current,{point:e}}pathM(A,e){var{pathParser:t}=this,{point:n}=xe.pathM(t),{x:i,y:a}=n;t.addMarker(n),e.addPoint(i,a),A&&A.moveTo(i,a)}static pathL(A){var{current:e}=A,t=A.getAsCurrentPoint();return{current:e,point:t}}pathL(A,e){var{pathParser:t}=this,{current:n,point:i}=xe.pathL(t),{x:a,y:s}=i;t.addMarker(i,n),e.addPoint(a,s),A&&A.lineTo(a,s)}static pathH(A){var{current:e,command:t}=A,n=new Ze((t.relative?e.x:0)+t.x,e.y);return A.current=n,{current:e,point:n}}pathH(A,e){var{pathParser:t}=this,{current:n,point:i}=xe.pathH(t),{x:a,y:s}=i;t.addMarker(i,n),e.addPoint(a,s),A&&A.lineTo(a,s)}static pathV(A){var{current:e,command:t}=A,n=new Ze(e.x,(t.relative?e.y:0)+t.y);return A.current=n,{current:e,point:n}}pathV(A,e){var{pathParser:t}=this,{current:n,point:i}=xe.pathV(t),{x:a,y:s}=i;t.addMarker(i,n),e.addPoint(a,s),A&&A.lineTo(a,s)}static pathC(A){var{current:e}=A,t=A.getPoint("x1","y1"),n=A.getAsControlPoint("x2","y2"),i=A.getAsCurrentPoint();return{current:e,point:t,controlPoint:n,currentPoint:i}}pathC(A,e){var{pathParser:t}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=xe.pathC(t);t.addMarker(s,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),A&&A.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathS(A){var{current:e}=A,t=A.getReflectedControlPoint(),n=A.getAsControlPoint("x2","y2"),i=A.getAsCurrentPoint();return{current:e,point:t,controlPoint:n,currentPoint:i}}pathS(A,e){var{pathParser:t}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=xe.pathS(t);t.addMarker(s,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),A&&A.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathQ(A){var{current:e}=A,t=A.getAsControlPoint("x1","y1"),n=A.getAsCurrentPoint();return{current:e,controlPoint:t,currentPoint:n}}pathQ(A,e){var{pathParser:t}=this,{current:n,controlPoint:i,currentPoint:a}=xe.pathQ(t);t.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),A&&A.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(A){var{current:e}=A,t=A.getReflectedControlPoint();A.control=t;var n=A.getAsCurrentPoint();return{current:e,controlPoint:t,currentPoint:n}}pathT(A,e){var{pathParser:t}=this,{current:n,controlPoint:i,currentPoint:a}=xe.pathT(t);t.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),A&&A.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(A){var{current:e,command:t}=A,{rX:n,rY:i,xRot:a,lArcFlag:s,sweepFlag:o}=t,u=a*(Math.PI/180),f=A.getAsCurrentPoint(),d=new Ze(Math.cos(u)*(e.x-f.x)/2+Math.sin(u)*(e.y-f.y)/2,-Math.sin(u)*(e.x-f.x)/2+Math.cos(u)*(e.y-f.y)/2),p=Math.pow(d.x,2)/Math.pow(n,2)+Math.pow(d.y,2)/Math.pow(i,2);p>1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var h=(s===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(d.y,2)-Math.pow(i,2)*Math.pow(d.x,2))/(Math.pow(n,2)*Math.pow(d.y,2)+Math.pow(i,2)*Math.pow(d.x,2)));isNaN(h)&&(h=0);var m=new Ze(h*n*d.y/i,h*-i*d.x/n),w=new Ze((e.x+f.x)/2+Math.cos(u)*m.x-Math.sin(u)*m.y,(e.y+f.y)/2+Math.sin(u)*m.x+Math.cos(u)*m.y),F=Fg([1,0],[(d.x-m.x)/n,(d.y-m.y)/i]),y=[(d.x-m.x)/n,(d.y-m.y)/i],Q=[(-d.x-m.x)/n,(-d.y-m.y)/i],T=Fg(y,Q);return Xu(y,Q)<=-1&&(T=Math.PI),Xu(y,Q)>=1&&(T=0),{currentPoint:f,rX:n,rY:i,sweepFlag:o,xAxisRotation:u,centp:w,a1:F,ad:T}}pathA(A,e){var{pathParser:t}=this,{currentPoint:n,rX:i,rY:a,sweepFlag:s,xAxisRotation:o,centp:u,a1:f,ad:d}=xe.pathA(t),p=1-s?1:-1,h=f+p*(d/2),m=new Ze(u.x+i*Math.cos(h),u.y+a*Math.sin(h));if(t.addMarkerAngle(m,h-p*Math.PI/2),t.addMarkerAngle(n,h-p*Math.PI),e.addPoint(n.x,n.y),A&&!isNaN(f)&&!isNaN(d)){var w=i>a?i:a,F=i>a?1:i/a,y=i>a?a/i:1;A.translate(u.x,u.y),A.rotate(o),A.scale(F,y),A.arc(0,0,w,f,f+d,!!(1-s)),A.scale(1/F,1/y),A.rotate(-o),A.translate(-u.x,-u.y)}}static pathZ(A){A.current=A.start}pathZ(A,e){xe.pathZ(this.pathParser),A&&e.x1!==e.x2&&e.y1!==e.y2&&A.closePath()}}class Og extends xe{constructor(A,e,t){super(A,e,t),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class _n extends pi{constructor(A,e,t){super(A,e,new.target===_n?!0:t),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(A,e);var t=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();t&&(A.textBaseline=t)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(A){if(this.type!=="text")return this.getTElementBoundingBox(A);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(A);var e=null;return this.children.forEach((t,n)=>{var i=this.getChildBoundingBox(A,this,this,n);e?e.addBoundingBox(i):e=i}),e}getFontSize(){var{document:A,parent:e}=this,t=Wt.parse(A.ctx.font).fontSize,n=e.getStyle("font-size").getNumber(t);return n}getTElementBoundingBox(A){var e=this.getFontSize();return new Hr(this.x,this.y-e,this.x+this.measureText(A),this.y)}getGlyph(A,e,t){var n=e[t],i=null;if(A.isArabic){var a=e.length,s=e[t-1],o=e[t+1],u="isolated";if((t===0||s===" ")&&t<a-1&&o!==" "&&(u="terminal"),t>0&&s!==" "&&t<a-1&&o!==" "&&(u="medial"),t>0&&s!==" "&&(t===a-1||o===" ")&&(u="initial"),typeof A.glyphs[n]!="undefined"){var f=A.glyphs[n];i=f instanceof Og?f:f[u]}}else i=A.glyphs[n];return i||(i=A.missingGlyph),i}getText(){return""}getTextFromNode(A){var e=A||this.node,t=Array.from(e.parentNode.childNodes),n=t.indexOf(e),i=t.length-1,a=Zi(e.textContent||"");return n===0&&(a=v5(a)),n===i&&(a=B5(a)),a}renderChildren(A){if(this.type!=="text"){this.renderTElementChildren(A);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(A),this.children.forEach((t,n)=>{this.renderChild(A,this,this,n)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(A))}renderTElementChildren(A){var{document:e,parent:t}=this,n=this.getText(),i=t.getStyle("font-family").getDefinition();if(i){for(var{unitsPerEm:a}=i.fontFace,s=Wt.parse(e.ctx.font),o=t.getStyle("font-size").getNumber(s.fontSize),u=t.getStyle("font-style").getString(s.fontStyle),f=o/a,d=i.isRTL?n.split("").reverse().join(""):n,p=cr(t.getAttribute("dx").getString()),h=d.length,m=0;m<h;m++){var w=this.getGlyph(i,d,m);A.translate(this.x,this.y),A.scale(f,-f);var F=A.lineWidth;A.lineWidth=A.lineWidth*a/o,u==="italic"&&A.transform(1,0,.4,1,0,0),w.render(A),u==="italic"&&A.transform(1,0,-.4,1,0,0),A.lineWidth=F,A.scale(1/f,-1/f),A.translate(-this.x,-this.y),this.x+=o*(w.horizAdvX||i.horizAdvX)/a,typeof p[m]!="undefined"&&!isNaN(p[m])&&(this.x+=p[m])}return}var{x:y,y:Q}=this;A.fillStyle&&A.fillText(n,y,Q),A.strokeStyle&&A.strokeText(n,y,Q)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var A=this.leafTexts[this.textChunkStart],e=A.getStyle("text-anchor").getString("start"),t=!1,n=0;e==="start"&&!t||e==="end"&&t?n=A.x-this.minX:e==="end"&&!t||e==="start"&&t?n=A.x-this.maxX:n=A.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(A){this.children.forEach((e,t)=>{this.adjustChildCoordinatesRecursiveCore(A,this,this,t)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(A,e,t,n){var i=t.children[n];i.children.length>0?i.children.forEach((a,s)=>{e.adjustChildCoordinatesRecursiveCore(A,e,i,s)}):this.adjustChildCoordinates(A,e,t,n)}adjustChildCoordinates(A,e,t,n){var i=t.children[n];if(typeof i.measureText!="function")return i;A.save(),i.setContext(A,!0);var a=i.getAttribute("x"),s=i.getAttribute("y"),o=i.getAttribute("dx"),u=i.getAttribute("dy"),f=i.getStyle("font-family").getDefinition(),d=!!f&&f.isRTL;n===0&&(a.hasValue()||a.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),o.hasValue()||o.setValue(i.getInheritedAttribute("dx")),u.hasValue()||u.setValue(i.getInheritedAttribute("dy")));var p=i.measureText(A);return d&&(e.x-=p),a.hasValue()?(e.applyAnchoring(),i.x=a.getPixels("x"),o.hasValue()&&(i.x+=o.getPixels("x"))):(o.hasValue()&&(e.x+=o.getPixels("x")),i.x=e.x),e.x=i.x,d||(e.x+=p),s.hasValue()?(i.y=s.getPixels("y"),u.hasValue()&&(i.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+p),e.maxX=Math.max(e.maxX,i.x,i.x+p),i.clearContext(A),A.restore(),i}getChildBoundingBox(A,e,t,n){var i=t.children[n];if(typeof i.getBoundingBox!="function")return null;var a=i.getBoundingBox(A);return a?(i.children.forEach((s,o)=>{var u=e.getChildBoundingBox(A,e,i,o);a.addBoundingBox(u)}),a):null}renderChild(A,e,t,n){var i=t.children[n];i.render(A),i.children.forEach((a,s)=>{e.renderChild(A,e,i,s)})}measureText(A){var{measureCache:e}=this;if(~e)return e;var t=this.getText(),n=this.measureTargetText(A,t);return this.measureCache=n,n}measureTargetText(A,e){if(!e.length)return 0;var{parent:t}=this,n=t.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?e.split("").reverse().join(""):e,s=cr(t.getAttribute("dx").getString()),o=a.length,u=0,f=0;f<o;f++){var d=this.getGlyph(n,a,f);u+=(d.horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,typeof s[f]!="undefined"&&!isNaN(s[f])&&(u+=s[f])}return u}if(!A.measureText)return e.length*10;A.save(),this.setContext(A,!0);var{width:p}=A.measureText(e);return this.clearContext(A),A.restore(),p}getInheritedAttribute(A){for(var e=this;e instanceof _n&&e.isFirstChild();){var t=e.parent.getAttribute(A);if(t.hasValue(!0))return t.getValue("0");e=e.parent}return null}}class mo extends _n{constructor(A,e,t){super(A,e,new.target===mo?!0:t),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class DH extends mo{constructor(){super(...arguments),this.type="textNode"}}class Xa extends pi{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(A){var e,{document:t}=this,{screen:n,window:i}=t,a=A.canvas;if(n.setDefaults(A),a.style&&typeof A.font!="undefined"&&i&&typeof i.getComputedStyle!="undefined"){A.font=i.getComputedStyle(a).getPropertyValue("font");var s=new WA(t,"fontSize",Wt.parse(A.font).fontSize);s.hasValue()&&(t.rootEmSize=s.getPixels("y"),t.emSize=t.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:u}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var f=this.getAttribute("refX"),d=this.getAttribute("refY"),p=this.getAttribute("viewBox"),h=p.hasValue()?cr(p.getString()):null,m=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",w=0,F=0,y=0,Q=0;h&&(w=h[0],F=h[1]),this.root||(o=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=w,Q=F,w=0,F=0)),n.viewPort.setCurrent(o,u),this.node&&(!this.parent||((e=this.node.parentNode)===null||e===void 0?void 0:e.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(A),A.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(o=h[2],u=h[3]),t.setViewBox({ctx:A,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:u,minX:w,minY:F,refX:f.getValue(),refY:d.getValue(),clip:m,clipX:y,clipY:Q}),h&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,u))}clearContext(A){super.clearContext(A),this.document.screen.viewPort.removeCurrent()}resize(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=n.getNumber(0),u=i.getNumber(0);if(t)if(typeof t=="string")this.getAttribute("preserveAspectRatio",!0).setValue(t);else{var f=this.getAttribute("preserveAspectRatio");f.hasValue()&&f.setValue(f.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(A),i.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(o||A," ").concat(u||e)),s.hasValue()){var d=this.getStyle("width"),p=this.getStyle("height");d.hasValue()&&d.setValue("".concat(A,"px")),p.hasValue()&&p.setValue("".concat(e,"px"))}}}class Hg extends xe{constructor(){super(...arguments),this.type="rect"}path(A){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),u=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(u=o),s.hasValue()&&!a.hasValue()&&(o=u),o=Math.min(o,n/2),u=Math.min(u,i/2),A){var f=4*((Math.sqrt(2)-1)/3);A.beginPath(),i>0&&n>0&&(A.moveTo(e+o,t),A.lineTo(e+n-o,t),A.bezierCurveTo(e+n-o+f*o,t,e+n,t+u-f*u,e+n,t+u),A.lineTo(e+n,t+i-u),A.bezierCurveTo(e+n,t+i-u+f*u,e+n-o+f*o,t+i,e+n-o,t+i),A.lineTo(e+o,t+i),A.bezierCurveTo(e+o-f*o,t+i,e,t+i-u+f*u,e,t+i-u),A.lineTo(e,t+u),A.bezierCurveTo(e,t+u-f*u,e+o-f*o,t,e+o,t),A.closePath())}return new Hr(e,t,e+n,t+i)}getMarkers(){return null}}class N5 extends xe{constructor(){super(...arguments),this.type="circle"}path(A){var e=this.getAttribute("cx").getPixels("x"),t=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return A&&n>0&&(A.beginPath(),A.arc(e,t,n,0,Math.PI*2,!1),A.closePath()),new Hr(e-n,t-n,e+n,t+n)}getMarkers(){return null}}class T5 extends xe{constructor(){super(...arguments),this.type="ellipse"}path(A){var e=4*((Math.sqrt(2)-1)/3),t=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return A&&t>0&&n>0&&(A.beginPath(),A.moveTo(i+t,a),A.bezierCurveTo(i+t,a+e*n,i+e*t,a+n,i,a+n),A.bezierCurveTo(i-e*t,a+n,i-t,a+e*n,i-t,a),A.bezierCurveTo(i-t,a-e*n,i-e*t,a-n,i,a-n),A.bezierCurveTo(i+e*t,a-n,i+t,a-e*n,i+t,a),A.closePath()),new Hr(i-t,a-n,i+t,a+n)}getMarkers(){return null}}class O5 extends xe{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Ze(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Ze(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(A){var[{x:e,y:t},{x:n,y:i}]=this.getPoints();return A&&(A.beginPath(),A.moveTo(e,t),A.lineTo(n,i)),new Hr(e,t,n,i)}getMarkers(){var[A,e]=this.getPoints(),t=A.angleTo(e);return[[A,t],[e,t]]}}class _g extends xe{constructor(A,e,t){super(A,e,t),this.type="polyline",this.points=[],this.points=Ze.parsePath(this.getAttribute("points").getString())}path(A){var{points:e}=this,[{x:t,y:n}]=e,i=new Hr(t,n);return A&&(A.beginPath(),A.moveTo(t,n)),e.forEach(a=>{var{x:s,y:o}=a;i.addPoint(s,o),A&&A.lineTo(s,o)}),i}getMarkers(){var{points:A}=this,e=A.length-1,t=[];return A.forEach((n,i)=>{i!==e&&t.push([n,n.angleTo(A[i+1])])}),t.length>0&&t.push([A[A.length-1],t[t.length-1][1]]),t}}class H5 extends _g{constructor(){super(...arguments),this.type="polygon"}path(A){var e=super.path(A),[{x:t,y:n}]=this.points;return A&&(A.lineTo(t,n),A.closePath()),e}}class _5 extends Pe{constructor(){super(...arguments),this.type="pattern"}createPattern(A,e,t){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new Xa(this.document,null);a.attributes.viewBox=new WA(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new WA(this.document,"width","".concat(n,"px")),a.attributes.height=new WA(this.document,"height","".concat(i,"px")),a.attributes.transform=new WA(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(n,i),o=s.getContext("2d"),u=this.getAttribute("x"),f=this.getAttribute("y");u.hasValue()&&f.hasValue()&&o.translate(u.getPixels("x",!0),f.getPixels("y",!0)),t.hasValue()?this.styles["fill-opacity"]=t:Reflect.deleteProperty(this.styles,"fill-opacity");for(var d=-1;d<=1;d++)for(var p=-1;p<=1;p++)o.save(),a.attributes.x=new WA(this.document,"x",d*s.width),a.attributes.y=new WA(this.document,"y",p*s.height),a.render(o),o.restore();var h=A.createPattern(s,"repeat");return h}}class P5 extends Pe{constructor(){super(...arguments),this.type="marker"}render(A,e,t){if(e){var{x:n,y:i}=e,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");A.translate(n,i),a==="auto"&&A.rotate(t),s==="strokeWidth"&&A.scale(A.lineWidth,A.lineWidth),A.save();var o=new Xa(this.document,null);o.type=this.type,o.attributes.viewBox=new WA(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new WA(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new WA(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new WA(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new WA(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new WA(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new WA(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new WA(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(A),A.restore(),s==="strokeWidth"&&A.scale(1/A.lineWidth,1/A.lineWidth),a==="auto"&&A.rotate(-t),A.translate(-n,-i)}}}class D5 extends Pe{constructor(){super(...arguments),this.type="defs"}render(){}}class Ju extends pi{constructor(){super(...arguments),this.type="g"}getBoundingBox(A){var e=new Hr;return this.children.forEach(t=>{e.addBoundingBox(t.getBoundingBox(A))}),e}}class Pg extends Pe{constructor(A,e,t){super(A,e,t),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(a=>{a.type==="stop"&&n.push(a)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(A,e,t){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,a=this.getGradient(A,e);if(!a)return this.addParentOpacity(t,i[i.length-1].color);if(i.forEach(F=>{a.addColorStop(F.offset,this.addParentOpacity(t,F.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:u}=s.screen,[f]=u.viewPorts,d=new Hg(s,null);d.attributes.x=new WA(s,"x",-o/3),d.attributes.y=new WA(s,"y",-o/3),d.attributes.width=new WA(s,"width",o),d.attributes.height=new WA(s,"height",o);var p=new Ju(s,null);p.attributes.transform=new WA(s,"transform",this.getAttribute("gradientTransform").getValue()),p.children=[d];var h=new Xa(s,null);h.attributes.x=new WA(s,"x",0),h.attributes.y=new WA(s,"y",0),h.attributes.width=new WA(s,"width",f.width),h.attributes.height=new WA(s,"height",f.height),h.children=[p];var m=s.createCanvas(f.width,f.height),w=m.getContext("2d");return w.fillStyle=a,h.render(w),w.createPattern(m,"no-repeat")}return a}inheritStopContainer(A){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&A.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(A.getAttribute(e).getValue())})}addParentOpacity(A,e){if(A.hasValue()){var t=new WA(this.document,"color",e);return t.addOpacity(A).getColor()}return e}}class R5 extends Pg{constructor(A,e,t){super(A,e,t),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(A,e){var t=this.getGradientUnits()==="objectBoundingBox",n=t?e.getBoundingBox(A):null;if(t&&!n)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=t?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=t?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=t?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=t?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&a===o?null:A.createLinearGradient(i,a,s,o)}}class M5 extends Pg{constructor(A,e,t){super(A,e,t),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(A,e){var t=this.getGradientUnits()==="objectBoundingBox",n=e.getBoundingBox(A);if(t&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=t?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=t?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,o=a;this.getAttribute("fx").hasValue()&&(s=t?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=t?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=t?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),f=this.getAttribute("fr").getPixels();return A.createRadialGradient(s,o,f,i,a,u)}}class k5 extends Pe{constructor(A,e,t){super(A,e,t),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);a.getString()===""&&a.setValue("#000"),i.hasValue()&&(a=a.addOpacity(i)),this.offset=n,this.color=a.getColor()}}class Zu extends Pe{constructor(A,e,t){super(A,e,t),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,A.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new WA(A,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var A=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return A==="CSS"?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:A}=this,{progress:e,from:t,to:n}=this.getProgress(),i=t.getNumber()+(n.getNumber()-t.getNumber())*e;return A==="%"&&(i*=100),"".concat(i).concat(A)}update(A){var{parent:e}=this,t=this.getProperty();if(this.initialValue||(this.initialValue=t.getString(),this.initialUnits=t.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(n==="freeze"&&!this.frozen)this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=t.getString();else if(n==="remove"&&!this.removed)return this.removed=!0,t.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=A;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}t.setValue(a),i=!0}return i}getProgress(){var{document:A,values:e}=this,t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=t.progress*(e.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);t.from=new WA(A,"from",parseFloat(e.getValue()[i])),t.to=new WA(A,"to",parseFloat(e.getValue()[a])),t.progress=(n-i)/(a-i)}else t.from=this.from,t.to=this.to;return t}}class K5 extends Zu{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:A,from:e,to:t}=this.getProgress(),n=new vg(e.getColor()),i=new vg(t.getColor());if(n.ok&&i.ok){var a=n.r+(i.r-n.r)*A,s=n.g+(i.g-n.g)*A,o=n.b+(i.b-n.b)*A;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class j5 extends Zu{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:A,from:e,to:t}=this.getProgress(),n=cr(e.getString()),i=cr(t.getString()),a=n.map((s,o)=>{var u=i[o];return s+(u-s)*A}).join(" ");return a}}class V5 extends Pe{constructor(A,e,t){super(A,e,t),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=A,{children:i}=this;for(var a of i)switch(a.type){case"font-face":{this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=a;break;case"glyph":{var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[o.unicode]=="undefined"&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}}class G5 extends Pe{constructor(A,e,t){super(A,e,t),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class $5 extends xe{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class q5 extends _n{constructor(){super(...arguments),this.type="tref"}getText(){var A=this.getHrefAttribute().getDefinition();if(A){var e=A.children[0];if(e)return e.getText()}return""}}class W5 extends _n{constructor(A,e,t){super(A,e,t),this.type="a";var{childNodes:n}=e,i=n[0],a=n.length>0&&Array.from(n).every(s=>s.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(A){if(this.hasText){super.renderChildren(A);var{document:e,x:t,y:n}=this,{mouse:i}=e.screen,a=new WA(e,"fontSize",Wt.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Hr(t,n-a.getPixels("y"),t+this.measureText(A),n))}else if(this.children.length>0){var s=new Ju(this.document,null);s.children=this.children,s.parent=this,s.render(A)}}onClick(){var{window:A}=this.document;A&&A.open(this.getHrefAttribute().getString())}onMouseMove(){var A=this.document.ctx;A.canvas.style.cursor="pointer"}}function z5(r,A){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);A&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function Ac(r){for(var A=1;A<arguments.length;A++){var e=arguments[A]!=null?arguments[A]:{};A%2?z5(Object(e),!0).forEach(function(t){ug(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):z5(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}class X5 extends _n{constructor(A,e,t){super(A,e,t),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(A){var{dataArray:e}=this;A&&A.beginPath(),e.forEach(t=>{var{type:n,points:i}=t;switch(n){case le.LINE_TO:A&&A.lineTo(i[0],i[1]);break;case le.MOVE_TO:A&&A.moveTo(i[0],i[1]);break;case le.CURVE_TO:A&&A.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case le.QUAD_TO:A&&A.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case le.ARC:{var[a,s,o,u,f,d,p,h]=i,m=o>u?o:u,w=o>u?1:o/u,F=o>u?u/o:1;A&&(A.translate(a,s),A.rotate(p),A.scale(w,F),A.arc(0,0,m,f,f+d,!!(1-h)),A.scale(1/w,1/F),A.rotate(-p),A.translate(-a,-s));break}case le.CLOSE_PATH:A&&A.closePath();break}})}renderChildren(A){this.setTextData(A),A.save();var e=this.parent.getStyle("text-decoration").getString(),t=this.getFontSize(),{glyphInfo:n}=this,i=A.fillStyle;e==="underline"&&A.beginPath(),n.forEach((a,s)=>{var{p0:o,p1:u,rotation:f,text:d}=a;A.save(),A.translate(o.x,o.y),A.rotate(f),A.fillStyle&&A.fillText(d,0,0),A.strokeStyle&&A.strokeText(d,0,0),A.restore(),e==="underline"&&(s===0&&A.moveTo(o.x,o.y+t/8),A.lineTo(u.x,u.y+t/5))}),e==="underline"&&(A.lineWidth=t/20,A.strokeStyle=i,A.stroke(),A.closePath()),A.restore()}getLetterSpacingAt(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[A]||0}findSegmentToFitChar(A,e,t,n,i,a,s,o,u){var f=a,d=this.measureText(A,o);o===" "&&e==="justify"&&t<n&&(d+=(n-t)/i),u>-1&&(f+=this.getLetterSpacingAt(u));var p=this.textHeight/20,h=this.getEquidistantPointOnPath(f,p,0),m=this.getEquidistantPointOnPath(f+d,p,0),w={p0:h,p1:m},F=h&&m?Math.atan2(m.y-h.y,m.x-h.x):0;if(s){var y=Math.cos(Math.PI/2+F)*s,Q=Math.cos(-F)*s;w.p0=Ac(Ac({},h),{},{x:h.x+y,y:h.y+Q}),w.p1=Ac(Ac({},m),{},{x:m.x+y,y:m.y+Q})}return f+=d,{offset:f,segment:w,rotation:F}}measureText(A,e){var{measuresCache:t}=this,n=e||this.getText();if(t.has(n))return t.get(n);var i=this.measureTargetText(A,n);return t.set(n,i),i}setTextData(A){if(!this.glyphInfo){var e=this.getText(),t=e.split(""),n=e.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(P=>P.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),f=0;!o.hasValue()||o.getValue()==="inherit"?f=u.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(f=o.getPixels());var d=[],p=e.length;this.letterSpacingCache=d;for(var h=0;h<p;h++)d.push(typeof i[h]!="undefined"?i[h]:f);var m=d.reduce((P,G,$)=>$===0?0:P+G||0,0),w=this.measureText(A),F=Math.max(w+m,0);this.textWidth=w,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),Q=this.getStyle("startOffset").getNumber(0)*y,T=0;(s==="middle"||s==="center")&&(T=-F/2),(s==="end"||s==="right")&&(T=-F),T+=Q,t.forEach((P,G)=>{var{offset:$,segment:j,rotation:_}=this.findSegmentToFitChar(A,s,F,y,n,T,a,P,G);T=$,!(!j.p0||!j.p1)&&this.glyphInfo.push({text:t[G],p0:j.p0,p1:j.p1,rotation:_})})}}parsePathData(A){if(this.pathLength=-1,!A)return[];var e=[],{pathParser:t}=A;for(t.reset();!t.isEnd();){var{current:n}=t,i=n?n.x:0,a=n?n.y:0,s=t.next(),o=s.type,u=[];switch(s.type){case le.MOVE_TO:this.pathM(t,u);break;case le.LINE_TO:o=this.pathL(t,u);break;case le.HORIZ_LINE_TO:o=this.pathH(t,u);break;case le.VERT_LINE_TO:o=this.pathV(t,u);break;case le.CURVE_TO:this.pathC(t,u);break;case le.SMOOTH_CURVE_TO:o=this.pathS(t,u);break;case le.QUAD_TO:this.pathQ(t,u);break;case le.SMOOTH_QUAD_TO:o=this.pathT(t,u);break;case le.ARC:u=this.pathA(t);break;case le.CLOSE_PATH:xe.pathZ(t);break}s.type!==le.CLOSE_PATH?e.push({type:o,points:u,start:{x:i,y:a},pathLength:this.calcLength(i,a,o,u)}):e.push({type:le.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(A,e){var{x:t,y:n}=xe.pathM(A).point;e.push(t,n)}pathL(A,e){var{x:t,y:n}=xe.pathL(A).point;return e.push(t,n),le.LINE_TO}pathH(A,e){var{x:t,y:n}=xe.pathH(A).point;return e.push(t,n),le.LINE_TO}pathV(A,e){var{x:t,y:n}=xe.pathV(A).point;return e.push(t,n),le.LINE_TO}pathC(A,e){var{point:t,controlPoint:n,currentPoint:i}=xe.pathC(A);e.push(t.x,t.y,n.x,n.y,i.x,i.y)}pathS(A,e){var{point:t,controlPoint:n,currentPoint:i}=xe.pathS(A);return e.push(t.x,t.y,n.x,n.y,i.x,i.y),le.CURVE_TO}pathQ(A,e){var{controlPoint:t,currentPoint:n}=xe.pathQ(A);e.push(t.x,t.y,n.x,n.y)}pathT(A,e){var{controlPoint:t,currentPoint:n}=xe.pathT(A);return e.push(t.x,t.y,n.x,n.y),le.QUAD_TO}pathA(A){var{rX:e,rY:t,sweepFlag:n,xAxisRotation:i,centp:a,a1:s,ad:o}=xe.pathA(A);return n===0&&o>0&&(o-=2*Math.PI),n===1&&o<0&&(o+=2*Math.PI),[a.x,a.y,e,t,s,o,i,n]}calcLength(A,e,t,n){var i=0,a=null,s=null,o=0;switch(t){case le.LINE_TO:return this.getLineLength(A,e,n[0],n[1]);case le.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,A,e,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,A,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case le.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,A,e,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,A,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case le.ARC:{i=0;var u=n[4],f=n[5],d=n[4]+f,p=Math.PI/180;if(Math.abs(u-d)<p&&(p=Math.abs(u-d)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),f<0)for(o=u-p;o>d;o-=p)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=u+p;o<d;o+=p)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],d,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),i}}return 0}getPointOnLine(A,e,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:t,o=(i-t)/(n-e+ea),u=Math.sqrt(A*A/(1+o*o));n<e&&(u*=-1);var f=o*u,d=null;if(n===e)d={x:a,y:s+f};else if((s-t)/(a-e+ea)===o)d={x:a+u,y:s+f};else{var p=0,h=0,m=this.getLineLength(e,t,n,i);if(m<ea)return null;var w=(a-e)*(n-e)+(s-t)*(i-t);w/=m*m,p=e+w*(n-e),h=t+w*(i-t);var F=this.getLineLength(a,s,p,h),y=Math.sqrt(A*A-F*F);u=Math.sqrt(y*y/(1+o*o)),n<e&&(u*=-1),f=o*u,d={x:p+u,y:h+f}}return d}getPointOnPath(A){var e=this.getPathLength(),t=0,n=null;if(A<-5e-5||A-5e-5>e)return null;var{dataArray:i}=this;for(var a of i){if(a&&(a.pathLength<5e-5||t+a.pathLength+5e-5<A)){t+=a.pathLength;continue}var s=A-t,o=0;switch(a.type){case le.LINE_TO:n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case le.ARC:{var u=a.points[4],f=a.points[5],d=a.points[4]+f;if(o=u+s/a.pathLength*f,f<0&&o<d||f>=0&&o>d)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break}case le.CURVE_TO:o=s/a.pathLength,o>1&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case le.QUAD_TO:o=s/a.pathLength,o>1&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(n)return n;break}return null}getLineLength(A,e,t,n){return Math.sqrt((t-A)*(t-A)+(n-e)*(n-e))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((A,e)=>e.pathLength>0?A+e.pathLength:A,0)),this.pathLength}getPointOnCubicBezier(A,e,t,n,i,a,s,o,u){var f=o*Qg(A)+a*Ug(A)+n*Eg(A)+e*xg(A),d=u*Qg(A)+s*Ug(A)+i*Eg(A)+t*xg(A);return{x:f,y:d}}getPointOnQuadraticBezier(A,e,t,n,i,a,s){var o=a*Ig(A)+n*Sg(A)+e*Lg(A),u=s*Ig(A)+i*Sg(A)+t*Lg(A);return{x:o,y:u}}getPointOnEllipticalArc(A,e,t,n,i,a){var s=Math.cos(a),o=Math.sin(a),u={x:t*Math.cos(i),y:n*Math.sin(i)};return{x:A+(u.x*s-u.y*o),y:e+(u.x*o+u.y*s)}}buildEquidistantCache(A,e){var t=this.getPathLength(),n=e||.25,i=A||t/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,s=0;s<=t;s+=n){var o=this.getPointOnPath(s),u=this.getPointOnPath(s+n);!o||!u||(a+=this.getLineLength(o.x,o.y,u.x,u.y),a>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=i))}}}getEquidistantPointOnPath(A,e,t){if(this.buildEquidistantCache(e,t),A<0||A-this.getPathLength()>5e-5)return null;var n=Math.round(A/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var RH=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Y5 extends pi{constructor(A,e,t){super(A,e,t),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);A.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(A){var e=this;return Tn(function*(){try{var t=yield e.document.createImage(A);e.image=t}catch(n){console.error('Error while loading image "'.concat(A,'":'),n)}e.loaded=!0})()}loadSvg(A){var e=this;return Tn(function*(){var t=RH.exec(A);if(t){var n=t[5];t[4]==="base64"?e.image=atob(n):e.image=decodeURIComponent(n)}else try{var i=yield e.document.fetch(A),a=yield i.text();e.image=a}catch(s){console.error('Error while loading image "'.concat(A,'":'),s)}e.loaded=!0})()}renderChildren(A){var{document:e,image:t,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!n||!t||!s||!o)){if(A.save(),A.translate(i,a),this.isSvg){var u=e.canvg.forkString(A,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});u.document.documentElement.parent=this,u.render()}else{var f=this.image;e.setViewBox({ctx:A,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:f.width,height:o,desiredHeight:f.height}),this.loaded&&(typeof f.complete=="undefined"||f.complete)&&A.drawImage(f,0,0)}A.restore()}}getBoundingBox(){var A=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),t=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Hr(A,e,A+t,e+n)}}class J5 extends pi{constructor(){super(...arguments),this.type="symbol"}render(A){}}class Z5{constructor(A){this.document=A,this.loaded=!1,A.fonts.push(this)}load(A,e){var t=this;return Tn(function*(){try{var{document:n}=t,i=yield n.canvg.parser.load(e),a=i.getElementsByTagName("font");Array.from(a).forEach(s=>{var o=n.createElement(s);n.definitions[A]=o})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}t.loaded=!0})()}}class Dg extends Pe{constructor(A,e,t){super(A,e,t),this.type="style";var n=Zi(Array.from(e.childNodes).map(a=>a.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=n.split("}");i.forEach(a=>{var s=a.trim();if(s){var o=s.split("{"),u=o[0].split(","),f=o[1].split(";");u.forEach(d=>{var p=d.trim();if(p){var h=A.styles[p]||{};if(f.forEach(F=>{var y=F.indexOf(":"),Q=F.substr(0,y).trim(),T=F.substr(y+1,F.length-y).trim();Q&&T&&(h[Q]=new WA(A,Q,T))}),A.styles[p]=h,A.stylesSpecificity[p]=y5(p),p==="@font-face"){var m=h["font-family"].getString().replace(/"|'/g,""),w=h.src.getString().split(",");w.forEach(F=>{if(F.indexOf('format("svg")')>0){var y=bg(F);y&&new Z5(A).load(m,y)}})}}})}})}}Dg.parseExternalUrl=bg;class Am extends pi{constructor(){super(...arguments),this.type="use"}setContext(A){super.setContext(A);var e=this.getAttribute("x"),t=this.getAttribute("y");e.hasValue()&&A.translate(e.getPixels("x"),0),t.hasValue()&&A.translate(0,t.getPixels("y"))}path(A){var{element:e}=this;e&&e.path(A)}renderChildren(A){var{document:e,element:t}=this;if(t){var n=t;if(t.type==="symbol"&&(n=new Xa(e,null),n.attributes.viewBox=new WA(e,"viewBox",t.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new WA(e,"preserveAspectRatio",t.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new WA(e,"overflow",t.getAttribute("overflow").getString()),n.children=t.children,t.styles.opacity=new WA(e,"opacity",this.calculateOpacity())),n.type==="svg"){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new WA(e,"width",i.getString())),a.hasValue()&&(n.attributes.height=new WA(e,"height",a.getString()))}var s=n.parent;n.parent=this,n.render(A),n.parent=s}}getBoundingBox(A){var{element:e}=this;return e?e.getBoundingBox(A):null}elementTransform(){var{document:A,element:e}=this;return gi.fromElement(A,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function ec(r,A,e,t,n,i){return r[e*t*4+A*4+i]}function tc(r,A,e,t,n,i,a){r[e*t*4+A*4+i]=a}function vt(r,A,e){var t=r[A];return t*e}function Pn(r,A,e,t){return A+Math.cos(r)*e+Math.sin(r)*t}class Rg extends Pe{constructor(A,e,t){super(A,e,t),this.type="feColorMatrix";var n=cr(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var a=n[0]*Math.PI/180;n=[Pn(a,.213,.787,-.213),Pn(a,.715,-.715,-.715),Pn(a,.072,-.072,.928),0,0,Pn(a,.213,-.213,.143),Pn(a,.715,.285,.14),Pn(a,.072,-.072,-.283),0,0,Pn(a,.213,-.213,-.787),Pn(a,.715,-.715,.715),Pn(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(A,e,t,n,i){for(var{includeOpacity:a,matrix:s}=this,o=A.getImageData(0,0,n,i),u=0;u<i;u++)for(var f=0;f<n;f++){var d=ec(o.data,f,u,n,i,0),p=ec(o.data,f,u,n,i,1),h=ec(o.data,f,u,n,i,2),m=ec(o.data,f,u,n,i,3),w=vt(s,0,d)+vt(s,1,p)+vt(s,2,h)+vt(s,3,m)+vt(s,4,1),F=vt(s,5,d)+vt(s,6,p)+vt(s,7,h)+vt(s,8,m)+vt(s,9,1),y=vt(s,10,d)+vt(s,11,p)+vt(s,12,h)+vt(s,13,m)+vt(s,14,1),Q=vt(s,15,d)+vt(s,16,p)+vt(s,17,h)+vt(s,18,m)+vt(s,19,1);a&&(w=0,F=0,y=0,Q*=m/255),tc(o.data,f,u,n,i,0,w),tc(o.data,f,u,n,i,1,F),tc(o.data,f,u,n,i,2,y),tc(o.data,f,u,n,i,3,Q)}A.clearRect(0,0,n,i),A.putImageData(o,0,0)}}class yo extends Pe{constructor(){super(...arguments),this.type="mask"}apply(A,e){var{document:t}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new Hr;this.children.forEach(m=>{o.addBoundingBox(m.getBoundingBox(A))}),n=Math.floor(o.x1),i=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var u=this.removeStyles(e,yo.ignoreStyles),f=t.createCanvas(n+a,i+s),d=f.getContext("2d");t.screen.setDefaults(d),this.renderChildren(d),new Rg(t,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(d,0,0,n+a,i+s);var p=t.createCanvas(n+a,i+s),h=p.getContext("2d");t.screen.setDefaults(h),e.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=d.createPattern(f,"no-repeat"),h.fillRect(0,0,n+a,i+s),A.fillStyle=h.createPattern(p,"no-repeat"),A.fillRect(0,0,n+a,i+s),this.restoreStyles(e,u)}render(A){}}yo.ignoreStyles=["mask","transform","clip-path"];var em=()=>{};class tm extends Pe{constructor(){super(...arguments),this.type="clipPath"}apply(A){var{document:e}=this,t=Reflect.getPrototypeOf(A),{beginPath:n,closePath:i}=A;t&&(t.beginPath=em,t.closePath=em),Reflect.apply(n,A,[]),this.children.forEach(a=>{if(typeof a.path!="undefined"){var s=typeof a.elementTransform!="undefined"?a.elementTransform():null;s||(s=gi.fromElement(e,a)),s&&s.apply(A),a.path(A),t&&(t.closePath=i),s&&s.unapply(A)}}),Reflect.apply(i,A,[]),A.clip(),t&&(t.beginPath=n,t.closePath=i)}render(A){}}class bo extends Pe{constructor(){super(...arguments),this.type="filter"}apply(A,e){var{document:t,children:n}=this,i=e.getBoundingBox(A);if(i){var a=0,s=0;n.forEach(y=>{var Q=y.extraFilterDistance||0;a=Math.max(a,Q),s=Math.max(s,Q)});var o=Math.floor(i.width),u=Math.floor(i.height),f=o+2*a,d=u+2*s;if(!(f<1||d<1)){var p=Math.floor(i.x),h=Math.floor(i.y),m=this.removeStyles(e,bo.ignoreStyles),w=t.createCanvas(f,d),F=w.getContext("2d");t.screen.setDefaults(F),F.translate(-p+a,-h+s),e.render(F),n.forEach(y=>{typeof y.apply=="function"&&y.apply(F,0,0,f,d)}),A.drawImage(w,0,0,f,d,p-a,h-s,f,d),this.restoreStyles(e,m)}}}render(A){}}bo.ignoreStyles=["filter","transform","clip-path"];class rm extends Pe{constructor(A,e,t){super(A,e,t),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(A,e,t,n,i){}}class nm extends Pe{constructor(){super(...arguments),this.type="feMorphology"}apply(A,e,t,n,i){}}class im extends Pe{constructor(){super(...arguments),this.type="feComposite"}apply(A,e,t,n,i){}}class am extends Pe{constructor(A,e,t){super(A,e,t),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(A,e,t,n,i){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,u=A.canvas;u.id=a.getUniqueId(),o&&(u.style.display="none",o.appendChild(u)),vH(u,e,t,n,i,s),o&&o.removeChild(u)}}class sm extends Pe{constructor(){super(...arguments),this.type="title"}}class om extends Pe{constructor(){super(...arguments),this.type="desc"}}var MH={svg:Xa,rect:Hg,circle:N5,ellipse:T5,line:O5,polyline:_g,polygon:H5,path:xe,pattern:_5,marker:P5,defs:D5,linearGradient:R5,radialGradient:M5,stop:k5,animate:Zu,animateColor:K5,animateTransform:j5,font:V5,"font-face":G5,"missing-glyph":$5,glyph:Og,text:_n,tspan:mo,tref:q5,a:W5,textPath:X5,image:Y5,g:Ju,symbol:J5,style:Dg,use:Am,mask:yo,clipPath:tm,filter:bo,feDropShadow:rm,feMorphology:nm,feComposite:im,feColorMatrix:Rg,feGaussianBlur:am,title:sm,desc:om};function lm(r,A){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);A&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function kH(r){for(var A=1;A<arguments.length;A++){var e=arguments[A]!=null?arguments[A]:{};A%2?lm(Object(e),!0).forEach(function(t){ug(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):lm(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function KH(r,A){var e=document.createElement("canvas");return e.width=r,e.height=A,e}function jH(r){return Mg.apply(this,arguments)}function Mg(){return Mg=Tn(function*(r){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=document.createElement("img");return A&&(e.crossOrigin="Anonymous"),new Promise((t,n)=>{e.onload=()=>{t(e)},e.onerror=(i,a,s,o,u)=>{n(u)},e.src=r})}),Mg.apply(this,arguments)}class Dn{constructor(A){var{rootEmSize:e=12,emSize:t=12,createCanvas:n=Dn.createCanvas,createImage:i=Dn.createImage,anonymousCrossOrigin:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=A,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=A.screen,this.rootEmSize=e,this.emSize=t,this.createCanvas=n,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(A,e){return typeof e=="boolean"?(t,n)=>A(t,typeof n=="boolean"?n:e):A}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:A}=this;return A[A.length-1]}set emSize(A){var{emSizeStack:e}=this;e.push(A)}popEmSize(){var{emSizeStack:A}=this;A.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(A=>A.loaded)}isFontsLoaded(){return this.fonts.every(A=>A.loaded)}createDocumentElement(A){var e=this.createElement(A.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(A){var e=A.nodeName.replace(/^[^:]+:/,""),t=Dn.elementTypes[e];return typeof t!="undefined"?new t(this,A):new L5(this,A)}createTextNode(A){return new DH(this,A)}setViewBox(A){this.screen.setViewBox(kH({document:this},A))}}Dn.createCanvas=KH,Dn.createImage=jH,Dn.elementTypes=MH;function um(r,A){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);A&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function ta(r){for(var A=1;A<arguments.length;A++){var e=arguments[A]!=null?arguments[A]:{};A%2?um(Object(e),!0).forEach(function(t){ug(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):um(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}class ra{constructor(A,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Yu(t),this.screen=new wo(A,t),this.options=t;var n=new Dn(this,t),i=n.createDocumentElement(e);this.document=n,this.documentElement=i}static from(A,e){var t=arguments;return Tn(function*(){var n=t.length>2&&t[2]!==void 0?t[2]:{},i=new Yu(n),a=yield i.parse(e);return new ra(A,a,n)})()}static fromString(A,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=new Yu(t),i=n.parseFromString(e);return new ra(A,i,t)}fork(A,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ra.from(A,e,ta(ta({},this.options),t))}forkString(A,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ra.fromString(A,e,ta(ta({},this.options),t))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var A=arguments,e=this;return Tn(function*(){var t=A.length>0&&A[0]!==void 0?A[0]:{};e.start(ta({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t)),yield e.ready(),e.stop()})()}start(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:e,screen:t,options:n}=this;t.start(e,ta(ta({enableRedraw:!0},n),A))}stop(){this.screen.stop()}resize(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(A,e,t)}}const VH=Object.freeze(Object.defineProperty({__proto__:null,AElement:W5,AnimateColorElement:K5,AnimateElement:Zu,AnimateTransformElement:j5,BoundingBox:Hr,CB1:Qg,CB2:Ug,CB3:Eg,CB4:xg,Canvg:ra,CircleElement:N5,ClipPathElement:tm,DefsElement:D5,DescElement:om,Document:Dn,Element:Pe,EllipseElement:T5,FeColorMatrixElement:Rg,FeCompositeElement:im,FeDropShadowElement:rm,FeGaussianBlurElement:am,FeMorphologyElement:nm,FilterElement:bo,Font:Wt,FontElement:V5,FontFaceElement:G5,GElement:Ju,GlyphElement:Og,GradientElement:Pg,ImageElement:Y5,LineElement:O5,LinearGradientElement:R5,MarkerElement:P5,MaskElement:yo,Matrix:Ng,MissingGlyphElement:$5,Mouse:C5,PSEUDO_ZERO:ea,Parser:Yu,PathElement:xe,PathParser:le,PatternElement:_5,Point:Ze,PolygonElement:H5,PolylineElement:_g,Property:WA,QB1:Ig,QB2:Sg,QB3:Lg,RadialGradientElement:M5,RectElement:Hg,RenderedElement:pi,Rotate:E5,SVGElement:Xa,SVGFontLoader:Z5,Scale:x5,Screen:wo,Skew:Tg,SkewX:I5,SkewY:S5,StopElement:k5,StyleElement:Dg,SymbolElement:J5,TRefElement:q5,TSpanElement:mo,TextElement:_n,TextPathElement:X5,TitleElement:sm,Transform:gi,Translate:U5,UnknownElement:L5,UseElement:Am,ViewPort:b5,compressSpaces:Zi,default:ra,getSelectorSpecificity:y5,normalizeAttributeName:w5,normalizeColor:m5,parseExternalUrl:bg,presets:yH,toNumbers:cr,trimLeft:v5,trimRight:B5,vectorMagnitude:Cg,vectorsAngle:Fg,vectorsRatio:Xu},Symbol.toStringTag,{value:"Module"}));pa.DeepspotSDK=Km,Object.defineProperty(pa,Symbol.toStringTag,{value:"Module"})});
|