@a9i5k4/dsh-literature 0.1.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/lib/client.js ADDED
@@ -0,0 +1,331 @@
1
+ window.__ModuleLoader__.load({
2
+ id: "@a9i5k4/dsh-literature",
3
+ factory: (require) => {
4
+ var module = { exports: {} };
5
+ var exports = module.exports;
6
+
7
+ var Ju=Object.defineProperty;var pA=Object.getOwnPropertyDescriptor;var gA=Object.getOwnPropertyNames;var mA=Object.prototype.hasOwnProperty;var Wy=h=>{throw TypeError(h)};var bA=(h,t,e)=>t in h?Ju(h,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):h[t]=e;var yA=(h,t,e)=>()=>{if(e)throw e[0];try{return h&&(t=h(h=0)),t}catch(s){throw e=[s],s}};var sn=(h,t)=>()=>{try{return t||h((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},vA=(h,t)=>{for(var e in t)Ju(h,e,{get:t[e],enumerable:!0})},wA=(h,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of gA(t))!mA.call(h,n)&&n!==e&&Ju(h,n,{get:()=>t[n],enumerable:!(s=pA(t,n))||s.enumerable});return h};var AA=h=>wA(Ju({},"__esModule",{value:!0}),h);var T=(h,t,e)=>bA(h,typeof t!="symbol"?t+"":t,e),xg=(h,t,e)=>t.has(h)||Wy("Cannot "+e);var i=(h,t,e)=>(xg(h,t,"read from private field"),e?e.call(h):t.get(h)),g=(h,t,e)=>t.has(h)?Wy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(h):t.set(h,e),f=(h,t,e,s)=>(xg(h,t,"write to private field"),s?s.call(h,e):t.set(h,e),e),m=(h,t,e)=>(xg(h,t,"access private method"),e);var Ft=(h,t,e,s)=>({set _(n){f(h,t,n,e)},get _(){return i(h,t,s)}});var ol=sn((IS,qy)=>{var xA="dsh-literature",Xy={entry:"\u6587\u732E",panelTitle:"\u6587\u732E\u5E93",open:"\u6253\u5F00\u6587\u732E\u4FA7\u7A97",close:"\u5173\u95ED",settingsTooltip:"\u8BBE\u7F6E",back:"\u8FD4\u56DE",empty:{title:"\u8FD8\u6CA1\u6709\u6587\u732E",body:"\u5BF9\u8BDD\u4E2D\u51FA\u73B0\u7684 DOI\u3001arXiv ID \u6216\u6807\u9898\u4F1A\u81EA\u52A8\u51FA\u73B0\u5728\u8FD9\u91CC\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u7C98\u8D34\u3002",paste:"\u7C98\u8D34\u6587\u672C\u8BC6\u522B",placeholder:"\u7C98\u8D34\u4E00\u6BB5\u5305\u542B DOI / arXiv ID / \u6807\u9898\u7684\u6587\u672C\u2026",add:"\u8BC6\u522B"},state:{discovered:"\u5F85\u89E3\u6790",resolving:"\u89E3\u6790\u5143\u6570\u636E\u2026",resolved:"\u5DF2\u89E3\u6790",fetching:"\u4E0B\u8F7D\u5168\u6587\u2026",fetched:"\u5DF2\u4E0B\u8F7D",saving:"\u4FDD\u5B58\u4E2D\u2026",saved:"\u5DF2\u4FDD\u5B58",save_failed:"\u4FDD\u5B58\u5931\u8D25",fetch_failed:"\u4E0B\u8F7D\u5931\u8D25",resolve_failed:"\u89E3\u6790\u5931\u8D25",duplicate:"\u7591\u4F3C\u91CD\u590D"},action:{download:"\u4E0B\u8F7D\u5168\u6587",retry:"\u91CD\u8BD5",save:"\u4FDD\u5B58\u5230\u6587\u732E\u5E93",saveDir:"\u5BFC\u51FA\u5230\u76EE\u5F55",read:"\u9605\u8BFB",diff:"\u51B2\u7A81\u5BF9\u6BD4",discard:"\u79FB\u9664",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",keep:"\u4FDD\u7559\u5E93\u4E2D\u7248\u672C",replace:"\u8986\u76D6\u4E3A\u65B0\u7248\u672C",merge:"\u4EC5\u8865\u5145\u7F3A\u5931\u5B57\u6BB5",openInZotero:"\u5728\u6587\u732E\u5E93\u4E2D\u6253\u5F00",openSource:"\u6253\u5F00\u6765\u6E90",launch:"\u542F\u52A8\u6587\u732E\u5E93",saveAnyway:"\u4ECD\u7136\u4FDD\u5B58"},banner:{zoteroDown:"\u6587\u732E\u5E93\u672A\u8FD0\u884C\uFF0C\u65E0\u6CD5\u8BFB\u53D6\u6216\u5199\u5165\u6761\u76EE",zoteroDownDir:"\u6587\u732E\u5E93\u672A\u8FD0\u884C\uFF0C\u53EF\u6539\u4E3A\u5BFC\u51FA\u5230\u76EE\u5F55",offline:"\u5BBF\u4E3B\u4E0D\u53EF\u8FBE"},reader:{fitWidth:"\u9002\u5E94\u5BBD\u5EA6",fitPage:"\u9002\u5E94\u9875\u9762",page:"\u9875",of:"/",toc:"\u76EE\u5F55",search:"\u641C\u7D22",highlight:"\u9AD8\u4EAE",notes:"\u7B14\u8BB0",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",close:"\u5173\u95ED\u9605\u8BFB\u5668",loading:"\u6B63\u5728\u52A0\u8F7D PDF\u2026",notDownloaded:"\u5168\u6587\u5C1A\u672A\u4E0B\u8F7D",addNote:"\u6DFB\u52A0\u7B14\u8BB0",deleteAnnotation:"\u5220\u9664"},settings:{title:"\u6587\u732E\u4FA7\u7A97\u8BBE\u7F6E",saveMode:"\u4FDD\u5B58\u65B9\u5F0F",saveModeZotero:"\u5199\u5165\u672C\u5730\u6587\u732E\u5E93",saveModeDir:"\u5BFC\u51FA\u5230\u672C\u5730\u76EE\u5F55",dirPath:"\u5BFC\u51FA\u76EE\u5F55",dirPathHint:"\u901A\u9053 C\uFF1A\u5199\u5165 PDF + .csl.json + .ris \u4E09\u4E2A\u6587\u4EF6\uFF0C\u4FBF\u4E8E\u624B\u52A8\u5BFC\u5165",naming:"\u547D\u540D\u89C4\u5219",namingHint:"\u53EF\u7528\u53D8\u91CF\uFF1A{author} {authors} {year} {title} {journal} {doi} {arxiv}",tags:"\u9ED8\u8BA4\u6807\u7B7E",tagsHint:"\u9017\u53F7\u5206\u9694\uFF0C\u4FDD\u5B58\u65F6\u9644\u52A0\u5230\u6761\u76EE",unpaywallEmail:"Unpaywall \u90AE\u7BB1",unpaywallEmailHint:"\u7528\u4E8E\u67E5\u8BE2\u5F00\u653E\u83B7\u53D6\u5168\u6587\uFF0C\u4EC5\u4F5C\u4E3A\u8BF7\u6C42\u65B9\u6807\u8BC6",autoScan:"\u81EA\u52A8\u626B\u63CF\u6A21\u578B\u56DE\u590D",autoScanHint:"\u628A\u56DE\u590D\u4E2D\u7684\u6587\u732E\u81EA\u52A8\u52A0\u5165\u4FA7\u7A97\uFF1B\u53EF\u80FD\u4EA7\u751F\u8BEF\u62A5",zoteroPort:"\u6587\u732E\u5E93\u7AEF\u53E3",dataDir:"\u6570\u636E\u76EE\u5F55",dataDirHint:"\u81EA\u52A8\u63A2\u6D4B\u672C\u5730\u6587\u732E\u5E93\u4F4D\u7F6E\uFF0C\u53EF\u624B\u52A8\u8986\u76D6",saved:"\u5DF2\u4FDD\u5B58",test:"\u6D4B\u8BD5\u8FDE\u63A5",testOk:"\u8FDE\u63A5\u6B63\u5E38",testFail:"\u8FDE\u63A5\u5931\u8D25"},diff:{title:"\u5E93\u4E2D\u5DF2\u6709\u76F8\u4F3C\u6761\u76EE",subtitle:"\u5B57\u6BB5\u5DEE\u5F02\u5982\u4E0B\uFF0C\u9009\u62E9\u5904\u7406\u65B9\u5F0F\uFF1A",noDiff:"\u5B57\u6BB5\u5B8C\u5168\u4E00\u81F4"},status:{ready:"\u5C31\u7EEA",running:"\u6587\u732E\u5E93\u8FD0\u884C\u4E2D",down:"\u6587\u732E\u5E93\u672A\u8FD0\u884C"}},Yy={entry:"Papers",panelTitle:"Library",open:"Open literature panel",close:"Close",settingsTooltip:"Settings",back:"Back",empty:{title:"No papers yet",body:"DOIs, arXiv IDs or titles from the conversation appear here automatically. You can also paste text.",paste:"Paste to detect",placeholder:"Paste text containing a DOI / arXiv ID / title\u2026",add:"Detect"},state:{discovered:"Pending",resolving:"Resolving metadata\u2026",resolved:"Resolved",fetching:"Downloading PDF\u2026",fetched:"Downloaded",saving:"Saving\u2026",saved:"Saved",save_failed:"Save failed",fetch_failed:"Download failed",resolve_failed:"Resolve failed",duplicate:"Possible duplicate"},action:{download:"Download PDF",retry:"Retry",save:"Save to library",saveDir:"Export to folder",read:"Read",diff:"Compare",discard:"Remove",cancel:"Cancel",confirm:"Confirm",keep:"Keep library version",replace:"Overwrite with new version",merge:"Fill missing fields only",openInZotero:"Open in library",openSource:"Open source",launch:"Launch library",saveAnyway:"Save anyway"},banner:{zoteroDown:"Library is not running \u2014 cannot read or write items",zoteroDownDir:"Library is not running \u2014 you can export to a folder instead",offline:"Host unreachable"},reader:{fitWidth:"Fit width",fitPage:"Fit page",page:"Page",of:"/",toc:"Outline",search:"Search",highlight:"Highlight",notes:"Notes",prev:"Previous page",next:"Next page",zoomIn:"Zoom in",zoomOut:"Zoom out",close:"Close reader",loading:"Loading PDF\u2026",notDownloaded:"Full text not downloaded yet",addNote:"Add note",deleteAnnotation:"Delete"},settings:{title:"Literature panel settings",saveMode:"Save target",saveModeZotero:"Write to local library",saveModeDir:"Export to local directory",dirPath:"Export directory",dirPathHint:"Writes PDF + .csl.json + .ris for manual import",naming:"Naming rule",namingHint:"Variables: {author} {authors} {year} {title} {journal} {doi} {arxiv}",tags:"Default tags",tagsHint:"Comma separated, attached on save",unpaywallEmail:"Unpaywall email",unpaywallEmailHint:"Used to query open-access copies, sent as the requester identity",autoScan:"Scan model replies",autoScanHint:"Add papers found in replies automatically; may produce false positives",zoteroPort:"Library port",dataDir:"Data directory",dataDirHint:"Detected automatically, can be overridden",saved:"Saved",test:"Test connection",testOk:"Connected",testFail:"Connection failed"},diff:{title:"A similar entry already exists",subtitle:"Field differences \u2014 choose how to proceed:",noDiff:"Fields are identical"},status:{ready:"Ready",running:"Library running",down:"Library not running"}},Sg={zh:Xy,en:Yy},Zu="zh",Eg=new Set;function SA(h){try{let t=h?.locale?.snapshot?.(),e=t?.locale??t?.language??"";if(/^en/i.test(e))return"en";if(/^zh/i.test(e))return"zh"}catch{}return null}function EA(h){let t=String(h).split("."),e=Sg[Zu];for(let n of t)if(e=e?.[n],e===void 0)break;if(e!==void 0&&typeof e!="object")return e;let s=Sg.zh;for(let n of t)if(s=s?.[n],s===void 0)break;return typeof s=="object"?"":String(s??h)}function CA(h){if(!(!Sg[h]||h===Zu)){Zu=h;for(let t of Eg)try{t()}catch{}}}function _A(h){return Eg.add(h),()=>Eg.delete(h)}qy.exports={NS:xA,zh:Xy,en:Yy,t:EA,setLocale:CA,subscribe:_A,detectLocale:SA,currentLocale:()=>Zu}});var Qy=sn((LS,Ky)=>{var tf="dsh-literature-plugin-css",TA=`
8
+ .zt-panel {
9
+ position: fixed;
10
+ top: 8px;
11
+ right: 8px;
12
+ bottom: 8px;
13
+ width: 380px;
14
+ min-width: 300px;
15
+ max-width: 720px;
16
+ display: flex;
17
+ flex-direction: column;
18
+ box-sizing: border-box;
19
+ background: var(--dsw-alias-bg-layer-2, #fff);
20
+ border: 1px solid var(--dsw-alias-border-l2, rgba(128,128,128,.24));
21
+ border-radius: 12px;
22
+ box-shadow: var(--dsw-shadow-lv2, 0 4px 12px 0 rgba(0,0,0,.05), 0 2px 8px 0 rgba(0,0,0,.04));
23
+ color: var(--dsw-alias-label-primary, #1f1f1f);
24
+ font-size: 14px;
25
+ font-family: inherit;
26
+ line-height: 1.6;
27
+ overflow: hidden;
28
+ z-index: 40;
29
+ }
30
+
31
+ .zt-panel[hidden] { display: none; }
32
+
33
+ .zt-header {
34
+ display: flex;
35
+ align-items: center;
36
+ gap: 8px;
37
+ padding: 8px 12px;
38
+ border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.18));
39
+ background: var(--dsw-alias-bg-layer-1, #fafafa);
40
+ cursor: grab;
41
+ user-select: none;
42
+ flex: 0 0 auto;
43
+ }
44
+ .zt-header:active { cursor: grabbing; }
45
+
46
+ .zt-title {
47
+ flex: 1;
48
+ min-width: 0;
49
+ font-size: 14px;
50
+ font-weight: 500;
51
+ overflow: hidden;
52
+ text-overflow: ellipsis;
53
+ white-space: nowrap;
54
+ }
55
+
56
+ .zt-iconbtn {
57
+ display: inline-flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ width: 28px;
61
+ height: 28px;
62
+ padding: 0;
63
+ border: none;
64
+ border-radius: 8px;
65
+ background: transparent;
66
+ color: var(--dsw-alias-label-secondary, #666);
67
+ cursor: pointer;
68
+ flex: 0 0 auto;
69
+ transition: background .15s var(--ds-ease-in-out, cubic-bezier(.4,0,.2,1));
70
+ }
71
+ .zt-iconbtn:hover { background: var(--dsw-alias-interactive-bg-hover, rgba(128,128,128,.12)); }
72
+ .zt-iconbtn:active { background: var(--dsw-alias-interactive-bg-active, rgba(128,128,128,.2)); }
73
+ .zt-iconbtn[disabled] { opacity: .4; cursor: default; }
74
+
75
+ .zt-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
76
+
77
+ .zt-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
78
+
79
+ .zt-card {
80
+ padding: 12px;
81
+ border: 1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.18));
82
+ border-radius: 8px;
83
+ background: var(--dsw-alias-bg-layer-1, #fafafa);
84
+ transition: border-color .15s var(--ds-ease-in-out, cubic-bezier(.4,0,.2,1)), background .15s var(--ds-ease-in-out, cubic-bezier(.4,0,.2,1));
85
+ }
86
+ .zt-card:hover { background: var(--dsw-alias-interactive-bg-hover, rgba(128,128,128,.08)); }
87
+ .zt-card[data-selected='1'] { border-color: var(--dsw-alias-brand-primary, #4d6bfe); }
88
+ .zt-card[data-state$='_failed'] { border-color: var(--dsw-alias-state-error-primary, #d93025); }
89
+ .zt-card[data-state='duplicate'] { border-color: var(--dsw-alias-state-warn-primary, #b06000); }
90
+
91
+ .zt-card-title {
92
+ font-size: 14px;
93
+ font-weight: 500;
94
+ color: var(--dsw-alias-label-primary, #1f1f1f);
95
+ margin: 0 0 4px;
96
+ display: -webkit-box;
97
+ -webkit-line-clamp: 2;
98
+ -webkit-box-orient: vertical;
99
+ overflow: hidden;
100
+ }
101
+ .zt-card-meta {
102
+ font-size: 12px;
103
+ color: var(--dsw-alias-label-secondary, #666);
104
+ margin: 0 0 8px;
105
+ display: -webkit-box;
106
+ -webkit-line-clamp: 2;
107
+ -webkit-box-orient: vertical;
108
+ overflow: hidden;
109
+ }
110
+ .zt-card-id {
111
+ font-family: var(--ds-font-family-code, ui-monospace, monospace);
112
+ font-size: 12px;
113
+ color: var(--dsw-alias-label-tertiary, #8a8a8a);
114
+ word-break: break-all;
115
+ }
116
+
117
+ .zt-row { display: flex; align-items: center; gap: 8px; }
118
+ .zt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
119
+
120
+ .zt-btn {
121
+ display: inline-flex;
122
+ align-items: center;
123
+ gap: 4px;
124
+ height: 28px;
125
+ padding: 0 12px;
126
+ border: 1px solid var(--dsw-alias-border-l2, rgba(128,128,128,.24));
127
+ border-radius: 8px;
128
+ background: var(--dsw-alias-button-elevated-fill, transparent);
129
+ color: var(--dsw-alias-label-primary, #1f1f1f);
130
+ font-size: 13px;
131
+ font-family: inherit;
132
+ cursor: pointer;
133
+ transition: background .15s var(--ds-ease-in-out, cubic-bezier(.4,0,.2,1));
134
+ }
135
+ .zt-btn:hover { background: var(--dsw-alias-interactive-bg-hover, rgba(128,128,128,.12)); }
136
+ .zt-btn[disabled] { opacity: .45; cursor: default; }
137
+ .zt-btn[data-variant='primary'] {
138
+ background: var(--dsw-alias-button-primary-fill, #4d6bfe);
139
+ border-color: transparent;
140
+ color: var(--dsw-alias-label-primary-inverted, #fff);
141
+ }
142
+ .zt-btn[data-variant='primary']:hover { background: var(--dsw-alias-button-primary-hover, #3d58e0); }
143
+ .zt-btn[data-variant='ghost'] { border-color: transparent; background: transparent; }
144
+
145
+ .zt-badge {
146
+ display: inline-flex;
147
+ align-items: center;
148
+ gap: 4px;
149
+ padding: 0 8px;
150
+ height: 20px;
151
+ border-radius: 4px;
152
+ font-size: 12px;
153
+ background: var(--dsw-alias-interactive-bg-hover, rgba(128,128,128,.12));
154
+ color: var(--dsw-alias-label-secondary, #666);
155
+ white-space: nowrap;
156
+ }
157
+ .zt-badge[data-tone='success'] { color: var(--dsw-alias-state-success-primary, #137333); }
158
+ .zt-badge[data-tone='warn'] { color: var(--dsw-alias-state-warn-primary, #b06000); }
159
+ .zt-badge[data-tone='error'] { color: var(--dsw-alias-state-error-primary, #d93025); }
160
+ .zt-badge[data-tone='info'] { color: var(--dsw-alias-label-secondary, #666); }
161
+
162
+ .zt-progress { height: 2px; border-radius: 1px; background: var(--dsw-alias-bg-skeleton, rgba(128,128,128,.16)); overflow: hidden; margin-top: 8px; }
163
+ .zt-progress > i { display: block; height: 100%; background: var(--dsw-alias-brand-primary, #4d6bfe); transition: width .2s var(--ds-ease-in-out, cubic-bezier(.4,0,.2,1)); }
164
+
165
+ .zt-error { margin-top: 8px; font-size: 12px; color: var(--dsw-alias-state-error-primary, #d93025); }
166
+ .zt-hint { font-size: 12px; color: var(--dsw-alias-label-tertiary, #8a8a8a); }
167
+
168
+ .zt-empty { padding: 32px 16px; text-align: center; color: var(--dsw-alias-label-secondary, #666); }
169
+ .zt-empty h4 { margin: 12px 0 4px; font-size: 14px; font-weight: 500; color: var(--dsw-alias-label-primary, #1f1f1f); }
170
+ .zt-empty p { margin: 0; font-size: 13px; }
171
+
172
+ .zt-skeleton { height: 76px; border-radius: 8px; background: var(--dsw-alias-bg-skeleton, rgba(128,128,128,.14)); animation: zt-pulse 1.4s var(--ds-ease-in-out, ease-in-out) infinite; }
173
+ @keyframes zt-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
174
+
175
+ .zt-banner {
176
+ display: flex; align-items: center; gap: 8px;
177
+ padding: 8px 12px; font-size: 13px;
178
+ border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.18));
179
+ background: var(--dsw-alias-state-warn-secondary, rgba(176,96,0,.08));
180
+ color: var(--dsw-alias-state-warn-label, #8a4b00);
181
+ }
182
+
183
+ .zt-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.18)); flex: 0 0 auto; }
184
+ .zt-input {
185
+ flex: 1; min-width: 0; height: 28px; padding: 0 8px;
186
+ border: 1px solid var(--dsw-alias-border-l2, rgba(128,128,128,.24));
187
+ border-radius: 8px; background: var(--dsw-alias-bg-base, #fff);
188
+ color: var(--dsw-alias-label-primary, #1f1f1f);
189
+ font-size: 13px; font-family: inherit;
190
+ }
191
+
192
+ /* ---- reader ---- */
193
+ .zt-reader { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--dsw-alias-bg-base, #fff); }
194
+ .zt-reader-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
195
+ .zt-page { position: relative; background: #fff; box-shadow: var(--dsw-shadow-lv1, 0 2px 4px 0 rgba(0,0,0,.05)); line-height: 0; }
196
+ .zt-page > canvas { display: block; width: 100%; height: auto; }
197
+
198
+ /* pdf.js text layer, trimmed from pdf_viewer.css and re-themed. */
199
+ .zt-page .textLayer {
200
+ color-scheme: only light;
201
+ position: absolute; inset: 0; overflow: clip; opacity: 1;
202
+ line-height: 1; letter-spacing: normal; word-spacing: normal;
203
+ text-size-adjust: none; forced-color-adjust: none;
204
+ transform-origin: 0 0; z-index: 0;
205
+ }
206
+ .zt-page .textLayer :is(span, br) {
207
+ color: transparent; position: absolute; white-space: pre; cursor: text;
208
+ transform-origin: 0% 0%; user-select: text;
209
+ }
210
+ .zt-page .textLayer > :not(.markedContent),
211
+ .zt-page .textLayer .markedContent span:not(.markedContent) {
212
+ z-index: 1;
213
+ --font-height: 0;
214
+ font-size: calc(var(--zt-total-scale, 1) * var(--font-height));
215
+ --scale-x: 1; --rotate: 0deg;
216
+ transform: rotate(var(--rotate)) scaleX(var(--scale-x));
217
+ }
218
+ .zt-page .textLayer .markedContent { display: contents; }
219
+ .zt-page .textLayer ::selection { background: rgba(0, 0, 255, .25); color: transparent; }
220
+
221
+ .zt-highlight { position: absolute; border-radius: 2px; pointer-events: auto; cursor: pointer; mix-blend-mode: multiply; }
222
+ .zt-highlight[data-color='yellow'] { background: rgba(250, 204, 21, .38); }
223
+ .zt-highlight[data-color='green'] { background: rgba(34, 197, 94, .32); }
224
+ .zt-highlight[data-color='blue'] { background: rgba(59, 130, 246, .30); }
225
+ .zt-highlight[data-color='pink'] { background: rgba(244, 114, 182, .34); }
226
+
227
+ .zt-toc { max-height: 40%; overflow: auto; border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.18)); padding: 8px; }
228
+ .zt-toc button {
229
+ display: block; width: 100%; text-align: left; padding: 4px 8px; margin: 0;
230
+ border: none; border-radius: 6px; background: transparent;
231
+ color: var(--dsw-alias-label-secondary, #666); font-size: 13px; font-family: inherit; cursor: pointer;
232
+ }
233
+ .zt-toc button:hover { background: var(--dsw-alias-interactive-bg-hover, rgba(128,128,128,.12)); }
234
+ .zt-toc button[data-depth='1'] { padding-left: 20px; }
235
+ .zt-toc button[data-depth='2'] { padding-left: 32px; }
236
+ .zt-toc button[data-depth='3'] { padding-left: 44px; }
237
+
238
+ /* ---- settings ---- */
239
+ .zt-settings { padding: 16px; overflow-y: auto; }
240
+ .zt-field { margin-bottom: 16px; }
241
+ .zt-field > label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--dsw-alias-label-primary, #1f1f1f); }
242
+ .zt-field > .zt-hint { margin-top: 4px; }
243
+ .zt-field select, .zt-field input[type='text'] {
244
+ width: 100%; box-sizing: border-box; height: 32px; padding: 0 8px;
245
+ border: 1px solid var(--dsw-alias-border-l2, rgba(128,128,128,.24));
246
+ border-radius: 8px; background: var(--dsw-alias-bg-base, #fff);
247
+ color: var(--dsw-alias-label-primary, #1f1f1f); font-size: 13px; font-family: inherit;
248
+ }
249
+
250
+ /* ---- diff ---- */
251
+ .zt-diff { padding: 16px; overflow-y: auto; }
252
+ .zt-diff table { width: 100%; border-collapse: collapse; font-size: 13px; }
253
+ .zt-diff th, .zt-diff td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.18)); vertical-align: top; }
254
+ .zt-diff th { color: var(--dsw-alias-label-secondary, #666); font-weight: 500; white-space: nowrap; }
255
+ .zt-diff td.del { color: var(--dsw-alias-state-error-primary, #d93025); }
256
+ .zt-diff td.add { color: var(--dsw-alias-state-success-primary, #137333); }
257
+
258
+ /* ---- resize handles ---- */
259
+ .zt-handle-l { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
260
+ .zt-handle-br { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; }
261
+
262
+ /* Narrow viewports: become a near-full-width drawer. */
263
+ @media (max-width: 520px) {
264
+ .zt-panel { top: 4px; right: 4px; bottom: 4px; left: 4px; width: auto; min-width: 0; max-width: none; }
265
+ .zt-handle-l { display: none; }
266
+ }
267
+
268
+ @media (prefers-reduced-motion: reduce) {
269
+ .zt-panel, .zt-card, .zt-btn, .zt-iconbtn, .zt-progress > i { transition: none; }
270
+ .zt-skeleton { animation: none; }
271
+ }
272
+ `;function kA(){if(typeof document>"u"||document.getElementById(tf))return;let h=document.createElement("style");h.id=tf,h.dataset.plugin="@a9i5k4/dsh-literature",h.dataset.pluginCss="@a9i5k4/dsh-literature/panel.css",h.textContent=TA,document.head.appendChild(h)}function MA(){typeof document>"u"||document.getElementById(tf)?.remove()}Ky.exports={ensureStyle:kA,removeStyle:MA,STYLE_ID:tf}});var Cg=sn((OS,Jy)=>{var ch="/api/dsh-literature";async function Me(h,{method:t="GET",body:e,signal:s}={}){let n=await fetch(ch+h,{method:t,headers:e?{"content-type":"application/json"}:void 0,body:e?JSON.stringify(e):void 0,signal:s}),r=await n.text(),a={};try{a=r?JSON.parse(r):{}}catch{a={}}if(!n.ok)throw new Error(a.error||`${t} ${h} -> HTTP ${n.status}`);return a}var PA={state:()=>Me("/state"),config:()=>Me("/config"),saveConfig:h=>Me("/config",{method:"POST",body:h}),scan:h=>Me("/scan",{method:"POST",body:{text:h}}),resolve:h=>Me("/resolve",{method:"POST",body:{key:h}}),fetch:h=>Me("/fetch",{method:"POST",body:{key:h}}),save:(h,t={})=>Me("/save",{method:"POST",body:{key:h,...t}}),retry:h=>Me("/retry",{method:"POST",body:{key:h}}),diff:h=>Me("/diff",{method:"POST",body:{key:h}}),discard:h=>Me("/discard",{method:"POST",body:{key:h}}),zoteroCollections:()=>Me("/zotero/collections?selected=1"),zoteroItems:h=>Me(`/zotero/items?q=${encodeURIComponent(h||"")}&limit=25`),annotations:h=>Me(`/annotations/${encodeURIComponent(h)}`),addAnnotation:(h,t)=>Me(`/annotations/${encodeURIComponent(h)}`,{method:"POST",body:t}),patchAnnotation:(h,t,e)=>Me(`/annotations/${encodeURIComponent(h)}`,{method:"PATCH",body:{id:t,patch:e}}),removeAnnotation:(h,t)=>Me(`/annotations/${encodeURIComponent(h)}?id=${encodeURIComponent(t)}`,{method:"DELETE"}),pdfUrl:h=>`${ch}/pdf/${encodeURIComponent(h)}`,zoteroPdfUrl:h=>`${ch}/zotero/file/${encodeURIComponent(h)}`};function DA(h,t){if(typeof EventSource>"u")return()=>{};let e=new EventSource(`${ch}/events`),s=["item","task","status","removed","hello"],n=[];for(let r of s){let a=o=>{let l={};try{l=JSON.parse(o.data)}catch{l={}}h?.(r,l)};e.addEventListener(r,a),n.push([r,a])}return t&&(e.onerror=t),()=>{for(let[r,a]of n)e.removeEventListener(r,a);e.close()}}Jy.exports={api:PA,subscribe:DA,BASE:ch}});var ll=sn((RS,s0)=>{var{api:nn,subscribe:IA}=Cg(),Zy="dsh-literature:panel";function LA(){try{return JSON.parse(localStorage.getItem(Zy)||"{}")}catch{return{}}}var ef=LA(),Be={open:!1,items:[],tasks:{},config:null,zotero:null,selectedCollection:null,selectedKey:null,view:"list",conflict:null,busy:{},loaded:!1,loadError:"",geometry:{x:ef.x??null,y:ef.y??null,width:ef.width??380,tocOpen:ef.tocOpen??!1}},t0=Be,_g=new Set;function e0(){t0=Be;for(let h of _g)try{h()}catch{}}function de(h){Be={...Be,...h},e0()}function OA(h){let t={...Be.geometry,...h};Be={...Be,geometry:t},e0();try{localStorage.setItem(Zy,JSON.stringify({x:t.x,y:t.y,width:t.width,tocOpen:t.tocOpen}))}catch{}}function RA(){return t0}function NA(h){return _g.add(h),()=>_g.delete(h)}function wi(h,t){let e={...Be.busy};t?e[h]=(e[h]??0)+1:e[h]=Math.max(0,(e[h]??1)-1),de({busy:e})}function FA(h){return(Be.busy[h]??0)>0}async function tr(){de({loadError:""});try{let h=await nn.state();de({config:h.config,zotero:h.zotero,items:h.items??[],tasks:Object.fromEntries((h.tasks??[]).map(t=>[t.key,t])),selectedCollection:h.selectedCollection??null,loaded:!0})}catch(h){de({loadError:h.message,loaded:!0})}}async function BA(h){if(!h?.trim())return[];let t=await nn.scan(h);return await tr(),t??[]}async function zA(h){wi(h,!0);try{await nn.resolve(h),await tr()}finally{wi(h,!1)}}async function HA(h){wi(h,!0);try{await nn.fetch(h),await tr()}finally{wi(h,!1)}}async function UA(h,t){wi(h,!0);try{await nn.save(h,t),await tr()}finally{wi(h,!1)}}async function $A(h){wi(h,!0);try{await nn.retry(h),await tr()}finally{wi(h,!1)}}async function GA(h){wi(h,!0);try{await nn.discard(h),Be.selectedKey===h&&de({selectedKey:null,view:"list"}),await tr()}finally{wi(h,!1)}}async function jA(h){de({conflict:null,view:"diff"});try{let{conflict:t}=await nn.diff(h);de({conflict:t,view:"diff",selectedKey:h})}catch(t){de({conflict:{error:t.message},view:"diff"})}}function VA(){de({open:!0}),Be.loaded||tr()}function WA(){de({open:!1})}function XA(h,t){de({selectedKey:h,view:t??"reader"})}function YA(h){de({view:h,...h!=="diff"?{conflict:null}:{}})}async function qA(h){let{config:t}=await nn.saveConfig(h);return de({config:t}),t}function KA(){return IA((h,t)=>{if(h==="item"){let e=Be.items.slice(),s=e.findIndex(n=>n.key===t.key);s>=0?e[s]={...e[s],...t}:e.unshift(t),de({items:e});return}if(h==="task"){let e={...Be.tasks};t.state==="done"||t.state==="failed"||t.state==="cancelled"?delete e[t.key]:e[t.key]=t,de({tasks:e});return}if(h==="removed"){de({items:Be.items.filter(e=>e.key!==t.key)});return}h==="status"&&de({zotero:{...Be.zotero,...t}})})}var QA={getSnapshot:RA,subscribe:NA,set:de,setGeometry:OA,refresh:tr,scanText:BA,resolveItem:zA,fetchPdf:HA,saveItem:UA,retryItem:$A,discardItem:GA,showDiff:jA,openPanel:VA,closePanel:WA,selectItem:XA,setView:YA,saveConfig:qA,attachEvents:KA,isBusy:FA};s0.exports=QA});var rf=sn((NS,a0)=>{var nf=require("react"),tt=nf.createElement,{t:sf}=ol(),JA=ll();function Yt(h,t=16){return tt("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},h)}var i0={Close:h=>Yt([tt("path",{d:"M6 6l12 12M18 6L6 18"})],h?.size),Settings:h=>Yt([tt("circle",{cx:12,cy:12,r:3}),tt("path",{d:"M19.4 15a1.7 1.7 0 00.3 1.9l.1.1a2 2 0 11-2.8 2.8l-.1-.1a1.7 1.7 0 00-1.9-.3 1.7 1.7 0 00-1 1.5V21a2 2 0 11-4 0v-.1a1.7 1.7 0 00-1-1.5 1.7 1.7 0 00-1.9.3l-.1.1a2 2 0 11-2.8-2.8l.1-.1a1.7 1.7 0 00.3-1.9 1.7 1.7 0 00-1.5-1H3a2 2 0 110-4h.1a1.7 1.7 0 001.5-1 1.7 1.7 0 00-.3-1.9l-.1-.1a2 2 0 112.8-2.8l.1.1a1.7 1.7 0 001.9.3H9a1.7 1.7 0 001-1.5V3a2 2 0 114 0v.1a1.7 1.7 0 001 1.5 1.7 1.7 0 001.9-.3l.1-.1a2 2 0 112.8 2.8l-.1.1a1.7 1.7 0 00-.3 1.9V9a1.7 1.7 0 001.5 1H21a2 2 0 110 4h-.1a1.7 1.7 0 00-1.5 1z"})],h?.size),Back:h=>Yt([tt("path",{d:"M15 18l-6-6 6-6"})],h?.size),Download:h=>Yt([tt("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M7 10l5 5 5-5M12 15V3"})],h?.size),Refresh:h=>Yt([tt("path",{d:"M21 12a9 9 0 11-2.6-6.4M21 3v6h-6"})],h?.size),Folder:h=>Yt([tt("path",{d:"M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})],h?.size),Read:h=>Yt([tt("path",{d:"M2 4h6a4 4 0 014 4v12a3 3 0 00-3-3H2zM22 4h-6a4 4 0 00-4 4v12a3 3 0 013-3h7z"})],h?.size),ChevronLeft:h=>Yt([tt("path",{d:"M15 18l-6-6 6-6"})],h?.size),ChevronRight:h=>Yt([tt("path",{d:"M9 18l6-6-6-6"})],h?.size),ChevronDown:h=>Yt([tt("path",{d:"M6 9l6 6 6-6"})],h?.size),Plus:h=>Yt([tt("path",{d:"M12 5v14M5 12h14"})],h?.size),Minus:h=>Yt([tt("path",{d:"M5 12h14"})],h?.size),Search:h=>Yt([tt("circle",{cx:11,cy:11,r:7}),tt("path",{d:"M20 20l-3.5-3.5"})],h?.size),Trash:h=>Yt([tt("path",{d:"M3 6h18M8 6V4a1 1 0 011-1h6a1 1 0 011 1v2M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6"})],h?.size),Link:h=>Yt([tt("path",{d:"M10 13a5 5 0 007.5.5l3-3a5 5 0 00-7-7l-1.7 1.7M14 11a5 5 0 00-7.5-.5l-3 3a5 5 0 007 7L12.2 19"})],h?.size),Check:h=>Yt([tt("path",{d:"M20 6L9 17l-5-5"})],h?.size),Warn:h=>Yt([tt("path",{d:"M10.3 3.9L1.8 18a2 2 0 001.7 3h17a2 2 0 001.7-3L13.7 3.9a2 2 0 00-3.4 0zM12 9v4M12 17h.01"})],h?.size),Toc:h=>Yt([tt("path",{d:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"})],h?.size),Book:h=>Yt([tt("path",{d:"M4 19.5A2.5 2.5 0 016.5 17H20M4 19.5A2.5 2.5 0 006.5 22H20V2H6.5A2.5 2.5 0 004 4.5z"})],h?.size),Panel:h=>Yt([tt("rect",{x:3,y:3,width:18,height:18,rx:2}),tt("path",{d:"M9 3v18"})],h?.size)};function n0({size:h=16}){return tt("span",{style:{display:"inline-flex",width:h,height:h,animation:"zt-spin 0.8s linear infinite"}},Yt([tt("path",{d:"M21 12a9 9 0 11-6.2-8.6"})],h))}function ZA({tone:h="info",children:t}){return tt("span",{className:"zt-badge","data-tone":h},t)}function r0({variant:h,onClick:t,disabled:e,loading:s,title:n,children:r}){return tt("button",{className:"zt-btn","data-variant":h,onClick:t,disabled:e||s,title:n,type:"button"},s?tt(n0,{size:14}):null,r)}function tx({onClick:h,title:t,disabled:e,children:s}){return tt("button",{className:"zt-iconbtn",onClick:h,title:t,disabled:e,type:"button","aria-label":t},s)}function ex({onScan:h}){let[t,e]=nf.useState(""),[s,n]=nf.useState(!1),[r,a]=nf.useState(""),o=async()=>{if(t.trim()){n(!0),a("");try{await JA.scanText(t),e("")}catch(l){a(l.message)}finally{n(!1)}}};return tt("div",{className:"zt-empty"},tt("div",{style:{display:"flex",justifyContent:"center",color:"var(--dsw-alias-label-tertiary, #8a8a8a)"}},tt(i0.Book,{size:28})),tt("h4",null,sf("empty.title")),tt("p",null,sf("empty.body")),tt("div",{style:{marginTop:16,display:"flex",gap:8}},tt("input",{className:"zt-input",placeholder:sf("empty.placeholder"),value:t,onChange:l=>e(l.target.value),onKeyDown:l=>{l.key==="Enter"&&o()}}),tt(r0,{variant:"primary",onClick:o,loading:s,disabled:!t.trim()},sf("empty.add"))),r?tt("div",{className:"zt-error"},r):null)}function sx({value:h}){let t=Math.max(0,Math.min(100,h??0));return tt("div",{className:"zt-progress"},tt("i",{style:{width:`${t}%`}}))}a0.exports={Icon:i0,Spinner:n0,Badge:ZA,Button:r0,IconButton:tx,EmptyState:ex,ProgressBar:sx}});var Yw={};vA(Yw,{AbortException:()=>yi,AnnotationEditorLayer:()=>_p,AnnotationEditorParamsType:()=>it,AnnotationEditorType:()=>K,AnnotationEditorUIManager:()=>oa,AnnotationLayer:()=>Ap,AnnotationMode:()=>jn,AnnotationType:()=>Pt,CSSConstants:()=>rp,ColorPicker:()=>Kh,DOMSVGFactory:()=>Zo,DrawLayer:()=>Tp,FeatureTest:()=>lt,GlobalWorkerOptions:()=>Ys,ImageKind:()=>Oh,InvalidPDFException:()=>Kc,MathClamp:()=>Ct,OPS:()=>mi,OutputScale:()=>vi,PDFDataRangeTransport:()=>qh,PDFDateString:()=>Ko,PDFWorker:()=>ih,PasswordException:()=>qc,PasswordResponses:()=>R0,PermissionFlag:()=>O0,PixelsPerInch:()=>Yn,RenderingCancelledException:()=>Qc,ResponseException:()=>Qo,SignatureExtractor:()=>qs,SupportedImageMimeTypes:()=>np,TextLayer:()=>sh,TextLayerImages:()=>kp,TouchManager:()=>Gh,Util:()=>D,VerbosityLevel:()=>Xu,XfaLayer:()=>vl,applyOpacity:()=>H0,build:()=>iw,createValidAbsoluteUrl:()=>My,fetchData:()=>ag,findContrastColor:()=>U0,getDocument:()=>Zv,getFilenameFromUrl:()=>B0,getPdfFilenameFromUrl:()=>z0,getRGB:()=>oh,getRGBA:()=>ah,getUuid:()=>Dy,isDataScheme:()=>Yu,isPdfFile:()=>og,isValidExplicitDest:()=>Sv,makeArr:()=>nl,makeMap:()=>rg,makeObj:()=>sp,makeSet:()=>F0,noContextMenu:()=>Js,normalizeUnicode:()=>N0,renderRichText:()=>Iy,setLayerDimensions:()=>aa,shadow:()=>G,stopEvent:()=>se,updateUrlHash:()=>Py,version:()=>sw});function ix(h){Number.isInteger(h)&&(sg=h)}function nx(){return sg}function ig(h){sg>=Xu.INFOS&&console.info(`Info: ${h}`)}function Q(h){sg>=Xu.WARNINGS&&console.warn(`Warning: ${h}`)}function rt(h){throw new Error(h)}function $t(h,t){h||rt(t)}function rx(h){switch(h?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function My(h,t=null,e=null){if(!h)return null;if(e&&typeof h=="string"&&(e.addDefaultProtocol&&h.startsWith("www.")&&h.match(/\./g)?.length>=2&&(h=`http://${h}`),e.tryConvertEncoding))try{h=ox(h)}catch{}let s=t?URL.parse(h,t):URL.parse(h);return rx(s)?s:null}function Py(h,t,e=!1){let s=URL.parse(h);return s?(s.hash=t,s.href):e&&My(h,"http://example.com")?h.split("#",1)[0]+`${t?`#${t}`:""}`:""}function Lg(h){return h.substring(h.lastIndexOf("/")+1)}function G(h,t,e,s=!1){return Object.defineProperty(h,t,{value:e,enumerable:!s,configurable:!0,writable:!1}),e}function ax(h){(typeof h!="object"||h?.length===void 0)&&rt("Invalid argument for bytesToString");let t=h.length,e=8192;if(t<e)return String.fromCharCode.apply(null,h);let s=[];for(let n=0;n<t;n+=e){let r=Math.min(n+e,t),a=h.subarray(n,r);s.push(String.fromCharCode.apply(null,a))}return s.join("")}function ng(h){typeof h!="string"&&rt("Invalid argument for stringToBytes");let t=h.length,e=new Uint8Array(t);for(let s=0;s<t;++s)e[s]=h.charCodeAt(s)&255;return e}function ox(h){return decodeURIComponent(escape(h))}function N0(h){return Tg||(Tg=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,o0=new Map([["\uFB05","\u017Ft"]])),h.replaceAll(Tg,(t,e,s)=>e?e.normalize("NFKC"):o0.get(s))}function Dy(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();let h=new Uint8Array(32);return crypto.getRandomValues(h),ax(h)}function lx(h,t,e){if(!Array.isArray(e)||e.length<2)return!1;let[s,n,...r]=e;if(!h(s)&&!Number.isInteger(s)||!t(n))return!1;let a=r.length,o=!0;switch(n.name){case"XYZ":if(a<2||a>3)return!1;break;case"Fit":case"FitB":return a===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(a>1)return!1;break;case"FitR":if(a!==4)return!1;o=!1;break;default:return!1}for(let l of r)if(!(typeof l=="number"||o&&l===null))return!1;return!0}function Ct(h,t,e){return Math.min(Math.max(h,t),e)}async function ag(h,t="text"){if(Nh(h,document.baseURI)){let e=await fetch(h);if(!e.ok)throw new Error(e.statusText);switch(t){case"blob":return e.blob();case"bytes":return e.bytes();case"json":return e.json()}return e.text()}return new Promise((e,s)=>{let n=new XMLHttpRequest;n.open("GET",h,!0),n.responseType=t==="bytes"?"arraybuffer":t,n.onreadystatechange=()=>{if(n.readyState===XMLHttpRequest.DONE){if(n.status===200||n.status===0){switch(t){case"bytes":e(new Uint8Array(n.response));return;case"blob":case"json":e(n.response);return}e(n.responseText);return}s(new Error(n.statusText))}},n.send(null)})}function Yu(h){let t=h.length,e=0;for(;e<t&&h[e].trim()==="";)e++;return h.substring(e,e+5).toLowerCase()==="data:"}function og(h){return typeof h=="string"&&/\.pdf$/i.test(h)}function B0(h){return[h]=h.split(/[#?]/,1),Lg(h)}function z0(h,t="document.pdf"){if(typeof h!="string")return t;if(Yu(h))return Q('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;let s=(o=>{try{return new URL(o)}catch{}try{return new URL(decodeURIComponent(o))}catch{}try{return new URL(o,"https://foo.bar")}catch{}try{return new URL(decodeURIComponent(o),"https://foo.bar")}catch{}return null})(h);if(!s)return t;let n=o=>{try{let l=decodeURIComponent(o);return l.includes("/")&&(l=Lg(l),l.length===4&&r.test(l))?o:l}catch{return o}},r=/\.pdf$/i,a=Lg(s.pathname);if(r.test(a))return n(a);if(s.searchParams.size>0){let o=c=>[...c].findLast(d=>r.test(d)),l=o(s.searchParams.values())??o(s.searchParams.keys());if(l)return n(l)}if(s.hash){let{hash:o}=s,l=-1;for(let{index:c}of o.matchAll(/\.pdf\b/gi))l=c;if(l>0){let c=l;for(;c>0&&!"/?#=".includes(o[c-1]);)c--;if(c<l)return n(o.slice(c,l+4))}}return t}function Nh(h,t){let e=t?URL.parse(h,t):URL.parse(h);return/https?:/.test(e?.protocol??"")}function Js(h){h.preventDefault()}function se(h){h.preventDefault(),h.stopPropagation()}function ah(h){if(h.startsWith("#")){let e=h.slice(1);return[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16),e.length>=8?parseInt(e.slice(6,8),16)/255:1]}if(h.startsWith("rgb(")){let[e,s,n]=h.slice(4,-1).split(",").map(r=>parseInt(r,10));return[e,s,n,1]}if(h.startsWith("rgba(")){let e=h.slice(5,-1).split(",");return[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10),parseFloat(e[3])]}let t=h.match(/^color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+|none))?\)$/);return t?[Math.round(parseFloat(t[1])*255),Math.round(parseFloat(t[2])*255),Math.round(parseFloat(t[3])*255),t[4]!==void 0&&t[4]!=="none"?parseFloat(t[4]):1]:null}function oh(h){let t=ah(h);return t?t.slice(0,3):(Q(`Not a valid color format: "${h}"`),[0,0,0])}function dx(h){let t=document.createElement("span");t.style.visibility="hidden",t.style.colorScheme="only light",document.body.append(t);for(let e of h.keys()){t.style.color=e;let s=window.getComputedStyle(t).color;h.set(e,oh(s))}t.remove()}function Et(h){let{a:t,b:e,c:s,d:n,e:r,f:a}=h.getTransform();return[t,e,s,n,r,a]}function Ai(h){let{a:t,b:e,c:s,d:n,e:r,f:a}=h.getTransform().invertSelf();return[t,e,s,n,r,a]}function aa(h,t,e=!1,s=!0){if(t instanceof Uh){let{pageWidth:n,pageHeight:r}=t.rawDims,{style:a}=h,o=`round(down, var(--total-scale-factor) * ${n}px, var(--scale-round-x))`,l=`round(down, var(--total-scale-factor) * ${r}px, var(--scale-round-y))`;!e||t.rotation%180===0?(a.width=o,a.height=l):(a.width=l,a.height=o)}s&&h.setAttribute("data-main-rotation",t.rotation)}function H0(h,t){t=Ct(t??1,0,1);let e=255*(1-t);return h.map(s=>Math.round(s*t+e))}function l0(h,t){let e=h[0]/255,s=h[1]/255,n=h[2]/255,r=Math.max(e,s,n),a=Math.min(e,s,n),o=(r+a)/2;if(r===a)t[0]=t[1]=0;else{let l=r-a;switch(t[1]=o<.5?l/(r+a):l/(2-r-a),r){case e:t[0]=((s-n)/l+(s<n?6:0))*60;break;case s:t[0]=((n-e)/l+2)*60;break;case n:t[0]=((e-s)/l+4)*60;break}}t[2]=o}function Bg(h,t){let e=h[0],s=h[1],n=h[2],r=(1-Math.abs(2*n-1))*s,a=r*(1-Math.abs(e/60%2-1)),o=n-r/2;switch(Math.floor(e/60)){case 0:t[0]=r+o,t[1]=a+o,t[2]=o;break;case 1:t[0]=a+o,t[1]=r+o,t[2]=o;break;case 2:t[0]=o,t[1]=r+o,t[2]=a+o;break;case 3:t[0]=o,t[1]=a+o,t[2]=r+o;break;case 4:t[0]=a+o,t[1]=o,t[2]=r+o;break;case 5:case 6:t[0]=r+o,t[1]=o,t[2]=a+o;break}}function zg(h){return h<=.03928?h/12.92:((h+.055)/1.055)**2.4}function c0(h,t,e){Bg(h,e),e.map(zg);let s=.2126*e[0]+.7152*e[1]+.0722*e[2];Bg(t,e),e.map(zg);let n=.2126*e[0]+.7152*e[1]+.0722*e[2];return s>n?(s+.05)/(n+.05):(n+.05)/(s+.05)}function U0(h,t){let e=h[0]+h[1]*256+h[2]*65536+t[0]*16777216+t[1]*4294967296+t[2]*1099511627776,s=h0.get(e);if(s)return s;let n=new Float32Array(9),r=n.subarray(0,3),a=n.subarray(3,6);l0(h,a);let o=n.subarray(6,9);l0(t,o);let l=o[2]<.5,c=l?12:4.5;if(a[2]=l?Math.sqrt(a[2]):1-Math.sqrt(1-a[2]),c0(a,o,r)<c){let d,u;l?(d=a[2],u=1):(d=0,u=a[2]);let p=.005;for(;u-d>p;){let b=a[2]=(d+u)/2;l===c0(a,o,r)<c?d=b:u=b}a[2]=l?u:d}return Bg(a,r),s=D.makeHexColor(Math.round(r[0]*255),Math.round(r[1]*255),Math.round(r[2]*255)),h0.set(e,s),s}function Iy({html:h,dir:t,className:e},s){let n=document.createDocumentFragment();if(typeof h=="string"){let r=document.createElement("p");r.dir=t||"auto";let a=h.split(/\r\n?|\n/);for(let o=0,l=a.length;o<l;++o){let c=a[o];r.append(document.createTextNode(c)),o<l-1&&r.append(document.createElement("br"))}n.append(r)}else vl.render({xfaHtml:h,div:n,intent:"richText"});n.firstElementChild.classList.add("richText",e),s.append(n)}function $0(h){let t=new Path2D;if(!h)return t;for(let e=0,s=h.length;e<s;)switch(h[e++]){case hh.moveTo:t.moveTo(h[e++],h[e++]);break;case hh.lineTo:t.lineTo(h[e++],h[e++]);break;case hh.curveTo:t.bezierCurveTo(h[e++],h[e++],h[e++],h[e++],h[e++],h[e++]);break;case hh.quadraticCurveTo:t.quadraticCurveTo(h[e++],h[e++],h[e++],h[e++]);break;case hh.closePath:t.closePath();break;default:Q(`Unrecognized drawing path operator: ${h[e-1]}`);break}return t}function Y0(h,t,e){for(let s of e)t.addEventListener(s,h[s].bind(h))}function d0(h){h.preventDefault()}function Mg(h){return h.cancelable?(se(h),!0):(h.stopPropagation(),!1)}function m0(h,t,e,s,n,r){h[t*4+0]=Math.min(h[t*4+0],e),h[t*4+1]=Math.min(h[t*4+1],s),h[t*4+2]=Math.max(h[t*4+2],n),h[t*4+3]=Math.max(h[t*4+3],r)}function fx(h,t,e,s,n){let r;h?(h<0&&(r=n[0],n[0]=n[2],n[2]=r),n[0]*=h,n[2]*=h,t<0&&(r=n[1],n[1]=n[3],n[3]=r),n[1]*=t,n[3]*=t):n.fill(0),n[0]+=e,n[1]+=s,n[2]+=e,n[3]+=s}function px(h){let t=h[0];if(h.length<2||t!=='"'&&t!=="'"||h.at(-1)!==t)return!1;let e=h.length-1;for(let s=1;s<e;s++){let n=h[s];if(n===t||y0.test(n)||n==="\\"&&(++s>=e||y0.test(h[s])))return!1}return!0}function v0(h){return px(h)?h:`"${h.replaceAll(/["\\\p{Cc}]/gu,e=>e==='"'||e==="\\"?`\\${e}`:`\\${e.codePointAt(0).toString(16)} `)}"`}function gx(h){if(h instanceof URL)return h;if(typeof h=="string"){if(Es){if(/^[a-z][a-z0-9\-+.]+:/i.test(h))return new URL(h);let e=process.getBuiltinModule("url");return new URL(e.pathToFileURL(h))}let t=URL.parse(h,window.location);if(t)return t}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function mx(h){if(Es&&typeof Buffer<"u"&&h instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(h instanceof Uint8Array&&h.byteLength===h.buffer.byteLength)return h;if(typeof h=="string")return ng(h);if(h instanceof ArrayBuffer||ArrayBuffer.isView(h)||typeof h=="object"&&!isNaN(h?.length))return new Uint8Array(h);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function af(h){if(typeof h!="string")return null;if(h.endsWith("/"))return h;throw new Error(`Invalid factory url: "${h}" must include trailing slash.`)}function w0(){}function Ke(h){if(h instanceof yi||h instanceof Kc||h instanceof qc||h instanceof Qo||h instanceof Rh)return h;switch(h instanceof Error||typeof h=="object"&&h!==null||rt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),h.name){case"AbortException":return new yi(h.message);case"InvalidPDFException":return new Kc(h.message);case"PasswordException":return new qc(h.message,h.code);case"ResponseException":return new Qo(h.message,h.status,h.missing);case"UnknownErrorException":return new Rh(h.message,h.details)}return new Rh(h.message,h.toString())}function Pg(h,t,e){return Math.round(e*h+(1-e)*t)}async function yx(h){let e=await process.getBuiltinModule("fs/promises").readFile(h);return new Uint8Array(e)}function Pv({src:h,srcPos:t=0,dest:e,width:s,height:n,nonBlackColor:r=4294967295,inverseDecode:a=!1}){let o=lt.isLittleEndian?4278190080:255,[l,c]=a?[r,o]:[o,r],d=s>>3,u=s&7,p=l^c,b=h.length;e=new Uint32Array(e.buffer);let y=0;for(let v=0;v<n;++v){for(let A=t+d;t<A;++t,y+=8){let x=h[t];e[y]=l^-(x>>7&1)&p,e[y+1]=l^-(x>>6&1)&p,e[y+2]=l^-(x>>5&1)&p,e[y+3]=l^-(x>>4&1)&p,e[y+4]=l^-(x>>3&1)&p,e[y+5]=l^-(x>>2&1)&p,e[y+6]=l^-(x>>1&1)&p,e[y+7]=l^-(x&1)&p}if(u===0)continue;let w=t<b?h[t++]:255;for(let A=0;A<u;++A,++y)e[y]=l^-(w>>7-A&1)&p}return{srcPos:t,destPos:y}}function vx({src:h,srcPos:t=0,dest:e,destPos:s=0,width:n,height:r}){let a=0,o=n*r*3,l=o>>2,c=new Uint32Array(h.buffer,t,l),d=lt.isLittleEndian?4278190080:255;if(lt.isLittleEndian){for(;a<l-2;a+=3,s+=4){let u=c[a],p=c[a+1],b=c[a+2];e[s]=u|d,e[s+1]=u>>>24|p<<8|d,e[s+2]=p>>>16|b<<16|d,e[s+3]=b>>>8|d}for(let u=a*4,p=t+o;u<p;u+=3)e[s++]=h[u]|h[u+1]<<8|h[u+2]<<16|d}else{for(;a<l-2;a+=3,s+=4){let u=c[a],p=c[a+1],b=c[a+2];e[s]=u|d,e[s+1]=u<<24|p>>>8|d,e[s+2]=p<<16|b>>>16|d,e[s+3]=b<<8|d}for(let u=a*4,p=t+o;u<p;u+=3)e[s++]=h[u]<<24|h[u+1]<<16|h[u+2]<<8|d}return{srcPos:t+o,destPos:s}}function Ax(){return lg.init()}function xx(){return lg.isReady}function Sx(){lg.loadMeshShader()}function Ex(h,t,e,s,n,r,a,o){return lg.draw(h,t,e,s,n,r,a,o)}function kf(h,t){if(!t)return;let e=t[2]-t[0],s=t[3]-t[1],n=new Path2D;n.rect(t[0],t[1],e,s),h.clip(n)}function Cx(h,t,e,s,n,r,a,o){let l=t.coords,c=t.colors,d=h.data,u=h.width*4,p;l[e*2+1]>l[s*2+1]&&(p=e,e=s,s=p,p=r,r=a,a=p),l[s*2+1]>l[n*2+1]&&(p=s,s=n,n=p,p=a,a=o,o=p),l[e*2+1]>l[s*2+1]&&(p=e,e=s,s=p,p=r,r=a,a=p);let b=(l[e*2]+t.offsetX)*t.scaleX,y=(l[e*2+1]+t.offsetY)*t.scaleY,v=(l[s*2]+t.offsetX)*t.scaleX,w=(l[s*2+1]+t.offsetY)*t.scaleY,A=(l[n*2]+t.offsetX)*t.scaleX,x=(l[n*2+1]+t.offsetY)*t.scaleY;if(y>=x)return;let S=c[r*4],E=c[r*4+1],C=c[r*4+2],_=c[a*4],k=c[a*4+1],P=c[a*4+2],I=c[o*4],F=c[o*4+1],B=c[o*4+2],H=Math.round(y),L=Math.round(x),X,ct,U,j,ne,re,Zs,rl;for(let _t=H;_t<=L;_t++){if(_t<w){let ae=_t<y?0:(y-_t)/(y-w);X=b-(b-v)*ae,ct=S-(S-_)*ae,U=E-(E-k)*ae,j=C-(C-P)*ae}else{let ae;_t>x?ae=1:w===x?ae=0:ae=(w-_t)/(w-x),X=v-(v-A)*ae,ct=_-(_-I)*ae,U=k-(k-F)*ae,j=P-(P-B)*ae}let Mt;_t<y?Mt=0:_t>x?Mt=1:Mt=(y-_t)/(y-x),ne=b-(b-A)*Mt,re=S-(S-I)*Mt,Zs=E-(E-F)*Mt,rl=C-(C-B)*Mt;let ha=Math.round(Math.min(X,ne)),vg=Math.round(Math.max(X,ne)),al=u*_t+ha*4;for(let ae=ha;ae<=vg;ae++)Mt=(X-ae)/(X-ne),Mt<0?Mt=0:Mt>1&&(Mt=1),d[al++]=ct-(ct-re)*Mt|0,d[al++]=U-(U-Zs)*Mt|0,d[al++]=j-(j-rl)*Mt|0,d[al++]=255}}function _x(h){switch(h[0]){case"RadialAxial":return new Nm(h);case"Mesh":return new Fm(h);case"Dummy":return new Bm}throw new Error(`Unknown IR type: ${h[0]}`)}function S0(h,t){if(h._removeMirroring)throw new Error("Context is already forwarding operations.");let e=new Map;for(let s of["save","restore","rotate","scale","translate","transform","setTransform","resetTransform","clip","moveTo","lineTo","bezierCurveTo","quadraticCurveTo","arc","arcTo","ellipse","rect","roundRect","closePath","beginPath"]){let n=h[s];typeof n!="function"||typeof t[s]!="function"||(e.set(s,n),h[s]=function(...r){return t[s](...r),n.apply(this,r)})}h._removeMirroring=()=>{for(let[s,n]of e)h[s]=n;delete h._removeMirroring}}function lf(h,t,e,s,n,r,a,o,l,c){let[d,u,p,b,y,v]=Et(h);if(u===0&&p===0){let x=a*d+y,S=Math.round(x),E=o*b+v,C=Math.round(E),_=(a+l)*d+y,k=Math.abs(Math.round(_)-S)||1,P=(o+c)*b+v,I=Math.abs(Math.round(P)-C)||1;return h.setTransform(Math.sign(d),0,0,Math.sign(b),S,C),h.drawImage(t,e,s,n,r,0,0,k,I),h.setTransform(d,u,p,b,y,v),[k,I]}if(d===0&&b===0){let x=o*p+y,S=Math.round(x),E=a*u+v,C=Math.round(E),_=(o+c)*p+y,k=Math.abs(Math.round(_)-S)||1,P=(a+l)*u+v,I=Math.abs(Math.round(P)-C)||1;return h.setTransform(0,Math.sign(u),Math.sign(p),0,S,C),h.drawImage(t,e,s,n,r,0,0,I,k),h.setTransform(d,u,p,b,y,v),[I,k]}h.drawImage(t,e,s,n,r,a,o,l,c);let w=Math.hypot(d,u),A=Math.hypot(p,b);return[w*l,A*c]}function E0(h,t){let{width:e,height:s,kind:n}=t,r=s%ns,a=(s-r)/ns,o=r===0?a:a+1,l=h.createImageData(e,ns),c=0,d=t.data,u=l.data,p;if(n===Oh.GRAYSCALE_1BPP)for(p=0;p<o;p++)({srcPos:c}=Pv({src:d,srcPos:c,dest:u,width:e,height:p<a?ns:r})),h.putImageData(l,0,p*ns);else if(n===Oh.RGBA_32BPP){let b=0,y=e*ns*4;for(p=0;p<a;p++)u.set(d.subarray(c,c+y)),c+=y,h.putImageData(l,0,b),b+=ns;p<o&&(y=e*r*4,u.set(d.subarray(c,c+y)),h.putImageData(l,0,b))}else if(n===Oh.RGB_24BPP)for(p=0;p<o;p++)({srcPos:c}=vx({src:d,srcPos:c,dest:new Uint32Array(u.buffer),width:e,height:p<a?ns:r})),h.putImageData(l,0,p*ns);else throw new Error(`bad image kind: ${n}`)}function C0(h,t){if(t.bitmap){h.drawImage(t.bitmap,0,0);return}let{width:e,height:s}=t,n=s%ns,r=(s-n)/ns,a=n===0?r:r+1,o=h.createImageData(e,ns),l=0,c=t.data,d=o.data;for(let u=0;u<a;u++)({srcPos:l}=Pv({src:c,srcPos:l,dest:d,width:e,height:u<r?ns:n,nonBlackColor:0})),h.putImageData(o,0,u*ns)}function da(h,t){let e=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(let s of e)h[s]!==void 0&&(t[s]=h[s]);h.setLineDash!==void 0&&(t.setLineDash(h.getLineDash()),t.lineDashOffset=h.lineDashOffset)}function cf(h){h.strokeStyle=h.fillStyle="#000000",h.fillRule="nonzero",h.globalAlpha=1,h.lineWidth=1,h.lineCap="butt",h.lineJoin="miter",h.miterLimit=10,h.globalCompositeOperation="source-over",h.font="10px sans-serif",h.setLineDash!==void 0&&(h.setLineDash([]),h.lineDashOffset=0);let{filter:t}=h;t!=="none"&&t!==""&&(h.filter="none")}function _0(h,t){if(t)return!0;D.singularValueDecompose2dScale(h,Cs);let e=Math.fround(vi.pixelRatio*Yn.PDF_TO_CSS_UNITS);return Cs[0]<=e&&Cs[1]<=e}function Lx(h){let t=!0,e=s("filename\\*","i").exec(h);if(e){e=e[1];let d=o(e);return d=unescape(d),d=l(d),d=c(d),r(d)}if(e=a(h),e){let d=c(e);return r(d)}if(e=s("filename","i").exec(h),e){e=e[1];let d=o(e);return d=c(d),r(d)}function s(d,u){return new RegExp("(?:^|;)\\s*"+d+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',u)}function n(d,u){if(d){if(!/^[\x00-\xFF]+$/.test(u))return u;try{let p=new TextDecoder(d,{fatal:!0}),b=ng(u);u=p.decode(b),t=!1}catch{}}return u}function r(d){return t&&/[\x80-\xff]/.test(d)&&(d=n("utf-8",d),t&&(d=n("iso-8859-1",d))),d}function a(d){let u=[],p,b=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(p=b.exec(d))!==null;){let[,v,w,A]=p;if(v=parseInt(v,10),v in u){if(v===0)break;continue}u[v]=[w,A]}let y=[];for(let v=0;v<u.length&&v in u;++v){let[w,A]=u[v];A=o(A),w&&(A=unescape(A),v===0&&(A=l(A))),y.push(A)}return y.join("")}function o(d){if(d.startsWith('"')){let u=d.slice(1).split('\\"');for(let p=0;p<u.length;++p){let b=u[p].indexOf('"');b!==-1&&(u[p]=u[p].slice(0,b),u.length=p+1),u[p]=u[p].replaceAll(/\\(.)/g,"$1")}d=u.join('"')}return d}function l(d){let u=d.indexOf("'");if(u===-1)return d;let p=d.slice(0,u),y=d.slice(u+1).replace(/^[^']*'/,"");return n(p,y)}function c(d){return!d.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(d)?d:d.replaceAll(/=\?([\w-]*)\?([QB])\?((?:[^?]|\?(?!=))*)\?=/gi,function(u,p,b,y){if(b==="q"||b==="Q")return y=y.replaceAll("_"," "),y=y.replaceAll(/=([0-9a-f]{2})/gi,function(v,w){return String.fromCharCode(parseInt(w,16))}),n(p,y);try{y=atob(y)}catch{}return n(p,y)})}return""}function Lv(h,t){let e=new Headers;if(!h||!t||typeof t!="object")return e;for(let s in t){let n=t[s];n!==void 0&&e.append(s,n)}return e}function Ox(h){let t=h.length;for(;t>0&&h[t-1]!==" "&&/\s/.test(h[t-1]);)t--;return h.slice(0,t)}function cg(h){return URL.parse(h)?.origin??null}function Ov({responseHeaders:h,isHttp:t,rangeChunkSize:e,disableRange:s}){let n={contentLength:0,isRangeSupported:!1},r=parseInt(h.get("Content-Length"),10);return!Number.isInteger(r)||(n.contentLength=r,r<=2*e)||s||!t||h.get("Accept-Ranges")!=="bytes"||(h.get("Content-Encoding")||"identity")==="identity"&&(n.isRangeSupported=!0),n}function Rv(h){let t=h.get("Content-Disposition");if(t){let e=Lx(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch{}if(og(e))return e}return null}function hg(h,t){return new Qo(`Unexpected server response (${h}) while retrieving PDF "${t.href}".`,h,h===404||h===0&&t.protocol==="file:")}function Nv(h,t){if(h!==t)throw new Error(`Expected range response-origin "${h}" to match "${t}".`)}function Fv(h,t,e,s){return fetch(h,{method:"GET",headers:t,signal:s.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"})}function Bv(h,t){if(h!==200&&h!==206)throw hg(h,t)}function dg(h){if(h instanceof Uint8Array)return h.buffer;if(h instanceof ArrayBuffer)return h;throw new Error(`getArrayBuffer - unexpected data: ${h}`)}function k0(h){return h instanceof Uint8Array&&h.byteLength===h.buffer.byteLength?h.buffer:new Uint8Array(h).buffer}function ug(){for(let h of this._requests)h.resolve({value:void 0,done:!0});this._requests.length=0}function Rx(h){return typeof h!="string"?h:ng(h).buffer}function Yv(h,t=null){let e=process.getBuiltinModule("fs"),{Readable:s}=process.getBuiltinModule("stream"),n=e.createReadStream(h,t);return s.toWeb(n)}function Nx(h){return Nh(h)?Vm:Es?eb:Qm}function Zv(h={}){let t=new fb,{docId:e}=t,s=h.url?gx(h.url):null,n=h.data?mx(h.data):null,r=h.httpHeaders||null,a=h.withCredentials===!0,o=h.password??null,l=h.range instanceof qh?h.range:null,c=Number.isInteger(h.rangeChunkSize)&&h.rangeChunkSize>0?h.rangeChunkSize:2**16,d=h.worker instanceof ih?h.worker:null,u=h.verbosity,p=typeof h.docBaseUrl=="string"&&!Yu(h.docBaseUrl)?h.docBaseUrl:null,b=af(h.cMapUrl),y=h.cMapPacked!==!1,v=af(h.iccUrl),w=af(h.standardFontDataUrl),A=af(h.wasmUrl),x=h.stopAtErrors!==!0,S=Number.isInteger(h.maxImageSize)&&h.maxImageSize>-1?h.maxImageSize:-1,E=typeof h.isOffscreenCanvasSupported=="boolean"?h.isOffscreenCanvasSupported:!Es,C=typeof h.isImageDecoderSupported=="boolean"?h.isImageDecoderSupported:!Es,_=Number.isInteger(h.canvasMaxAreaInBytes)?h.canvasMaxAreaInBytes:-1,k=typeof h.disableFontFace=="boolean"?h.disableFontFace:Es,P=h.fontExtraProperties===!0,I=h.enableXfa===!0,F=h.ownerDocument||globalThis.document,B=h.disableRange===!0,H=h.disableStream===!0,L=h.disableAutoFetch===!0,X=h.pdfBug===!0,ct=h.CanvasFactory||(Es?Lm:Tm),U=h.FilterFactory||(Es?Im:km),j=h.BinaryDataFactory||(Es?Om:cp),ne=h.enableHWA===!0,Zs=h.enableWebGPU===!0?Ax():Promise.resolve(!1),rl=h.useWasm!==!1,_t=h.pagesMapper||new lb,Mt=typeof h.useSystemFonts=="boolean"?h.useSystemFonts:!Es&&!k,ha=typeof h.useWorkerFetch=="boolean"?h.useWorkerFetch:!!(j===cp&&b&&y&&w&&A&&Nh(b,document.baseURI)&&Nh(w,document.baseURI)&&Nh(A,document.baseURI)),vg=null;ix(u);let al={canvasFactory:new ct({ownerDocument:F,enableHWA:ne}),filterFactory:new U({docId:e,ownerDocument:F}),binaryDataFactory:ha?null:new j({cMapUrl:b,standardFontDataUrl:w,wasmUrl:A})};d||(d=ih.create({verbosity:u,port:Ys.workerPort}),t._worker=d);let ae={docId:e,apiVersion:"6.3.289",data:n,password:o,disableAutoFetch:L,rangeChunkSize:c,docBaseUrl:p,enableXfa:I,evaluatorOptions:{maxImageSize:S,disableFontFace:k,ignoreErrors:x,isOffscreenCanvasSupported:E,isImageDecoderSupported:C,canvasMaxAreaInBytes:_,fontExtraProperties:P,useSystemFonts:Mt,useWasm:rl,useWorkerFetch:ha,cMapUrl:b,cMapPacked:y,iccUrl:v,standardFontDataUrl:w,wasmUrl:A,hasGPU:!1}},hA={ownerDocument:F,pdfBug:X,styleElement:vg,enableHWA:ne,loadingParams:{disableAutoFetch:L,enableXfa:I}};return Promise.all([d.promise,Zs]).then(function([,dA]){if(d.destroyed)throw new Error("Worker was destroyed");ae.evaluatorOptions.hasGPU=dA;let uA=d.messageHandler.sendWithPromise("GetDocRequest",ae,n?[n.buffer]:null),wg;if(!n)if(l)wg=new Ym({pdfDataRangeTransport:l,disableRange:B,disableStream:H});else if(s){let Ag=Nx(s);wg=new Ag({url:s,httpHeaders:r,withCredentials:a,rangeChunkSize:c,disableRange:B,disableStream:H})}else throw new Error("getDocument - expected either `data`, `range`, or `url` parameter.");return uA.then(Ag=>{if(d.destroyed)throw new Error("Worker was destroyed");let Vy=new xa(e,Ag,d.port),fA=new mb(Vy,t,wg,hA,al,_t);if(t._transport=fA,t.destroyed)throw new Error("Loading aborted");Vy.send("Ready",null)})}).catch(t._capability.reject).finally(t._setupCapability.resolve),t}function I0(h){return Math.floor(Ct(h,0,1)*255).toString(16).padStart(2,"0")}function dh(h){return Ct(h,0,1)*255}function Cw(h){return{bbox:h.box,root:{viewBox:"0 0 1 1"},rootClass:{highlight:!0,free:h.isFree},path:{d:h.toSVGPath()}}}function _w(h,t){let{focusOutline:e}=h;return{bbox:N._rotateBox(e.box,t),root:{"data-main-rotation":t},rootClass:{highlightOutline:!0,free:h.isFree},path:{d:e.toSVGPath()}}}function Ux(h,t){return h===t?0:h.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function uf(h){return h?h.nodeType===Node.ELEMENT_NODE?h.closest(".textLayer"):h.parentElement?.closest(".textLayer")||null:null}function $x(h,t,e,s){if(h===e)return t<=s;let n=h.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING?!0:n&Node.DOCUMENT_POSITION_PRECEDING?!1:null}function L0(h,t,e){if(h.nodeType!==Node.ELEMENT_NODE||!h.classList.contains("textLayer")||t!==h.childNodes.length)return{container:h,offset:t};let s=h.lastChild;return s?.nodeType===Node.ELEMENT_NODE&&s.classList.contains("endOfContent")&&(s=s.previousSibling),!s||!e.contains(s)?null:s.nodeType===Node.TEXT_NODE?{container:s,offset:s.textContent.length}:{container:s,offset:s.childNodes.length}}function ff(h){return`${(h*100).toFixed(2)}%`}var Gx,Es,Vn,Aa,Ig,We,Ss,jn,gl,Yc,K,it,O0,oe,Oh,Pt,hl,Xu,mi,hh,R0,sg,il,qc,Rh,Kc,Qo,Og,yi,lt,Wn,pf,Rg,D,Tg,o0,nl,rg,sp,F0,Uh,$h,cx,hx,ad,Ng,vl,ba,Yn,Qc,sr,ip,od,Ko,vi,np,Fg,rp,h0,ir,nr,Ls,Os,ld,rr,Al,xl,cd,Mp,G0,Te,j0,V0,dl,fh,on,Hg,hd,Sa,Ci,Kn,W0,X0,$g,Ug,ux,kg,Ea,Ca,Sl,_a,pt,Ie,Pp,Gg,El,dd,Le,Cl,gf,Ly,jg,qt,ar,ud,Bt,Vg,nh,q0,K0,Qe,Jo,Dp,Wg,_l,ls,Tl,Dt,zt,kl,Ml,Pl,Oe,Dl,Rs,fe,or,lr,cr,hr,_i,Ns,Ta,fd,pd,Il,gd,Ti,dr,Ll,ur,ki,Ip,cn,Ol,md,fr,ka,Rl,pr,bd,Jt,gt,hn,gr,mr,yd,Nl,vd,br,Mi,dn,wd,Ad,Fs,R,mf,Xg,Q0,J0,ph,Z0,tv,ev,Yg,sv,iv,nv,rv,ze,rn,av,ov,qg,lv,gh,Kg,bl,oa,pe,Pi,si,Fl,Di,cs,Bl,Ii,Ze,un,Ma,Li,yr,bi,mh,bf,He,ap,ve,Bs,Pa,St,xd,vr,zs,wr,Ar,Da,Sd,Qg,ml,u0,zl,xr,Ed,Cd,_d,Td,kd,Ia,Sr,fn,La,Oi,pn,Oa,gn,Er,Rt,cv,Jg,Zg,tm,yf,hv,dv,em,Gh,Ra,ii,It,ut,mn,Hl,Cr,Md,we,Na,bn,Hs,_r,Pd,Fa,hs,Dd,Ba,yn,Ri,Ul,$l,Us,Tr,Id,Lp,W,sm,Ld,im,vf,uv,fv,nm,wf,rm,pv,gv,mv,am,bv,om,lm,yv,vv,wv,cm,bh,q,wt,hm,f0,Ds,xi,jh,Vh,za,Ha,vn,Ae,Op,Av,Wh,Od,op,cl,p0,g0,dm,Gl,kr,um,b0,wn,ht,kt,Ua,$a,Ga,Re,Rd,pm,fm,ts,es,ja,ni,jl,Mr,Pr,mt,gm,bt,Vt,ri,Vl,Wl,Oy,Xh,Is,Va,Wa,Xa,Ya,qa,Nd,zh,mm,y0,Xl,ai,Rp,xv,bm,yt,ym,Af,xf,De,as,Ee,Jc,Fd,Yl,ql,Sf,vm,Ka,Ni,Qa,yh,wm,oi,Kt,ft,ti,Ef,Cf,vh,xm,Am,Sm,Kl,Em,Cm,bx,Sv,An,Np,_m,of,Qt,Ql,Qs,Ev,Cv,_v,_f,xa,Fp,lp,cp,Bd,hp,Tm,dp,Ja,Jl,xn,Fi,ge,Za,Dr,O,ue,wh,Si,Tf,ua,Tv,Mm,fa,Ah,xh,Pm,Sh,kv,Dm,Mv,km,Im,Lm,Om,wx,Bp,Sn,to,Zl,zp,Dv,Rm,lg,Ce,Yh,Nm,Fm,Bm,A0,Hp,Fh,Tx,kx,Mx,x0,ns,Cs,up,Px,Dx,Ix,T0,Up,ds,Ir,eo,so,io,no,ro,ao,oo,Bi,$,zm,Hm,Um,$m,Gm,qe,Pe,jm,Iv,Mf,ya,wl,zd,Hd,Zc,th,eh,Vm,Wm,Xm,$p,zv,Ym,Ud,qm,$d,Km,Dg,M0,zi,rh,Hv,Uv,Qm,Gd,Zi,$v,Gv,jv,Vv,Jm,jd,Qn,Wv,Xv,tb,Zm,eb,sb,ib,Vd,Wd,Ys,tc,Xd,nb,pa,Yd,qd,ec,lo,rb,Lr,ot,sc,ic,Kd,Qd,ob,Ry,ab,Ht,$s,le,co,Hi,ke,Eh,Pf,cb,hb,lb,ul,P0,Gs,fp,Fx,D0,Or,$e,Jd,Zd,nc,ho,En,tu,eu,uo,su,rc,Rr,ac,iu,oc,fo,nu,ru,lc,po,au,cc,hc,Jn,qv,Kv,db,Ts,Df,ub,Qv,Jv,ye,sh,Bx,Gp,jp,fb,dc,go,qh,pb,Cn,mo,bo,Ch,Ny,gb,Nr,li,_n,yo,Vp,vo,wo,Xe,If,tw,ew,_h,uc,Lf,jt,ih,us,Ao,Tn,ci,xo,fc,kn,Ks,fl,Of,mb,bb,Fr,So,va,yb,sw,iw,fs,Eo,pc,ce,ou,gc,Mn,lu,Br,hi,cu,vt,vb,wb,Ab,ga,nw,er,Je,Kh,ps,mc,Co,Pn,hu,wa,pp,gp,xb,Zo,zx,tl,Hx,Bh,_o,bc,js,du,Sb,Fy,Ot,Eb,_s,ma,rw,aw,Qh,Cb,qn,_b,Tb,kb,Mb,Pb,Db,uu,Ib,Jh,gs,zr,Wp,Xp,yc,vc,Wt,Ui,Hr,To,wc,Ac,$i,ms,Dn,In,Xt,Ln,Ur,fu,On,xc,ko,$r,me,Gr,et,Rf,Ob,Rb,Nb,Nf,Fb,ow,lw,cw,hw,Ff,Bf,Bb,Lb,mp,pu,zb,gu,Hb,mu,Ub,bu,bp,$b,Gb,yu,Mo,vu,jb,Zh,yp,Vb,Wb,Xb,vp,wu,Au,qb,Yb,Sc,Po,Rn,sl,dw,Kb,wp,jr,Do,Ec,Nn,Cc,Io,Ne,xu,Ji,zf,Hf,By,Ap,hf,bs,Su,Lo,ys,ie,uw,fw,pw,Uf,Xn,$f,Gf,gw,Jb,mw,Tt,Qb,Oo,td,_c,Tc,Zt,Ro,No,kc,Y,Zb,ty,ey,sy,Th,iy,ny,ry,kh,bw,jf,Mh,pl,J,ed,N,vs,Vs,Mc,Pc,di,st,Fo,Bo,Eu,Cu,Dc,Ic,Gi,_u,Yp,qp,he,Ph,yw,vw,ww,Aw,xw,Sw,ln,xp,Lc,ji,Fn,Tu,ui,ku,Ut,Kp,Ew,Sp,Mu,Pu,Du,Vr,fi,Ye,Tw,Vf,kw,Mw,ay,sd,Iu,Lu,Oc,id,nd,ws,Ou,oy,Qp,Jp,ly,cy,Rc,Ru,Nu,Fu,Bu,Nc,ks,hy,Pw,Wf,Dw,Ue,Ep,Vi,Wr,te,xe,zo,Fc,Se,ee,Ws,Ho,Uo,$o,Ms,Xf,Yf,uy,dy,Ge,zu,Hu,As,Wi,Xi,Bc,zc,Go,_e,an,Iw,Lw,Ow,el,Cp,Zp,Rw,yl,fy,rd,df,uh,jo,dt,py,pi,Nw,Fw,gy,qf,Bw,zw,Hw,my,by,Uw,qs,yy,vy,Xr,Yi,Yr,Vo,os,wy,Lt,be,qr,Bn,Kr,Hc,zn,Wo,qi,xs,Uc,at,Ih,Lh,Kf,Qf,Jf,Ay,Zf,$w,Dh,Xo,$c,Qr,Jr,Hn,ss,Zr,Gc,jc,gi,Un,is,$n,ta,Vc,z,ea,At,xy,Gw,Ei,Sy,Ey,tp,ei,_p,je,Ve,Xs,Uu,$u,Yo,qo,Gu,tg,sa,ia,na,ra,Gn,Fe,Cy,_y,jw,ep,Vw,tn,Ty,Ww,ky,V,Tp,Wc,ju,Vu,Xc,Ki,Qi,Wu,eg,Xw,Hh,kp,qw=yA(()=>{Gx={},Es=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Vn=[1/0,1/0,-1/0,-1/0],Aa=new Float32Array(Vn),Ig=[.001,0,0,.001,0,0],We="http://www.w3.org/2000/svg",Ss={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},jn={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},gl="pdfjs_internal_id_",Yc="pdfjs_internal_editor_",K={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},it={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,INK_COLOR_AND_OPACITY:24,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},O0={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},oe={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Oh={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Pt={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26,RICHMEDIA:27},hl={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Xu={ERRORS:0,WARNINGS:1,INFOS:5},mi={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},hh={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},R0={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},sg=Xu.WARNINGS;il=(function(){function t(e,s){this.message=e,this.name=s}return t.prototype=new Error,t.constructor=t,t})(),qc=class extends il{constructor(t,e){super(t,"PasswordException"),this.code=e}},Rh=class extends il{constructor(t,e){super(t,"UnknownErrorException"),this.details=e}},Kc=class extends il{constructor(t){super(t,"InvalidPDFException")}},Qo=class extends il{constructor(t,e,s){super(t,"ResponseException"),this.status=e,this.missing=s}},Og=class extends il{constructor(t){super(t,"FormatError")}},yi=class extends il{constructor(t){super(t,"AbortException")}};lt=class{static get isLittleEndian(){let t=new Uint8Array(4);t[0]=1;let e=new Uint32Array(t.buffer,0,1);return G(this,"isLittleEndian",e[0]===1)}static get isOffscreenCanvasSupported(){return G(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return G(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get isFloat16ArraySupported(){return G(this,"isFloat16ArraySupported",typeof Float16Array<"u")}static get isSanitizerSupported(){return G(this,"isSanitizerSupported",typeof Sanitizer<"u")}static get platform(){let{platform:t,userAgent:e}=navigator;return G(this,"platform",{isAndroid:e.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:e.includes("Firefox")})}static get isCanvasFilterSupported(){let t;return this.isOffscreenCanvasSupported?t=new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"&&(t=document.createElement("canvas").getContext("2d")),G(this,"isCanvasFilterSupported",t?.filter!==void 0)}static get isAlphaColorInputSupported(){if(typeof document>"u")return G(this,"isAlphaColorInputSupported",!1);let t=document.createElement("input");return t.type="color",t.setAttribute("alpha",""),t.value="#ff000080",G(this,"isAlphaColorInputSupported",t.value!=="#ff0000")}static get isBackdropFilterSupported(){return G(this,"isBackdropFilterSupported",typeof CSS<"u"&&CSS.supports("backdrop-filter","blur(1px)"))}},D=class{static get hexNums(){return G(this,"hexNums",Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")))}static makeHexColor(t,e,s){return`#${this.hexNums[t]}${this.hexNums[e]}${this.hexNums[s]}`}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static multiplyByDOMMatrix(t,e){return[t[0]*e.a+t[2]*e.b,t[1]*e.a+t[3]*e.b,t[0]*e.c+t[2]*e.d,t[1]*e.c+t[3]*e.d,t[0]*e.e+t[2]*e.f+t[4],t[1]*e.e+t[3]*e.f+t[5]]}static applyTransform(t,e,s=0){let n=t[s],r=t[s+1];t[s]=n*e[0]+r*e[2]+e[4],t[s+1]=n*e[1]+r*e[3]+e[5]}static applyTransformToBezier(t,e,s=0){let n=e[0],r=e[1],a=e[2],o=e[3],l=e[4],c=e[5];for(let d=0;d<6;d+=2){let u=t[s+d],p=t[s+d+1];t[s+d]=u*n+p*a+l,t[s+d+1]=u*r+p*o+c}}static applyInverseTransform(t,e){let s=t[0],n=t[1],r=e[0]*e[3]-e[1]*e[2];t[0]=(s*e[3]-n*e[2]+e[2]*e[5]-e[4]*e[3])/r,t[1]=(-s*e[1]+n*e[0]+e[4]*e[1]-e[5]*e[0])/r}static axialAlignedBoundingBox(t,e,s){let n=e[0],r=e[1],a=e[2],o=e[3],l=e[4],c=e[5],d=t[0],u=t[1],p=t[2],b=t[3],y=n*d+l,v=y,w=n*p+l,A=w,x=o*u+c,S=x,E=o*b+c,C=E;if(r!==0||a!==0){let _=r*d,k=r*p,P=a*u,I=a*b;y+=P,A+=P,w+=I,v+=I,x+=_,C+=_,E+=k,S+=k}s[0]=Math.min(s[0],y,w,v,A),s[1]=Math.min(s[1],x,E,S,C),s[2]=Math.max(s[2],y,w,v,A),s[3]=Math.max(s[3],x,E,S,C)}static inverseTransform(t){let e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t,e){let s=t[0],n=t[1],r=t[2],a=t[3],o=s**2+n**2,l=s*r+n*a,c=r**2+a**2,d=(o+c)/2,u=Math.sqrt(d**2-(o*c-l**2));e[0]=Math.sqrt(d+u||1),e[1]=Math.sqrt(d-u||1)}static normalizeRect(t){let e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}static intersect(t,e){let s=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),n=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(s>n)return null;let r=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return r>a?null:[s,r,n,a]}static pointBoundingBox(t,e,s){s[0]=Math.min(s[0],t),s[1]=Math.min(s[1],e),s[2]=Math.max(s[2],t),s[3]=Math.max(s[3],e)}static rectBoundingBox(t,e,s,n,r){r[0]=Math.min(r[0],t,s),r[1]=Math.min(r[1],e,n),r[2]=Math.max(r[2],t,s),r[3]=Math.max(r[3],e,n)}static bezierBoundingBox(t,e,s,n,r,a,o,l,c){c[0]=Math.min(c[0],t,o),c[1]=Math.min(c[1],e,l),c[2]=Math.max(c[2],t,o),c[3]=Math.max(c[3],e,l),m(this,Wn,Rg).call(this,t,s,r,o,e,n,a,l,3*(-t+3*(s-r)+o),6*(t-2*s+r),3*(s-t),c),m(this,Wn,Rg).call(this,t,s,r,o,e,n,a,l,3*(-e+3*(n-a)+l),6*(e-2*n+a),3*(n-e),c)}};Wn=new WeakSet,pf=function(t,e,s,n,r,a,o,l,c,d){if(c<=0||c>=1)return;let u=1-c,p=c*c,b=p*c,y=u*(u*(u*t+3*c*e)+3*p*s)+b*n,v=u*(u*(u*r+3*c*a)+3*p*o)+b*l;d[0]=Math.min(d[0],y),d[1]=Math.min(d[1],v),d[2]=Math.max(d[2],y),d[3]=Math.max(d[3],v)},Rg=function(t,e,s,n,r,a,o,l,c,d,u,p){if(Math.abs(c)<1e-12){Math.abs(d)>=1e-12&&m(this,Wn,pf).call(this,t,e,s,n,r,a,o,l,-u/d,p);return}let b=d**2-4*u*c;if(b<0)return;let y=Math.sqrt(b),v=2*c;m(this,Wn,pf).call(this,t,e,s,n,r,a,o,l,(-d+y)/v,p),m(this,Wn,pf).call(this,t,e,s,n,r,a,o,l,(-d-y)/v,p)},g(D,Wn);Tg=null,o0=null;nl=()=>[],rg=()=>new Map,sp=()=>Object.create(null),F0=()=>new Set;typeof Iterator.prototype.join!="function"&&(Iterator.prototype.join=function(h){return[...this].join(h)});Uh=class h{constructor({viewBox:t,userUnit:e,scale:s,rotation:n,offsetX:r=0,offsetY:a=0,dontFlip:o=!1}){this.viewBox=t,this.userUnit=e,this.scale=s,this.rotation=n,this.offsetX=r,this.offsetY=a,s*=e;let l=(t[2]+t[0])/2,c=(t[3]+t[1])/2,d,u,p,b;switch(n%=360,n<0&&(n+=360),n){case 180:d=-1,u=0,p=0,b=1;break;case 90:d=0,u=1,p=1,b=0;break;case 270:d=0,u=-1,p=-1,b=0;break;case 0:d=1,u=0,p=0,b=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(p=-p,b=-b);let y,v,w,A;d===0?(y=Math.abs(c-t[1])*s+r,v=Math.abs(l-t[0])*s+a,w=(t[3]-t[1])*s,A=(t[2]-t[0])*s):(y=Math.abs(l-t[0])*s+r,v=Math.abs(c-t[1])*s+a,w=(t[2]-t[0])*s,A=(t[3]-t[1])*s),this.transform=[d*s,u*s,p*s,b*s,y-d*s*l-p*s*c,v-u*s*l-b*s*c],this.width=w,this.height=A}get rawDims(){let t=this.viewBox;return G(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:e=this.rotation,offsetX:s=this.offsetX,offsetY:n=this.offsetY,dontFlip:r=!1}={}){return new h({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:e,offsetX:s,offsetY:n,dontFlip:r})}convertToViewportPoint(t,e){let s=[t,e];return D.applyTransform(s,this.transform),s}convertToPdfPoint(t,e){let s=[t,e];return D.applyInverseTransform(s,this.transform),s}},$h=class h{static textContent(t){let e=[],s={items:e,styles:Object.create(null)};function n(r){if(!r)return;let a=null,o=r.name;if(o==="#text")a=r.value;else if(h.shouldBuildText(o))r?.attributes?.textContent?a=r.attributes.textContent:r.value&&(a=r.value);else return;if(a!==null&&e.push({str:a}),!!r.children)for(let l of r.children)n(l)}return n(t),s}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}},cx=/url\(|image-set\(/i,hx=/^on/i,vl=class{static get _allowedHtmlElements(){return G(this,"_allowedHtmlElements",new Set(["a","b","br","button","div","i","img","input","label","li","ol","option","p","select","span","sub","sup","textarea","ul"]))}static get _allowedSvgElements(){return G(this,"_allowedSvgElements",new Set(["ellipse","line","path","rect","svg"]))}static get _allowedRichTextElements(){return G(this,"_allowedRichTextElements",new Set(["a","b","br","div","i","li","ol","p","span","sub","sup","ul"]))}static get _allowedRichTextAttributes(){return G(this,"_allowedRichTextAttributes",new Set(["class","dir","style"]))}static get _allowedRichTextStyles(){return G(this,"_allowedRichTextStyles",new Set(["color","font","fontFamily","fontSize","fontStretch","fontStyle","fontWeight","kerningMode","letterSpacing","lineHeight","margin","marginBottom","marginLeft","marginRight","marginTop","orphans","paddingLeft","paddingRight","breakAfter","breakBefore","breakInside","tabInterval","tabStop","textAlign","textDecoration","textIndent","transform","verticalAlign","widows"]))}static setupStorage(t,e,s,n,r){let a=n.getValue(e,{value:null});switch(s.name){case"textarea":if(a.value!==null&&(t.textContent=a.value),r==="print")break;t.addEventListener("input",o=>{n.setValue(e,{value:o.target.value})});break;case"input":if(s.attributes.type==="radio"||s.attributes.type==="checkbox"){if(a.value===s.attributes.xfaOn?t.setAttribute("checked",!0):a.value===s.attributes.xfaOff&&t.removeAttribute("checked"),r==="print")break;t.addEventListener("change",o=>{n.setValue(e,{value:o.target.checked?o.target.getAttribute("xfaOn"):o.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&t.setAttribute("value",a.value),r==="print")break;t.addEventListener("input",o=>{n.setValue(e,{value:o.target.value})})}break;case"select":if(a.value!==null){t.setAttribute("value",a.value);for(let o of s.children)o.attributes.value===a.value?o.attributes.selected=!0:Object.hasOwn(o.attributes,"selected")&&delete o.attributes.selected}t.addEventListener("input",o=>{let l=o.target.options,c=l.selectedIndex===-1?"":l[l.selectedIndex].value;n.setValue(e,{value:c})});break}}static setAttributes({html:t,element:e,storage:s=null,intent:n,linkService:r}){let{attributes:a}=e,o=t instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${n}`);for(let[l,c]of Object.entries(a))if(c!=null&&!hx.test(l)&&!(n==="richText"&&!this._allowedRichTextAttributes.has(l)))switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":if(n==="richText"){let d=this._allowedRichTextStyles;for(let[u,p]of Object.entries(c))d.has(u)&&!cx.test(p)&&(t.style[u]=p)}else Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!o||l!=="href"&&l!=="newWindow")&&t.setAttribute(l,c)}o&&r?.addLinkAttributes(t,a.href,a.newWindow),s&&a.dataId&&this.setupStorage(t,a.dataId,e,s)}static render(t){let e=t.annotationStorage,s=t.linkService,n=t.xfaHtml,r=t.intent||"display",a=m(this,ad,Ng).call(this,n.name,n.attributes?.xmlns,r)??document.createElement("div");n.attributes&&this.setAttributes({html:a,element:n,intent:r,linkService:s});let o=r!=="richText",l=t.div;if(l.append(a),t.viewport){let u=`matrix(${t.viewport.transform.join(",")})`;l.style.transform=u}o&&l.setAttribute("class","xfaLayer xfaFont");let c=[];if(n.children.length===0){if(n.value){let u=document.createTextNode(n.value);a.append(u),o&&$h.shouldBuildText(n.name)&&c.push(u)}return{textDivs:c}}let d=[[n,-1,a]];for(;d.length>0;){let[u,p,b]=d.at(-1);if(p+1===u.children.length){d.pop();continue}let y=u.children[++d.at(-1)[1]];if(y===null)continue;let{name:v}=y;if(v==="#text"){let A=document.createTextNode(y.value);c.push(A),b.append(A);continue}let w=m(this,ad,Ng).call(this,v,y.attributes?.xmlns,r);if(w){if(b.append(w),y.attributes&&this.setAttributes({html:w,element:y,storage:e,intent:r,linkService:s}),y.children?.length>0)d.push([y,-1,w]);else if(y.value){let A=document.createTextNode(y.value);o&&$h.shouldBuildText(v)&&c.push(A),w.append(A)}}}for(let u of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))u.setAttribute("readOnly",!0);return{textDivs:c}}static update(t){let e=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=e,t.div.hidden=!1}static getPageViewport(t,{scale:e=1,rotation:s=0}){let{width:n,height:r}=t.attributes.style;return new Uh({viewBox:[0,0,parseInt(n,10),parseInt(r,10)],userUnit:1,scale:e,rotation:s})}};ad=new WeakSet,Ng=function(t,e,s){return s==="richText"?!e&&this._allowedRichTextElements.has(t)?document.createElement(t):null:e?e===We&&this._allowedSvgElements.has(t)?document.createElementNS(We,t):null:this._allowedHtmlElements.has(t)?document.createElement(t):null},g(vl,ad);ba=class ba{};T(ba,"CSS",96),T(ba,"PDF",72),T(ba,"PDF_TO_CSS_UNITS",ba.CSS/ba.PDF);Yn=ba;Qc=class extends il{constructor(t,e=0){super(t,"RenderingCancelledException"),this.extraDelay=e}};ip=class{constructor(){g(this,sr,new Map);T(this,"times",[])}time(t){i(this,sr).has(t)&&Q(`Timer is already running for ${t}`),i(this,sr).set(t,Date.now())}timeEnd(t){i(this,sr).has(t)||Q(`Timer has not been started for ${t}`),this.times.push({name:t,start:i(this,sr).get(t),end:Date.now()}),i(this,sr).delete(t)}toString(){let t=Math.max(...this.times.map(e=>e.name.length));return this.times.map(e=>`${e.name.padEnd(t)} ${e.end-e.start}ms
273
+ `).join("")}};sr=new WeakMap;Ko=class{static toDateObject(t){if(t instanceof Date)return t;if(!t||typeof t!="string")return null;i(this,od)||f(this,od,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+\\-])?(\\d{2})?'?(\\d{2})?'?"));let e=i(this,od).exec(t);if(!e)return null;let s=parseInt(e[1],10),n=parseInt(e[2],10);n=n>=1&&n<=12?n-1:0;let r=parseInt(e[3],10);r=r>=1&&r<=31?r:1;let a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;let o=parseInt(e[5],10);o=o>=0&&o<=59?o:0;let l=parseInt(e[6],10);l=l>=0&&l<=59?l:0;let c=e[7]||"Z",d=parseInt(e[8],10);d=d>=0&&d<=23?d:0;let u=parseInt(e[9],10)||0;return u=u>=0&&u<=59?u:0,c==="-"?(a+=d,o+=u):c==="+"&&(a-=d,o-=u),new Date(Date.UTC(s,n,r,a,o,l))}};od=new WeakMap,g(Ko,od);vi=class h{constructor(){let{pixelRatio:t}=h;this.sx=t,this.sy=t}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}limitCanvas(t,e,s,n,r=-1){let a=1/0,o=1/0,l=1/0;s=h.capPixels(s,r),s>0&&(a=Math.sqrt(s/(t*e))),n!==-1&&(o=n/t,l=n/e);let c=Math.min(a,o,l);return this.sx>c||this.sy>c?(this.sx=c,this.sy=c,!0):!1}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(t,e){if(e>=0){let s=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+e/100));return t>0?Math.min(t,s):s}return t}},np=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"],Fg=class{static get isDarkMode(){return G(this,"isDarkMode",!!window?.matchMedia?.("(prefers-color-scheme: dark)").matches)}},rp=class{static get commentForegroundColor(){let t=document.createElement("span");t.classList.add("comment","sidebar");let{style:e}=t;e.width=e.height="0",e.display="none",e.color="var(--comment-fg-color)",document.body.append(t);let{color:s}=window.getComputedStyle(t);return t.remove(),G(this,"commentForegroundColor",oh(s))}};h0=new Map;on=class on{constructor(t){g(this,Te);g(this,ir,null);g(this,nr,null);g(this,Ls);g(this,Os,null);g(this,ld,null);g(this,rr,null);g(this,Al,null);g(this,xl,null);f(this,Ls,t),i(on,cd)||f(on,cd,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"}))}render(){let t=f(this,ir,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");let e=i(this,Ls)._uiManager._signal;e instanceof AbortSignal&&!e.aborted&&(t.addEventListener("contextmenu",Js,{signal:e}),t.addEventListener("pointerdown",m(on,Mp,G0),{signal:e}));let s=f(this,Os,document.createElement("div"));s.className="buttons",t.append(s);let n=i(this,Ls).toolbarPosition;if(n){let{style:r}=t,a=i(this,Ls)._uiManager.direction==="ltr"?1-n[0]:n[0];r.insetInlineEnd=`${100*a}%`,r.top=`calc(${100*n[1]}% + var(--editor-toolbar-vert-offset))`}return t}get div(){return i(this,ir)}hide(){i(this,ir).classList.add("hidden"),i(this,nr)?.hideDropdown()}show(){i(this,ir).classList.remove("hidden"),i(this,ld)?.shown(),i(this,rr)?.shown()}addDeleteButton(){let{editorType:t,_uiManager:e}=i(this,Ls),s=document.createElement("button");s.classList.add("basic","deleteButton"),s.tabIndex=0,s.setAttribute("data-l10n-id",i(on,cd)[t]),m(this,Te,dl).call(this,s)&&s.addEventListener("click",n=>{e.delete()},{signal:e._signal}),i(this,Os).append(s)}async addAltText(t){let e=await t.render();m(this,Te,dl).call(this,e),i(this,Os).append(e,i(this,Te,fh)),f(this,ld,t)}addComment(t,e=null){if(i(this,rr))return;let s=t.renderForToolbar();if(!s)return;m(this,Te,dl).call(this,s);let n=f(this,Al,i(this,Te,fh));e?(i(this,Os).insertBefore(s,e),i(this,Os).insertBefore(n,e)):i(this,Os).append(s,n),f(this,rr,t),t.toolbar=this}addColorPicker(t){if(i(this,nr))return;f(this,nr,t);let e=t.renderButton();m(this,Te,dl).call(this,e),i(this,Os).append(e,i(this,Te,fh))}async addEditSignatureButton(t){let e=f(this,xl,await t.renderEditButton(i(this,Ls)));m(this,Te,dl).call(this,e),i(this,Os).append(e,i(this,Te,fh))}removeButton(t){t==="comment"&&(i(this,rr)?.removeToolbarCommentButton(),f(this,rr,null),i(this,Al)?.remove(),f(this,Al,null))}async addButton(t,e){switch(t){case"colorPicker":e&&this.addColorPicker(e);break;case"altText":e&&await this.addAltText(e);break;case"editSignature":e&&await this.addEditSignatureButton(e);break;case"delete":this.addDeleteButton();break;case"comment":e&&this.addComment(e);break}}async addButtonBefore(t,e,s){if(!e&&t==="comment")return;let n=i(this,Os).querySelector(s);n&&t==="comment"&&this.addComment(e,n)}updateEditSignatureButton(t){i(this,xl)&&(i(this,xl).title=t)}remove(){i(this,ir).remove(),i(this,nr)?.destroy(),f(this,nr,null)}};ir=new WeakMap,nr=new WeakMap,Ls=new WeakMap,Os=new WeakMap,ld=new WeakMap,rr=new WeakMap,Al=new WeakMap,xl=new WeakMap,cd=new WeakMap,Mp=new WeakSet,G0=function(t){t.stopPropagation()},Te=new WeakSet,j0=function(t){i(this,Ls)._focusEventsAllowed=!1,se(t)},V0=function(t){i(this,Ls)._focusEventsAllowed=!0,se(t)},dl=function(t){let e=i(this,Ls)._uiManager._signal;return!(e instanceof AbortSignal)||e.aborted?!1:(t.addEventListener("focusin",m(this,Te,j0).bind(this),{capture:!0,signal:e}),t.addEventListener("focusout",m(this,Te,V0).bind(this),{capture:!0,signal:e}),t.addEventListener("contextmenu",Js,{signal:e}),!0)},fh=function(){let t=document.createElement("div");return t.className="divider",t},g(on,Mp),g(on,cd,null);Hg=on,Ug=class{constructor(t){g(this,Kn);g(this,hd,null);g(this,Sa,null);g(this,Ci);f(this,Ci,t)}show(t,e,s){let[n,r]=m(this,Kn,X0).call(this,e,s),{style:a}=i(this,Sa)||f(this,Sa,m(this,Kn,W0).call(this));t.append(i(this,Sa)),a.insetInlineEnd=`${100*n}%`,a.top=`calc(${100*r}% + var(--editor-toolbar-vert-offset))`}hide(){i(this,Sa).remove()}};hd=new WeakMap,Sa=new WeakMap,Ci=new WeakMap,Kn=new WeakSet,W0=function(){let t=f(this,Sa,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.dir=i(this,Ci).direction;let e=i(this,Ci)._signal;e instanceof AbortSignal&&!e.aborted&&t.addEventListener("contextmenu",Js,{signal:e});let s=f(this,hd,document.createElement("div"));return s.className="buttons",t.append(s),i(this,Ci).hasCommentManager()&&m(this,Kn,$g).call(this,"commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{i(this,Ci).commentSelection("floating_button")}),m(this,Kn,$g).call(this,"highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{i(this,Ci).highlightSelection("floating_button")}),t},X0=function(t,e){let s=0,n=0;for(let r of t){let a=r.y+r.height;if(a<s)continue;let o=r.x+(e?r.width:0);if(a>s){n=o,s=a;continue}e?o>n&&(n=o):o<n&&(n=o)}return[e?1-n:n,s]},$g=function(t,e,s,n){let r=document.createElement("button");r.classList.add("basic",t),r.tabIndex=0,r.setAttribute("data-l10n-id",e);let a=document.createElement("span");r.append(a),a.className="visuallyHidden",a.setAttribute("data-l10n-id",s);let o=i(this,Ci)._signal;o instanceof AbortSignal&&!o.aborted&&(r.addEventListener("contextmenu",Js,{signal:o}),r.addEventListener("click",n,{signal:o})),i(this,hd).append(r)};ux="59968104-cc61-4cf9-b570-014b35b3709c",kg=Object.freeze({internal:ux});pt=class pt{static initializeAndAddPointerId(t){(i(pt,Ca)||f(pt,Ca,new Set)).add(t)}static setPointer(t,e){i(pt,Ea)||f(pt,Ea,e),i(pt,_a)??f(pt,_a,t)}static setTimeStamp(t){f(pt,Sl,t)}static isSamePointerId(t){return i(pt,Ea)===t}static isSamePointerIdOrRemove(t){return i(pt,Ea)===t?!0:(i(pt,Ca)?.delete(t),!1)}static isSamePointerType(t){return i(pt,_a)===t}static isInitializedAndDifferentPointerType(t){return i(pt,_a)!==null&&!pt.isSamePointerType(t)}static isSameTimeStamp(t){return i(pt,Sl)===t}static isUsingMultiplePointers(){return i(pt,Ca)?.size>=1}static clearPointerType(){f(pt,_a,null)}static clearPointerIds(){f(pt,Ea,NaN),f(pt,Ca,null)}static clearTimeStamp(){f(pt,Sl,NaN)}};Ea=new WeakMap,Ca=new WeakMap,Sl=new WeakMap,_a=new WeakMap,g(pt,Ea,NaN),g(pt,Ca,null),g(pt,Sl,NaN),g(pt,_a,null);Ie=pt,Gg=class{constructor(){g(this,Pp,0)}get id(){return`${Yc}${Ft(this,Pp)._++}`}};Pp=new WeakMap;Ly=class Ly{constructor(){g(this,Cl);g(this,El,Dy());g(this,dd,0);g(this,Le,null)}static get _isSVGFittingCanvas(){let t=`data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="${We}"><rect width="1" height="1" style="fill:red;"/></svg>`,s=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),n=new Image;n.src=t;let r=n.decode().then(()=>(s.drawImage(n,0,0,1,1,0,0,1,3),new Uint32Array(s.getImageData(0,0,1,1).data.buffer)[0]===0));return G(this,"_isSVGFittingCanvas",r)}async getFromFile(t){let{lastModified:e,name:s,size:n,type:r}=t;return m(this,Cl,gf).call(this,`${e}_${s}_${n}_${r}`,t)}async getFromUrl(t){return m(this,Cl,gf).call(this,t,t)}async getFromBlob(t,e){let s=await e;return m(this,Cl,gf).call(this,t,s)}async getFromId(t){i(this,Le)||f(this,Le,new Map);let e=i(this,Le).get(t);if(!e)return null;if(e.bitmap)return e.refCounter+=1,e;if(e.file)return this.getFromFile(e.file);if(e.blobPromise){let{blobPromise:s}=e;return delete e.blobPromise,this.getFromBlob(e.id,s)}return this.getFromUrl(e.url)}getFromCanvas(t,e){i(this,Le)||f(this,Le,new Map);let s=i(this,Le).get(t);if(s?.bitmap)return s.refCounter+=1,s;let n=new OffscreenCanvas(e.width,e.height);return n.getContext("2d").drawImage(e,0,0),s={bitmap:n.transferToImageBitmap(),id:`image_${i(this,El)}_${Ft(this,dd)._++}`,refCounter:1,isSvg:!1},i(this,Le).set(t,s),i(this,Le).set(s.id,s),s}getSvgUrl(t){let e=i(this,Le).get(t);return e?.isSvg?e.svgUrl:null}deleteId(t){i(this,Le)||f(this,Le,new Map);let e=i(this,Le).get(t);if(!e||(e.refCounter-=1,e.refCounter!==0))return;let{bitmap:s}=e;if(!e.url&&!e.file){let n=new OffscreenCanvas(s.width,s.height);n.getContext("bitmaprenderer").transferFromImageBitmap(s),e.blobPromise=n.convertToBlob()}s.close?.(),e.bitmap=null}isValidId(t){return t.startsWith(`image_${i(this,El)}_`)}};El=new WeakMap,dd=new WeakMap,Le=new WeakMap,Cl=new WeakSet,gf=async function(t,e){i(this,Le)||f(this,Le,new Map);let s=i(this,Le).get(t);if(s===null)return null;if(s?.bitmap)return s.refCounter+=1,s;try{s||(s={bitmap:null,id:`image_${i(this,El)}_${Ft(this,dd)._++}`,refCounter:0,isSvg:!1});let n;if(typeof e=="string"?(s.url=e,n=await ag(e,"blob")):e instanceof File?n=s.file=e:e instanceof Blob&&(n=e),n.type==="image/svg+xml"){let r=Ly._isSVGFittingCanvas,a=new FileReader,o=new Image,l=new Promise((c,d)=>{o.onload=()=>{s.bitmap=o,s.isSvg=!0,c()},a.onload=async()=>{let u=s.svgUrl=a.result;o.src=await r?`${u}#svgView(preserveAspectRatio(none))`:u},o.onerror=a.onerror=d});a.readAsDataURL(n),await l}else s.bitmap=await createImageBitmap(n);s.refCounter=1}catch(n){Q(n),s=null}return i(this,Le).set(t,s),s&&i(this,Le).set(s.id,s),s};jg=Ly,Vg=class{constructor(t=128){g(this,qt,[]);g(this,ar,!1);g(this,ud);g(this,Bt,-1);f(this,ud,t)}add({cmd:t,undo:e,post:s,mustExec:n,type:r=NaN,overwriteIfSameType:a=!1,keepUndo:o=!1}){if(n&&t(),i(this,ar))return;let l={cmd:t,undo:e,post:s,type:r};if(i(this,Bt)===-1){i(this,qt).length>0&&(i(this,qt).length=0),f(this,Bt,0),i(this,qt).push(l);return}if(a&&i(this,qt)[i(this,Bt)].type===r){o&&(l.undo=i(this,qt)[i(this,Bt)].undo),i(this,qt)[i(this,Bt)]=l;return}let c=i(this,Bt)+1;c===i(this,ud)?i(this,qt).splice(0,1):(f(this,Bt,c),c<i(this,qt).length&&i(this,qt).splice(c)),i(this,qt).push(l)}undo(){if(i(this,Bt)===-1)return;f(this,ar,!0);let{undo:t,post:e}=i(this,qt)[i(this,Bt)];t(),e?.(),f(this,ar,!1),f(this,Bt,i(this,Bt)-1)}redo(){if(i(this,Bt)<i(this,qt).length-1){f(this,Bt,i(this,Bt)+1),f(this,ar,!0);let{cmd:t,post:e}=i(this,qt)[i(this,Bt)];t(),e?.(),f(this,ar,!1)}}hasSomethingToUndo(){return i(this,Bt)!==-1}hasSomethingToRedo(){return i(this,Bt)<i(this,qt).length-1}cleanType(t){if(i(this,Bt)!==-1){for(let e=i(this,Bt);e>=0;e--)if(i(this,qt)[e].type!==t){i(this,qt).splice(e+1,i(this,Bt)-e),f(this,Bt,e);return}i(this,qt).length=0,f(this,Bt,-1)}}destroy(){f(this,qt,null)}};qt=new WeakMap,ar=new WeakMap,ud=new WeakMap,Bt=new WeakMap;Qe=class Qe{constructor(t){var s;this.callbacks=new Map;let{isMac:e}=lt.platform;for(let[n,r,a={}]of t){let o=n.some(l=>l.startsWith("mac+"));for(let l of n){let c=l;if(o){let p=l.startsWith("mac+");if(e!==p)continue;p&&(c=l.slice(4))}let[d,u]=m(s=Qe,nh,q0).call(s,c);d!==null&&this.callbacks.getOrInsertComputed(d,nl).push({callback:r,options:a,modifiers:u})}}}exec(t,e){var d;let s=this.callbacks.get(e.key);if(!s){if(/^[a-z]$/i.test(e.key))return;let u=m(d=Qe,nh,K0).call(d,e.code);if(u===null||u===e.key||(s=this.callbacks.get(u),!s))return}let n=(e.altKey?Qe.ALT:0)|(e.ctrlKey?Qe.CTRL:0)|(e.metaKey?Qe.META:0)|(e.shiftKey?Qe.SHIFT:0),r=s.find(u=>u.modifiers===n);if(!r)return;let{callback:a,options:{bubbles:o=!1,args:l=[],checker:c=null}}=r;c&&!c(t,e)||(a.bind(t,...l,e)(),o||se(e))}};nh=new WeakSet,q0=function(t){let e=null,s=0;for(let n of t.split("+")){if(n=n.trim(),!n)continue;let r=n.toUpperCase(),a=Qe[r];if(a){s|=a;continue}if(e!==null){Q(`KeyboardManager: multiple keys in shortcut "${t}"`);break}e=r==="SPACE"?" ":n}return e===null&&Q(`KeyboardManager: no key found in shortcut "${t}"`),[e,s]},K0=function(t){let e=/^(?:Key([A-Z])|(?:Digit|Numpad)(\d))$/.exec(t);return e?e[1]?.toLowerCase()??e[2]:null},g(Qe,nh),T(Qe,"ALT",1),T(Qe,"CTRL",2),T(Qe,"META",4),T(Qe,"SHIFT",8);Jo=Qe,Dp=class Dp{get _colors(){let t=new Map([["CanvasText",null],["Canvas",null]]);return dx(t),G(this,"_colors",t)}convert(t){let e=oh(t);if(!window.matchMedia("(forced-colors: active)").matches)return e;for(let[s,n]of this._colors)if(n.every((r,a)=>r===e[a]))return Dp._colorsMapping.get(s);return e}getHexCode(t){let e=this._colors.get(t);return e?D.makeHexColor(...e):t}};T(Dp,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));Wg=Dp,bl=class bl{constructor(t,e,s,n,r,a,o,l,c,d,u,p,b,y,v,w){g(this,R);g(this,_l,new AbortController);g(this,ls,null);g(this,Tl,null);g(this,Dt,new Map);g(this,zt,new Map);g(this,kl,null);g(this,Ml,null);g(this,Pl,null);g(this,Oe,null);g(this,Dl,null);g(this,Rs,new Vg);g(this,fe,null);g(this,or,null);g(this,lr,null);g(this,cr,0);g(this,hr,new Set);g(this,_i,null);g(this,Ns,null);g(this,Ta,new Set);T(this,"_editorUndoBar",null);g(this,fd,!1);g(this,pd,!1);g(this,Il,!1);g(this,gd,null);g(this,Ti,null);g(this,dr,null);g(this,Ll,null);g(this,ur,!1);g(this,ki,null);g(this,Ip,new Gg);g(this,cn,!1);g(this,Ol,!1);g(this,md,!1);g(this,fr,null);g(this,ka,null);g(this,Rl,null);g(this,pr,null);g(this,bd,null);g(this,Jt,K.NONE);g(this,gt,new Set);g(this,hn,null);g(this,gr,null);g(this,mr,null);g(this,yd,null);g(this,Nl,null);g(this,vd,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});g(this,br,[0,0]);g(this,Mi,null);g(this,dn,null);g(this,wd,null);g(this,Ad,null);g(this,Fs,null);let A=this._signal=i(this,_l).signal;f(this,dn,t),f(this,wd,e),f(this,Ad,s),f(this,Pl,n),f(this,fe,r),f(this,gr,a),f(this,Nl,l),this._eventBus=o;let x={signal:A,...kg};o.on("editingaction",this.onEditingAction.bind(this),x),o.on("pagechanging",this.onPageChanging.bind(this),x),o.on("scalechanging",this.onScaleChanging.bind(this),x),o.on("rotationchanging",this.onRotationChanging.bind(this),x),o.on("setpreference",this.onSetPreference.bind(this),x),o.on("switchannotationeditorparams",S=>this.updateParams(S.type,S.value),x),window.addEventListener("pointerdown",()=>{f(this,Ol,!0)},{capture:!0,signal:A}),window.addEventListener("pointerup",()=>{f(this,Ol,!1)},{capture:!0,signal:A}),window.addEventListener("beforeunload",this.endCurrentEditing.bind(this),{capture:!0,signal:A}),m(this,R,Z0).call(this),m(this,R,rv).call(this),m(this,R,Yg).call(this),f(this,Oe,l.annotationStorage),f(this,gd,l.filterFactory),f(this,mr,c),f(this,Ll,d||null),f(this,fd,u),f(this,pd,p),f(this,Il,b),f(this,bd,y||null),this.viewParameters={realScale:Yn.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=v||null,this._supportsPinchToZoom=w!==!1,r?.setSidebarUiManager(this)}static get _keyboardManager(){let t=bl.prototype,e=a=>i(a,dn).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),s=(a,{target:o})=>{if(o instanceof HTMLInputElement){let{type:l}=o;return l!=="text"&&l!=="number"}return!0},n=this.TRANSLATE_SMALL,r=this.TRANSLATE_BIG;return G(this,"_keyboardManager",new Jo([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:s}],[["ctrl+z","mac+meta+z"],t.undo,{checker:s}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:s}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:s}],[["Enter"],t.addNewEditorFromKeyboard,{checker:(a,{target:o})=>!(o instanceof HTMLButtonElement)&&i(a,dn).contains(o)&&!a.isEnterHandled}],[["Space"],t.addNewEditorFromKeyboard,{checker:(a,{target:o})=>!(o instanceof HTMLButtonElement)&&i(a,dn).contains(document.activeElement)}],[["Escape"],t.unselectAll],[["ArrowLeft"],t.translateSelectedEditors,{args:[-n,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-r,0],checker:e}],[["ArrowRight"],t.translateSelectedEditors,{args:[n,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[r,0],checker:e}],[["ArrowUp"],t.translateSelectedEditors,{args:[0,-n],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-r],checker:e}],[["ArrowDown"],t.translateSelectedEditors,{args:[0,n],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,r],checker:e}]]))}destroy(){i(this,Fs)?.resolve(),f(this,Fs,null),i(this,_l)?.abort(),f(this,_l,null),this._signal=null;for(let t of i(this,zt).values())t.destroy();i(this,zt).clear(),i(this,Dt).clear(),i(this,Ta).clear(),i(this,pr)?.clear(),f(this,ls,null),i(this,gt).clear(),i(this,Rs).destroy(),i(this,Pl)?.destroy(),i(this,fe)?.destroy(),i(this,gr)?.destroy(),i(this,ki)?.hide(),f(this,ki,null),i(this,Rl)?.destroy(),f(this,Rl,null),f(this,Tl,null),i(this,Ti)&&(clearTimeout(i(this,Ti)),f(this,Ti,null)),i(this,Mi)&&(clearTimeout(i(this,Mi)),f(this,Mi,null)),this._editorUndoBar?.destroy(),f(this,Nl,null)}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return i(this,bd)}get useNewAltTextFlow(){return i(this,pd)}get useNewAltTextWhenAddingImage(){return i(this,Il)}get hcmFilter(){return G(this,"hcmFilter",i(this,mr)?i(this,gd).addHCMFilter(i(this,mr).foreground,i(this,mr).background):"none")}get direction(){return G(this,"direction",getComputedStyle(i(this,dn)).direction)}get _highlightColors(){return G(this,"_highlightColors",i(this,Ll)?new Map(i(this,Ll).split(",").map(t=>(t=t.split("=").map(e=>e.trim()),t[1]=t[1].toUpperCase(),t))):null)}get highlightColors(){let{_highlightColors:t}=this;if(!t)return G(this,"highlightColors",null);let e=new Map,s=!!i(this,mr);for(let[n,r]of t){let a=n.endsWith("_HCM");if(s&&a){e.set(n.replace("_HCM",""),r);continue}!s&&!a&&e.set(n,r)}return G(this,"highlightColors",e)}get highlightColorNames(){return G(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}getNonHCMColor(t){if(!this._highlightColors)return t;let e=this.highlightColorNames.get(t);return this._highlightColors.get(e)||t}getNonHCMColorName(t){return this.highlightColorNames.get(t)||t}setCurrentDrawingSession(t){t?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),f(this,lr,t)}setMainHighlightColorPicker(t){f(this,Rl,t)}editAltText(t,e=!1){i(this,Pl)?.editAltText(this,t,e)}hasCommentManager(){return!!i(this,fe)}editComment(t,e,s,n){i(this,fe)?.showDialog(this,t,e,s,n)}selectComment(t,e){i(this,zt).get(t)?.getEditorByUID(e)?.toggleComment(!0,!0)}updateComment(t){i(this,fe)?.updateComment(t.getData())}updatePopupColor(t){i(this,fe)?.updatePopupColor(t)}removeComment(t){i(this,fe)?.removeComments([t.uid])}deleteComment(t,e){let s=()=>{t.comment=e},n=()=>{this._editorUndoBar?.show(s,"comment"),this.toggleComment(null),t.comment=null};this.addCommands({cmd:n,undo:s,mustExec:!0})}toggleComment(t,e,s=void 0){i(this,fe)?.toggleCommentPopup(t,e,s)}makeCommentColor(t,e){return t&&i(this,fe)?.makeCommentColor(t,e)||null}getCommentDialogElement(){return i(this,fe)?.dialogElement||null}async waitForEditorsRendered(t){if(i(this,zt).has(t-1))return;let{resolve:e,promise:s}=Promise.withResolvers(),n=r=>{r.pageNumber===t&&(this._eventBus.off("editorsrendered",n),e())};this._eventBus.on("editorsrendered",n,kg),await s}getSignature(t){i(this,gr)?.getSignature({uiManager:this,editor:t})}get signatureManager(){return i(this,gr)}switchToMode(t,e){this._eventBus.on("annotationeditormodechanged",e,{once:!0,signal:this._signal,...kg}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t})}setPreference(t,e){this._eventBus.dispatch("setpreference",{source:this,name:t,value:e})}onSetPreference({name:t,value:e}){t==="enableNewAltTextWhenAddingImage"&&f(this,Il,e)}onPageChanging({pageNumber:t}){f(this,cr,t-1)}deletePage(t){for(let e of this.getEditors(t))e.remove();i(this,zt).delete(t),i(this,cr)===t&&f(this,cr,0)}focusMainContainer(){i(this,dn).focus()}findParent(t,e){for(let s of i(this,zt).values()){let{x:n,y:r,width:a,height:o}=s.div.getBoundingClientRect();if(t>=n&&t<=n+a&&e>=r&&e<=r+o)return s}return null}disableUserSelect(t=!1){i(this,wd).classList.toggle("noUserSelect",t)}addShouldRescale(t){i(this,Ta).add(t)}removeShouldRescale(t){i(this,Ta).delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*Yn.PDF_TO_CSS_UNITS;for(let e of i(this,Ta))e.onScaleChanging();i(this,lr)?.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}highlightSelection(t="",e=!1){let s=document.getSelection();if(!s||s.isCollapsed)return;let{anchorNode:n,anchorOffset:r,focusNode:a,focusOffset:o}=s,l=s.toString(),d=m(this,R,mf).call(this,s).closest(".textLayer"),u=this.getSelectionBoxes(d);if(!u)return;s.empty();let p=m(this,R,Xg).call(this,d),b=i(this,Jt)===K.NONE,y=()=>{let v=p?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:u,anchorNode:n,anchorOffset:r,focusNode:a,focusOffset:o,text:l});b&&this.showAllEditors("highlight",!0,!0),e&&v?.editComment()};if(b){this.switchToMode(K.HIGHLIGHT,y);return}y()}commentSelection(t=""){this.highlightSelection(t,!0)}endCurrentEditing(){this.commitOrRemove(),this.currentLayer?.endDrawingSession(!1)}getAndRemoveDataFromAnnotationStorage(t){if(!i(this,Oe))return null;let e=`${Yc}${t}`,s=i(this,Oe).getRawValue(e);return s&&i(this,Oe).remove(e),s}addToAnnotationStorage(t){!t.isEmpty()&&i(this,Oe)&&!i(this,Oe).has(t.id)&&i(this,Oe).setValue(t.id,t)}a11yAlert(t,e=null){let s=i(this,Ad);s&&(s.setAttribute("data-l10n-id",t),e?s.setAttribute("data-l10n-args",JSON.stringify(e)):s.removeAttribute("data-l10n-args"))}blur(){if(this.isShiftKeyDown=!1,i(this,ur)&&(f(this,ur,!1),m(this,R,ph).call(this,"main_toolbar")),!this.hasSelection)return;let{activeElement:t}=document;for(let e of i(this,gt))if(e.div.contains(t)){f(this,ka,[e,t]),e._focusEventsAllowed=!1;break}}focus(){if(!i(this,ka))return;let[t,e]=i(this,ka);f(this,ka,null),e.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),e.focus()}addEditListeners(){m(this,R,Yg).call(this),this.setEditingState(!0)}removeEditListeners(){m(this,R,sv).call(this),this.setEditingState(!1)}dragOver(t){for(let{type:e}of t.dataTransfer.items)for(let s of i(this,Ns))if(s.isHandlingMimeForPasting(e)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(let e of t.dataTransfer.items)for(let s of i(this,Ns))if(s.isHandlingMimeForPasting(e.type)){s.paste(e,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),i(this,ls)?.commitOrRemove(),!this.hasSelection)return;let e=[];for(let s of i(this,gt)){let n=s.serialize(!0);n&&e.push(n)}e.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(e))}cut(t){this.copy(t),this.delete()}async paste(t){t.preventDefault();let{clipboardData:e}=t;for(let r of e.items)for(let a of i(this,Ns))if(a.isHandlingMimeForPasting(r.type)){a.paste(r,this.currentLayer);return}let s=e.getData("application/pdfjs");if(!s)return;try{s=JSON.parse(s)}catch(r){Q(`paste: "${r.message}".`);return}if(!Array.isArray(s))return;this.unselectAll();let n=this.currentLayer;try{let r=[];for(let l of s){let c=await n.deserialize(l);if(!c)return;r.push(c)}let a=()=>{for(let l of r)m(this,R,qg).call(this,l);m(this,R,Kg).call(this,r)},o=()=>{for(let l of r)l.remove()};this.addCommands({cmd:a,undo:o,mustExec:!0})}catch(r){Q(`paste: "${r.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),i(this,Jt)!==K.NONE&&!this.isEditorHandlingKeyboard&&bl._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,i(this,ur)&&(f(this,ur,!1),m(this,R,ph).call(this,"main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu");break}}updatePageIndex(t,e){for(let n of i(this,Ml).get(t)||[])n.pageIndex=e;let s=i(this,kl).get(t);s&&(s.pageIndex=e,i(this,zt).set(e,s),i(this,cn)?s.enable():s.disable())}startUpdatePages(){f(this,kl,new Map(i(this,zt))),i(this,zt).clear();let t=f(this,Ml,new Map),e=s=>{t.getOrInsertComputed(s.pageIndex,nl).push(s)};for(let s of i(this,Dt).values())e(s);for(let[s,n]of i(this,Oe))s.startsWith(Yc)&&!i(this,Dt).has(s)&&Number.isInteger(n?.pageIndex)&&e(n)}endUpdatePages(){f(this,kl,null),f(this,Ml,null)}clonePage(t,e){for(let s of this.getEditors(t)){let n=s.serialize(s.mode!==K.HIGHLIGHT);n&&(n.pageIndex=e,n.id=this.getId(),n.isClone=!0,delete n.popupRef,i(this,Oe).setValue(n.id,n))}}findClonesForPage(t){let e=[],{pageIndex:s}=t;for(let[n,r]of i(this,Oe))r.pageIndex===s&&r.isClone&&(i(this,Oe).remove(n),e.push(t.deserialize(r).then(a=>{a&&(a.isClone=!0,t.addOrRebuild(a))})));return Promise.all(e)}setEditingState(t){t?(m(this,R,tv).call(this),m(this,R,iv).call(this),m(this,R,ze).call(this,{isEditing:i(this,Jt)!==K.NONE,isEmpty:m(this,R,gh).call(this),hasSomethingToUndo:i(this,Rs).hasSomethingToUndo(),hasSomethingToRedo:i(this,Rs).hasSomethingToRedo(),hasSelectedEditor:!1})):(m(this,R,ev).call(this),m(this,R,nv).call(this),m(this,R,ze).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!i(this,Ns)){f(this,Ns,t);for(let e of i(this,Ns))m(this,R,rn).call(this,e.defaultPropertiesToUpdate)}}getId(){return i(this,Ip).id}get currentLayer(){return i(this,zt).get(i(this,cr))}getLayer(t){return i(this,zt).get(t)}get currentPageIndex(){return i(this,cr)}addLayer(t){i(this,zt).set(t.pageIndex,t),i(this,cn)?t.enable():t.disable()}removeLayer(t){i(this,zt).delete(t.pageIndex)}async updateMode(t,e=null,s=!1,n=!1,r=!1,a=!1){if(i(this,Jt)!==t&&!(i(this,Fs)&&(await i(this,Fs).promise,!i(this,Fs)))){if(f(this,Fs,Promise.withResolvers()),i(this,lr)?.commitOrRemove(),i(this,Jt)===K.POPUP&&i(this,fe)?.hideSidebar(),i(this,fe)?.destroyPopup(),f(this,Jt,t),t===K.NONE){this.setEditingState(!1),m(this,R,ov).call(this);for(let o of i(this,Dt).values())o.hideStandaloneCommentButton();this._editorUndoBar?.hide(),this.toggleComment(null),i(this,Fs).resolve();return}for(let o of i(this,Dt).values())o.addStandaloneCommentButton();t===K.SIGNATURE&&await i(this,gr)?.loadSignatures(),s&&Ie.clearPointerType(),this.setEditingState(!0),await m(this,R,av).call(this),this.unselectAll();for(let o of i(this,zt).values())o.updateMode(t);if(t===K.POPUP){i(this,Tl)||f(this,Tl,await i(this,Nl).getAnnotationsByType(new Set(i(this,Ns).map(c=>c._editorType))));let o=new Set,l=[];for(let c of i(this,Dt).values()){let{annotationElementId:d,hasComment:u,deleted:p}=c;d&&o.add(d),u&&!p&&l.push(c.getData())}for(let c of i(this,Tl)){let{id:d,popupRef:u,contentsObj:p}=c;u&&p?.str&&!o.has(d)&&!i(this,hr).has(d)&&l.push(c)}i(this,fe)?.showSidebar(l)}if(!e){n&&this.addNewEditorFromKeyboard(),i(this,Fs).resolve();return}for(let o of i(this,Dt).values())o.uid===e?(this.setSelected(o),a?o.editComment():r?o.enterInEditMode():o.focus()):o.unselect();i(this,Fs).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t.mode!==i(this,Jt)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...t})}updateParams(t,e){if(i(this,Ns)){switch(t){case it.CREATE:this.currentLayer.addNewEditor(e);return;case it.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(i(this,yd)||f(this,yd,new Map)).set(t,e),this.showAllEditors("highlight",e);break}if(this.hasSelection)for(let s of i(this,gt))s.updateParams(t,e);else for(let s of i(this,Ns))s.updateDefaultParams(t,e)}}showAllEditors(t,e,s=!1){for(let r of i(this,Dt).values())r.editorType===t&&r.show(e);(i(this,yd)?.get(it.HIGHLIGHT_SHOW_ALL)??!0)!==e&&m(this,R,rn).call(this,[[it.HIGHLIGHT_SHOW_ALL,e]])}enableWaiting(t=!1){if(i(this,md)!==t){f(this,md,t);for(let e of i(this,zt).values())t?e.disableClick():e.enableClick(),e.div.classList.toggle("waiting",t)}}*getEditors(t){for(let e of i(this,Dt).values())e.pageIndex===t&&(yield e)}getEditor(t){return i(this,Dt).get(t)}addEditor(t){i(this,Dt).set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(i(this,Ti)&&clearTimeout(i(this,Ti)),f(this,Ti,setTimeout(()=>{this.focusMainContainer(),f(this,Ti,null)},0))),i(this,Dt).delete(t.id),t.annotationElementId&&i(this,pr)?.delete(t.annotationElementId),this.unselect(t),(!t.annotationElementId||!i(this,hr).has(t.annotationElementId))&&i(this,Oe)?.remove(t.id)}addDeletedAnnotationElement(t){i(this,hr).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return i(this,hr).has(t)}removeDeletedAnnotationElement(t){i(this,hr).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}setActiveEditor(t){i(this,ls)!==t&&(f(this,ls,t),t&&m(this,R,rn).call(this,t.propertiesToUpdate))}updateUI(t){i(this,R,lv)===t&&m(this,R,rn).call(this,t.propertiesToUpdate)}updateUIForDefaultProperties(t){m(this,R,rn).call(this,t.defaultPropertiesToUpdate)}toggleSelected(t){if(i(this,gt).has(t)){i(this,gt).delete(t),t.unselect(),m(this,R,ze).call(this,{hasSelectedEditor:this.hasSelection});return}i(this,gt).add(t),t.select(),m(this,R,rn).call(this,t.propertiesToUpdate),m(this,R,ze).call(this,{hasSelectedEditor:!0})}setSelected(t){this.updateToolbar({mode:t.mode,editId:t.uid}),i(this,lr)?.commitOrRemove();for(let e of i(this,gt))e!==t&&e.unselect();i(this,fe)?.destroyPopup(),i(this,gt).clear(),i(this,gt).add(t),t.select(),m(this,R,rn).call(this,t.propertiesToUpdate),m(this,R,ze).call(this,{hasSelectedEditor:!0})}get firstSelectedEditor(){return i(this,gt).values().next().value}unselect(t){t.unselect(),i(this,gt).delete(t),m(this,R,ze).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return i(this,gt).size!==0}get isEnterHandled(){return i(this,gt).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){i(this,Rs).undo(),m(this,R,ze).call(this,{hasSomethingToUndo:i(this,Rs).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:m(this,R,gh).call(this)}),this._editorUndoBar?.hide()}redo(){i(this,Rs).redo(),m(this,R,ze).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:i(this,Rs).hasSomethingToRedo(),isEmpty:m(this,R,gh).call(this)})}addCommands(t){i(this,Rs).add(t),m(this,R,ze).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:m(this,R,gh).call(this)})}cleanUndoStack(t){i(this,Rs).cleanType(t)}delete(){this.commitOrRemove();let t=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!t)return;let e=t?[t]:[...i(this,gt)],s=()=>{this._editorUndoBar?.show(n,e.length===1?e[0].editorType:e.length);for(let r of e)r.remove()},n=()=>{for(let r of e)m(this,R,qg).call(this,r)};this.addCommands({cmd:s,undo:n,mustExec:!0})}commitOrRemove(){i(this,ls)?.commitOrRemove()}hasSomethingToControl(){return i(this,ls)||this.hasSelection}selectAll(){for(let t of i(this,gt))t.commit();m(this,R,Kg).call(this,i(this,Dt).values())}unselectAll(){if(!(i(this,ls)&&(i(this,ls).commitOrRemove(),i(this,Jt)!==K.NONE))&&!i(this,lr)?.commitOrRemove()&&(i(this,fe)?.destroyPopup(),!!this.hasSelection)){for(let t of i(this,gt))t.unselect();i(this,gt).clear(),m(this,R,ze).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(t,e,s=!1){if(s||this.commitOrRemove(),!this.hasSelection)return;i(this,br)[0]+=t,i(this,br)[1]+=e;let[n,r]=i(this,br),a=[...i(this,gt)],o=1e3;i(this,Mi)&&clearTimeout(i(this,Mi)),f(this,Mi,setTimeout(()=>{f(this,Mi,null),i(this,br)[0]=i(this,br)[1]=0,this.addCommands({cmd:()=>{for(let l of a)i(this,Dt).has(l.id)&&(l.translateInPage(n,r),l.translationDone())},undo:()=>{for(let l of a)i(this,Dt).has(l.id)&&(l.translateInPage(-n,-r),l.translationDone())},mustExec:!1})},o));for(let l of a)l.translateInPage(t,e),l.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),f(this,_i,new Map);for(let t of i(this,gt))i(this,_i).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!i(this,_i))return!1;this.disableUserSelect(!1);let t=i(this,_i);f(this,_i,null);let e=!1;for(let[{x:n,y:r,pageIndex:a},o]of t)o.newX=n,o.newY=r,o.newPageIndex=a,e||(e=n!==o.savedX||r!==o.savedY||a!==o.savedPageIndex);if(!e)return!1;let s=(n,r,a,o)=>{if(i(this,Dt).has(n.id)){let l=i(this,zt).get(o);l?n._setParentAndPosition(l,r,a):(n.pageIndex=o,n.x=r,n.y=a)}};return this.addCommands({cmd:()=>{for(let[n,{newX:r,newY:a,newPageIndex:o}]of t)s(n,r,a,o)},undo:()=>{for(let[n,{savedX:r,savedY:a,savedPageIndex:o}]of t)s(n,r,a,o)},mustExec:!0}),!0}dragSelectedEditors(t,e){if(i(this,_i))for(let s of i(this,_i).keys())s.drag(t,e)}rebuild(t){if(t.parent===null){let e=this.getLayer(t.pageIndex);e?(e.changeParent(t),e.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||i(this,gt).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return i(this,ls)===t}getActive(){return i(this,ls)}getMode(){return i(this,Jt)}isEditingMode(){return i(this,Jt)!==K.NONE}get imageManager(){return G(this,"imageManager",new jg)}getSelectionBoxes(t){if(!t)return null;let e=document.getSelection();for(let c=0,d=e.rangeCount;c<d;c++)if(!t.contains(e.getRangeAt(c).commonAncestorContainer))return null;let{x:s,y:n,width:r,height:a}=t.getBoundingClientRect(),o;switch(t.getAttribute("data-main-rotation")){case"90":o=(c,d,u,p)=>({x:(d-n)/a,y:1-(c+u-s)/r,width:p/a,height:u/r});break;case"180":o=(c,d,u,p)=>({x:1-(c+u-s)/r,y:1-(d+p-n)/a,width:u/r,height:p/a});break;case"270":o=(c,d,u,p)=>({x:1-(d+p-n)/a,y:(c-s)/r,width:p/a,height:u/r});break;default:o=(c,d,u,p)=>({x:(c-s)/r,y:(d-n)/a,width:u/r,height:p/a});break}let l=[];for(let c=0,d=e.rangeCount;c<d;c++){let u=e.getRangeAt(c);if(!u.collapsed)for(let{x:p,y:b,width:y,height:v}of u.getClientRects())y===0||v===0||l.push(o(p,b,y,v))}return l.length===0?null:l}addChangedExistingAnnotation({annotationElementId:t,id:e}){(i(this,Dl)||f(this,Dl,new Map)).set(t,e)}removeChangedExistingAnnotation({annotationElementId:t}){i(this,Dl)?.delete(t)}renderAnnotationElement(t){let e=i(this,Dl)?.get(t.data.id);if(!e)return;let s=i(this,Oe).getRawValue(e);s&&(i(this,Jt)===K.NONE&&!s.hasBeenModified||s.renderAnnotationElement(t))}setMissingCanvas(t,e,s){let n=i(this,pr)?.get(t);n&&(n.setCanvas(e,s),i(this,pr).delete(t))}addMissingCanvas(t,e){(i(this,pr)||f(this,pr,new Map)).set(t,e)}};_l=new WeakMap,ls=new WeakMap,Tl=new WeakMap,Dt=new WeakMap,zt=new WeakMap,kl=new WeakMap,Ml=new WeakMap,Pl=new WeakMap,Oe=new WeakMap,Dl=new WeakMap,Rs=new WeakMap,fe=new WeakMap,or=new WeakMap,lr=new WeakMap,cr=new WeakMap,hr=new WeakMap,_i=new WeakMap,Ns=new WeakMap,Ta=new WeakMap,fd=new WeakMap,pd=new WeakMap,Il=new WeakMap,gd=new WeakMap,Ti=new WeakMap,dr=new WeakMap,Ll=new WeakMap,ur=new WeakMap,ki=new WeakMap,Ip=new WeakMap,cn=new WeakMap,Ol=new WeakMap,md=new WeakMap,fr=new WeakMap,ka=new WeakMap,Rl=new WeakMap,pr=new WeakMap,bd=new WeakMap,Jt=new WeakMap,gt=new WeakMap,hn=new WeakMap,gr=new WeakMap,mr=new WeakMap,yd=new WeakMap,Nl=new WeakMap,vd=new WeakMap,br=new WeakMap,Mi=new WeakMap,dn=new WeakMap,wd=new WeakMap,Ad=new WeakMap,Fs=new WeakMap,R=new WeakSet,mf=function({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t},Xg=function(t){let{currentLayer:e}=this;if(e.hasTextLayer(t))return e;for(let s of i(this,zt).values())if(s.hasTextLayer(t))return s;return null},Q0=function(){let t=document.getSelection();if(!t||t.isCollapsed)return;let s=m(this,R,mf).call(this,t).closest(".textLayer"),n=this.getSelectionBoxes(s);n&&(i(this,ki)||f(this,ki,new Ug(this)),i(this,ki).show(s,n,this.direction==="ltr"))},J0=function(){let t=document.getSelection();if(!t||t.isCollapsed){i(this,hn)&&(i(this,ki)?.hide(),f(this,hn,null),m(this,R,ze).call(this,{hasSelectedText:!1}));return}let{anchorNode:e}=t;if(e===i(this,hn))return;let n=m(this,R,mf).call(this,t).closest(".textLayer");if(!n){i(this,hn)&&(i(this,ki)?.hide(),f(this,hn,null),m(this,R,ze).call(this,{hasSelectedText:!1}));return}if(i(this,ki)?.hide(),f(this,hn,e),m(this,R,ze).call(this,{hasSelectedText:!0}),!(i(this,Jt)!==K.HIGHLIGHT&&i(this,Jt)!==K.NONE)&&(i(this,Jt)===K.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),f(this,ur,this.isShiftKeyDown),!this.isShiftKeyDown)){let r=i(this,Jt)===K.HIGHLIGHT?m(this,R,Xg).call(this,n):null;if(r?.toggleDrawing(),i(this,Ol)){let a=new AbortController,o=this.combinedSignal(a),l=c=>{c.type==="pointerup"&&c.button!==0||(a.abort(),r?.toggleDrawing(!0),c.type==="pointerup"&&m(this,R,ph).call(this,"main_toolbar"))};window.addEventListener("pointerup",l,{signal:o}),window.addEventListener("blur",l,{signal:o})}else r?.toggleDrawing(!0),m(this,R,ph).call(this,"main_toolbar")}},ph=function(t=""){i(this,Jt)===K.HIGHLIGHT?this.highlightSelection(t):i(this,fd)&&m(this,R,Q0).call(this)},Z0=function(){document.addEventListener("selectionchange",m(this,R,J0).bind(this),{signal:this._signal})},tv=function(){if(i(this,dr))return;f(this,dr,new AbortController);let t=this.combinedSignal(i(this,dr));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})},ev=function(){i(this,dr)?.abort(),f(this,dr,null)},Yg=function(){if(i(this,fr))return;f(this,fr,new AbortController);let t=this.combinedSignal(i(this,fr));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})},sv=function(){i(this,fr)?.abort(),f(this,fr,null)},iv=function(){if(i(this,or))return;f(this,or,new AbortController);let t=this.combinedSignal(i(this,or));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t})},nv=function(){i(this,or)?.abort(),f(this,or,null)},rv=function(){let t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})},ze=function(t){Object.entries(t).some(([s,n])=>i(this,vd)[s]!==n)&&(this._eventBus.dispatch("editingstateschanged",{source:this,details:Object.assign(i(this,vd),t)}),i(this,Jt)===K.HIGHLIGHT&&t.hasSelectedEditor===!1&&m(this,R,rn).call(this,[[it.HIGHLIGHT_FREE,!0]]))},rn=function(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})},av=async function(){if(!i(this,cn)){f(this,cn,!0);let t=[];for(let e of i(this,zt).values())t.push(e.enable());await Promise.all(t);for(let e of i(this,Dt).values())e.enable()}},ov=function(){if(this.unselectAll(),i(this,cn)){f(this,cn,!1);for(let t of i(this,zt).values())t.disable();for(let t of i(this,Dt).values())t.disable()}},qg=function(t){let e=i(this,zt).get(t.pageIndex);e?e.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))},lv=function(){let t=null;for(t of i(this,gt));return t},gh=function(){if(i(this,Dt).size===0)return!0;if(i(this,Dt).size===1)for(let t of i(this,Dt).values())return t.isEmpty();return!1},Kg=function(t){for(let e of i(this,gt))e.unselect();i(this,gt).clear();for(let e of t)e.isEmpty()||(i(this,gt).add(e),e.select());m(this,R,ze).call(this,{hasSelectedEditor:this.hasSelection})},T(bl,"TRANSLATE_SMALL",1),T(bl,"TRANSLATE_BIG",10);oa=bl,He=class He{constructor(t){g(this,bi);g(this,pe,null);g(this,Pi,!1);g(this,si,null);g(this,Fl,null);g(this,Di,null);g(this,cs,null);g(this,Bl,!1);g(this,Ii,null);g(this,Ze,null);g(this,un,null);g(this,Ma,null);g(this,Li,!1);f(this,Ze,t),f(this,Li,t._uiManager.useNewAltTextFlow),i(He,yr)||f(He,yr,Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}))}static initialize(t){He._l10n??(He._l10n=t)}async render(){let t=f(this,si,document.createElement("button"));t.className="altText",t.tabIndex="0";let e=f(this,Fl,document.createElement("span"));t.append(e),i(this,Li)?(t.classList.add("new"),t.setAttribute("data-l10n-id",i(He,yr).missing),e.setAttribute("data-l10n-id",i(He,yr)["missing-label"])):(t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));let s=i(this,Ze)._uiManager._signal;t.addEventListener("contextmenu",Js,{signal:s}),t.addEventListener("pointerdown",r=>r.stopPropagation(),{signal:s});let n=r=>{r.preventDefault(),i(this,Ze)._uiManager.editAltText(i(this,Ze)),i(this,Li)&&i(this,Ze)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:i(this,bi,mh)}})};return t.addEventListener("click",n,{capture:!0,signal:s}),t.addEventListener("keydown",r=>{r.target===t&&r.key==="Enter"&&(f(this,Bl,!0),n(r))},{signal:s}),await m(this,bi,bf).call(this),t}finish(){i(this,si)&&(i(this,si).focus({focusVisible:i(this,Bl)}),f(this,Bl,!1))}isEmpty(){return i(this,Li)?i(this,pe)===null:!i(this,pe)&&!i(this,Pi)}hasData(){return i(this,Li)?i(this,pe)!==null||!!i(this,un):this.isEmpty()}get guessedText(){return i(this,un)}async setGuessedText(t){i(this,pe)===null&&(f(this,un,t),f(this,Ma,await He._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t})),m(this,bi,bf).call(this))}toggleAltTextBadge(t=!1){if(!i(this,Li)||i(this,pe)){i(this,Ii)?.remove(),f(this,Ii,null);return}if(!i(this,Ii)){let e=f(this,Ii,document.createElement("div"));e.className="noAltTextBadge",i(this,Ze).div.append(e)}i(this,Ii).classList.toggle("hidden",!t)}serialize(t){let e=i(this,pe);return!t&&i(this,un)===e&&(e=i(this,Ma)),{altText:e,decorative:i(this,Pi),guessedText:i(this,un),textWithDisclaimer:i(this,Ma)}}get data(){return{altText:i(this,pe),decorative:i(this,Pi)}}set data({altText:t,decorative:e,guessedText:s,textWithDisclaimer:n,cancel:r=!1}){s&&(f(this,un,s),f(this,Ma,n)),!(i(this,pe)===t&&i(this,Pi)===e)&&(r||(f(this,pe,t),f(this,Pi,e)),m(this,bi,bf).call(this))}toggle(t=!1){i(this,si)&&(!t&&i(this,cs)&&(clearTimeout(i(this,cs)),f(this,cs,null)),i(this,si).disabled=!t)}shown(){i(this,Ze)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:i(this,bi,mh)}})}destroy(){i(this,si)?.remove(),f(this,si,null),f(this,Fl,null),f(this,Di,null),i(this,Ii)?.remove(),f(this,Ii,null)}};pe=new WeakMap,Pi=new WeakMap,si=new WeakMap,Fl=new WeakMap,Di=new WeakMap,cs=new WeakMap,Bl=new WeakMap,Ii=new WeakMap,Ze=new WeakMap,un=new WeakMap,Ma=new WeakMap,Li=new WeakMap,yr=new WeakMap,bi=new WeakSet,mh=function(){return i(this,pe)&&"added"||i(this,pe)===null&&this.guessedText&&"review"||"missing"},bf=async function(){let t=i(this,si);if(!t)return;if(i(this,Li)){if(t.classList.toggle("done",!!i(this,pe)),t.setAttribute("data-l10n-id",i(He,yr)[i(this,bi,mh)]),i(this,Fl)?.setAttribute("data-l10n-id",i(He,yr)[`${i(this,bi,mh)}-label`]),!i(this,pe)){i(this,Di)?.remove();return}}else{if(!i(this,pe)&&!i(this,Pi)){t.classList.remove("done"),i(this,Di)?.remove();return}t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let e=i(this,Di);if(!e){f(this,Di,e=document.createElement("span")),e.className="tooltip",e.setAttribute("role","tooltip"),e.id=`alt-text-tooltip-${i(this,Ze).id}`;let n=100,r=i(this,Ze)._uiManager._signal;r.addEventListener("abort",()=>{clearTimeout(i(this,cs)),f(this,cs,null)},{once:!0}),t.addEventListener("mouseenter",()=>{f(this,cs,setTimeout(()=>{f(this,cs,null),i(this,Di).classList.add("show"),i(this,Ze)._reportTelemetry({action:"alt_text_tooltip"})},n))},{signal:r}),t.addEventListener("mouseleave",()=>{i(this,cs)&&(clearTimeout(i(this,cs)),f(this,cs,null)),i(this,Di)?.classList.remove("show")},{signal:r})}i(this,Pi)?e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(e.removeAttribute("data-l10n-id"),e.textContent=i(this,pe)),e.parentNode||t.append(e),i(this,Ze).getElementForAltText()?.setAttribute("aria-describedby",e.id)},g(He,yr,null),T(He,"_l10n",null);ap=He,ml=class{constructor(t){g(this,Sd);g(this,ve,null);g(this,Bs,null);g(this,Pa,!1);g(this,St,null);g(this,xd,null);g(this,vr,null);g(this,zs,null);g(this,wr,null);g(this,Ar,!1);g(this,Da,null);f(this,St,t)}renderForToolbar(){let t=f(this,Bs,document.createElement("button"));return t.className="comment",m(this,Sd,Qg).call(this,t,!1)}renderForStandalone(){let t=f(this,ve,document.createElement("button"));t.className="annotationCommentButton";let e=i(this,St).commentButtonPosition;if(e){let{style:s}=t;s.insetInlineEnd=`calc(${100*(i(this,St)._uiManager.direction==="ltr"?1-e[0]:e[0])}% - var(--comment-button-dim))`,s.top=`calc(${100*e[1]}% - var(--comment-button-dim))`;let n=i(this,St).commentButtonColor;n&&(s.backgroundColor=n)}return m(this,Sd,Qg).call(this,t,!0)}focusButton(){setTimeout(()=>{(i(this,ve)??i(this,Bs))?.focus()},0)}onUpdatedColor(){if(!i(this,ve))return;let t=i(this,St).commentButtonColor;t&&(i(this,ve).style.backgroundColor=t),i(this,St)._uiManager.updatePopupColor(i(this,St))}get commentButtonWidth(){return(i(this,ve)?.getBoundingClientRect().width??0)/i(this,St).parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(i(this,Da))return i(this,Da);if(!i(this,ve))return null;let{x:t,y:e,height:s}=i(this,ve).getBoundingClientRect(),{x:n,y:r,width:a,height:o}=i(this,St).parent.boundingClientRect;return[(t-n)/a,(e+s-r)/o]}set commentPopupPositionInLayer(t){f(this,Da,t)}hasDefaultPopupPosition(){return i(this,Da)===null}removeStandaloneCommentButton(){i(this,ve)?.remove(),f(this,ve,null)}removeToolbarCommentButton(){i(this,Bs)?.remove(),f(this,Bs,null)}setCommentButtonStates({selected:t,hasPopup:e}){i(this,ve)&&(i(this,ve).classList.toggle("selected",t),i(this,ve).ariaExpanded=e)}edit(t){let e=this.commentPopupPositionInLayer,s,n;if(e)[s,n]=e;else{[s,n]=i(this,St).commentButtonPosition;let{width:d,height:u,x:p,y:b}=i(this,St);s=p+s*d,n=b+n*u}let r=i(this,St).parent.boundingClientRect,{x:a,y:o,width:l,height:c}=r;i(this,St)._uiManager.editComment(i(this,St),a+s*l,o+n*c,{...t,parentDimensions:r})}finish(){i(this,Bs)&&(i(this,Bs).focus({focusVisible:i(this,Pa)}),f(this,Pa,!1))}isDeleted(){return i(this,Ar)||i(this,zs)===""}isEmpty(){return i(this,zs)===null}hasBeenEdited(){return this.isDeleted()||i(this,zs)!==i(this,xd)}serialize(){return this.data}get data(){return{text:i(this,zs),richText:i(this,vr),date:i(this,wr),deleted:this.isDeleted()}}set data(t){if(t!==i(this,zs)&&f(this,vr,null),t===null){f(this,zs,""),f(this,Ar,!0);return}f(this,zs,t),f(this,wr,new Date),f(this,Ar,!1)}restoreData({text:t,richText:e,date:s}){f(this,zs,t),f(this,vr,e),f(this,wr,s),f(this,Ar,!1)}setInitialText(t,e=null){f(this,xd,t),this.data=t,f(this,wr,null),f(this,vr,e)}shown(){}destroy(){i(this,Bs)?.remove(),f(this,Bs,null),i(this,ve)?.remove(),f(this,ve,null),f(this,zs,""),f(this,vr,null),f(this,wr,null),f(this,St,null),f(this,Pa,!1),f(this,Ar,!1)}};ve=new WeakMap,Bs=new WeakMap,Pa=new WeakMap,St=new WeakMap,xd=new WeakMap,vr=new WeakMap,zs=new WeakMap,wr=new WeakMap,Ar=new WeakMap,Da=new WeakMap,Sd=new WeakSet,Qg=function(t,e){if(!i(this,St)._uiManager.hasCommentManager())return null;t.tabIndex="0",t.ariaHasPopup="dialog",e?(t.ariaControls="commentPopup",t.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(t.ariaControlsElements=[i(this,St)._uiManager.getCommentDialogElement()],t.setAttribute("data-l10n-id","pdfjs-editor-add-comment-button"));let s=i(this,St)._uiManager._signal;if(!(s instanceof AbortSignal)||s.aborted)return t;t.addEventListener("contextmenu",Js,{signal:s}),e&&(t.addEventListener("focusin",r=>{i(this,St)._focusEventsAllowed=!1,se(r)},{capture:!0,signal:s}),t.addEventListener("focusout",r=>{i(this,St)._focusEventsAllowed=!0,se(r)},{capture:!0,signal:s})),t.addEventListener("pointerdown",r=>r.stopPropagation(),{signal:s});let n=r=>{r.preventDefault(),t===i(this,Bs)?this.edit():i(this,St).toggleComment(!0)};return t.addEventListener("click",n,{capture:!0,signal:s}),t.addEventListener("keydown",r=>{r.target===t&&r.key==="Enter"&&(f(this,Pa,!0),n(r))},{signal:s}),t.addEventListener("pointerenter",()=>{i(this,St).toggleComment(!1,!0)},{signal:s}),t.addEventListener("pointerleave",()=>{i(this,St).toggleComment(!1,!1)},{signal:s}),t};u0=1e-4;Gh=class{constructor({container:t,isPinchingDisabled:e=null,isPinchingStopped:s=null,onPinchStart:n=null,onPinching:r=null,onPinchEnd:a=null,onPanning:o=null,signal:l}){g(this,Rt);g(this,zl);g(this,xr,!1);g(this,Ed,null);g(this,Cd);g(this,_d);g(this,Td);g(this,kd);g(this,Ia);g(this,Sr,!1);g(this,fn,null);g(this,La);g(this,Oi,new Set);g(this,pn,null);g(this,Oa);g(this,gn,null);g(this,Er,0);f(this,zl,t),f(this,Ed,s),f(this,Cd,e),f(this,_d,n),f(this,Td,r),f(this,kd,a),f(this,Ia,o),f(this,Oa,new AbortController),f(this,La,AbortSignal.any([l,i(this,Oa).signal])),t.addEventListener("touchstart",m(this,Rt,cv).bind(this),{passive:!1,signal:i(this,La)})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/vi.pixelRatio}get MIN_TOUCH_DISTANCE_TO_SCALE(){return 4/vi.pixelRatio}destroy(){m(this,Rt,em).call(this),i(this,Oi).clear(),i(this,Oa)?.abort(),f(this,Oa,null),i(this,fn)?.abort(),f(this,fn,null)}};zl=new WeakMap,xr=new WeakMap,Ed=new WeakMap,Cd=new WeakMap,_d=new WeakMap,Td=new WeakMap,kd=new WeakMap,Ia=new WeakMap,Sr=new WeakMap,fn=new WeakMap,La=new WeakMap,Oi=new WeakMap,pn=new WeakMap,Oa=new WeakMap,gn=new WeakMap,Er=new WeakMap,Rt=new WeakSet,cv=function(t){var s,n;if((s=i(this,Cd))!=null&&s.call(this))return;m(this,Rt,Zg).call(this,t);let e=i(this,Oi);for(let{identifier:r}of t.changedTouches)e.add(r);if(e.size===1){m(this,Rt,Jg).call(this);return}if(!i(this,gn)){f(this,gn,new AbortController);let r=AbortSignal.any([i(this,La),i(this,gn).signal]),a=i(this,zl),o={signal:r,capture:!1,passive:!1};a.addEventListener("touchmove",m(this,Rt,hv).bind(this),o);let l=m(this,Rt,dv).bind(this);a.addEventListener("touchend",l,o),a.addEventListener("touchcancel",l,o),o.capture=!0,a.addEventListener("pointerdown",se,o),a.addEventListener("pointermove",se,o),a.addEventListener("pointercancel",d0,o),a.addEventListener("pointerup",d0,o),(n=i(this,_d))==null||n.call(this)}f(this,Sr,Mg(t)),m(this,Rt,yf).call(this,t)},Jg=function(){if(i(this,fn))return;let t=f(this,fn,new AbortController),e=AbortSignal.any([i(this,La),t.signal]),s=i(this,zl),n={capture:!0,signal:e,passive:!1},r=a=>{a.pointerType==="touch"&&(i(this,fn)?.abort(),f(this,fn,null))};s.addEventListener("pointerdown",a=>{a.pointerType==="touch"&&(se(a),r(a))},n),s.addEventListener("pointerup",r,n),s.addEventListener("pointercancel",r,n)},Zg=function(t){let e=i(this,Oi);if(e.size===0)return;let s=f(this,Oi,new Set);for(let{identifier:n}of t.touches)e.has(n)&&s.add(n)},tm=function(t){let e=i(this,Oi),s=[];for(let n of t.touches)e.has(n.identifier)&&s.push(n);return s},yf=function(t){var r;let e=m(this,Rt,tm).call(this,t);if(e.length!==2||(r=i(this,Ed))!=null&&r.call(this)){f(this,pn,null);return}let[s,n]=e;f(this,pn,{touch0X:s.screenX,touch0Y:s.screenY,touch1X:n.screenX,touch1Y:n.screenY,panX:(s.clientX+n.clientX)/2,panY:(s.clientY+n.clientY)/2,screenPanX:(s.screenX+n.screenX)/2,screenPanY:(s.screenY+n.screenY)/2})},hv=function(t){var U,j,ne,re;if(!i(this,pn))return;let e=m(this,Rt,tm).call(this,t);if(e.length!==2)return;let s=i(this,Sr);if(f(this,Sr,Mg(t)),!i(this,Sr))return;if(!s){m(this,Rt,yf).call(this,t);return}let[n,r]=e,{screenX:a,screenY:o}=n,{screenX:l,screenY:c}=r,d=i(this,pn),{touch0X:u,touch0Y:p,touch1X:b,touch1Y:y,panX:v,panY:w}=d,A=b-u,x=y-p,S=l-a,E=c-o,C=(n.clientX+r.clientX)/2,_=(n.clientY+r.clientY)/2;d.panX=C,d.panY=_;let k=C-v,P=_-w,I=(a+l)/2,F=(o+c)/2,B=Math.hypot(I-d.screenPanX,F-d.screenPanY);d.screenPanX=I,d.screenPanY=F;let H=Math.hypot(S,E),L=Math.hypot(A,x),X=i(this,xr)?this.MIN_TOUCH_DISTANCE_TO_SCALE:this.MIN_TOUCH_DISTANCE_TO_PINCH+2*B;if(H<u0||L<u0||Math.abs(L-H)<=X){(k||P)&&((U=i(this,Ia))==null||U.call(this,k,P));return}d.touch0X=a,d.touch0Y=o,d.touch1X=l,d.touch1Y=c;let ct=Math.sign(H-L);if(!i(this,xr)){f(this,xr,!0),f(this,Er,ct),(k||P)&&((j=i(this,Ia))==null||j.call(this,k,P));return}if(i(this,Er)){let Zs=i(this,Er);if(f(this,Er,0),ct!==Zs&&Math.abs(H-L)<=2*B){f(this,xr,!1),(k||P)&&((ne=i(this,Ia))==null||ne.call(this,k,P));return}}(re=i(this,Td))==null||re.call(this,[v,w],L,H,k,P)},dv=function(t){if(m(this,Rt,Zg).call(this,t),i(this,Oi).size>=2){m(this,Rt,yf).call(this,t);return}let e=!!i(this,pn);m(this,Rt,em).call(this),i(this,Oi).size===1&&m(this,Rt,Jg).call(this),e&&Mg(t)},em=function(){var t;f(this,pn,null),f(this,xr,!1),f(this,Er,0),f(this,Sr,!1),i(this,gn)&&(i(this,gn).abort(),f(this,gn,null),(t=i(this,kd))==null||t.call(this))};q=class q{constructor(t){g(this,W);g(this,Ra,null);g(this,ii,null);g(this,It,null);g(this,ut,null);g(this,mn,null);g(this,Hl,!1);g(this,Cr,null);g(this,Md,"");g(this,we,null);g(this,Na,null);g(this,bn,null);g(this,Hs,null);g(this,_r,null);g(this,Pd,"");g(this,Fa,!1);g(this,hs,null);g(this,Dd,!1);g(this,Ba,!1);g(this,yn,!1);g(this,Ri,null);g(this,Ul,0);g(this,$l,0);g(this,Us,null);g(this,Tr,null);T(this,"isSelected",!1);T(this,"_isCopy",!1);T(this,"_editToolbar",null);T(this,"_initialOptions",Object.create(null));T(this,"_initialData",null);T(this,"_isVisible",!0);T(this,"_uiManager",null);T(this,"_focusEventsAllowed",!0);g(this,Id,!1);g(this,Lp,q._zIndex++);this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null,this.annotationElementId=t.annotationElementId||null,this.creationDate=t.creationDate||new Date,this.modificationDate=t.modificationDate||null,this.canAddComment=!0;let{rotation:e,rawDims:{pageWidth:s,pageHeight:n,pageX:r,pageY:a}}=this.parent.viewport;this.rotation=e,this.pageRotation=(360+e-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[s,n],this.pageTranslation=[r,a];let[o,l]=this.parentDimensions;this.x=t.x/o,this.y=t.y/l,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){let t=q.prototype._resizeWithKeyboard,e=oa.TRANSLATE_SMALL,s=oa.TRANSLATE_BIG;return G(this,"_resizerKeyboardManager",new Jo([[["ArrowLeft"],t,{args:[-e,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-s,0]}],[["ArrowRight"],t,{args:[e,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[s,0]}],[["ArrowUp"],t,{args:[0,-e]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-s]}],[["ArrowDown"],t,{args:[0,e]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,s]}],[["Escape"],q.prototype._stopResizingWithKeyboard]]))}updatePageIndex(t){this.pageIndex=t}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return G(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){let e=new hm({id:t._uiManager.getId(),parent:t.parent,uiManager:t._uiManager});e.annotationElementId=t.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}static initialize(t,e){if(q._l10n??(q._l10n=t),q._l10nAlert??(q._l10nAlert=Object.freeze({highlight:"pdfjs-editor-highlight-added-alert",freetext:"pdfjs-editor-freetext-added-alert",ink:"pdfjs-editor-ink-added-alert",stamp:"pdfjs-editor-stamp-added-alert",signature:"pdfjs-editor-signature-added-alert"})),q._l10nResizer??(q._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),q._borderLineWidth!==-1)return;let s=getComputedStyle(document.documentElement);q._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,e){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,e){rt("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return i(this,Id)}set _isDraggable(t){f(this,Id,t),this.div?.classList.toggle("draggable",t)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){let[t,e]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*e/(t*2),this.y+=this.width*t/(e*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*e/(t*2),this.y-=this.width*t/(e*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=i(this,Lp)}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):(m(this,W,bh).call(this),i(this,Hs)?.remove(),f(this,Hs,null)),this.parent=t}focusin(t){this._focusEventsAllowed&&(i(this,Fa)?f(this,Fa,!1):this.parent.setSelected(this))}focusout(t){!this._focusEventsAllowed||!this.isAttachedToDOM||t.relatedTarget?.closest(`#${this.id}`)||(t.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,e,s,n){let[r,a]=this.parentDimensions;[s,n]=this.screenToPageTranslation(s,n),this.x=(t+s)/r,this.y=(e+n)/a,this.fixAndSetPosition()}_moveAfterPaste(t,e){if(this.isClone){delete this.isClone;return}let[s,n]=this.parentDimensions;this.setAt(t*s,e*n,this.width*s,this.height*n),this._onTranslated()}translate(t,e){m(this,W,sm).call(this,this.parentDimensions,t,e)}translateInPage(t,e){i(this,hs)||f(this,hs,[this.x,this.y,this.width,this.height]),m(this,W,sm).call(this,this.pageDimensions,t,e),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(t,e){i(this,hs)||f(this,hs,[this.x,this.y,this.width,this.height]);let{div:s,parentDimensions:[n,r]}=this;if(this.x+=t/n,this.y+=e/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:u,y:p}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,p)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:a,y:o}=this,[l,c]=this.getBaseTranslation();a+=l,o+=c;let{style:d}=s;d.left=`${(100*a).toFixed(2)}%`,d.top=`${(100*o).toFixed(2)}%`,this._onTranslating(a,o)}_onTranslating(t,e){}_onTranslated(t,e){}get _hasBeenMoved(){return!!i(this,hs)&&(i(this,hs)[0]!==this.x||i(this,hs)[1]!==this.y)}get _hasBeenResized(){return!!i(this,hs)&&(i(this,hs)[2]!==this.width||i(this,hs)[3]!==this.height)}getBaseTranslation(){let[t,e]=this.parentDimensions,{_borderLineWidth:s}=q,n=s/t,r=s/e;switch(this.rotation){case 90:return[-n,r];case 180:return[n,r];case 270:return[n,-r];default:return[-n,-r]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){let{div:{style:e},pageDimensions:[s,n]}=this,{x:r,y:a,width:o,height:l}=this;if(o*=s,l*=n,r*=s,a*=n,this._mustFixPosition)switch(t){case 0:r=Ct(r,0,s-o),a=Ct(a,0,n-l);break;case 90:r=Ct(r,0,s-l),a=Ct(a,o,n);break;case 180:r=Ct(r,o,s),a=Ct(a,l,n);break;case 270:r=Ct(r,l,s),a=Ct(a,0,n-o);break}this.x=r/=s,this.y=a/=n;let[c,d]=this.getBaseTranslation();r+=c,a+=d,e.left=`${(100*r).toFixed(2)}%`,e.top=`${(100*a).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(t,e){var s;return m(s=q,Ld,im).call(s,t,e,this.parentRotation)}pageTranslationToScreen(t,e){var s;return m(s=q,Ld,im).call(s,t,e,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){let{parentScale:t,pageDimensions:[e,s]}=this;return[e*t,s*t]}setDims(){let{div:{style:t},width:e,height:s}=this;t.width=`${(100*e).toFixed(2)}%`,t.height=`${(100*s).toFixed(2)}%`}getInitialTranslation(){return[0,0]}_onResized(){}static _round(t){return Math.round(t*1e4)/1e4}_onResizing(){}altTextFinish(){i(this,It)?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||i(this,Ba))return this._editToolbar;this._editToolbar=new Hg(this),this.div.append(this._editToolbar.render());let{toolbarButtons:t}=this;if(t)for(let[e,s]of t)await this._editToolbar.addButton(e,s);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar}addCommentButtonInToolbar(){this._editToolbar?.addButtonBefore("comment",this.addCommentButton(),".deleteButton")}removeCommentButtonFromToolbar(){this._editToolbar?.removeButton("comment")}removeEditToolbar(){this._editToolbar?.remove(),this._editToolbar=null,i(this,It)?.destroy()}addContainer(t){let e=this._editToolbar?.div;e?e.before(t):this.div.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return i(this,It)||(ap.initialize(q._l10n),f(this,It,new ap(this)),i(this,Ra)&&(i(this,It).data=i(this,Ra),f(this,Ra,null))),i(this,It)}get altTextData(){return i(this,It)?.data}set altTextData(t){i(this,It)&&(i(this,It).data=t)}get guessedAltText(){return i(this,It)?.guessedText}async setGuessedAltText(t){await i(this,It)?.setGuessedText(t)}serializeAltText(t){return i(this,It)?.serialize(t)}hasAltText(){return!!i(this,It)&&!i(this,It).isEmpty()}hasAltTextData(){return i(this,It)?.hasData()??!1}focusCommentButton(){i(this,ut)?.focusButton()}addCommentButton(){return this.canAddComment?i(this,ut)||f(this,ut,new ml(this)):null}addStandaloneCommentButton(){if(this._uiManager.hasCommentManager()){if(i(this,mn)){this._uiManager.isEditingMode()&&i(this,mn).classList.remove("hidden");return}this.hasComment&&(f(this,mn,i(this,ut).renderForStandalone()),this.div.append(i(this,mn)))}}removeStandaloneCommentButton(){i(this,ut).removeStandaloneCommentButton(),f(this,mn,null)}hideStandaloneCommentButton(){i(this,mn)?.classList.add("hidden")}get comment(){if(!i(this,ut))return null;let{data:{richText:t,text:e,date:s,deleted:n}}=i(this,ut);return{text:e,richText:t,date:s,deleted:n,color:this.getNonHCMColor(),opacity:this.opacity??1}}set comment(t){i(this,ut)||f(this,ut,new ml(this)),typeof t=="object"&&t!==null?i(this,ut).restoreData(t):i(this,ut).data=t,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData({comment:t,popupRef:e,richText:s}){if(!e||(i(this,ut)||f(this,ut,new ml(this)),i(this,ut).setInitialText(t,s),!this.annotationElementId))return;let n=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);n&&this.updateFromAnnotationLayer(n)}get hasEditedComment(){return i(this,ut)?.hasBeenEdited()}get hasDeletedComment(){return i(this,ut)?.isDeleted()}get hasComment(){return!!i(this,ut)&&!i(this,ut).isEmpty()&&!i(this,ut).isDeleted()}async editComment(t){i(this,ut)||f(this,ut,new ml(this)),i(this,ut).edit(t)}toggleComment(t,e=void 0){this.hasComment&&this._uiManager.toggleComment(this,t,e)}setSelectedCommentButton(t){i(this,ut).setSelectedButton(t)}addComment(t){if(this.hasEditedComment){let[,,,n]=t.rect,[r]=this.pageDimensions,[a]=this.pageTranslation,o=a+r+1,l=n-100,c=o+180;t.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[o,l,c,n]}}}updateFromAnnotationLayer({popup:{contents:t,deleted:e}}){i(this,ut).data=e?null:t}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){let t=this.div=document.createElement("div");t.setAttribute("data-editor-rotation",(360-this.rotation)%360),t.className=this.name,t.setAttribute("id",this.id),t.tabIndex=i(this,Hl)?-1:0,t.setAttribute("role","application"),this.defaultL10nId&&t.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||t.classList.add("hidden"),this.setInForeground(),m(this,W,om).call(this);let[e,s]=this.parentDimensions;this.parentRotation%180!==0&&(t.style.maxWidth=`${(100*s/e).toFixed(2)}%`,t.style.maxHeight=`${(100*e/s).toFixed(2)}%`);let[n,r]=this.getInitialTranslation();return this.translate(n,r),Y0(this,t,["keydown","pointerdown","dblclick"]),m(this,W,lm).call(this),this.addStandaloneCommentButton(),this._uiManager._editorUndoBar?.hide(),t}pointerdown(t){let{isMac:e}=lt.platform;if(t.button!==0||t.ctrlKey&&e){t.preventDefault();return}if(f(this,Fa,!0),this._isDraggable){m(this,W,bv).call(this,t);return}m(this,W,am).call(this,t)}_onStartDragging(){}_onStopDragging(){}moveInDOM(){i(this,Ri)&&clearTimeout(i(this,Ri)),f(this,Ri,setTimeout(()=>{f(this,Ri,null),this.parent?.moveEditorInDOM(this)},0))}_setParentAndPosition(t,e,s){t.changeParent(this),this.x=e,this.y=s,this.fixAndSetPosition(),this._onTranslated()}getRect(t,e,s=this.rotation){let n=this.parentScale,[r,a]=this.pageDimensions,[o,l]=this.pageTranslation,c=t/n,d=e/n,u=this.x*r,p=this.y*a,b=this.width*r,y=this.height*a;switch(s){case 0:return[u+c+o,a-p-d-y+l,u+c+b+o,a-p-d+l];case 90:return[u+d+o,a-p+c+l,u+d+y+o,a-p+c+b+l];case 180:return[u-c-b+o,a-p+d+l,u-c+o,a-p+d+y+l];case 270:return[u-d-y+o,a-p-c-b+l,u-d+o,a-p-c+l];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,e){let[s,n,r,a]=t,o=r-s,l=a-n;switch(this.rotation){case 0:return[s,e-a,o,l];case 90:return[s,e-n,l,o];case 180:return[r,e-n,o,l];case 270:return[r,e-a,l,o];default:throw new Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&q._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){i(this,ut)?.onUpdatedColor()}getData(){let{comment:{text:t,color:e,date:s,opacity:n,deleted:r,richText:a},uid:o,pageIndex:l,creationDate:c,modificationDate:d}=this;return{id:o,pageIndex:l,rect:this.getPDFRect(),richText:a,contentsObj:{str:t},creationDate:c,modificationDate:s||d,popupRef:!r,color:e,opacity:n}}onceAdded(t){}isEmpty(){return!1}enableEditMode(){return this.isInEditMode()?!1:(this.parent.setEditingState(!1),f(this,Ba,!0),!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),f(this,Ba,!1),!0):!1}isInEditMode(){return i(this,Ba)}shouldGetKeyboardEvents(){return i(this,yn)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){let{top:t,left:e,bottom:s,right:n}=this.getClientDimensions(),{innerHeight:r,innerWidth:a}=window;return e<a&&n>0&&t<r&&s>0}rebuild(){m(this,W,om).call(this),m(this,W,lm).call(this)}rotate(t){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(t=!1,e=null){return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:this._initialData?.popupRef||""}}static async deserialize(t,e,s){let n=new this.prototype.constructor({parent:e,id:s.getId(),uiManager:s,annotationElementId:t.annotationElementId,creationDate:t.creationDate,modificationDate:t.modificationDate});n.rotation=t.rotation,f(n,Ra,t.accessibilityData),n._isCopy=t.isCopy||!1;let[r,a]=n.pageDimensions,[o,l,c,d]=n.getRectInCurrentCoords(t.rect,a);return n.x=o/r,n.y=l/a,n.width=c/r,n.height=d/a,n}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(i(this,_r)?.abort(),f(this,_r,null),this.isEmpty()||this.commit(),i(this,Tr)?.destroy(),f(this,Tr,null),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.hideCommentPopup(),i(this,Ri)&&(clearTimeout(i(this,Ri)),f(this,Ri,null)),m(this,W,bh).call(this),this.removeEditToolbar(),i(this,Us)){for(let t of i(this,Us).values())clearTimeout(t);f(this,Us,null)}this.parent=null,i(this,Hs)?.remove(),f(this,Hs,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(m(this,W,uv).call(this),i(this,we).classList.remove("hidden"))}get toolbarPosition(){return null}get commentButtonPosition(){return this._uiManager.direction==="ltr"?[1,0]:[0,0]}get commentButtonPositionInPage(){let{commentButtonPosition:[t,e]}=this,[s,n,r,a]=this.getPDFRect();return[q._round(s+(r-s)*t),q._round(n+(a-n)*(1-e))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return i(this,ut).commentPopupPositionInLayer}set commentPopupPosition(t){i(this,ut).commentPopupPositionInLayer=t}hasDefaultPopupPosition(){return i(this,ut).hasDefaultPopupPosition()}get commentButtonWidth(){return i(this,ut).commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(t){i(this,ut)?.setCommentButtonStates(t)}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),f(this,bn,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});let e=i(this,we).children;if(!i(this,ii)){f(this,ii,Array.from(e));let a=m(this,W,yv).bind(this),o=m(this,W,vv).bind(this),l=this._uiManager._signal;for(let c of i(this,ii)){let d=c.getAttribute("data-resizer-name");c.setAttribute("role","spinbutton"),c.addEventListener("keydown",a,{signal:l}),c.addEventListener("blur",o,{signal:l}),c.addEventListener("focus",m(this,W,wv).bind(this,d),{signal:l}),c.setAttribute("data-l10n-id",q._l10nResizer[d])}}let s=i(this,ii)[0],n=0;for(let a of e){if(a===s)break;n++}let r=(360-this.rotation+this.parentRotation)%360/90*(i(this,ii).length/4);if(r!==n){if(r<n)for(let o=0;o<n-r;o++)i(this,we).append(i(this,we).firstElementChild);else if(r>n)for(let o=0;o<r-n;o++)i(this,we).firstElementChild.before(i(this,we).lastElementChild);let a=0;for(let o of e){let c=i(this,ii)[a++].getAttribute("data-resizer-name");o.setAttribute("data-l10n-id",q._l10nResizer[c])}}m(this,W,cm).call(this,0),f(this,yn,!0),i(this,we).firstElementChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}_resizeWithKeyboard(t,e){i(this,yn)&&m(this,W,rm).call(this,i(this,Pd),{deltaX:t,deltaY:e,fromKeyboard:!0})}_stopResizingWithKeyboard(){m(this,W,bh).call(this),this.div.focus()}select(){if(this.isSelected&&this._editToolbar){this._editToolbar.show();return}if(this.isSelected=!0,this.makeResizable(),this.div?.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()});return}this._editToolbar?.show(),i(this,It)?.toggleAltTextBadge(!1)}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>this.div?.focus({preventScroll:!0}),0)}unselect(){this.isSelected&&(this.isSelected=!1,i(this,we)?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),i(this,It)?.toggleAltTextBadge(!0),this.hideCommentPopup())}hideCommentPopup(){this.hasComment&&this._uiManager.toggleComment(null)}updateParams(t,e){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(t){t.target.nodeName!=="BUTTON"&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.uid}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return i(this,Dd)}set isEditing(t){f(this,Dd,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,e=!1){if(e){i(this,Us)||f(this,Us,new Map);let{action:s}=t,n=i(this,Us).get(s);n&&clearTimeout(n),n=setTimeout(()=>{this._reportTelemetry(t),i(this,Us).delete(s),i(this,Us).size===0&&f(this,Us,null)},q._telemetryTimeout),i(this,Us).set(s,n);return}t.type||(t.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),f(this,Hl,!1)}disable(){this.div&&(this.div.tabIndex=-1),f(this,Hl,!0)}updateFakeAnnotationElement(t){if(!i(this,Hs)&&!this.deleted){f(this,Hs,t.addFakeAnnotation(this));return}if(this.deleted){i(this,Hs).remove(),f(this,Hs,null);return}(this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&i(this,Hs).updateEdited({rect:this.getPDFRect(),popup:this.comment})}renderAnnotationElement(t){if(this.deleted)return t.hide(),null;let e=t.container.querySelector(".annotationContent");if(!e)e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),t.container.prepend(e);else if(e.nodeName==="CANVAS"){let s=e;e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),s.before(e)}return e}resetAnnotationElement(t){let{firstElementChild:e}=t.container;e?.nodeName==="DIV"&&e.classList.contains("annotationContent")&&e.remove()}};Ra=new WeakMap,ii=new WeakMap,It=new WeakMap,ut=new WeakMap,mn=new WeakMap,Hl=new WeakMap,Cr=new WeakMap,Md=new WeakMap,we=new WeakMap,Na=new WeakMap,bn=new WeakMap,Hs=new WeakMap,_r=new WeakMap,Pd=new WeakMap,Fa=new WeakMap,hs=new WeakMap,Dd=new WeakMap,Ba=new WeakMap,yn=new WeakMap,Ri=new WeakMap,Ul=new WeakMap,$l=new WeakMap,Us=new WeakMap,Tr=new WeakMap,Id=new WeakMap,Lp=new WeakMap,W=new WeakSet,sm=function([t,e],s,n){[s,n]=this.screenToPageTranslation(s,n),this.x+=s/t,this.y+=n/e,this._onTranslating(this.x,this.y),this.fixAndSetPosition()},Ld=new WeakSet,im=function(t,e,s){switch(s){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}},vf=function(t){switch(t){case 90:{let[e,s]=this.pageDimensions;return[0,-e/s,s/e,0]}case 180:return[-1,0,0,-1];case 270:{let[e,s]=this.pageDimensions;return[0,e/s,-s/e,0]}default:return[1,0,0,1]}},uv=function(){if(i(this,we))return;f(this,we,document.createElement("div")),i(this,we).classList.add("resizers");let t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],e=this._uiManager._signal;for(let s of t){let n=document.createElement("div");i(this,we).append(n),n.classList.add("resizer",s),n.setAttribute("data-resizer-name",s),n.addEventListener("pointerdown",m(this,W,fv).bind(this,s),{signal:e}),n.addEventListener("contextmenu",Js,{signal:e}),n.tabIndex=-1}this.div.prepend(i(this,we))},fv=function(t,e){e.preventDefault();let{isMac:s}=lt.platform;if(e.button!==0||e.ctrlKey&&s)return;i(this,It)?.toggle(!1);let n=this._isDraggable;this._isDraggable=!1,f(this,Na,[e.screenX,e.screenY]);let r=new AbortController,a=this._uiManager.combinedSignal(r);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",m(this,W,rm).bind(this,t),{passive:!0,capture:!0,signal:a}),window.addEventListener("touchmove",se,{passive:!1,signal:a}),window.addEventListener("contextmenu",Js,{signal:a}),f(this,bn,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});let o=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;let c=()=>{r.abort(),this.parent.togglePointerEvents(!0),i(this,It)?.toggle(!0),this._isDraggable=n,this.parent.div.style.cursor=o,this.div.style.cursor=l,m(this,W,wf).call(this)};window.addEventListener("pointerup",c,{signal:a}),window.addEventListener("blur",c,{signal:a})},nm=function(t,e,s,n){this.width=s,this.height=n,this.x=t,this.y=e,this.setDims(),this.fixAndSetPosition(),this._onResized()},wf=function(){if(!i(this,bn))return;let{savedX:t,savedY:e,savedWidth:s,savedHeight:n}=i(this,bn);f(this,bn,null);let r=this.x,a=this.y,o=this.width,l=this.height;r===t&&a===e&&o===s&&l===n||this.addCommands({cmd:m(this,W,nm).bind(this,r,a,o,l),undo:m(this,W,nm).bind(this,t,e,s,n),mustExec:!0})},rm=function(t,e){let[s,n]=this.parentDimensions,r=this.x,a=this.y,o=this.width,l=this.height,c=q.MIN_SIZE/s,d=q.MIN_SIZE/n,u=m(this,W,vf).call(this,this.rotation),p=(U,j)=>[u[0]*U+u[2]*j,u[1]*U+u[3]*j],b=m(this,W,vf).call(this,360-this.rotation),y=(U,j)=>[b[0]*U+b[2]*j,b[1]*U+b[3]*j],v,w,A=!1,x=!1;switch(t){case"topLeft":A=!0,v=(U,j)=>[0,0],w=(U,j)=>[U,j];break;case"topMiddle":v=(U,j)=>[U/2,0],w=(U,j)=>[U/2,j];break;case"topRight":A=!0,v=(U,j)=>[U,0],w=(U,j)=>[0,j];break;case"middleRight":x=!0,v=(U,j)=>[U,j/2],w=(U,j)=>[0,j/2];break;case"bottomRight":A=!0,v=(U,j)=>[U,j],w=(U,j)=>[0,0];break;case"bottomMiddle":v=(U,j)=>[U/2,j],w=(U,j)=>[U/2,0];break;case"bottomLeft":A=!0,v=(U,j)=>[0,j],w=(U,j)=>[U,0];break;case"middleLeft":x=!0,v=(U,j)=>[0,j/2],w=(U,j)=>[U,j/2];break}let S=v(o,l),E=w(o,l),C=p(...E),_=q._round(r+C[0]),k=q._round(a+C[1]),P=1,I=1,F,B;if(e.fromKeyboard)({deltaX:F,deltaY:B}=e);else{let{screenX:U,screenY:j}=e,[ne,re]=i(this,Na);[F,B]=this.screenToPageTranslation(U-ne,j-re),i(this,Na)[0]=U,i(this,Na)[1]=j}if([F,B]=y(F/s,B/n),A){let U=Math.hypot(o,l);P=I=Math.max(Math.min(Math.hypot(E[0]-S[0]-F,E[1]-S[1]-B)/U,1/o,1/l),c/o,d/l)}else x?P=Ct(Math.abs(E[0]-S[0]-F),c,1)/o:I=Ct(Math.abs(E[1]-S[1]-B),d,1)/l;let H=q._round(o*P),L=q._round(l*I);C=p(...w(H,L));let X=_-C[0],ct=k-C[1];i(this,hs)||f(this,hs,[this.x,this.y,this.width,this.height]),this.width=H,this.height=L,this.x=X,this.y=ct,this.setDims(),this.fixAndSetPosition(),this._onResizing()},pv=function(){f(this,bn,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),i(this,It)?.toggle(!1),this.parent.togglePointerEvents(!1)},gv=function(t,e,s){let r=.7*(s/e)+1-.7;if(r===1)return;let a=m(this,W,vf).call(this,this.rotation),o=(_,k)=>[a[0]*_+a[2]*k,a[1]*_+a[3]*k],[l,c]=this.parentDimensions,d=this.x,u=this.y,p=this.width,b=this.height,y=q.MIN_SIZE/l,v=q.MIN_SIZE/c;r=Math.max(Math.min(r,1/p,1/b),y/p,v/b);let w=q._round(p*r),A=q._round(b*r);if(w===p&&A===b)return;i(this,hs)||f(this,hs,[d,u,p,b]);let x=o(p/2,b/2),S=q._round(d+x[0]),E=q._round(u+x[1]),C=o(w/2,A/2);this.x=S-C[0],this.y=E-C[1],this.width=w,this.height=A,this.setDims(),this.fixAndSetPosition(),this._onResizing()},mv=function(){i(this,It)?.toggle(!0),this.parent.togglePointerEvents(!0),m(this,W,wf).call(this)},am=function(t){let{isMac:e}=lt.platform;t.ctrlKey&&!e||t.shiftKey||t.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this)},bv=function(t){let{isSelected:e}=this;this._uiManager.setUpDragSession();let s=!1,n=new AbortController,r=this._uiManager.combinedSignal(n),a={capture:!0,passive:!1,signal:r},o=c=>{n.abort(),f(this,Cr,null),f(this,Fa,!1),this._uiManager.endDragSession()||m(this,W,am).call(this,c),s&&this._onStopDragging()};e&&(f(this,Ul,t.clientX),f(this,$l,t.clientY),f(this,Cr,t.pointerId),f(this,Md,t.pointerType),window.addEventListener("pointermove",c=>{s||(s=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());let{clientX:d,clientY:u,pointerId:p}=c;if(p!==i(this,Cr)){se(c);return}let[b,y]=this.screenToPageTranslation(d-i(this,Ul),u-i(this,$l));f(this,Ul,d),f(this,$l,u),this._uiManager.dragSelectedEditors(b,y),this.div.scrollIntoView({block:"nearest"})},a),window.addEventListener("touchmove",se,a),window.addEventListener("pointerdown",c=>{c.pointerType===i(this,Md)&&(i(this,Tr)||c.isPrimary)&&o(c),se(c)},a));let l=c=>{if(!i(this,Cr)||i(this,Cr)===c.pointerId){o(c);return}se(c)};window.addEventListener("pointerup",l,{signal:r}),window.addEventListener("blur",l,{signal:r})},om=function(){if(i(this,_r)||!this.div)return;f(this,_r,new AbortController);let t=this._uiManager.combinedSignal(i(this,_r));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})},lm=function(){i(this,Tr)||!this.div||!this.isResizable||!this._uiManager._supportsPinchToZoom||f(this,Tr,new Gh({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:m(this,W,pv).bind(this),onPinching:m(this,W,gv).bind(this),onPinchEnd:m(this,W,mv).bind(this),signal:this._uiManager._signal}))},yv=function(t){q._resizerKeyboardManager.exec(this,t)},vv=function(t){i(this,yn)&&t.relatedTarget?.parentNode!==i(this,we)&&m(this,W,bh).call(this)},wv=function(t){f(this,Pd,i(this,yn)?t:"")},cm=function(t){if(i(this,ii))for(let e of i(this,ii))e.tabIndex=t},bh=function(){f(this,yn,!1),m(this,W,cm).call(this,-1),m(this,W,wf).call(this)},g(q,Ld),T(q,"_l10n",null),T(q,"_l10nAlert",null),T(q,"_l10nResizer",null),T(q,"_borderLineWidth",-1),T(q,"_colorManager",new Wg),T(q,"_zIndex",1),T(q,"_telemetryTimeout",1e3);wt=q,hm=class extends wt{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}},f0=3285377520,Ds=4294901760,xi=65535,jh=class{constructor(t){this.h1=t?t&4294967295:f0,this.h2=t?t&4294967295:f0}update(t){let e,s;if(typeof t=="string"){e=new Uint8Array(t.length*2),s=0;for(let v=0,w=t.length;v<w;v++){let A=t.charCodeAt(v);A<=255?e[s++]=A:(e[s++]=A>>>8,e[s++]=A&255)}}else if(ArrayBuffer.isView(t))e=t.slice(),s=e.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");let n=s>>2,r=s-n*4,a=new Uint32Array(e.buffer,0,n),o=0,l=0,c=this.h1,d=this.h2,u=3432918353,p=461845907,b=u&xi,y=p&xi;for(let v=0;v<n;v++)v&1?(o=a[v],o=o*u&Ds|o*b&xi,o=o<<15|o>>>17,o=o*p&Ds|o*y&xi,c^=o,c=c<<13|c>>>19,c=c*5+3864292196):(l=a[v],l=l*u&Ds|l*b&xi,l=l<<15|l>>>17,l=l*p&Ds|l*y&xi,d^=l,d=d<<13|d>>>19,d=d*5+3864292196);switch(o=0,r){case 3:o^=e[n*4+2]<<16;case 2:o^=e[n*4+1]<<8;case 1:o^=e[n*4],o=o*u&Ds|o*b&xi,o=o<<15|o>>>17,o=o*p&Ds|o*y&xi,n&1?c^=o:d^=o}this.h1=c,this.h2=d}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,t=t*3981806797&Ds|t*36045&xi,e=e*4283543511&Ds|((e<<16|t>>>16)*2950163797&Ds)>>>16,t^=e>>>1,t=t*444984403&Ds|t*60499&xi,e=e*3301882366&Ds|((e<<16|t>>>16)*3120437893&Ds)>>>16,t^=e>>>1,(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}},Vh=Object.freeze({map:null,hash:"",transfer:void 0}),Wh=class{constructor(){g(this,Op);g(this,za,!1);g(this,Ha,null);g(this,vn,null);g(this,Ae,new Map);T(this,"onSetModified",null);T(this,"onResetModified",null);T(this,"onAnnotationEditor",null)}getValue(t,e){let s=i(this,Ae).get(t);return s===void 0?e:Object.assign(e,s)}getRawValue(t){return i(this,Ae).get(t)}remove(t){let e=i(this,Ae).get(t);e!==void 0&&(e instanceof wt&&i(this,vn).delete(e.annotationElementId),i(this,Ae).delete(t),i(this,Ae).size===0&&this.resetModified(),!i(this,Ae).values().some(s=>s instanceof wt)&&this.onAnnotationEditor?.(null))}setValue(t,e){let s=i(this,Ae).get(t),n=!1;if(s!==void 0)for(let[r,a]of Object.entries(e))s[r]!==a&&(n=!0,s[r]=a);else n=!0,i(this,Ae).set(t,e);n&&m(this,Op,Av).call(this),e instanceof wt&&((i(this,vn)||f(this,vn,new Map)).set(e.annotationElementId,e),this.onAnnotationEditor?.(e.constructor._type))}has(t){return i(this,Ae).has(t)}get size(){return i(this,Ae).size}resetModified(){i(this,za)&&(f(this,za,!1),this.onResetModified?.())}get print(){return new op(this)}get serializable(){if(i(this,Ae).size===0)return Vh;let t=new Map,e=new jh,s=[],n=Object.create(null),r=!1;for(let[a,o]of i(this,Ae)){let l=o instanceof wt?o.serialize(!1,n):o;o.page&&(o.pageIndex=o.page._pageIndex,delete o.page),l&&(t.set(a,l),e.update(`${a}:${JSON.stringify(l)}`),r||(r=!!l.bitmap))}if(r)for(let a of t.values())a.bitmap&&s.push(a.bitmap);return t.size>0?{map:t,hash:e.hexdigest(),transfer:s}:Vh}get editorStats(){let t=null,e=new Map,s=0,n=0;for(let r of i(this,Ae).values()){if(!(r instanceof wt)){r.popup&&(r.popup.deleted?n+=1:s+=1);continue}r.isCommentDeleted?n+=1:r.hasEditedComment&&(s+=1);let a=r.telemetryFinalData;if(!a)continue;let{type:o}=a;e.getOrInsertComputed(o,()=>Object.getPrototypeOf(r).constructor),t||(t=Object.create(null));let l=t[o]||(t[o]=new Map);for(let[c,d]of Object.entries(a)){if(c==="type")continue;let u=l.getOrInsertComputed(c,rg);u.set(d,(u.get(d)??0)+1)}}if((n>0||s>0)&&(t||(t=Object.create(null)),t.comments={deleted:n,edited:s}),!t)return null;for(let[r,a]of e)t[r]=a.computeTelemetryFinalData(t[r]);return t}resetModifiedIds(){f(this,Ha,null)}updateEditor(t,e){let s=i(this,vn)?.get(t);return s?(s.updateFromAnnotationLayer(e),!0):!1}getEditor(t){return i(this,vn)?.get(t)||null}get modifiedIds(){if(i(this,Ha))return i(this,Ha);let t=[];if(i(this,vn))for(let s of i(this,vn).values())s.serialize()&&t.push(s.annotationElementId);let e="";if(t.length){let s=new jh;s.update(t.join(",")),e=s.hexdigest()}return f(this,Ha,{ids:new Set(t),hash:e})}[Symbol.iterator](){return i(this,Ae).entries()}};za=new WeakMap,Ha=new WeakMap,vn=new WeakMap,Ae=new WeakMap,Op=new WeakSet,Av=function(){i(this,za)||(f(this,za,!0),this.onSetModified?.())};op=class extends Wh{constructor(e){super();g(this,Od,Vh);let{serializable:s}=e;if(s===Vh)return;let{map:n,hash:r,transfer:a}=s,o=structuredClone(n,a?{transfer:a}:null);f(this,Od,{map:o,hash:r,transfer:[]})}get print(){rt("Should not call PrintAnnotationStorage.print")}get serializable(){return i(this,Od)}get modifiedIds(){return G(this,"modifiedIds",{ids:new Set,hash:""})}};Od=new WeakMap;cl="__forcedDependency",{floor:p0,ceil:g0}=Math;dm=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0],um=class{constructor(t,e){g(this,Gl);g(this,kr);f(this,Gl,t),f(this,kr,e)}get length(){return i(this,Gl).length}isEmpty(t){return i(this,Gl)[t]===dm}minX(t){return i(this,kr)[t*4+0]/256}minY(t){return i(this,kr)[t*4+1]/256}maxX(t){return(i(this,kr)[t*4+2]+1)/256}maxY(t){return(i(this,kr)[t*4+3]+1)/256}};Gl=new WeakMap,kr=new WeakMap;b0=(h,t)=>h?.getOrInsertComputed(t,()=>({dependencies:new Set,isRenderingOperation:!1})),fm=class{constructor(t,e){g(this,Rd);g(this,wn,[[1,0,0,1,0,0]]);g(this,ht,[-1/0,-1/0,1/0,1/0]);g(this,kt,new Float64Array(Vn));T(this,"_pendingBBoxIdx",-1);g(this,Ua);g(this,$a);g(this,Ga);g(this,Re);T(this,"_savesStack",[]);T(this,"_markedContentStack",[]);f(this,Ua,t.width),f(this,$a,t.height),m(this,Rd,pm).call(this,e)}growOperationsCount(t){t>=i(this,Re).length&&m(this,Rd,pm).call(this,t,i(this,Re))}get clipBox(){return i(this,ht)}save(t){return f(this,ht,{__proto__:i(this,ht)}),this._savesStack.push(t),this}restore(t,e){let s=Object.getPrototypeOf(i(this,ht));if(s===null)return this;f(this,ht,s);let n=this._savesStack.pop();return n!==void 0&&(e?.(n,t),i(this,Re)[t]=i(this,Re)[n]),this}recordOpenMarker(t){return this._savesStack.push(t),this}getOpenMarker(){return this._savesStack.length===0?null:this._savesStack.at(-1)}recordCloseMarker(t,e){let s=this._savesStack.pop();return s!==void 0&&(e?.(s,t),i(this,Re)[t]=i(this,Re)[s]),this}beginMarkedContent(t){return this._markedContentStack.push(t),this}endMarkedContent(t,e){let s=this._markedContentStack.pop();return s!==void 0&&(e?.(s,t),i(this,Re)[t]=i(this,Re)[s]),this}pushBaseTransform(t){return i(this,wn).push(D.multiplyByDOMMatrix(i(this,wn).at(-1),t.getTransform())),this}popBaseTransform(){return i(this,wn).length>1&&i(this,wn).pop(),this}resetBBox(t){return this._pendingBBoxIdx!==t&&(this._pendingBBoxIdx=t,i(this,kt).set(Vn,0)),this}recordClipBox(t,e,s,n,r,a){let o=D.multiplyByDOMMatrix(i(this,wn).at(-1),e.getTransform()),l=Vn.slice();D.axialAlignedBoundingBox([s,r,n,a],o,l);let c=D.intersect(i(this,ht),l);return c?(i(this,ht)[0]=c[0],i(this,ht)[1]=c[1],i(this,ht)[2]=c[2],i(this,ht)[3]=c[3]):(i(this,ht)[0]=i(this,ht)[1]=1/0,i(this,ht)[2]=i(this,ht)[3]=-1/0),this}recordBBox(t,e,s,n,r,a){let o=i(this,ht);if(o[0]===1/0)return this;let l=D.multiplyByDOMMatrix(i(this,wn).at(-1),e.getTransform());if(o[0]===-1/0)return D.axialAlignedBoundingBox([s,r,n,a],l,i(this,kt)),this;let c=Vn.slice();return D.axialAlignedBoundingBox([s,r,n,a],l,c),i(this,kt)[0]=Ct(c[0],o[0],i(this,kt)[0]),i(this,kt)[1]=Ct(c[1],o[1],i(this,kt)[1]),i(this,kt)[2]=Ct(c[2],i(this,kt)[2],o[2]),i(this,kt)[3]=Ct(c[3],i(this,kt)[3],o[3]),this}recordFullPageBBox(t){return i(this,kt)[0]=Math.max(0,i(this,ht)[0]),i(this,kt)[1]=Math.max(0,i(this,ht)[1]),i(this,kt)[2]=Math.min(i(this,Ua),i(this,ht)[2]),i(this,kt)[3]=Math.min(i(this,$a),i(this,ht)[3]),this}recordOperation(t,e=!1,s){if(this._pendingBBoxIdx!==t)return this;let n=p0(i(this,kt)[0]*256/i(this,Ua)),r=p0(i(this,kt)[1]*256/i(this,$a)),a=g0(i(this,kt)[2]*256/i(this,Ua)),o=g0(i(this,kt)[3]*256/i(this,$a));if(m0(i(this,Ga),t,n,r,a,o),s)for(let l of s)for(let c of l)c!==t&&m0(i(this,Ga),c,n,r,a,o);return e||(this._pendingBBoxIdx=-1),this}bboxToClipBoxDropOperation(t){return this._pendingBBoxIdx===t&&(this._pendingBBoxIdx=-1,i(this,ht)[0]=Math.max(i(this,ht)[0],i(this,kt)[0]),i(this,ht)[1]=Math.max(i(this,ht)[1],i(this,kt)[1]),i(this,ht)[2]=Math.min(i(this,ht)[2],i(this,kt)[2]),i(this,ht)[3]=Math.min(i(this,ht)[3],i(this,kt)[3])),this}take(){return new um(i(this,Re),i(this,Ga))}takeDebugMetadata(){throw new Error("Unreachable")}recordSimpleData(t,e){return this}recordIncrementalData(t,e){return this}resetIncrementalData(t,e){return this}recordNamedData(t,e){return this}recordSimpleDataFromNamed(t,e,s){return this}recordFutureForcedDependency(t,e){return this}inheritSimpleDataAsFutureForcedDependencies(t){return this}inheritPendingDependenciesAsFutureForcedDependencies(){return this}recordCharacterBBox(t,e,s,n=1,r=0,a=0,o){return this}getSimpleIndex(t){}recordDependencies(t,e){return this}recordNamedDependency(t,e){return this}recordShowTextOperation(t,e=!1){return this}};wn=new WeakMap,ht=new WeakMap,kt=new WeakMap,Ua=new WeakMap,$a=new WeakMap,Ga=new WeakMap,Re=new WeakMap,Rd=new WeakSet,pm=function(t,e){let s=new ArrayBuffer(t*4);f(this,Ga,new Uint8ClampedArray(s)),f(this,Re,new Uint32Array(s)),e&&e.length>0?(i(this,Re).set(e),i(this,Re).fill(dm,e.length)):i(this,Re).fill(dm)};gm=class{constructor(t,e=!1){g(this,ts,{__proto__:null});g(this,es,{__proto__:null,transform:[],moveText:[],sameLineText:[],[cl]:[]});g(this,ja,new Map);g(this,ni,new Set);g(this,jl,new Map);g(this,Mr);g(this,Pr);g(this,mt);f(this,mt,t),e&&(f(this,Mr,new Map),f(this,Pr,(s,n)=>{b0(i(this,Mr),n).dependencies.add(s)}))}get clipBox(){return i(this,mt).clipBox}growOperationsCount(t){i(this,mt).growOperationsCount(t)}save(t){return f(this,ts,{__proto__:i(this,ts)}),f(this,es,{__proto__:i(this,es),transform:{__proto__:i(this,es).transform},moveText:{__proto__:i(this,es).moveText},sameLineText:{__proto__:i(this,es).sameLineText},[cl]:{__proto__:i(this,es)[cl]}}),i(this,mt).save(t),this}restore(t){i(this,mt).restore(t,i(this,Pr));let e=Object.getPrototypeOf(i(this,ts));return e===null?this:(f(this,ts,e),f(this,es,Object.getPrototypeOf(i(this,es))),this)}recordOpenMarker(t){return i(this,mt).recordOpenMarker(t,i(this,Pr)),this}getOpenMarker(){return i(this,mt).getOpenMarker()}recordCloseMarker(t){return i(this,mt).recordCloseMarker(t,i(this,Pr)),this}beginMarkedContent(t){return i(this,mt).beginMarkedContent(t),this}endMarkedContent(t){return i(this,mt).endMarkedContent(t,i(this,Pr)),this}pushBaseTransform(t){return i(this,mt).pushBaseTransform(t),this}popBaseTransform(){return i(this,mt).popBaseTransform(),this}recordSimpleData(t,e){return i(this,ts)[t]=e,this}recordIncrementalData(t,e){return i(this,es)[t].push(e),this}resetIncrementalData(t,e){return i(this,es)[t].length=0,this}recordNamedData(t,e){return i(this,ja).set(t,e),this}recordSimpleDataFromNamed(t,e,s){i(this,ts)[t]=i(this,ja).get(e)??s}recordFutureForcedDependency(t,e){return this.recordIncrementalData(cl,e),this}inheritSimpleDataAsFutureForcedDependencies(t){for(let e of t)e in i(this,ts)&&this.recordFutureForcedDependency(e,i(this,ts)[e]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(let t of i(this,ni))this.recordFutureForcedDependency(cl,t);return this}resetBBox(t){return i(this,mt).resetBBox(t),this}recordClipBox(t,e,s,n,r,a){return i(this,mt).recordClipBox(t,e,s,n,r,a),this}recordBBox(t,e,s,n,r,a){return i(this,mt).recordBBox(t,e,s,n,r,a),this}recordCharacterBBox(t,e,s,n=1,r=0,a=0,o){let l=s.bbox,c,d;if(l&&(c=l[2]!==l[0]&&l[3]!==l[1]&&i(this,jl).get(s),c!==!1&&(d=[0,0,0,0],D.axialAlignedBoundingBox(l,s.fontMatrix,d),(n!==1||r!==0||a!==0)&&fx(n,-n,r,a,d),c)))return this.recordBBox(t,e,d[0],d[2],d[1],d[3]);if(!o)return this.recordFullPageBBox(t);let u=o();return l&&d&&c===void 0&&(c=d[0]<=r-u.actualBoundingBoxLeft&&d[2]>=r+u.actualBoundingBoxRight&&d[1]<=a-u.actualBoundingBoxAscent&&d[3]>=a+u.actualBoundingBoxDescent,i(this,jl).set(s,c),c)?this.recordBBox(t,e,d[0],d[2],d[1],d[3]):this.recordBBox(t,e,r-u.actualBoundingBoxLeft,r+u.actualBoundingBoxRight,a-u.actualBoundingBoxAscent,a+u.actualBoundingBoxDescent)}recordFullPageBBox(t){return i(this,mt).recordFullPageBBox(t),this}getSimpleIndex(t){return i(this,ts)[t]}recordDependencies(t,e){let s=i(this,ni),n=i(this,ts),r=i(this,es);for(let a of e)a in i(this,ts)?s.add(n[a]):a in r&&r[a].forEach(s.add,s);return this}recordNamedDependency(t,e){return i(this,ja).has(e)&&i(this,ni).add(i(this,ja).get(e)),this}recordOperation(t,e=!1){if(this.recordDependencies(t,[cl]),i(this,Mr)){let n=b0(i(this,Mr),t),{dependencies:r}=n;i(this,ni).forEach(r.add,r),i(this,mt)._savesStack.forEach(r.add,r),i(this,mt)._markedContentStack.forEach(r.add,r),r.delete(t),n.isRenderingOperation=!0}let s=!e&&t===i(this,mt)._pendingBBoxIdx;return i(this,mt).recordOperation(t,e,[i(this,ni),i(this,mt)._savesStack,i(this,mt)._markedContentStack]),s&&i(this,ni).clear(),this}recordShowTextOperation(t,e=!1){let s=Array.from(i(this,ni));this.recordOperation(t,e),this.recordIncrementalData("sameLineText",t);for(let n of s)this.recordIncrementalData("sameLineText",n);return this}bboxToClipBoxDropOperation(t,e=!1){let s=!e&&t===i(this,mt)._pendingBBoxIdx;return i(this,mt).bboxToClipBoxDropOperation(t),s&&i(this,ni).clear(),this}take(){return i(this,jl).clear(),i(this,mt).take()}takeDebugMetadata(){return i(this,Mr)}};ts=new WeakMap,es=new WeakMap,ja=new WeakMap,ni=new WeakMap,jl=new WeakMap,Mr=new WeakMap,Pr=new WeakMap,mt=new WeakMap;Oy=class Oy{constructor(t,e,s){g(this,bt);g(this,Vt);g(this,ri);g(this,Vl,0);g(this,Wl,0);if(t instanceof Oy&&i(t,ri)===!!s)return t;f(this,bt,t),f(this,Vt,e),f(this,ri,!!s)}get clipBox(){return i(this,bt).clipBox}growOperationsCount(){throw new Error("Unreachable")}save(t){return Ft(this,Wl)._++,i(this,bt).save(i(this,Vt)),this}restore(t){return i(this,Wl)>0&&(i(this,bt).restore(i(this,Vt)),Ft(this,Wl)._--),this}recordOpenMarker(t){return Ft(this,Vl)._++,this}getOpenMarker(){return i(this,Vl)>0?i(this,Vt):i(this,bt).getOpenMarker()}recordCloseMarker(t){return Ft(this,Vl)._--,this}beginMarkedContent(t){return this}endMarkedContent(t){return this}pushBaseTransform(t){return i(this,bt).pushBaseTransform(t),this}popBaseTransform(){return i(this,bt).popBaseTransform(),this}recordSimpleData(t,e){return i(this,bt).recordSimpleData(t,i(this,Vt)),this}recordIncrementalData(t,e){return i(this,bt).recordIncrementalData(t,i(this,Vt)),this}resetIncrementalData(t,e){return i(this,bt).resetIncrementalData(t,i(this,Vt)),this}recordNamedData(t,e){return this}recordSimpleDataFromNamed(t,e,s){return i(this,bt).recordSimpleDataFromNamed(t,e,i(this,Vt)),this}recordFutureForcedDependency(t,e){return i(this,bt).recordFutureForcedDependency(t,i(this,Vt)),this}inheritSimpleDataAsFutureForcedDependencies(t){return i(this,bt).inheritSimpleDataAsFutureForcedDependencies(t),this}inheritPendingDependenciesAsFutureForcedDependencies(){return i(this,bt).inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(t){return i(this,ri)||i(this,bt).resetBBox(i(this,Vt)),this}recordClipBox(t,e,s,n,r,a){return i(this,ri)||i(this,bt).recordClipBox(i(this,Vt),e,s,n,r,a),this}recordBBox(t,e,s,n,r,a){return i(this,ri)||i(this,bt).recordBBox(i(this,Vt),e,s,n,r,a),this}recordCharacterBBox(t,e,s,n,r,a,o){return i(this,ri)||i(this,bt).recordCharacterBBox(i(this,Vt),e,s,n,r,a,o),this}recordFullPageBBox(t){return i(this,ri)||i(this,bt).recordFullPageBBox(i(this,Vt)),this}getSimpleIndex(t){return i(this,bt).getSimpleIndex(t)}recordDependencies(t,e){return i(this,bt).recordDependencies(i(this,Vt),e),this}recordNamedDependency(t,e){return i(this,bt).recordNamedDependency(i(this,Vt),e),this}recordOperation(t){return i(this,bt).recordOperation(i(this,Vt),!0),this}recordShowTextOperation(t){return i(this,bt).recordShowTextOperation(i(this,Vt),!0),this}bboxToClipBoxDropOperation(t){return i(this,ri)||i(this,bt).bboxToClipBoxDropOperation(i(this,Vt),!0),this}take(){throw new Error("Unreachable")}takeDebugMetadata(){throw new Error("Unreachable")}};bt=new WeakMap,Vt=new WeakMap,ri=new WeakMap,Vl=new WeakMap,Wl=new WeakMap;Xh=Oy,Is={stroke:["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],fill:["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],imageXObject:["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],rawFillPath:["filter","fillColor","fillAlpha"],showText:["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],transform:["transform"],transformAndFill:["transform","fillColor"]},zh=class zh{constructor(t){g(this,Va);g(this,Wa);g(this,Xa,4);g(this,Ya,0);g(this,qa,new(i(zh,Nd))(i(this,Xa)*6));f(this,Va,t.width),f(this,Wa,t.height)}record(t,e,s,n){if(i(this,Ya)===i(this,Xa)){f(this,Xa,i(this,Xa)*2);let o=new(i(zh,Nd))(i(this,Xa)*6);o.set(i(this,qa)),f(this,qa,o)}let r=Et(t),a;if(n[0]!==1/0){let o=Vn.slice();D.axialAlignedBoundingBox([0,-s,e,0],r,o);let l=D.intersect(n,o);if(!l)return;let[c,d,u,p]=l;if(c!==o[0]||d!==o[1]||u!==o[2]||p!==o[3]){let b=Math.atan2(r[1],r[0]),y=Math.abs(Math.sin(b)),v=Math.abs(Math.cos(b));if(y<1e-6||v<1e-6||Math.abs(y-v)<1e-6)a=[c,d,c,p,u,d];else{let w=u-c,A=p-d,x=y*y,S=v*v,E=v*y,C=S-x,_=(A*S-w*E)/C,k=(A*E-w*x)/C;a=[c+k,d,c,d+_,u,p-_]}}}a||(a=[0,-s,0,0,e,-s],D.applyTransform(a,r,0),D.applyTransform(a,r,2),D.applyTransform(a,r,4)),a[0]/=i(this,Va),a[1]/=i(this,Wa),a[2]/=i(this,Va),a[3]/=i(this,Wa),a[4]/=i(this,Va),a[5]/=i(this,Wa),i(this,qa).set(a,i(this,Ya)*6),Ft(this,Ya)._++}take(){return i(this,qa).subarray(0,i(this,Ya)*6)}};Va=new WeakMap,Wa=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,qa=new WeakMap,Nd=new WeakMap,g(zh,Nd,lt.isFloat16ArraySupported?Float16Array:Float32Array);mm=zh,y0=/\p{Cc}/u;bm=class{constructor({ownerDocument:t=globalThis.document,styleElement:e=null}){g(this,Rp);g(this,Xl,new Set);g(this,ai,null);this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){let e=m(this,Rp,xv).call(this);e.insertRule(t,e.cssRules.length)}clear(){for(let t of this.nativeFontFaces)this._document.fonts.delete(t);if(this.nativeFontFaces.clear(),i(this,Xl).clear(),i(this,ai)){let{adoptedStyleSheets:t}=this._document;t?.includes(i(this,ai))&&(this._document.adoptedStyleSheets=t.filter(e=>e!==i(this,ai))),f(this,ai,null)}this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,disableFontFace:e,_inspectFont:s}){if(!(!t||i(this,Xl).has(t.loadedName))){if($t(!e,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){let{loadedName:n,src:r,style:a}=t,o=new FontFace(n,r,a);this.addNativeFontFace(o);try{await o.load(),i(this,Xl).add(n),s?.(t)}catch{Q(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(o)}return}rt("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){let s=t.createNativeFontFace();if(s){this.addNativeFontFace(s);try{await s.loaded}catch(n){throw Q(`Failed to load font '${s.family}': '${n}'.`),t.disableFontFace=!0,n}}return}let e=t.createFontFaceRule();if(e){if(this.insertRule(e),this.isSyncFontLoadingSupported)return;await new Promise(s=>{let n=this._queueLoadingCallback(s);this._prepareFontLoadEvent(t,n)})}}get isFontLoadingAPISupported(){let t=!!this._document?.fonts;return G(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){return G(this,"isSyncFontLoadingSupported",Es||lt.platform.isFirefox)}_queueLoadingCallback(t){function e(){for($t(!n.done,"completeRequest() cannot be called twice."),n.done=!0;s.length>0&&s[0].done;){let r=s.shift();setTimeout(r.callback,0)}}let{loadingRequests:s}=this,n={done:!1,complete:e,callback:t};return s.push(n),n}get _loadTestFont(){let t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return G(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,e){function s(C,_){return C.charCodeAt(_)<<24|C.charCodeAt(_+1)<<16|C.charCodeAt(_+2)<<8|C.charCodeAt(_+3)&255}function n(C){return String.fromCharCode(C>>24&255,C>>16&255,C>>8&255,C&255)}function r(C,_,k,P){let I=C.substring(0,_),F=C.substring(_+k);return I+P+F}let a,o,l=this._document.createElement("canvas");l.width=1,l.height=1;let c=l.getContext("2d"),d=0;function u(C,_){if(++d>30){Q("Load test font never loaded."),_();return}if(c.font="30px "+C,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0){_();return}setTimeout(u.bind(null,C,_))}let p=`lt${Date.now()}${this.loadTestFontId++}`,b=this._loadTestFont;b=r(b,976,p.length,p);let v=16,w=1482184792,A=s(b,v);for(a=0,o=p.length-3;a<o;a+=4)A=A-w+s(p,a)|0;a<p.length&&(A=A-w+s(p+"XXX",a)|0),b=r(b,v,4,n(A));let x=`url(data:font/opentype;base64,${btoa(b)});`,S=`@font-face {font-family:"${p}";src:${x}}`;this.insertRule(S);let E=this._document.createElement("div");E.style.visibility="hidden",E.style.width=E.style.height="10px",E.style.position="absolute",E.style.top=E.style.left="0px";for(let C of[t.loadedName,p]){let _=this._document.createElement("span");_.textContent="Hi",_.style.fontFamily=C,E.append(_)}this._document.body.append(E),u(p,()=>{E.remove(),e.complete()})}};Xl=new WeakMap,ai=new WeakMap,Rp=new WeakSet,xv=function(){if(i(this,ai))return i(this,ai);let t=this._document.defaultView?.CSSStyleSheet||globalThis.CSSStyleSheet;if(!this.styleElement&&t){let{adoptedStyleSheets:e}=this._document;if(e){let s=new t;return e.push(s),f(this,ai,s)}}return this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement)),f(this,ai,this.styleElement.sheet)};ym=class{constructor(t,e=null,s,n){T(this,"compiledGlyphs",Object.create(null));g(this,yt);f(this,yt,t),this._inspectFont=e,s&&(this.charProcOperatorList=s),n&&Object.assign(this,n)}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{let e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(v0(this.cssFontInfo.fontFamily),this.data,e)}return this._inspectFont?.(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;let t=`url(data:${this.mimetype};base64,${this.data.toBase64()});`,e;if(!this.cssFontInfo)e=`@font-face {font-family:"${this.loadedName}";src:${t}}`;else{let s=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(s+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),e=`@font-face {font-family:${v0(this.cssFontInfo.fontFamily)};${s}src:${t}}`}return this._inspectFont?.(this,t),e}getPathGenerator(t,e){if(this.compiledGlyphs[e]!==void 0)return this.compiledGlyphs[e];let s=this.loadedName+"_path_"+e,n;try{n=t.get(s)}catch(a){Q(`getPathGenerator - ignoring character: "${a}".`)}let r=$0(n?.path);return this.fontExtraProperties||t.delete(s),this.compiledGlyphs[e]=r}get black(){return i(this,yt).black}get bold(){return i(this,yt).bold}get disableFontFace(){return i(this,yt).disableFontFace}set disableFontFace(t){G(this,"disableFontFace",!!t)}get fontExtraProperties(){return i(this,yt).fontExtraProperties}get isInvalidPDFjsFont(){return i(this,yt).isInvalidPDFjsFont}get isType3Font(){return i(this,yt).isType3Font}get italic(){return i(this,yt).italic}get missingFile(){return i(this,yt).missingFile}get remeasure(){return i(this,yt).remeasure}get vertical(){return i(this,yt).vertical}get ascent(){return i(this,yt).ascent}get defaultWidth(){return i(this,yt).defaultWidth}get descent(){return i(this,yt).descent}get bbox(){return i(this,yt).bbox}get fontMatrix(){return i(this,yt).fontMatrix}get fallbackName(){return i(this,yt).fallbackName}get loadedName(){return i(this,yt).loadedName}get mimetype(){return i(this,yt).mimetype}get name(){return i(this,yt).name}get data(){return i(this,yt).data}clearData(){i(this,yt).clearData()}get cssFontInfo(){return i(this,yt).cssFontInfo}get systemFontInfo(){return i(this,yt).systemFontInfo}get defaultVMetrics(){return i(this,yt).defaultVMetrics}};yt=new WeakMap;Af=class{};T(Af,"strings",["fontFamily","fontWeight","italicAngle"]);xf=class{};T(xf,"strings",["css","loadedName","baseFontName","src"]);De=class De{};T(De,"bools",["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"]),T(De,"numbers",["ascent","defaultWidth","descent"]),T(De,"strings",["fallbackName","loadedName","mimetype","name"]),T(De,"OFFSET_NUMBERS",Math.ceil(De.bools.length*2/8)),T(De,"OFFSET_BBOX",De.OFFSET_NUMBERS+De.numbers.length*8),T(De,"OFFSET_FONT_MATRIX",De.OFFSET_BBOX+1+8),T(De,"OFFSET_DEFAULT_VMETRICS",De.OFFSET_FONT_MATRIX+1+48),T(De,"OFFSET_STRINGS",De.OFFSET_DEFAULT_VMETRICS+1+6);as=De,Ee=class{};T(Ee,"KIND",0),T(Ee,"HAS_BBOX",1),T(Ee,"HAS_BACKGROUND",2),T(Ee,"SHADING_TYPE",3),T(Ee,"N_COORD",4),T(Ee,"N_COLOR",8),T(Ee,"N_STOP",12),T(Ee,"N_FIGURES",16);Jc=class{static get decoder(){return G(this,"decoder",new TextDecoder)}static get encoder(){return G(this,"encoder",new TextEncoder)}},vm=class{constructor(t){g(this,ql);g(this,Fd);g(this,Yl);f(this,Fd,t),f(this,Yl,new DataView(t))}get fontFamily(){return m(this,ql,Sf).call(this,0)}get fontWeight(){return m(this,ql,Sf).call(this,1)}get italicAngle(){return m(this,ql,Sf).call(this,2)}};Fd=new WeakMap,Yl=new WeakMap,ql=new WeakSet,Sf=function(t){$t(t<Af.strings.length,"Invalid string index");let{decoder:e}=Jc,s=0;for(let r=0;r<t;r++)s+=i(this,Yl).getUint32(s)+4;let n=i(this,Yl).getUint32(s);return e.decode(new Uint8Array(i(this,Fd),s+4,n))};wm=class{constructor(t){g(this,Qa);g(this,Ka);g(this,Ni);f(this,Ka,t),f(this,Ni,new DataView(t))}get guessFallback(){return i(this,Ni).getUint8(0)!==0}get css(){return m(this,Qa,yh).call(this,0)}get loadedName(){return m(this,Qa,yh).call(this,1)}get baseFontName(){return m(this,Qa,yh).call(this,2)}get src(){return m(this,Qa,yh).call(this,3)}get style(){let{decoder:t}=Jc,e=1;e+=4+i(this,Ni).getUint32(e);let s=i(this,Ni).getUint32(e),n=t.decode(new Uint8Array(i(this,Ka),e+4,s));e+=4+s;let r=i(this,Ni).getUint32(e),a=t.decode(new Uint8Array(i(this,Ka),e+4,r));return{style:n,weight:a}}};Ka=new WeakMap,Ni=new WeakMap,Qa=new WeakSet,yh=function(t){$t(t<xf.strings.length,"Invalid string index");let{decoder:e}=Jc,s=5;for(let r=0;r<t;r++)s+=i(this,Ni).getUint32(s)+4;let n=i(this,Ni).getUint32(s);return e.decode(new Uint8Array(i(this,Ka),s+4,n))};Am=class{constructor({buffer:t,extra:e}){g(this,ft);g(this,oi);g(this,Kt);f(this,oi,t),f(this,Kt,new DataView(t)),e&&Object.assign(this,e)}get black(){return m(this,ft,ti).call(this,0)}get bold(){return m(this,ft,ti).call(this,1)}get disableFontFace(){return m(this,ft,ti).call(this,2)}get fontExtraProperties(){return m(this,ft,ti).call(this,3)}get isInvalidPDFjsFont(){return m(this,ft,ti).call(this,4)}get isType3Font(){return m(this,ft,ti).call(this,5)}get italic(){return m(this,ft,ti).call(this,6)}get missingFile(){return m(this,ft,ti).call(this,7)}get remeasure(){return m(this,ft,ti).call(this,8)}get vertical(){return m(this,ft,ti).call(this,9)}get ascent(){return m(this,ft,Ef).call(this,0)}get defaultWidth(){return m(this,ft,Ef).call(this,1)}get descent(){return m(this,ft,Ef).call(this,2)}get bbox(){return m(this,ft,Cf).call(this,as.OFFSET_BBOX,4,"getInt16",2)}get fontMatrix(){return m(this,ft,Cf).call(this,as.OFFSET_FONT_MATRIX,6,"getFloat64",8)}get defaultVMetrics(){return m(this,ft,Cf).call(this,as.OFFSET_DEFAULT_VMETRICS,3,"getInt16",2)}get fallbackName(){return m(this,ft,vh).call(this,0)}get loadedName(){return m(this,ft,vh).call(this,1)}get mimetype(){return m(this,ft,vh).call(this,2)}get name(){return m(this,ft,vh).call(this,3)}get data(){let{offset:t,length:e}=m(this,ft,xm).call(this);return e===0?void 0:new Uint8Array(i(this,oi),t+4,e)}clearData(){let{offset:t,length:e}=m(this,ft,xm).call(this);e!==0&&(i(this,Kt).setUint32(t,0),f(this,oi,new Uint8Array(i(this,oi),0,t+4).slice().buffer),f(this,Kt,new DataView(i(this,oi))))}get cssFontInfo(){let t=as.OFFSET_STRINGS,e=i(this,Kt).getUint32(t);t+=4+e;let s=i(this,Kt).getUint32(t);t+=4+s;let n=i(this,Kt).getUint32(t);if(n===0)return null;let r=new Uint8Array(n);return r.set(new Uint8Array(i(this,oi),t+4,n)),new vm(r.buffer)}get systemFontInfo(){let t=as.OFFSET_STRINGS,e=i(this,Kt).getUint32(t);t+=4+e;let s=i(this,Kt).getUint32(t);if(s===0)return null;let n=new Uint8Array(s);return n.set(new Uint8Array(i(this,oi),t+4,s)),new wm(n.buffer)}};oi=new WeakMap,Kt=new WeakMap,ft=new WeakSet,ti=function(t){$t(t<as.bools.length,"Invalid boolean index");let e=Math.floor(t/4),s=t*2%8,n=i(this,Kt).getUint8(e)>>s&3;return n===0?void 0:n===2},Ef=function(t){return $t(t<as.numbers.length,"Invalid number index"),i(this,Kt).getFloat64(as.OFFSET_NUMBERS+t*8)},Cf=function(t,e,s,n){let r=i(this,Kt).getUint8(t);if(r===0)return;$t(r===e,"Invalid array length."),t+=1;let a=new Array(r);for(let o=0;o<r;o++)a[o]=i(this,Kt)[s](t,!0),t+=n;return a},vh=function(t){$t(t<as.strings.length,"Invalid string index");let{decoder:e}=Jc,s=as.OFFSET_STRINGS+4;for(let r=0;r<t;r++)s+=i(this,Kt).getUint32(s)+4;let n=i(this,Kt).getUint32(s);return e.decode(new Uint8Array(i(this,oi),s+4,n))},xm=function(){let t=as.OFFSET_STRINGS,e=i(this,Kt).getUint32(t);t+=4+e;let s=i(this,Kt).getUint32(t);t+=4+s;let n=i(this,Kt).getUint32(t);t+=4+n;let r=i(this,Kt).getUint32(t);return{offset:t,length:r}};Sm=class{constructor(t){this.buffer=t,this.view=new DataView(t),this.data=new Uint8Array(t)}getIR(){let t=this.view,e=this.data[Ee.KIND],s=!!this.data[Ee.HAS_BBOX],n=!!this.data[Ee.HAS_BACKGROUND],r=t.getUint32(Ee.N_COORD,!0),a=t.getUint32(Ee.N_COLOR,!0),o=t.getUint32(Ee.N_STOP,!0),l=20,c=new Float32Array(this.buffer,l,r*2);l+=r*8;let d=new Uint8Array(this.buffer,l,a*4);l+=a*4;let u=[];for(let y=0;y<o;++y){let v=t.getFloat32(l,!0);l+=4;let w=t.getUint32(l,!0);l+=4,u.push([v,`#${w.toString(16).padStart(6,"0")}`])}let p=null;if(s){p=[];for(let y=0;y<4;++y)p.push(t.getFloat32(l,!0)),l+=4}let b=null;if(n&&(b=new Uint8Array(this.buffer,l,3),l+=3),e===1)return["RadialAxial","axial",p,u,Array.from(c.slice(0,2)),Array.from(c.slice(2,4)),null,null];if(e===2)return["RadialAxial","radial",p,u,[c[0],c[1]],[c[3],c[4]],c[2],c[5]];if(e===3){let y=this.data[Ee.SHADING_TYPE],v=null;if(c.length>0){v=Vn.slice();for(let w=0,A=c.length;w<A;w+=2)D.pointBoundingBox(c[w],c[w+1],v)}return["Mesh",y,c,d,r,v,p,b]}throw new Error(`Unsupported pattern kind: ${e}`)}},Em=class{constructor(t){g(this,Kl);f(this,Kl,t)}get path(){return lt.isFloat16ArraySupported?new Float16Array(i(this,Kl)):new Float32Array(i(this,Kl))}};Kl=new WeakMap;Cm=h=>typeof h=="object"&&Number.isInteger(h?.num)&&h.num>=0&&Number.isInteger(h?.gen)&&h.gen>=0,bx=h=>typeof h=="object"&&typeof h?.name=="string",Sv=lx.bind(null,Cm,bx),_m=class{constructor(){g(this,An,new Map);g(this,Np,Promise.resolve())}postMessage(t,e){let s={data:structuredClone(t,e?{transfer:e}:null)};i(this,Np).then(()=>{for(let[n]of i(this,An))n.call(this,s)})}addEventListener(t,e,s=null){let n=null;if(s?.signal instanceof AbortSignal){let{signal:r}=s;if(r.aborted){Q("LoopbackPort - cannot use an `aborted` signal.");return}let a=()=>this.removeEventListener(t,e);n=()=>r.removeEventListener("abort",a),r.addEventListener("abort",a)}i(this,An).set(e,n)}removeEventListener(t,e){i(this,An).get(e)?.(),i(this,An).delete(e)}terminate(){for(let[,t]of i(this,An))t?.();i(this,An).clear()}};An=new WeakMap,Np=new WeakMap;of={DATA:1,ERROR:2},Qt={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};xa=class{constructor(t,e,s){g(this,Qs);g(this,Ql,new AbortController);this.sourceName=t,this.targetName=e,this.comObj=s,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),s.addEventListener("message",m(this,Qs,Ev).bind(this),{signal:i(this,Ql).signal})}on(t,e){let s=this.actionHandler;if(s[t])throw new Error(`There is already an actionName called "${t}"`);s[t]=e}send(t,e,s){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},s)}sendWithPromise(t,e,s){let n=this.callbackId++,r=Promise.withResolvers();this.callbackCapabilities[n]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:n,data:e},s)}catch(a){r.reject(a)}return r.promise}sendWithStream(t,e,s,n){let r=this.streamId++,a=this.sourceName,o=this.targetName,l=this.comObj;return new ReadableStream({start:c=>{let d=Promise.withResolvers();return this.streamControllers[r]={controller:c,startCall:d,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:a,targetName:o,action:t,streamId:r,data:e,desiredSize:c.desiredSize},n),d.promise},pull:c=>{let d=Promise.withResolvers();return this.streamControllers[r].pullCall=d,l.postMessage({sourceName:a,targetName:o,stream:Qt.PULL,streamId:r,desiredSize:c.desiredSize}),d.promise},cancel:c=>{$t(c instanceof Error,"cancel must have a valid reason");let d=Promise.withResolvers();return this.streamControllers[r].cancelCall=d,this.streamControllers[r].isClosed=!0,l.postMessage({sourceName:a,targetName:o,stream:Qt.CANCEL,streamId:r,reason:Ke(c)}),d.promise}},s)}destroy(){i(this,Ql)?.abort(),f(this,Ql,null)}};Ql=new WeakMap,Qs=new WeakSet,Ev=function({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){m(this,Qs,_v).call(this,t);return}if(t.callback){let s=t.callbackId,n=this.callbackCapabilities[s];if(!n)throw new Error(`Cannot resolve callback ${s}`);if(delete this.callbackCapabilities[s],t.callback===of.DATA)n.resolve(t.data);else if(t.callback===of.ERROR)n.reject(Ke(t.reason));else throw new Error("Unexpected callback case");return}let e=this.actionHandler[t.action];if(!e)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let s=this.sourceName,n=t.sourceName,r=this.comObj;Promise.try(e,t.data).then(function(a){r.postMessage({sourceName:s,targetName:n,callback:of.DATA,callbackId:t.callbackId,data:a})},function(a){r.postMessage({sourceName:s,targetName:n,callback:of.ERROR,callbackId:t.callbackId,reason:Ke(a)})});return}if(t.streamId){m(this,Qs,Cv).call(this,t);return}e(t.data)},Cv=function(t){let e=t.streamId,s=this.sourceName,n=t.sourceName,r=this.comObj,a=this,o=this.actionHandler[t.action],l={enqueue(c,d=1,u){if(this.isCancelled)return;let p=this.desiredSize;this.desiredSize-=d,p>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),r.postMessage({sourceName:s,targetName:n,stream:Qt.ENQUEUE,streamId:e,chunk:c},u)},close(){this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:s,targetName:n,stream:Qt.CLOSE,streamId:e}),delete a.streamSinks[e])},error(c){$t(c instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,r.postMessage({sourceName:s,targetName:n,stream:Qt.ERROR,streamId:e,reason:Ke(c)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[e]=l,Promise.try(o,t.data,l).then(function(){r.postMessage({sourceName:s,targetName:n,stream:Qt.START_COMPLETE,streamId:e,success:!0})},function(c){r.postMessage({sourceName:s,targetName:n,stream:Qt.START_COMPLETE,streamId:e,reason:Ke(c)})})},_v=function(t){let e=t.streamId,s=this.sourceName,n=t.sourceName,r=this.comObj,a=this.streamControllers[e],o=this.streamSinks[e];switch(t.stream){case Qt.START_COMPLETE:t.success?a.startCall.resolve():a.startCall.reject(Ke(t.reason));break;case Qt.PULL_COMPLETE:t.success?a.pullCall.resolve():a.pullCall.reject(Ke(t.reason));break;case Qt.PULL:if(!o){r.postMessage({sourceName:s,targetName:n,stream:Qt.PULL_COMPLETE,streamId:e,success:!0});break}o.desiredSize<=0&&t.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=t.desiredSize,Promise.try(o.onPull||w0).then(function(){r.postMessage({sourceName:s,targetName:n,stream:Qt.PULL_COMPLETE,streamId:e,success:!0})},function(c){r.postMessage({sourceName:s,targetName:n,stream:Qt.PULL_COMPLETE,streamId:e,reason:Ke(c)})});break;case Qt.ENQUEUE:if($t(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case Qt.CLOSE:if($t(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),m(this,Qs,_f).call(this,a,e);break;case Qt.ERROR:$t(a,"error should have stream controller"),a.controller.error(Ke(t.reason)),m(this,Qs,_f).call(this,a,e);break;case Qt.CANCEL_COMPLETE:t.success?a.cancelCall.resolve():a.cancelCall.reject(Ke(t.reason)),m(this,Qs,_f).call(this,a,e);break;case Qt.CANCEL:if(!o)break;let l=Ke(t.reason);Promise.try(o.onCancel||w0,l).then(function(){r.postMessage({sourceName:s,targetName:n,stream:Qt.CANCEL_COMPLETE,streamId:e,success:!0})},function(c){r.postMessage({sourceName:s,targetName:n,stream:Qt.CANCEL_COMPLETE,streamId:e,reason:Ke(c)})}),o.sinkCapability.reject(l),o.isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}},_f=async function(t,e){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[e]};lp=class{constructor({cMapUrl:t=null,standardFontDataUrl:e=null,wasmUrl:s=null}){g(this,Fp,Object.freeze({cMapUrl:"CMap",standardFontDataUrl:"font",wasmUrl:"wasm"}));this.cMapUrl=t,this.standardFontDataUrl=e,this.wasmUrl=s}async fetch({kind:t,filename:e}){switch(t){case"cMapUrl":case"standardFontDataUrl":case"wasmUrl":break;default:rt(`Not implemented: ${t}`)}let s=this[t];if(!s)throw new Error(`Ensure that the \`${t}\` API parameter is provided.`);let n=`${s}${e}`;return this._fetch(n,t).catch(r=>{throw new Error(`Unable to load ${i(this,Fp)[t]} data at: ${n}`)})}async _fetch(t,e){rt("Abstract method `_fetch` called.")}};Fp=new WeakMap;cp=class extends lp{async _fetch(t,e){let s=e==="cMapUrl"&&!t.endsWith(".bcmap")?"text":"bytes",n=await ag(t,s);return n instanceof Uint8Array?n:ng(n)}},hp=class{constructor({enableHWA:t=!1}){g(this,Bd,!1);f(this,Bd,t)}create(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");let s=this._createCanvas(t,e);return{canvas:s,context:s.getContext("2d",{willReadFrequently:!i(this,Bd)})}}reset({canvas:t},e,s){if(!t)throw new Error("Canvas is not specified");if(e<=0||s<=0)throw new Error("Invalid canvas size");t.width=e,t.height=s}destroy(t){let{canvas:e}=t;if(!e)throw new Error("Canvas is not specified");e.width=e.height=0,t.canvas=null,t.context=null}_createCanvas(t,e){rt("Abstract method `_createCanvas` called.")}};Bd=new WeakMap;Tm=class extends hp{constructor({ownerDocument:t=globalThis.document,enableHWA:e=!1}){super({enableHWA:e}),this._document=t}_createCanvas(t,e){let s=this._document.createElement("canvas");return s.width=t,s.height=e,s}},dp=class{addFilter(t){return"none"}addHCMFilter(t,e){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addKnockoutFilter(t=0){return"none"}addHighlightHCMFilter(t,e,s,n,r){return"none"}addSelectionHCMFilter(t,e){return"none"}addSelectionFilter(){return"none"}createSelectionStyle(t=null){return null}destroy(t=!1){}},km=class extends dp{constructor({docId:e,ownerDocument:s=globalThis.document}){super();g(this,O);g(this,Ja);g(this,Jl);g(this,xn);g(this,Fi);g(this,ge);g(this,Za);g(this,Dr,0);f(this,Fi,e),f(this,ge,s)}addFilter(e){if(!e)return"none";let s=i(this,O,ue).get(e);if(s)return s;let[n,r,a]=m(this,O,Tf).call(this,e),o=e.length===1?n:`${n}${r}${a}`;if(s=i(this,O,ue).get(o),s)return i(this,O,ue).set(e,s),s;let l=`g_${i(this,Fi)}_transfer_map_${Ft(this,Dr)._++}`,c=m(this,O,ua).call(this,l);i(this,O,ue).set(e,c),i(this,O,ue).set(o,c);let d=m(this,O,fa).call(this,l);return m(this,O,xh).call(this,n,r,a,d),c}addHCMFilter(e,s){let n=`${e}-${s}`,r="base",a=i(this,O,wh).get(r);if(a?.key===n||(a?(a.filter?.remove(),a.key=n,a.url="none",a.filter=null):(a={key:n,url:"none",filter:null},i(this,O,wh).set(r,a)),!e||!s))return a.url;let o=m(this,O,Sh).call(this,e);e=D.makeHexColor(...o);let l=m(this,O,Sh).call(this,s);if(s=D.makeHexColor(...l),m(this,O,Dm).call(this),e==="#000000"&&s==="#ffffff"||e===s)return a.url;let d=Array.from({length:256},(y,v)=>zg(v/255)).join(","),u=`g_${i(this,Fi)}_hcm_filter`,p=a.filter=m(this,O,fa).call(this,u);m(this,O,xh).call(this,d,d,d,p),m(this,O,Mm).call(this,p);let b=(y,v)=>{let w=o[y]/255,A=l[y]/255,x=new Array(v+1);for(let S=0;S<=v;S++)x[S]=w+S/v*(A-w);return x.join(",")};return m(this,O,xh).call(this,b(0,5),b(1,5),b(2,5),p),a.url=m(this,O,ua).call(this,u),a.url}addSelectionHCMFilter(e,s){return this.addHighlightHCMFilter("selection",e,s,"HighlightText","Highlight")}addSelectionFilter(){return this.addHighlightHCMFilter("selection_default","black","white","HighlightText","Highlight")}createSelectionStyle(e=null){let s=e?this.addSelectionHCMFilter(e.foreground,e.background):this.addSelectionFilter();return s==="none"||!lt.platform.isFirefox?null:{"backdrop-filter":s,"background-color":"transparent"}}addAlphaFilter(e){let s=i(this,O,ue).get(e);if(s)return s;let[n]=m(this,O,Tf).call(this,[e]),r=`alpha_${n}`;if(s=i(this,O,ue).get(r),s)return i(this,O,ue).set(e,s),s;let a=`g_${i(this,Fi)}_alpha_map_${Ft(this,Dr)._++}`,o=m(this,O,ua).call(this,a);i(this,O,ue).set(e,o),i(this,O,ue).set(r,o);let l=m(this,O,fa).call(this,a);return m(this,O,Pm).call(this,n,l),o}addLuminosityFilter(e){let s=i(this,O,ue).get(e||"luminosity");if(s)return s;let n,r;if(e?([n]=m(this,O,Tf).call(this,[e]),r=`luminosity_${n}`):r="luminosity",s=i(this,O,ue).get(r),s)return i(this,O,ue).set(e,s),s;let a=`g_${i(this,Fi)}_luminosity_map_${Ft(this,Dr)._++}`,o=m(this,O,ua).call(this,a);i(this,O,ue).set(e,o),i(this,O,ue).set(r,o);let l=m(this,O,fa).call(this,a);return m(this,O,Tv).call(this,l),e&&m(this,O,Pm).call(this,n,l),o}addKnockoutFilter(e=0){let s=e>0?Math.min(1/e,1e6):1e6,n=`knockout_${s}`,r=i(this,O,ue).get(n);if(r)return r;let a=`g_${i(this,Fi)}_knockout_filter_${Ft(this,Dr)._++}`,o=m(this,O,ua).call(this,a);i(this,O,ue).set(n,o);let l=m(this,O,fa).call(this,a),c=i(this,ge).createElementNS(We,"feComponentTransfer");l.append(c);let d=i(this,ge).createElementNS(We,"feFuncA");return d.setAttribute("type","linear"),d.setAttribute("slope",`${s}`),d.setAttribute("intercept","0"),c.append(d),o}addHighlightHCMFilter(e,s,n,r,a){let o=`${s}-${n}-${r}-${a}`,l=i(this,O,wh).get(e);if(l?.key===o||(l?(l.filter?.remove(),l.key=o,l.url="none",l.filter=null):(l={key:o,url:"none",filter:null},i(this,O,wh).set(e,l)),!s||!n))return l.url;let[c,d]=[s,n].map(m(this,O,Sh).bind(this)),u=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),p=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),[b,y]=[r,a].map(m(this,O,Mv).bind(this));p<u&&([u,p,b,y]=[p,u,y,b]),m(this,O,Dm).call(this);let v=(x,S,E)=>{let C=new Array(256),_=(p-u)/E,k=x/255,P=(S-x)/(255*E),I=0;for(let F=0;F<=E;F++){let B=Math.round(u+F*_),H=k+F*P;for(let L=I;L<=B;L++)C[L]=H;I=B+1}for(let F=I;F<256;F++)C[F]=C[I-1];return C.join(",")},w=`g_${i(this,Fi)}_hcm_${e}_filter`,A=l.filter=m(this,O,fa).call(this,w);return m(this,O,Mm).call(this,A),m(this,O,xh).call(this,v(b[0],y[0],5),v(b[1],y[1],5),v(b[2],y[2],5),A),l.url=m(this,O,ua).call(this,w),l.url}destroy(e=!1){e&&i(this,Za)?.size||(i(this,xn)?.parentNode.parentNode.remove(),f(this,xn,null),i(this,Jl)?.clear(),f(this,Jl,null),i(this,Za)?.clear(),f(this,Za,null),f(this,Dr,0))}};Ja=new WeakMap,Jl=new WeakMap,xn=new WeakMap,Fi=new WeakMap,ge=new WeakMap,Za=new WeakMap,Dr=new WeakMap,O=new WeakSet,ue=function(){return i(this,Jl)||f(this,Jl,new Map)},wh=function(){return i(this,Za)||f(this,Za,new Map)},Si=function(){if(!i(this,xn)){let e=i(this,ge).createElement("div"),{style:s}=e;s.colorScheme="only light",s.visibility="hidden",s.contain="strict",s.width=s.height=0,s.position="absolute",s.top=s.left=0,s.zIndex=-1;let n=i(this,ge).createElementNS(We,"svg");n.setAttribute("width",0),n.setAttribute("height",0),f(this,xn,i(this,ge).createElementNS(We,"defs")),e.append(n),n.append(i(this,xn)),i(this,ge).body.append(e)}return i(this,xn)},Tf=function(e){if(e.length===1){let c=e[0],d=new Array(256);for(let p=0;p<256;p++)d[p]=c[p]/255;let u=d.join(",");return[u,u,u]}let[s,n,r]=e,a=new Array(256),o=new Array(256),l=new Array(256);for(let c=0;c<256;c++)a[c]=s[c]/255,o[c]=n[c]/255,l[c]=r[c]/255;return[a.join(","),o.join(","),l.join(",")]},ua=function(e){if(i(this,Ja)===void 0){f(this,Ja,"");let s=i(this,ge).URL;s!==i(this,ge).baseURI&&(Yu(s)?Q('#createUrl: ignore "data:"-URL for performance reasons.'):f(this,Ja,Py(s,"")))}return`url(${i(this,Ja)}#${e})`},Tv=function(e){let s=i(this,ge).createElementNS(We,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(s)},Mm=function(e){let s=i(this,ge).createElementNS(We,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(s)},fa=function(e){let s=i(this,ge).createElementNS(We,"filter");return s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("id",e),i(this,O,Si).append(s),s},Ah=function(e,s,n){let r=i(this,ge).createElementNS(We,s);r.setAttribute("type","discrete"),r.setAttribute("tableValues",n),e.append(r)},xh=function(e,s,n,r){let a=i(this,ge).createElementNS(We,"feComponentTransfer");r.append(a),m(this,O,Ah).call(this,a,"feFuncR",e),m(this,O,Ah).call(this,a,"feFuncG",s),m(this,O,Ah).call(this,a,"feFuncB",n)},Pm=function(e,s){let n=i(this,ge).createElementNS(We,"feComponentTransfer");s.append(n),m(this,O,Ah).call(this,n,"feFuncA",e)},Sh=function(e){return i(this,O,Si).style.color="CanvasText",i(this,O,Si).style.backgroundColor=e,oh(getComputedStyle(i(this,O,Si)).getPropertyValue("background-color"))},kv=function(e){return i(this,O,Si).style.color="CanvasText",i(this,O,Si).style.backgroundColor=e,ah(getComputedStyle(i(this,O,Si)).getPropertyValue("background-color"))},Dm=function(){i(this,O,Si).style.color="",i(this,O,Si).style.backgroundColor=""},Mv=function(e){let[s,n,r,a]=m(this,O,kv).call(this,e);if(a===1)return[s,n,r];let[o,l,c]=m(this,O,Sh).call(this,"Canvas");return[Pg(s,o,a),Pg(n,l,a),Pg(r,c,a)]};Es&&Q("Please use the `legacy` build in Node.js environments.");Im=class extends dp{},Lm=class extends hp{_createCanvas(t,e){return process.getBuiltinModule("module").createRequire(Gx.url)("@napi-rs/canvas").createCanvas(t,e)}},Om=class extends lp{async _fetch(t,e){return yx(t)}};wx=`
274
+ struct Uniforms {
275
+ offsetX : f32,
276
+ offsetY : f32,
277
+ scaleX : f32,
278
+ scaleY : f32,
279
+ paddedWidth : f32,
280
+ paddedHeight : f32,
281
+ borderSize : f32,
282
+ _pad : f32,
283
+ };
284
+
285
+ @group(0) @binding(0) var<uniform> u : Uniforms;
286
+
287
+ struct VertexInput {
288
+ @location(0) position : vec2<f32>,
289
+ @location(1) color : vec4<f32>,
290
+ };
291
+
292
+ struct VertexOutput {
293
+ @builtin(position) position : vec4<f32>,
294
+ @location(0) color : vec3<f32>,
295
+ };
296
+
297
+ @vertex
298
+ fn vs_main(in : VertexInput) -> VertexOutput {
299
+ var out : VertexOutput;
300
+ let cx = (in.position.x + u.offsetX) * u.scaleX;
301
+ let cy = (in.position.y + u.offsetY) * u.scaleY;
302
+ out.position = vec4<f32>(
303
+ ((cx + u.borderSize) / u.paddedWidth) * 2.0 - 1.0,
304
+ 1.0 - ((cy + u.borderSize) / u.paddedHeight) * 2.0,
305
+ 0.0,
306
+ 1.0
307
+ );
308
+ out.color = in.color.rgb;
309
+ return out;
310
+ }
311
+
312
+ @fragment
313
+ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
314
+ return vec4<f32>(in.color, 1.0);
315
+ }
316
+ `,Rm=class{constructor(){g(this,zp);g(this,Bp,null);g(this,Sn,null);g(this,to,null);g(this,Zl,null)}init(){return i(this,Bp)||f(this,Bp,m(this,zp,Dv).call(this))}get isReady(){return i(this,Sn)!==null}loadMeshShader(){if(!i(this,Sn)||i(this,to))return;let t=i(this,Sn).createShaderModule({code:wx});f(this,to,i(this,Sn).createRenderPipeline({layout:"auto",vertex:{module:t,entryPoint:"vs_main",buffers:[{arrayStride:8,attributes:[{shaderLocation:0,offset:0,format:"float32x2"}]},{arrayStride:4,attributes:[{shaderLocation:1,offset:0,format:"unorm8x4"}]}]},fragment:{module:t,entryPoint:"fs_main",targets:[{format:i(this,Zl)}]},primitive:{topology:"triangle-list"}}))}draw(t,e,s,n,r,a,o,l){this.loadMeshShader();let c=i(this,Sn),{offsetX:d,offsetY:u,scaleX:p,scaleY:b}=n,y=c.createBuffer({size:Math.max(t.byteLength,4),usage:GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_DST});t.byteLength>0&&c.queue.writeBuffer(y,0,t);let v=c.createBuffer({size:Math.max(e.byteLength,4),usage:GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_DST});e.byteLength>0&&c.queue.writeBuffer(v,0,e);let w=c.createBuffer({size:32,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST});c.queue.writeBuffer(w,0,new Float32Array([d,u,p,b,a,o,l,0]));let A=c.createBindGroup({layout:i(this,to).getBindGroupLayout(0),entries:[{binding:0,resource:{buffer:w}}]}),x=new OffscreenCanvas(a,o),S=x.getContext("webgpu");S.configure({device:c,format:i(this,Zl),alphaMode:r?"opaque":"premultiplied"});let E=r?{r:r[0]/255,g:r[1]/255,b:r[2]/255,a:1}:{r:0,g:0,b:0,a:0},C=c.createCommandEncoder(),_=C.beginRenderPass({colorAttachments:[{view:S.getCurrentTexture().createView(),clearValue:E,loadOp:"clear",storeOp:"store"}]});return s>0&&(_.setPipeline(i(this,to)),_.setBindGroup(0,A),_.setVertexBuffer(0,y),_.setVertexBuffer(1,v),_.draw(s)),_.end(),c.queue.submit([C.finish()]),y.destroy(),v.destroy(),w.destroy(),x.transferToImageBitmap()}};Bp=new WeakMap,Sn=new WeakMap,to=new WeakMap,Zl=new WeakMap,zp=new WeakSet,Dv=async function(){if(!globalThis.navigator?.gpu)return!1;try{let t=await navigator.gpu.requestAdapter();return t?(f(this,Zl,navigator.gpu.getPreferredCanvasFormat()),f(this,Sn,await t.requestDevice()),!0):!1}catch{return!1}};lg=new Rm;Ce={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};Yh=class{constructor(){T(this,"matrix",null)}isModifyingCurrentTransform(){return!1}getPattern(){rt("Abstract method `getPattern` called.")}},Nm=class extends Yh{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7]}isOriginBased(){return this._p0[0]===0&&this._p0[1]===0&&(!this.isRadial()||this._p1[0]===0&&this._p1[1]===0)}isRadial(){return this._type==="radial"}areConic(){if(!this.isRadial())return!1;let t=Math.hypot(this._p0[0]-this._p1[0],this._p0[1]-this._p1[1]);return t+this._r1>this._r0&&t+this._r0>this._r1}_createGradient(t,e=null){let s,n=this._p0,r=this._p1;if(e&&(n=n.slice(),r=r.slice(),D.applyTransform(n,e),D.applyTransform(r,e)),this._type==="axial")s=t.createLinearGradient(n[0],n[1],r[0],r[1]);else if(this._type==="radial"){let a=this._r0,o=this._r1;if(e){let l=new Float32Array(2);D.singularValueDecompose2dScale(e,l),a*=l[0],o*=l[0]}s=t.createRadialGradient(n[0],n[1],a,r[0],r[1],o)}for(let a of this._colorStops)s.addColorStop(a[0],a[1]);return s}_createReversedGradient(t,e=null){let s=this._p1,n=this._p0;e&&(s=s.slice(),n=n.slice(),D.applyTransform(s,e),D.applyTransform(n,e));let r=this._r1,a=this._r0;if(e){let c=new Float32Array(2);D.singularValueDecompose2dScale(e,c),r*=c[0],a*=c[0]}let o=t.createRadialGradient(s[0],s[1],r,n[0],n[1],a),l=this._colorStops.map(([c,d])=>[1-c,d]).reverse();for(let[c,d]of l)o.addColorStop(c,d);return o}getPattern(t,e,s,n){let r;if(n===Ce.STROKE||n===Ce.FILL){if(this.isOriginBased()){let p=D.transform(s,e.baseTransform);this.matrix&&(p=D.transform(p,this.matrix));let b=.001,y=Math.hypot(p[0],p[1]),v=Math.hypot(p[2],p[3]),w=(p[0]*p[2]+p[1]*p[3])/(y*v);if(Math.abs(w)<b)if(this.isRadial()){if(Math.abs(y-v)<b)return this._createGradient(t,p)}else return this._createGradient(t,p)}let a=e.current.getClippedPathBoundingBox(n,Et(t))||[0,0,0,0],o=Math.ceil(a[2]-a[0])||1,l=Math.ceil(a[3]-a[1])||1,c=e.canvasFactory.create(o,l),d=c.context;d.clearRect(0,0,d.canvas.width,d.canvas.height),d.beginPath(),d.rect(0,0,d.canvas.width,d.canvas.height),d.translate(-a[0],-a[1]),s=D.transform(s,[1,0,0,1,a[0],a[1]]),d.transform(...e.baseTransform),this.matrix&&d.transform(...this.matrix),kf(d,this._bbox),this.areConic()&&(d.fillStyle=this._createReversedGradient(d),d.fill()),d.fillStyle=this._createGradient(d),d.fill(),r=t.createPattern(c.canvas,"no-repeat"),e.canvasFactory.destroy(c);let u=new DOMMatrix(s);r.setTransform(u)}else this.areConic()&&(t.save(),kf(t,this._bbox),t.fillStyle=this._createReversedGradient(t),t.fillRect(-1e10,-1e10,2e10,2e10),t.restore()),kf(t,this._bbox),r=this._createGradient(t);return r}};Fm=class extends Yh{constructor(t){super(),this._posData=t[2],this._colData=t[3],this._vertexCount=t[4],this._bounds=t[5],this._bbox=t[6],this._background=t[7],Sx()}_createMeshCanvas(t,e,s){let o=Math.floor(this._bounds[0]),l=Math.floor(this._bounds[1]),c=Math.ceil(this._bounds[2])-o,d=Math.ceil(this._bounds[3])-l,u=Math.min(Math.ceil(Math.abs(c*t[0]*1.1)),3e3)||1,p=Math.min(Math.ceil(Math.abs(d*t[1]*1.1)),3e3)||1,b=c?c/u:1,y=d?d/p:1,v={coords:this._posData,colors:this._colData,offsetX:-o,offsetY:-l,scaleX:1/b,scaleY:1/y},w=u+4,A=p+4,x=s.create(w,A);if(xx()&&this._vertexCount>48)x.context.drawImage(Ex(this._posData,this._colData,this._vertexCount,v,e,w,A,2),0,0);else{let S=x.context.createImageData(u,p);if(e){let E=S.data;for(let C=0,_=E.length;C<_;C+=4)E[C]=e[0],E[C+1]=e[1],E[C+2]=e[2],E[C+3]=255}for(let E=0,C=this._vertexCount;E<C;E+=3)Cx(S,v,E,E+1,E+2,E,E+1,E+2);x.context.putImageData(S,2,2)}return{canvas:x.canvas,offsetX:o-2*b,offsetY:l-2*y,scaleX:b,scaleY:y}}isModifyingCurrentTransform(){return!0}getPattern(t,e,s,n){kf(t,this._bbox);let r=new Float32Array(2);if(n===Ce.SHADING)D.singularValueDecompose2dScale(Et(t),r);else if(this.matrix){D.singularValueDecompose2dScale(this.matrix,r);let[l,c]=r;D.singularValueDecompose2dScale(e.baseTransform,r),r[0]*=l,r[1]*=c}else D.singularValueDecompose2dScale(e.baseTransform,r);let a=this._createMeshCanvas(r,n===Ce.SHADING?null:this._background,e.canvasFactory);n!==Ce.SHADING&&(t.setTransform(...e.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(a.offsetX,a.offsetY),t.scale(a.scaleX,a.scaleY);let o=t.createPattern(a.canvas,"no-repeat");return e.canvasFactory.destroy(a),o}},Bm=class extends Yh{getPattern(){return"hotpink"}};A0={COLORED:1,UNCOLORED:2},Hp=class Hp{constructor(t,e,s,n){this.color=t[1],this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.needsIsolation=t[9]??!0,this.ctx=e,this.canvasGraphicsFactory=s,this.baseTransform=n,this.patternBaseMatrix=this.matrix?D.transform(n,this.matrix):n}canSkipPatternCanvas([t,e,s,n]){let[r,a,o,l]=this.bbox,c=Math.abs(this.xstep),d=Math.abs(this.ystep);if(t>c+1e-6||e>d+1e-6)return null;let u=Math.floor((s-o)/c)+1,p=Math.ceil((s+t-r)/c)-1,b=Math.floor((n-l)/d)+1,y=Math.ceil((n+e-a)/d)-1;return p<=u&&y<=b?[u,b]:null}updatePatternDims(t,e){let s=D.inverseTransform(this.patternBaseMatrix),n=[t[0],t[1]],r=[t[2],t[3]];D.applyTransform(n,s),D.applyTransform(r,s),e[0]=Math.abs(r[0]-n[0]),e[1]=Math.abs(r[1]-n[1]),e[2]=Math.min(n[0],r[0]),e[3]=Math.min(n[1],r[1])}_renderTileCanvas(t,e,s,n){let[r,a,o,l]=this.bbox,c=t.canvasFactory.create(s.size,n.size),d=c.context,u=this.canvasGraphicsFactory.createCanvasGraphics(d,e);return u.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(u,this.paintType,this.color),d.translate(-s.scale*r,-n.scale*a),u.transform(0,s.scale,0,0,n.scale,0,0),d.save(),u.dependencyTracker?.save(),this.clipBbox(u,r,a,o,l),u.baseTransform=Et(u.ctx),u.executeOperatorList(this.operatorList),u.endDrawing(),u.dependencyTracker?.restore(),d.restore(),c}_getCombinedScales(){let t=new Float32Array(2);D.singularValueDecompose2dScale(this.matrix,t);let[e,s]=t;return D.singularValueDecompose2dScale(this.baseTransform,t),[e*t[0],s*t[1]]}drawPattern(t,e,s=!1,[n,r],a){let[o,l,c,d]=this.bbox,u=t.dependencyTracker;if(u&&(t.dependencyTracker=new Xh(u,a)),t.save(),s?t.ctx.clip(e,"evenodd"):t.ctx.clip(e),t.ctx.setTransform(...this.patternBaseMatrix),t.ctx.translate(n*this.xstep,r*this.ystep),this.needsIsolation||t.ctx.globalAlpha!==1||t.ctx.globalCompositeOperation!=="source-over"||t.inSMaskMode){let p=c-o,b=d-l,[y,v]=this._getCombinedScales(),w=this.getSizeAndScale(p,this.ctx.canvas.width,y),A=this.getSizeAndScale(b,this.ctx.canvas.height,v),x=this._renderTileCanvas(t,a,w,A);t.ctx.drawImage(x.canvas,o,l,p,b),t.canvasFactory.destroy(x)}else this.setFillAndStrokeStyleToContext(t,this.paintType,this.color),this.clipBbox(t,o,l,c,d),t.baseTransformStack.push(t.baseTransform),t.baseTransform=Et(t.ctx),t.executeOperatorList(this.operatorList),t.baseTransform=t.baseTransformStack.pop();t.restore(),u&&(t.dependencyTracker=u)}createPatternCanvas(t,e){let[s,n,r,a]=this.bbox,o=r-s,l=a-n,{xstep:c,ystep:d}=this;c=Math.abs(c),d=Math.abs(d),ig("TilingType: "+this.tilingType);let[u,p]=this._getCombinedScales(),b=o,y=l,v=!1,w=!1;Math.ceil(c*u)>=Math.ceil(o*u)?b=c:v=!0,Math.ceil(d*p)>=Math.ceil(l*p)?y=d:w=!0;let A=this.getSizeAndScale(b,this.ctx.canvas.width,u),x=this.getSizeAndScale(y,this.ctx.canvas.height,p),S=this._renderTileCanvas(t,e,A,x);if(v||w){let E=S.canvas;v&&(b=c),w&&(y=d);let C=this.getSizeAndScale(b,this.ctx.canvas.width,u),_=this.getSizeAndScale(y,this.ctx.canvas.height,p),k=C.size,P=_.size,I=t.canvasFactory.create(k,P),F=I.context,B=v?Math.floor(o/c):0,H=w?Math.floor(l/d):0;for(let L=0;L<=B;L++)for(let X=0;X<=H;X++)F.drawImage(E,k*L,P*X,k,P,0,0,k,P);return t.canvasFactory.destroy(S),{canvas:I.canvas,canvasEntry:I,scaleX:C.scale,scaleY:_.scale,offsetX:s,offsetY:n}}return{canvas:S.canvas,canvasEntry:S,scaleX:A.scale,scaleY:x.scale,offsetX:s,offsetY:n}}getSizeAndScale(t,e,s){let n=Math.max(Hp.MAX_PATTERN_SIZE,e),r=Math.ceil(t*s);return r>=n?r=n:s=r/t,{scale:s,size:r}}clipBbox(t,e,s,n,r){let a=n-e,o=r-s,l=new Path2D;l.rect(e,s,a,o),D.axialAlignedBoundingBox([e,s,n,r],Et(t.ctx),t.current.minMax),t.ctx.clip(l),t.current.updateClipFromPath()}setFillAndStrokeStyleToContext(t,e,s){let n=t.ctx,r=t.current;switch(r.patternFill=r.patternStroke=!1,e){case A0.COLORED:let{fillStyle:a,strokeStyle:o}=this.ctx;n.fillStyle=r.fillColor=a,n.strokeStyle=r.strokeColor=o;break;case A0.UNCOLORED:n.fillStyle=n.strokeStyle=s,r.fillColor=r.strokeColor=s;break;default:throw new Og(`Unsupported paint type: ${e}`)}}isModifyingCurrentTransform(){return!1}getPattern(t,e,s,n,r){let a=n!==Ce.SHADING?D.transform(s,this.patternBaseMatrix):s,o=this.createPatternCanvas(e,r),l=new DOMMatrix(a);l=l.translate(o.offsetX,o.offsetY),l=l.scale(1/o.scaleX,1/o.scaleY);let c=t.createPattern(o.canvas,"repeat");return e.canvasFactory.destroy(o.canvasEntry),c.setTransform(l),c}};T(Hp,"MAX_PATTERN_SIZE",3e3);Fh=Hp,Tx=16,kx=100,Mx=15,x0=10,ns=16,Cs=new Float32Array(2);up=class{constructor(t,e){T(this,"alphaIsShape",!1);T(this,"fontSize",0);T(this,"fontSizeScale",1);T(this,"textMatrix",null);T(this,"textMatrixScale",1);T(this,"fontMatrix",Ig);T(this,"leading",0);T(this,"x",0);T(this,"y",0);T(this,"lineX",0);T(this,"lineY",0);T(this,"charSpacing",0);T(this,"wordSpacing",0);T(this,"textHScale",1);T(this,"textRenderingMode",oe.FILL);T(this,"textRise",0);T(this,"fillColor","#000000");T(this,"strokeColor","#000000");T(this,"tilingPatternDims",null);T(this,"patternFill",!1);T(this,"patternStroke",!1);T(this,"fillAlpha",1);T(this,"strokeAlpha",1);T(this,"lineWidth",1);T(this,"activeSMask",null);T(this,"transferMaps","none");T(this,"minMax",Aa.slice());this.clipBox=new Float32Array([0,0,t,e])}clone(){let t=Object.create(this);return t.clipBox=this.clipBox.slice(),t.minMax=this.minMax.slice(),t.tilingPatternDims=this.tilingPatternDims?.slice(),t}getPathBoundingBox(t=Ce.FILL,e=null){let s=this.minMax.slice();if(t===Ce.STROKE){e||rt("Stroke bounding box must include transform."),D.singularValueDecompose2dScale(e,Cs);let n=Cs[0]*this.lineWidth/2,r=Cs[1]*this.lineWidth/2;s[0]-=n,s[1]-=r,s[2]+=n,s[3]+=r}return s}updateClipFromPath(){let t=D.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(t){this.clipBox.set(t,0),this.minMax.set(Aa,0)}getClippedPathBoundingBox(t=Ce.FILL,e=null){return D.intersect(this.clipBox,this.getPathBoundingBox(t,e))}};Px=["butt","round","square"],Dx=["miter","round","bevel"],Ix={},T0={},ya=class ya{constructor(t,e,s,n,r,{optionalContentConfig:a,markedContentStack:o=null},l,c,d,u){g(this,$);g(this,ds,0);g(this,Ir,0);g(this,eo,null);g(this,so,null);g(this,io,null);g(this,no,null);g(this,ro,1);g(this,ao);g(this,oo,null);g(this,Bi,[]);this.ctx=t,this.current=new up(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.commonObjs=e,this.objs=s,this.canvasFactory=n,this.filterFactory=r,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.tempSMask=null,this.smaskGroupCanvases=[],this.smaskPreparedEntry=null,this.smaskPreparedFor=null,this.smaskPreparedOffsetX=0,this.smaskPreparedOffsetY=0,this.smaskPreparedOOBAlpha=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=o||[],this.optionalContentConfig=a,this.cachedPatterns=new Map,this.annotationCanvasMap=l,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=c,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map,this.dependencyTracker=d??null,this.imagesTracker=u??null}getObject(t,e,s=null){return typeof e=="string"?(this.dependencyTracker?.recordNamedDependency(t,e),e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e)):s}beginDrawing({transform:t,viewport:e,transparency:s=!1,background:n=null}){let r=this.ctx.canvas.width,a=this.ctx.canvas.height,o=this.ctx.fillStyle;if(this.ctx.fillStyle=n||"#ffffff",this.ctx.fillRect(0,0,r,a),this.ctx.fillStyle=o,s){let l=this.transparentCanvasEntry=this.canvasFactory.create(r,a);this.compositeCtx=this.ctx,{canvas:this.transparentCanvas,context:this.ctx}=l,this.ctx.save(),this.ctx.transform(...Et(this.compositeCtx))}this.ctx.save(),cf(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[3]),this.ctx.transform(...e.transform),this.viewportScale=e.scale,this.baseTransform=Et(this.ctx)}executeOperatorList(t,e,s,n,r){let a=t.argsArray,o=t.fnArray,l=e||0,c=a.length;if(c===l)return l;let d=c-l>x0&&typeof s=="function",u=d?Date.now()+Mx:0,p=0,b=this.commonObjs,y=this.objs,v,w;for(;;){if(n!==void 0){if(l===n.nextBreakPoint)return n.breakIt(l,s),l;if(n.shouldSkip(l)){if(++l===c)return l;continue}}if(!r||r(l))if(v=o[l],w=a[l]??null,v!==mi.dependency)w===null?this[v](l):this[v](l,...w);else for(let A of w){this.dependencyTracker?.recordNamedData(A,l);let x=A.startsWith("g_")?b:y;if(!x.has(A))return x.get(A,s),l}if(l++,l===c)return l;if(d&&++p>x0){if(Date.now()>u)return s(),l;p=0}}}endDrawing(){m(this,$,zm).call(this);for(let t of this.smaskGroupCanvases)this.canvasFactory.destroy(t);this.smaskGroupCanvases.length=0,this._clearPreparedSMask(),this.tempSMask=null,this.smaskStack.length=0;for(let t of i(this,Bi))m(this,$,Mf).call(this,t);i(this,Bi).length=0,f(this,eo,null),f(this,so,null),f(this,io,null),f(this,no,null),f(this,ro,1),f(this,oo,null),f(this,Ir,0),f(this,ds,0),this.cachedPatterns.clear();for(let t of this._cachedBitmapsMap.values()){for(let e of t.values())typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement&&(e.width=e.height=0);t.clear()}this._cachedBitmapsMap.clear(),m(this,$,Hm).call(this)}_scaleImage(t,e){let s=t.width??t.displayWidth,n=t.height??t.displayHeight,r=Math.max(Math.hypot(e[0],e[1]),1),a=Math.max(Math.hypot(e[2],e[3]),1),o=[],l=r,c=a,d=s,u=n;for(;l>2&&d>1||c>2&&u>1;){let A=d,x=u;l>2&&d>1&&(A=Math.ceil(d/2),l/=d/A),c>2&&u>1&&(x=Math.ceil(u/2),c/=u/x),o.push({newWidth:A,newHeight:x}),d=A,u=x}if(o.length===0)return{img:t,paintWidth:s,paintHeight:n,tmpCanvas:null};if(o.length===1){let{newWidth:A,newHeight:x}=o[0],S=this.canvasFactory.create(A,x);return S.context.drawImage(t,0,0,s,n,0,0,A,x),{img:S.canvas,paintWidth:A,paintHeight:x,tmpCanvas:S}}let p=this.canvasFactory.create(1,1),b=this.canvasFactory.create(1,1),y=s,v=n,w=t;for(let{newWidth:A,newHeight:x}of o)this.canvasFactory.reset(b,A,x),b.context.drawImage(w,0,0,y,v,0,0,A,x),[p,b]=[b,p],w=p.canvas,y=A,v=x;return this.canvasFactory.destroy(b),{img:p.canvas,paintWidth:y,paintHeight:v,tmpCanvas:p}}_createMaskCanvas(t,e){let s=this.ctx,{width:n,height:r}=e,a=this.current.fillColor,o=this.current.patternFill,l=Et(s),c,d,u,p;if((e.bitmap||e.data)&&e.count>1){let B=e.bitmap||e.data.buffer;d=JSON.stringify(o?l:[l.slice(0,4),a]),c=this._cachedBitmapsMap.getOrInsertComputed(B,rg);let H=c.get(d);if(H&&!o){let L=Math.round(Math.min(l[0],l[2])+l[4]),X=Math.round(Math.min(l[1],l[3])+l[5]);return this.dependencyTracker?.recordDependencies(t,Is.transformAndFill),{canvas:H,offsetX:L,offsetY:X}}u=H}u||(p=this.canvasFactory.create(n,r),C0(p.context,e));let b=D.transform(l,[1/n,0,0,-1/r,0,0]);b=D.transform(b,[1,0,0,1,0,-r]);let y=Aa.slice();D.axialAlignedBoundingBox([0,0,n,r],b,y);let[v,w,A,x]=y,S=Math.round(A-v)||1,E=Math.round(x-w)||1,C=this.canvasFactory.create(S,E),_=C.context,k=v,P=w;_.translate(-k,-P),_.transform(...b);let I=null;if(!u){let B=this._scaleImage(p.canvas,Ai(_));u=B.img,I=B.tmpCanvas,u!==p.canvas&&(this.canvasFactory.destroy(p),p=null),c&&o&&(c.set(d,u),I=null,p=null)}_.imageSmoothingEnabled=_0(Et(_),e.interpolate),lf(_,u,0,0,u.width,u.height,0,0,n,r),I&&this.canvasFactory.destroy(I),p&&this.canvasFactory.destroy(p),_.globalCompositeOperation="source-in";let F=D.transform(Ai(_),[1,0,0,1,-k,-P]);return _.fillStyle=o?a.getPattern(s,this,F,Ce.FILL,t):a,_.fillRect(0,0,n,r),c&&!o&&c.set(d,C.canvas),this.dependencyTracker?.recordDependencies(t,Is.transformAndFill),{canvas:C.canvas,canvasEntry:c&&!o?null:C,offsetX:Math.round(k),offsetY:Math.round(P)}}setLineWidth(t,e){this.dependencyTracker?.recordSimpleData("lineWidth",t),e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(t,e){this.dependencyTracker?.recordSimpleData("lineCap",t),this.ctx.lineCap=Px[e]}setLineJoin(t,e){this.dependencyTracker?.recordSimpleData("lineJoin",t),this.ctx.lineJoin=Dx[e]}setMiterLimit(t,e){this.dependencyTracker?.recordSimpleData("miterLimit",t),this.ctx.miterLimit=e}setDash(t,e,s){this.dependencyTracker?.recordSimpleData("dash",t);let n=this.ctx;n.setLineDash!==void 0&&(n.setLineDash(e),n.lineDashOffset=s)}setRenderingIntent(t,e){}setFlatness(t,e){}setGState(t,e){for(let[s,n]of e)switch(s){case"LW":this.setLineWidth(t,n);break;case"LC":this.setLineCap(t,n);break;case"LJ":this.setLineJoin(t,n);break;case"ML":this.setMiterLimit(t,n);break;case"D":this.setDash(t,n[0],n[1]);break;case"RI":this.setRenderingIntent(t,n);break;case"FL":this.setFlatness(t,n);break;case"Font":this.setFont(t,n[0],n[1]);break;case"CA":this.dependencyTracker?.recordSimpleData("strokeAlpha",t),this.current.strokeAlpha=n;break;case"ca":this.dependencyTracker?.recordSimpleData("fillAlpha",t),this.ctx.globalAlpha=this.current.fillAlpha=n;break;case"BM":this.dependencyTracker?.recordSimpleData("globalCompositeOperation",t),this.ctx.globalCompositeOperation=n;break;case"SMask":this.dependencyTracker?.recordSimpleData("SMask",t),this.current.activeSMask=n?this.tempSMask:null,this.current.activeSMask&&(this.current.activeSMask.blendMode=this.ctx.globalCompositeOperation),this.tempSMask=null,this.checkSMaskState(t);break;case"TR":this.dependencyTracker?.recordSimpleData("filter",t),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n);break}}get inSMaskMode(){return!!this.suspendedCtx}_clearPreparedSMask(){this.smaskPreparedEntry&&(this.canvasFactory.destroy(this.smaskPreparedEntry),this.smaskPreparedEntry=null),this.smaskPreparedFor=null,this.smaskPreparedOffsetX=0,this.smaskPreparedOffsetY=0,this.smaskPreparedOOBAlpha=null}_ensurePreparedSMask(t){t!==this.smaskPreparedFor&&(this._clearPreparedSMask(),this._prepareSMaskCanvas(t))}checkSMaskState(t){let e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode(t):!this.current.activeSMask&&e?this.endSMaskMode():this.current.activeSMask&&e&&this._ensurePreparedSMask(this.current.activeSMask)}_prepareSMaskCanvas(t){let{canvas:e,subtype:s,backdrop:n,transferMap:r}=t,a=s==="Luminosity"||s==="Alpha"&&r;if(!a&&!(s==="Luminosity"&&n)){this.smaskPreparedFor=t;return}let o;if(s==="Luminosity"&&n){let[x,S,E]=ah(n),C=Math.round(.3*x+.59*S+.11*E);o=r?.[C]??C}else o=r?.[0]??0;let l=4,{width:c,height:d}=this.ctx.canvas,u=e.width*e.height,p=c*d<l*u,b=a?{url:s==="Alpha"?this.filterFactory.addAlphaFilter(r):this.filterFactory.addLuminosityFilter(r),subtype:s,transferMap:r}:null,y=s==="Luminosity"?n:null,v,w,A;p?(v=this._bakeSMaskCanvas(e,t.offsetX,t.offsetY,c,d,y,b),w=0,A=0):(v=this._bakeSMaskCanvas(e,0,0,e.width,e.height,y,b),w=t.offsetX,A=t.offsetY),this.smaskPreparedEntry=v,this.smaskPreparedFor=t,this.smaskPreparedOffsetX=w,this.smaskPreparedOffsetY=A,this.smaskPreparedOOBAlpha=!p&&o!==0?o:null}_bakeSMaskCanvas(t,e,s,n,r,a,o){!a&&!o&&rt("_bakeSMaskCanvas with neither backdrop nor filter");let l=this.canvasFactory.create(n,r),c=l.context;if(c.drawImage(t,e,s),a&&(c.globalCompositeOperation="destination-atop",c.fillStyle=a,c.fillRect(0,0,n,r)),!o)return l;let d=this.canvasFactory.create(n,r),u=d.context;u.filter=o.url;let p=lt.isCanvasFilterSupported&&u.filter!=="none"&&u.filter!=="";if(u.drawImage(l.canvas,0,0),lt.isCanvasFilterSupported&&(u.filter="none"),!p){let b=u.getImageData(0,0,n,r),{data:y}=b,{transferMap:v}=o;if(o.subtype==="Luminosity")for(let w=0,A=y.length;w<A;w+=4){let x=.3*y[w]+.59*y[w+1]+.11*y[w+2]+.5|0;y[w]=y[w+1]=y[w+2]=0,y[w+3]=v?.[x]??x}else for(let w=3,A=y.length;w<A;w+=4)y[w]=v[y[w]];u.putImageData(b,0,0)}return this.canvasFactory.destroy(l),d}beginSMaskMode(t){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");let{width:e,height:s}=this.ctx.canvas,n=this.canvasFactory.create(e,s);this.smaskScratchCanvas=n,this.suspendedCtx=this.ctx;let r=this.ctx=n.context;r.setTransform(this.suspendedCtx.getTransform()),da(this.suspendedCtx,r),S0(r,this.suspendedCtx),this._ensurePreparedSMask(this.current.activeSMask),this.setGState(t,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),da(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null,this.canvasFactory.destroy(this.smaskScratchCanvas),this.smaskScratchCanvas=null,this._clearPreparedSMask()}compose(t){if(!this.current.activeSMask)return;t=t?[Math.floor(t[0]),Math.floor(t[1]),Math.ceil(t[2]),Math.ceil(t[3])]:[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let e=this.current.activeSMask,s=this.suspendedCtx,n=i(this,Ir)>0&&s===this.ctx;this.composeSMask(n?null:s,e,this.ctx,t),!n&&(this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore())}composeSMask(t,e,s,n){let r=n[0],a=n[1],o=n[2]-r,l=n[3]-a;if(o===0||l===0)return;let c=this.smaskPreparedEntry;if(c){let d=r,u=a,p=o,b=l,y=this.smaskPreparedOOBAlpha,v=y!==null;if(v){d=Math.max(r,e.offsetX),u=Math.max(a,e.offsetY);let w=Math.min(r+o,e.offsetX+e.canvas.width),A=Math.min(a+l,e.offsetY+e.canvas.height);p=w-d,b=A-u}if(p>0&&b>0){let w=d-this.smaskPreparedOffsetX,A=u-this.smaskPreparedOffsetY;s.save(),s.globalAlpha=1,s.setTransform(1,0,0,1,0,0);let x=new Path2D;x.rect(d,u,p,b),s.clip(x),s.globalCompositeOperation="destination-in",s.drawImage(c.canvas,w,A,p,b,d,u,p,b),s.restore()}v&&y<255&&this._applySMaskOOBAlpha(s,r,a,o,l,d,u,d+p,u+b,y)}else this.genericComposeSMask(e,s,o,l,r,a);t&&(t.save(),t.globalAlpha=1,t.globalCompositeOperation=e.blendMode||"source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(s.canvas,r,a,o,l,r,a,o,l),t.restore())}_applySMaskOOBAlpha(t,e,s,n,r,a,o,l,c,d){let u=a<l&&o<c;if(u&&a===e&&o===s&&l===e+n&&c===s+r)return;let p=new Path2D;p.rect(e,s,n,r),u&&p.rect(a,o,l-a,c-o),t.save(),t.globalAlpha=d/255,t.setTransform(1,0,0,1,0,0),t.clip(p,"evenodd"),t.globalCompositeOperation="destination-in",t.fillStyle="#000000",t.fillRect(e,s,n,r),t.restore()}genericComposeSMask(t,e,s,n,r,a){let{context:o,offsetX:l,offsetY:c}=t;e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);let d=new Path2D;d.rect(r,a,s,n),e.clip(d),e.globalCompositeOperation="destination-in",e.drawImage(o.canvas,r-l,a-c,s,n,r,a,s,n),e.restore()}save(t){this.inSMaskMode&&da(this.ctx,this.suspendedCtx),this.ctx.save();let e=this.current;this.stateStack.push(e),this.current=e.clone(),this.dependencyTracker?.save(t)}restore(t){if(this.dependencyTracker?.restore(t),this.stateStack.length===0){this.inSMaskMode&&this.endSMaskMode();return}this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&(da(this.suspendedCtx,this.ctx),this.ctx.setTransform(this.suspendedCtx.getTransform())),this.checkSMaskState(t),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}transform(t,e,s,n,r,a,o){this.dependencyTracker?.recordIncrementalData("transform",t),this.ctx.transform(e,s,n,r,a,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,e,s,n){let[r]=s;if(!n){r||(r=s[0]=new Path2D),e!==mi.stroke&&e!==mi.closeStroke&&(this.current.tilingPatternDims=null),this[e](t,r);return}if(this.dependencyTracker!==null){let o=e===mi.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(t).recordBBox(t,this.ctx,n[0]-o,n[2]+o,n[1]-o,n[3]+o).recordDependencies(t,["transform"])}r instanceof Path2D||(r=s[0]=$0(r)),D.axialAlignedBoundingBox(n,Et(this.ctx),this.current.minMax);let a=this.current.tilingPatternDims;if(a&&e!==mi.stroke&&e!==mi.closeStroke&&this.current.fillColor instanceof Fh){let o=D.intersect(this.current.clipBox,this.current.minMax);o?this.current.fillColor.updatePatternDims(o,a):this.current.tilingPatternDims=null}this[e](t,r),this._pathStartIdx=t}closePath(t){this.ctx.closePath()}stroke(t,e,s=!0){let n=s&&m(this,$,qe).call(this,this.current.strokeAlpha),r=this.ctx,a=this.current.strokeColor;if(r.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof a=="object"&&a?.getPattern){let o=a.isModifyingCurrentTransform()?r.getTransform():null;if(r.save(),r.strokeStyle=a.getPattern(r,this,Ai(r),Ce.STROKE,t),o){let l=new Path2D;l.addPath(e,r.getTransform().invertSelf().multiplySelf(o)),e=l}this.rescaleAndStroke(e,!1),r.restore()}else this.rescaleAndStroke(e,!0);this.dependencyTracker?.recordDependencies(t,Is.stroke),s&&this.consumePath(t,e,this.current.getClippedPathBoundingBox(Ce.STROKE,Et(this.ctx))),r.globalAlpha=this.current.fillAlpha,m(this,$,Pe).call(this,n)}closeStroke(t,e){this.stroke(t,e)}fill(t,e,s=!0){let n=s&&m(this,$,qe).call(this,this.current.fillAlpha),r=this.ctx,a=this.current.fillColor,o=this.current.patternFill,l=!1,c=this.current.getClippedPathBoundingBox();if(this.dependencyTracker?.recordDependencies(t,Is.fill),o){let d=this.current.tilingPatternDims,u=d&&a.canSkipPatternCanvas(d);if(u){a.drawPattern(this,e,this.pendingEOFill,u,t),this.pendingEOFill=!1,s&&this.consumePath(t,e,c),this.current.tilingPatternDims=null,m(this,$,Pe).call(this,n);return}let p=a.isModifyingCurrentTransform()?r.getTransform():null;if(this.dependencyTracker?.save(t),r.save(),r.fillStyle=a.getPattern(r,this,Ai(r),Ce.FILL,t),p){let b=new Path2D;b.addPath(e,r.getTransform().invertSelf().multiplySelf(p)),e=b}l=!0}this.contentVisible&&c!==null&&(this.pendingEOFill?(r.fill(e,"evenodd"),this.pendingEOFill=!1):r.fill(e)),l&&(r.restore(),this.dependencyTracker?.restore(t)),s&&this.consumePath(t,e,c),m(this,$,Pe).call(this,n)}eoFill(t,e){this.pendingEOFill=!0,this.fill(t,e)}fillStroke(t,e){let s=m(this,$,qe).call(this,Math.min(this.current.fillAlpha,this.current.strokeAlpha));this.fill(t,e,!1),this.stroke(t,e,!1),this.consumePath(t,e),m(this,$,Pe).call(this,s)}eoFillStroke(t,e){this.pendingEOFill=!0,this.fillStroke(t,e)}closeFillStroke(t,e){this.fillStroke(t,e)}closeEOFillStroke(t,e){this.pendingEOFill=!0,this.fillStroke(t,e)}endPath(t,e){this.consumePath(t,e)}rawFillPath(t,e){let s=m(this,$,qe).call(this,this.current.fillAlpha);this.ctx.fill(e),this.dependencyTracker?.recordDependencies(t,Is.rawFillPath).recordOperation(t),m(this,$,Pe).call(this,s)}clip(t){this.dependencyTracker?.recordFutureForcedDependency("clipMode",t),this.pendingClip=Ix}eoClip(t){this.dependencyTracker?.recordFutureForcedDependency("clipMode",t),this.pendingClip=T0}beginText(t){this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.dependencyTracker?.recordOpenMarker(t).resetIncrementalData("sameLineText").resetIncrementalData("moveText",t)}endText(t){let e=this.pendingTextPaths,s=this.ctx;if(this.dependencyTracker){let{dependencyTracker:n}=this;e!==void 0&&n.recordFutureForcedDependency("textClip",n.getOpenMarker()).recordFutureForcedDependency("textClip",t),n.recordCloseMarker(t)}if(e!==void 0){let n=new Path2D,r=s.getTransform().invertSelf();for(let{transform:a,x:o,y:l,fontSize:c,path:d}of e)d&&n.addPath(d,new DOMMatrix(a).preMultiplySelf(r).translate(o,l).scale(c,-c));s.clip(n)}delete this.pendingTextPaths}setCharSpacing(t,e){this.dependencyTracker?.recordSimpleData("charSpacing",t),this.current.charSpacing=e}setWordSpacing(t,e){this.dependencyTracker?.recordSimpleData("wordSpacing",t),this.current.wordSpacing=e}setHScale(t,e){this.dependencyTracker?.recordSimpleData("hScale",t),this.current.textHScale=e/100}setLeading(t,e){this.dependencyTracker?.recordSimpleData("leading",t),this.current.leading=-e}setFont(t,e,s){this.dependencyTracker?.recordSimpleData("font",t).recordSimpleDataFromNamed("fontObj",e,t);let n=this.commonObjs.get(e),r=this.current;if(!n)throw new Error(`Can't find font for ${e}`);if(r.fontMatrix=n.fontMatrix||Ig,(r.fontMatrix[0]===0||r.fontMatrix[3]===0)&&Q("Invalid font matrix for font "+e),s<0?(s=-s,r.fontDirection=-1):r.fontDirection=1,this.current.font=n,this.current.fontSize=s,n.isType3Font)return;let a=n.loadedName||"sans-serif",o=n.systemFontInfo?.css||`"${a}", ${n.fallbackName}`,l="normal";n.black?l="900":n.bold&&(l="bold");let c=n.italic?"italic":"normal",d=Ct(s,Tx,kx);this.current.fontSizeScale=s/d,this.ctx.font=`${c} ${l} ${d}px ${o}`}setTextRenderingMode(t,e){this.dependencyTracker?.recordSimpleData("textRenderingMode",t),this.current.textRenderingMode=e}setTextRise(t,e){this.dependencyTracker?.recordSimpleData("textRise",t),this.current.textRise=e}moveText(t,e,s){this.dependencyTracker?.resetIncrementalData("sameLineText").recordIncrementalData("moveText",t),this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=s}setLeadingMoveText(t,e,s){this.setLeading(t,-s),this.moveText(t,e,s)}setTextMatrix(t,e){this.dependencyTracker?.resetIncrementalData("sameLineText").recordSimpleData("textMatrix",t);let{current:s}=this;s.textMatrix=e,s.textMatrixScale=Math.hypot(e[0],e[1]),s.x=s.lineX=0,s.y=s.lineY=0}nextLine(t){this.moveText(t,0,this.current.leading),this.dependencyTracker?.recordIncrementalData("moveText",this.dependencyTracker.getSimpleIndex("leading")??t)}paintChar(t,e,s,n,r,a){let o=this.ctx,l=this.current,c=l.font,d=l.textRenderingMode,u=l.fontSize/l.fontSizeScale,p=d&oe.FILL_STROKE_MASK,b=!!(d&oe.ADD_TO_PATH_FLAG),y=l.patternFill&&!c.missingFile,v=l.patternStroke&&!c.missingFile,w;if((c.disableFontFace||b||y||v)&&!c.missingFile&&(w=c.getPathGenerator(this.commonObjs,e)),w&&(c.disableFontFace||y||v)){o.save(),o.translate(s,n),o.scale(u,-u),this.dependencyTracker?.recordCharacterBBox(t,o,c);let A;if(p===oe.FILL||p===oe.FILL_STROKE)if(r){A=o.getTransform(),o.setTransform(...r);let x=m(this,$,jm).call(this,w,A,r);o.fill(x)}else o.fill(w);if(p===oe.STROKE||p===oe.FILL_STROKE)if(a){A||(A=o.getTransform()),o.setTransform(...a);let{a:x,b:S,c:E,d:C}=A,_=D.inverseTransform(a),k=D.transform([x,S,E,C,0,0],_);D.singularValueDecompose2dScale(k,Cs),o.lineWidth*=Math.max(Cs[0],Cs[1])/u,o.stroke(m(this,$,jm).call(this,w,A,a))}else o.lineWidth/=u,o.stroke(w);o.restore()}else(p===oe.FILL||p===oe.FILL_STROKE)&&(o.fillText(e,s,n),this.dependencyTracker?.recordCharacterBBox(t,o,c,u,s,n,()=>o.measureText(e))),(p===oe.STROKE||p===oe.FILL_STROKE)&&(this.dependencyTracker&&this.dependencyTracker?.recordCharacterBBox(t,o,c,u,s,n,()=>o.measureText(e)).recordDependencies(t,Is.stroke),o.strokeText(e,s,n));b&&((this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:Et(o),x:s,y:n,fontSize:u,path:w}),this.dependencyTracker?.recordCharacterBBox(t,o,c,u,s,n))}get isFontSubpixelAAEnabled(){let t=this.canvasFactory.create(10,10),e=t.context;e.scale(1.5,1),e.fillText("I",0,10);let s=e.getImageData(0,0,10,10).data;this.canvasFactory.destroy(t);let n=!1;for(let r=3;r<s.length;r+=4)if(s[r]>0&&s[r]<255){n=!0;break}return G(this,"isFontSubpixelAAEnabled",n)}showText(t,e){this.dependencyTracker&&(this.dependencyTracker.recordDependencies(t,Is.showText).resetBBox(t),this.current.textRenderingMode&oe.ADD_TO_PATH_FLAG&&this.dependencyTracker.recordFutureForcedDependency("textClip",t).inheritPendingDependenciesAsFutureForcedDependencies());let s=this.current,n=s.font;if(n.isType3Font){let H=m(this,$,qe).call(this,s.fillAlpha);this.showType3Text(t,e),this.dependencyTracker?.recordShowTextOperation(t),m(this,$,Pe).call(this,H);return}let r=s.fontSize;if(r===0){this.dependencyTracker?.recordOperation(t);return}let a=m(this,$,qe).call(this,s.fillAlpha),o=this.ctx,l=s.fontSizeScale,c=s.charSpacing,d=s.wordSpacing,u=s.fontDirection,p=s.textHScale*u,b=e.length,y=n.vertical,v=y?1:-1,w=n.defaultVMetrics,A=r*s.fontMatrix[0],x=s.textRenderingMode===oe.FILL&&!n.disableFontFace&&!s.patternFill;o.save(),s.textMatrix&&o.transform(...s.textMatrix),o.translate(s.x,s.y+s.textRise),u>0?o.scale(p,-1):o.scale(p,1);let S,E,C=s.textRenderingMode&oe.FILL_STROKE_MASK,_=C===oe.FILL||C===oe.FILL_STROKE,k=C===oe.STROKE||C===oe.FILL_STROKE,P=s.lineWidth,I=s.textMatrixScale;if(I===0||P===0?k&&(P=this.getSinglePixelWidth()):P/=I,l!==1&&(o.scale(l,l),P/=l),o.lineWidth=P,_&&s.patternFill){o.save();let H=s.fillColor.getPattern(o,this,Ai(o),Ce.FILL,t);S=Et(o),o.restore(),o.fillStyle=H}if(k&&s.patternStroke){o.save();let H=s.strokeColor.getPattern(o,this,Ai(o),Ce.STROKE,t);E=Et(o),o.restore(),o.strokeStyle=H}if(n.isInvalidPDFjsFont){let H=[],L=0;for(let ct of e)H.push(ct.unicode),L+=ct.width;let X=H.join("");if(o.fillText(X,0,0),this.dependencyTracker!==null){let ct=o.measureText(X);this.dependencyTracker.recordBBox(t,this.ctx,-ct.actualBoundingBoxLeft,ct.actualBoundingBoxRight,-ct.actualBoundingBoxAscent,ct.actualBoundingBoxDescent).recordShowTextOperation(t)}s.x+=L*A*p,o.restore(),this.compose(),m(this,$,Pe).call(this,a);return}let F=0,B;for(B=0;B<b;++B){let H=e[B];if(typeof H=="number"){F+=v*H*r/1e3;continue}let L=!1,X=(H.isSpace?d:0)+c,ct=H.fontChar,U=H.accent,j,ne,re=H.width;if(y){let _t=H.vmetric||w,Mt=-(H.vmetric?_t[1]:re*.5)*A,ha=_t[2]*A;re=_t?-_t[0]:re,j=Mt/l,ne=(F+ha)/l}else j=F/l,ne=0;let Zs;if(n.remeasure&&re>0){Zs=o.measureText(ct);let _t=Zs.width*1e3/r*l;if(re<_t&&this.isFontSubpixelAAEnabled){let Mt=re/_t;L=!0,o.save(),o.scale(Mt,1),j/=Mt}else re!==_t&&(j+=(re-_t)/2e3*r/l)}if(this.contentVisible&&(H.isInFont||n.missingFile)){if(x&&!U)o.fillText(ct,j,ne),this.dependencyTracker?.recordCharacterBBox(t,o,Zs?{bbox:null}:n,r/l,j,ne,()=>Zs??o.measureText(ct));else if(this.paintChar(t,ct,j,ne,S,E),U){let _t=j+r*U.offset.x/l,Mt=ne-r*U.offset.y/l;this.paintChar(t,U.fontChar,_t,Mt,S,E)}}let rl=y?re*A-X*u:re*A+X*u;F+=rl,L&&o.restore()}y?s.y-=F:s.x+=F*p,o.restore(),this.compose(),this.dependencyTracker?.recordShowTextOperation(t),m(this,$,Pe).call(this,a)}showType3Text(t,e){let s=this.ctx,n=this.current,r=n.font,a=n.fontSize,o=n.fontDirection,l=r.vertical?1:-1,c=n.charSpacing,d=n.wordSpacing,u=n.textHScale*o,p=n.fontMatrix||Ig,b=e.length,y=n.textRenderingMode===oe.INVISIBLE,v,w,A,x;if(y||a===0)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,s.save(),n.textMatrix&&s.transform(...n.textMatrix),s.translate(n.x,n.y+n.textRise),s.scale(u,o);let S=this.dependencyTracker;for(this.dependencyTracker=S?new Xh(S,t):null,v=0;v<b;++v){if(w=e[v],typeof w=="number"){x=l*w*a/1e3,this.ctx.translate(x,0),n.x+=x*u;continue}let E=(w.isSpace?d:0)+c,C=r.charProcOperatorList.get(w.operatorListId);C?this.contentVisible&&(this.save(),C.fnArray[0]===mi.setCharWidth&&(n.fillAlpha=n.strokeAlpha=1,s.globalAlpha=1),s.scale(a,a),s.transform(...p),this.executeOperatorList(C),this.restore()):Q(`Type3 character "${w.operatorListId}" is not available.`);let _=[w.width,0];D.applyTransform(_,p),A=_[0]*a+E,s.translate(A,0),n.x+=A*u}s.restore(),S&&(this.dependencyTracker=S)}setCharWidth(t,e,s){}setCharWidthAndBounds(t,e,s,n,r,a,o){let l=new Path2D;l.rect(n,r,a-n,o-r),this.ctx.clip(l),this.dependencyTracker?.recordBBox(t,this.ctx,n,a,r,o).recordClipBox(t,this.ctx,n,a,r,o),this.endPath(t)}getColorN_Pattern(t,e){let s;if(e[0]==="TilingPattern"){let n=this.baseTransform||Et(this.ctx),r={createCanvasGraphics:(a,o)=>new ya(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new Xh(this.dependencyTracker,o,!0):null)};s=new Fh(e,this.ctx,r,n)}else s=this._getPattern(t,e[1],e[2]);return s}setStrokeColorN(t,...e){this.dependencyTracker?.recordSimpleData("strokeColor",t),this.current.strokeColor=this.getColorN_Pattern(t,e),this.current.patternStroke=!0}setFillColorN(t,...e){this.dependencyTracker?.recordSimpleData("fillColor",t);let s=this.current.fillColor=this.getColorN_Pattern(t,e);this.current.patternFill=!0,this.current.tilingPatternDims=s instanceof Fh?[0,0,0,0]:null}setStrokeRGBColor(t,e){this.dependencyTracker?.recordSimpleData("strokeColor",t),this.ctx.strokeStyle=this.current.strokeColor=e,this.current.patternStroke=!1}setStrokeTransparent(t){this.dependencyTracker?.recordSimpleData("strokeColor",t),this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(t,e){this.dependencyTracker?.recordSimpleData("fillColor",t),this.ctx.fillStyle=this.current.fillColor=e,this.current.patternFill=!1,this.current.tilingPatternDims=null}setFillTransparent(t){this.dependencyTracker?.recordSimpleData("fillColor",t),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1,this.current.tilingPatternDims=null}_getPattern(t,e,s=null){let n=this.cachedPatterns.getOrInsertComputed(e,()=>_x(this.getObject(t,e)));return s&&(n.matrix=s),n}shadingFill(t,e){if(!this.contentVisible)return;let s=m(this,$,qe).call(this,this.current.fillAlpha),n=this.ctx;this.save(t);let r=this._getPattern(t,e);n.fillStyle=r.getPattern(n,this,Ai(n),Ce.SHADING,t);let a=Ai(n);if(a){let{width:o,height:l}=n.canvas,c=Aa.slice();D.axialAlignedBoundingBox([0,0,o,l],a,c);let[d,u,p,b]=c;this.ctx.fillRect(d,u,p-d,b-u)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.dependencyTracker?.resetBBox(t).recordFullPageBBox(t).recordDependencies(t,Is.transform).recordDependencies(t,Is.fill).recordOperation(t),this.compose(this.current.getClippedPathBoundingBox()),this.restore(t),m(this,$,Pe).call(this,s)}beginInlineImage(){rt("Should not call beginInlineImage")}beginImageData(){rt("Should not call beginImageData")}paintFormXObjectBegin(t,e,s){if(this.contentVisible&&(this.save(t),this.baseTransformStack.push(this.baseTransform),e&&this.transform(t,...e),this.baseTransform=Et(this.ctx),s)){D.axialAlignedBoundingBox(s,this.baseTransform,this.current.minMax);let[n,r,a,o]=s,l=new Path2D;l.rect(n,r,a-n,o-r),this.ctx.clip(l),this.dependencyTracker?.recordClipBox(t,this.ctx,n,a,r,o),this.endPath(t)}}paintFormXObjectEnd(t){this.contentVisible&&(this.restore(t),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t,e){if(!this.contentVisible)return;this.save(t);let{inSMaskMode:s}=this;s&&(this.endSMaskMode(),this.current.activeSMask=null);let n=this.ctx;if((!e.needsIsolation||!e.isolated&&!e.hasSoftMask)&&!e.knockout&&!e.isGray&&i(this,ds)===0&&n.globalAlpha===1&&n.globalCompositeOperation==="source-over"&&!s){if(e.bbox){let E=new Path2D,[C,_,k,P]=e.bbox;if(E.rect(C,_,k-C,P-_),e.matrix){let I=new Path2D;I.addPath(E,new DOMMatrix(e.matrix)),E=I}n.clip(E)}this.groupStack.push(null),i(this,Bi).push(null),this.groupLevel++;return}!e.isolated&&!e.knockout&&i(this,ds)===0&&ig("TODO: Fully support non-isolated non-knockout groups.");let r=Et(n);e.matrix&&n.transform(...e.matrix);let a=[0,0,n.canvas.width,n.canvas.height],o;e.bbox?(o=Aa.slice(),D.axialAlignedBoundingBox(e.bbox,Et(n),o),o=D.intersect(o,a)||[0,0,0,0]):o=a;let l=Math.floor(o[0]),c=Math.floor(o[1]),d=Math.max(Math.ceil(o[2])-l,1),u=Math.max(Math.ceil(o[3])-c,1);this.current.startNewPathAndClipBox([0,0,d,u]);let p=this.canvasFactory.create(d,u);e.smask&&this.smaskGroupCanvases.push(p);let b=p.context,y=e.knockout&&!e.isolated?n:null,v=!e.isolated&&!e.knockout&&!e.smask&&e.needsIsolation&&i(this,ds)>0,w=e.knockout?this.canvasFactory.create(d,u):null,A=i(this,ds);e.knockout?Ft(this,ds)._++:f(this,ds,0),b.translate(-l,-c),b.transform(...r);let x=!e.isolated&&!e.smask&&e.needsIsolation,S=x&&!s&&A===0&&!e.knockout&&!e.isGray&&e.hasSoftMask&&n.globalAlpha===1&&n.globalCompositeOperation==="source-over"&&this.current.transferMaps==="none";if(x&&(s||S)&&(b.save(),b.setTransform(1,0,0,1,0,0),b.drawImage(n.canvas,-l,-c),b.restore()),e.bbox){let E=new Path2D,[C,_,k,P]=e.bbox;if(E.rect(C,_,k-C,P-_),e.matrix){let I=new Path2D;I.addPath(E,new DOMMatrix(e.matrix)),E=I}b.clip(E)}e.smask&&this.smaskStack.push({canvas:p.canvas,context:b,offsetX:l,offsetY:c,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null}),(!e.smask||this.dependencyTracker)&&(n.setTransform(1,0,0,1,0,0),n.translate(l,c),n.save()),da(n,b),this.ctx=b,this.dependencyTracker?.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(n),this.setGState(t,[["BM","source-over"],["ca",1],["CA",1],["TR",null]]),this.groupStack.push(n),i(this,Bi).push({backdropCtx:y,savedKnockoutLevel:A,offsetX:l,offsetY:c,hasInnerBackdrop:v,replaceBackdrop:S,knockoutMaskEntry:w,knockoutTempEntry:null,knockoutBackdropEntry:null}),this.groupLevel++}endGroup(t,e){if(!this.contentVisible)return;this.groupLevel--;let s=this.ctx,n=this.groupStack.pop(),r=i(this,Bi).pop();if(r&&f(this,ds,r.savedKnockoutLevel),n===null){this.restore(t);return}if(e.isGray&&m(this,$,Iv).call(this,s),this.ctx=n,this.ctx.imageSmoothingEnabled=!1,this.dependencyTracker?.popBaseTransform(),e.smask)this.tempSMask=this.smaskStack.pop(),this.restore(t),this.dependencyTracker&&(this.ctx.restore(),this.inSMaskMode&&this.ctx.setTransform(this.suspendedCtx.getTransform())),m(this,$,Mf).call(this,r);else{this.ctx.restore();let a=Et(this.ctx);this.restore(t),this.ctx.save(),this.ctx.setTransform(...a);let o=Aa.slice();D.axialAlignedBoundingBox([0,0,s.canvas.width,s.canvas.height],a,o);let l=i(this,Bi).at(-1);if(i(this,ds)>0)if(r.hasInnerBackdrop){let{width:c,height:d}=s.canvas,u=this.canvasFactory.create(c,d),p=u.context;p.drawImage(n.canvas,r.offsetX,r.offsetY,c,d,0,0,c,d),p.globalCompositeOperation="source-over",p.drawImage(s.canvas,0,0);let b=m(this,$,Um).call(this,s.canvas);p.globalCompositeOperation="destination-in",p.drawImage(b.canvas,0,0);let y=this.ctx.globalCompositeOperation,v=this.ctx.globalAlpha,w=this.ctx.filter;this.ctx.save(),this.ctx.setTransform(...a),this.ctx.globalAlpha=1,lt.isCanvasFilterSupported&&(this.ctx.filter="none"),this.ctx.globalCompositeOperation="destination-out",this.ctx.drawImage(b.canvas,0,0),this.ctx.globalCompositeOperation=y,this.ctx.globalAlpha=v,lt.isCanvasFilterSupported&&(this.ctx.filter=w??"none"),this.ctx.drawImage(u.canvas,0,0),this.ctx.restore(),this.canvasFactory.destroy(b),this.canvasFactory.destroy(u)}else{let c=l?.backdropCtx??null;m(this,$,Gm).call(this,this.ctx,s.canvas,{backdropCanvas:c?.canvas??null,destTransform:a,backdropOffset:c?[l.offsetX+r.offsetX,l.offsetY+r.offsetY]:[0,0],sourceAlpha:this.ctx.globalAlpha,sourceFilter:this.ctx.filter})}else{if(r.replaceBackdrop){let c=new Path2D;c.rect(0,0,s.canvas.width,s.canvas.height),this.ctx.clip(c),this.ctx.globalCompositeOperation="copy"}this.ctx.drawImage(s.canvas,0,0)}this.ctx.restore(),this.canvasFactory.destroy({canvas:s.canvas,context:s}),m(this,$,Mf).call(this,r),this.compose(o)}}beginAnnotation(t,e,s,n,r,a,o){if(m(this,$,zm).call(this),cf(this.ctx),this.ctx.save(),this.save(t),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),s){let l=s[2]-s[0],c=s[3]-s[1];if(a&&this.annotationCanvasMap){n=n.slice(),n[4]-=s[0],n[5]-=s[1],D.singularValueDecompose2dScale(Et(this.ctx),Cs);let{viewportScale:d}=this,u=Math.ceil(l*this.outputScaleX*d),p=Math.ceil(c*this.outputScaleY*d);this.annotationCanvas=this.canvasFactory.create(u,p);let{canvas:b,context:y}=this.annotationCanvas;if(o){let v=this.annotationCanvasMap.getOrInsertComputed(e,nl);b.setAttribute("data-canvas-name",o);let w=v.findIndex(A=>A.getAttribute("data-canvas-name")===o);w===-1?v.push(b):v[w]=b}else this.annotationCanvasMap.set(e,b);this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(Cs[0],0,0,-Cs[1],0,c*Cs[1]),cf(this.ctx)}else{cf(this.ctx),this.endPath(t);let d=new Path2D;d.rect(s[0],s[1],l,c),this.ctx.clip(d)}}this.current=new up(this.ctx.canvas.width,this.ctx.canvas.height),this.baseTransformStack.push(this.baseTransform),this.transform(t,...n),this.transform(t,...r),this.baseTransform=Et(this.ctx)}endAnnotation(t){this.annotationCanvas&&(this.ctx.restore(),m(this,$,Hm).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.baseTransform=this.baseTransformStack.pop()}paintImageMaskXObject(t,e){if(!this.contentVisible)return;let s=e.count;e=this.getObject(t,e.data,e),e.count=s;let n=m(this,$,qe).call(this,this.current.fillAlpha),r=this.ctx,a=this._createMaskCanvas(t,e),o=a.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(o,a.offsetX,a.offsetY),this.dependencyTracker?.resetBBox(t).recordBBox(t,this.ctx,a.offsetX,a.offsetX+o.width,a.offsetY,a.offsetY+o.height).recordOperation(t),r.restore(),a.canvasEntry&&this.canvasFactory.destroy(a.canvasEntry),this.compose(),m(this,$,Pe).call(this,n)}paintImageMaskXObjectRepeat(t,e,s,n=0,r=0,a,o){if(!this.contentVisible)return;e=this.getObject(t,e.data,e);let l=m(this,$,qe).call(this,this.current.fillAlpha),c=this.ctx;c.save();let d=Et(c);c.transform(s,n,r,a,0,0);let u=this._createMaskCanvas(t,e);c.setTransform(1,0,0,1,u.offsetX-d[4],u.offsetY-d[5]),this.dependencyTracker?.resetBBox(t);for(let p=0,b=o.length;p<b;p+=2){let y=D.transform(d,[s,n,r,a,o[p],o[p+1]]);c.drawImage(u.canvas,y[4],y[5]),this.dependencyTracker?.recordBBox(t,this.ctx,y[4],y[4]+u.canvas.width,y[5],y[5]+u.canvas.height)}c.restore(),u.canvasEntry&&this.canvasFactory.destroy(u.canvasEntry),this.compose(),this.dependencyTracker?.recordOperation(t),m(this,$,Pe).call(this,l)}paintImageMaskXObjectGroup(t,e){if(!this.contentVisible)return;let s=m(this,$,qe).call(this,this.current.fillAlpha),n=this.ctx,r=this.current.fillColor,a=this.current.patternFill;this.dependencyTracker?.resetBBox(t).recordDependencies(t,Is.transformAndFill);for(let o of e){let{data:l,width:c,height:d,transform:u}=o,p=this.canvasFactory.create(c,d),b=p.context;b.save();let y=this.getObject(t,l,o);C0(b,y),b.globalCompositeOperation="source-in",b.fillStyle=a?r.getPattern(b,this,Ai(n),Ce.FILL,t):r,b.fillRect(0,0,c,d),b.restore(),n.save(),n.transform(...u),n.scale(1,-1),lf(n,p.canvas,0,0,c,d,0,-1,1,1),this.canvasFactory.destroy(p),this.dependencyTracker?.recordBBox(t,n,0,c,0,d),n.restore()}this.compose(),this.dependencyTracker?.recordOperation(t),m(this,$,Pe).call(this,s)}paintImageXObject(t,e){if(!this.contentVisible)return;let s=this.getObject(t,e);if(!s){Q("Dependent image isn't ready yet");return}this.paintInlineImageXObject(t,s)}paintImageXObjectRepeat(t,e,s,n,r){if(!this.contentVisible)return;let a=this.getObject(t,e);if(!a){Q("Dependent image isn't ready yet");return}let o=a.width,l=a.height,c=[];for(let d=0,u=r.length;d<u;d+=2)c.push({transform:[s,0,0,n,r[d],r[d+1]],x:0,y:0,w:o,h:l});this.paintInlineImageXObjectGroup(t,a,c)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return{img:t.bitmap,canvasEntry:null};let{bitmap:e,width:s,height:n}=t,r=this.canvasFactory.create(s,n),a=r.context;return a.filter=this.current.transferMaps,a.drawImage(e,0,0),a.filter="none",{img:r.canvas,canvasEntry:r}}paintInlineImageXObject(t,e){if(!this.contentVisible)return;let s=e.width,n=e.height,r=m(this,$,qe).call(this,this.current.fillAlpha),a=this.ctx;this.save(t);let{filter:o}=a;o!=="none"&&o!==""&&(a.filter="none"),a.scale(1/s,-1/n);let l,c=null;if(e.bitmap){let u=this.applyTransferMapsToBitmap(e);l=u.img,c=u.canvasEntry}else{let u=this.canvasFactory.create(s,n);E0(u.context,e),l=this.applyTransferMapsToCanvas(u.context),c=u}let d=this._scaleImage(l,Ai(a));a.imageSmoothingEnabled=_0(Et(a),e.interpolate),this.dependencyTracker&&(this.dependencyTracker.resetBBox(t).recordBBox(t,a,0,s,-n,0).recordDependencies(t,Is.imageXObject).recordOperation(t),this.imagesTracker?.record(a,s,n,this.dependencyTracker.clipBox)),lf(a,d.img,0,0,d.paintWidth,d.paintHeight,0,-n,s,n),d.tmpCanvas&&this.canvasFactory.destroy(d.tmpCanvas),c&&this.canvasFactory.destroy(c),this.compose(),this.restore(t),m(this,$,Pe).call(this,r)}paintInlineImageXObjectGroup(t,e,s){if(!this.contentVisible)return;let n=m(this,$,qe).call(this,this.current.fillAlpha),r=this.ctx,a,o=null;if(e.bitmap)a=e.bitmap;else{let l=e.width,c=e.height,d=this.canvasFactory.create(l,c);E0(d.context,e),a=this.applyTransferMapsToCanvas(d.context),o=d}this.dependencyTracker?.resetBBox(t);for(let l of s)r.save(),r.transform(...l.transform),r.scale(1,-1),lf(r,a,l.x,l.y,l.w,l.h,0,-1,1,1),this.dependencyTracker?.recordBBox(t,r,0,1,-1,0),r.restore();o&&this.canvasFactory.destroy(o),this.dependencyTracker?.recordOperation(t),this.compose(),m(this,$,Pe).call(this,n)}paintSolidColorImageMask(t){if(!this.contentVisible)return;let e=m(this,$,qe).call(this,this.current.fillAlpha);this.dependencyTracker?.resetBBox(t).recordBBox(t,this.ctx,0,1,0,1).recordDependencies(t,Is.fill).recordOperation(t),this.ctx.fillRect(0,0,1,1),this.compose(),m(this,$,Pe).call(this,e)}markPoint(t,e){}markPointProps(t,e,s){}beginMarkedContent(t,e){this.dependencyTracker?.beginMarkedContent(t),this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,e,s){this.dependencyTracker?.beginMarkedContent(t),e==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(s)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(t){this.dependencyTracker?.endMarkedContent(t),this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(t){}endCompat(t){}consumePath(t,e,s){let n=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(s);let r=this.ctx;this.pendingClip?(n||(this.pendingClip===T0?r.clip(e,"evenodd"):r.clip(e)),this.pendingClip=null,this.dependencyTracker?.bboxToClipBoxDropOperation(t).recordFutureForcedDependency("clipPath",t)):this.dependencyTracker?.recordOperation(t),this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){let t=Et(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{let e=Math.abs(t[0]*t[3]-t[2]*t[1]),s=Math.hypot(t[0],t[2]),n=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(s,n)/e}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){let{lineWidth:t}=this.current,{a:e,b:s,c:n,d:r}=this.ctx.getTransform(),a,o;if(s===0&&n===0){let l=Math.abs(e),c=Math.abs(r);if(l===c)if(t===0)a=o=1/l;else{let d=l*t;a=o=d<1?1/d:1}else if(t===0)a=1/l,o=1/c;else{let d=l*t,u=c*t;a=d<1?1/d:1,o=u<1?1/u:1}}else{let l=Math.abs(e*r-s*n),c=Math.hypot(e,s),d=Math.hypot(n,r);if(t===0)a=d/l,o=c/l;else{let u=t*l;a=d>u?d/u:1,o=c>u?c/u:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(t,e){let{ctx:s,current:{lineWidth:n}}=this,[r,a]=this.getScaleForStroking();if(r===a){s.lineWidth=(n||1)*r,s.stroke(t);return}let o=i(ya,Up)??f(ya,Up,new DOMMatrix),l=s.getLineDash();e&&s.save(),s.scale(r,a),o.a=1/r,o.d=1/a;let c=new Path2D;if(c.addPath(t,o),l.length>0){let d=Math.max(r,a);s.setLineDash(l.map(u=>u/d)),s.lineDashOffset/=d}s.lineWidth=n||1,s.stroke(c),e&&s.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}};Up=new WeakMap,ds=new WeakMap,Ir=new WeakMap,eo=new WeakMap,so=new WeakMap,io=new WeakMap,no=new WeakMap,ro=new WeakMap,ao=new WeakMap,oo=new WeakMap,Bi=new WeakMap,$=new WeakSet,zm=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.canvasFactory.destroy(this.transparentCanvasEntry),this.transparentCanvas=null,this.transparentCanvasEntry=null)},Hm=function(){if(this.pageColors){let t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){let e=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e}}},Um=function(t,e=null,s=1){let{width:n,height:r}=t,a=e??this.canvasFactory.create(n,r),o=a.context;s=Math.round(s*255)/255;let l=s<1;l&&i(this,ao)===void 0&&f(this,ao,lt.isCanvasFilterSupported?new Map:"none");let c="none";if(l&&i(this,ao)instanceof Map&&(c=i(this,ao).getOrInsertComputed(s,()=>this.filterFactory.addKnockoutFilter(s))),!l||c!=="none")return e&&(o.save(),o.setTransform(1,0,0,1,0,0),o.clearRect(0,0,n,r),o.restore()),o.filter=c,o.drawImage(t,0,0),o.filter="none",a;let d=t.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,n,r),u=o.createImageData(n,r),p=d.data,b=u.data,y=s>0?1/s:1e6;for(let v=3,w=p.length;v<w;v+=4)b[v]=Math.min(Math.round(p[v]*y),255);return o.putImageData(u,0,0),a},$m=function(t,e,s,n){let r=t?.[e]??null;if(r&&(r.canvas.width!==s||r.canvas.height!==n)&&(this.canvasFactory.destroy(r),r=null),!r)return r=this.canvasFactory.create(s,n),t&&(t[e]=r),r;let a=r.context;return a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,s,n),a.restore(),r},Gm=function(t,e,s={}){let{backdropCanvas:n=null,destTransform:r=[1,0,0,1,0,0],backdropOffset:a=[0,0],reuseMaskEntry:o=null,poolMeta:l=null,sourceAlpha:c=1,sourceFilter:d="none",knockoutAlpha:u=1}=s,{width:p,height:b}=e,y=m(this,$,Um).call(this,e,o,u),v=t.globalCompositeOperation;if(t.save(),t.setTransform(...r),t.globalAlpha=1,lt.isCanvasFilterSupported&&(t.filter="none"),t.globalCompositeOperation="destination-out",t.drawImage(y.canvas,0,0),n){let[w,A]=a,x=m(this,$,$m).call(this,l,"knockoutBackdropEntry",p,b),S=x.context;S.drawImage(n,w,A,p,b,0,0,p,b),S.globalCompositeOperation="destination-in",S.drawImage(y.canvas,0,0),S.globalCompositeOperation="source-over",t.globalCompositeOperation="destination-over",t.drawImage(x.canvas,0,0),l||this.canvasFactory.destroy(x)}t.globalCompositeOperation=v,t.globalAlpha=c,lt.isCanvasFilterSupported&&(t.filter=d??"none"),t.drawImage(e,0,0),t.restore(),o||this.canvasFactory.destroy(y)},qe=function(t=1){if(i(this,ds)===0||i(this,Ir)>0||!this.contentVisible)return!1;Ft(this,Ir)._++,f(this,ro,t);let e=i(this,Bi).at(-1),{canvas:s}=this.ctx,n=m(this,$,$m).call(this,e,"knockoutTempEntry",s.width,s.height);f(this,eo,n);let r=n.context;return r.save(),r.setTransform(this.ctx.getTransform()),da(this.ctx,r),f(this,no,r.globalCompositeOperation),r.globalCompositeOperation="source-over",S0(r,this.ctx),f(this,oo,e),f(this,so,this.ctx),f(this,io,this.suspendedCtx),this.ctx=r,this.inSMaskMode&&(this.suspendedCtx=r),!0},Pe=function(t){if(!t)return;let e=i(this,eo),s=i(this,so),n=i(this,io),r=e.context;f(this,eo,null),f(this,so,null),f(this,io,null),this.inSMaskMode&&this.suspendedCtx===r&&this.ctx!==r&&this.endSMaskMode(),this.inSMaskMode&&(this.suspendedCtx=n),this.ctx._removeMirroring(),this.ctx.globalCompositeOperation=i(this,no),f(this,no,null),da(this.ctx,s),this.ctx=s;let a=i(this,oo);f(this,oo,null);let o=i(this,ro);f(this,ro,1);try{m(this,$,Gm).call(this,n??s,e.canvas,{backdropCanvas:a?.backdropCtx?.canvas??null,backdropOffset:a?.backdropCtx?[a.offsetX,a.offsetY]:[0,0],reuseMaskEntry:a?.knockoutMaskEntry??null,poolMeta:a,knockoutAlpha:o})}finally{r.restore(),Ft(this,Ir)._--,a||this.canvasFactory.destroy(e)}},jm=function(t,e,s){let n=new Path2D;return n.addPath(t,new DOMMatrix(s).invertSelf().multiplySelf(e)),n},Iv=function(t){let{canvas:e}=t,{width:s,height:n}=e;if(lt.isCanvasFilterSupported){t.save(),t.setTransform(1,0,0,1,0,0),t.filter="grayscale(1)",t.globalAlpha=1,t.globalCompositeOperation="copy",t.drawImage(e,0,0),t.restore();return}let r=t.getImageData(0,0,s,n),{data:a}=r;for(let o=0,l=a.length;o<l;o+=4){let c=a[o]*.2126+a[o+1]*.7152+a[o+2]*.0722+.5|0;a[o]=a[o+1]=a[o+2]=c}t.putImageData(r,0,0)},Mf=function(t){t&&(t.knockoutMaskEntry&&(this.canvasFactory.destroy(t.knockoutMaskEntry),t.knockoutMaskEntry=null),t.knockoutTempEntry&&(this.canvasFactory.destroy(t.knockoutTempEntry),t.knockoutTempEntry=null),t.knockoutBackdropEntry&&(this.canvasFactory.destroy(t.knockoutBackdropEntry),t.knockoutBackdropEntry=null))},g(ya,Up,null);wl=ya;for(let h in mi)wl.prototype[h]!==void 0&&(wl.prototype[mi[h]]=wl.prototype[h]);Zc=class{constructor(t,e,s){g(this,zd,null);g(this,Hd,null);T(this,"_fullReader",null);T(this,"_rangeReaders",new Set);T(this,"_source",null);this._source=t,f(this,zd,e),f(this,Hd,s)}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return $t(!this._fullReader,"BasePDFStream.getFullReader can only be called once."),this._fullReader=new(i(this,zd))(this)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;let s=new(i(this,Hd))(this,t,e);return this._rangeReaders.add(s),s}cancelAllRequests(t){this._fullReader?.cancel(t);for(let e of new Set(this._rangeReaders))e.cancel(t)}};zd=new WeakMap,Hd=new WeakMap;th=class{constructor(t){T(this,"onProgress",null);T(this,"_contentLength",0);T(this,"_filename",null);T(this,"_headersCapability",Promise.withResolvers());T(this,"_isRangeSupported",!1);T(this,"_isStreamingSupported",!1);T(this,"_loaded",0);T(this,"_stream",null);this._stream=t}_callOnProgress(){this.onProgress?.({loaded:this._loaded,total:this._contentLength})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){rt("Abstract method `read` called")}cancel(t){rt("Abstract method `cancel` called")}},eh=class{constructor(t,e,s){T(this,"_stream",null);this._stream=t}async read(){rt("Abstract method `read` called")}cancel(t){rt("Abstract method `cancel` called")}};Vm=class extends Zc{constructor(e){super(e,Wm,Xm);T(this,"_responseOrigin",null);let{httpHeaders:s,url:n}=e;$t(/https?:/.test(n.protocol),"PDFFetchStream only supports http(s):// URLs."),this.headers=Lv(!0,s)}},Wm=class extends th{constructor(e){super(e);T(this,"_abortController",new AbortController);T(this,"_reader",null);let{disableRange:s,disableStream:n,rangeChunkSize:r,url:a,withCredentials:o}=e._source;this._isStreamingSupported=!n;let l=new Headers(e.headers);Fv(a,l,o,this._abortController).then(c=>{e._responseOrigin=cg(c.url),Bv(c.status,a),this._reader=c.body.getReader();let d=c.headers,{contentLength:u,isRangeSupported:p}=Ov({responseHeaders:d,isHttp:!0,rangeChunkSize:r,disableRange:s});this._contentLength=u,this._isRangeSupported=p,this._filename=Rv(d),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new yi("Streaming is disabled.")),this._headersCapability.resolve()}).catch(this._headersCapability.reject)}async read(){await this._headersCapability.promise;let{value:e,done:s}=await this._reader.read();return s?{value:e,done:s}:(this._loaded+=e.byteLength,this._callOnProgress(),{value:dg(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}},Xm=class extends eh{constructor(e,s,n){super(e,s,n);T(this,"_abortController",new AbortController);T(this,"_readCapability",Promise.withResolvers());T(this,"_reader",null);let{url:r,withCredentials:a}=e._source,o=new Headers(e.headers);o.append("Range",`bytes=${s}-${n-1}`),Fv(r,o,a,this._abortController).then(l=>{let c=cg(l.url);Nv(c,e._responseOrigin),Bv(l.status,r),this._reader=l.body.getReader(),this._readCapability.resolve()}).catch(this._readCapability.reject)}async read(){await this._readCapability.promise;let{value:e,done:s}=await this._reader.read();return s?{value:e,done:s}:{value:dg(e),done:!1}}cancel(e){this._reader?.cancel(e),this._abortController.abort()}};Ym=class extends Zc{constructor(e){super(e,qm,Km);g(this,$p);T(this,"_progressiveDone",!1);T(this,"_queuedChunks",[]);let{pdfDataRangeTransport:s}=e,{initialData:n,progressiveDone:r}=s;if(n?.length>0){let o=k0(n);this._queuedChunks.push(o)}this._progressiveDone=r;let a=o=>{switch(o.type){case"range":case"progressiveRead":m(this,$p,zv).call(this,o.begin,o.chunk);break;case"progressiveDone":this._fullReader?.progressiveDone(),this._progressiveDone=!0;break}};s.transportReady(a)}getFullReader(){let e=super.getFullReader();return this._queuedChunks=null,e}getRangeReader(e,s){let n=super.getRangeReader(e,s);return n&&(n.onDone=()=>this._rangeReaders.delete(n),this._source.pdfDataRangeTransport.requestDataRange(e,s)),n}cancelAllRequests(e){super.cancelAllRequests(e),this._source.pdfDataRangeTransport.abort()}};$p=new WeakSet,zv=function(e,s){let n=k0(s);if(e===void 0)this._fullReader?this._fullReader._enqueue(n):this._queuedChunks.push(n);else{let r=this._rangeReaders.keys().find(a=>a._begin===e);$t(r,"#onReceiveData - no `PDFDataTransportStreamRangeReader` instance found."),r._enqueue(n)}};qm=class extends th{constructor(e){super(e);g(this,Ud,ug.bind(this));T(this,"_done",!1);T(this,"_queuedChunks",null);T(this,"_requests",[]);let{pdfDataRangeTransport:s,disableRange:n,disableStream:r}=e._source,{length:a,contentDispositionFilename:o}=s;this._queuedChunks=e._queuedChunks||[];for(let c of this._queuedChunks)this._loaded+=c.byteLength;this._done=e._progressiveDone,this._contentLength=a,this._isStreamingSupported=!r,this._isRangeSupported=!n,og(o)&&(this._filename=o),this._headersCapability.resolve();let l=this._loaded;Promise.resolve().then(()=>{l>0&&this._loaded===l&&this._callOnProgress()})}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength,this._callOnProgress())}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,i(this,Ud).call(this)}progressiveDone(){this._done||(this._done=!0),this._queuedChunks.length===0&&i(this,Ud).call(this)}};Ud=new WeakMap;Km=class extends eh{constructor(e,s,n){super(e,s,n);g(this,$d,ug.bind(this));T(this,"onDone",null);T(this,"_begin",-1);T(this,"_done",!1);T(this,"_queuedChunk",null);T(this,"_requests",[]);this._begin=s}_enqueue(e){this._done||(this._requests.length===0?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),i(this,$d).call(this)),this._done=!0,this.onDone?.())}async read(){if(this._queuedChunk){let s=this._queuedChunk;return this._queuedChunk=null,{value:s,done:!1}}if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,i(this,$d).call(this),this.onDone?.()}};$d=new WeakMap;Dg=200,M0=206;Qm=class extends Zc{constructor(e){super(e,Jm,Zm);g(this,rh);g(this,zi,new WeakMap);T(this,"_responseOrigin",null);let{httpHeaders:s,url:n}=e;this.url=n,this.isHttp=/https?:/.test(n.protocol),this.headers=Lv(this.isHttp,s)}_request(e){let s=new XMLHttpRequest,n={validateStatus:null,onHeadersReceived:e.onHeadersReceived,onDone:e.onDone,onError:e.onError,onProgress:e.onProgress};i(this,zi).set(s,n),s.open("GET",this.url),s.withCredentials=this._source.withCredentials;for(let[r,a]of this.headers)s.setRequestHeader(r,a);return this.isHttp&&"begin"in e&&"end"in e?(s.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),n.validateStatus=r=>r===M0||r===Dg):n.validateStatus=r=>r===Dg,s.responseType="arraybuffer",$t(e.onError,"Expected `onError` callback to be provided."),s.onerror=()=>e.onError(s.status),s.onreadystatechange=m(this,rh,Uv).bind(this,s),s.onprogress=m(this,rh,Hv).bind(this,s),s.send(null),s}_abortRequest(e){i(this,zi).has(e)&&(i(this,zi).delete(e),e.abort())}getRangeReader(e,s){let n=super.getRangeReader(e,s);return n&&(n.onClosed=()=>this._rangeReaders.delete(n)),n}};zi=new WeakMap,rh=new WeakSet,Hv=function(e,s){i(this,zi).get(e)?.onProgress?.(s)},Uv=function(e,s){let n=i(this,zi).get(e);if(!n||(e.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),e.readyState!==4)||!i(this,zi).has(e))return;if(i(this,zi).delete(e),e.status===0&&this.isHttp){n.onError(e.status);return}let r=e.status||Dg;if(!n.validateStatus(r)){n.onError(e.status);return}let a=Rx(e.response);if(r===M0){let o=e.getResponseHeader("Content-Range");/bytes \d+-\d+\/\d+/.test(o)?n.onDone(a):(Q('Missing or invalid "Content-Range" header.'),n.onError(0))}else a?n.onDone(a):n.onError(e.status)};Jm=class extends th{constructor(e){super(e);g(this,Zi);g(this,Gd,ug.bind(this));T(this,"_cachedChunks",[]);T(this,"_done",!1);T(this,"_requests",[]);T(this,"_storedError",null);this._fullRequestXhr=e._request({onHeadersReceived:m(this,Zi,$v).bind(this),onDone:m(this,Zi,Gv).bind(this),onError:m(this,Zi,jv).bind(this),onProgress:m(this,Zi,Vv).bind(this)})}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e),i(this,Gd).call(this),this._stream._abortRequest(this._fullRequestXhr),this._fullRequestXhr=null}};Gd=new WeakMap,Zi=new WeakSet,$v=function(){let e=this._stream,{disableRange:s,rangeChunkSize:n}=e._source,r=this._fullRequestXhr;e._responseOrigin=cg(r.responseURL);let a=r.getAllResponseHeaders(),o=new Headers(a?Ox(a.trimStart()).split(/[\r\n]+/).map(d=>{let[u,...p]=d.split(": ");return[u,p.join(": ")]}):[]),{contentLength:l,isRangeSupported:c}=Ov({responseHeaders:o,isHttp:e.isHttp,rangeChunkSize:n,disableRange:s});this._contentLength=l,this._isRangeSupported=c,this._filename=Rv(o),this._isRangeSupported&&e._abortRequest(r),this._headersCapability.resolve()},Gv=function(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._cachedChunks.push(e),this._done=!0,this._cachedChunks.length===0&&i(this,Gd).call(this)},jv=function(e){this._storedError=hg(e,this._stream.url),this._headersCapability.reject(this._storedError);for(let s of this._requests)s.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0},Vv=function(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})};Zm=class extends eh{constructor(e,s,n){super(e,s,n);g(this,Qn);g(this,jd,ug.bind(this));T(this,"onClosed",null);T(this,"_done",!1);T(this,"_queuedChunk",null);T(this,"_requests",[]);T(this,"_storedError",null);this._requestXhr=e._request({begin:s,end:n,onHeadersReceived:m(this,Qn,Wv).bind(this),onDone:m(this,Qn,Xv).bind(this),onError:m(this,Qn,tb).bind(this),onProgress:null})}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){let s=this._queuedChunk;return this._queuedChunk=null,{value:s,done:!1}}if(this._done)return{value:void 0,done:!0};let e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,i(this,jd).call(this),this._stream._abortRequest(this._requestXhr),this.onClosed?.()}};jd=new WeakMap,Qn=new WeakSet,Wv=function(){let e=cg(this._requestXhr?.responseURL);try{Nv(e,this._stream._responseOrigin)}catch(s){this._storedError=s,m(this,Qn,tb).call(this,0)}},Xv=function(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,i(this,jd).call(this),this.onClosed?.()},tb=function(e){this._storedError??(this._storedError=hg(e,this._stream.url));for(let s of this._requests)s.reject(this._storedError);this._requests.length=0,this._queuedChunk=null};eb=class extends Zc{constructor(t){super(t,sb,ib);let{url:e}=t;$t(e.protocol==="file:","PDFNodeStream only supports file:// URLs.")}},sb=class extends th{constructor(e){super(e);T(this,"_reader",null);let{disableRange:s,disableStream:n,rangeChunkSize:r,url:a}=e._source;this._isStreamingSupported=!n,process.getBuiltinModule("fs/promises").lstat(a).then(l=>{let c=Yv(a);this._reader=c.getReader();let{size:d}=l;this._contentLength=d,this._isRangeSupported=!s&&d>2*r,!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new yi("Streaming is disabled.")),this._headersCapability.resolve()}).catch(l=>{l.code==="ENOENT"&&(l=hg(0,a)),this._headersCapability.reject(l)})}async read(){await this._headersCapability.promise;let{value:e,done:s}=await this._reader.read();return s?{value:e,done:s}:(this._loaded+=e.byteLength,this._callOnProgress(),{value:dg(e),done:!1})}cancel(e){this._reader?.cancel(e)}},ib=class extends eh{constructor(e,s,n){super(e,s,n);T(this,"_readCapability",Promise.withResolvers());T(this,"_reader",null);let{url:r}=e._source;try{let a=Yv(r,{start:s,end:n-1});this._reader=a.getReader(),this._readCapability.resolve()}catch(a){this._readCapability.reject(a)}}async read(){await this._readCapability.promise;let{value:e,done:s}=await this._reader.read();return s?{value:e,done:s}:{value:dg(e),done:!1}}cancel(e){this._reader?.cancel(e)}};Ys=class{static get workerPort(){return i(this,Vd)}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");f(this,Vd,t)}static get workerSrc(){return i(this,Wd)}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");f(this,Wd,t)}};Vd=new WeakMap,Wd=new WeakMap,g(Ys,Vd,null),g(Ys,Wd,"");nb=class{constructor({parsedData:t,rawData:e}){g(this,tc);g(this,Xd);f(this,tc,t),f(this,Xd,e)}getRaw(){return i(this,Xd)}get(t){return i(this,tc).get(t)??null}[Symbol.iterator](){return i(this,tc).entries()}};tc=new WeakMap,Xd=new WeakMap;pa=Symbol("INTERNAL"),rb=class{constructor(t,{name:e,intent:s,usage:n,rbGroups:r}){g(this,Yd,!1);g(this,qd,!1);g(this,ec,!1);g(this,lo,!0);f(this,Yd,!!(t&Ss.DISPLAY)),f(this,qd,!!(t&Ss.PRINT)),this.name=e,this.intent=s,this.usage=n,this.rbGroups=r}get visible(){if(i(this,ec))return i(this,lo);if(!i(this,lo))return!1;let{print:t,view:e}=this.usage;return i(this,Yd)?e?.viewState!=="OFF":i(this,qd)?t?.printState!=="OFF":!0}_setVisible(t,e,s=!1){t!==pa&&rt("Internal method `_setVisible` called."),f(this,ec,s),f(this,lo,e)}get serializable(){return{userSet:i(this,ec),visible:i(this,lo)}}};Yd=new WeakMap,qd=new WeakMap,ec=new WeakMap,lo=new WeakMap;Ry=class Ry{constructor(t,e=Ss.DISPLAY,s=null){g(this,Qd);g(this,Lr,null);g(this,ot,new Map);g(this,sc,null);g(this,ic,null);g(this,Kd);T(this,"creator",null);T(this,"name",null);if(f(this,Kd,t),this.renderingIntent=e,t!==null){this.name=t.name,this.creator=t.creator,f(this,ic,t.order);for(let n of t.groups)i(this,ot).set(n.id,new rb(e,n));if(s){s.size!==i(this,ot).size&&rt("Incorrect serialized groupState.");for(let[n,r]of s)i(this,ot).get(n)._setVisible(pa,r.visible,r.userSet)}else{if(t.baseState==="OFF")for(let n of i(this,ot).values())n._setVisible(pa,!1);for(let n of t.on)i(this,ot).get(n)._setVisible(pa,!0);for(let n of t.off)i(this,ot).get(n)._setVisible(pa,!1)}f(this,sc,this.getHash())}}isVisible(t){if(i(this,ot).size===0)return!0;if(!t)return ig("Optional content group not defined."),!0;if(t.type==="OCG")return i(this,ot).has(t.id)?i(this,ot).get(t.id).visible:(Q(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return m(this,Qd,ob).call(this,t.expression);if(!t.policy||t.policy==="AnyOn"){for(let e of t.ids){if(!i(this,ot).has(e))return Q(`Optional content group not found: ${e}`),!0;if(i(this,ot).get(e).visible)return!0}return!1}else if(t.policy==="AllOn"){for(let e of t.ids){if(!i(this,ot).has(e))return Q(`Optional content group not found: ${e}`),!0;if(!i(this,ot).get(e).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(let e of t.ids){if(!i(this,ot).has(e))return Q(`Optional content group not found: ${e}`),!0;if(!i(this,ot).get(e).visible)return!0}return!1}else if(t.policy==="AllOff"){for(let e of t.ids){if(!i(this,ot).has(e))return Q(`Optional content group not found: ${e}`),!0;if(i(this,ot).get(e).visible)return!1}return!0}return Q(`Unknown optional content policy ${t.policy}.`),!0}return Q(`Unknown group type ${t.type}.`),!0}setVisibility(t,e=!0,s=!0){let n=i(this,ot).get(t);if(!n){Q(`Optional content group not found: ${t}`);return}if(s&&e&&n.rbGroups.length)for(let r of n.rbGroups)for(let a of r)a!==t&&i(this,ot).get(a)?._setVisible(pa,!1,!0);n._setVisible(pa,!!e,!0),f(this,Lr,null)}setOCGState({state:t,preserveRB:e}){let s;for(let n of t){switch(n){case"ON":case"OFF":case"Toggle":s=n;continue}let r=i(this,ot).get(n);if(r)switch(s){case"ON":this.setVisibility(n,!0,e);break;case"OFF":this.setVisibility(n,!1,e);break;case"Toggle":this.setVisibility(n,!r.visible,e);break}}f(this,Lr,null)}get hasInitialVisibility(){return i(this,sc)===null||this.getHash()===i(this,sc)}getOrder(){return i(this,ot).size?i(this,ic)?i(this,ic).slice():[...i(this,ot).keys()]:null}getGroup(t){return i(this,ot).get(t)||null}getHash(){if(i(this,Lr)!==null)return i(this,Lr);let t=new jh;for(let[e,s]of i(this,ot))t.update(`${e}:${s.visible}`);return f(this,Lr,t.hexdigest())}[Symbol.iterator](){return i(this,ot).entries()}get serializable(){let t=new Map;for(let[e,s]of i(this,ot))t.set(e,s.serializable);return{data:i(this,Kd),renderingIntent:this.renderingIntent,groupState:t}}static fromSerializable({data:t,renderingIntent:e,groupState:s}){return new Ry(t,e,s)}};Lr=new WeakMap,ot=new WeakMap,sc=new WeakMap,ic=new WeakMap,Kd=new WeakMap,Qd=new WeakSet,ob=function(t){let e=t.length;if(e<2)return!0;let s=t[0];for(let n=1;n<e;n++){let r=t[n],a;if(Array.isArray(r))a=m(this,Qd,ob).call(this,r);else if(i(this,ot).has(r))a=i(this,ot).get(r).visible;else return Q(`Optional content group not found: ${r}`),!0;switch(s){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return s==="And"};ab=Ry,lb=class{constructor(){g(this,ke);g(this,Ht,null);g(this,$s,null);g(this,le,0);g(this,co,null);g(this,Hi,null)}get pagesNumber(){return i(this,le)}set pagesNumber(t){i(this,le)!==t&&(f(this,le,t),f(this,Ht,null),f(this,$s,null))}movePages(t,e,s){m(this,ke,Eh).call(this);let n=i(this,Ht),r=e.length,a=new Uint32Array(r),o=0;for(let p=0;p<r;p++){let b=e[p]-1;a[p]=n[b],b<s&&o++}let l=i(this,le),c=l-r,d=new Int32Array(l),u=Ct(s-o,0,c);for(let p=0,b=0;p<l;p++)t.has(p+1)||(n[b]=n[p],d[b++]=p+1);n.copyWithin(u+r,u,c),n.set(a,u),d.copyWithin(u+r,u,c),d.set(e,u),f(this,$s,d),n.every((p,b)=>p===b+1)&&f(this,Ht,null)}deletePages(t){m(this,ke,Eh).call(this);let e=i(this,Ht),s=m(this,ke,Pf).call(this);f(this,Hi,{pageNumberToId:e.slice(),pagesNumber:i(this,le),prevPageNumbers:i(this,$s).slice()});let n=i(this,le)-t.length;f(this,le,n);let r=f(this,Ht,new Uint32Array(n));f(this,$s,new Int32Array(n));let a=0,o=0;for(let l of t){let c=l-1;c!==a&&(r.set(e.subarray(a,c),o),o+=c-a),a=c+1}a<e.length&&r.set(e.subarray(a),o),m(this,ke,cb).call(this,s,new Set(t))}cancelDelete(){i(this,Hi)&&(f(this,Ht,i(this,Hi).pageNumberToId),f(this,le,i(this,Hi).pagesNumber),f(this,$s,i(this,Hi).prevPageNumbers),f(this,Hi,null))}cleanSavedData(){f(this,Hi,null)}copyPages(t){m(this,ke,Eh).call(this),f(this,co,{pageNumbers:t,pageIds:t.map(e=>i(this,Ht)[e-1])})}cancelCopy(){f(this,co,null)}pastePages(t){m(this,ke,Eh).call(this);let e=i(this,Ht),s=m(this,ke,Pf).call(this),{pageNumbers:n,pageIds:r}=i(this,co),a=i(this,le)+n.length;f(this,le,a);let o=f(this,Ht,new Uint32Array(a));f(this,$s,new Int32Array(a)),o.set(e.subarray(0,t),0),o.set(r,t),o.set(e.subarray(t),t+n.length),m(this,ke,cb).call(this,s,null,t,n),f(this,co,null)}hasBeenAltered(){return i(this,Ht)!==null}getPageMappingForSaving(t=null,e=m(this,ke,hb).call(this)){t??(t=m(this,ke,Pf).call(this));let s=0;for(let r of t.values())s=Math.max(s,r.length);let n=new Array(s);for(let r=0;r<s;r++)n[r]={document:null,pageIndices:[],includePages:[]};for(let[r,a]of t)for(let o=0,l=a.length;o<l;o++)n[o].includePages.push([r-1,a[o]-1]);for(let{includePages:r,pageIndices:a}of n){r.sort((o,l)=>o[0]-l[0]);for(let o=0,l=r.length;o<l;o++)a.push(r[o][1]),r[o]=r[o][0]}return{pageInfos:n,copyLevels:e}}extractPages(t){t=Array.from(t).sort((s,n)=>s-n);let e=new Map;for(let s=0,n=t.length;s<n;s++){let r=this.getPageId(t[s]);e.getOrInsertComputed(r,nl).push(s+1)}return this.getPageMappingForSaving(e,m(this,ke,hb).call(this,t))}getPrevPageNumber(t){return i(this,$s)?.[t-1]??0}getPageNumber(t){if(!i(this,Ht))return t;let e=i(this,Ht);for(let s=0,n=i(this,le);s<n;s++)if(e[s]===t)return s+1;return 0}getPageId(t){return i(this,Ht)?.[t-1]??t}getMapping(){return i(this,Ht)?.subarray(0,this.pagesNumber)}};Ht=new WeakMap,$s=new WeakMap,le=new WeakMap,co=new WeakMap,Hi=new WeakMap,ke=new WeakSet,Eh=function(){if(i(this,Ht))return;let t=i(this,le),e=f(this,Ht,new Uint32Array(t));for(let s=0;s<t;s++)e[s]=s+1;f(this,$s,new Int32Array(e))},Pf=function(){let t=new Map,e=i(this,Ht);for(let s=0,n=i(this,le);s<n;s++){let r=e[s],a=t.get(r);a?a.push(s+1):t.set(r,[s+1])}return t},cb=function(t,e=null,s=-1,n=null){let r=i(this,$s),a=i(this,Ht),o=s+(n?.length??0),l=new Map;for(let c=0,d=i(this,le);c<d;c++){if(c>=s&&c<o){r[c]=-n[c-s];continue}let u=a[c],p=t.get(u),b=l.get(u)||0;if(e&&p)for(;b<p.length&&e.has(p[b]);)b++;r[c]=p?.[b],l.set(u,b+1)}},hb=function(t=null){if(!i(this,Ht))return null;let e=new Int32Array(i(this,le)).fill(-1),s=new Map;if(t)for(let n of t){let r=this.getPageId(n),a=s.get(r)??0;s.set(r,a+1),e[n-1]=a}else for(let n=0,r=i(this,le);n<r;n++){let a=i(this,Ht)[n],o=s.get(a)??0;s.set(a,o+1),e[n]=o}return e};ul=Symbol("INITIAL_DATA"),P0=()=>({...Promise.withResolvers(),data:ul}),fp=class{constructor(){g(this,Gs,new Map)}get(t,e=null){if(e){let n=i(this,Gs).getOrInsertComputed(t,P0);return n.promise.then(()=>e(n.data)),null}let s=i(this,Gs).get(t);if(!s||s.data===ul)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return s.data}has(t){let e=i(this,Gs).get(t);return!!e&&e.data!==ul}delete(t){let e=i(this,Gs).get(t);return!e||e.data===ul?!1:(i(this,Gs).delete(t),!0)}resolve(t,e=null){let s=i(this,Gs).getOrInsertComputed(t,P0);if(s.data!==ul)throw new Error(`Object already resolved ${t}.`);s.data=e,s.resolve()}clear(){for(let{data:t}of i(this,Gs).values())t?.bitmap?.close();i(this,Gs).clear()}*[Symbol.iterator](){for(let[t,{data:e}]of i(this,Gs))e!==ul&&(yield[t,e])}};Gs=new WeakMap;Fx=1e5,D0=30,ye=class ye{constructor({textContentSource:t,images:e,container:s,viewport:n}){g(this,Jn);g(this,Or,Promise.withResolvers());g(this,$e,null);g(this,Jd,!1);g(this,Zd,!!globalThis.FontInspector?.enabled);g(this,nc,null);g(this,ho,null);g(this,En,null);g(this,tu,0);g(this,eu,0);g(this,uo,null);g(this,su,null);g(this,rc,0);g(this,Rr,0);g(this,ac,Object.create(null));g(this,iu,[]);g(this,oc,null);g(this,fo,[]);g(this,nu,new WeakMap);g(this,ru,null);var c;if(t instanceof ReadableStream)f(this,oc,t);else if(typeof t=="object")f(this,oc,new ReadableStream({start(d){d.enqueue(t),d.close()}}));else throw new Error('No "textContentSource" parameter specified.');f(this,$e,f(this,su,s)),f(this,nc,e),f(this,Rr,n.scale*vi.pixelRatio),f(this,rc,n.rotation),f(this,En,{div:null,properties:null,ctx:null});let{pageWidth:r,pageHeight:a,pageX:o,pageY:l}=n.rawDims;f(this,ru,[1,0,0,-1,-o,l+a]),f(this,eu,r),f(this,tu,a),m(c=ye,Ts,Qv).call(c),s.style.setProperty("--min-font-size",i(ye,cc)),aa(s,n),i(this,Or).promise.finally(()=>{i(ye,hc).delete(this),f(this,En,null),f(this,ac,null)}).catch(()=>{})}static get fontFamilyMap(){let{isWindows:t,isFirefox:e}=lt.platform;return G(this,"fontFamilyMap",new Map([["sans-serif",`${t&&e?"Calibri, ":""}sans-serif`],["monospace",`${t&&e?"Lucida Console, ":""}monospace`]]))}render(){i(this,nc)&&i(this,$e).append(i(this,nc).render());let t=()=>{i(this,uo).read().then(({value:e,done:s})=>{if(s){i(this,Or).resolve();return}i(this,ho)??f(this,ho,e.lang),Object.assign(i(this,ac),e.styles),m(this,Jn,qv).call(this,e.items),t()},i(this,Or).reject)};return f(this,uo,i(this,oc).getReader()),i(ye,hc).add(this),t(),i(this,Or).promise}update({viewport:t,onBefore:e=null}){var r;let s=t.scale*vi.pixelRatio,n=t.rotation;if(n!==i(this,rc)&&(e?.(),f(this,rc,n),aa(i(this,su),{rotation:n})),s!==i(this,Rr)){e?.(),f(this,Rr,s);let a={div:null,properties:null,ctx:m(r=ye,Ts,Df).call(r,i(this,ho))};for(let o of i(this,fo))a.properties=i(this,nu).get(o),a.div=o,m(this,Jn,db).call(this,a)}}cancel(){let t=new yi("TextLayer task cancelled.");i(this,uo)?.cancel(t).catch(()=>{}),f(this,uo,null),i(this,Or).reject(t)}get textDivs(){return i(this,fo)}get textContentItemsStr(){return i(this,iu)}static cleanup(){if(!(i(this,hc).size>0)){i(this,lc).clear();for(let{canvas:t}of i(this,po).values())t.remove();i(this,po).clear()}}};Or=new WeakMap,$e=new WeakMap,Jd=new WeakMap,Zd=new WeakMap,nc=new WeakMap,ho=new WeakMap,En=new WeakMap,tu=new WeakMap,eu=new WeakMap,uo=new WeakMap,su=new WeakMap,rc=new WeakMap,Rr=new WeakMap,ac=new WeakMap,iu=new WeakMap,oc=new WeakMap,fo=new WeakMap,nu=new WeakMap,ru=new WeakMap,lc=new WeakMap,po=new WeakMap,au=new WeakMap,cc=new WeakMap,hc=new WeakMap,Jn=new WeakSet,qv=function(t){var n,r;if(i(this,Jd))return;(r=i(this,En)).ctx??(r.ctx=m(n=ye,Ts,Df).call(n,i(this,ho)));let e=i(this,fo),s=i(this,iu);for(let a of t){if(e.length>Fx){Q("Ignoring additional textDivs for performance reasons."),f(this,Jd,!0);return}if(a.str===void 0){if(a.type==="beginMarkedContentProps"||a.type==="beginMarkedContent"){let o=i(this,$e);f(this,$e,document.createElement("span")),i(this,$e).classList.add("markedContent"),a.id&&i(this,$e).setAttribute("id",a.id),a.tag==="Artifact"&&(i(this,$e).ariaHidden=!0),o.append(i(this,$e))}else a.type==="endMarkedContent"&&f(this,$e,i(this,$e).parentNode);continue}s.push(a.str),m(this,Jn,Kv).call(this,a)}},Kv=function(t){var y;let e=document.createElement("span"),s={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};i(this,fo).push(e);let n=D.transform(i(this,ru),t.transform),r=Math.atan2(n[1],n[0]),a=i(this,ac)[t.fontName];a.vertical&&(r+=Math.PI/2);let o=i(this,Zd)&&a.fontSubstitution||a.fontFamily;o=ye.fontFamilyMap.get(o)||o;let l=Math.hypot(n[2],n[3]),c=l*m(y=ye,Ts,Jv).call(y,o,a,i(this,ho)),d,u;r===0?(d=n[4],u=n[5]-c):(d=n[4]+c*Math.sin(r),u=n[5]-c*Math.cos(r));let p=e.style;p.left=`${(100*d/i(this,eu)).toFixed(2)}%`,p.top=`${(100*u/i(this,tu)).toFixed(2)}%`,p.setProperty("--font-height",`${l.toFixed(2)}px`),p.fontFamily=o,s.fontSize=l,e.setAttribute("role","presentation"),e.textContent=t.str,e.dir=t.dir,i(this,Zd)&&(e.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),r!==0&&(s.angle=r*(180/Math.PI));let b=!1;if(t.str.length>1)b=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){let v=Math.abs(t.transform[0]),w=Math.abs(t.transform[3]);v!==w&&Math.max(v,w)/Math.min(v,w)>1.5&&(b=!0)}if(b&&(s.canvasWidth=a.vertical?t.height:t.width),i(this,nu).set(e,s),i(this,En).div=e,i(this,En).properties=s,m(this,Jn,db).call(this,i(this,En)),s.hasText&&i(this,$e).append(e),s.hasEOL){let v=document.createElement("br");v.setAttribute("role","presentation"),i(this,$e).append(v)}},db=function(t){var a;let{div:e,properties:s,ctx:n}=t,{style:r}=e;if(s.canvasWidth!==0&&s.hasText){let{fontFamily:o}=r,{canvasWidth:l,fontSize:c}=s;m(a=ye,Ts,ub).call(a,n,c*i(this,Rr),o);let{width:d}=n.measureText(e.textContent);d>0&&r.setProperty("--scale-x",l*i(this,Rr)/d)}s.angle!==0&&r.setProperty("--rotate",`${s.angle}deg`)},Ts=new WeakSet,Df=function(t=null){let e=i(this,po).get(t||(t=""));if(!e){let s=document.createElement("canvas");s.style.cssText="position:absolute;top:0;left:0;width:0;height:0;display:none;letter-spacing:normal;word-spacing:normal",s.lang=t,document.body.append(s),e=s.getContext("2d",{alpha:!1,willReadFrequently:!0}),i(this,po).set(t,e),i(this,au).set(e,{size:0,family:""})}return e},ub=function(t,e,s){let n=i(this,au).get(t);e===n.size&&s===n.family||(t.font=`${e}px ${s}`,n.size=e,n.family=s)},Qv=function(){if(i(this,cc)!==null)return;let t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.style.position="absolute",t.textContent="X",document.body.append(t),f(this,cc,t.getBoundingClientRect().height),t.remove()},Jv=function(t,e,s){let n=i(this,lc).get(t);if(n)return n;let r=m(this,Ts,Df).call(this,s);r.canvas.width=r.canvas.height=D0,m(this,Ts,ub).call(this,r,D0,t);let a=r.measureText(""),o=a.fontBoundingBoxAscent,l=Math.abs(a.fontBoundingBoxDescent);r.canvas.width=r.canvas.height=0;let c=.8;return o?c=o/(o+l):(lt.platform.isFirefox&&Q("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),e.ascent?c=e.ascent:e.descent&&(c=1+e.descent)),i(this,lc).set(t,c),c},g(ye,Ts),g(ye,lc,new Map),g(ye,po,new Map),g(ye,au,new WeakMap),g(ye,cc,null),g(ye,hc,new Set);sh=ye,Bx=100;jp=class jp{constructor(){T(this,"_capability",Promise.withResolvers());T(this,"_setupCapability",Promise.withResolvers());T(this,"_transport",null);T(this,"_worker",null);T(this,"docId",`d${Ft(jp,Gp)._++}`);T(this,"destroyed",!1);T(this,"onPassword",null);T(this,"onProgress",null)}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,this._capability.promise.catch(()=>{});try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._setupCapability.promise,await this._transport?.destroy()}catch(t){throw this._worker?.port&&delete this._worker._pendingDestroy,t}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}};Gp=new WeakMap,g(jp,Gp,0);fb=jp,qh=class{constructor(t,e,s=!1,n=null){g(this,dc,Promise.withResolvers());g(this,go,null);this.length=t,this.initialData=e,this.progressiveDone=s,this.contentDispositionFilename=n}onDataRange(t,e){i(this,go).call(this,{type:"range",begin:t,chunk:e})}onDataProgressiveRead(t){i(this,dc).promise.then(()=>{i(this,go).call(this,{type:"progressiveRead",chunk:t})})}onDataProgressiveDone(){i(this,dc).promise.then(()=>{i(this,go).call(this,{type:"progressiveDone"})})}transportReady(t){f(this,go,t),i(this,dc).resolve()}requestDataRange(t,e){rt("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};dc=new WeakMap,go=new WeakMap;pb=class{constructor(t,e){this._pdfInfo=t,this._transport=e}get pagesMapper(){return this._transport.pagesMapper}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return G(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getAttachmentContent(t){return this._transport.getAttachmentContent(t)}getAnnotationsByType(t,e){return this._transport.getAnnotationsByType(t,e)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){let{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(e)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}extractPages(t,e=null){return this._transport.extractPages(t,e)}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}getSignatures(){return this._transport.getSignatures()}getSignatureData(t){return this._transport.getSignatureData(t)}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}},Ny=class Ny{constructor(t,e,s,n,r=!1){g(this,bo);g(this,Cn,!1);g(this,mo,null);this._pageIndex=t,this._pageInfo=e,this._transport=s,this._stats=r?new ip:null,this._pdfBug=r,this.commonObjs=s.commonObjs,this.objs=new fp,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null,f(this,mo,n),this.imageCoordinates=null}clone(t){let e=new Ny(t,this._pageInfo,this._transport,i(this,mo),this._pdfBug);return e.clonedFromIndex=this.clonedFromIndex??this._pageIndex,this._transport.updatePage(e),e}get pageNumber(){return this._pageIndex+1}set pageNumber(t){this._pageIndex=t-1,this._transport.updatePage(this)}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:e=this.rotate,offsetX:s=0,offsetY:n=0,dontFlip:r=!1}={}){return new Uh({viewBox:this.view,userUnit:this.userUnit,scale:t,rotation:e,offsetX:s,offsetY:n,dontFlip:r})}getAnnotations({intent:t="display"}={}){let{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,e)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return G(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,canvas:e=t.canvas,viewport:s,intent:n="display",annotationMode:r=jn.ENABLE,transform:a=null,background:o=null,optionalContentConfigPromise:l=null,annotationCanvasMap:c=null,pageColors:d=null,printAnnotationStorage:u=null,isEditing:p=!1,recordImages:b=!1,recordOperations:y=!1,operationsFilter:v=null}){this._stats?.time("Overall");let w=this._transport.getRenderingIntent(n,r,u,p),{renderingIntent:A,cacheKey:x}=w;f(this,Cn,!1),l||(l=this._transport.getOptionalContentConfig(A));let S=this._intentStates.getOrInsertComputed(x,sp);S.streamReaderCancelTimeout&&(clearTimeout(S.streamReaderCancelTimeout),S.streamReaderCancelTimeout=null);let E=!!(A&Ss.PRINT);S.displayReadyCapability||(S.displayReadyCapability=Promise.withResolvers(),S.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(w));let C=!!(this._pdfBug&&globalThis.StepperManager?.enabled),_=!!e&&!this.recordedBBoxes&&(y||C),k=!!e&&!this.imageCoordinates&&b,P=L=>{if(S.renderTasks.delete(B),_){let X=B.gfx?.dependencyTracker.take();X&&(B.stepper?.setOperatorBBoxes(X,B.gfx.dependencyTracker.takeDebugMetadata()),y&&(this.recordedBBoxes=X))}k&&!L&&(this.imageCoordinates=B.gfx?.imagesTracker.take()),E&&f(this,Cn,!0),m(this,bo,Ch).call(this),L?(B.capability.reject(L),this._abortOperatorList({intentState:S,reason:L instanceof Error?L:new Error(L)})):B.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},I=null,F=null;(_||k)&&(F=new fm(e,S.operatorList.length)),_&&(I=new gm(F,C));let B=new yb({callback:P,params:{canvas:e,canvasContext:t,dependencyTracker:I??F,imagesTracker:k?new mm(e):null,viewport:s,transform:a,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:S.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!E,pdfBug:this._pdfBug,pageColors:d,enableHWA:this._transport.enableHWA,operationsFilter:v});(S.renderTasks||(S.renderTasks=new Set)).add(B);let H=B.task;return Promise.all([S.displayReadyCapability.promise,l]).then(([L,X])=>{if(this.destroyed){P();return}if(this._stats?.time("Rendering"),!(X.renderingIntent&A))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");B.initializeGraphics({transparency:L,optionalContentConfig:X}),B.operatorListChanged()}).catch(P),H}getOperatorList({intent:t="display",annotationMode:e=jn.ENABLE,printAnnotationStorage:s=null,isEditing:n=!1}={}){function r(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(l))}let a=this._transport.getRenderingIntent(t,e,s,n,!0),o=this._intentStates.getOrInsertComputed(a.cacheKey,sp),l;return o.opListReadCapability||(l=Object.create(null),l.operatorListChanged=r,o.opListReadCapability=Promise.withResolvers(),(o.renderTasks||(o.renderTasks=new Set)).add(l),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(a)),o.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:e=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageId:i(this,mo).getPageId(this._pageIndex+1)-1,pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:e===!0},{highWaterMark:100,size(n){return n.items.length}})}async getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>$h.textContent(n));let e=this.streamTextContent(t),s={items:[],styles:Object.create(null),lang:null};for await(let n of e)s.lang??(s.lang=n.lang),Object.assign(s.styles,n.styles),s.items.push(...n.items);return s}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;let t=[];for(let e of this._intentStates.values())if(this._abortOperatorList({intentState:e,reason:new Error("Page was destroyed."),force:!0}),!e.opListReadCapability)for(let s of e.renderTasks)t.push(s.completed),s.cancel();return this.objs.clear(),f(this,Cn,!1),Promise.all(t)}cleanup(t=!1){f(this,Cn,!0);let e=m(this,bo,Ch).call(this);return t&&e&&this._stats&&(this._stats=new ip),e}_startRenderPage(t,e){let s=this._intentStates.get(e);s&&(this._stats?.timeEnd("Page Request"),s.displayReadyCapability?.resolve(t))}_renderPageChunk(t,e){for(let s=0,n=t.length;s<n;s++)e.operatorList.fnArray.push(t.fnArray[s]),e.operatorList.argsArray.push(t.argsArray[s]);e.operatorList.lastChunk=t.lastChunk,e.operatorList.separateAnnots=t.separateAnnots;for(let s of e.renderTasks)s.operatorListChanged();t.lastChunk&&m(this,bo,Ch).call(this)}_pumpOperatorList({renderingIntent:t,cacheKey:e,annotationStorageSerializable:s,modifiedIds:n}){let{map:r,transfer:a}=s,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageId:i(this,mo).getPageId(this._pageIndex+1)-1,pageIndex:this._pageIndex,intent:t,cacheKey:e,annotationStorage:r,modifiedIds:n},void 0,a).getReader(),c=this._intentStates.get(e);c.streamReader=l;let d=()=>{l.read().then(({value:u,done:p})=>{if(p){c.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(u,c),d())},u=>{if(c.streamReader=null,!this._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;for(let p of c.renderTasks)p.operatorListChanged();m(this,bo,Ch).call(this)}if(c.displayReadyCapability)c.displayReadyCapability.reject(u);else if(c.opListReadCapability)c.opListReadCapability.reject(u);else throw u}})};d()}_abortOperatorList({intentState:t,reason:e,force:s=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!s){if(t.renderTasks.size>0)return;if(e instanceof Qc){let n=Bx;e.extraDelay>0&&e.extraDelay<1e3&&(n+=e.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:e,force:!0})},n);return}}if(t.streamReader.cancel(new yi(e.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(let[n,r]of this._intentStates)if(r===t){this._intentStates.delete(n);break}this.cleanup()}}}get stats(){return this._stats}};Cn=new WeakMap,mo=new WeakMap,bo=new WeakSet,Ch=function(){if(!i(this,Cn)||this.destroyed)return!1;for(let{renderTasks:t,operatorList:e}of this._intentStates.values())if(t.size>0||!e.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),f(this,Cn,!1),!0};gb=Ny,jt=class jt{constructor({name:t=null,port:e=null,verbosity:s=nx()}={}){g(this,Xe);g(this,Nr,Promise.withResolvers());g(this,li,null);g(this,_n,null);g(this,yo,null);if(this.name=t,this.destroyed=!1,this.verbosity=s,e){if(i(jt,wo).has(e))throw new Error("Cannot use more than one PDFWorker per port.");i(jt,wo).set(e,this),m(this,Xe,tw).call(this,e)}else m(this,Xe,ew).call(this)}get promise(){return i(this,Nr).promise}get port(){return i(this,_n)}get messageHandler(){return i(this,li)}destroy(){this.destroyed=!0,i(this,yo)?.terminate(),f(this,yo,null),i(jt,wo).delete(i(this,_n)),f(this,_n,null),i(this,li)?.destroy(),f(this,li,null)}static create(t){let e=i(this,wo).get(t?.port);if(e){if(e._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return e}return new jt(t)}static get workerSrc(){if(Ys.workerSrc)return Ys.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return G(this,"_setupFakeWorkerGlobal",(async()=>i(this,uc,Lf)?i(this,uc,Lf):(await import(this.workerSrc)).WorkerMessageHandler)())}};Nr=new WeakMap,li=new WeakMap,_n=new WeakMap,yo=new WeakMap,Vp=new WeakMap,vo=new WeakMap,wo=new WeakMap,Xe=new WeakSet,If=function(){i(this,Nr).resolve(),i(this,li).send("configure",{verbosity:this.verbosity})},tw=function(t){f(this,_n,t),f(this,li,new xa("main","worker",t)),i(this,li).on("ready",()=>{}),m(this,Xe,If).call(this)},ew=function(){if(i(jt,vo)||i(jt,uc,Lf)){m(this,Xe,_h).call(this);return}let{workerSrc:t}=jt;try{jt._isSameOrigin(window.location,t)||(t=jt._createCDNWrapper(new URL(t,window.location).href));let e=new Worker(t,{type:"module"}),s=new xa("main","worker",e),n=()=>{r.abort(),s.destroy(),e.terminate(),this.destroyed?i(this,Nr).reject(new Error("Worker was destroyed")):m(this,Xe,_h).call(this)},r=new AbortController;e.addEventListener("error",()=>{i(this,yo)||n()},{signal:r.signal}),s.on("test",o=>{if(r.abort(),this.destroyed||!o){n();return}f(this,li,s),f(this,_n,e),f(this,yo,e),m(this,Xe,If).call(this)}),s.on("ready",o=>{if(r.abort(),this.destroyed){n();return}try{a()}catch{m(this,Xe,_h).call(this)}});let a=()=>{let o=new Uint8Array;s.send("test",o,[o.buffer])};a();return}catch{ig("The worker has been disabled.")}m(this,Xe,_h).call(this)},_h=function(){i(jt,vo)||(Q("Setting up fake worker."),f(jt,vo,!0)),jt._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){i(this,Nr).reject(new Error("Worker was destroyed"));return}let e=new _m;f(this,_n,e);let s=`fake${Ft(jt,Vp)._++}`,n=new xa(s+"_worker",s,e);t.setup(n,e),f(this,li,new xa(s,s+"_worker",e)),m(this,Xe,If).call(this)}).catch(t=>{i(this,Nr).reject(new Error(`Setting up fake worker failed: "${t.message}".`))})},uc=new WeakSet,Lf=function(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}},g(jt,uc),g(jt,Vp,0),g(jt,vo,!1),g(jt,wo,new WeakMap),Es&&(f(jt,vo,!0),Ys.workerSrc||(Ys.workerSrc="./pdf.worker.mjs")),jt._isSameOrigin=(t,e)=>{let s=URL.parse(t);if(!s?.origin||s.origin==="null")return!1;let n=new URL(e,s);return s.origin===n.origin},jt._createCDNWrapper=t=>{let e=`await import("${t}");`;return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))};ih=jt,mb=class{constructor(t,e,s,n,r,a){g(this,Ks);T(this,"downloadInfoCapability",Promise.withResolvers());g(this,us,null);g(this,Ao,new Map);g(this,Tn,null);g(this,ci,new Map);g(this,xo,new Map);g(this,fc,new Map);g(this,kn,null);this.messageHandler=t,this.loadingTask=e,f(this,Tn,s),this.commonObjs=new fp,this.fontLoader=new bm({ownerDocument:n.ownerDocument,styleElement:n.styleElement}),this.enableHWA=n.enableHWA,this.loadingParams=n.loadingParams,this._params=n,this.canvasFactory=r.canvasFactory,this.filterFactory=r.filterFactory,this.binaryDataFactory=r.binaryDataFactory,this.pagesMapper=a,this.destroyed=!1,this.destroyCapability=null,this.setupMessageHandler()}updatePage(t){let{_pageIndex:e}=t;i(this,ci).set(e,t),i(this,xo).set(e,Promise.resolve(t))}get annotationStorage(){return G(this,"annotationStorage",new Wh)}getRenderingIntent(t,e=jn.ENABLE,s=null,n=!1,r=!1){let a=Ss.DISPLAY,o=Vh;switch(t){case"any":a=Ss.ANY;break;case"display":break;case"print":a=Ss.PRINT;break;default:Q(`getRenderingIntent - invalid intent: ${t}`)}let l=a&Ss.PRINT&&s instanceof op?s:this.annotationStorage;switch(e){case jn.DISABLE:a+=Ss.ANNOTATIONS_DISABLE;break;case jn.ENABLE:break;case jn.ENABLE_FORMS:a+=Ss.ANNOTATIONS_FORMS;break;case jn.ENABLE_STORAGE:a+=Ss.ANNOTATIONS_STORAGE,o=l.serializable;break;default:Q(`getRenderingIntent - invalid annotationMode: ${e}`)}n&&(a+=Ss.IS_EDITING),r&&(a+=Ss.OPLIST);let{ids:c,hash:d}=l.modifiedIds,u=[a,o.hash,d];return{renderingIntent:a,cacheKey:u.join("_"),annotationStorageSerializable:o,modifiedIds:c}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),i(this,kn)?.reject(new Error("Worker was destroyed during onPassword callback"));let t=[];for(let s of i(this,ci).values())t.push(s._destroy());i(this,ci).clear(),i(this,xo).clear(),i(this,fc).clear(),Object.hasOwn(this,"annotationStorage")&&this.annotationStorage.resetModified();let e=this.messageHandler.sendWithPromise("Terminate",null);return t.push(e),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),i(this,Ao).clear(),this.filterFactory.destroy(),sh.cleanup(),i(this,Tn)?.cancelAllRequests(new yi("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){let{messageHandler:t,loadingTask:e}=this;t.on("GetReader",(s,n)=>{$t(i(this,Tn),"GetReader - no `BasePDFStream` instance available."),f(this,us,i(this,Tn).getFullReader()),i(this,us).onProgress=r=>m(this,Ks,Of).call(this,r),n.onPull=()=>{i(this,us).read().then(function({value:r,done:a}){if(a){n.close();return}$t(r instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(r),1,[r])}).catch(r=>{n.error(r)})},n.onCancel=r=>{i(this,us).cancel(r),n.ready.catch(a=>{if(!this.destroyed)throw a})}}),t.on("ReaderHeadersReady",async s=>{await i(this,us).headersReady;let{isStreamingSupported:n,isRangeSupported:r,contentLength:a}=i(this,us);return n&&r&&(i(this,us).onProgress=null),{isStreamingSupported:n,isRangeSupported:r,contentLength:a}}),t.on("GetRangeReader",(s,n)=>{$t(i(this,Tn),"GetRangeReader - no `BasePDFStream` instance available.");let r=i(this,Tn).getRangeReader(s.begin,s.end);if(!r){n.close();return}n.onPull=()=>{r.read().then(function({value:a,done:o}){if(o){n.close();return}$t(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{n.error(a)})},n.onCancel=a=>{r.cancel(a),n.ready.catch(o=>{if(!this.destroyed)throw o})}}),t.on("GetDoc",({pdfInfo:s})=>{this.pagesMapper.pagesNumber=s.numPages,this._numPages=s.numPages,this._htmlForXfa=s.htmlForXfa,delete s.htmlForXfa,e._capability.resolve(new pb(s,this))}),t.on("DocException",s=>{e._capability.reject(Ke(s))}),t.on("PasswordRequest",s=>{f(this,kn,Promise.withResolvers());try{if(!e.onPassword)throw Ke(s);let n=r=>{r instanceof Error?i(this,kn).reject(r):i(this,kn).resolve({password:r})};e.onPassword(n,s.code)}catch(n){i(this,kn).reject(n)}return i(this,kn).promise}),t.on("DataLoaded",s=>{m(this,Ks,Of).call(this,{loaded:s.length,total:s.length}),this.downloadInfoCapability.resolve(s)}),t.on("StartRenderPage",s=>{if(this.destroyed)return;i(this,ci).get(s.pageIndex)._startRenderPage(s.transparency,s.cacheKey)}),t.on("commonobj",([s,n,r])=>{if(this.destroyed||this.commonObjs.has(s))return null;switch(n){case"Font":if("error"in r){let u=r.error;Q(`Error during font loading: ${u}`),this.commonObjs.resolve(s,u);break}let a=new Am(r),o=this._params.pdfBug&&globalThis.FontInspector?.enabled?(u,p)=>globalThis.FontInspector.fontAdded(u,p):null,l=new ym(a,o,r.charProcOperatorList,r.extra);this.fontLoader.bind(l).catch(()=>t.sendWithPromise("FontFallback",{id:s})).finally(()=>{l.fontExtraProperties||l.clearData(),this.commonObjs.resolve(s,l)});break;case"CopyLocalImage":let{imageRef:c}=r;$t(c,"The imageRef must be defined.");for(let u of i(this,ci).values())for(let[,p]of u.objs){if(p?.ref!==c)continue;if(!p.dataLen)return null;let b=structuredClone(p);return this.commonObjs.resolve(s,b),p.dataLen}break;case"FontPath":this.commonObjs.resolve(s,new Em(r));break;case"Image":this.commonObjs.resolve(s,r);break;case"Pattern":let d=new Sm(r);this.commonObjs.resolve(s,d.getIR());break;default:throw new Error(`Got unknown common object type ${n}`)}return null}),t.on("obj",([s,n,r,a])=>{if(this.destroyed)return;let o=i(this,ci).get(n);if(!o.objs.has(s)){if(o._intentStates.size===0){a?.bitmap?.close();return}switch(r){case"Image":case"Pattern":o.objs.resolve(s,a);break;default:throw new Error(`Got unknown object type ${r}`)}}}),t.on("DocProgress",s=>{this.destroyed||m(this,Ks,Of).call(this,s)}),t.on("FetchBinaryData",async s=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.binaryDataFactory)throw new Error("`BinaryDataFactory` not initialized, see the `useWorkerFetch` parameter.");return this.binaryDataFactory.fetch(s)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Q("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");let{map:t,transfer:e}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:i(this,us)?.filename??null},e).finally(()=>{this.annotationStorage.resetModified()})}extractPages(t,e=null){let s={pageInfos:t},n,r=globalThis.ImageBitmap;if(typeof r=="function"){let a=Array.isArray(t)?t:[t];for(let o of a)o?.image instanceof r&&(n||(n=[])).push(o.image)}if(this.annotationStorage.size>0){let a=this.annotationStorage.serializable,{map:o}=a;a.transfer?.length&&(n?n.push(...a.transfer):n=a.transfer);let l=this.pagesMapper.getMapping();if(l){let c=new Map;for(let[d,u]of o){if(u?.pageIndex!==void 0&&u.pageIndex>=0&&u.pageIndex<l.length){let p=e?.[u.pageIndex]??0,b=l[u.pageIndex]-1;if(b!==u.pageIndex||p!==0){c.set(d,{...u,pageIndex:b,copyLevel:p});continue}}c.set(d,u)}o=c}s.annotationStorage=o}return this.messageHandler.sendWithPromise("ExtractPages",s,n).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this.pagesMapper.pagesNumber)return Promise.reject(new Error("Invalid page request."));let e=t-1,s=this.pagesMapper.getPageId(t)-1,n=i(this,xo).get(e);if(n)return n;let r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:s}).then(a=>{if(this.destroyed)throw new Error("Transport destroyed");a.refStr&&i(this,fc).set(a.refStr,s);let o=new gb(e,a,this,this.pagesMapper,this._params.pdfBug);return i(this,ci).set(e,o),o});return i(this,xo).set(e,r),r}async getPageIndex(t){if(!Cm(t))throw new Error("Invalid pageIndex request.");let e=await this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}),s=this.pagesMapper.getPageNumber(e+1);if(s===0)throw new Error("GetPageIndex: page has been removed.");return s-1}getAnnotations(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:this.pagesMapper.getPageId(t+1)-1,intent:e})}getFieldObjects(){return m(this,Ks,fl).call(this,"GetFieldObjects")}getSignatures(){return m(this,Ks,fl).call(this,"GetSignatures")}getSignatureData(t){return this.messageHandler.sendWithPromise("GetSignatureData",t)}hasJSActions(){return m(this,Ks,fl).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getAttachmentContent(t){return this.messageHandler.sendWithPromise("GetAttachmentContent",t)}getAnnotationsByType(t,e){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:t,pageIndexesToSkip:e})}getDocJSActions(){return m(this,Ks,fl).call(this,"GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:this.pagesMapper.getPageId(t+1)-1})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:this.pagesMapper.getPageId(t+1)-1})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return m(this,Ks,fl).call(this,"GetOptionalContentConfig").then(e=>new ab(e,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){let t="GetMetadata";return i(this,Ao).getOrInsertComputed(t,()=>this.messageHandler.sendWithPromise(t,null).then(e=>({info:e[0],metadata:e[1]?new nb(e[1]):null,contentDispositionFilename:i(this,us)?.filename??null,contentLength:i(this,us)?.contentLength??null,hasStructTree:e[2]})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(let e of i(this,ci).values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),i(this,Ao).clear(),this.filterFactory.destroy(!0),sh.cleanup()}}cachedPageNumber(t){if(!Cm(t))return null;let e=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`,s=i(this,fc).get(e);if(s>=0){let n=this.pagesMapper.getPageNumber(s+1);if(n!==0)return n}return null}};us=new WeakMap,Ao=new WeakMap,Tn=new WeakMap,ci=new WeakMap,xo=new WeakMap,fc=new WeakMap,kn=new WeakMap,Ks=new WeakSet,fl=function(t,e=null){return i(this,Ao).getOrInsertComputed(t,()=>this.messageHandler.sendWithPromise(t,e))},Of=function({loaded:t,total:e}){this.loadingTask.onProgress?.({loaded:t,total:e,percent:e?Ct(Math.round(t/e*100),0,100):NaN})};bb=class{constructor(t){T(this,"_internalRenderTask",null);T(this,"onContinue",null);T(this,"onError",null);this._internalRenderTask=t}get promise(){return this._internalRenderTask.capability.promise}cancel(t=0){this._internalRenderTask.cancel(null,t)}get separateAnnots(){let{separateAnnots:t}=this._internalRenderTask.operatorList;if(!t)return!1;let{annotationCanvasMap:e}=this._internalRenderTask;return t.form||t.canvas&&e?.size>0}get imageCoordinates(){return this._internalRenderTask.imageCoordinates||null}},va=class va{constructor({callback:t,params:e,objs:s,commonObjs:n,annotationCanvasMap:r,operatorList:a,pageIndex:o,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:d=!1,pdfBug:u=!1,pageColors:p=null,enableHWA:b=!1,operationsFilter:y=null}){g(this,Fr,null);this.callback=t,this.params=e,this.objs=s,this.commonObjs=n,this.annotationCanvasMap=r,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=o,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=u,this.pageColors=p,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=d===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new bb(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=e.canvas,this._canvasContext=e.canvas?null:e.canvasContext,this._enableHWA=b,this._dependencyTracker=e.dependencyTracker,this._imagesTracker=e.imagesTracker,this._operationsFilter=y}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:e}){if(this.cancelled)return;if(this._canvas){if(i(va,So).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");i(va,So).add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());let{viewport:s,transform:n,background:r,dependencyTracker:a,imagesTracker:o}=this.params,l=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new wl(l,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:e},this.annotationCanvasMap,this.pageColors,a,o),this.gfx.beginDrawing({transform:n,viewport:s,transparency:t,background:r}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,e=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),i(this,Fr)&&(window.cancelAnimationFrame(i(this,Fr)),f(this,Fr,null)),i(va,So).delete(this._canvas),t||(t=new Qc(`Rendering cancelled, page ${this._pageIndex+1}`,e)),this.callback(t),this.task.onError?.(t)}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.gfx.dependencyTracker?.growOperationsCount(this.operatorList.fnArray.length),this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?f(this,Fr,window.requestAnimationFrame(()=>{f(this,Fr,null),this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper,this._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),i(va,So).delete(this._canvas),this.callback())))}};Fr=new WeakMap,So=new WeakMap,g(va,So,new WeakSet);yb=va,sw="6.3.289",iw="1c8020a7d",Je=class Je{constructor({editor:t=null,uiManager:e=null}){g(this,vt);g(this,fs,null);g(this,Eo,null);g(this,pc);g(this,ce,null);g(this,ou,!1);g(this,gc,!1);g(this,Mn,null);g(this,lu);g(this,Br,null);g(this,hi,null);t?(f(this,gc,!1),f(this,Mn,t)):f(this,gc,!0),f(this,hi,t?._uiManager||e),f(this,lu,i(this,hi)._eventBus),f(this,pc,t?.color?.toUpperCase()||i(this,hi)?.highlightColors.values().next().value||"#FFFF98"),i(Je,cu)||f(Je,cu,Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}static get _keyboardManager(){return G(this,"_keyboardManager",new Jo([[["Escape"],Je.prototype._hideDropdownFromKeyboard],[["Space"],Je.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight"],Je.prototype._moveToNext],[["ArrowUp","ArrowLeft"],Je.prototype._moveToPrevious],[["Home"],Je.prototype._moveToBeginning],[["End"],Je.prototype._moveToEnd]]))}renderButton(){let t=f(this,fs,document.createElement("button"));t.className="colorPicker",t.tabIndex="0",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),t.ariaHasPopup="true",i(this,Mn)&&(t.ariaControls=`${i(this,Mn).id}_colorpicker_dropdown`);let e=i(this,hi)._signal;t.addEventListener("click",m(this,vt,ga).bind(this),{signal:e}),t.addEventListener("keydown",m(this,vt,Ab).bind(this),{signal:e});let s=f(this,Eo,document.createElement("span"));return s.className="swatch",s.ariaHidden="true",s.style.backgroundColor=i(this,pc),t.append(s),t}renderMainDropdown(){let t=f(this,ce,m(this,vt,vb).call(this));return t.ariaOrientation="horizontal",t.ariaLabelledBy="highlightColorPickerLabel",t}_colorSelectFromKeyboard(t){if(t.target===i(this,fs)){m(this,vt,ga).call(this,t);return}let e=t.target.getAttribute("data-color");e&&m(this,vt,wb).call(this,e,t)}_moveToNext(t){if(!i(this,vt,er)){m(this,vt,ga).call(this,t);return}if(t.target===i(this,fs)){i(this,ce).firstElementChild?.focus();return}t.target.nextSibling?.focus()}_moveToPrevious(t){if(t.target===i(this,ce)?.firstElementChild||t.target===i(this,fs)){i(this,vt,er)&&this._hideDropdownFromKeyboard();return}i(this,vt,er)||m(this,vt,ga).call(this,t),t.target.previousSibling?.focus()}_moveToBeginning(t){if(!i(this,vt,er)){m(this,vt,ga).call(this,t);return}i(this,ce).firstElementChild?.focus()}_moveToEnd(t){if(!i(this,vt,er)){m(this,vt,ga).call(this,t);return}i(this,ce).lastElementChild?.focus()}hideDropdown(){i(this,ce)?.classList.add("hidden"),i(this,fs).ariaExpanded="false",i(this,Br)?.abort(),f(this,Br,null)}_hideDropdownFromKeyboard(){if(!i(this,gc)){if(!i(this,vt,er)){i(this,Mn)?.unselect();return}this.hideDropdown(),i(this,fs).focus({preventScroll:!0,focusVisible:i(this,ou)})}}update(t){if(i(this,Eo)&&(i(this,Eo).style.backgroundColor=t),!i(this,ce))return;let e=i(this,hi).highlightColors.values();for(let s of i(this,ce).children)s.ariaSelected=e.next().value===t.toUpperCase()}destroy(){i(this,fs)?.remove(),f(this,fs,null),f(this,Eo,null),i(this,ce)?.remove(),f(this,ce,null)}};fs=new WeakMap,Eo=new WeakMap,pc=new WeakMap,ce=new WeakMap,ou=new WeakMap,gc=new WeakMap,Mn=new WeakMap,lu=new WeakMap,Br=new WeakMap,hi=new WeakMap,cu=new WeakMap,vt=new WeakSet,vb=function(){let t=document.createElement("div"),e=i(this,hi)._signal;t.addEventListener("contextmenu",Js,{signal:e}),t.className="dropdown",t.role="listbox",t.ariaMultiSelectable="false",t.ariaOrientation="vertical",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),i(this,Mn)&&(t.id=`${i(this,Mn).id}_colorpicker_dropdown`);for(let[s,n]of i(this,hi).highlightColors){let r=document.createElement("button");r.tabIndex="0",r.role="option",r.setAttribute("data-color",n),r.title=s,r.setAttribute("data-l10n-id",i(Je,cu)[s]);let a=document.createElement("span");r.append(a),a.className="swatch",a.style.backgroundColor=n,r.ariaSelected=n===i(this,pc),r.addEventListener("click",m(this,vt,wb).bind(this,n),{signal:e}),t.append(r)}return t.addEventListener("keydown",m(this,vt,Ab).bind(this),{signal:e}),t},wb=function(t,e){e.stopPropagation(),i(this,lu).dispatch("switchannotationeditorparams",{source:this,type:it.HIGHLIGHT_COLOR,value:t}),this.update(t)},Ab=function(t){Je._keyboardManager.exec(this,t)},ga=function(t){if(i(this,vt,er)){this.hideDropdown();return}if(f(this,ou,t.detail===0),i(this,Br)||(f(this,Br,new AbortController),window.addEventListener("pointerdown",m(this,vt,nw).bind(this),{signal:i(this,hi).combinedSignal(i(this,Br))})),i(this,fs).ariaExpanded="true",i(this,ce)){i(this,ce).classList.remove("hidden");return}let e=f(this,ce,m(this,vt,vb).call(this));i(this,fs).append(e)},nw=function(t){i(this,ce)?.contains(t.target)||this.hideDropdown()},er=function(){return i(this,ce)&&!i(this,ce).classList.contains("hidden")},g(Je,cu,null);Kh=Je,wa=class wa{constructor(t){g(this,ps,null);g(this,mc,!1);g(this,Co,null);g(this,Pn,null);f(this,Co,t),f(this,Pn,t._uiManager),i(wa,hu)||f(wa,hu,Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"}))}renderButton(){if(i(this,ps))return i(this,ps);let{editorType:t,colorType:e,colorAndOpacityType:s,opacityType:n,color:r,opacity:a}=i(this,Co),o=f(this,mc,lt.isAlphaColorInputSupported&&n!==void 0),l=f(this,ps,document.createElement("input"));if(l.type="color",o){l.setAttribute("alpha","");let c=D.hexNums[Math.round((a??1)*255)];l.value=(r||"#000000")+c}else l.value=r||"#000000";return l.className="basicColorPicker",l.tabIndex=0,l.setAttribute("data-l10n-id",i(wa,hu)[t]),l.addEventListener("input",()=>{if(o){let c=ah(l.value);if(!c)return;let[d,u,p,b]=c,y=D.makeHexColor(d,u,p);s!==void 0?i(this,Pn).updateParams(s,{color:y,opacity:b}):(i(this,Pn).updateParams(e,y),i(this,Pn).updateParams(n,b))}else i(this,Pn).updateParams(e,l.value)},{signal:i(this,Pn)._signal}),l}update(t){if(i(this,ps))if(i(this,mc)){let e=D.hexNums[Math.round(i(this,Co).opacity*255)];i(this,ps).value=t+e}else i(this,ps).value=t}updateOpacity(t){if(!i(this,ps)||!i(this,mc))return;let e=D.hexNums[Math.round(t*255)];i(this,ps).value=i(this,Co).color+e}destroy(){i(this,ps)?.remove(),f(this,ps,null)}hideDropdown(){}};ps=new WeakMap,mc=new WeakMap,Co=new WeakMap,Pn=new WeakMap,hu=new WeakMap,g(wa,hu,null);pp=wa;gp=class{static CMYK_G([t,e,s,n]){return["G",1-Math.min(1,.3*t+.59*s+.11*e+n)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=dh(t),[t,t,t]}static G_HTML([t]){let e=I0(t);return`#${e}${e}${e}`}static RGB_G([t,e,s]){return["G",.3*t+.59*e+.11*s]}static RGB_rgb(t){return t.map(dh)}static RGB_HTML(t){return`#${t.map(I0).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,e,s,n]){return["RGB",1-Math.min(1,t+n),1-Math.min(1,s+n),1-Math.min(1,e+n)]}static CMYK_rgb([t,e,s,n]){return[dh(1-Math.min(1,t+n)),dh(1-Math.min(1,s+n)),dh(1-Math.min(1,e+n))]}static CMYK_HTML(t){let e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([t,e,s]){let n=1-t,r=1-e,a=1-s,o=Math.min(n,r,a);return["CMYK",n,r,a,o]}},xb=class{create(t,e,s=!1){if(t<=0||e<=0)throw new Error("Invalid SVG dimensions");let n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),s||(n.setAttribute("width",`${t}px`),n.setAttribute("height",`${e}px`)),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox",`0 0 ${t} ${e}`),n}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){rt("Abstract method `_createSVG` called.")}},Zo=class extends xb{_createSVG(t){return document.createElementNS(We,t)}},zx=9,tl=new WeakSet,Hx=new Date().getTimezoneOffset()*60*1e3,Bh=class{static create(t){switch(t.data.annotationType){case Pt.LINK:return new Qh(t);case Pt.TEXT:return new Cb(t);case Pt.WIDGET:switch(t.data.fieldType){case"Tx":return new _b(t);case"Btn":return t.data.radioButton?new Mb(t):t.data.checkBox?new kb(t):new Pb(t);case"Ch":return new Db(t);case"Sig":return new Tb(t)}return new qn(t);case Pt.POPUP:return new Jh(t);case Pt.FREETEXT:return new mp(t);case Pt.LINE:return new zb(t);case Pt.SQUARE:return new Hb(t);case Pt.CIRCLE:return new Ub(t);case Pt.POLYLINE:return new bp(t);case Pt.CARET:return new Gb(t);case Pt.INK:return new Zh(t);case Pt.POLYGON:return new $b(t);case Pt.HIGHLIGHT:return new yp(t);case Pt.UNDERLINE:return new Vb(t);case Pt.SQUIGGLY:return new Wb(t);case Pt.STRIKEOUT:return new Xb(t);case Pt.STAMP:return new vp(t);case Pt.FILEATTACHMENT:return new Yb(t);case Pt.RICHMEDIA:case Pt.SCREEN:case Pt.SOUND:return new wp(t);default:return new Ot(t)}}},Fy=class Fy{constructor(t,{isRenderable:e=!1,ignoreBorder:s=!1,createQuadrilaterals:n=!1}={}){g(this,du);g(this,_o,null);g(this,bc,!1);g(this,js,null);this.isRenderable=e,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableComment=t.enableComment,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,this.hasOwnCommentButton=!1,e&&(this.contentElement=this.container=this._createContainer(s)),n&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:t,richText:e}){return!!(t?.str||e?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Fy._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){let{data:t}=this,e=this.annotationStorage?.getEditor(t.id);return e?e.getData():t}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}get commentButtonPosition(){let t=this.annotationStorage?.getEditor(this.data.id);if(t)return t.commentButtonPositionInPage;let{quadPoints:e,inkLists:s,rect:n}=this.data,r=-1/0,a=-1/0;if(e?.length>=8){for(let o=0;o<e.length;o+=8)e[o+1]>a?(a=e[o+1],r=e[o+2]):e[o+1]===a&&(r=Math.max(r,e[o+2]));return[r,a]}if(s?.length>=1){for(let o of s)for(let l=0,c=o.length;l<c;l+=2)o[l+1]>a?(a=o[l+1],r=o[l]):o[l+1]===a&&(r=Math.max(r,o[l]));if(r!==1/0)return[r,a]}return n?[n[2],n[3]]:null}_normalizePoint(t){let{page:{view:e},viewport:{rawDims:{pageWidth:s,pageHeight:n,pageX:r,pageY:a}}}=this.parent;return t[1]=e[3]-t[1]+e[1],t[0]=100*(t[0]-r)/s,t[1]=100*(t[1]-a)/n,t}get commentText(){let{data:t}=this;return this.annotationStorage.getRawValue(`${Yc}${t.id}`)?.popup?.contents||t.contentsObj?.str||""}set commentText(t){let{data:e}=this,s={deleted:!t,contents:t||""};this.annotationStorage.updateEditor(e.id,{popup:s})||this.annotationStorage.setValue(`${Yc}${e.id}`,{id:e.id,annotationType:e.annotationType,page:this.parent.page,popup:s,popupRef:e.popupRef,modificationDate:new Date}),t||this.removePopup()}removePopup(){(i(this,js)?.popup||this.popup)?.remove(),f(this,js,this.popup=null)}updateEdited(t){if(!this.container)return;t.rect&&(i(this,_o)||f(this,_o,{rect:this.data.rect.slice(0)}));let{rect:e,popup:s}=t;e&&m(this,du,Sb).call(this,e);let n=i(this,js)?.popup||this.popup;!n&&s?.text&&(this._createPopup(s),n=i(this,js).popup),n&&(n.updateEdited(t),s?.deleted&&(n.remove(),f(this,js,null),this.popup=null))}resetEdited(){i(this,_o)&&(m(this,du,Sb).call(this,i(this,_o).rect),i(this,js)?.popup.resetEdited(),f(this,_o,null))}_createContainer(t){let{data:e,parent:{page:s,viewport:n}}=this,r=document.createElement("section");r.setAttribute("data-annotation-id",e.id),!(this instanceof qn)&&!(this instanceof Qh)&&!(this instanceof wp)&&(r.tabIndex=0);let{style:a}=r;if(a.zIndex=this.parent.zIndex,this.parent.zIndex+=2,e.alternativeText&&(r.title=e.alternativeText),e.noRotate&&r.classList.add("norotate"),!e.rect||this instanceof Jh){let{rotation:v}=e;return!e.hasOwnCanvas&&v!==0&&this.setRotation(v,r),r}let{width:o,height:l}=this;if(!t&&e.borderStyle.width>0){a.borderWidth=`${e.borderStyle.width}px`;let v=e.borderStyle.horizontalCornerRadius,w=e.borderStyle.verticalCornerRadius;if(v>0||w>0){let x=`calc(${v}px * var(--total-scale-factor)) / calc(${w}px * var(--total-scale-factor))`;a.borderRadius=x}switch(e.borderStyle.style){case hl.SOLID:a.borderStyle="solid";break;case hl.DASHED:a.borderStyle="dashed";break;case hl.BEVELED:Q("Unimplemented border style: beveled");break;case hl.INSET:Q("Unimplemented border style: inset");break;case hl.UNDERLINE:a.borderBottomStyle="solid";break;default:break}let A=e.borderColor||null;A?(f(this,bc,!0),a.borderColor=D.makeHexColor(...A)):a.borderWidth=0}let c=D.normalizeRect([e.rect[0],s.view[3]-e.rect[1]+s.view[1],e.rect[2],s.view[3]-e.rect[3]+s.view[1]]),{pageWidth:d,pageHeight:u,pageX:p,pageY:b}=n.rawDims;a.left=`${100*(c[0]-p)/d}%`,a.top=`${100*(c[1]-b)/u}%`;let{rotation:y}=e;return e.hasOwnCanvas||y===0?(a.width=`${100*o/d}%`,a.height=`${100*l/u}%`):this.setRotation(y,r),r}setRotation(t,e=this.container){if(!this.data.rect)return;let{pageWidth:s,pageHeight:n}=this.parent.viewport.rawDims,{width:r,height:a}=this;t%180!==0&&([r,a]=[a,r]),e.style.width=`${100*r/s}%`,e.style.height=`${100*a/n}%`,e.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){let t=(e,s,n)=>{let r=n.detail[e],a=r[0],o=r.slice(1);n.target.style[s]=gp[`${a}_HTML`](o),this.annotationStorage.setValue(this.data.id,{[s]:gp[`${a}_rgb`](o)})};return G(this,"_commonActions",{display:e=>{let{display:s}=e.detail,n=s%2===1;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:s===1||s===2})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{let{hidden:s}=e.detail;this.container.style.visibility=s?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:s,noView:s})},focus:e=>{setTimeout(()=>e.target.focus({preventScroll:!1}),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:e=>{t("bgColor","backgroundColor",e)},fillColor:e=>{t("fillColor","backgroundColor",e)},fgColor:e=>{t("fgColor","color",e)},textColor:e=>{t("textColor","color",e)},borderColor:e=>{t("borderColor","borderColor",e)},strokeColor:e=>{t("strokeColor","borderColor",e)},rotation:e=>{let s=e.detail.rotation;this.setRotation(s),this.annotationStorage.setValue(this.data.id,{rotation:s})}})}_dispatchEventFromSandbox(t,e){let s=this._commonActions;for(let n of Object.keys(e.detail))(t[n]||s[n])?.(e)}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;let e=this.annotationStorage.getRawValue(this.data.id);if(!e)return;let s=this._commonActions;for(let[n,r]of Object.entries(e)){let a=s[n];if(a){let o={detail:{[n]:r},target:t};a(o),delete e[n]}}}_createQuadrilaterals(){if(!this.container)return;let{quadPoints:t}=this.data;if(!t)return;let[e,s,n,r]=this.data.rect.map(Math.fround);if(t.length===8){let[v,w,A,x]=t.subarray(2,6);if(n===v&&r===w&&e===A&&s===x)return}let{style:a}=this.container,o;if(i(this,bc)){let{borderColor:v,borderWidth:w}=a;a.borderWidth=0,o=["url('data:image/svg+xml;utf8,",`<svg xmlns="${We}" preserveAspectRatio="none" viewBox="0 0 1 1">`,`<g fill="transparent" stroke="${v}" stroke-width="${w}">`],this.container.classList.add("hasBorder")}let l=n-e,c=r-s,{svgFactory:d}=this,u=d.createElement("svg");u.classList.add("quadrilateralsContainer"),u.setAttribute("width",0),u.setAttribute("height",0),u.role="none";let p=d.createElement("defs");u.append(p);let b=d.createElement("clipPath"),y=`clippath_${this.data.id}`;b.setAttribute("id",y),b.setAttribute("clipPathUnits","objectBoundingBox"),p.append(b);for(let v=2,w=t.length;v<w;v+=8){let A=t[v],x=t[v+1],S=t[v+2],E=t[v+3],C=d.createElement("rect"),_=(S-e)/l,k=(r-x)/c,P=(A-S)/l,I=(x-E)/c;C.setAttribute("x",_),C.setAttribute("y",k),C.setAttribute("width",P),C.setAttribute("height",I),b.append(C),o?.push(`<rect vector-effect="non-scaling-stroke" x="${_}" y="${k}" width="${P}" height="${I}"/>`)}i(this,bc)&&(o.push("</g></svg>')"),a.backgroundImage=o.join("")),this.container.append(u),this.container.style.clipPath=`url(#${y})`}_createPopup(t=null){let{data:e}=this,s,n;t?(s={str:t.text},n=t.date):(s=e.contentsObj,n=e.modificationDate),f(this,js,new Jh({data:{color:e.color,titleObj:e.titleObj,modificationDate:n,contentsObj:s,richText:e.richText,parentRect:e.rect,borderStyle:0,id:`popup_${e.id}`,rotation:e.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]}))}get hasPopupElement(){return!!(i(this,js)||this.popup||this.data.popupRef)}get extraPopupElement(){return i(this,js)}render(){rt("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,e=null){let s=[];if(this._fieldObjects){let n=this._fieldObjects.get(t)||[];for(let{page:r,id:a,exportValues:o}of n){if(r===-1||a===e)continue;let l=typeof o=="string"?o:null,c=document.querySelector(`[data-element-id="${a}"]`);if(c&&!tl.has(c)){Q(`_getElementsByName - element not allowed: ${a}`);continue}s.push({id:a,exportValue:l,domElement:c})}return s}for(let n of document.getElementsByName(t)){let{exportValue:r}=n,a=n.getAttribute("data-element-id");a!==e&&tl.has(n)&&s.push({id:a,exportValue:r,domElement:n})}return s}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){let t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(let e of t)e.classList.add("highlightArea");else t.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;let{annotationEditorType:t,data:{id:e}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:t,editId:e,mustEnterInEditMode:!0})})}updateOC(t){if(!this.data.oc||!t)return;t.isVisible(this.data.oc)?this.show():this.hide()}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}_setBackgroundColor(t){let e=this.data.backgroundColor||null;t.style.backgroundColor=e===null?"transparent":D.makeHexColor(...e)}};_o=new WeakMap,bc=new WeakMap,js=new WeakMap,du=new WeakSet,Sb=function(t){let{container:{style:e},data:{rect:s,rotation:n},parent:{viewport:{rawDims:{pageWidth:r,pageHeight:a,pageX:o,pageY:l}}}}=this;s?.splice(0,4,...t),e.left=`${100*(t[0]-o)/r}%`,e.top=`${100*(a-t[3]+l)/a}%`,n===0?(e.width=`${100*(t[2]-t[0])/r}%`,e.height=`${100*(t[3]-t[1])/a}%`):this.setRotation(n)};Ot=Fy,Eb=class extends Ot{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.editor=t.editor}render(){return this.container.className="editorAnnotation",this.container}createOrUpdatePopup(){let{editor:t}=this;t.hasComment&&this._createPopup(t.comment)}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(t){this.editor.comment=t,t||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.parent.removeAnnotation(this.data.id),this.container.remove(),this.container=null,this.removePopup()}},Qh=class extends Ot{constructor(e,s=null){super(e,{isRenderable:!0,ignoreBorder:!!s?.ignoreBorder,createQuadrilaterals:!0});g(this,_s);this.isTooltipOnly=e.data.isTooltipOnly}render(){let{data:e,linkService:s}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let r=!1;return e.url?(s.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action,e.overlaidText),r=!0):e.attachment?(m(this,_s,rw).call(this,n,e.attachmentId,e.attachment,e.overlaidText,e.attachmentDest),r=!0):e.setOCGState?(m(this,_s,aw).call(this,n,e.setOCGState,e.overlaidText),r=!0):e.dest?(this._bindLink(n,e.dest,e.overlaidText),r=!0):(e.actions&&(e.actions.has("Action")||e.actions.has("Mouse Up")||e.actions.has("Mouse Down"))&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.container.classList.add("linkAnnotation"),r&&(this.contentElement=n,this.container.append(n)),this.container}_bindLink(e,s,n=""){e.href=this.linkService.getDestinationHash(s),e.onclick=()=>(s&&this.linkService.goToDestination(s),!1),(s||s==="")&&m(this,_s,ma).call(this),n&&(e.title=n)}_bindNamedAction(e,s,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(s),!1),n&&(e.title=n),m(this,_s,ma).call(this)}_bindJSAction(e,{actions:s,id:n,overlaidText:r}){e.href=this.linkService.getAnchorUrl("");let a=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(let o of s.keys()){let l=a.get(o);l&&(e[l]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:o}}),!1))}r&&(e.title=r),e.onclick||(e.onclick=()=>!1),m(this,_s,ma).call(this)}_bindResetFormAction(e,s){let n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),m(this,_s,ma).call(this),!this._fieldObjects){Q('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(e.onclick=()=>!1);return}e.onclick=()=>{n?.();let{fields:r,refs:a,include:o}=s,l=[];if(r.length!==0||a.length!==0){let u=new Set(a);for(let p of r){let b=this._fieldObjects.get(p)||[];for(let{id:y}of b)u.add(y)}for(let p of this._fieldObjects.values())for(let b of p)u.has(b.id)===o&&l.push(b)}else for(let u of this._fieldObjects.values())l.push(...u);let c=this.annotationStorage,d=[];for(let u of l){let{id:p}=u;switch(d.push(p),u.type){case"text":{let y=u.defaultValue||"";c.setValue(p,{value:y});break}case"checkbox":case"radiobutton":{let y=u.defaultValue===u.exportValues;c.setValue(p,{value:y});break}case"combobox":case"listbox":{let y=u.defaultValue||"";c.setValue(p,{value:y});break}default:continue}let b=document.querySelector(`[data-element-id="${p}"]`);if(b){if(!tl.has(b)){Q(`_bindResetFormAction - element not allowed: ${p}`);continue}}else continue;b.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:d,name:"ResetForm"}}),!1}}};_s=new WeakSet,ma=function(){this.container.setAttribute("data-internal-link","")},rw=function(e,s,n,r="",a=null){e.href=this.linkService.getAnchorUrl(""),n.description?e.title=n.description:r&&(e.title=r);let o=async()=>{let l=await this.linkService.getAttachmentContent(s);l&&this.downloadManager?.openOrDownloadData(l,n.filename,a)};e.onclick=()=>(o(),!1),m(this,_s,ma).call(this)},aw=function(e,s,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(s),!1),n&&(e.title=n),m(this,_s,ma).call(this)};Cb=class extends Ot{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");let t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(t),this.container}},qn=class extends Ot{render(){return this.container}_getKeyModifier(t){return lt.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,e,s,n,r){s.includes("mouse")?t.addEventListener(s,a=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):t.addEventListener(s,a=>{if(s==="blur"){if(!e.focused||!a.relatedTarget)return;e.focused=!1}else if(s==="focus"){if(e.focused)return;e.focused=!0}r&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(a)}})})}_setEventListeners(t,e,s,n){let{actions:r}=this.data;for(let[a,o]of s)(o==="Action"||r?.has(o))&&((o==="Focus"||o==="Blur")&&(e||(e={focused:!1})),this._setEventListener(t,e,a,o,n),o==="Focus"&&!r?.has("Blur")?this._setEventListener(t,e,"blur","Blur",null):o==="Blur"&&!r?.has("Focus")&&this._setEventListener(t,e,"focus","Focus",null))}_setTextStyle(t){let e=["left","center","right"],{fontColor:s}=this.data.defaultAppearanceData,n=this.data.defaultAppearanceData.fontSize||zx,r=t.style,a,o=2,l=c=>Math.round(10*c)/10;if(this.data.multiLine){let c=Math.abs(this.data.rect[3]-this.data.rect[1]-o),d=Math.round(c/(1.35*n))||1,u=c/d;a=Math.min(n,l(u/1.35))}else{let c=Math.abs(this.data.rect[3]-this.data.rect[1]-o);a=Math.min(n,l(c/1.35))}r.fontSize=`calc(${a}px * var(--total-scale-factor))`,r.color=D.makeHexColor(...s),this.data.textAlignment!==null&&!this.data.comb&&(r.textAlign=e[this.data.textAlignment])}_setRequired(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",e)}},_b=class extends qn{constructor(t){let e=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:e})}setPropertyOnSiblings(t,e,s,n){let r=this.annotationStorage;for(let a of this._getElementsByName(t.name,t.id))a.domElement&&(a.domElement[e]=s),r.setValue(a.id,{[n]:s})}render(){let t=this.annotationStorage,e=this.data.id;this.container.classList.add("textWidgetAnnotation");let s=null;if(this.renderForms){let n=t.getValue(e,{value:this.data.fieldValue}),r=n.value||"",a=t.getValue(e,{charLimit:this.data.maxLen}).charLimit;a&&r.length>a&&(r=r.slice(0,a));let o=n.formattedValue||this.data.textContent?.join(`
317
+ `)||null;o&&this.data.comb&&(o=o.replaceAll(/\s+/g,""));let l={userValue:r,formattedValue:o,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(s=document.createElement("textarea"),s.textContent=o??r,this.data.doNotScroll&&(s.style.overflowY="hidden")):(s=document.createElement("input"),s.type=this.data.password?"password":"text",s.setAttribute("value",o??r),this.data.doNotScroll&&(s.style.overflowX="hidden")),this.data.hasOwnCanvas&&(this.container.classList.add("hasOwnCanvas"),t.has(e)&&this.container.classList.add("sandboxModified")),tl.add(s),this.contentElement=s,s.setAttribute("data-element-id",e),s.disabled=this.data.readOnly,s.name=this.data.fieldName,s.tabIndex=0;let{datetimeFormat:c,datetimeType:d,timeStep:u}=this.data,p=!!d&&this.enableScripting;c&&(s.title=c),this._setRequired(s,this.data.required),a&&(s.maxLength=a),s.addEventListener("input",y=>{t.setValue(e,{value:y.target.value}),this.setPropertyOnSiblings(s,"value",y.target.value,"value"),l.formattedValue=null}),s.addEventListener("resetform",y=>{let v=this.data.defaultFieldValue??"";s.value=l.userValue=v,l.formattedValue=null});let b=y=>{let{formattedValue:v}=l;v!=null&&(y.target.value=v),y.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",v=>{if(l.focused)return;let{target:w}=v;if(p&&(w.type=d,u&&(w.step=u)),l.userValue){let A=l.userValue;if(p)if(d==="time"){let x=new Date(A),S=[x.getHours(),x.getMinutes(),x.getSeconds()];w.value=S.map(E=>E.toString().padStart(2,"0")).join(":")}else w.value=new Date(A-Hx).toISOString().split(d==="date"?"T":".",1)[0];else w.value=A}l.lastCommittedValue=w.value,l.commitKey=1,this.data.actions?.has("Focus")||(l.focused=!0)}),s.addEventListener("updatefromsandbox",v=>{this.container.classList.add("sandboxModified");let w={value(A){l.userValue=A.detail.value??"",p||t.setValue(e,{value:l.userValue.toString()}),A.target.value=l.userValue},formattedValue(A){let{formattedValue:x}=A.detail;l.formattedValue=x,x!=null&&A.target!==document.activeElement&&(A.target.value=x);let S={formattedValue:x};p&&(S.value=x),t.setValue(e,S)},selRange(A){A.target.setSelectionRange(...A.detail.selRange)},charLimit:A=>{let{charLimit:x}=A.detail,{target:S}=A;if(x===0){S.removeAttribute("maxLength");return}S.setAttribute("maxLength",x);let E=l.userValue;!E||E.length<=x||(E=E.slice(0,x),S.value=l.userValue=E,t.setValue(e,{value:E}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:E,willCommit:!0,commitKey:1,selStart:S.selectionStart,selEnd:S.selectionEnd}}))}};this._dispatchEventFromSandbox(w,v)}),s.addEventListener("keydown",v=>{l.commitKey=1;let w=-1;if(v.key==="Escape"?w=0:v.key==="Enter"&&!this.data.multiLine?w=2:v.key==="Tab"&&(l.commitKey=3),w===-1)return;let{value:A}=v.target;l.lastCommittedValue!==A&&(l.lastCommittedValue=A,l.userValue=A,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:A,willCommit:!0,commitKey:w,selStart:v.target.selectionStart,selEnd:v.target.selectionEnd}}))});let y=b;b=null,s.addEventListener("blur",v=>{if(!l.focused||!v.relatedTarget)return;this.data.actions?.has("Blur")||(l.focused=!1);let{target:w}=v,{value:A}=w;if(p){if(A&&d==="time"){let x=A.split(":").map(S=>parseInt(S,10));A=new Date(2e3,0,1,x[0],x[1],x[2]||0).valueOf(),w.step=""}else A.includes("T")||(A=`${A}T00:00`),A=new Date(A).valueOf();w.type="text"}l.userValue=A,l.lastCommittedValue!==A&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:A,willCommit:!0,commitKey:l.commitKey,selStart:v.target.selectionStart,selEnd:v.target.selectionEnd}}),y(v)}),this.data.actions?.has("Keystroke")&&s.addEventListener("beforeinput",v=>{l.lastCommittedValue=null;let{data:w,target:A}=v,{value:x,selectionStart:S,selectionEnd:E}=A,C=S,_=E;switch(v.inputType){case"deleteWordBackward":{let k=/\w/;for(;C>0&&!k.test(x[C-1]);)C--;for(;C>0&&k.test(x[C-1]);)C--;break}case"deleteWordForward":{let k=x.substring(S).match(/^\W*\w*/);k&&(_+=k[0].length);break}case"deleteContentBackward":S===E&&(C-=1);break;case"deleteContentForward":S===E&&(_+=1);break}v.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:x,change:w||"",willCommit:!1,selStart:C,selEnd:_}})}),this._setEventListeners(s,l,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],v=>v.target.value)}if(b&&s.addEventListener("blur",b),this.data.comb){let v=(this.data.rect[2]-this.data.rect[0])/a;s.classList.add("comb"),s.style.setProperty("--comb-width",`calc(${v}px * var(--total-scale-factor))`);let w=this.data.textAlignment;if(w===1||w===2){let A=()=>{let x=a-s.value.length;s.style.setProperty("--comb-offset",`${w===1?x>>1:x}`)};A();for(let x of["input","blur","resetform","updatefromsandbox"])s.addEventListener(x,A)}}}else s=document.createElement("div"),s.textContent=this.data.fieldValue,s.style.verticalAlign="middle",s.style.display="table-cell",this.data.hasOwnCanvas&&(s.hidden=!0);return this._setTextStyle(s),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}},Tb=class extends qn{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}},kb=class extends qn{constructor(t){super(t,{isRenderable:t.renderForms})}render(){let t=this.annotationStorage,e=this.data,s=e.id,n=t.getValue(s,{value:e.exportValue===e.fieldValue}).value;typeof n=="string"&&(n=n!=="Off",t.setValue(s,{value:n})),this.container.classList.add("buttonWidgetAnnotation","checkBox");let r=document.createElement("input");return tl.add(r),r.setAttribute("data-element-id",s),r.disabled=e.readOnly,this._setRequired(r,this.data.required),r.type="checkbox",r.name=e.fieldName,n&&r.setAttribute("checked",!0),r.setAttribute("exportValue",e.exportValue),r.tabIndex=0,r.addEventListener("change",a=>{let{name:o,checked:l}=a.target;for(let c of this._getElementsByName(o,s)){let d=l&&c.exportValue===e.exportValue;c.domElement&&(c.domElement.checked=d),t.setValue(c.id,{value:d})}t.setValue(s,{value:l})}),r.addEventListener("resetform",a=>{let o=e.defaultFieldValue||"Off";a.target.checked=o===e.exportValue}),this.enableScripting&&this.hasJSActions&&(r.addEventListener("updatefromsandbox",a=>{let o={value(l){l.target.checked=l.detail.value!=="Off",t.setValue(s,{value:l.target.checked})}};this._dispatchEventFromSandbox(o,a)}),this._setEventListeners(r,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}},Mb=class extends qn{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");let t=this.annotationStorage,e=this.data,s=e.id,n=t.getValue(s,{value:e.buttonValue!==null&&e.fieldValue===e.buttonValue}).value;if(typeof n=="string"&&(n=n!==e.buttonValue,t.setValue(s,{value:n})),n)for(let a of this._getElementsByName(e.fieldName,s))t.setValue(a.id,{value:!1});let r=document.createElement("input");if(tl.add(r),r.setAttribute("data-element-id",s),r.disabled=e.readOnly,this._setRequired(r,this.data.required),r.type="radio",r.name=e.fieldName,n&&r.setAttribute("checked",!0),r.tabIndex=0,r.addEventListener("change",a=>{let{name:o,checked:l}=a.target;for(let c of this._getElementsByName(o,s))t.setValue(c.id,{value:!1});t.setValue(s,{value:l})}),r.addEventListener("resetform",a=>{let o=e.defaultFieldValue;a.target.checked=o!=null&&o===e.buttonValue}),this.enableScripting&&this.hasJSActions){let a=e.buttonValue;r.addEventListener("updatefromsandbox",o=>{let l={value:c=>{let d=a===c.detail.value;for(let u of this._getElementsByName(c.target.name)){let p=d&&u.id===s;u.domElement&&(u.domElement.checked=p),t.setValue(u.id,{value:p})}}};this._dispatchEventFromSandbox(l,o)}),this._setEventListeners(r,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],o=>o.target.checked)}return this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}},Pb=class extends Qh{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){let t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");let e=t.lastChild;return this.enableScripting&&this.hasJSActions&&e&&(this._setDefaultPropertiesFromJS(e),e.addEventListener("updatefromsandbox",s=>{this._dispatchEventFromSandbox({},s)})),t}},Db=class extends qn{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");let t=this.annotationStorage,e=this.data.id,s=t.getValue(e,{value:this.data.fieldValue}),n=document.createElement("select");tl.add(n),n.setAttribute("data-element-id",e),n.disabled=this.data.readOnly,this._setRequired(n,this.data.required),n.name=this.data.fieldName,n.tabIndex=0;let r=this.data.combo&&this.data.options.length>0;this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0)),n.addEventListener("resetform",u=>{let p=this.data.defaultFieldValue;for(let b of n.options)b.selected=b.value===p});let a=(u,p)=>{let b=p.replaceAll(" ","\xA0");u.textContent=b,b!==p&&u.setAttribute("display-value",p)};for(let u of this.data.options){let p=document.createElement("option");a(p,u.displayValue),p.value=u.exportValue,s.value.includes(u.exportValue)&&(p.setAttribute("selected",!0),r=!1),n.append(p)}let o=null;if(r){let u=document.createElement("option");u.value=" ",u.setAttribute("hidden",!0),u.setAttribute("selected",!0),n.prepend(u),o=()=>{u.remove(),n.removeEventListener("input",o),o=null},n.addEventListener("input",o)}let l=u=>{let p=u?"value":"textContent",{options:b,multiple:y}=n;return y?Array.prototype.filter.call(b,v=>v.selected).map(v=>v[p]):b.selectedIndex===-1?null:b[b.selectedIndex][p]},c=l(!1),d=u=>{let p=u.target.options;return Array.prototype.map.call(p,b=>({displayValue:b.getAttribute("display-value")||b.textContent,exportValue:b.value}))};return this.enableScripting&&this.hasJSActions?(n.addEventListener("updatefromsandbox",u=>{let p={value(b){o?.();let y=b.detail.value,v=new Set(Array.isArray(y)?y:[y]);for(let w of n.options)w.selected=v.has(w.value);t.setValue(e,{value:l(!0)}),c=l(!1)},multipleSelection(b){n.multiple=!0},remove(b){let y=n.options,v=b.detail.remove;y[v].selected=!1,n.remove(v),y.length>0&&Array.prototype.findIndex.call(y,A=>A.selected)===-1&&(y[0].selected=!0),t.setValue(e,{value:l(!0),items:d(b)}),c=l(!1)},clear(b){for(;n.length!==0;)n.remove(0);t.setValue(e,{value:null,items:[]}),c=l(!1)},insert(b){let{index:y,displayValue:v,exportValue:w}=b.detail.insert,A=n.children[y],x=document.createElement("option");a(x,v),x.value=w,A?A.before(x):n.append(x),t.setValue(e,{value:l(!0),items:d(b)}),c=l(!1)},items(b){let{items:y}=b.detail;for(;n.length!==0;)n.remove(0);for(let v of y){let{displayValue:w,exportValue:A}=v,x=document.createElement("option");a(x,w),x.value=A,n.append(x)}n.options.length>0&&(n.options[0].selected=!0),t.setValue(e,{value:l(!0),items:d(b)}),c=l(!1)},indices(b){let y=new Set(b.detail.indices);for(let v of b.target.options)v.selected=y.has(v.index);t.setValue(e,{value:l(!0)}),c=l(!1)},editable(b){b.target.disabled=!b.detail.editable}};this._dispatchEventFromSandbox(p,u)}),n.addEventListener("input",u=>{let p=l(!0),b=l(!1);t.setValue(e,{value:p}),u.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:c,change:b,changeEx:p,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(n,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],u=>u.target.value)):n.addEventListener("input",function(u){t.setValue(e,{value:l(!0)})}),this.data.combo&&this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}},Jh=class extends Ot{constructor(e){let{data:s,elements:n,parent:r}=e,a=!!r._commentManager;super(e,{isRenderable:!a&&Ot._hasPopupData(s)});g(this,uu);if(this.elements=n,a&&Ot._hasPopupData(s)){let o=this.popup=m(this,uu,Ib).call(this);for(let l of n)l.popup=o}else this.popup=null}render(){let{container:e}=this;e.classList.add("popupAnnotation"),e.role="comment";let s=this.popup=m(this,uu,Ib).call(this),n=[];for(let r of this.elements)r.popup=s,r.container.ariaHasPopup="dialog",n.push(r.data.id),r.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(r=>`${gl}${r}`).join(",")),this.container}};uu=new WeakSet,Ib=function(){return new Lb({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})};Lb=class{constructor({container:t,color:e,elements:s,titleObj:n,modificationDate:r,contentsObj:a,richText:o,parent:l,rect:c,parentRect:d,open:u,commentManager:p=null}){g(this,et);g(this,gs,null);g(this,zr,m(this,et,cw).bind(this));g(this,Wp,m(this,et,Bb).bind(this));g(this,Xp,m(this,et,Bf).bind(this));g(this,yc,m(this,et,Ff).bind(this));g(this,vc,null);g(this,Wt,null);g(this,Ui,null);g(this,Hr,null);g(this,To,null);g(this,wc,null);g(this,Ac,null);g(this,$i,!1);g(this,ms,null);g(this,Dn,null);g(this,In,null);g(this,Xt,null);g(this,Ln,null);g(this,Ur,null);g(this,fu,null);g(this,On,null);g(this,xc,null);g(this,ko,null);g(this,$r,!1);g(this,me,null);g(this,Gr,null);f(this,Wt,t),f(this,xc,n),f(this,Ui,a),f(this,On,o),f(this,wc,l),f(this,vc,e),f(this,fu,c),f(this,Ac,d),f(this,To,s),f(this,gs,p),f(this,me,s[0]),f(this,Hr,Ko.toDateObject(r)),this.trigger=s.flatMap(b=>b.getElementsToTriggerPopup()),p||(m(this,et,Rf).call(this),i(this,Wt).hidden=!0,u&&m(this,et,Ff).call(this))}renderCommentButton(){if(i(this,Xt)){i(this,Xt).parentNode||i(this,me).container.after(i(this,Xt));return}if(i(this,Ln)||m(this,et,Ob).call(this),!i(this,Ln))return;let{signal:t}=f(this,Dn,new AbortController),e=i(this,me).hasOwnCommentButton,s=()=>{i(this,gs).toggleCommentPopup(this,!0,void 0,!e)},n=()=>{i(this,gs).toggleCommentPopup(this,!1,!0,!e)},r=()=>{i(this,gs).toggleCommentPopup(this,!1,!1)};if(e){f(this,Xt,i(this,me).container);for(let a of this.trigger)a.ariaHasPopup="dialog",a.ariaControls="commentPopup",a.addEventListener("keydown",i(this,zr),{signal:t}),a.addEventListener("click",s,{signal:t}),a.addEventListener("pointerenter",n,{signal:t}),a.addEventListener("pointerleave",r,{signal:t}),a.classList.add("popupTriggerArea")}else{let a=f(this,Xt,document.createElement("button"));a.className="annotationCommentButton";let o=i(this,me).container;a.style.zIndex=parseInt(o.style.zIndex,10)+1,a.tabIndex=0,a.ariaHasPopup="dialog",a.ariaControls="commentPopup",a.setAttribute("data-l10n-id","pdfjs-show-comment-button"),m(this,et,Nb).call(this),m(this,et,Rb).call(this),a.addEventListener("keydown",i(this,zr),{signal:t}),a.addEventListener("click",s,{signal:t}),a.addEventListener("pointerenter",n,{signal:t}),a.addEventListener("pointerleave",r,{signal:t}),o.after(a)}}get commentButtonColor(){let{color:t,opacity:e}=i(this,me).commentData;return t?i(this,wc)._commentManager.makeCommentColor(t,e):null}focusCommentButton(){setTimeout(()=>{i(this,Xt)?.focus()},0)}getData(){let{richText:t,color:e,opacity:s,creationDate:n,modificationDate:r}=i(this,me).commentData;return{contentsObj:{str:this.comment},richText:t,color:e,opacity:s,creationDate:n,modificationDate:r}}get elementBeforePopup(){return i(this,Xt)}get comment(){return i(this,Gr)||f(this,Gr,i(this,me).commentText),i(this,Gr)}set comment(t){t!==this.comment&&(i(this,me).commentText=f(this,Gr,t))}focus(){i(this,me).container?.focus()}get parentBoundingClientRect(){return i(this,me).layer.getBoundingClientRect()}setCommentButtonStates({selected:t,hasPopup:e}){i(this,Xt)&&(i(this,Xt).classList.toggle("selected",t),i(this,Xt).ariaExpanded=e)}setSelectedCommentButton(t){i(this,Xt).classList.toggle("selected",t)}get commentPopupPosition(){if(i(this,Ur))return i(this,Ur);let{x:t,y:e,height:s}=i(this,Xt).getBoundingClientRect(),{x:n,y:r,width:a,height:o}=i(this,me).layer.getBoundingClientRect();return[(t-n)/a,(e+s-r)/o]}set commentPopupPosition(t){f(this,Ur,t)}hasDefaultPopupPosition(){return i(this,Ur)===null}get commentButtonPosition(){return i(this,Ln)}get commentButtonWidth(){return i(this,Xt).getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(t){let[e,s]=i(this,Ur)||this.commentButtonPosition.map(c=>c/100),n=this.parentBoundingClientRect,{x:r,y:a,width:o,height:l}=n;i(this,gs).showDialog(null,this,r+e*o,a+s*l,{...t,parentDimensions:n})}render(){if(i(this,ms))return;let t=f(this,ms,document.createElement("div"));if(t.className="popup",i(this,vc)){let s=t.style.outlineColor=D.makeHexColor(...i(this,vc));t.style.backgroundColor=`color-mix(in srgb, ${s} 30%, white)`}let e=document.createElement("span");if(e.className="header",i(this,xc)?.str){let s=document.createElement("span");s.className="title",e.append(s),{dir:s.dir,str:s.textContent}=i(this,xc)}if(t.append(e),i(this,Hr)){let s=document.createElement("time");s.className="popupDate",s.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),s.setAttribute("data-l10n-args",JSON.stringify({dateObj:i(this,Hr).valueOf()})),s.dateTime=i(this,Hr).toISOString(),e.append(s)}Iy({html:i(this,et,Nf)||i(this,Ui).str,dir:i(this,Ui)?.dir,className:"popupContent"},t),i(this,Wt).append(t)}updateEdited({rect:t,popup:e,deleted:s}){if(i(this,gs)){s?(this.remove(),f(this,Gr,null)):e&&(e.deleted?this.remove():(m(this,et,Nb).call(this),f(this,Gr,e.text))),t&&(f(this,Ln,null),m(this,et,Ob).call(this),m(this,et,Rb).call(this));return}if(s||e?.deleted){this.remove();return}m(this,et,Rf).call(this),i(this,ko)||f(this,ko,{contentsObj:i(this,Ui),richText:i(this,On)}),t&&f(this,In,null),e&&e.text&&(f(this,On,m(this,et,lw).call(this,e.text)),f(this,Hr,Ko.toDateObject(e.date)),f(this,Ui,null)),i(this,ms)?.remove(),f(this,ms,null)}resetEdited(){i(this,ko)&&({contentsObj:Ft(this,Ui)._,richText:Ft(this,On)._}=i(this,ko),f(this,ko,null),i(this,ms)?.remove(),f(this,ms,null),f(this,In,null))}remove(){if(i(this,Dn)?.abort(),f(this,Dn,null),i(this,ms)?.remove(),f(this,ms,null),f(this,$r,!1),f(this,$i,!1),i(this,Xt)?.remove(),f(this,Xt,null),this.trigger)for(let t of this.trigger)t.classList.remove("popupTriggerArea")}forceHide(){f(this,$r,this.isVisible),i(this,$r)&&(i(this,Wt).hidden=!0)}maybeShow(){i(this,gs)||(m(this,et,Rf).call(this),i(this,$r)&&(i(this,ms)||m(this,et,Bf).call(this),f(this,$r,!1),i(this,Wt).hidden=!1))}get isVisible(){return!i(this,gs)&&i(this,Wt).hidden===!1}};gs=new WeakMap,zr=new WeakMap,Wp=new WeakMap,Xp=new WeakMap,yc=new WeakMap,vc=new WeakMap,Wt=new WeakMap,Ui=new WeakMap,Hr=new WeakMap,To=new WeakMap,wc=new WeakMap,Ac=new WeakMap,$i=new WeakMap,ms=new WeakMap,Dn=new WeakMap,In=new WeakMap,Xt=new WeakMap,Ln=new WeakMap,Ur=new WeakMap,fu=new WeakMap,On=new WeakMap,xc=new WeakMap,ko=new WeakMap,$r=new WeakMap,me=new WeakMap,Gr=new WeakMap,et=new WeakSet,Rf=function(){if(i(this,Dn))return;f(this,Dn,new AbortController);let{signal:t}=i(this,Dn);for(let e of this.trigger)e.addEventListener("click",i(this,yc),{signal:t}),e.addEventListener("pointerenter",i(this,Xp),{signal:t}),e.addEventListener("pointerleave",i(this,Wp),{signal:t}),e.classList.add("popupTriggerArea");for(let e of i(this,To))e.container?.addEventListener("keydown",i(this,zr),{signal:t})},Ob=function(){let t=i(this,To).find(e=>e.hasCommentButton);t&&f(this,Ln,t._normalizePoint(t.commentButtonPosition))},Rb=function(){if(i(this,me).extraPopupElement&&!i(this,me).editor)return;i(this,Xt)||this.renderCommentButton();let[t,e]=i(this,Ln),{style:s}=i(this,Xt);s.left=`calc(${t}%)`,s.top=`calc(${e}% - var(--comment-button-dim))`},Nb=function(){i(this,me).extraPopupElement||(i(this,Xt)||this.renderCommentButton(),i(this,Xt).style.backgroundColor=this.commentButtonColor||"")},Nf=function(){let t=i(this,On),e=i(this,Ui);return t?.str&&(!e?.str||e.str===t.str)&&i(this,On).html||null},Fb=function(){return i(this,et,Nf)?.attributes?.style?.fontSize||0},ow=function(){return i(this,et,Nf)?.attributes?.style?.color||null},lw=function(t){let e=[],s={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:e}]}},n={style:{color:i(this,et,ow),fontSize:i(this,et,Fb)?`calc(${i(this,et,Fb)}px * var(--total-scale-factor))`:""}};for(let r of t.split(`
318
+ `))e.push({name:"span",value:r,attributes:n});return s},cw=function(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&i(this,$i))&&m(this,et,Ff).call(this)},hw=function(){if(i(this,In)!==null)return;let{page:{view:t},viewport:{rawDims:{pageWidth:e,pageHeight:s,pageX:n,pageY:r}}}=i(this,wc),a=!!i(this,Ac),o=a?i(this,Ac):i(this,fu);for(let y of i(this,To))if(!o||D.intersect(y.data.rect,o)!==null){o=y.data.rect,a=!0;break}let l=D.normalizeRect([o[0],t[3]-o[1]+t[1],o[2],t[3]-o[3]+t[1]]),d=a?o[2]-o[0]+5:0,u=l[0]+d,p=l[1];f(this,In,[100*(u-n)/e,100*(p-r)/s]);let{style:b}=i(this,Wt);b.left=`${i(this,In)[0]}%`,b.top=`${i(this,In)[1]}%`},Ff=function(){if(i(this,gs)){i(this,gs).toggleCommentPopup(this,!1);return}f(this,$i,!i(this,$i)),i(this,$i)?(m(this,et,Bf).call(this),i(this,Wt).addEventListener("click",i(this,yc)),i(this,Wt).addEventListener("keydown",i(this,zr))):(m(this,et,Bb).call(this),i(this,Wt).removeEventListener("click",i(this,yc)),i(this,Wt).removeEventListener("keydown",i(this,zr)))},Bf=function(){i(this,ms)||this.render(),this.isVisible?i(this,$i)&&i(this,Wt).classList.add("focused"):(m(this,et,hw).call(this),i(this,Wt).hidden=!1,i(this,Wt).style.zIndex=parseInt(i(this,Wt).style.zIndex,10)+1e3)},Bb=function(){i(this,Wt).classList.remove("focused"),!(i(this,$i)||!this.isVisible)&&(i(this,Wt).hidden=!0,i(this,Wt).style.zIndex=parseInt(i(this,Wt).style.zIndex,10)-1e3)};mp=class extends Ot{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=K.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){let t=this.contentElement=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(let e of this.textContent){let s=document.createElement("span");s.textContent=e,t.append(s)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this._editOnDoubleClick(),this.container}},zb=class extends Ot{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0});g(this,pu,null)}render(){this.container.classList.add("lineAnnotation");let{data:e,width:s,height:n}=this,r=this.svgFactory.create(s,n,!0),a=f(this,pu,this.svgFactory.createElement("svg:line"));return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),r.append(a),this.container.append(r),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return i(this,pu)}addHighlightArea(){this.container.classList.add("highlightArea")}};pu=new WeakMap;Hb=class extends Ot{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0});g(this,gu,null)}render(){this.container.classList.add("squareAnnotation");let{data:e,width:s,height:n}=this,r=this.svgFactory.create(s,n,!0),a=e.borderStyle.width,o=f(this,gu,this.svgFactory.createElement("svg:rect"));return o.setAttribute("x",a/2),o.setAttribute("y",a/2),o.setAttribute("width",s-a),o.setAttribute("height",n-a),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return i(this,gu)}addHighlightArea(){this.container.classList.add("highlightArea")}};gu=new WeakMap;Ub=class extends Ot{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0});g(this,mu,null)}render(){this.container.classList.add("circleAnnotation");let{data:e,width:s,height:n}=this,r=this.svgFactory.create(s,n,!0),a=e.borderStyle.width,o=f(this,mu,this.svgFactory.createElement("svg:ellipse"));return o.setAttribute("cx",s/2),o.setAttribute("cy",n/2),o.setAttribute("rx",s/2-a/2),o.setAttribute("ry",n/2-a/2),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return i(this,mu)}addHighlightArea(){this.container.classList.add("highlightArea")}};mu=new WeakMap;bp=class extends Ot{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0});g(this,bu,null);this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);let{data:{rect:e,vertices:s,borderStyle:n,popupRef:r},width:a,height:o}=this;if(!s)return this.container;let l=this.svgFactory.create(a,o,!0),c=[];for(let u=0,p=s.length;u<p;u+=2){let b=s[u]-e[0],y=e[3]-s[u+1];c.push(`${b},${y}`)}c=c.join(" ");let d=f(this,bu,this.svgFactory.createElement(this.svgElementName));return d.setAttribute("points",c),d.setAttribute("stroke-width",n.width||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),l.append(d),this.container.append(l),!r&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return i(this,bu)}addHighlightArea(){this.container.classList.add("highlightArea")}};bu=new WeakMap;$b=class extends bp{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}},Gb=class extends Ot{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}},Zh=class extends Ot{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0});g(this,vu);g(this,yu,null);g(this,Mo,[]);this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?K.HIGHLIGHT:K.INK}render(){this.container.classList.add(this.containerClassName);let{data:{rect:e,rotation:s,inkLists:n,borderStyle:r,popupRef:a}}=this,{transform:o,width:l,height:c}=m(this,vu,jb).call(this,s,e),d=this.svgFactory.create(l,c,!0),u=f(this,yu,this.svgFactory.createElement("svg:g"));d.append(u),u.setAttribute("stroke-width",r.width||1),u.setAttribute("stroke-linecap","round"),u.setAttribute("stroke-linejoin","round"),u.setAttribute("stroke-miterlimit",10),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),u.setAttribute("transform",o);for(let p of n){let b=this.svgFactory.createElement(this.svgElementName);i(this,Mo).push(b),b.setAttribute("points",p.join(",")),u.append(b)}return!a&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(d),this._editOnDoubleClick(),this.container}updateEdited(e){super.updateEdited(e);let{thickness:s,points:n,rect:r}=e,a=i(this,yu);if(s>=0&&a.setAttribute("stroke-width",s||1),n)for(let o=0,l=i(this,Mo).length;o<l;o++)i(this,Mo)[o].setAttribute("points",n[o].join(","));if(r){let{transform:o,width:l,height:c}=m(this,vu,jb).call(this,this.data.rotation,r);a.parentElement.setAttribute("viewBox",`0 0 ${l} ${c}`),a.setAttribute("transform",o)}}getElementsToTriggerPopup(){return i(this,Mo)}addHighlightArea(){this.container.classList.add("highlightArea")}};yu=new WeakMap,Mo=new WeakMap,vu=new WeakSet,jb=function(e,s){switch(e){case 90:return{transform:`rotate(90) translate(${-s[0]},${s[1]}) scale(1,-1)`,width:s[3]-s[1],height:s[2]-s[0]};case 180:return{transform:`rotate(180) translate(${-s[2]},${s[1]}) scale(1,-1)`,width:s[2]-s[0],height:s[3]-s[1]};case 270:return{transform:`rotate(270) translate(${-s[2]},${s[3]}) scale(1,-1)`,width:s[3]-s[1],height:s[2]-s[0]};default:return{transform:`translate(${-s[0]},${s[3]}) scale(1,-1)`,width:s[2]-s[0],height:s[3]-s[1]}}};yp=class extends Ot{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=K.HIGHLIGHT}render(){let{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),t){let s=document.createElement("mark");s.classList.add("overlaidText"),s.textContent=t,this.container.append(s)}return this.container}},Vb=class extends Ot{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("underlineAnnotation"),t){let s=document.createElement("u");s.classList.add("overlaidText"),s.textContent=t,this.container.append(s)}return this.container}},Wb=class extends Ot{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("squigglyAnnotation"),t){let s=document.createElement("u");s.classList.add("overlaidText"),s.textContent=t,this.container.append(s)}return this.container}},Xb=class extends Ot{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){let{data:{overlaidText:t,popupRef:e}}=this;if(!e&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("strikeoutAnnotation"),t){let s=document.createElement("s");s.classList.add("overlaidText"),s.textContent=t,this.container.append(s)}return this.container}},vp=class extends Ot{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=K.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this._editOnDoubleClick(),this.container}},Yb=class extends Ot{constructor(e){super(e,{isRenderable:!0});g(this,Au);g(this,wu,null);let{fileId:s,file:n}=this.data;this.filename=n.filename,this.content=n.content,this.fileId=s,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,attachmentId:this.fileId,...n})}render(){this.container.classList.add("fileAttachmentAnnotation");let{container:e,data:s}=this,n;s.hasAppearance||s.fillAlpha===0?n=document.createElement("div"):(n=document.createElement("img"),n.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(s.name)?"paperclip":"pushpin"}.svg`,s.fillAlpha&&s.fillAlpha<1&&(n.style=`filter: opacity(${Math.round(s.fillAlpha*100)}%);`)),n.addEventListener("dblclick",m(this,Au,qb).bind(this)),f(this,wu,n);let{isMac:r}=lt.platform;return e.addEventListener("keydown",a=>{a.key==="Enter"&&(r?a.metaKey:a.ctrlKey)&&m(this,Au,qb).call(this)}),!s.popupRef&&this.hasPopupData?(this.hasOwnCommentButton=!0,this._createPopup()):n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return i(this,wu)}addHighlightArea(){this.container.classList.add("highlightArea")}};wu=new WeakMap,Au=new WeakSet,qb=async function(){let{fileId:e,filename:s,content:n}=this,r=await this.linkService.getAttachmentContent(e)||n;r&&this.downloadManager?.openOrDownloadData(r,s)};wp=class extends Ot{constructor(e){super(e,{isRenderable:!!e.data.richMedia});g(this,sl);g(this,Sc,new AbortController);g(this,Po,null);g(this,Rn,null)}render(){this.container.classList.add("mediaAnnotation");let{filename:e}=this.data.richMedia,s=document.createElement("button");return s.className="mediaPlayButton",s.type="button",s.title=s.ariaLabel=e,s.addEventListener("click",()=>m(this,sl,dw).call(this,s),{signal:i(this,Sc).signal}),this.container.append(s),this.container}destroy(){i(this,Sc).abort(),i(this,Rn)&&(i(this,Rn).pause(),i(this,Rn).removeAttribute("src"),i(this,Rn).load(),f(this,Rn,null)),m(this,sl,Kb).call(this)}};Sc=new WeakMap,Po=new WeakMap,Rn=new WeakMap,sl=new WeakSet,dw=async function(e){let{fileId:s,filename:n,contentType:r}=this.data.richMedia;e.disabled=!0;let a;try{a=await this.linkService.getAttachmentContent(s)}catch{return}finally{e.disabled=!1}if(!a||!e.isConnected)return;let{signal:o}=i(this,Sc),l=URL.createObjectURL(new Blob([a],{type:r}));f(this,Po,l);let c=r.startsWith("audio/"),d=document.createElement(c?"audio":"video");if(f(this,Rn,d),d.className="mediaContent",this._setBackgroundColor(d),d.src=l,d.title=n,d.controls=!0,d.autoplay=!0,d.tabIndex=0,c){let u=!1,p=!1,b=()=>{d.controls=u||p};this.container.addEventListener("pointerenter",()=>{u=!0,b()},{signal:o}),this.container.addEventListener("pointerleave",()=>{u=!1,b()},{signal:o}),this.container.addEventListener("focusin",()=>{p=!0,b()},{signal:o}),this.container.addEventListener("focusout",()=>{p=!1,b()},{signal:o})}d.addEventListener("emptied",()=>m(this,sl,Kb).call(this,l),{once:!0,signal:o}),e.replaceWith(d),d.play().catch(()=>{})},Kb=function(e=i(this,Po)){e&&e===i(this,Po)&&(URL.revokeObjectURL(e),f(this,Po,null))};By=class By{constructor({div:t,accessibilityManager:e,annotationCanvasMap:s,annotationEditorUIManager:n,page:r,viewport:a,structTreeLayer:o,commentManager:l,linkService:c,annotationStorage:d}){g(this,Ji);g(this,jr,null);g(this,Do,null);g(this,Ec,null);g(this,Nn,new Map);g(this,Cc,null);g(this,Io,null);g(this,Ne,[]);g(this,xu,!1);T(this,"zIndex",0);this.div=t,f(this,jr,e),f(this,Do,s),f(this,Cc,o||null),f(this,Io,c||null),f(this,Ec,d||new Wh),this.page=r,this.viewport=a,this._annotationEditorUIManager=n,this._commentManager=l||null}hasEditableAnnotations(){return i(this,Nn).size>0}async render(t){let{annotations:e,optionalContentConfig:s}=t,n=this.div;aa(n,this.viewport);let r=new Map,a=[],o={data:null,layer:n,linkService:i(this,Io),downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new Zo,annotationStorage:i(this,Ec),enableComment:t.enableComment===!0,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(let l of e){if(l.noHTML)continue;let c=l.annotationType===Pt.POPUP;if(c){let p=r.get(l.id);if(!p)continue;if(!this._commentManager){a.push(l);continue}o.elements=p}else if(l.rect[2]===l.rect[0]||l.rect[3]===l.rect[1])continue;o.data=l;let d=Bh.create(o);if(!d.isRenderable)continue;c||(i(this,Ne).push(d),l.popupRef&&r.getOrInsertComputed(l.popupRef,nl).push(d));let u=d.render();l.hidden&&(u.style.visibility="hidden"),d.updateOC(s),d._isEditable&&(i(this,Nn).set(d.data.id,d),this._annotationEditorUIManager?.renderAnnotationElement(d))}await m(this,Ji,zf).call(this);for(let l of a){let c=o.elements=r.get(l.id);o.data=l;let d=Bh.create(o);if(!d.isRenderable)continue;let u=d.render();d.contentElement.id=`${gl}${l.id}`,l.hidden&&(u.style.visibility="hidden"),c.at(-1).container.after(u)}m(this,Ji,Hf).call(this)}async addLinkAnnotations(t){let e={data:null,layer:this.div,linkService:i(this,Io),svgFactory:new Zo,parent:this};for(let s of t){s.borderStyle||(s.borderStyle=By._defaultBorderStyle),e.data=s;let n=Bh.create(e);n.isRenderable&&(n.render(),n.contentElement.id=`${gl}${s.id}`,i(this,Ne).push(n))}await m(this,Ji,zf).call(this)}update({viewport:t,optionalContentConfig:e}){let s=this.div;this.viewport=t,aa(s,{rotation:t.rotation});for(let n of i(this,Ne))n.updateOC(e);m(this,Ji,Hf).call(this),s.hidden=!1}destroy(){for(let t of i(this,Ne))t.destroy?.(),i(this,jr)?.removePointerInTextLayer(t.contentElement);i(this,Ne).length=0,i(this,Nn).clear(),this.div.replaceChildren()}refreshCanvases(){m(this,Ji,Hf).call(this)}getEditableAnnotations(){return i(this,Nn).values()}getEditableAnnotation(t){return i(this,Nn).get(t)}addFakeAnnotation(t){let{div:e}=this,{id:s,rotation:n}=t,r=new Eb({data:{id:s,rect:t.getPDFRect(),rotation:n},editor:t,layer:e,parent:this,enableComment:!!this._commentManager,linkService:i(this,Io),annotationStorage:i(this,Ec)});return r.render(),r.contentElement.id=`${gl}${s}`,r.createOrUpdatePopup(),i(this,Ne).push(r),r}removeAnnotation(t){let e=i(this,Ne).findIndex(n=>n.data.id===t);if(e<0)return;let[s]=i(this,Ne).splice(e,1);i(this,jr)?.removePointerInTextLayer(s.contentElement)}updateFakeAnnotations(t){if(t.length!==0){for(let e of t)e.updateFakeAnnotationElement(this);m(this,Ji,zf).call(this)}}togglePointerEvents(t=!1){this.div.classList.toggle("disabled",!t)}static get _defaultBorderStyle(){return G(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:hl.SOLID,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}};jr=new WeakMap,Do=new WeakMap,Ec=new WeakMap,Nn=new WeakMap,Cc=new WeakMap,Io=new WeakMap,Ne=new WeakMap,xu=new WeakMap,Ji=new WeakSet,zf=async function(){if(i(this,Ne).length===0)return;this.div.replaceChildren();let t=[];if(!i(this,xu)){f(this,xu,!0);for(let{contentElement:s,data:{hidden:n,id:r,oc:a}}of i(this,Ne)){let o=s.id=`${gl}${r}`,l=s.localName==="a"&&!n&&!a;t.push(i(this,Cc)?.getAriaAttributes(o,{enableLinkOwnership:l}).then(c=>{if(c)for(let[d,u]of c)s.setAttribute(d,u)}))}}i(this,Ne).sort(({data:{rect:[s,n,r,a]}},{data:{rect:[o,l,c,d]}})=>{if(s===r&&n===a)return 1;if(o===c&&l===d)return-1;let u=a,p=n,b=(n+a)/2,y=d,v=l,w=(l+d)/2;if(b>=y&&w<=p)return-1;if(w>=u&&b<=v)return 1;let A=(s+r)/2,x=(o+c)/2;return A-x});let e=document.createDocumentFragment();for(let s of i(this,Ne))e.append(s.container),this._commentManager?(s.extraPopupElement?.popup||s.popup)?.renderCommentButton():s.extraPopupElement&&e.append(s.extraPopupElement.render());if(this.div.append(e),await Promise.all(t),i(this,jr)){let s=await i(this,Cc)?.getAnnotationIds();for(let{contentElement:n}of i(this,Ne))s?.has(n.id)||i(this,jr).addPointerInTextLayer(n,!1)}},Hf=function(){if(!i(this,Do))return;let t=this.div;for(let[e,s]of i(this,Do)){let n=t.querySelector(`[data-annotation-id="${e}"]`);if(!n)continue;if(Array.isArray(s))for(let c of s)c.className="annotationContent",c.ariaHidden=!0;else s.className="annotationContent",s.ariaHidden=!0;let r=[];for(let c of n.children)c.nodeName==="CANVAS"&&r.push(c);for(let c of r)c.remove();let a=Array.isArray(s)?s[0]:s,{firstChild:o}=n;if(o?o.classList.contains("annotationContent")?o.after(a):o.before(a):n.append(a),Array.isArray(s)){let c=a;for(let d=1,u=s.length;d<u;d++)c.after(s[d]),c=s[d]}i(this,Do).delete(e);let l=i(this,Nn).get(e);l&&(l._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(e,n.id,s),l._hasNoCanvas=!1):l.canvas=s)}};Ap=By,hf=/\r\n?|\n/g,Tt=class Tt extends wt{constructor(e){super({...e,name:"freeTextEditor"});g(this,ie);g(this,bs,"");g(this,Su,`${this.id}-editor`);g(this,Lo,null);g(this,ys);T(this,"_colorPicker",null);this.color=e.color||Tt._defaultColor||wt._defaultLineColor,f(this,ys,e.fontSize||Tt._defaultFontSize),this.annotationElementId||this._uiManager.a11yAlert(wt._l10nAlert.freetext),this.canAddComment=!1}static get _keyboardManager(){let e=Tt.prototype,s=a=>a.isEmpty(),n=oa.TRANSLATE_SMALL,r=oa.TRANSLATE_BIG;return G(this,"_keyboardManager",new Jo([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter"],e.commitOrRemove],[["Escape"],e.commitOrRemove],[["ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:s}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:s}],[["ArrowRight"],e._translateEmpty,{args:[n,0],checker:s}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[r,0],checker:s}],[["ArrowUp"],e._translateEmpty,{args:[0,-n],checker:s}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:s}],[["ArrowDown"],e._translateEmpty,{args:[0,n],checker:s}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,r],checker:s}]]))}static initialize(e,s){wt.initialize(e,s);let n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,s){switch(e){case it.FREETEXT_SIZE:Tt._defaultFontSize=s;break;case it.FREETEXT_COLOR:Tt._defaultColor=s;break}}updateParams(e,s){switch(e){case it.FREETEXT_SIZE:m(this,ie,uw).call(this,s);break;case it.FREETEXT_COLOR:m(this,ie,fw).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[it.FREETEXT_SIZE,Tt._defaultFontSize],[it.FREETEXT_COLOR,Tt._defaultColor||wt._defaultLineColor]]}get propertiesToUpdate(){return[[it.FREETEXT_SIZE,i(this,ys)],[it.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new pp(this)),[["colorPicker",this._colorPicker]]}get colorType(){return it.FREETEXT_COLOR}onUpdatedColor(){this.editorDiv.style.color=this.color,this._colorPicker?.update(this.color),super.onUpdatedColor()}_translateEmpty(e,s){this._uiManager.translateSelectedEditors(e,s,!0)}getInitialTranslation(){let e=this.parentScale;return[-Tt._internalPadding*e,-(Tt._internalPadding+i(this,ys))*e]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),f(this,Lo,new AbortController);let e=this._uiManager.combinedSignal(i(this,Lo));return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){return super.disableEditMode()?(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",i(this,Su)),this._isDraggable=!0,i(this,Lo)?.abort(),f(this,Lo,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0):!1}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();let e=i(this,bs),s=f(this,bs,m(this,ie,pw).call(this).trimEnd());if(e===s)return;let n=r=>{if(f(this,bs,r),!r){this.remove();return}m(this,ie,Gf).call(this),this._uiManager.rebuild(this),m(this,ie,Uf).call(this)};this.addCommands({cmd:()=>{n(s)},undo:()=>{n(e)},mustExec:!1}),m(this,ie,Uf).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&e.key==="Enter"&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){Tt._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}get canChangeContent(){return!0}render(){if(this.div)return this.div;let e,s;(this._isCopy||this.annotationElementId)&&(e=this.x,s=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",i(this,Su)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;let{style:n}=this.editorDiv;if(n.fontSize=`calc(${i(this,ys)}px * var(--total-scale-factor))`,n.color=this.color,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){let[r,a]=this.parentDimensions;if(this.annotationElementId){let{position:o}=this._initialData,[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);let[d,u]=this.pageDimensions,[p,b]=this.pageTranslation,y,v;switch(this.rotation){case 0:y=e+(o[0]-p)/d,v=s+this.height-(o[1]-b)/u;break;case 90:y=e+(o[0]-p)/d,v=s-(o[1]-b)/u,[l,c]=[c,-l];break;case 180:y=e-this.width+(o[0]-p)/d,v=s-(o[1]-b)/u,[l,c]=[-l,-c];break;case 270:y=e+(o[0]-p-this.height*u)/d,v=s+(o[1]-b-this.width*d)/u,[l,c]=[-c,l];break}this.setAt(y*r,v*a,l,c)}else this._moveAfterPaste(e,s);m(this,ie,Gf).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(e){var y,v,w;let s=e.clipboardData||window.clipboardData,{types:n}=s;if(n.length===1&&n[0]==="text/plain")return;e.preventDefault();let r=m(y=Tt,Xn,Jb).call(y,s.getData("text")||"").replaceAll(hf,`
319
+ `);if(!r)return;let a=window.getSelection();if(!a.rangeCount)return;this.editorDiv.normalize(),a.deleteFromDocument();let o=a.getRangeAt(0);if(!r.includes(`
320
+ `)){o.insertNode(document.createTextNode(r)),this.editorDiv.normalize(),a.collapseToStart();return}let{startContainer:l,startOffset:c}=o,d=[],u=[];if(l.nodeType===Node.TEXT_NODE){let A=l.parentElement;if(u.push(l.nodeValue.slice(c).replaceAll(hf,"")),A!==this.editorDiv){let x=d;for(let S of this.editorDiv.childNodes){if(S===A){x=u;continue}x.push(m(v=Tt,Xn,$f).call(v,S))}}d.push(l.nodeValue.slice(0,c).replaceAll(hf,""))}else if(l===this.editorDiv){let A=d,x=0;for(let S of this.editorDiv.childNodes)x++===c&&(A=u),A.push(m(w=Tt,Xn,$f).call(w,S))}f(this,bs,`${d.join(`
321
+ `)}${r}${u.join(`
322
+ `)}`),m(this,ie,Gf).call(this);let p=new Range,b=Math.sumPrecise(d.map(A=>A.length));for(let{firstChild:A}of this.editorDiv.childNodes)if(A.nodeType===Node.TEXT_NODE){let x=A.nodeValue.length;if(b<=x){p.setStart(A,b),p.setEnd(A,b);break}b-=x}a.removeAllRanges(),a.addRange(p)}get contentDiv(){return this.editorDiv}getPDFRect(){let e=Tt._internalPadding*this.parentScale;return this.getRect(e,e)}static async deserialize(e,s,n){var o;let r=null;if(e instanceof mp){let{data:{defaultAppearanceData:{fontSize:l,fontColor:c},rect:d,rotation:u,id:p,popupRef:b,richText:y,contentsObj:v,creationDate:w,modificationDate:A},textContent:x,textPosition:S,parent:{page:{pageNumber:E}}}=e;if(!x?.length)return null;r=e={annotationType:K.FREETEXT,color:Array.from(c),fontSize:l,value:x.join(`
323
+ `),position:S,pageIndex:E-1,rect:d.slice(0),rotation:u,annotationElementId:p,id:p,deleted:!1,popupRef:b,comment:v?.str||null,richText:y,creationDate:w,modificationDate:A}}let a=await super.deserialize(e,s,n);return f(a,ys,e.fontSize),a.color=D.makeHexColor(...e.color),f(a,bs,m(o=Tt,Xn,Jb).call(o,e.value)),a._initialData=r,e.comment&&a.setCommentData(e),a}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let s=wt._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),n=Object.assign(super.serialize(e),{color:s,fontSize:i(this,ys),value:m(this,ie,gw).call(this)});return this.addComment(n),e?(n.isCopy=!0,n):this.annotationElementId&&!m(this,ie,mw).call(this,n)?null:(n.id=this.annotationElementId,n)}renderAnnotationElement(e){let s=super.renderAnnotationElement(e);if(!s)return null;let{style:n}=s;n.fontSize=`calc(${i(this,ys)}px * var(--total-scale-factor))`,n.color=this.color,s.replaceChildren();for(let r of i(this,bs).split(`
324
+ `)){let a=document.createElement("div");a.append(r?document.createTextNode(r):document.createElement("br")),s.append(a)}return e.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:i(this,bs)}}),s}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}};bs=new WeakMap,Su=new WeakMap,Lo=new WeakMap,ys=new WeakMap,ie=new WeakSet,uw=function(e){let s=r=>{this.editorDiv.style.fontSize=`calc(${r}px * var(--total-scale-factor))`,this.translate(0,-(r-i(this,ys))*this.parentScale),f(this,ys,r),m(this,ie,Uf).call(this)},n=i(this,ys);this.addCommands({cmd:s.bind(this,e),undo:s.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:it.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},fw=function(e){let s=r=>{this.color=r,this.onUpdatedColor()},n=this.color;this.addCommands({cmd:s.bind(this,e),undo:s.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:it.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},pw=function(){var n;let e=[];this.editorDiv.normalize();let s=null;for(let r of this.editorDiv.childNodes)s?.nodeType===Node.TEXT_NODE&&r.nodeName==="BR"||(e.push(m(n=Tt,Xn,$f).call(n,r)),s=r);return e.join(`
325
+ `)},Uf=function(){let[e,s]=this.parentDimensions,n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{let{currentLayer:r,div:a}=this,o=a.style.display,l=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",r.div.append(this.div),n=a.getBoundingClientRect(),a.remove(),a.style.display=o,a.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=n.width/e,this.height=n.height/s):(this.width=n.height/e,this.height=n.width/s),this.fixAndSetPosition()},Xn=new WeakSet,$f=function(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(hf,"")},Gf=function(){if(this.editorDiv.replaceChildren(),!!i(this,bs))for(let e of i(this,bs).split(`
326
+ `)){let s=document.createElement("div");s.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(s)}},gw=function(){return i(this,bs).replaceAll("\xA0"," ")},Jb=function(e){return e.replaceAll(" ","\xA0")},mw=function(e){let{value:s,fontSize:n,color:r,pageIndex:a}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==s||e.fontSize!==n||e.color.some((o,l)=>o!==r[l])||e.pageIndex!==a},g(Tt,Xn),T(Tt,"_freeTextDefaultContent",""),T(Tt,"_internalPadding",0),T(Tt,"_defaultColor",null),T(Tt,"_defaultFontSize",10),T(Tt,"_type","freetext"),T(Tt,"_editorType",K.FREETEXT);Qb=Tt,td=class{constructor(){g(this,Oo,Object.create(null))}updateProperty(t,e){this[t]=e,this.updateSVGProperty(t,e)}updateProperties(t){if(t)for(let[e,s]of Object.entries(t))e.startsWith("_")||this.updateProperty(e,s)}updateSVGProperty(t,e){i(this,Oo)[t]=e}toSVGProperties(){let t=i(this,Oo);return f(this,Oo,Object.create(null)),{root:t}}reset(){f(this,Oo,Object.create(null))}updateAll(t=this){this.updateProperties(t)}clone(){rt("Not implemented")}};Oo=new WeakMap;J=class J extends wt{constructor(e){super(e);g(this,Y);g(this,_c,null);g(this,Tc);T(this,"_clipPathId",null);T(this,"_colorPicker",null);T(this,"_drawId",null);T(this,"_drawOutlines",null);T(this,"_focusDrawId",null);f(this,Tc,e.mustBeCommitted||!1),this._addOutlines(e)}onUpdatedColor(){this._colorPicker?.update(this.color),super.onUpdatedColor()}onUpdatedOpacity(){this._colorPicker?.updateOpacity?.(this.opacity)}_addOutlines(e){e.drawOutlines&&(m(this,Y,Zb).call(this,e),m(this,Y,kh).call(this))}static _mergeSVGProperties(e,s){let n=new Set(Object.keys(e));for(let[r,a]of Object.entries(s))n.has(r)?Object.assign(e[r],a):e[r]=a;return e}static getDefaultDrawingOptions(e){rt("Not implemented")}static get typesMap(){rt("Not implemented")}static get isDrawer(){return!0}static get _hasClipPath(){return!1}static get _hasDrawClass(){return!0}static get supportMultipleDrawings(){return!1}get _drawRotation(){return this.rotation}get _opacityName(){return this.constructor.typesMap.get(this.opacityType)}static updateDefaultParams(e,s){let n=this.typesMap.get(e);n&&this._defaultDrawingOptions.updateProperty(n,s),this._currentParent&&(i(J,Zt).updateProperty(n,s),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,s){let n=this.constructor.typesMap.get(e);n&&this._updateProperty(e,n,s)}static get defaultPropertiesToUpdate(){let e=[],s=this._defaultDrawingOptions;for(let[n,r]of this.typesMap)e.push([n,s[r]]);return e}get propertiesToUpdate(){let e=[],{_drawingOptions:s}=this;for(let[n,r]of this.constructor.typesMap)e.push([n,s[r]]);return e}_updateProperty(e,s,n){let r=this._drawingOptions,a=r[s],o=l=>{r.updateProperty(s,l);let c=this._drawOutlines.updateProperty(s,l);c&&m(this,Y,Mh).call(this,c),this.parent?.drawLayer.updateProperties(this._drawId,r.toSVGProperties()),e===this.colorType?this.onUpdatedColor():e===this.opacityType&&this.onUpdatedOpacity()};this.addCommands({cmd:o.bind(this,n),undo:o.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_updateColorAndOpacity(e,s,n=this.colorAndOpacityType){let r=this.constructor.typesMap.get(this.colorType),a=this._opacityName,o=this._drawingOptions,l=o[r],c=o[a],d=(u,p)=>{o.updateProperty(r,u),o.updateProperty(a,p),this._drawOutlines.updateProperty(r,u),this._drawOutlines.updateProperty(a,p),this.parent?.drawLayer.updateProperties(this._drawId,o.toSVGProperties()),this.onUpdatedColor(),this.onUpdatedOpacity()};this.addCommands({cmd:d.bind(this,e,s),undo:d.bind(this,l,c),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:n,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,J._mergeSVGProperties(this._drawOutlines.getPathResizingSVGProperties(m(this,Y,jf).call(this)),{bbox:m(this,Y,pl).call(this)}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,J._mergeSVGProperties(this._drawOutlines.getPathResizedSVGProperties(m(this,Y,jf).call(this)),{bbox:m(this,Y,pl).call(this)})),m(this,Y,sy).call(this)}_onTranslating(e,s){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:m(this,Y,pl).call(this)})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,J._mergeSVGProperties(this._drawOutlines.getPathTranslatedSVGProperties(m(this,Y,jf).call(this),this.parentDimensions),{bbox:m(this,Y,pl).call(this)}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}get _mustBeDisabledOnCommit(){return!0}commit(){super.commit(),this._mustBeDisabledOnCommit&&(this.disableEditMode(),this.disableEditing())}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,i(this,Tc)&&(f(this,Tc,!1),this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){this._uiManager.removeShouldRescale(this),m(this,Y,ry).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(m(this,Y,kh).call(this),m(this,Y,Mh).call(this,this._drawOutlines.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let s=!1;this.parent&&!e?(this._uiManager.removeShouldRescale(this),m(this,Y,ry).call(this)):e&&(this._uiManager.addShouldRescale(this),m(this,Y,kh).call(this,e),s=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),m(this,Y,iy).call(this),s&&this.select()}rotate(e=this.parentRotation){if(!this.parent||this._drawId===null)return;let s=(e-this._drawRotation+360)%360;this.parent.drawLayer.updateProperties(this._drawId,J._mergeSVGProperties({bbox:m(this,Y,pl).call(this,e)},this._drawOutlines.updateRotation(s))),m(this,Y,sy).call(this,s)}show(e=this._isVisible){super.show(e),m(this,Y,iy).call(this)}select(){super.select(),m(this,Y,Th).call(this,{hovered:!1,selected:!0})}unselect(){super.unselect(),m(this,Y,Th).call(this,{selected:!1})}pointerover(){this.isSelected||m(this,Y,Th).call(this,{hovered:!0})}pointerleave(){this.isSelected||m(this,Y,Th).call(this,{hovered:!1})}onScaleChanging(){if(!this.parent)return;let e=this._drawOutlines.updateParentDimensions(this.parentDimensions,this.parent.scale);e&&m(this,Y,Mh).call(this,e)}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let e,s;this._isCopy&&(e=this.x,s=this.y);let n=super.render();this.constructor._hasDrawClass&&n.classList.add("draw");let r=f(this,_c,document.createElement("div"));return n.append(r),r.setAttribute("aria-hidden","true"),r.className="internal",this._clipPathId&&(r.style.clipPath=this._clipPathId),Y0(this,r,["pointerover","pointerleave"]),this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(e,s),n}static createDrawerInstance(e){rt("Not implemented")}static _getDrawingTarget(e,{target:s}){return s}static _getPointerCoords({offsetX:e,offsetY:s,clientX:n,clientY:r},a=null){if(!a)return[e,s];let o=n-a.clientX,l=r-a.clientY;switch(this._currentParent.viewport.rotation){case 90:[o,l]=[l,-o];break;case 180:[o,l]=[-o,-l];break;case 270:[o,l]=[-l,o];break}return[a.offsetX+o,a.offsetY+l]}static _addDrawingListeners(e,s){}static _endDrawingSession(e=!1){return this._currentParent.endDrawingSession(e)}static startDrawing(e,s,n,r){let{pointerId:a,pointerType:o}=r;if(Ie.isInitializedAndDifferentPointerType(o))return;let l=this._getDrawingTarget(e,r),[c,d]=this._getPointerCoords(r),{viewport:{rotation:u}}=e,{x:p,y:b,width:y,height:v}=l.getBoundingClientRect(),w=f(J,Ro,new AbortController),A=e.combinedSignal(w);if(Ie.setPointer(o,a),window.addEventListener("pointerup",E=>{Ie.isSamePointerIdOrRemove(E.pointerId)&&this._endDraw(E)},{signal:A}),window.addEventListener("pointercancel",E=>{Ie.isSamePointerIdOrRemove(E.pointerId)&&this._endDrawingSession()},{signal:A}),window.addEventListener("pointerdown",E=>{Ie.isSamePointerType(E.pointerType)&&(Ie.initializeAndAddPointerId(E.pointerId),i(J,Zt).isCancellable()&&(i(J,Zt).removeLastElement(),i(J,Zt).isEmpty()?this._endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:A}),window.addEventListener("contextmenu",Js,{signal:A}),l.addEventListener("pointermove",this._drawMove.bind(this),{signal:A}),l.addEventListener("touchmove",E=>{Ie.isSameTimeStamp(E.timeStamp)&&se(E)},{signal:A}),this._addDrawingListeners(l,A),e.toggleDrawing(),s._editorUndoBar?.hide(),i(J,Zt)){e.drawLayer.updateProperties(this._currentDrawId,i(J,Zt).startNew(c,d,y,v,u));return}s.updateUIForDefaultProperties(this),f(J,Zt,this.createDrawerInstance({x:c,y:d,box:[p,b,y,v],rotation:u,parent:e,isLTR:n})),f(J,No,this.getDefaultDrawingOptions()),this._currentParent=e;let{id:x,clipPathId:S}=e.drawLayer.draw(this._mergeSVGProperties(i(J,No).toSVGProperties(),i(J,Zt).defaultSVGProperties),!0,this._hasClipPath);this._currentDrawId=x,f(J,kc,this._hasClipPath?S:null)}static _drawMove(e){if(Ie.isSameTimeStamp(e.timeStamp),!i(J,Zt)||!Ie.isSamePointerId(e.pointerId))return;if(Ie.isUsingMultiplePointers()){this._endDraw(e);return}let s,n=e.getCoalescedEvents?.();if(n?.length){let r=[];for(let a of n)r.push(...this._getPointerCoords(a,e));s=i(J,Zt).addPoints(r)}else s=i(J,Zt).add(...this._getPointerCoords(e));this._currentParent.drawLayer.updateProperties(this._currentDrawId,s),Ie.setTimeStamp(e.timeStamp),se(e)}static _cleanup(e){e&&(this._currentDrawId=-1,this._currentParent=null,f(J,Zt,null),f(J,No,null),f(J,kc,null),Ie.clearTimeStamp()),i(J,Ro)&&(i(J,Ro).abort(),f(J,Ro,null),Ie.clearPointerIds())}static _endDraw(e){let s=this._currentParent;if(s){if(s.toggleDrawing(!0),this._cleanup(!1),s.drawLayer.updateProperties(this._currentDrawId,e?.target===s.div?i(J,Zt).end(...this._getPointerCoords(e)):i(J,Zt).end()),this.supportMultipleDrawings){let n=i(J,Zt),r=this._currentDrawId,a=n.getLastElement();s.addCommands({cmd:()=>{s.drawLayer.updateProperties(r,n.setLastElement(a))},undo:()=>{s.drawLayer.updateProperties(r,n.removeLastElement())},mustExec:!1,type:it.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(e){let s=this._currentParent;if(!s)return null;if(s.toggleDrawing(!0),s.cleanUndoStack(it.DRAW_STEP),!i(J,Zt).isEmpty()){let{pageDimensions:[n,r],scale:a}=s,o=s.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,clipPathId:i(J,kc),drawOutlines:i(J,Zt).getOutlines(n*a,r*a,a,this._INNER_MARGIN),drawingOptions:i(J,No),mustBeCommitted:!e});return this._cleanup(!0),o}return s.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,s,n,r,a,o,l){rt("Not implemented")}static async deserialize(e,s,n){var u,p;let{rawDims:{pageWidth:r,pageHeight:a,pageX:o,pageY:l}}=s.viewport,c=this.deserializeDraw(o,l,r,a,this._INNER_MARGIN,e,n),d=await super.deserialize(e,s,n);return d.createDrawingOptions(e),m(u=d,Y,Zb).call(u,{drawOutlines:c}),m(p=d,Y,kh).call(p),d.onScaleChanging(),d.rotate(),d}serializeDraw(e){let[s,n]=this.pageTranslation,[r,a]=this.pageDimensions;return this._drawOutlines.serialize([s,n,r,a],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}};_c=new WeakMap,Tc=new WeakMap,Zt=new WeakMap,Ro=new WeakMap,No=new WeakMap,kc=new WeakMap,Y=new WeakSet,Zb=function({drawOutlines:e,drawId:s,drawingOptions:n,clipPathId:r}){this._drawOutlines=e,this._drawingOptions||(this._drawingOptions=n),this.annotationElementId||this._uiManager.a11yAlert(wt._l10nAlert[this.editorType]),s>=0?(this._drawId=s,this._clipPathId=r??null,this.parent.drawLayer.finalizeDraw(s,e.defaultProperties),m(this,Y,ey).call(this,this.parent)):this._drawId=m(this,Y,ty).call(this,e,this.parent),m(this,Y,Mh).call(this,e.box)},ty=function(e,s){let{id:n,clipPathId:r}=s.drawLayer.draw(J._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,this.constructor._hasClipPath);return this.constructor._hasClipPath&&(this._clipPathId=r),m(this,Y,ey).call(this,s),n},ey=function(e){let s=this._drawOutlines.getFocusSVGProperties(i(this,Y,ny));s&&(this._focusDrawId=e.drawLayer.drawOutline(s,this._drawOutlines.focusMustRemoveSelfIntersections))},sy=function(e=i(this,Y,ny)){this._focusDrawId!==null&&this.parent?.drawLayer.updateProperties(this._focusDrawId,this._drawOutlines.getFocusSVGProperties(e))},Th=function(e){this._focusDrawId!==null&&this.parent?.drawLayer.updateProperties(this._focusDrawId,{rootClass:e})},iy=function(){let{parent:e,_drawId:s,_focusDrawId:n,_isVisible:r}=this;if(!e||s===null)return;let a={hidden:!r};e.drawLayer.updateProperties(s,{rootClass:a}),n!==null&&e.drawLayer.updateProperties(n,{rootClass:a})},ny=function(){return(this.parentRotation-this._drawRotation+360)%360},ry=function(){if(this._drawId===null||!this.parent)return;let{drawLayer:e}=this.parent;e.remove(this._drawId),this._drawId=null,this._focusDrawId!==null&&(e.remove(this._focusDrawId),this._focusDrawId=null),this._drawingOptions.reset()},kh=function(e=this.parent){if(!(this._drawId!==null&&this.parent===e)){if(this._drawId!==null){let{drawLayer:s}=this.parent;s.updateParent(this._drawId,e.drawLayer),this._focusDrawId!==null&&s.updateParent(this._focusDrawId,e.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=m(this,Y,ty).call(this,this._drawOutlines,e),this._clipPathId&&i(this,_c)&&(i(this,_c).style.clipPath=this._clipPathId)}},bw=function([e,s,n,r]){let{parentDimensions:[a,o],_drawRotation:l}=this;switch(l){case 90:return[s,1-e,n*(o/a),r*(a/o)];case 180:return[1-e,1-s,n,r];case 270:return[1-s,e,n*(o/a),r*(a/o)];default:return[e,s,n,r]}},jf=function(){let{x:e,y:s,width:n,height:r,parentDimensions:[a,o],_drawRotation:l}=this;switch(l){case 90:return[1-s,e,n*(a/o),r*(o/a)];case 180:return[1-e,1-s,n,r];case 270:return[s,1-e,n*(a/o),r*(o/a)];default:return[e,s,n,r]}},Mh=function(e){[this.x,this.y,this.width,this.height]=m(this,Y,bw).call(this,e),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()},pl=function(e=this.parentRotation){let{x:s,y:n,width:r,height:a,_drawRotation:o,parentDimensions:[l,c]}=this;switch((o*4+e)/90){case 1:return[1-n-a,s,a,r];case 2:return[1-s-r,1-n-a,r,a];case 3:return[n,1-s-r,a,r];case 4:return[s,n-r*(l/c),a*(c/l),r*(l/c)];case 5:return[1-n,s,r*(l/c),a*(c/l)];case 6:return[1-s-a*(c/l),1-n,a*(c/l),r*(l/c)];case 7:return[n-r*(l/c),1-s-a*(c/l),r*(l/c),a*(c/l)];case 8:return[s-r,n-a,r,a];case 9:return[1-n,s-r,a,r];case 10:return[1-s,1-n,r,a];case 11:return[n-a,1-s,a,r];case 12:return[s-a*(c/l),n,a*(c/l),r*(l/c)];case 13:return[1-n-r*(l/c),s-a*(c/l),r*(l/c),a*(c/l)];case 14:return[1-s,1-n-r*(l/c),a*(c/l),r*(l/c)];case 15:return[n,1-s,r*(l/c),a*(c/l)];default:return[s,n,r,a]}},T(J,"_currentDrawId",-1),T(J,"_currentParent",null),g(J,Zt,null),g(J,Ro,null),g(J,No,null),g(J,kc,null),T(J,"_INNER_MARGIN",3);ed=J,N=class{constructor(){T(this,"focusOutline",null)}toSVGPath(){rt("Abstract method `toSVGPath` must be implemented.")}get box(){rt("Abstract getter `box` must be implemented.")}serialize(t,e){rt("Abstract method `serialize` must be implemented.")}get defaultSVGProperties(){rt("Abstract getter `defaultSVGProperties` must be implemented.")}get defaultProperties(){return this.defaultSVGProperties}getFocusSVGProperties(t){return null}get focusMustRemoveSelfIntersections(){return!1}updateProperty(t,e){return null}updateParentDimensions(t,e){return null}serializeQuadPoints(t,e){return null}updateRotation(t){return{}}getPathResizingSVGProperties(t){return{}}getPathResizedSVGProperties(t){return{}}getPathTranslatedSVGProperties(t,e){return{}}static _rotateBox([t,e,s,n],r){switch(r){case 90:return[1-e-n,t,n,s];case 180:return[1-t-s,1-e-n,s,n];case 270:return[e,1-t-s,n,s]}return[t,e,s,n]}static _rescale(t,e,s,n,r,a){a||(a=new Float32Array(t.length));for(let o=0,l=t.length;o<l;o+=2)a[o]=e+t[o]*n,a[o+1]=s+t[o+1]*r;return a}static _rescaleAndSwap(t,e,s,n,r,a){a||(a=new Float32Array(t.length));for(let o=0,l=t.length;o<l;o+=2)a[o]=e+t[o+1]*n,a[o+1]=s+t[o]*r;return a}static _translate(t,e,s,n){n||(n=new Float32Array(t.length));for(let r=0,a=t.length;r<a;r+=2)n[r]=e+t[r],n[r+1]=s+t[r+1];return n}static svgRound(t){return Math.round(t*1e4)}static _normalizePoint(t,e,s,n,r){switch(r){case 90:return[1-e/s,t/n];case 180:return[1-t/s,1-e/n];case 270:return[e/s,1-t/n];default:return[t/s,e/n]}}static createBezierPoints(t,e,s,n,r,a){return[(t+5*s)/6,(e+5*n)/6,(5*s+r)/6,(5*n+a)/6,(s+r)/2,(n+a)/2]}};T(N,"PRECISION",1e-4);ln=class ln{constructor(t,e,s,n,r,a,o=0){g(this,he);g(this,vs);g(this,Vs,[]);g(this,Mc);g(this,Pc);g(this,di,[]);g(this,st,new Float32Array(18));g(this,Fo);g(this,Bo);g(this,Eu);g(this,Cu);g(this,Dc);g(this,Ic);g(this,Gi,[]);f(this,vs,s),f(this,Ic,r*n),f(this,Pc,a),i(this,st).set([NaN,NaN,NaN,NaN,t,e],6),f(this,Mc,o),f(this,Cu,i(ln,_u)*n),f(this,Eu,i(ln,qp)*n),f(this,Dc,n),i(this,Gi).push(t,e)}isEmpty(){return isNaN(i(this,st)[8])}isCancellable(){return i(this,Gi).length<=10}removeLastElement(){return i(this,st).fill(NaN),i(this,di).length=i(this,Vs).length=i(this,Gi).length=0,{path:{d:""}}}add(t,e){f(this,Fo,t),f(this,Bo,e);let[s,n,r,a]=i(this,vs),[o,l,c,d]=i(this,st).subarray(8,12),u=t-c,p=e-d,b=Math.hypot(u,p);if(b<i(this,Eu))return!1;let y=b-i(this,Cu),v=y/b,w=v*u,A=v*p,x=o,S=l;o=c,l=d,c+=w,d+=A,i(this,Gi)?.push(t,e);let E=-A/y,C=w/y,_=E*i(this,Ic),k=C*i(this,Ic);return i(this,st).set(i(this,st).subarray(2,8),0),i(this,st).set([c+_,d+k],4),i(this,st).set(i(this,st).subarray(14,18),12),i(this,st).set([c-_,d-k],16),isNaN(i(this,st)[6])?(i(this,di).length===0&&(i(this,st).set([o+_,l+k],2),i(this,di).push(NaN,NaN,NaN,NaN,(o+_-s)/r,(l+k-n)/a),i(this,st).set([o-_,l-k],14),i(this,Vs).push(NaN,NaN,NaN,NaN,(o-_-s)/r,(l-k-n)/a)),i(this,st).set([x,S,o,l,c,d],6),!this.isEmpty()):(i(this,st).set([x,S,o,l,c,d],6),Math.abs(Math.atan2(S-l,x-o)-Math.atan2(A,w))<Math.PI/2?([o,l,c,d]=i(this,st).subarray(2,6),i(this,di).push(NaN,NaN,NaN,NaN,((o+c)/2-s)/r,((l+d)/2-n)/a),[o,l,x,S]=i(this,st).subarray(14,18),i(this,Vs).push(NaN,NaN,NaN,NaN,((x+o)/2-s)/r,((S+l)/2-n)/a),!0):([x,S,o,l,c,d]=i(this,st).subarray(0,6),i(this,di).push(((x+5*o)/6-s)/r,((S+5*l)/6-n)/a,((5*o+c)/6-s)/r,((5*l+d)/6-n)/a,((o+c)/2-s)/r,((l+d)/2-n)/a),[c,d,o,l,x,S]=i(this,st).subarray(12,18),i(this,Vs).push(((x+5*o)/6-s)/r,((S+5*l)/6-n)/a,((5*o+c)/6-s)/r,((5*l+d)/6-n)/a,((o+c)/2-s)/r,((l+d)/2-n)/a),!0))}toSVGPath(){if(this.isEmpty())return"";let t=i(this,di),e=i(this,Vs);if(isNaN(i(this,st)[6])&&!this.isEmpty())return m(this,he,yw).call(this);let s=[];s.push(`M${t[4]} ${t[5]}`);for(let n=6;n<t.length;n+=6)isNaN(t[n])?s.push(`L${t[n+4]} ${t[n+5]}`):s.push(`C${t[n]} ${t[n+1]} ${t[n+2]} ${t[n+3]} ${t[n+4]} ${t[n+5]}`);m(this,he,ww).call(this,s);for(let n=e.length-6;n>=6;n-=6)isNaN(e[n])?s.push(`L${e[n+4]} ${e[n+5]}`):s.push(`C${e[n]} ${e[n+1]} ${e[n+2]} ${e[n+3]} ${e[n+4]} ${e[n+5]}`);return m(this,he,vw).call(this,s),s.join(" ")}newFreeDrawOutline(t,e,s,n,r,a){return new Sp(t,e,s,n,r,a)}getOutlines(){let t=i(this,di),e=i(this,Vs),s=i(this,st),[n,r,a,o]=i(this,vs),l=new Float32Array((i(this,Gi)?.length??0)+2);for(let u=0,p=l.length-2;u<p;u+=2)l[u]=(i(this,Gi)[u]-n)/a,l[u+1]=(i(this,Gi)[u+1]-r)/o;if(l[l.length-2]=(i(this,Fo)-n)/a,l[l.length-1]=(i(this,Bo)-r)/o,isNaN(s[6])&&!this.isEmpty())return m(this,he,Aw).call(this,l);let c=new Float32Array(i(this,di).length+24+i(this,Vs).length),d=t.length;for(let u=0;u<d;u+=2){if(isNaN(t[u])){c[u]=c[u+1]=NaN;continue}c[u]=t[u],c[u+1]=t[u+1]}d=m(this,he,Sw).call(this,c,d);for(let u=e.length-6;u>=6;u-=6)for(let p=0;p<6;p+=2){if(isNaN(e[u+p])){c[d]=c[d+1]=NaN,d+=2;continue}c[d]=e[u+p],c[d+1]=e[u+p+1],d+=2}return m(this,he,xw).call(this,c,d),this.newFreeDrawOutline(c,l,i(this,vs),i(this,Dc),i(this,Mc),i(this,Pc))}};vs=new WeakMap,Vs=new WeakMap,Mc=new WeakMap,Pc=new WeakMap,di=new WeakMap,st=new WeakMap,Fo=new WeakMap,Bo=new WeakMap,Eu=new WeakMap,Cu=new WeakMap,Dc=new WeakMap,Ic=new WeakMap,Gi=new WeakMap,_u=new WeakMap,Yp=new WeakMap,qp=new WeakMap,he=new WeakSet,Ph=function(){let t=i(this,st).subarray(4,6),e=i(this,st).subarray(16,18),[s,n,r,a]=i(this,vs);return[(i(this,Fo)+(t[0]-e[0])/2-s)/r,(i(this,Bo)+(t[1]-e[1])/2-n)/a,(i(this,Fo)+(e[0]-t[0])/2-s)/r,(i(this,Bo)+(e[1]-t[1])/2-n)/a]},yw=function(){let[t,e,s,n]=i(this,vs),[r,a,o,l]=m(this,he,Ph).call(this);return`M${(i(this,st)[2]-t)/s} ${(i(this,st)[3]-e)/n} L${(i(this,st)[4]-t)/s} ${(i(this,st)[5]-e)/n} L${r} ${a} L${o} ${l} L${(i(this,st)[16]-t)/s} ${(i(this,st)[17]-e)/n} L${(i(this,st)[14]-t)/s} ${(i(this,st)[15]-e)/n} Z`},vw=function(t){let e=i(this,Vs);t.push(`L${e[4]} ${e[5]} Z`)},ww=function(t){let[e,s,n,r]=i(this,vs),a=i(this,st).subarray(4,6),o=i(this,st).subarray(16,18),[l,c,d,u]=m(this,he,Ph).call(this);t.push(`L${(a[0]-e)/n} ${(a[1]-s)/r} L${l} ${c} L${d} ${u} L${(o[0]-e)/n} ${(o[1]-s)/r}`)},Aw=function(t){let e=i(this,st),[s,n,r,a]=i(this,vs),[o,l,c,d]=m(this,he,Ph).call(this),u=new Float32Array(36);return u.set([NaN,NaN,NaN,NaN,(e[2]-s)/r,(e[3]-n)/a,NaN,NaN,NaN,NaN,(e[4]-s)/r,(e[5]-n)/a,NaN,NaN,NaN,NaN,o,l,NaN,NaN,NaN,NaN,c,d,NaN,NaN,NaN,NaN,(e[16]-s)/r,(e[17]-n)/a,NaN,NaN,NaN,NaN,(e[14]-s)/r,(e[15]-n)/a],0),this.newFreeDrawOutline(u,t,i(this,vs),i(this,Dc),i(this,Mc),i(this,Pc))},xw=function(t,e){let s=i(this,Vs);return t.set([NaN,NaN,NaN,NaN,s[4],s[5]],e),e+=6},Sw=function(t,e){let s=i(this,st).subarray(4,6),n=i(this,st).subarray(16,18),[r,a,o,l]=i(this,vs),[c,d,u,p]=m(this,he,Ph).call(this);return t.set([NaN,NaN,NaN,NaN,(s[0]-r)/o,(s[1]-a)/l,NaN,NaN,NaN,NaN,c,d,NaN,NaN,NaN,NaN,u,p,NaN,NaN,NaN,NaN,(n[0]-r)/o,(n[1]-a)/l],e),e+=24},g(ln,_u,8),g(ln,Yp,2),g(ln,qp,i(ln,_u)+i(ln,Yp));xp=ln,Sp=class extends N{constructor(e,s,n,r,a,o){super();g(this,Kp);g(this,Lc);g(this,ji,new Float32Array(4));g(this,Fn);g(this,Tu);g(this,ui);g(this,ku);g(this,Ut);f(this,Ut,e),f(this,ui,s),f(this,Lc,n),f(this,ku,r),f(this,Fn,a),f(this,Tu,o),this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],m(this,Kp,Ew).call(this,o);let[l,c,d,u]=i(this,ji);for(let p=0,b=e.length;p<b;p+=2)e[p]=(e[p]-l)/d,e[p+1]=(e[p+1]-c)/u;for(let p=0,b=s.length;p<b;p+=2)s[p]=(s[p]-l)/d,s[p+1]=(s[p+1]-c)/u}toSVGPath(){let e=[`M${i(this,Ut)[4]} ${i(this,Ut)[5]}`];for(let s=6,n=i(this,Ut).length;s<n;s+=6){if(isNaN(i(this,Ut)[s])){e.push(`L${i(this,Ut)[s+4]} ${i(this,Ut)[s+5]}`);continue}e.push(`C${i(this,Ut)[s]} ${i(this,Ut)[s+1]} ${i(this,Ut)[s+2]} ${i(this,Ut)[s+3]} ${i(this,Ut)[s+4]} ${i(this,Ut)[s+5]}`)}return e.push("Z"),e.join(" ")}serialize([e,s,n,r],a){let o=n-e,l=r-s,c,d;switch(a){case 0:c=N._rescale(i(this,Ut),e,r,o,-l),d=N._rescale(i(this,ui),e,r,o,-l);break;case 90:c=N._rescaleAndSwap(i(this,Ut),e,s,o,l),d=N._rescaleAndSwap(i(this,ui),e,s,o,l);break;case 180:c=N._rescale(i(this,Ut),n,s,-o,l),d=N._rescale(i(this,ui),n,s,-o,l);break;case 270:c=N._rescaleAndSwap(i(this,Ut),n,r,-o,-l),d=N._rescaleAndSwap(i(this,ui),n,r,-o,-l);break}return{outline:Array.from(c),points:[Array.from(d)]}}get box(){return i(this,ji)}newOutliner(e,s,n,r,a,o,l=0){return new xp(e,s,n,r,a,o,l)}updateThickness(e){let s=this.getNewOutline(e);return f(this,Ut,i(s,Ut)),f(this,ui,i(s,ui)),i(this,ji).set(i(s,ji)),this.firstPoint=s.firstPoint,this.lastPoint=s.lastPoint,i(this,ji)}getNewOutline(e,s){let[n,r,a,o]=i(this,ji),[l,c,d,u]=i(this,Lc),p=a*d,b=o*u,y=n*d+l,v=r*u+c,w=i(this,ui),A=this.newOutliner(w[0]*p+y,w[1]*b+v,i(this,Lc),i(this,ku),e,i(this,Tu),s??i(this,Fn));for(let x=2,S=w.length;x<S;x+=2)A.add(w[x]*p+y,w[x+1]*b+v);return A.getOutlines()}};Lc=new WeakMap,ji=new WeakMap,Fn=new WeakMap,Tu=new WeakMap,ui=new WeakMap,ku=new WeakMap,Ut=new WeakMap,Kp=new WeakSet,Ew=function(e){let s=i(this,Ut),n=s[4],r=s[5],a=[n,r,n,r],o=n,l=r,c=n,d=r,u=e?Math.max:Math.min,p=new Float32Array(4);for(let y=6,v=s.length;y<v;y+=6){let w=s[y+4],A=s[y+5];isNaN(s[y])?(D.pointBoundingBox(w,A,a),l>A?(o=w,l=A):l===A&&(o=u(o,w)),d<A?(c=w,d=A):d===A&&(c=u(c,w))):(p.set(Vn,0),D.bezierBoundingBox(n,r,...s.slice(y,y+6),p),D.rectBoundingBox(...p,a),l>p[1]?(o=p[0],l=p[1]):l===p[1]&&(o=u(o,p[0])),d<p[3]?(c=p[2],d=p[3]):d===p[3]&&(c=u(c,p[2]))),n=w,r=A}let b=i(this,ji);b[0]=a[0]-i(this,Fn),b[1]=a[1]-i(this,Fn),b[2]=a[2]-a[0]+2*i(this,Fn),b[3]=a[3]-a[1]+2*i(this,Fn),this.firstPoint=[o,l],this.lastPoint=[c,d]};sd=class{constructor(t,e=0,s=0,n=!0){g(this,Ye);g(this,Mu);g(this,Pu);g(this,Du);g(this,Vr,[]);g(this,fi,[]);let r=Vn.slice(),o=10**-4;for(let{x:w,y:A,width:x,height:S}of t){let E=Math.floor((w-e)/o)*o,C=Math.ceil((w+x+e)/o)*o,_=Math.floor((A-e)/o)*o,k=Math.ceil((A+S+e)/o)*o,P=[E,_,k,!0],I=[C,_,k,!1];i(this,Vr).push(P,I),D.rectBoundingBox(E,_,C,k,r)}let l=r[2]-r[0]+2*s,c=r[3]-r[1]+2*s,d=r[0]-s,u=r[1]-s,p=n?-1/0:1/0,b=1/0,y=i(this,Vr).at(n?-1:-2),v=[y[0],y[2]];for(let w of i(this,Vr)){let[A,x,S,E]=w;!E&&n?x<b?(b=x,p=A):x===b&&(p=Math.max(p,A)):E&&!n&&(x<b?(b=x,p=A):x===b&&(p=Math.min(p,A))),w[0]=(A-d)/l,w[1]=(x-u)/c,w[2]=(S-u)/c}f(this,Mu,new Float32Array([d,u,l,c])),f(this,Pu,[p,b]),f(this,Du,v)}getOutlines(){i(this,Vr).sort((e,s)=>e[0]-s[0]||e[1]-s[1]||e[2]-s[2]);let t=[];for(let e of i(this,Vr))e[3]?(t.push(...m(this,Ye,ay).call(this,e)),m(this,Ye,kw).call(this,e)):(m(this,Ye,Mw).call(this,e),t.push(...m(this,Ye,ay).call(this,e)));return m(this,Ye,Tw).call(this,t)}};Mu=new WeakMap,Pu=new WeakMap,Du=new WeakMap,Vr=new WeakMap,fi=new WeakMap,Ye=new WeakSet,Tw=function(t){let e=[],s=new Set;for(let a of t){let[o,l,c]=a;e.push([o,l,a],[o,c,a])}e.sort((a,o)=>a[1]-o[1]||a[0]-o[0]);for(let a=0,o=e.length;a<o;a+=2){let l=e[a][2],c=e[a+1][2];l.push(c),c.push(l),s.add(l),s.add(c)}let n=[],r;for(;s.size>0;){let a=s.values().next().value,[o,l,c,d,u]=a;s.delete(a);let p=o,b=l;for(r=[o,c],n.push(r);;){let y;if(s.has(d))y=d;else if(s.has(u))y=u;else break;s.delete(y),[o,l,c,d,u]=y,p!==o&&(r.push(p,b,o,b===l?l:c),p=o),b=b===l?c:l}r.push(p,b)}return new id(n,i(this,Mu),i(this,Pu),i(this,Du))},Vf=function(t){let e=i(this,fi),s=0,n=e.length-1;for(;s<=n;){let r=s+n>>1,a=e[r][0];if(a===t)return r;a<t?s=r+1:n=r-1}return n+1},kw=function([,t,e]){let s=m(this,Ye,Vf).call(this,t);i(this,fi).splice(s,0,[t,e])},Mw=function([,t,e]){let s=m(this,Ye,Vf).call(this,t);for(let n=s;n<i(this,fi).length;n++){let[r,a]=i(this,fi)[n];if(r!==t)break;if(r===t&&a===e){i(this,fi).splice(n,1);return}}for(let n=s-1;n>=0;n--){let[r,a]=i(this,fi)[n];if(r!==t)break;if(r===t&&a===e){i(this,fi).splice(n,1);return}}},ay=function(t){let[e,s,n]=t,r=[[e,s,n]],a=m(this,Ye,Vf).call(this,n);for(let o=0;o<a;o++){let[l,c]=i(this,fi)[o];for(let d=0,u=r.length;d<u;d++){let[,p,b]=r[d];if(!(c<=p||b<=l)){if(p>=l){if(b>c)r[d][1]=c;else{if(u===1)return[];r.splice(d,1),d--,u--}continue}r[d][2]=l,b>c&&r.push([e,c,b])}}}return r};id=class extends N{constructor(e,s,n,r){super();g(this,Iu);g(this,Lu,null);g(this,Oc);f(this,Oc,e),f(this,Iu,s),this.firstPoint=n,this.lastPoint=r}static build(e,s){let n=new sd(e,.001).getOutlines();return f(n,Lu,e),n.focusOutline=new sd(e,.0025,.001,s).getOutlines(),n}get isFree(){return!1}get defaultSVGProperties(){return Cw(this)}getFocusSVGProperties(e){return _w(this,e)}updateRotation(e){return{root:{"data-main-rotation":e}}}serializeQuadPoints([e,s],[n,r]){let a=i(this,Lu),o=new Float32Array(a.length*8),l=0;for(let{x:c,y:d,width:u,height:p}of a){let b=c*n+e,y=(1-d)*r+s;o[l]=o[l+4]=b,o[l+1]=o[l+3]=y,o[l+2]=o[l+6]=b+u*n,o[l+5]=o[l+7]=y-p*r,l+=8}return o}toSVGPath(){let e=[];for(let s of i(this,Oc)){let[n,r]=s;e.push(`M${n} ${r}`);for(let a=2;a<s.length;a+=2){let o=s[a],l=s[a+1];o===n?(e.push(`V${l}`),r=l):l===r&&(e.push(`H${o}`),n=o)}e.push("Z")}return e.join(" ")}serialize([e,s,n,r],a){let o=[],l=n-e,c=r-s;for(let d of i(this,Oc)){let u=new Array(d.length);for(let p=0;p<d.length;p+=2)u[p]=e+d[p]*l,u[p+1]=r-d[p+1]*c;o.push(u)}return o}get box(){return i(this,Iu)}};Iu=new WeakMap,Lu=new WeakMap,Oc=new WeakMap;nd=class extends xp{newFreeDrawOutline(t,e,s,n,r,a){return new ly(t,e,s,n,r,a)}},oy=class{constructor(t,e,s,n,r,a,o){g(this,ws);g(this,Ou);f(this,ws,new nd(t,e,s,n,r,a,o)),f(this,Ou,r)}add(t,e){return i(this,ws).add(t,e)?{path:{d:i(this,ws).toSVGPath()}}:null}addPoints(t){let e=!1;for(let s=0,n=t.length;s<n;s+=2)e=i(this,ws).add(t[s],t[s+1])||e;return e?{path:{d:i(this,ws).toSVGPath()}}:null}end(t,e){return t===void 0?null:this.add(t,e)}isEmpty(){return i(this,ws).isEmpty()}isCancellable(){return i(this,ws).isCancellable()}removeLastElement(){return i(this,ws).removeLastElement()}updateProperty(t,e){return null}getOutlines(){let t=i(this,ws).getOutlines();return t.buildFocusOutline(2*i(this,Ou)),t}get defaultSVGProperties(){return{bbox:[0,0,1,1],root:{viewBox:"0 0 1 1"},rootClass:{highlight:!0,free:!0},path:{d:i(this,ws).toSVGPath()}}}};ws=new WeakMap,Ou=new WeakMap;Jp=class Jp extends Sp{newOutliner(t,e,s,n,r,a,o=0){return new nd(t,e,s,n,r,a,o)}get isFree(){return!0}buildFocusOutline(t){this.focusOutline=this.getNewOutline(t/2+i(Jp,Qp),.0025)}get defaultSVGProperties(){return Cw(this)}getFocusSVGProperties(t){return _w(this,t)}get focusMustRemoveSelfIntersections(){return!0}updateRotation(t){return{root:{"data-main-rotation":t}}}updateProperty(t,e){if(t!=="thickness")return null;let s=this.updateThickness(e/2);return this.buildFocusOutline(e),s}getPathResizedSVGProperties(){return{path:{d:this.toSVGPath()}}}};Qp=new WeakMap,g(Jp,Qp,1.5);ly=Jp,cy=class h extends td{constructor(t=null){super(),super.updateProperties(t)}updateSVGProperty(t,e){t!=="thickness"&&super.updateSVGProperty(t,e)}clone(){let t=new h;return t.updateAll(this),t}},Ue=class Ue extends ed{constructor(e){super({...e,name:"highlightEditor"});g(this,ks);g(this,Rc,null);g(this,Ru,0);g(this,Nu,null);g(this,Fu,0);g(this,Bu,"");g(this,Nc,"");f(this,Rc,e.anchorNode||null),f(this,Ru,e.anchorOffset||0),f(this,Nu,e.focusNode||null),f(this,Fu,e.focusOffset||0),f(this,Bu,e.methodOfCreation||(this._drawOutlines?.isFree?"main_toolbar":"")),f(this,Nc,e.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",this.rotate()}static get _keyboardManager(){let e=Ue.prototype;return G(this,"_keyboardManager",new Jo([[["ArrowLeft"],e._moveCaret,{args:[0]}],[["ArrowRight"],e._moveCaret,{args:[1]}],[["ArrowUp"],e._moveCaret,{args:[2]}],[["ArrowDown"],e._moveCaret,{args:[3]}]]))}static initialize(e,s){wt.initialize(e,s),this._defaultDrawingOptions||(this._defaultDrawingOptions=new cy({fill:s.highlightColors?.values().next().value||"#fff066","fill-opacity":Ue._DEFAULT_OPACITY,thickness:Ue._DEFAULT_THICKNESS}))}static getDefaultDrawingOptions(e){let s=this._defaultDrawingOptions.clone();return s.updateProperties(e),s}static get typesMap(){return G(this,"typesMap",new Map([[it.HIGHLIGHT_COLOR,"fill"],[it.HIGHLIGHT_THICKNESS,"thickness"]]))}static get isDrawer(){return!1}static get _hasClipPath(){return!0}static get _hasDrawClass(){return!1}_addOutlines(e){let{boxes:s,drawOutlines:n}=e;!s&&!n||(this._drawingOptions||(this._drawingOptions=e.drawingOptions||Ue.getDefaultDrawingOptions()),s&&(e={...e,drawOutlines:id.build(s,this._uiManager.direction==="ltr")}),super._addOutlines(e))}get colorType(){return it.HIGHLIGHT_COLOR}get color(){return this._drawingOptions.fill}get opacity(){return this._drawingOptions["fill-opacity"]}get _opacityName(){return"fill-opacity"}get _drawRotation(){return this._drawOutlines?.isFree?this.rotation:0}get isResizable(){return!1}get _mustBeDisabledOnCommit(){return!1}get _mustFixPosition(){return!this._drawOutlines?.isFree}get telemetryInitialData(){return{action:"added",type:this._drawOutlines.isFree?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:this._drawingOptions.thickness,methodOfCreation:i(this,Bu)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(e){return{numberOfColors:e.get("color").size}}translateInPage(e,s){}get toolbarPosition(){return m(this,ks,hy).call(this,this._drawOutlines.focusOutline.lastPoint)}get commentButtonPosition(){return m(this,ks,hy).call(this,this._drawOutlines.firstPoint)}updateParams(e,s){switch(e){case it.HIGHLIGHT_COLOR:this._updateColorAndOpacity(s,Ue._DEFAULT_OPACITY,e),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(s)},!0);break;case it.HIGHLIGHT_THICKNESS:super.updateParams(e,s),this._reportTelemetry({action:"thickness_changed",thickness:s},!0);break}}get propertiesToUpdate(){let e=super.propertiesToUpdate;return e.push([it.HIGHLIGHT_FREE,this._drawOutlines.isFree]),e}get toolbarButtons(){return this._uiManager.highlightColors?(this._colorPicker=new Kh({editor:this}),[["colorPicker",this._colorPicker]]):super.toolbarButtons}fixAndSetPosition(){return super.fixAndSetPosition(this._drawRotation)}getRect(e,s){return super.getRect(e,s,this._drawRotation)}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),e&&this.div.focus()}remove(){this._reportTelemetry({action:"deleted"}),super.remove()}render(){if(this.div)return this.div;let e=super.render();return i(this,Nc)&&(e.setAttribute("aria-label",i(this,Nc)),e.setAttribute("role","mark")),this._drawOutlines.isFree?e.classList.add("free"):e.addEventListener("keydown",m(this,ks,Pw).bind(this),{signal:this._uiManager._signal}),this.enableEditing(),e}_moveCaret(e){switch(this.parent.unselect(this),e){case 0:case 2:m(this,ks,Wf).call(this,!0);break;case 1:case 3:m(this,ks,Wf).call(this,!1);break}}unselect(){super.unselect(),this._drawOutlines.isFree||m(this,ks,Wf).call(this,!1)}static createDrawerInstance({x:e,y:s,box:n,parent:r,isLTR:a}){return new oy(e,s,n,r.scale,this._defaultDrawingOptions.thickness/2,a,.001)}static _getDrawingTarget(e,{target:s}){return s.closest(".textLayer")}static _getPointerCoords({x:e,y:s}){return[e,s]}static _addDrawingListeners(e,s){e.classList.add("free"),s.addEventListener("abort",()=>e.classList.remove("free"),{once:!0}),window.addEventListener("blur",()=>this._endDraw(null),{signal:s}),window.addEventListener("pointerdown",se,{capture:!0,passive:!1,signal:s})}static _endDrawingSession(e=!1){return this.endDrawing(e)}createDrawingOptions({color:e,opacity:s,thickness:n}){let{_defaultDrawingOptions:r,_DEFAULT_OPACITY:a}=Ue;this._drawingOptions=Ue.getDefaultDrawingOptions({fill:D.makeHexColor(...e),"fill-opacity":s||a,thickness:n||r.thickness})}static deserializeDraw(e,s,n,r,a,o,l){let{quadPoints:c}=o;if(c){let y=[];for(let v=0,w=c.length;v<w;v+=8)y.push({x:(c[v]-e)/n,y:1-(c[v+1]-s)/r,width:(c[v+2]-c[v])/n,height:(c[v+1]-c[v+5])/r});return id.build(y,l.direction==="ltr")}let d=o.thickness||this._defaultDrawingOptions.thickness,u=(o.inkLists||o.outlines.points)[0],p=new nd(u[0]-e,r-(u[1]-s),[0,0,n,r],1,d/2,!0,.001);for(let y=0,v=u.length;y<v;y+=2)p.add(u[y]-e,r-(u[y+1]-s));let b=p.getOutlines();return b.buildFocusOutline(d),b}static async deserialize(e,s,n){let r=null;if(e instanceof yp){let{data:{quadPoints:o,rect:l,rotation:c,id:d,color:u,opacity:p,popupRef:b,richText:y,contentsObj:v,creationDate:w,modificationDate:A},parent:{page:{pageNumber:x}}}=e;r=e={annotationType:K.HIGHLIGHT,color:Array.from(u),opacity:p,quadPoints:o,pageIndex:x-1,rect:l.slice(0),rotation:c,annotationElementId:d,id:d,deleted:!1,popupRef:b,richText:y,comment:v?.str||null,creationDate:w,modificationDate:A}}else if(e instanceof Zh){let{data:{inkLists:o,rect:l,rotation:c,id:d,color:u,borderStyle:{rawWidth:p},popupRef:b,richText:y,contentsObj:v,creationDate:w,modificationDate:A},parent:{page:{pageNumber:x}}}=e;r=e={annotationType:K.HIGHLIGHT,color:Array.from(u),thickness:p,inkLists:o,pageIndex:x-1,rect:l.slice(0),rotation:c,annotationElementId:d,id:d,deleted:!1,popupRef:b,richText:y,comment:v?.str||null,creationDate:w,modificationDate:A}}let a=await super.deserialize(e,s,n);return a._initialData=r,e.comment&&a.setCommentData(e),a}serialize(e=!1){if(this.isEmpty()||e)return null;if(this.deleted)return this.serializeDeleted();let s=super.serialize(e);return Object.assign(s,{color:wt._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),opacity:this.opacity,thickness:this._drawingOptions.thickness,quadPoints:this._drawOutlines.serializeQuadPoints(this.pageTranslation,this.pageDimensions),outlines:this._drawOutlines.serialize(s.rect,this._drawRotation)}),this.addComment(s),this.annotationElementId&&!m(this,ks,Dw).call(this,s)?null:(s.id=this.annotationElementId,s)}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}};Rc=new WeakMap,Ru=new WeakMap,Nu=new WeakMap,Fu=new WeakMap,Bu=new WeakMap,Nc=new WeakMap,ks=new WeakSet,hy=function([e,s]){let[n,r,a,o]=this._drawOutlines.box;return[(e-n)/a,(s-r)/o]},Pw=function(e){Ue._keyboardManager.exec(this,e)},Wf=function(e){if(!i(this,Rc))return;let s=window.getSelection();e?s.setPosition(i(this,Rc),i(this,Ru)):s.setPosition(i(this,Nu),i(this,Fu))},Dw=function(e){let{color:s}=this._initialData;return this.hasEditedComment||e.color.some((n,r)=>n!==s[r])},T(Ue,"_DEFAULT_OPACITY",1),T(Ue,"_DEFAULT_THICKNESS",12),T(Ue,"_defaultDrawingOptions",null),T(Ue,"_type","highlight"),T(Ue,"_editorType",K.HIGHLIGHT);Ep=Ue,dy=class{constructor(t,e,s,n,r,a){g(this,Ms);g(this,Vi,new Float64Array(6));g(this,Wr,new Float64Array(2));g(this,te);g(this,xe);g(this,zo);g(this,Fc);g(this,Se);g(this,ee,"");g(this,Ws,0);g(this,Ho,new el);g(this,Uo);g(this,$o);f(this,Uo,s),f(this,$o,n),f(this,zo,r),f(this,Fc,a),[t,e]=m(this,Ms,Xf).call(this,t,e);let o=f(this,te,[NaN,NaN,NaN,NaN,t,e]);f(this,Se,[t,e]),f(this,xe,[{line:o,points:i(this,Se)}]),i(this,Vi).set(o,0),i(this,Wr).set([t,e],0)}updateProperty(t,e){t==="stroke-width"&&f(this,Fc,e)}isEmpty(){return!i(this,xe)?.length}isCancellable(){return i(this,Se).length<=10}add(t,e){return m(this,Ms,Yf).call(this,t,e)&&this.toSVGPath(),{path:{d:m(this,Ms,uy).call(this)}}}addPoints(t){let e=!1;for(let s=0,n=t.length;s<n;s+=2)m(this,Ms,Yf).call(this,t[s],t[s+1])&&(e=!0,i(this,Se).length<=6&&(this.toSVGPath(),e=!1));return e&&this.toSVGPath(),{path:{d:m(this,Ms,uy).call(this)}}}end(t,e){return t!==void 0&&m(this,Ms,Yf).call(this,t,e)?{path:{d:this.toSVGPath()}}:i(this,Se).length===2?{path:{d:this.toSVGPath()}}:{path:{d:i(this,ee)}}}startNew(t,e,s,n,r){f(this,Uo,s),f(this,$o,n),f(this,zo,r),[t,e]=m(this,Ms,Xf).call(this,t,e);let a=f(this,te,[NaN,NaN,NaN,NaN,t,e]);f(this,Se,[t,e]),i(this,Wr).set([t,e],0);let o=i(this,xe).at(-1);return o&&(o.line=new Float32Array(o.line),o.points=new Float32Array(o.points)),i(this,xe).push({line:a,points:i(this,Se)}),i(this,Vi).set(a,0),f(this,Ws,0),this.toSVGPath(),null}getLastElement(){return i(this,xe).at(-1)}setLastElement(t){return i(this,xe)?(i(this,xe).push(t),f(this,te,t.line),f(this,Se,t.points),f(this,Ws,0),{path:{d:this.toSVGPath()}}):i(this,Ho).setLastElement(t)}removeLastElement(){if(!i(this,xe))return i(this,Ho).removeLastElement();i(this,xe).pop(),f(this,ee,"");for(let t=0,e=i(this,xe).length;t<e;t++){let{line:s,points:n}=i(this,xe)[t];f(this,te,s),f(this,Se,n),f(this,Ws,0),this.toSVGPath()}return{path:{d:i(this,ee)}}}toSVGPath(){let t=N.svgRound(i(this,te)[4]),e=N.svgRound(i(this,te)[5]);if(i(this,Se).length===2)return f(this,ee,`${i(this,ee)} M ${t} ${e} Z`),i(this,ee);if(i(this,Se).length<=6){let n=i(this,ee).lastIndexOf("M");f(this,ee,`${i(this,ee).slice(0,n)} M ${t} ${e}`),f(this,Ws,6)}if(i(this,Se).length===4){let n=N.svgRound(i(this,te)[10]),r=N.svgRound(i(this,te)[11]);return f(this,ee,`${i(this,ee)} L ${n} ${r}`),f(this,Ws,12),i(this,ee)}let s=[];i(this,Ws)===0&&(s.push(`M ${t} ${e}`),f(this,Ws,6));for(let n=i(this,Ws),r=i(this,te).length;n<r;n+=6){let[a,o,l,c,d,u]=i(this,te).slice(n,n+6).map(N.svgRound);s.push(`C${a} ${o} ${l} ${c} ${d} ${u}`)}return f(this,ee,i(this,ee)+s.join(" ")),f(this,Ws,i(this,te).length),i(this,ee)}getOutlines(t,e,s,n){let r=i(this,xe).at(-1);return r.line=new Float32Array(r.line),r.points=new Float32Array(r.points),i(this,Ho).build(i(this,xe),t,e,s,i(this,zo),i(this,Fc),n),f(this,Vi,null),f(this,te,null),f(this,xe,null),f(this,ee,null),i(this,Ho)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}};Vi=new WeakMap,Wr=new WeakMap,te=new WeakMap,xe=new WeakMap,zo=new WeakMap,Fc=new WeakMap,Se=new WeakMap,ee=new WeakMap,Ws=new WeakMap,Ho=new WeakMap,Uo=new WeakMap,$o=new WeakMap,Ms=new WeakSet,Xf=function(t,e){return N._normalizePoint(t,e,i(this,Uo),i(this,$o),i(this,zo))},Yf=function(t,e){[t,e]=m(this,Ms,Xf).call(this,t,e),i(this,Wr).set([t,e],0);let[s,n,r,a]=i(this,Vi).subarray(2,6),o=t-r,l=e-a;return Math.hypot(i(this,Uo)*o,i(this,$o)*l)<=2?!1:(i(this,Se).push(t,e),isNaN(s)?(i(this,Vi).set([r,a,t,e],2),i(this,te).push(NaN,NaN,NaN,NaN,t,e),!0):(isNaN(i(this,Vi)[0])&&i(this,te).splice(6,6),i(this,Vi).set([s,n,r,a,t,e],0),i(this,te).push(...N.createBezierPoints(s,n,r,a,t,e)),!0))},uy=function(){let t=N.svgRound(i(this,Wr)[0]),e=N.svgRound(i(this,Wr)[1]);if(i(this,Se).length===2){let s=N.svgRound(i(this,te)[4]),n=N.svgRound(i(this,te)[5]);return`${i(this,ee)} M ${s} ${n} L ${t} ${e}`}return`${i(this,ee)} L ${t} ${e}`};el=class extends N{constructor(){super(...arguments);g(this,_e);g(this,Ge);g(this,zu,0);g(this,Hu);g(this,As);g(this,Wi);g(this,Xi);g(this,Bc);g(this,zc);g(this,Go)}build(e,s,n,r,a,o,l){f(this,Wi,s),f(this,Xi,n),f(this,Bc,r),f(this,zc,a),f(this,Go,o),f(this,Hu,l??0),f(this,As,e),m(this,_e,Lw).call(this)}get thickness(){return i(this,Go)}setLastElement(e){return i(this,As).push(e),{path:{d:this.toSVGPath()}}}removeLastElement(){return i(this,As).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){let e=[];for(let{line:s}of i(this,As)){if(e.push(`M${N.svgRound(s[4])} ${N.svgRound(s[5])}`),s.length===6){e.push("Z");continue}if(s.length===12&&isNaN(s[6])){e.push(`L${N.svgRound(s[10])} ${N.svgRound(s[11])}`);continue}for(let n=6,r=s.length;n<r;n+=6){let[a,o,l,c,d,u]=s.subarray(n,n+6).map(N.svgRound);e.push(`C${a} ${o} ${l} ${c} ${d} ${u}`)}}return e.join("")}serialize([e,s,n,r],a){let o=[],l=[],[c,d,u,p]=m(this,_e,Iw).call(this),b,y,v,w,A,x,S,E,C;switch(i(this,zc)){case 0:C=N._rescale,b=e,y=s+r,v=n,w=-r,A=e+c*n,x=s+(1-d-p)*r,S=e+(c+u)*n,E=s+(1-d)*r;break;case 90:C=N._rescaleAndSwap,b=e,y=s,v=n,w=r,A=e+d*n,x=s+c*r,S=e+(d+p)*n,E=s+(c+u)*r;break;case 180:C=N._rescale,b=e+n,y=s,v=-n,w=r,A=e+(1-c-u)*n,x=s+d*r,S=e+(1-c)*n,E=s+(d+p)*r;break;case 270:C=N._rescaleAndSwap,b=e+n,y=s+r,v=-n,w=-r,A=e+(1-d-p)*n,x=s+(1-c-u)*r,S=e+(1-d)*n,E=s+(1-c)*r;break}for(let{line:_,points:k}of i(this,As))o.push(C(_,b,y,v,w,a?new Array(_.length):null)),l.push(C(k,b,y,v,w,a?new Array(k.length):null));return{lines:o,points:l,rect:[A,x,S,E]}}static deserialize(e,s,n,r,a,{paths:{lines:o,points:l},rotation:c,thickness:d}){let u=[],p,b,y,v,w;switch(c){case 0:w=N._rescale,p=-e/n,b=s/r+1,y=1/n,v=-1/r;break;case 90:w=N._rescaleAndSwap,p=-s/r,b=-e/n,y=1/r,v=1/n;break;case 180:w=N._rescale,p=e/n+1,b=-s/r,y=-1/n,v=1/r;break;case 270:w=N._rescaleAndSwap,p=s/r+1,b=e/n+1,y=-1/r,v=-1/n;break}if(!o){o=[];for(let x of l){let S=x.length;if(S===2){o.push(new Float32Array([NaN,NaN,NaN,NaN,x[0],x[1]]));continue}if(S===4){o.push(new Float32Array([NaN,NaN,NaN,NaN,x[0],x[1],NaN,NaN,NaN,NaN,x[2],x[3]]));continue}let E=new Float32Array(3*(S-2));o.push(E);let[C,_,k,P]=x.subarray(0,4);E.set([NaN,NaN,NaN,NaN,C,_],0);for(let I=4;I<S;I+=2){let F=x[I],B=x[I+1];E.set(N.createBezierPoints(C,_,k,P,F,B),(I-2)*3),[C,_,k,P]=[k,P,F,B]}}}for(let x=0,S=o.length;x<S;x++)u.push({line:w(o[x].map(E=>E??NaN),p,b,y,v),points:w(l[x].map(E=>E??NaN),p,b,y,v)});let A=new this.prototype.constructor;return A.build(u,n,r,1,c,d,a),A}get box(){return i(this,Ge)}updateProperty(e,s){return e==="stroke-width"?m(this,_e,Ow).call(this,s):null}updateParentDimensions([e,s],n){let[r,a]=m(this,_e,an).call(this);f(this,Wi,e),f(this,Xi,s),f(this,Bc,n);let[o,l]=m(this,_e,an).call(this),c=o-r,d=l-a,u=i(this,Ge);return u[0]-=c,u[1]-=d,u[2]+=2*c,u[3]+=2*d,u}updateRotation(e){return f(this,zu,e),{path:{transform:this.rotationTransform}}}get viewBox(){return i(this,Ge).map(N.svgRound).join(" ")}get defaultProperties(){let[e,s]=i(this,Ge);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${N.svgRound(e)} ${N.svgRound(s)}`}}}get rotationTransform(){let[,,e,s]=i(this,Ge),n=0,r=0,a=0,o=0,l=0,c=0;switch(i(this,zu)){case 90:r=s/e,a=-e/s,l=e;break;case 180:n=-1,o=-1,l=e,c=s;break;case 270:r=-s/e,a=e/s,c=s;break;default:return""}return`matrix(${n} ${r} ${a} ${o} ${N.svgRound(l)} ${N.svgRound(c)})`}getPathResizingSVGProperties([e,s,n,r]){let[a,o]=m(this,_e,an).call(this),[l,c,d,u]=i(this,Ge);if(Math.abs(d-a)<=N.PRECISION||Math.abs(u-o)<=N.PRECISION){let w=e+n/2-(l+d/2),A=s+r/2-(c+u/2);return{path:{"transform-origin":`${N.svgRound(e)} ${N.svgRound(s)}`,transform:`${this.rotationTransform} translate(${w} ${A})`}}}let p=(n-2*a)/(d-2*a),b=(r-2*o)/(u-2*o),y=d/n,v=u/r;return{path:{"transform-origin":`${N.svgRound(l)} ${N.svgRound(c)}`,transform:`${this.rotationTransform} scale(${y} ${v}) translate(${N.svgRound(a)} ${N.svgRound(o)}) scale(${p} ${b}) translate(${N.svgRound(-a)} ${N.svgRound(-o)})`}}}getPathResizedSVGProperties([e,s,n,r]){let[a,o]=m(this,_e,an).call(this),l=i(this,Ge),[c,d,u,p]=l;if(l[0]=e,l[1]=s,l[2]=n,l[3]=r,Math.abs(u-a)<=N.PRECISION||Math.abs(p-o)<=N.PRECISION){let A=e+n/2-(c+u/2),x=s+r/2-(d+p/2);for(let{line:S,points:E}of i(this,As))N._translate(S,A,x,S),N._translate(E,A,x,E);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${N.svgRound(e)} ${N.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}let b=(n-2*a)/(u-2*a),y=(r-2*o)/(p-2*o),v=-b*(c+a)+e+a,w=-y*(d+o)+s+o;if(b!==1||y!==1||v!==0||w!==0)for(let{line:A,points:x}of i(this,As))N._rescale(A,v,w,b,y,A),N._rescale(x,v,w,b,y,x);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${N.svgRound(e)} ${N.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([e,s],n){let[r,a]=n,o=i(this,Ge),l=e-o[0],c=s-o[1];if(i(this,Wi)===r&&i(this,Xi)===a)for(let{line:d,points:u}of i(this,As))N._translate(d,l,c,d),N._translate(u,l,c,u);else{let d=i(this,Wi)/r,u=i(this,Xi)/a;f(this,Wi,r),f(this,Xi,a);for(let{line:p,points:b}of i(this,As))N._rescale(p,l,c,d,u,p),N._rescale(b,l,c,d,u,b);o[2]*=d,o[3]*=u}return o[0]=e,o[1]=s,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${N.svgRound(e)} ${N.svgRound(s)}`}}}get defaultSVGProperties(){let e=i(this,Ge);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${N.svgRound(e[0])} ${N.svgRound(e[1])}`,transform:this.rotationTransform||null},bbox:e}}};Ge=new WeakMap,zu=new WeakMap,Hu=new WeakMap,As=new WeakMap,Wi=new WeakMap,Xi=new WeakMap,Bc=new WeakMap,zc=new WeakMap,Go=new WeakMap,_e=new WeakSet,an=function(e=i(this,Go)){let s=i(this,Hu)+e/2*i(this,Bc);return i(this,zc)%180===0?[s/i(this,Wi),s/i(this,Xi)]:[s/i(this,Xi),s/i(this,Wi)]},Iw=function(){let[e,s,n,r]=i(this,Ge),[a,o]=m(this,_e,an).call(this,0);return[e+a,s+o,n-2*a,r-2*o]},Lw=function(){let e=f(this,Ge,Aa.slice());for(let{line:r}of i(this,As)){if(r.length<=12){for(let l=4,c=r.length;l<c;l+=6)D.pointBoundingBox(r[l],r[l+1],e);continue}let a=r[4],o=r[5];for(let l=6,c=r.length;l<c;l+=6){let[d,u,p,b,y,v]=r.subarray(l,l+6);D.bezierBoundingBox(a,o,d,u,p,b,y,v,e),a=y,o=v}}let[s,n]=m(this,_e,an).call(this);e[0]=Ct(e[0]-s,0,1),e[1]=Ct(e[1]-n,0,1),e[2]=Ct(e[2]+s,0,1),e[3]=Ct(e[3]+n,0,1),e[2]-=e[0],e[3]-=e[1]},Ow=function(e){let[s,n]=m(this,_e,an).call(this);f(this,Go,e);let[r,a]=m(this,_e,an).call(this),[o,l]=[r-s,a-n],c=i(this,Ge);return c[0]-=o,c[1]-=l,c[2]+=2*o,c[3]+=2*l,c};Cp=class h extends td{constructor(t){super(),this._viewParameters=t,super.updateProperties({fill:"none",stroke:wt._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(t,e){t==="stroke-width"&&(e??(e=this["stroke-width"]),e*=this._viewParameters.realScale),super.updateSVGProperty(t,e)}clone(){let t=new h(this._viewParameters);return t.updateAll(this),t}},yl=class yl extends ed{constructor(e){super({...e,name:"inkEditor"});g(this,Zp);this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(e,s){wt.initialize(e,s),this._defaultDrawingOptions=new Cp(s.viewParameters)}static getDefaultDrawingOptions(e){let s=this._defaultDrawingOptions.clone();return s.updateProperties(e),s}static get supportMultipleDrawings(){return!0}static get typesMap(){return G(this,"typesMap",new Map([[it.INK_THICKNESS,"stroke-width"],[it.INK_COLOR,"stroke"],[it.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance({x:e,y:s,box:[,,n,r],rotation:a}){return new dy(e,s,n,r,a,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(e,s,n,r,a,o){return el.deserialize(e,s,n,r,a,o)}static async deserialize(e,s,n){let r=null;if(e instanceof Zh){let{data:{inkLists:o,rect:l,rotation:c,id:d,color:u,opacity:p,borderStyle:{rawWidth:b},popupRef:y,richText:v,contentsObj:w,creationDate:A,modificationDate:x},parent:{page:{pageNumber:S}}}=e;r=e={annotationType:K.INK,color:Array.from(u),thickness:b,opacity:p,paths:{points:o},boxes:null,pageIndex:S-1,rect:l.slice(0),rotation:c,annotationElementId:d,id:d,deleted:!1,popupRef:y,richText:v,comment:w?.str||null,creationDate:A,modificationDate:x}}let a=await super.deserialize(e,s,n);return a._initialData=r,e.comment&&a.setCommentData(e),a}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new pp(this)),[["colorPicker",this._colorPicker]]}get colorType(){return it.INK_COLOR}get colorAndOpacityType(){return it.INK_COLOR_AND_OPACITY}get opacityType(){return it.INK_OPACITY}updateParams(e,s){if(e===it.INK_COLOR_AND_OPACITY){this._updateColorAndOpacity(s.color,s.opacity);return}super.updateParams(e,s)}static updateDefaultParams(e,s){if(e===it.INK_COLOR_AND_OPACITY){super.updateDefaultParams(it.INK_COLOR,s.color),super.updateDefaultParams(it.INK_OPACITY,s.opacity);return}super.updateDefaultParams(e,s)}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();let{_drawId:e,_drawingOptions:s,parent:n}=this;s.updateSVGProperty("stroke-width"),n.drawLayer.updateProperties(e,s.toSVGProperties())}static onScaleChangingWhenDrawing(){let e=this._currentParent;e&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),e.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:e,thickness:s,opacity:n}){this._drawingOptions=yl.getDefaultDrawingOptions({stroke:D.makeHexColor(...e),"stroke-width":s,"stroke-opacity":n})}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let{lines:s,points:n}=this.serializeDraw(e),{_drawingOptions:{stroke:r,"stroke-opacity":a,"stroke-width":o}}=this,l=Object.assign(super.serialize(e),{color:wt._colorManager.convert(r),opacity:a,thickness:o,paths:{lines:s,points:n}});return this.addComment(l),e?(l.isCopy=!0,l):this.annotationElementId&&!m(this,Zp,Rw).call(this,l)?null:(l.id=this.annotationElementId,l)}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let{points:s,rect:n}=this.serializeDraw(!1);return e.updateEdited({rect:n,thickness:this._drawingOptions["stroke-width"],points:s,popup:this.comment}),null}};Zp=new WeakSet,Rw=function(e){let{color:s,thickness:n,opacity:r,pageIndex:a}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||e.color.some((o,l)=>o!==s[l])||e.thickness!==n||e.opacity!==r||e.pageIndex!==a},T(yl,"_type","ink"),T(yl,"_editorType",K.INK),T(yl,"_defaultDrawingOptions",null);fy=yl,rd=class extends el{toSVGPath(){let t=super.toSVGPath();return t.endsWith("Z")||(t+="Z"),t}},df=8,uh=3,qs=class{static extractContoursFromText(t,{fontFamily:e,fontStyle:s,fontWeight:n},r,a,o,l){let c=new OffscreenCanvas(1,1),d=c.getContext("2d",{alpha:!1}),u=200,p=d.font=`${s} ${n} ${u}px ${e}`,{actualBoundingBoxLeft:b,actualBoundingBoxRight:y,actualBoundingBoxAscent:v,actualBoundingBoxDescent:w,fontBoundingBoxAscent:A,fontBoundingBoxDescent:x,width:S}=d.measureText(t),E=1.5,C=Math.ceil(Math.max(Math.abs(b)+Math.abs(y)||0,S)*E),_=Math.ceil(Math.max(Math.abs(v)+Math.abs(w)||u,Math.abs(A)+Math.abs(x)||u)*E);c=new OffscreenCanvas(C,_),d=c.getContext("2d",{alpha:!0,willReadFrequently:!0}),d.font=p,d.filter="grayscale(1)",d.fillStyle="white",d.fillRect(0,0,C,_),d.fillStyle="black",d.fillText(t,C*(E-1)/2,_*(3-E)/2);let k=m(this,dt,my).call(this,d.getImageData(0,0,C,_).data),P=m(this,dt,Hw).call(this,k),I=m(this,dt,by).call(this,P),F=m(this,dt,gy).call(this,k,C,_,I);return this.processDrawnLines({lines:{curves:F,width:C,height:_},pageWidth:r,pageHeight:a,rotation:o,innerMargin:l,mustSmooth:!0,areContours:!0})}static process(t,e,s,n,r){let[a,o,l]=m(this,dt,Uw).call(this,t),[c,d]=m(this,dt,zw).call(this,a,o,l,Math.hypot(o,l)*i(this,jo).sigmaSFactor,i(this,jo).sigmaR,i(this,jo).kernelSize),u=m(this,dt,by).call(this,d),p=m(this,dt,gy).call(this,c,o,l,u);return this.processDrawnLines({lines:{curves:p,width:o,height:l},pageWidth:e,pageHeight:s,rotation:n,innerMargin:r,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:t,pageWidth:e,pageHeight:s,rotation:n,innerMargin:r,mustSmooth:a,areContours:o}){n%180!==0&&([e,s]=[s,e]);let{curves:l,width:c,height:d}=t,u=t.thickness??0,p=[],b=Math.min(e/c,s/d),y=b/e,v=b/s,w=[];for(let{points:x}of l){let S=a?m(this,dt,Bw).call(this,x):x;if(!S)continue;w.push(S);let E=S.length,C=new Float32Array(E),_=new Float32Array(3*(E===2?2:E-2));if(p.push({line:_,points:C}),E===2){C[0]=S[0]*y,C[1]=S[1]*v,_.set([NaN,NaN,NaN,NaN,C[0],C[1]],0);continue}let[k,P,I,F]=S;k*=y,P*=v,I*=y,F*=v,C.set([k,P,I,F],0),_.set([NaN,NaN,NaN,NaN,k,P],0);for(let B=4;B<E;B+=2){let H=C[B]=S[B]*y,L=C[B+1]=S[B+1]*v;_.set(N.createBezierPoints(k,P,I,F,H,L),(B-2)*3),[k,P,I,F]=[I,F,H,L]}}if(p.length===0)return null;let A=o?new rd:new el;return A.build(p,e,s,1,n,o?0:u,r),{outline:A,newCurves:w,areContours:o,thickness:u,width:c,height:d}}static async compressSignature({outlines:t,areContours:e,thickness:s,width:n,height:r}){let a=1/0,o=-1/0,l=0;for(let x of t){l+=x.length;for(let S=2,E=x.length;S<E;S++){let C=x[S]-x[S-2];a=Math.min(a,C),o=Math.max(o,C)}}let c;a>=-128&&o<=127?c=Int8Array:a>=-32768&&o<=32767?c=Int16Array:c=Int32Array;let d=t.length,u=df+uh*d,p=new Uint32Array(u),b=0;p[b++]=u*Uint32Array.BYTES_PER_ELEMENT+(l-2*d)*c.BYTES_PER_ELEMENT,p[b++]=0,p[b++]=n,p[b++]=r,p[b++]=e?0:1,p[b++]=Math.max(0,Math.floor(s??0)),p[b++]=d,p[b++]=c.BYTES_PER_ELEMENT;for(let x of t)p[b++]=x.length-2,p[b++]=x[0],p[b++]=x[1];let y=new CompressionStream("deflate-raw"),v=y.writable.getWriter();await v.ready,v.write(p);let w=c.prototype.constructor;for(let x of t){let S=new w(x.length-2);for(let E=2,C=x.length;E<C;E++)S[E-2]=x[E]-x[E-2];v.write(S)}return v.close(),(await new Response(y.readable).bytes()).toBase64()}static async decompressSignature(t){try{let e=Uint8Array.fromBase64(t),{readable:s,writable:n}=new DecompressionStream("deflate-raw"),r=n.getWriter();await r.ready,r.write(e).then(async()=>{await r.ready,await r.close()}).catch(()=>{});let a=null,o=0;for await(let S of s)a||(a=new Uint8Array(new Uint32Array(S.buffer,0,4)[0])),a.set(S,o),o+=S.length;let l=new Uint32Array(a.buffer,0,a.length>>2),c=l[1];if(c!==0)throw new Error(`Invalid version: ${c}`);let d=l[2],u=l[3],p=l[4]===0,b=l[5],y=l[6],v=l[7],w=[],A=(df+uh*y)*Uint32Array.BYTES_PER_ELEMENT,x;switch(v){case Int8Array.BYTES_PER_ELEMENT:x=new Int8Array(a.buffer,A);break;case Int16Array.BYTES_PER_ELEMENT:x=new Int16Array(a.buffer,A);break;case Int32Array.BYTES_PER_ELEMENT:x=new Int32Array(a.buffer,A);break}o=0;for(let S=0;S<y;S++){let E=l[uh*S+df],C=new Float32Array(E+2);w.push(C);for(let _=0;_<uh-1;_++)C[_]=l[uh*S+df+_+1];for(let _=0;_<E;_++)C[_+2]=C[_]+x[o++]}return{areContours:p,thickness:b,outlines:w,width:d,height:u}}catch(e){return Q(`decompressSignature: ${e}`),null}}};jo=new WeakMap,dt=new WeakSet,py=function(t,e,s,n){return s-=t,n-=e,s===0?n>0?0:4:s===1?n+6:2-n},pi=new WeakMap,Nw=function(t,e,s,n,r,a,o){let l=m(this,dt,py).call(this,s,n,r,a);for(let c=0;c<8;c++){let d=(-c+l-o+16)%8,u=i(this,pi)[2*d],p=i(this,pi)[2*d+1];if(t[(s+u)*e+(n+p)]!==0)return d}return-1},Fw=function(t,e,s,n,r,a,o){let l=m(this,dt,py).call(this,s,n,r,a);for(let c=0;c<8;c++){let d=(c+l+o+16)%8,u=i(this,pi)[2*d],p=i(this,pi)[2*d+1];if(t[(s+u)*e+(n+p)]!==0)return d}return-1},gy=function(t,e,s,n){let r=t.length,a=new Int32Array(r);for(let d=0;d<r;d++)a[d]=t[d]<=n?1:0;for(let d=1;d<s-1;d++)a[d*e]=a[d*e+e-1]=0;for(let d=0;d<e;d++)a[d]=a[e*s-1-d]=0;let o=1,l,c=[];for(let d=1;d<s-1;d++){l=1;for(let u=1;u<e-1;u++){let p=d*e+u,b=a[p];if(b===0)continue;let y=d,v=u;if(b===1&&a[p-1]===0)o+=1,v-=1;else if(b>=1&&a[p+1]===0)o+=1,v+=1,b>1&&(l=b);else{b!==1&&(l=Math.abs(b));continue}let w=[u,d],A=v===u+1,x={isHole:A,points:w,id:o,parent:0};c.push(x);let S;for(let B of c)if(B.id===l){S=B;break}S?S.isHole?x.parent=A?S.parent:l:x.parent=A?l:S.parent:x.parent=A?l:0;let E=m(this,dt,Nw).call(this,a,e,d,u,y,v,0);if(E===-1){a[p]=-o,a[p]!==1&&(l=Math.abs(a[p]));continue}let C=i(this,pi)[2*E],_=i(this,pi)[2*E+1],k=d+C,P=u+_;y=k,v=P;let I=d,F=u;for(;;){let B=m(this,dt,Fw).call(this,a,e,I,F,y,v,1);C=i(this,pi)[2*B],_=i(this,pi)[2*B+1];let H=I+C,L=F+_;w.push(L,H);let X=I*e+F;if(a[X+1]===0?a[X]=-o:a[X]===1&&(a[X]=o),H===d&&L===u&&I===k&&F===P){a[p]!==1&&(l=Math.abs(a[p]));break}else y=I,v=F,I=H,F=L}}}return c},qf=function(t,e,s,n){if(s-e<=4){for(let k=e;k<s-2;k+=2)n.push(t[k],t[k+1]);return}let r=t[e],a=t[e+1],o=t[s-4]-r,l=t[s-3]-a,c=Math.hypot(o,l),d=o/c,u=l/c,p=d*a-u*r,b=l/o,y=1/c,v=Math.atan(b),w=Math.cos(v),A=Math.sin(v),x=y*(Math.abs(w)+Math.abs(A)),S=y*(1-x+x**2),E=Math.max(Math.atan(Math.abs(A+w)*S),Math.atan(Math.abs(A-w)*S)),C=0,_=e;for(let k=e+2;k<s-2;k+=2){let P=Math.abs(p-d*t[k+1]+u*t[k]);P>C&&(_=k,C=P)}C>(c*E)**2?(m(this,dt,qf).call(this,t,e,_+2,n),m(this,dt,qf).call(this,t,_,s,n)):n.push(r,a)},Bw=function(t){let e=[],s=t.length;return m(this,dt,qf).call(this,t,0,s,e),e.push(t[s-2],t[s-1]),e.length<=4?null:e},zw=function(t,e,s,n,r,a){let o=new Float32Array(a**2),l=-2*n**2,c=a>>1;for(let v=0;v<a;v++){let w=(v-c)**2;for(let A=0;A<a;A++)o[v*a+A]=Math.exp((w+(A-c)**2)/l)}let d=new Float32Array(256),u=-2*r**2;for(let v=0;v<256;v++)d[v]=Math.exp(v**2/u);let p=t.length,b=new Uint8Array(p),y=new Uint32Array(256);for(let v=0;v<s;v++)for(let w=0;w<e;w++){let A=v*e+w,x=t[A],S=0,E=0;for(let _=0;_<a;_++){let k=v+_-c;if(!(k<0||k>=s))for(let P=0;P<a;P++){let I=w+P-c;if(I<0||I>=e)continue;let F=t[k*e+I],B=o[_*a+P]*d[Math.abs(F-x)];S+=F*B,E+=B}}let C=b[A]=Math.round(S/E);y[C]++}return[b,y]},Hw=function(t){let e=new Uint32Array(256);for(let s of t)e[s]++;return e},my=function(t){let e=t.length,s=new Uint8ClampedArray(e>>2),n=-1/0,r=1/0;for(let o=0,l=s.length;o<l;o++){let c=s[o]=t[o<<2];n=Math.max(n,c),r=Math.min(r,c)}let a=255/(n-r);for(let o=0,l=s.length;o<l;o++)s[o]=(s[o]-r)*a;return s},by=function(t){let e,s=-1/0,n=-1/0,r=t.findIndex(l=>l!==0),a=r,o=r;for(e=r;e<256;e++){let l=t[e];l>s&&(e-a>n&&(n=e-a,o=e-1),s=l,a=e)}for(e=o-1;e>=0&&!(t[e]>t[e+1]);e--);return e},Uw=function(t){let e=t,{width:s,height:n}=t,{maxDim:r}=i(this,jo),a=s,o=n;if(s>r||n>r){let p=s,b=n,y=Math.log2(Math.max(s,n)/r),v=Math.floor(y);y=y===v?v-1:v;for(let A=0;A<y;A++){a=Math.ceil(p/2),o=Math.ceil(b/2);let x=new OffscreenCanvas(a,o);x.getContext("2d").drawImage(t,0,0,p,b,0,0,a,o),p=a,b=o,t!==e&&t.close(),t=x.transferToImageBitmap()}let w=Math.min(r/a,r/o);a=Math.round(a*w),o=Math.round(o*w)}let c=new OffscreenCanvas(a,o).getContext("2d",{willReadFrequently:!0});c.fillStyle="white",c.fillRect(0,0,a,o),c.filter="grayscale(1)",c.drawImage(t,0,0,t.width,t.height,0,0,a,o);let d=c.getImageData(0,0,a,o).data;return[m(this,dt,my).call(this,d),a,o]},g(qs,dt),g(qs,jo,{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}),g(qs,pi,new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]));yy=class h extends td{constructor(){super(),super.updateProperties({fill:wt._defaultLineColor,"stroke-width":0})}clone(){let t=new h;return t.updateAll(this),t}},vy=class h extends Cp{constructor(t){super(t),super.updateProperties({stroke:wt._defaultLineColor,"stroke-width":1})}clone(){let t=new h(this._viewParameters);return t.updateAll(this),t}},os=class os extends ed{constructor(e){super({...e,mustBeCommitted:!0,name:"signatureEditor"});g(this,Xr,!1);g(this,Yi,null);g(this,Yr,null);g(this,Vo,null);this._willKeepAspectRatio=!0,f(this,Yr,e.signatureData||null),f(this,Yi,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(e,s){wt.initialize(e,s),this._defaultDrawingOptions=new yy,this._defaultDrawnSignatureOptions=new vy(s.viewParameters)}static getDefaultDrawingOptions(e){let s=this._defaultDrawingOptions.clone();return s.updateProperties(e),s}static get supportMultipleDrawings(){return!1}static get typesMap(){return G(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!i(this,Yi)}}static computeTelemetryFinalData(e){let s=e.get("hasDescription");return{hasAltText:s.get(!0)??0,hasNoAltText:s.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let e,s,{_isCopy:n}=this;if(n&&(this._isCopy=!1,e=this.x,s=this.y),super.render(),this._drawId===null)if(i(this,Yr)){let{lines:r,mustSmooth:a,areContours:o,description:l,uuid:c,heightInPage:d}=i(this,Yr),{rawDims:{pageWidth:u,pageHeight:p},rotation:b}=this.parent.viewport,y=qs.processDrawnLines({lines:r,pageWidth:u,pageHeight:p,rotation:b,innerMargin:os._INNER_MARGIN,mustSmooth:a,areContours:o});this.addSignature(y,d,l,c)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:i(this,Yi)||""}));return n&&(this._isCopy=!0,this._moveAfterPaste(e,s)),this.div}setUuid(e){f(this,Vo,e),this.addEditToolbar()}getUuid(){return i(this,Vo)}get description(){return i(this,Yi)}set description(e){f(this,Yi,e),this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:e})),super.addEditToolbar().then(s=>{s?.updateEditSignatureButton(e)}))}getSignaturePreview(){let{newCurves:e,areContours:s,thickness:n,width:r,height:a}=i(this,Yr),o=Math.max(r,a),l=qs.processDrawnLines({lines:{curves:e.map(c=>({points:c})),thickness:n,width:r,height:a},pageWidth:o,pageHeight:o,rotation:0,innerMargin:0,mustSmooth:!1,areContours:s});return{areContours:s,outline:l.outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(e,s,n,r){let{x:a,y:o}=this,{outline:l}=f(this,Yr,e);f(this,Xr,l instanceof rd),this.description=n;let c;i(this,Xr)?c=os.getDefaultDrawingOptions():(c=os._defaultDrawnSignatureOptions.clone(),c.updateProperties({"stroke-width":l.thickness})),this._addOutlines({drawOutlines:l,drawingOptions:c});let[,d]=this.pageDimensions,u=s/d;u=u>=1?.5:u,this.width*=u/this.height,this.width>=1&&(u*=.9/this.width,this.width=.9),this.height=u,this.setDims(),this.x=a,this.y=o,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(r),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!r,hasDescription:!!n}}),this.div.hidden=!1}getFromImage(e){let{rawDims:{pageWidth:s,pageHeight:n},rotation:r}=this.parent.viewport;return qs.process(e,s,n,r,os._INNER_MARGIN)}getFromText(e,s){let{rawDims:{pageWidth:n,pageHeight:r},rotation:a}=this.parent.viewport;return qs.extractContoursFromText(e,s,n,r,a,os._INNER_MARGIN)}getDrawnSignature(e){let{rawDims:{pageWidth:s,pageHeight:n},rotation:r}=this.parent.viewport;return qs.processDrawnLines({lines:e,pageWidth:s,pageHeight:n,rotation:r,innerMargin:os._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:e,thickness:s}){e?this._drawingOptions=os.getDefaultDrawingOptions():(this._drawingOptions=os._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":s}))}serialize(e=!1){if(this.isEmpty())return null;let{lines:s,points:n}=this.serializeDraw(e),{_drawingOptions:{"stroke-width":r}}=this,a=Object.assign(super.serialize(e),{isSignature:!0,areContours:i(this,Xr),color:[0,0,0],thickness:i(this,Xr)?0:r});return this.addComment(a),e?(a.paths={lines:s,points:n},a.uuid=i(this,Vo),a.isCopy=!0):a.lines=s,i(this,Yi)&&(a.accessibilityData={type:"Figure",alt:i(this,Yi)}),a}static deserializeDraw(e,s,n,r,a,o){return o.areContours?rd.deserialize(e,s,n,r,a,o):el.deserialize(e,s,n,r,a,o)}static async deserialize(e,s,n){let r=await super.deserialize(e,s,n);return f(r,Xr,e.areContours),r.description=e.accessibilityData?.alt||"",f(r,Vo,e.uuid),r}};Xr=new WeakMap,Yi=new WeakMap,Yr=new WeakMap,Vo=new WeakMap,T(os,"_type","signature"),T(os,"_editorType",K.SIGNATURE),T(os,"_defaultDrawingOptions",null);wy=os,Dh=class extends wt{constructor(e){super({...e,name:"stampEditor"});g(this,at);g(this,Lt,null);g(this,be,null);g(this,qr,null);g(this,Bn,null);g(this,Kr,null);g(this,Hc,"");g(this,zn,null);g(this,Wo,!1);g(this,qi,null);g(this,xs,!1);g(this,Uc,!1);f(this,Bn,e.bitmapUrl),f(this,Kr,e.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(e,s){wt.initialize(e,s)}static isHandlingMimeForPasting(e){return np.includes(e)}static paste(e,s){s.pasteEditor({mode:K.STAMP},{bitmapFile:e.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(e){let s=e.get("hasAltText");return{hasAltText:s.get(!0)??0,hasNoAltText:s.get(!1)??0}}async mlGuessAltText(e=null,s=!0){if(this.hasAltTextData())return null;let{mlManager:n}=this._uiManager;if(!n)throw new Error("No ML.");if(!await n.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");let{data:r,width:a,height:o}=e||this.copyCanvas(null,null,!0).imageData,l=await n.guess({name:"altText",request:{data:r,width:a,height:o,channels:r.length/(a*o)}});if(!l)throw new Error("No response from the AI service.");if(l.error)throw new Error("Error from the AI service.");if(l.cancel)return null;if(!l.output)throw new Error("No valid response from the AI service.");let c=l.output;return await this.setGuessedAltText(c),s&&!this.hasAltTextData()&&(this.altTextData={alt:c,decorative:!1}),c}remove(){i(this,be)&&(f(this,Lt,null),this._uiManager.imageManager.deleteId(i(this,be)),i(this,zn)?.remove(),f(this,zn,null),i(this,qi)&&(clearTimeout(i(this,qi)),f(this,qi,null))),super.remove()}rebuild(){if(!this.parent){i(this,be)&&m(this,at,Kf).call(this);return}super.rebuild(),this.div!==null&&(i(this,be)&&i(this,zn)===null&&m(this,at,Kf).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(e){this._isDraggable=!0,e&&this.div.focus()}isEmpty(){return!(i(this,qr)||i(this,Lt)||i(this,Bn)||i(this,Kr)||i(this,be)||i(this,Wo))}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let e,s;return this._isCopy&&(e=this.x,s=this.y),super.render(),this.div.hidden=!0,this.createAltText(),i(this,Wo)||(i(this,Lt)?m(this,at,Qf).call(this):m(this,at,Kf).call(this)),this._isCopy&&this._moveAfterPaste(e,s),this._uiManager.addShouldRescale(this),this.div}setCanvas(e,s){let{id:n,bitmap:r}=this._uiManager.imageManager.getFromCanvas(e,s);s.remove(),n&&this._uiManager.imageManager.isValidId(n)&&(f(this,be,n),r&&f(this,Lt,r),f(this,Wo,!1),m(this,at,Qf).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;i(this,qi)!==null&&clearTimeout(i(this,qi)),f(this,qi,setTimeout(()=>{f(this,qi,null),m(this,at,Ay).call(this)},200))}copyCanvas(e,s,n=!1){e||(e=224);let{width:r,height:a}=i(this,Lt),o=new vi,l=i(this,Lt),c=r,d=a,u=null;if(s){if(r>s||a>s){let k=Math.min(s/r,s/a);c=Math.floor(r*k),d=Math.floor(a*k)}u=document.createElement("canvas");let b=u.width=Math.ceil(c*o.sx),y=u.height=Math.ceil(d*o.sy);i(this,xs)||(l=m(this,at,Jf).call(this,b,y));let v=u.getContext("2d");v.filter=this._uiManager.hcmFilter;let w="white",A="#cfcfd8";this._uiManager.hcmFilter!=="none"?A="black":Fg.isDarkMode&&(w="#8f8f9d",A="#42414d");let x=15,S=x*o.sx,E=x*o.sy,C=new OffscreenCanvas(S*2,E*2),_=C.getContext("2d");_.fillStyle=w,_.fillRect(0,0,S*2,E*2),_.fillStyle=A,_.fillRect(0,0,S,E),_.fillRect(S,E,S,E),v.fillStyle=v.createPattern(C,"repeat"),v.fillRect(0,0,b,y),v.drawImage(l,0,0,l.width,l.height,0,0,b,y)}let p=null;if(n){let b,y;if(o.symmetric&&l.width<e&&l.height<e)b=l.width,y=l.height;else if(l=i(this,Lt),r>e||a>e){let A=Math.min(e/r,e/a);b=Math.floor(r*A),y=Math.floor(a*A),i(this,xs)||(l=m(this,at,Jf).call(this,b,y))}let w=new OffscreenCanvas(b,y).getContext("2d",{willReadFrequently:!0});w.drawImage(l,0,0,l.width,l.height,0,0,b,y),p={width:b,height:y,data:w.getImageData(0,0,b,y).data}}return{canvas:u,width:c,height:d,imageData:p}}static async deserialize(e,s,n){let r=null,a=!1;if(e instanceof vp){let{data:{rect:w,rotation:A,id:x,structParent:S,popupRef:E,richText:C,contentsObj:_,creationDate:k,modificationDate:P},container:I,parent:{page:{pageNumber:F}},canvas:B}=e,H,L;B?(delete e.canvas,{id:H,bitmap:L}=n.imageManager.getFromCanvas(I.id,B),B.remove()):(a=!0,e._hasNoCanvas=!0);let X=(await s._structTree.getAriaAttributes(`${gl}${x}`))?.get("aria-label")||"";r=e={annotationType:K.STAMP,bitmapId:H,bitmap:L,pageIndex:F-1,rect:w.slice(0),rotation:A,annotationElementId:x,id:x,deleted:!1,accessibilityData:{decorative:!1,altText:X},isSvg:!1,structParent:S,popupRef:E,richText:C,comment:_?.str||null,creationDate:k,modificationDate:P}}let o=await super.deserialize(e,s,n),{rect:l,bitmap:c,bitmapUrl:d,bitmapId:u,isSvg:p,accessibilityData:b}=e;a?(n.addMissingCanvas(e.id,o),f(o,Wo,!0)):u&&n.imageManager.isValidId(u)?(f(o,be,u),c&&f(o,Lt,c)):f(o,Bn,d),f(o,xs,p);let[y,v]=o.pageDimensions;return o.width=(l[2]-l[0])/y,o.height=(l[3]-l[1])/v,b&&(o.altTextData=b),o._initialData=r,e.comment&&o.setCommentData(e),f(o,Uc,!!r),o}serialize(e=!1,s=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let n=Object.assign(super.serialize(e),{bitmapId:i(this,be),isSvg:i(this,xs)});if(this.addComment(n),e)return n.bitmapUrl=m(this,at,Zf).call(this,!0),n.accessibilityData=this.serializeAltText(!0),n.isCopy=!0,n;let{decorative:r,altText:a}=this.serializeAltText(!1);if(!r&&a&&(n.accessibilityData={type:"Figure",alt:a}),this.annotationElementId){let l=m(this,at,$w).call(this,n);return l.isSame?null:(l.isSameAltText?delete n.accessibilityData:n.accessibilityData.structParent=this._initialData.structParent??-1,n.id=this.annotationElementId,delete n.bitmapId,n)}if(s===null)return n;s.stamps||(s.stamps=new Map);let o=i(this,xs)?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(!s.stamps.has(i(this,be)))s.stamps.set(i(this,be),{area:o,serialized:n}),n.bitmap=m(this,at,Zf).call(this,!1);else if(i(this,xs)){let l=s.stamps.get(i(this,be));o>l.area&&(l.area=o,l.serialized.bitmap.close(),l.serialized.bitmap=m(this,at,Zf).call(this,!1))}return n}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}};Lt=new WeakMap,be=new WeakMap,qr=new WeakMap,Bn=new WeakMap,Kr=new WeakMap,Hc=new WeakMap,zn=new WeakMap,Wo=new WeakMap,qi=new WeakMap,xs=new WeakMap,Uc=new WeakMap,at=new WeakSet,Ih=function(e,s=!1){if(!e){this.remove();return}f(this,Lt,e.bitmap),s||(f(this,be,e.id),f(this,xs,e.isSvg)),e.file&&f(this,Hc,e.file.name),m(this,at,Qf).call(this)},Lh=function(){if(f(this,qr,null),this._uiManager.enableWaiting(!1),!!i(this,zn)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&i(this,Lt)){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&i(this,Lt)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},Kf=function(){if(i(this,be)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(i(this,be)).then(n=>m(this,at,Ih).call(this,n,!0)).finally(()=>m(this,at,Lh).call(this));return}if(i(this,Bn)){let n=i(this,Bn);f(this,Bn,null),this._uiManager.enableWaiting(!0),f(this,qr,this._uiManager.imageManager.getFromUrl(n).then(r=>m(this,at,Ih).call(this,r)).finally(()=>m(this,at,Lh).call(this)));return}if(i(this,Kr)){let n=i(this,Kr);f(this,Kr,null),this._uiManager.enableWaiting(!0),f(this,qr,this._uiManager.imageManager.getFromFile(n).then(r=>m(this,at,Ih).call(this,r)).finally(()=>m(this,at,Lh).call(this)));return}let e=document.createElement("input");e.type="file",e.accept=np.join(",");let s=this._uiManager._signal;f(this,qr,new Promise(n=>{e.addEventListener("change",async()=>{if(!e.files||e.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);let r=await this._uiManager.imageManager.getFromFile(e.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),m(this,at,Ih).call(this,r)}n()},{signal:s}),e.addEventListener("cancel",()=>{this.remove(),n()},{signal:s})}).finally(()=>m(this,at,Lh).call(this))),e.click()},Qf=function(){let{div:e}=this,{width:s,height:n}=i(this,Lt),[r,a]=this.pageDimensions,o=.75;if(this.width)s=this.width*r,n=this.height*a;else if(s>o*r||n>o*a){let c=Math.min(o*r/s,o*a/n);s*=c,n*=c}this._uiManager.enableWaiting(!1);let l=f(this,zn,document.createElement("canvas"));l.setAttribute("role","img"),this.addContainer(l),this.width=s/r,this.height=n/a,this.setDims(),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(e.hidden=!1),m(this,at,Ay).call(this),i(this,Uc)||(this.parent.addUndoableEditor(this),f(this,Uc,!0)),this._reportTelemetry({action:"inserted_image"}),i(this,Hc)&&this.div.setAttribute("aria-description",i(this,Hc)),this.annotationElementId||this._uiManager.a11yAlert(wt._l10nAlert.stamp)},Jf=function(e,s){let{width:n,height:r}=i(this,Lt),a=n,o=r,l=i(this,Lt);for(;a>2*e||o>2*s;){let c=a,d=o;a>2*e&&(a=Math.ceil(a/2)),o>2*s&&(o=Math.ceil(o/2));let u=new OffscreenCanvas(a,o);u.getContext("2d").drawImage(l,0,0,c,d,0,0,a,o),l=u.transferToImageBitmap()}return l},Ay=function(){let[e,s]=this.parentDimensions,{width:n,height:r}=this,a=new vi,o=Math.ceil(n*e*a.sx),l=Math.ceil(r*s*a.sy),c=i(this,zn);if(!c||c.width===o&&c.height===l)return;c.width=o,c.height=l;let d=i(this,xs)?i(this,Lt):m(this,at,Jf).call(this,o,l),u=c.getContext("2d");u.filter=this._uiManager.hcmFilter,u.drawImage(d,0,0,d.width,d.height,0,0,o,l)},Zf=function(e){if(e){if(i(this,xs)){let r=this._uiManager.imageManager.getSvgUrl(i(this,be));if(r)return r}let s=document.createElement("canvas");return{width:s.width,height:s.height}=i(this,Lt),s.getContext("2d").drawImage(i(this,Lt),0,0),s.toDataURL()}if(i(this,xs)){let[s,n]=this.pageDimensions,r=Math.round(this.width*s*Yn.PDF_TO_CSS_UNITS),a=Math.round(this.height*n*Yn.PDF_TO_CSS_UNITS),o=new OffscreenCanvas(r,a);return o.getContext("2d").drawImage(i(this,Lt),0,0,i(this,Lt).width,i(this,Lt).height,0,0,r,a),o.transferToImageBitmap()}return structuredClone(i(this,Lt))},$w=function(e){let{pageIndex:s,accessibilityData:{altText:n}}=this._initialData,r=e.pageIndex===s,a=(e.accessibilityData?.alt||"")===n;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&r&&a,isSameAltText:a}},T(Dh,"_type","stamp"),T(Dh,"_editorType",K.STAMP);ei=class ei{constructor({uiManager:t,pageIndex:e,div:s,structTreeLayer:n,accessibilityManager:r,annotationLayer:a,drawLayer:o,textLayer:l,viewport:c,l10n:d}){g(this,At);g(this,Xo);g(this,$c,!1);g(this,Qr,null);g(this,Jr,null);g(this,Hn,null);g(this,ss,new Map);g(this,Zr,!1);g(this,Gc,!1);g(this,jc,!1);g(this,gi,null);g(this,Un,null);g(this,is,null);g(this,$n,null);g(this,ta,null);g(this,Vc,-1);g(this,z);let u=[...i(ei,ea).values()];if(!ei._initialized){ei._initialized=!0;for(let p of u)p.initialize(d,t)}t.registerEditorTypes(u),f(this,z,t),this.pageIndex=e,this.div=s,f(this,Xo,r),f(this,Qr,a),this.viewport=c,f(this,is,l),this.drawLayer=o,this._structTree=n,i(this,z).addLayer(this)}get isEmpty(){return i(this,ss).size===0}get isInvisible(){return this.isEmpty&&i(this,z).getMode()===K.NONE}updateToolbar(t){i(this,z).updateToolbar(t)}updateMode(t=i(this,z).getMode()){switch(m(this,At,tp).call(this),t){case K.NONE:this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case K.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case K.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);let{classList:e}=this.div;if(e.toggle("nonEditing",!1),t===K.POPUP)e.toggle("commentEditing",!0);else{e.toggle("commentEditing",!1);for(let s of i(ei,ea).values())e.toggle(`${s._type}Editing`,t===s._editorType)}this.div.hidden=!1}hasTextLayer(t){return t===i(this,is)?.div}setEditingState(t){i(this,z).setEditingState(t)}addCommands(t){i(this,z).addCommands(t)}cleanUndoStack(t){i(this,z).cleanUndoStack(t)}toggleDrawing(t=!1){this.div.classList.toggle("drawing",!t)}togglePointerEvents(t=!1){this.div.classList.toggle("disabled",!t)}toggleAnnotationLayerPointerEvents(t=!1){i(this,Qr)?.togglePointerEvents(t)}async enable(){f(this,jc,!0),this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),i(this,ta)?.abort(),f(this,ta,null);let t=new Set;for(let s of i(this,At,xy))s.enableEditing(),s.show(!0),s.annotationElementId&&(i(this,z).removeChangedExistingAnnotation(s),t.add(s.annotationElementId));let e=i(this,Qr);if(e)for(let s of e.getEditableAnnotations()){if(s.hide(),i(this,z).isDeletedAnnotationElement(s.data.id)||t.has(s.data.id))continue;let n=await this.deserialize(s);n&&(this.addOrRebuild(n),n.enableEditing())}f(this,jc,!1),i(this,z)._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){if(f(this,Gc,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),i(this,is)&&!i(this,ta)){f(this,ta,new AbortController);let n=i(this,z).combinedSignal(i(this,ta));i(this,is).div.addEventListener("pointerdown",r=>{let{clientX:o,clientY:l,timeStamp:c}=r,d=i(this,Vc);if(c-d>500){f(this,Vc,c);return}f(this,Vc,-1);let{classList:u}=this.div;u.toggle("getElements",!0);let p=document.elementsFromPoint(o,l);if(u.toggle("getElements",!1),!this.div.contains(p[0]))return;let b,y=new RegExp(`^${Yc}[0-9]+$`);for(let w of p)if(y.test(w.id)){b=w.id;break}if(!b)return;let v=i(this,ss).get(b);v?.annotationElementId===null&&(se(r),v.dblclick(r))},{signal:n,capture:!0})}let t=i(this,Qr),e=[];if(t){let n=new Map,r=new Map;for(let a of i(this,At,xy)){if(a.disableEditing(),!a.annotationElementId){e.push(a);continue}if(a.serialize()!==null){n.set(a.annotationElementId,a);continue}else r.set(a.annotationElementId,a);this.getEditableAnnotation(a.annotationElementId)?.show(),a.remove()}for(let a of t.getEditableAnnotations()){let{id:o}=a.data;if(i(this,z).isDeletedAnnotationElement(o)){a.updateEdited({deleted:!0});continue}let l=r.get(o);if(l){l.resetAnnotationElement(a),l.show(!1),a.show();continue}l=n.get(o),l&&(i(this,z).addChangedExistingAnnotation(l),l.renderAnnotationElement(a)&&l.show(!1)),a.show()}}m(this,At,tp).call(this),this.isEmpty&&(this.div.hidden=!0);let{classList:s}=this.div;for(let n of i(ei,ea).values())s.remove(`${n._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),t?.updateFakeAnnotations(e),f(this,Gc,!1)}getEditableAnnotation(t){return i(this,Qr)?.getEditableAnnotation(t)||null}setActiveEditor(t){i(this,z).getActive()!==t&&i(this,z).setActiveEditor(t)}enableTextSelection(){if(this.div.tabIndex=-1,i(this,is)?.div&&!i(this,$n)){f(this,$n,new AbortController);let t=i(this,z).combinedSignal(i(this,$n));i(this,is).div.addEventListener("pointerdown",m(this,At,Gw).bind(this),{signal:t}),i(this,is).div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,i(this,is)?.div&&i(this,$n)&&(i(this,$n).abort(),f(this,$n,null),i(this,is).div.classList.remove("highlighting"))}enableClick(){if(i(this,Jr))return;f(this,Jr,new AbortController);let t=i(this,z).combinedSignal(i(this,Jr));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:t});let e=this.pointerup.bind(this);this.div.addEventListener("pointerup",e,{signal:t}),this.div.addEventListener("pointercancel",e,{signal:t})}disableClick(){i(this,Jr)?.abort(),f(this,Jr,null)}attach(t){i(this,ss).set(t.id,t);let{annotationElementId:e}=t;e&&i(this,z).isDeletedAnnotationElement(e)&&i(this,z).removeDeletedAnnotationElement(t)}detach(t){i(this,ss).delete(t.id),i(this,Xo)?.removePointerInTextLayer(t.contentDiv),!i(this,Gc)&&t.annotationElementId&&i(this,z).addDeletedAnnotationElement(t)}remove(t){this.detach(t),i(this,z).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1}changeParent(t){t.parent!==this&&(t.parent&&t.annotationElementId&&(i(this,z).addDeletedAnnotationElement(t),wt.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),t.parent?.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}add(t){if(!(t.parent===this&&t.isAttachedToDOM)){if(this.changeParent(t),i(this,z).addEditor(t),this.attach(t),!t.isAttachedToDOM){let e=t.render();this.div.append(e),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(!i(this,jc)),i(this,z).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){if(!t.isAttachedToDOM)return;let{activeElement:e}=document;t.div.contains(e)&&!i(this,Hn)&&(t._focusEventsAllowed=!1,f(this,Hn,setTimeout(()=>{f(this,Hn,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:i(this,z)._signal}),e.focus())},0))),t._structTreeParentId=i(this,Xo)?.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?(t.parent||(t.parent=this),t.rebuild(),t.show()):this.add(t)}addUndoableEditor(t){let e=()=>t._uiManager.rebuild(t),s=()=>{t.remove()};this.addCommands({cmd:e,undo:s,mustExec:!1})}getEditorByUID(t){for(let e of i(this,ss).values())if(e.uid===t)return e;return null}combinedSignal(t){return i(this,z).combinedSignal(t)}canCreateNewEmptyEditor(){return i(this,At,Ei)?.canCreateNewEmptyEditor()}async pasteEditor(t,e){this.updateToolbar(t),await i(this,z).updateMode(t.mode);let{offsetX:s,offsetY:n}=m(this,At,Ey).call(this),r=i(this,z).getId(),a=m(this,At,Sy).call(this,{parent:this,id:r,x:s,y:n,uiManager:i(this,z),isCentered:!0,...e});a&&this.add(a)}async deserialize(t){return await i(ei,ea).get(t.annotationType??t.annotationEditorType)?.deserialize(t,this,i(this,z))||null}createAndAddNewEditor(t,e,s={}){let n=i(this,z).getId(),r=m(this,At,Sy).call(this,{parent:this,id:n,x:t.offsetX,y:t.offsetY,uiManager:i(this,z),isCentered:e,...s});return r&&this.add(r),r}get boundingClientRect(){return this.div.getBoundingClientRect()}addNewEditor(t={}){this.createAndAddNewEditor(m(this,At,Ey).call(this),!0,t)}setSelected(t){i(this,z).setSelected(t)}toggleSelected(t){i(this,z).toggleSelected(t)}unselect(t){i(this,z).unselect(t)}pointerup(t){let{isMac:e}=lt.platform;if(t.button!==0||t.ctrlKey&&e||t.target!==this.div||!i(this,Zr)||(f(this,Zr,!1),i(this,At,Ei)?.isDrawer&&i(this,At,Ei).supportMultipleDrawings))return;if(!i(this,$c)){f(this,$c,!0);return}let s=i(this,z).getMode();if(s===K.STAMP||s===K.POPUP||s===K.SIGNATURE){i(this,z).unselectAll();return}this.createAndAddNewEditor(t,!1)}pointerdown(t){if(i(this,z).getMode()===K.HIGHLIGHT&&this.enableTextSelection(),i(this,Zr)){f(this,Zr,!1);return}let{isMac:e}=lt.platform;if(t.button!==0||t.ctrlKey&&e||t.target!==this.div)return;if(f(this,Zr,!0),i(this,At,Ei)?.isDrawer){this.startDrawingSession(t);return}let s=i(this,z).getActive();f(this,$c,!s||s.isEmpty())}startDrawingSession(t){if(this.div.focus({preventScroll:!0}),i(this,gi)){i(this,At,Ei).startDrawing(this,i(this,z),!1,t);return}i(this,z).setCurrentDrawingSession(this),f(this,gi,new AbortController);let e=i(this,z).combinedSignal(i(this,gi));this.div.addEventListener("blur",({relatedTarget:s})=>{s&&!this.div.contains(s)&&(f(this,Un,null),this.commitOrRemove())},{signal:e}),i(this,At,Ei).startDrawing(this,i(this,z),!1,t)}pause(t){if(t){let{activeElement:e}=document;this.div.contains(e)&&f(this,Un,e);return}i(this,Un)&&setTimeout(()=>{i(this,Un)?.focus(),f(this,Un,null)},0)}endDrawingSession(t=!1){return i(this,gi)?(i(this,z).setCurrentDrawingSession(null),i(this,gi).abort(),f(this,gi,null),f(this,Un,null),i(this,At,Ei).endDrawing(t)):null}findNewParent(t,e,s){let n=i(this,z).findParent(e,s);return n===null||n===this?!1:(n.changeParent(t),!0)}commitOrRemove(){return i(this,gi)?(this.endDrawingSession(),!0):!1}onScaleChanging(){i(this,gi)&&i(this,At,Ei).onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),i(this,z).getActive()?.parent===this&&(i(this,z).commitOrRemove(),i(this,z).setActiveEditor(null)),i(this,Hn)&&(clearTimeout(i(this,Hn)),f(this,Hn,null));for(let t of i(this,ss).values())i(this,Xo)?.removePointerInTextLayer(t.contentDiv),t.setParent(null),t.isAttachedToDOM=!1,t.div.remove();this.div=null,i(this,ss).clear(),i(this,z).removeLayer(this)}async render({viewport:t}){this.viewport=t,aa(this.div,t);for(let e of i(this,z).getEditors(this.pageIndex))this.add(e),e.rebuild();await i(this,z).findClonesForPage(this),this.div.hidden=this.isEmpty,this.updateMode()}update({viewport:t}){i(this,z).commitOrRemove(),m(this,At,tp).call(this);let e=this.viewport.rotation,s=t.rotation;if(this.viewport=t,aa(this.div,{rotation:s}),e!==s)for(let n of i(this,ss).values())n.rotate(s)}get pageDimensions(){let{pageWidth:t,pageHeight:e}=this.viewport.rawDims;return[t,e]}get scale(){return i(this,z).viewParameters.realScale}};Xo=new WeakMap,$c=new WeakMap,Qr=new WeakMap,Jr=new WeakMap,Hn=new WeakMap,ss=new WeakMap,Zr=new WeakMap,Gc=new WeakMap,jc=new WeakMap,gi=new WeakMap,Un=new WeakMap,is=new WeakMap,$n=new WeakMap,ta=new WeakMap,Vc=new WeakMap,z=new WeakMap,ea=new WeakMap,At=new WeakSet,xy=function(){return i(this,ss).size!==0?i(this,ss).values():i(this,z).getEditors(this.pageIndex)},Gw=function(t){i(this,z).unselectAll();let{target:e}=t;if(e===i(this,is).div||(e.getAttribute("role")==="img"||e.classList.contains("endOfContent")||e.classList.contains("textLayerImages")||e.classList.contains("textLayerImagePlaceholder"))&&i(this,is).div.contains(e)){let{isMac:s}=lt.platform;if(t.button!==0||t.ctrlKey&&s)return;i(this,z).showAllEditors("highlight",!0,!0),Ep.startDrawing(this,i(this,z),i(this,z).direction==="ltr",t),t.preventDefault()}},Ei=function(){return i(ei,ea).get(i(this,z).getMode())},Sy=function(t){let e=i(this,At,Ei);return e?new e.prototype.constructor(t):null},Ey=function(){let{x:t,y:e,width:s,height:n}=this.boundingClientRect,r=Math.max(0,t),a=Math.max(0,e),o=Math.min(window.innerWidth,t+s),l=Math.min(window.innerHeight,e+n),c=(r+o)/2-t,d=(a+l)/2-e,[u,p]=this.viewport.rotation%180===0?[c,d]:[d,c];return{offsetX:u,offsetY:p}},tp=function(){for(let t of i(this,ss).values())t.isEmpty()&&t.remove()},T(ei,"_initialized",!1),g(ei,ea,new Map([Qb,fy,Dh,Ep,wy].map(t=>[t._editorType,t])));_p=ei;V=class V{constructor({filterFactory:t=null,pageColors:e=null,pageIndex:s,textLayer:n=null}){g(this,tn);g(this,je,null);g(this,Ve,new Map);g(this,Xs,null);g(this,Uu,null);g(this,$u,null);g(this,Yo,null);g(this,qo,new Map);if(this.pageIndex=s,f(this,Uu,t),f(this,$u,e),n){let r=i(V,Gn).get(n);if(r?.selectionDiv&&(r.selectionDiv.remove(),i(V,ia).delete(r.selectionDiv)),i(V,Gn).set(n,{drawLayer:this}),i(V,ra).add(n),f(this,Xs,n),f(this,Yo,new MutationObserver(a=>{var o,l;if(!(!i(this,je)||!i(this,Xs)?.isConnected||!m(o=V,Fe,_y).call(o))){for(let{addedNodes:c}of a)for(let d of c)if(d.nodeType===Node.ELEMENT_NODE&&d.classList.contains("endOfContent")){m(l=V,Fe,ep).call(l);return}}})),i(this,Yo).observe(n,{childList:!0}),i(V,sa)===null){f(V,sa,new AbortController);let{signal:a}=i(V,sa);document.addEventListener("selectionchange",m(V,Fe,ep).bind(V),{signal:a}),document.addEventListener("pointerdown",()=>{f(V,na,!0)},{signal:a}),document.addEventListener("pointerup",()=>{f(V,na,!1)},{signal:a}),window.addEventListener("blur",()=>{f(V,na,!1)},{signal:a})}}}setParent(t){var e,s;if(!i(this,je)){f(this,je,t),i(this,Xs)?.isConnected&&m(e=V,Fe,_y).call(e)&&m(s=V,Fe,ep).call(s);return}if(i(this,je)!==t){if(i(this,Ve).size>0)for(let n of i(this,Ve).values())n.remove(),t.append(n);f(this,je,t)}}static get _svgFactory(){return G(this,"_svgFactory",new Zo)}draw(t,e=!1,s=!1){let n=Ft(V,Gu)._++,r=m(this,tn,Ty).call(this),a=V._svgFactory.createElement("defs");r.append(a);let o=V._svgFactory.createElement("path");a.append(o);let l=`path_${n}`;o.setAttribute("id",l),o.setAttribute("vector-effect","non-scaling-stroke"),e&&i(this,qo).set(n,o);let c=s?m(this,tn,Ww).call(this,a,l):null,d=V._svgFactory.createElement("use");return r.append(d),d.setAttribute("href",`#${l}`),this.updateProperties(r,t),i(this,Ve).set(n,r),{id:n,clipPathId:`url(#${c})`}}drawOutline(t,e){let s=Ft(V,Gu)._++,n=m(this,tn,Ty).call(this),r=V._svgFactory.createElement("defs");n.append(r);let a=V._svgFactory.createElement("path");r.append(a);let o=`path_${s}`;a.setAttribute("id",o),a.setAttribute("vector-effect","non-scaling-stroke");let l;if(e){let u=V._svgFactory.createElement("mask");r.append(u),l=`mask_${s}`,u.setAttribute("id",l),u.setAttribute("maskUnits","objectBoundingBox");let p=V._svgFactory.createElement("rect");u.append(p),p.setAttribute("width","1"),p.setAttribute("height","1"),p.setAttribute("fill","white");let b=V._svgFactory.createElement("use");u.append(b),b.setAttribute("href",`#${o}`),b.setAttribute("stroke","none"),b.setAttribute("fill","black"),b.setAttribute("fill-rule","nonzero"),b.classList.add("mask")}let c=V._svgFactory.createElement("use");n.append(c),c.setAttribute("href",`#${o}`),l&&c.setAttribute("mask",`url(#${l})`);let d=c.cloneNode();return n.append(d),c.classList.add("mainOutline"),d.classList.add("secondaryOutline"),this.updateProperties(n,t),i(this,Ve).set(s,n),s}finalizeDraw(t,e){i(this,qo).delete(t),this.updateProperties(t,e)}updateProperties(t,e){var l;if(!e)return;let{root:s,bbox:n,rootClass:r,path:a}=e,o=typeof t=="number"?i(this,Ve).get(t):t;if(o){if(s&&m(this,tn,ky).call(this,o,s),n&&m(l=V,Fe,Vw).call(l,o,n),r){let{classList:c}=o;for(let[d,u]of Object.entries(r))c.toggle(d,u)}if(a){let d=o.firstElementChild.firstElementChild;m(this,tn,ky).call(this,d,a)}}}updateParent(t,e){if(e===this)return;let s=i(this,Ve).get(t);s&&(i(e,je).append(s),i(this,Ve).delete(t),i(e,Ve).set(t,s))}remove(t){i(this,qo).delete(t),i(this,je)!==null&&(i(this,Ve).get(t).remove(),i(this,Ve).delete(t))}destroy(){var t;f(this,je,null);for(let e of i(this,Ve).values())e.remove();i(this,Ve).clear(),i(this,qo).clear(),i(this,Yo)?.disconnect(),f(this,Yo,null),i(this,Xs)&&(i(V,Gn).get(i(this,Xs))?.drawLayer===this&&(m(t=V,Fe,Cy).call(t,i(this,Xs)),i(V,Gn).delete(i(this,Xs)),i(V,ra).delete(i(this,Xs)),i(V,ra).size===0&&(i(V,sa)?.abort(),f(V,sa,null),f(V,na,!1))),f(this,Xs,null))}};je=new WeakMap,Ve=new WeakMap,Xs=new WeakMap,Uu=new WeakMap,$u=new WeakMap,Yo=new WeakMap,qo=new WeakMap,Gu=new WeakMap,tg=new WeakMap,sa=new WeakMap,ia=new WeakMap,na=new WeakMap,ra=new WeakMap,Gn=new WeakMap,Fe=new WeakSet,Cy=function(t){let e=i(this,Gn).get(t);e?.selectionDiv&&(e.selectionDiv.remove(),i(this,ia).delete(e.selectionDiv),e.selectionDiv=null,e.path=null)},_y=function(){let t=document.getSelection();return!!t&&!t.isCollapsed},jw=function(){return i(this,ra).keys().filter(t=>t.isConnected).toArray().sort(Ux)},ep=function(){let t=document.getSelection();if(!t||t.isCollapsed){for(let a of i(this,ia))a.remove();i(this,ia).clear();return}let e=new WeakMap,s=m(this,Fe,jw).call(this),n=[];for(let a=0,o=t.rangeCount;a<o;a++){let l=t.getRangeAt(a);if(l.collapsed)continue;let{startContainer:c,startOffset:d,endContainer:u,endOffset:p}=l,b=uf(c),y=uf(u),v=b===null,w=y===null;if(i(this,na)&&v!==w)return;if(t.rangeCount===1){let{anchorNode:S,anchorOffset:E,focusNode:C,focusOffset:_}=t,k=uf(S),P=uf(C),I=$x(S,E,C,_);k&&P&&I!==null&&(I?(c=S,d=E,b=k,u=C,p=_,y=P):(c=C,d=_,b=P,u=S,p=E,y=k))}let A=s.filter(S=>l.intersectsNode(S));if(A.length===0)continue;let x=!1;if(b||(b=A[0],c=b,d=0,x=!0),y||(y=A.at(-1),u=y,p=y.childNodes.length,x=!0),u.nodeType===Node.ELEMENT_NODE){if(u.classList.contains("endOfContent")){let S=u.previousSibling;if(!S)continue;u=S,p=S.nodeType===Node.TEXT_NODE?S.textContent.length:S.childNodes.length}else if(u.classList.contains("textLayer")&&u.childNodes.length===p){let S=L0(u,p,y);if(!S)continue;u=S.container,p=S.offset}}if(c.nodeType===Node.ELEMENT_NODE){let S=L0(c,d,b);if(!S)continue;c=S.container,d=S.offset}if(b===y&&!x&&A.includes(b)){n.push([l,b]);continue}for(let S of A){let E=S.firstChild;if(!E)continue;let C=document.createRange();if(S===b?C.setStart(c,d):C.setStartBefore(E),S===y)C.setEnd(u,p);else{let _=S.lastChild;if(!_)continue;if(_.nodeType===Node.ELEMENT_NODE&&_.classList.contains("endOfContent")){let k=_.previousSibling;if(!k)continue;C.setEndAfter(k)}else C.setEndAfter(_)}C.collapsed||n.push([C,S])}}let r=new Set(n.map(a=>a[1]));for(let a of i(this,ra))r.has(a)||m(this,Fe,Cy).call(this,a);for(let[a,o]of n){let l=i(V,Gn).get(o);if(!l)continue;let c=e.get(o);if(!c){let y=o.getBoundingClientRect();c=(v,w,A,x)=>({x:(v-y.x)/y.width,y:(w-y.y)/y.height,width:A/y.width,height:x/y.height}),e.set(o,c)}let d=[];for(let{x:y,y:v,width:w,height:A}of a.getClientRects())w===0||A===0||({x:y,y:v,width:w,height:A}=c(y,v,w,A),!(w===1&&A===1)&&d.push(`M${y} ${v} h${w} v${A} h-${w} Z`));if(d.length===0)continue;let u=l.drawLayer,p=l.selectionDiv,b=l.path;if(!p){let y=`clip_selection_${Ft(V,tg)._++}`;p=document.createElement("div"),p.className="selection",p.style.clipPath=`url(#${y})`;let v=i(u,Uu)?.createSelectionStyle(i(u,$u));if(v)for(let[x,S]of Object.entries(v))p.style.setProperty(x,S);let w=V._svgFactory.create(1,1,!0);w.setAttribute("aria-hidden","true"),w.setAttribute("width","100%"),w.setAttribute("height","100%");let A=V._svgFactory.createElement("clipPath");A.setAttribute("id",y),A.setAttribute("clipPathUnits","objectBoundingBox"),b=V._svgFactory.createElement("path"),A.append(b),w.append(A),p.append(w),l.path=b,l.selectionDiv=p}i(u,je)&&p.parentNode!==i(u,je)&&(i(u,je).append(p),i(this,ia).add(p)),b.setAttribute("d",d.join(" "))}},Vw=function(t,[e,s,n,r]){let{style:a}=t;a.top=`${100*s}%`,a.left=`${100*e}%`,a.width=`${100*n}%`,a.height=`${100*r}%`},tn=new WeakSet,Ty=function(){let t=V._svgFactory.create(1,1,!0);return i(this,je).append(t),t.setAttribute("aria-hidden","true"),t},Ww=function(t,e){let s=V._svgFactory.createElement("clipPath");t.append(s);let n=`clip_${e}`;s.setAttribute("id",n),s.setAttribute("clipPathUnits","objectBoundingBox");let r=V._svgFactory.createElement("use");return s.append(r),r.setAttribute("href",`#${e}`),r.classList.add("clip"),n},ky=function(t,e){for(let[s,n]of Object.entries(e))n===null?t.removeAttribute(s):t.setAttribute(s,n)},g(V,Fe),g(V,Gu,0),g(V,tg,0),g(V,sa,null),g(V,ia,new Set),g(V,na,!1),g(V,ra,new Set),g(V,Gn,new WeakMap);Tp=V;Hh=class Hh{constructor(t,e,s,n){g(this,eg);g(this,Wc,[]);g(this,ju,new Map);g(this,Vu,null);g(this,Xc,0);g(this,Ki,0);g(this,Qi,0);f(this,Xc,t),f(this,Wc,e),f(this,Ki,s.rawDims.pageWidth),f(this,Qi,s.rawDims.pageHeight),f(this,Vu,n)}render(){let t=document.createElement("div");t.className="textLayerImages";for(let e=0;e<i(this,Wc).length;e+=6){let s=m(this,eg,Xw).call(this,i(this,Wc).subarray(e,e+6));s&&t.append(s)}return t.addEventListener("contextmenu",e=>{if(!(e.target instanceof HTMLCanvasElement))return;let s=e.target,n=i(this,ju).get(s);if(!n)return;let r=i(Hh,Wu)?.deref();if(r===s)return;r&&(r.width=0,r.height=0),f(Hh,Wu,new WeakRef(s));let{inverseTransform:a,x1:o,y1:l,width:c,height:d}=n,u=i(this,Vu).call(this),p=Math.ceil(o*u.width),b=Math.ceil(l*u.height),y=Math.floor((o+c/i(this,Ki))*u.width),v=Math.floor((l+d/i(this,Qi))*u.height);s.width=y-p,s.height=v-b;let w=s.getContext("2d");w.setTransform(...a),w.translate(-p,-b),w.drawImage(u,0,0)}),t}};Wc=new WeakMap,ju=new WeakMap,Vu=new WeakMap,Xc=new WeakMap,Ki=new WeakMap,Qi=new WeakMap,Wu=new WeakMap,eg=new WeakSet,Xw=function([t,e,s,n,r,a]){let o=Math.hypot((r-t)*i(this,Ki),(a-e)*i(this,Qi)),l=Math.hypot((s-t)*i(this,Ki),(n-e)*i(this,Qi));if(o<i(this,Xc)||l<i(this,Xc))return null;let c=[(r-t)*i(this,Ki)/o,(a-e)*i(this,Qi)/o,(s-t)*i(this,Ki)/l,(n-e)*i(this,Qi)/l,0,0],d=D.inverseTransform(c),u=document.createElement("canvas");return u.className="textLayerImagePlaceholder",u.width=0,u.height=0,Object.assign(u.style,{opacity:0,position:"absolute",left:ff(t),top:ff(e),width:ff(o/i(this,Ki)),height:ff(l/i(this,Qi)),transformOrigin:"0% 0%",transform:`matrix(${c.join(",")})`}),i(this,ju).set(u,{inverseTransform:d,width:o,height:l,x1:t,y1:e}),u},g(Hh,Wu,null);kp=Hh;globalThis._pdfjsTestingUtils={HighlightOutliner:sd};globalThis.pdfjsLib={AbortException:yi,AnnotationEditorLayer:_p,AnnotationEditorParamsType:it,AnnotationEditorType:K,AnnotationEditorUIManager:oa,AnnotationLayer:Ap,AnnotationMode:jn,AnnotationType:Pt,applyOpacity:H0,build:iw,ColorPicker:Kh,createValidAbsoluteUrl:My,CSSConstants:rp,DOMSVGFactory:Zo,DrawLayer:Tp,FeatureTest:lt,fetchData:ag,findContrastColor:U0,getDocument:Zv,getFilenameFromUrl:B0,getPdfFilenameFromUrl:z0,getRGB:oh,getRGBA:ah,getUuid:Dy,GlobalWorkerOptions:Ys,ImageKind:Oh,InvalidPDFException:Kc,isDataScheme:Yu,isPdfFile:og,isValidExplicitDest:Sv,makeArr:nl,makeMap:rg,makeObj:sp,makeSet:F0,MathClamp:Ct,noContextMenu:Js,normalizeUnicode:N0,OPS:mi,OutputScale:vi,PasswordException:qc,PasswordResponses:R0,PDFDataRangeTransport:qh,PDFDateString:Ko,PDFWorker:ih,PermissionFlag:O0,PixelsPerInch:Yn,RenderingCancelledException:Qc,renderRichText:Iy,ResponseException:Qo,setLayerDimensions:aa,shadow:G,SignatureExtractor:qs,stopEvent:se,SupportedImageMimeTypes:np,TextLayer:sh,TextLayerImages:kp,TouchManager:Gh,updateUrlHash:Py,Util:D,VerbosityLevel:Xu,version:sw,XfaLayer:vl}});var Zw=sn((zS,Jw)=>{var BS=require("react"),qu=null,Kw=!1;function Qw(){if(qu)return qu;if(qu=(qw(),AA(Yw)),!Kw&&typeof Worker<"u")try{let h=new Blob(['(()=>{var Cj=Object.defineProperty;var Hj=Object.getPrototypeOf;var Bj=Reflect.get;var s3=e=>{throw TypeError(e)};var Tj=(e,t,s)=>t in e?Cj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Y=(e,t,s)=>Tj(e,typeof t!="symbol"?t+"":t,s),Wu=(e,t,s)=>t.has(e)||s3("Cannot "+s);var S=(e,t,s)=>(Wu(e,t,"read from private field"),s?s.call(e):t.get(e)),at=(e,t,s)=>t.has(e)?s3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Bt=(e,t,s,n)=>(Wu(e,t,"write to private field"),n?n.call(e,s):t.set(e,s),s),N=(e,t,s)=>(Wu(e,t,"access private method"),s);var pe=(e,t,s,n)=>({set _(a){Bt(e,t,a,s)},get _(){return S(e,t,n)}}),n3=(e,t,s)=>Bj(Hj(e),s,t);var Sj={};var Rj=!(typeof process!="object"||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&process.type!=="browser"),Xa=[1/0,1/0,-1/0,-1/0],k1=new Float32Array(Xa),Ri=[.001,0,0,.001,0,0],a3=.35/1.35,Fi="http://www.w3.org/2000/svg",i3=1,yl=2,r3=4,o3=8,Cu=16,Fj=64,Mj=128,zj=256,l4="pdfjs_internal_editor_",l3=3,f3=9,c3=13,h3=15,u3=101,Dj={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},S0=1,vl=2,Vu=3,Oj=0,Nj=4,q1=1,Yo=2,sa=3,f4={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26,RICHMEDIA:27},c4="Group",_j="R",Pj=0,Uj=4,zc=1,Ia=2,sr=4,Lj=16,qr=32,Ej=128,Kj=512,Wj=1,Vj=2,$j=4096,Gj=8192,Xj=32768,Yj=65536,Jj=131072,Qj=1048576,Zj=2097152,tk=8388608,ek=16777216,m3=1,sk=2,nk=3,ak=4,ik=5,h4={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},rk={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},ok={O:"PageOpen",C:"PageClose"},u4=1,A0=5,lk=1,m4=2,fk=3,ck=4,hk=5,p4=6,d4=7,uk=8,Wa=9,Hn=10,Vs=11,wa=12,y1=13,I0=14,C0=15,H0=16,B0=17,T0=18,R0=19,b5=20,v1=21,F0=22,g4=23,w5=24,j5=25,x1=26,S1=27,M0=28,mk=29,pk=30,A1=31,xl=32,z0=33,D0=34,b4=35,w4=36,Ga=37,j4=38,k4=39,q4=40,y4=41,Ui=42,Zc=43,oa=44,I1=45,C1=46,H1=47,v4=48,O0=49,k5=50,Hu=51,q5=52,B1=53,Bu=54,T1=55,y5=56,Sc=57,Ca=58,zn=59,v5=60,Ac=61,R1=62,dk=63,gk=64,x4=65,N0=66,S4=67,A4=68,_0=69,Dn=70,Va=71,I4=72,C4=73,P0=74,p3=75,H4=76,bk=77,x5=80,B4=81,ao=83,wk=84,U0=85,F1=86,T4=87,jk=88,kk=89,qk=90,Mi=91,yk=92,vk=93,xk=94,wi=0,xn=1,Jo=2,Sk=3,_o=4,L0=1,Ak=2,Tu=u4;function Ik(){return Tu}function ie(e){Tu>=A0&&console.info(`Info: ${e}`)}function F(e){Tu>=u4&&console.warn(`Warning: ${e}`)}function Zt(e){throw new Error(e)}function Ae(e,t){e||Zt(t)}function M1(e,t=null,s=null){if(!e)return null;if(s&&typeof e=="string"&&(s.addDefaultProtocol&&e.startsWith("www.")&&e.match(/\\./g)?.length>=2&&(e=`http://${e}`),s.tryConvertEncoding))try{e=io(e)}catch{}let n=t?URL.parse(e,t):URL.parse(e);return(function(i){switch(i?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}})(n)?n:null}function yt(e,t,s,n=!1){return Object.defineProperty(e,t,{value:s,enumerable:!n,configurable:!0,writable:!1}),s}var Bs=(function(){function t(s,n){this.message=s,this.name=n}return t.prototype=new Error,t.constructor=t,t})(),Cn=class extends Bs{constructor(t,s){super(t,"PasswordException"),this.code=s}},Qo=class extends Bs{constructor(t,s){super(t,"UnknownErrorException"),this.details=s}},Li=class extends Bs{constructor(t){super(t,"InvalidPDFException")}},z1=class extends Bs{constructor(t,s,n){super(t,"ResponseException"),this.status=s,this.missing=n}},nt=class extends Bs{constructor(t){super(t,"FormatError")}},Ye=class extends Bs{constructor(t){super(t,"AbortException")}};function Cs(e){typeof e=="object"&&e?.length!==void 0||Zt("Invalid argument for bytesToString");let t=e.length,s=8192;if(t<s)return String.fromCharCode.apply(null,e);let n=[];for(let a=0;a<t;a+=s){let i=Math.min(a+s,t),o=e.subarray(a,i);n.push(String.fromCharCode.apply(null,o))}return n.join("")}function Ce(e){typeof e!="string"&&Zt("Invalid argument for stringToBytes");let t=e.length,s=new Uint8Array(t);for(let n=0;n<t;++n)s[n]=255&e.charCodeAt(n);return s}var us=class{static get isLittleEndian(){let t=new Uint8Array(4);return t[0]=1,yt(this,"isLittleEndian",new Uint32Array(t.buffer,0,1)[0]===1)}static get isOffscreenCanvasSupported(){return yt(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return yt(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get isFloat16ArraySupported(){return yt(this,"isFloat16ArraySupported",typeof Float16Array<"u")}static get isSanitizerSupported(){return yt(this,"isSanitizerSupported",typeof Sanitizer<"u")}static get platform(){let{platform:t,userAgent:s}=navigator;return yt(this,"platform",{isAndroid:s.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:s.includes("Firefox")})}static get isCanvasFilterSupported(){let t;return this.isOffscreenCanvasSupported&&(t=new OffscreenCanvas(1,1).getContext("2d")),yt(this,"isCanvasFilterSupported",t?.filter!==void 0)}static get isAlphaColorInputSupported(){return yt(this,"isAlphaColorInputSupported",!1)}static get isBackdropFilterSupported(){return yt(this,"isBackdropFilterSupported",typeof CSS<"u"&&CSS.supports("backdrop-filter","blur(1px)"))}},ba,t1,E0,ee=class{static get hexNums(){return yt(this,"hexNums",Array.from({length:256},(t,s)=>s.toString(16).padStart(2,"0")))}static makeHexColor(t,s,n){return`#${this.hexNums[t]}${this.hexNums[s]}${this.hexNums[n]}`}static transform(t,s){return[t[0]*s[0]+t[2]*s[1],t[1]*s[0]+t[3]*s[1],t[0]*s[2]+t[2]*s[3],t[1]*s[2]+t[3]*s[3],t[0]*s[4]+t[2]*s[5]+t[4],t[1]*s[4]+t[3]*s[5]+t[5]]}static multiplyByDOMMatrix(t,s){return[t[0]*s.a+t[2]*s.b,t[1]*s.a+t[3]*s.b,t[0]*s.c+t[2]*s.d,t[1]*s.c+t[3]*s.d,t[0]*s.e+t[2]*s.f+t[4],t[1]*s.e+t[3]*s.f+t[5]]}static applyTransform(t,s,n=0){let a=t[n],i=t[n+1];t[n]=a*s[0]+i*s[2]+s[4],t[n+1]=a*s[1]+i*s[3]+s[5]}static applyTransformToBezier(t,s,n=0){let a=s[0],i=s[1],o=s[2],r=s[3],l=s[4],f=s[5];for(let c=0;c<6;c+=2){let h=t[n+c],m=t[n+c+1];t[n+c]=h*a+m*o+l,t[n+c+1]=h*i+m*r+f}}static applyInverseTransform(t,s){let n=t[0],a=t[1],i=s[0]*s[3]-s[1]*s[2];t[0]=(n*s[3]-a*s[2]+s[2]*s[5]-s[4]*s[3])/i,t[1]=(-n*s[1]+a*s[0]+s[4]*s[1]-s[5]*s[0])/i}static axialAlignedBoundingBox(t,s,n){let a=s[0],i=s[1],o=s[2],r=s[3],l=s[4],f=s[5],c=t[0],h=t[1],m=t[2],u=t[3],d=a*c+l,p=d,g=a*m+l,b=g,w=r*h+f,k=w,q=r*u+f,y=q;if(i!==0||o!==0){let v=i*c,A=i*m,x=o*h,I=o*u;d+=x,b+=x,g+=I,p+=I,w+=v,y+=v,q+=A,k+=A}n[0]=Math.min(n[0],d,g,p,b),n[1]=Math.min(n[1],w,q,k,y),n[2]=Math.max(n[2],d,g,p,b),n[3]=Math.max(n[3],w,q,k,y)}static inverseTransform(t){let s=t[0]*t[3]-t[1]*t[2];return[t[3]/s,-t[1]/s,-t[2]/s,t[0]/s,(t[2]*t[5]-t[4]*t[3])/s,(t[4]*t[1]-t[5]*t[0])/s]}static singularValueDecompose2dScale(t,s){let n=t[0],a=t[1],i=t[2],o=t[3],r=n**2+a**2,l=n*i+a*o,f=i**2+o**2,c=(r+f)/2,h=Math.sqrt(c**2-(r*f-l**2));s[0]=Math.sqrt(c+h||1),s[1]=Math.sqrt(c-h||1)}static normalizeRect(t){let s=t.slice(0);return t[0]>t[2]&&(s[0]=t[2],s[2]=t[0]),t[1]>t[3]&&(s[1]=t[3],s[3]=t[1]),s}static intersect(t,s){let n=Math.max(Math.min(t[0],t[2]),Math.min(s[0],s[2])),a=Math.min(Math.max(t[0],t[2]),Math.max(s[0],s[2]));if(n>a)return null;let i=Math.max(Math.min(t[1],t[3]),Math.min(s[1],s[3])),o=Math.min(Math.max(t[1],t[3]),Math.max(s[1],s[3]));return i>o?null:[n,i,a,o]}static pointBoundingBox(t,s,n){n[0]=Math.min(n[0],t),n[1]=Math.min(n[1],s),n[2]=Math.max(n[2],t),n[3]=Math.max(n[3],s)}static rectBoundingBox(t,s,n,a,i){i[0]=Math.min(i[0],t,n),i[1]=Math.min(i[1],s,a),i[2]=Math.max(i[2],t,n),i[3]=Math.max(i[3],s,a)}static bezierBoundingBox(t,s,n,a,i,o,r,l,f){f[0]=Math.min(f[0],t,r),f[1]=Math.min(f[1],s,l),f[2]=Math.max(f[2],t,r),f[3]=Math.max(f[3],s,l),N(this,ba,E0).call(this,t,n,i,r,s,a,o,l,3*(3*(n-i)-t+r),6*(t-2*n+i),3*(n-t),f),N(this,ba,E0).call(this,t,n,i,r,s,a,o,l,3*(3*(a-o)-s+l),6*(s-2*a+o),3*(a-s),f)}};ba=new WeakSet,t1=function(t,s,n,a,i,o,r,l,f,c){if(f<=0||f>=1)return;let h=1-f,m=f*f,u=m*f,d=h*(h*(h*t+3*f*s)+3*m*n)+u*a,p=h*(h*(h*i+3*f*o)+3*m*r)+u*l;c[0]=Math.min(c[0],d),c[1]=Math.min(c[1],p),c[2]=Math.max(c[2],d),c[3]=Math.max(c[3],p)},E0=function(t,s,n,a,i,o,r,l,f,c,h,m){if(Math.abs(f)<1e-12){Math.abs(c)>=1e-12&&N(this,ba,t1).call(this,t,s,n,a,i,o,r,l,-h/c,m);return}let u=c**2-4*h*f;if(u<0)return;let d=Math.sqrt(u),p=2*f;N(this,ba,t1).call(this,t,s,n,a,i,o,r,l,(-c+d)/p,m),N(this,ba,t1).call(this,t,s,n,a,i,o,r,l,(-c-d)/p,m)},at(ee,ba);function io(e){return decodeURIComponent(escape(e))}function K0(e){return unescape(encodeURIComponent(e))}function Ei(e,t){if(e.length!==t.length)return!1;for(let s=0,n=e.length;s<n;s++)if(e[s]!==t[s])return!1;return!0}var $u=null,d3=null,Ya=()=>[],Ck=()=>new Map,Hk=()=>Object.create(null),R4=()=>new Set;typeof Iterator.prototype.join!="function"&&(Iterator.prototype.join=function(e){return[...this].join(e)});var Bk=Symbol("CIRCULAR_REF"),fs=Symbol("EOF"),e1=Object.create(null),s1=Object.create(null),hr=Object.create(null),it=class e{constructor(t){this.name=t}static get(t){return s1[t]||(s1[t]=new e(t))}},Ve=class e{constructor(t){this.cmd=t}static get(t){return e1[t]||(e1[t]=new e(t))}},F4=()=>F4,xs,Mr,n1,dn=class dn{constructor(t=null){at(this,Mr);Y(this,"__nonSerializable__",F4);at(this,xs,new Map);Y(this,"objId",null);Y(this,"suppressEncryption",!1);Y(this,"xref");this.xref=t}assignXref(t){this.xref=t}get size(){return S(this,xs).size}get(t,s){return N(this,Mr,n1).call(this,!1,t,s)}async getAsync(t,s){return N(this,Mr,n1).call(this,!0,t,s)}getArray(t,s){let n=N(this,Mr,n1).call(this,!1,t,s);if(Array.isArray(n)){n=n.slice();for(let a=0,i=n.length;a<i;a++)n[a]instanceof rt&&this.xref&&(n[a]=this.xref.fetch(n[a],this.suppressEncryption))}return n}getRaw(t){return S(this,xs).get(t)}getKeys(){return S(this,xs).keys()}getRawValues(){return S(this,xs).values()}getRawEntries(){return S(this,xs).entries()}set(t,s){S(this,xs).set(t,s)}setIfNotExists(t,s){this.has(t)||this.set(t,s)}setIfNumber(t,s){typeof s=="number"&&this.set(t,s)}setIfArray(t,s){(Array.isArray(s)||ArrayBuffer.isView(s))&&this.set(t,s)}setIfDefined(t,s){s!=null&&this.set(t,s)}setIfName(t,s){typeof s=="string"?this.set(t,it.get(s)):s instanceof it&&this.set(t,s)}setIfDict(t,s){s instanceof dn&&this.set(t,s)}has(t){return S(this,xs).has(t)}*[Symbol.iterator](){for(let[t,s]of S(this,xs))yield[t,s instanceof rt&&this.xref?this.xref.fetch(s,this.suppressEncryption):s]}static get empty(){let t=new dn(null);return t.set=(s,n)=>{Zt("Should not call `set` on the empty dictionary.")},yt(this,"empty",t)}static merge({xref:t,dictArray:s,mergeSubDicts:n=!1}){let a=new dn(t),i=new Map;for(let o of s)if(o instanceof dn)for(let[r,l]of o.getRawEntries()){let f=i.getOrInsertComputed(r,Ya);(!f.length||n&&l instanceof dn)&&f.push(l)}for(let[o,r]of i){if(r.length===1||!(r[0]instanceof dn)){a.set(o,r[0]);continue}let l=new dn(t);for(let f of r)for(let[c,h]of f.getRawEntries())l.setIfNotExists(c,h);l.size>0&&a.set(o,l)}return i.clear(),a.size>0?a:dn.empty}clone(){let t=new dn(this.xref);for(let[s,n]of S(this,xs))t.set(s,n);return t}delete(t){S(this,xs).delete(t)}};xs=new WeakMap,Mr=new WeakSet,n1=function(t,s,n){let a=S(this,xs).get(s);return a===void 0&&n!==void 0&&(a=S(this,xs).get(n)),a instanceof rt&&this.xref?t?this.xref.fetchAsync(a,this.suppressEncryption):this.xref.fetch(a,this.suppressEncryption):a};var R=dn,mf,Qh=class Qh{constructor(t,s,n){at(this,mf);Bt(this,mf,t),this.num=s,this.gen=n}toString(){return S(this,mf)}static fromString(t){let s=hr[t];if(s)return s;let n=/^(\\d+)R(\\d*)$/.exec(t);if(!n||n[1]==="0")return null;let a=parseInt(n[1],10),i=n[2]?parseInt(n[2],10):0;return hr[t]=new Qh(t,a,i)}static get(t,s){let n=s===0?`${t}R`:`${t}R${s}`;return hr[n]||(hr[n]=new Qh(n,t,s))}};mf=new WeakMap;var rt=Qh,aa,re=class{constructor(t=null){at(this,aa,new Set);if(t)for(let s of t)S(this,aa).add(s)}has(t){return S(this,aa).has(t.toString())}put(t){S(this,aa).add(t.toString())}remove(t){S(this,aa).delete(t.toString())}[Symbol.iterator](){return S(this,aa).keys()}clear(){S(this,aa).clear()}};aa=new WeakMap;var Ms,Pe=class{constructor(){at(this,Ms,new Map)}get size(){return S(this,Ms).size}get(t){return S(this,Ms).get(t.toString())}has(t){return S(this,Ms).has(t.toString())}put(t,s){S(this,Ms).set(t.toString(),s)}putAlias(t,s){S(this,Ms).set(t.toString(),this.get(s))}getOrPutComputed(t,s){let n=S(this,Ms),a=t.toString();return n.has(a)||n.set(a,s(t)),n.get(a)}[Symbol.iterator](){return S(this,Ms).values()}clear(){S(this,Ms).clear()}*values(){yield*S(this,Ms).values()}*items(){for(let[t,s]of S(this,Ms))yield[rt.fromString(t),s]}*keys(){for(let t of S(this,Ms).keys())yield rt.fromString(t)}};Ms=new WeakMap;function $t(e,t){return e instanceof it&&(t===void 0||e.name===t)}function Qe(e,t){return e instanceof Ve&&(t===void 0||e.cmd===t)}function ro(e,t){return e instanceof R&&(t===void 0||$t(e.get("Type"),t))}function oo(e,t){return e.num===t.num&&e.gen===t.gen}var Et=class{get length(){Zt("Abstract getter `length` accessed")}get isEmpty(){Zt("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return yt(this,"isDataLoaded",!0)}getByte(){Zt("Abstract method `getByte` called")}getBytes(t){Zt("Abstract method `getBytes` called")}async getImageData(t,s){return this.getBytes(t,s)}async asyncGetBytes(){Zt("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get isImageStream(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(t,s){return null}peekByte(){let t=this.getByte();return t!==-1&&this.pos--,t}peekBytes(t){let s=this.getBytes(t);return this.pos-=s.length,s}getUint16(){let t=this.getByte(),s=this.getByte();return t===-1||s===-1?-1:(t<<8)+s}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(t,s){Zt("Abstract method `getByteRange` called")}getString(t){return Cs(this.getBytes(t))}skip(t){this.pos+=t||1}reset(){Zt("Abstract method `reset` called")}moveStart(){Zt("Abstract method `moveStart` called")}makeSubStream(t,s,n=null){Zt("Abstract method `makeSubStream` called")}clone(){Zt("Abstract method `clone` called")}getBaseStreams(){return null}getOriginalStream(){return this.stream?.getOriginalStream()||this}},W0=/\\p{Cc}/u;function g3(e){return(function(s){let n=s[0];if(s.length<2||n!==\'"\'&&n!=="\'"||s.at(-1)!==n)return!1;let a=s.length-1;for(let i=1;i<a;i++){let o=s[i];if(o===n||W0.test(o)||o==="\\\\"&&(++i>=a||W0.test(s[i])))return!1}return!0})(e)?e:`"${e.replaceAll(/["\\\\\\p{Cc}]/gu,t=>t===\'"\'||t==="\\\\"?`\\\\${t}`:`\\\\${t.codePointAt(0).toString(16)} `)}"`}function Ze(e){return e==null||(function(s){return typeof s=="string"&&(!s||/^[\\x00-\\x7F]*$/.test(s))})(e)?e:M4(e,!0)}function Tk(e){let t=[];for(let s=0,n=e.length;s<n;s++){let a=e.charCodeAt(s);t.push(ee.hexNums[a>>8&255],ee.hexNums[255&a])}return t.join("")}function M4(e,t=!1){let s=[];t&&s.push("\\xFE\\xFF");for(let n=0,a=e.length;n<a;n++){let i=e.charCodeAt(n);s.push(String.fromCharCode(i>>8&255),String.fromCharCode(255&i))}return s.join("")}var Rk=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],Gu=Object.create(null);function Jt(e,t=!1){if(e[0]>="\\xEF"){let n;if(e[0]==="\\xFE"&&e[1]==="\\xFF"?(n="utf-16be",e.length%2==1&&(e=e.slice(0,-1))):e[0]==="\\xFF"&&e[1]==="\\xFE"?(n="utf-16le",e.length%2==1&&(e=e.slice(0,-1))):e[0]==="\\xEF"&&e[1]==="\\xBB"&&e[2]==="\\xBF"&&(n="utf-8"),n)try{let a=Gu[n]??(Gu[n]=new TextDecoder(n,{fatal:!0})),i=Ce(e),o=a.decode(i);return t||!o.includes("\\x1B")?o:o.replaceAll(/\\x1b[^\\x1b]*(?:\\x1b|$)/g,"")}catch(a){F(`stringToPDFString: "${a}".`)}}let s=[];for(let n=0,a=e.length;n<a;n++){let i=e.charCodeAt(n);if(!t&&i===27){for(;++n<a&&e.charCodeAt(n)!==27;);continue}let o=Rk[i];s.push(o?String.fromCharCode(o):e.charAt(n))}return s.join("")}var z4=/^[1-9]\\.\\d$/,b3=2**31-1,an=[1,0,0,1,0,0],V0=["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"],$0=["ExtGState","Font","Properties","XObject"];function Se(e,t=!1){let s;return function(){return e&&(s=t?[]:Object.create(null),e(s),e=null),s}}var de=class extends Bs{constructor(t,s){super(`Missing data [${t}, ${s})`,"MissingDataException"),this.begin=t,this.end=s}},Sl=class extends Bs{constructor(t){super(t,"ParserEOFException")}},Pn=class extends Bs{constructor(t){super(t,"XRefEntryException")}},ha=class extends Bs{constructor(t){super(t,"XRefParseException")}};function D4(e){let t=e.length;if(t===0)return new Uint8Array(0);if(t===1)return new Uint8Array(e[0]);let s=0;for(let i=0;i<t;i++)s+=e[i].byteLength;let n=new Uint8Array(s),a=0;for(let i=0;i<t;i++){let o=new Uint8Array(e[i]);n.set(o,a),a+=o.byteLength}return n}async function G0(e){let t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch file "${e}" with "${t.statusText}".`);return t.bytes()}function rs({dict:e,key:t,getArray:s=!1,stopWhenFound:n=!0}){let a,i=new re;for(;e instanceof R&&(!e.objId||!i.has(e.objId));){e.objId&&i.put(e.objId);let o=s?e.getArray(t):e.get(t);if(o!==void 0){if(n)return o;(a||(a=[])).push(o)}e=e.get("Parent")}return a}function X0(e,t){if(e===t)return!0;if(e instanceof rt&&t instanceof rt)return oo(e,t);if(e instanceof it&&t instanceof it)return e.name===t.name;if(e instanceof R&&t instanceof R){if(e.size!==t.size)return!1;for(let[s,n]of e.getRawEntries()){let a=t.getRaw(s);if(a===void 0||!X0(n,a))return!1}return!0}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let s=0,n=e.length;s<n;s++)if(!X0(e[s],t[s]))return!1;return!0}return!1}var Xu=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function Fk(e,t=!1){Ae(Number.isInteger(e)&&e>0,"The number should be a positive integer.");let s="M".repeat(e/1e3|0)+Xu[e%1e3/100|0]+Xu[10+(e%100/10|0)]+Xu[20+e%10];return t?s.toLowerCase():s}function rn(e){return e===32||e===9||e===13||e===10}function Fe(e,t){return Array.isArray(e)?(t===null||e.length===t)&&e.every(s=>typeof s=="number"):ArrayBuffer.isView(e)&&!(e instanceof BigInt64Array||e instanceof BigUint64Array)&&(t===null||e.length===t)}function la(e,t){return Fe(e,6)?e:t}function Al(e,t){return Fe(e,4)?e:t}function Wn(e,t){return Fe(e,4)?ee.normalizeRect(e):t}function O4(e){let t=/^(.+)\\[(\\d+)\\]$/;return e.split(".").map(s=>{let n=s.match(t);return n?{name:n[1],pos:parseInt(n[2],10)}:{name:s,pos:0}})}function S5(e){let t=[],s=0;for(let n=0,a=e.length;n<a;n++){let i=e.charCodeAt(n);(i<33||i>126||i===35||i===40||i===41||i===60||i===62||i===91||i===93||i===123||i===125||i===47||i===37)&&(s<n&&t.push(e.substring(s,n)),t.push(`#${i.toString(16).padStart(2,"0")}`),s=n+1)}return t.length===0?e:(s<e.length&&t.push(e.substring(s)),t.join(""))}function lo(e){return e.replaceAll(/([()\\\\\\n\\r])/g,t=>t===`\n`?"\\\\n":t==="\\r"?"\\\\r":`\\\\${t}`)}function D1(e,t,s,n){if(!e)return;let a=null;if(e instanceof rt){if(n.has(e))return;a=e,n.put(a),e=t.fetch(e)}if(Array.isArray(e))for(let i of e)D1(i,t,s,n);else if(e instanceof R){if($t(e.get("S"),"JavaScript")){let i=e.get("JS"),o;i instanceof Et?o=i.getString():typeof i=="string"&&(o=i),o&&(o=Jt(o,!0).replaceAll("\\0","")),o&&s.push(o.trim())}D1(e.getRaw("Next"),t,s,n)}a&&n.remove(a)}function Ru(e,t,s){let n=new Map,a=rs({dict:t,key:"AA",stopWhenFound:!1});if(a)for(let i=a.length-1;i>=0;i--){let o=a[i];if(o instanceof R)for(let[r,l]of o.getRawEntries()){let f=s[r];if(!f)continue;let c=[];D1(l,e,c,new re),c.length>0&&n.set(f,c)}}if(t.has("A")){let i=[];D1(t.get("A"),e,i,new re),i.length>0&&n.set("Action",i)}return n.size?n:null}var Mk={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};function*zk(e){for(let t=0,s=e.length;t<s;t++){let n=e.codePointAt(t);n>55295&&(n<57344||n>65533)&&t++,yield n}}function Br(e){let t=[],s=0;for(let n=0,a=e.length;n<a;n++){let i=e.codePointAt(n);if(32<=i&&i<=126){let o=Mk[i];o&&(s<n&&t.push(e.substring(s,n)),t.push(o),s=n+1)}else s<n&&t.push(e.substring(s,n)),t.push(`&#x${i.toString(16).toUpperCase()};`),i>65535&&n++,s=n+1}return t.length===0?e:(s<e.length&&t.push(e.substring(s)),t.join(""))}function Y0(e,t=!1){let s=/^("|\').*("|\')$/.exec(e);if(s&&s[1]===s[2]){if(new RegExp(`[^\\\\\\\\]${s[1]}`).test(e.slice(1,-1)))return t&&F(`FontFamily contains unescaped ${s[1]}: ${e}.`),!1;if(W0.test(e))return t&&F(`FontFamily contains control characters: ${e}.`),!1}else for(let n of e.split(/[ \\t]+/))if(/^(?:\\d|-[\\d-])/.test(n)||!/^[\\w\\\\-]+$/.test(n))return t&&F(`FontFamily contains invalid <custom-ident>: ${e}.`),!1;return!0}function Dk(e){return e.replaceAll(/( +)(\\d)?/g,(t,s,n)=>n??" ")}function Ok(e){let t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:s,fontWeight:n,italicAngle:a}=e;if(!Y0(s,!0))return!1;let i=n?n.toString():"";e.fontWeight=t.has(i)?i:"400";let o=parseFloat(a);return e.italicAngle=isNaN(o)||o<-90||o>90?"14":a.toString(),!0}function N4(e){let t=new RegExp("^\\\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\\\.")+`)\\\\((?:\'|")([^\'"]*)(?:\'|")(?:,\\\\s*(\\\\w+)\\\\)|\\\\))`,"i").exec(e);return t?.[2]?{url:t[2],newWindow:t[1]==="app.launchURL"&&t[3]==="true"}:null}function we(e){if(Number.isInteger(e))return e.toString();let t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}function A5(e){if(!e)return null;let t=new Map;for(let[s,n]of e)s.startsWith(l4)&&t.getOrInsertComputed(n.pageIndex,Ya).push(n);return t.size>0?t:null}function Ja(e=new Date){return e instanceof Date||(e=new Date(e)),[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")}function O1(e,t,s){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,s];case 270:return[0,-1,1,0,0,s];default:throw new Error("Invalid rotation")}}function w3(e){return Math.ceil(Math.ceil(Math.log2(1+e))/8)}var _4=new Uint8Array(new Uint32Array([1]).buffer)[0]===1?4278190080:255,Nk=~_4,pf,is=class{static get _memoryArray(){let t=S(this,pf);return t?.byteLength?t:Bt(this,pf,new Uint8Array(this._memory.buffer))}};pf=new WeakMap,at(is,pf,null),Y(is,"_memory",null),Y(is,"_destBuffer",null),Y(is,"_destOffset",0),Y(is,"_keepAlpha",!1);var Yu=Object.freeze({RGB8:0,0:"RGB8",RGBA8:1,1:"RGBA8",BGRA8:2,2:"BGRA8",Gray8:3,3:"Gray8",GrayA8:4,4:"GrayA8",CMYK:5,5:"CMYK"}),_k=Object.freeze({Perceptual:0,0:"Perceptual",RelativeColorimetric:1,1:"RelativeColorimetric",Saturation:2,2:"Saturation",AbsoluteColorimetric:3,3:"AbsoluteColorimetric"});function j3(e,t,s){let n=U4(t,Ss.__wbindgen_malloc),a=I5;Ss.qcms_convert_array(e,n,a,s)}function Pk(){return{__proto__:null,"./qcms_bg.js":{__proto__:null,__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw new Error((function(n,a){return(function(o,r){return Ju+=r,Ju>=Uk&&(a1=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),a1.decode(),Ju=r),a1.decode(P4().subarray(o,o+r))})(n>>>0,a)})(e,t))},__wbg_copy_result_0d15f3bf9d9012ae:function(e,t){(function(n,a){let{_destBuffer:i,_destOffset:o,_keepAlpha:r,_memoryArray:l}=is;if(!r){i.set(l.subarray(n,n+a),o);return}let f=a>>2,c=i.byteOffset+o;if(!(3&(c|n))){let h=new Uint32Array(i.buffer,c,f),m=new Uint32Array(is._memory.buffer,n,f);for(let u=0;u<f;u++)h[u]=h[u]&_4|m[u]&Nk;return}for(let h=n,m=n+a,u=o;h<m;h+=4,u+=4)i[u]=l[h],i[u+1]=l[h+1],i[u+2]=l[h+2]})(e>>>0,t>>>0)},__wbindgen_init_externref_table:function(){let e=Ss.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}var Po=null;function P4(){return Po!==null&&Po.byteLength!==0||(Po=new Uint8Array(Ss.memory.buffer)),Po}function U4(e,t){let s=t(1*e.length,1)>>>0;return P4().set(e,s/1),I5=e.length,s}var a1=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});a1.decode();var Uk=2146435072,Ju=0,Lk,Ek,Ss,I5=0;function Kk(e,t){return Ek=e,Ss=e.exports,Lk=t,Po=null,Ss.__wbindgen_start(),Ss}function He(e,t,s){return Math.min(Math.max(e,t),s)}function L4(e,t){if(!Array.isArray(e))return!0;let s=e.length;return s<t?(F("Decode map length is too short."),!0):(s>t&&(ie("Truncating too long decode map."),e.length=t),!1)}var Zh,jl=class jl{constructor(t,s){this.name=t,this.numComps=s}getRgb(t,s,n=new Uint8ClampedArray(3)){return this.getRgbItem(t,s,n,0),n}getRgbHex(t,s){let n=this.getRgb(t,s,S(jl,Zh));return ee.makeHexColor(n[0],n[1],n[2])}getRgbItem(t,s,n,a){Zt("Should not call ColorSpace.getRgbItem")}getRgbBuffer(t,s,n,a,i,o,r){Zt("Should not call ColorSpace.getRgbBuffer")}getRgbItems(t,s,n,a,i){let{numComps:o}=this;for(let r=0,l=0;r<s;r++,l+=o)this.getRgbItem(t,l,n,a),a+=3+i}isPassthrough(t){return!1}isDefaultDecode(t,s){return jl.isDefaultDecode(t,this.numComps)}fillRgb(t,s,n,a,i,o,r,l,f){let c=s*n,h=null,m=1<<r,u=n!==i||s!==a;if(this.isPassthrough(r))h=l;else if(this.numComps===1&&c>m&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){let d=r<=8?new Uint8Array(m):new Uint16Array(m);for(let g=0;g<m;g++)d[g]=g;let p=new Uint8ClampedArray(3*m);if(this.getRgbBuffer(d,0,m,p,0,r,0),u){h=new Uint8Array(3*c);let g=0;for(let b=0;b<c;++b){let w=3*l[b];h[g++]=p[w],h[g++]=p[w+1],h[g++]=p[w+2]}}else{let g=0;for(let b=0;b<c;++b){let w=3*l[b];t[g++]=p[w],t[g++]=p[w+1],t[g++]=p[w+2],g+=f}}}else u?(h=new Uint8ClampedArray(3*c),this.getRgbBuffer(l,0,c,h,0,r,0)):this.getRgbBuffer(l,0,a*o,t,0,r,f);if(h)if(u)(function(p,g,b,w,k,q,y){y=y!==1?0:y;let v=b/k,A=w/q,x,I=0,B=new Uint16Array(k),D=3*b;for(let W=0;W<k;W++)B[W]=3*Math.floor(W*v);for(let W=0;W<q;W++){let L=Math.floor(W*A)*D;for(let ot=0;ot<k;ot++)x=L+B[ot],g[I++]=p[x++],g[I++]=p[x++],g[I++]=p[x++],I+=y}})(h,t,s,n,a,i,f);else{let d=0,p=0;for(let g=0,b=a*o;g<b;g++)t[d++]=h[p++],t[d++]=h[p++],t[d++]=h[p++],d+=f}}get usesZeroToOneRange(){return yt(this,"usesZeroToOneRange",!0)}static isDefaultDecode(t,s){if(L4(t,2*s))return!0;for(let n=0,a=t.length;n<a;n+=2)if(t[n]!==0||t[n+1]!==1)return!1;return!0}};Zh=new WeakMap,at(jl,Zh,new Uint8ClampedArray(3));var hs=jl,J0=class extends hs{constructor(t,s,n){super("Alternate",t),this.base=s,this.tintFn=n,this.tmpBuf=new Float32Array(s.numComps)}getRgbItem(t,s,n,a){let i=this.tmpBuf;this.tintFn(t,s,i,0),this.base.getRgbItem(i,0,n,a)}getRgbItems(t,s,n,a,i){let{base:o,numComps:r,tintFn:l}=this,f=o.numComps,c=new Float32Array(s*f);for(let h=0,m=0,u=0;h<s;h++)l(t,m,c,u),m+=r,u+=f;o.getRgbItems(c,s,n,a,i)}getRgbBuffer(t,s,n,a,i,o,r){let l=this.tintFn,f=this.base,c=1/((1<<o)-1),h=f.numComps,m=f.usesZeroToOneRange,u=(f.isPassthrough(8)||!m)&&r===0,d=u?i:0,p=u?a:new Uint8ClampedArray(h*n),g=this.numComps,b=new Float32Array(g),w=new Float32Array(h),k,q;for(k=0;k<n;k++){for(q=0;q<g;q++)b[q]=t[s++]*c;if(l(b,0,w,0),m)for(q=0;q<h;q++)p[d++]=255*w[q];else f.getRgbItem(w,0,p,d),d+=h}u||f.getRgbBuffer(p,0,n,a,i,8,r)}},N1=class extends hs{constructor(t){super("Pattern",null),this.base=t}isDefaultDecode(t,s){Zt("Should not call PatternCS.isDefaultDecode")}},yi,Q0=class extends hs{constructor(s,n,a){super("Indexed",1);at(this,yi);this.highVal=n;let i=n+1,o=s.numComps*i,r=new Uint8Array(o);if(a instanceof Et)r.set(a.getBytes(o));else{if(typeof a!="string")throw new nt(`IndexedCS - unrecognized lookup table: ${a}`);for(let l=0;l<o;++l)r[l]=a.charCodeAt(l)}Bt(this,yi,new Uint8ClampedArray(3*i)),s.getRgbBuffer(r,0,i,S(this,yi),0,8,0)}getRgbItem(s,n,a,i){let o=S(this,yi),r=3*He(Math.round(s[n]),0,this.highVal);a[i]=o[r],a[i+1]=o[r+1],a[i+2]=o[r+2]}getRgbBuffer(s,n,a,i,o,r,l){let{highVal:f}=this,c=S(this,yi);for(let h=0;h<a;++h){let m=3*He(Math.round(s[n++]),0,f);i[o++]=c[m],i[o++]=c[m+1],i[o++]=c[m+2],o+=l}}isDefaultDecode(s,n){return L4(s,2)?!0:!Number.isInteger(n)||n<1?(F("Bits per component is not correct"),!0):s[0]===0&&s[1]===(1<<n)-1}};yi=new WeakMap;var Z0=class extends hs{constructor(){super("DeviceGray",1)}getRgbItem(t,s,n,a){let i=255*t[s];n[a]=n[a+1]=n[a+2]=i}getRgbBuffer(t,s,n,a,i,o,r){let l=255/((1<<o)-1),f=s,c=i;for(let h=0;h<n;++h){let m=l*t[f++];a[c++]=m,a[c++]=m,a[c++]=m,c+=r}}},tm=class extends hs{constructor(){super("DeviceRGB",3)}getRgbItem(t,s,n,a){n[a]=255*t[s],n[a+1]=255*t[s+1],n[a+2]=255*t[s+2]}getRgbBuffer(t,s,n,a,i,o,r){if(o===8&&r===0){a.set(t.subarray(s,s+3*n),i);return}let l=255/((1<<o)-1),f=s,c=i;for(let h=0;h<n;++h)a[c++]=l*t[f++],a[c++]=l*t[f++],a[c++]=l*t[f++],c+=r}isPassthrough(t){return t===8}},em=class extends hs{constructor(){super("DeviceRGBA",4)}isPassthrough(t){return t===8}fillRgb(t,s,n,a,i,o,r,l,f){n!==i||s!==a?(function(h,m,u,d,p,g,b){let w=u/p,k=d/g,q=0,y=new Uint16Array(p);if(b===1){for(let I=0;I<p;I++)y[I]=Math.floor(I*w);let v=new Uint32Array(h.buffer),A=new Uint32Array(m.buffer),x=us.isLittleEndian?16777215:4294967040;for(let I=0;I<g;I++){let B=v.subarray(Math.floor(I*k)*u);for(let D=0;D<p;D++)A[q++]|=B[y[D]]&x}}else{let A=u*4;for(let x=0;x<p;x++)y[x]=Math.floor(x*w)*4;for(let x=0;x<g;x++){let I=h.subarray(Math.floor(x*k)*A);for(let B=0;B<p;B++){let D=y[B];m[q++]=I[D],m[q++]=I[D+1],m[q++]=I[D+2]}}}})(l,t,s,n,a,i,f):(function(h,m,u){if(u===1){let d=new Uint32Array(h.buffer),p=new Uint32Array(m.buffer),g=us.isLittleEndian?16777215:4294967040;for(let b=0,w=d.length;b<w;b++)p[b]|=d[b]&g}else{let d=0;for(let p=0,g=h.length;p<g;p+=4)m[d++]=h[p],m[d++]=h[p+1],m[d++]=h[p+2]}})(l,t,f)}},df,sm,_1=class extends hs{constructor(){super("DeviceCMYK",4);at(this,df)}getRgbItem(s,n,a,i){N(this,df,sm).call(this,s,n,1,a,i)}getRgbBuffer(s,n,a,i,o,r,l){let f=1/((1<<r)-1);for(let c=0;c<a;c++)N(this,df,sm).call(this,s,n,f,i,o),n+=4,o+=3+l}};df=new WeakSet,sm=function(s,n,a,i,o){let r=s[n]*a,l=s[n+1]*a,f=s[n+2]*a,c=s[n+3]*a;i[o]=255+r*(-4.387332384609988*r+54.48615194189176*l+18.82290502165302*f+212.25662451639585*c-285.2331026137004)+l*(1.7149763477362134*l-5.6096736904047315*f+-17.873870861415444*c-5.497006427196366)+f*(-2.5217340131683033*f-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747),i[o+1]=255+r*(8.841041422036149*r+60.118027045597366*l+6.871425592049007*f+31.159100130055922*c-79.2970844816548)+l*(-15.310361306967817*l+17.575251261109482*f+131.35250912493976*c-190.9453302588951)+f*(4.444339102852739*f+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578),i[o+2]=255+r*(.8842522430003296*r+8.078677503112928*l+30.89978309703729*f-.23883238689178934*c-14.183576799673286)+l*(10.49593273432072*l+63.02378494754052*f+50.606957656360734*c-112.23884253719248)+f*(.03296041114873217*f+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)};var gf,am,nm=class extends hs{constructor(s,n,a){super("CalGray",1);at(this,gf);if(!s)throw new nt("WhitePoint missing - required for color space CalGray");if([this.XW,this.YW,this.ZW]=s,[this.XB,this.YB,this.ZB]=n||[0,0,0],this.G=a||1,this.XW<0||this.ZW<0||this.YW!==1)throw new nt(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(ie(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),this.XB===0&&this.YB===0&&this.ZB===0||F(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&(ie(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}getRgbItem(s,n,a,i){N(this,gf,am).call(this,s,n,a,i,1)}getRgbBuffer(s,n,a,i,o,r,l){let f=1/((1<<r)-1);for(let c=0;c<a;++c)N(this,gf,am).call(this,s,n,i,o,f),n+=1,o+=3+l}};gf=new WeakSet,am=function(s,n,a,i,o){let r=(s[n]*o)**this.G,l=this.YW*r,f=Math.max(295.8*l**.3333333333333333-40.8,0);a[i]=f,a[i+1]=f,a[i+2]=f};var bf,wf,tu,eu,jf,zr,kf,su,ye,ur,E4,K4,i1,mr,W4,V4,$4,rm,Me=class Me extends hs{constructor(s,n,a,i){super("CalRGB",3);at(this,ye);if(!s)throw new nt("WhitePoint missing - required for color space CalRGB");let[o,r,l]=this.whitePoint=s,[f,c,h]=this.blackPoint=n||new Float32Array(3);if([this.GR,this.GG,this.GB]=a||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=i||new Float32Array([1,0,0,0,1,0,0,0,1]),o<0||l<0||r!==1)throw new nt(`Invalid WhitePoint components for ${this.name}, no fallback available`);(f<0||c<0||h<0)&&(ie(`Invalid BlackPoint for ${this.name} [${f}, ${c}, ${h}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&(ie(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(s,n,a,i){N(this,ye,rm).call(this,s,n,a,i,1)}getRgbBuffer(s,n,a,i,o,r,l){let f=1/((1<<r)-1);for(let c=0;c<a;++c)N(this,ye,rm).call(this,s,n,i,o,f),n+=3,o+=3+l}};bf=new WeakMap,wf=new WeakMap,tu=new WeakMap,eu=new WeakMap,jf=new WeakMap,zr=new WeakMap,kf=new WeakMap,su=new WeakMap,ye=new WeakSet,ur=function(s,n,a){a[0]=s[0]*n[0]+s[1]*n[1]+s[2]*n[2],a[1]=s[3]*n[0]+s[4]*n[1]+s[5]*n[2],a[2]=s[6]*n[0]+s[7]*n[1]+s[8]*n[2]},E4=function(s,n,a){a[0]=1*n[0]/s[0],a[1]=1*n[1]/s[1],a[2]=1*n[2]/s[2]},K4=function(s,n,a){a[0]=.95047*n[0]/s[0],a[1]=1*n[1]/s[1],a[2]=1.08883*n[2]/s[2]},i1=function(s){return s<=.0031308?He(12.92*s,0,1):s>=.99554525?1:He(1.055*s**(1/2.4)-.055,0,1)},mr=function(s){return s<0?-N(this,ye,mr).call(this,-s):s>8?((s+16)/116)**3:s*S(Me,su)},W4=function(s,n,a){if(s[0]===0&&s[1]===0&&s[2]===0){a[0]=n[0],a[1]=n[1],a[2]=n[2];return}let i=N(this,ye,mr).call(this,0),o=(1-i)/(1-N(this,ye,mr).call(this,s[0])),r=1-o,l=(1-i)/(1-N(this,ye,mr).call(this,s[1])),f=1-l,c=(1-i)/(1-N(this,ye,mr).call(this,s[2])),h=1-c;a[0]=n[0]*o+r,a[1]=n[1]*l+f,a[2]=n[2]*c+h},V4=function(s,n,a){if(s[0]===1&&s[2]===1){a[0]=n[0],a[1]=n[1],a[2]=n[2];return}let i=a;N(this,ye,ur).call(this,S(Me,bf),n,i);let o=S(Me,jf);N(this,ye,E4).call(this,s,i,o),N(this,ye,ur).call(this,S(Me,wf),o,a)},$4=function(s,n,a){let i=a;N(this,ye,ur).call(this,S(Me,bf),n,i);let o=S(Me,jf);N(this,ye,K4).call(this,s,i,o),N(this,ye,ur).call(this,S(Me,wf),o,a)},rm=function(s,n,a,i,o){let r=He(s[n]*o,0,1),l=He(s[n+1]*o,0,1),f=He(s[n+2]*o,0,1),c=r===1?1:r**this.GR,h=l===1?1:l**this.GG,m=f===1?1:f**this.GB,u=this.MXA*c+this.MXB*h+this.MXC*m,d=this.MYA*c+this.MYB*h+this.MYC*m,p=this.MZA*c+this.MZB*h+this.MZC*m,g=S(Me,zr);g[0]=u,g[1]=d,g[2]=p;let b=S(Me,kf);N(this,ye,V4).call(this,this.whitePoint,g,b);let w=S(Me,zr);N(this,ye,W4).call(this,this.blackPoint,b,w);let k=S(Me,kf);N(this,ye,$4).call(this,S(Me,eu),w,k);let q=S(Me,zr);N(this,ye,ur).call(this,S(Me,tu),k,q),a[i]=255*N(this,ye,i1).call(this,q[0]),a[i+1]=255*N(this,ye,i1).call(this,q[1]),a[i+2]=255*N(this,ye,i1).call(this,q[2])},at(Me,bf,new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])),at(Me,wf,new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])),at(Me,tu,new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])),at(Me,eu,new Float32Array([1,1,1])),at(Me,jf,new Float32Array(3)),at(Me,zr,new Float32Array(3)),at(Me,kf,new Float32Array(3)),at(Me,su,(24/116)**3/8);var im=Me,Ks,r1,o1,lm,om=class extends hs{constructor(s,n,a){super("Lab",3);at(this,Ks);if(!s)throw new nt("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=s,[this.amin,this.amax,this.bmin,this.bmax]=a||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=n||[0,0,0],this.XW<0||this.ZW<0||this.YW!==1)throw new nt("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&(ie("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(ie("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(s,n,a,i){N(this,Ks,lm).call(this,s,n,!1,a,i)}getRgbBuffer(s,n,a,i,o,r,l){let f=(1<<r)-1;for(let c=0;c<a;c++)N(this,Ks,lm).call(this,s,n,f,i,o),n+=3,o+=3+l}isDefaultDecode(s,n){return!0}get usesZeroToOneRange(){return yt(this,"usesZeroToOneRange",!1)}};Ks=new WeakSet,r1=function(s){return s>=6/29?s**3:108/841*(s-4/29)},o1=function(s,n,a,i){return a+s*(i-a)/n},lm=function(s,n,a,i,o){let r=s[n],l=s[n+1],f=s[n+2];a!==!1&&(r=N(this,Ks,o1).call(this,r,a,0,100),l=N(this,Ks,o1).call(this,l,a,this.amin,this.amax),f=N(this,Ks,o1).call(this,f,a,this.bmin,this.bmax)),l>this.amax?l=this.amax:l<this.amin&&(l=this.amin),f>this.bmax?f=this.bmax:f<this.bmin&&(f=this.bmin);let c=(r+16)/116,h=c+l/500,m=c-f/200,u=this.XW*N(this,Ks,r1).call(this,h),d=this.YW*N(this,Ks,r1).call(this,c),p=this.ZW*N(this,Ks,r1).call(this,m),g,b,w;this.ZW<1?(g=3.1339*u+-1.617*d+-.4906*p,b=-.9785*u+1.916*d+.0333*p,w=.072*u+-.229*d+1.4057*p):(g=3.2406*u+-1.5372*d+-.4986*p,b=-.9689*u+1.8758*d+.0415*p,w=.0557*u+-.204*d+1.057*p),i[o]=255*Math.sqrt(g),i[o+1]=255*Math.sqrt(b),i[o+2]=255*Math.sqrt(w)};function G4(e){let t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),t.response}var jn,Ma,Dr,Or,qf,Fn=class Fn extends hs{constructor(s,n,a){if(!Fn.isUsable)throw new Error("No ICC color space support");super(n,a);at(this,jn);at(this,Ma);let i;switch(a){case 1:i=Yu.Gray8,Bt(this,Ma,(o,r)=>(function(f,c){return Ss.qcms_convert_one(f,c)>>>0})(S(this,jn),255*o[r]));break;case 3:i=Yu.RGB8,Bt(this,Ma,(o,r)=>(function(f,c,h,m){return Ss.qcms_convert_three(f,c,h,m)>>>0})(S(this,jn),255*o[r],255*o[r+1],255*o[r+2]));break;case 4:i=Yu.CMYK,Bt(this,Ma,(o,r)=>(function(f,c,h,m,u){return Ss.qcms_convert_four(f,c,h,m,u)>>>0})(S(this,jn),255*o[r],255*o[r+1],255*o[r+2],255*o[r+3]));break;default:throw new Error(`Unsupported number of components: ${a}`)}if(Bt(this,jn,(function(r,l,f){let c=U4(r,Ss.__wbindgen_malloc),h=I5;return Ss.qcms_transformer_from_memory(c,h,l,f)>>>0})(s,i,_k.Perceptual)),!S(this,jn))throw new Error("Failed to create ICC color space");S(Fn,qf)||Bt(Fn,qf,new FinalizationRegistry(o=>{(function(l){Ss.qcms_drop_transformer(l)})(o)})),S(Fn,qf).register(this,S(this,jn))}getRgbHex(s,n){let a=S(this,Ma).call(this,s,n);return ee.makeHexColor(a>>16,a>>8&255,255&a)}getRgbItem(s,n,a,i){let o=S(this,Ma).call(this,s,n);a[i]=o>>16,a[i+1]=o>>8&255,a[i+2]=255&o}getRgbItems(s,n,a,i,o){let{numComps:r}=this,l=n*r,f=new Uint8Array(l);for(let c=0;c<l;c++)f[c]=255*s[c];is._destBuffer=a,is._destOffset=i,is._keepAlpha=o===1,j3(S(this,jn),f,o===1),is._destBuffer=null}getRgbBuffer(s,n,a,i,o,r,l){if(s=s.subarray(n,n+a*this.numComps),r!==8){let f=255/((1<<r)-1);for(let c=0,h=s.length;c<h;c++)s[c]*=f}is._destBuffer=i,is._destOffset=o,is._keepAlpha=l===1&&i.buffer!==s.buffer,j3(S(this,jn),s,l===1),is._destBuffer=null}static setOptions({useWasm:s,useWorkerFetch:n,wasmUrl:a}){n?(Bt(this,Dr,s),Bt(this,Or,a)):Bt(this,Dr,!1)}static get isUsable(){let s=!1;if(S(this,Dr))if(S(this,Or))try{this._module=(function(a){if(Ss!==void 0)return Ss;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module:a}=a:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let i=Pk();return a instanceof WebAssembly.Module||(a=new WebAssembly.Module(a)),Kk(new WebAssembly.Instance(a,i),a)})({module:G4(`${S(this,Or)}qcms_bg.wasm`)}),s=!!this._module,is._memory=this._module.memory}catch(n){F(`ICCBased color space: "${n}".`)}else F("No ICC color space support due to missing `wasmUrl` API option");return yt(this,"isUsable",s)}};jn=new WeakMap,Ma=new WeakMap,Dr=new WeakMap,Or=new WeakMap,qf=new WeakMap,at(Fn,Dr,!0),at(Fn,Or,null),at(Fn,qf,null);var Ki=Fn,Nr,nu=class nu extends Ki{constructor(){super(new Uint8Array(G4(`${S(nu,Nr)}CGATS001Compat-v2-micro.icc`)),"DeviceCMYK",4)}static setOptions({iccUrl:t}){Bt(this,Nr,t)}static get isUsable(){let t=!1;return Ki.isUsable&&(S(this,Nr)?t=!0:F("No CMYK ICC profile support due to missing `iccUrl` API option")),yt(this,"isUsable",t)}};Nr=new WeakMap,at(nu,Nr);var Il=nu,ke=class e extends Et{constructor(t,s,n,a){super(),this.bytes=t instanceof Uint8Array?t:new Uint8Array(t),this.start=s||0,this.pos=this.start,this.end=s+n||this.bytes.length,this.dict=a}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(t){let s=this.pos,n=t?Math.min(s+t,this.end):this.end;return this.pos=n,this.bytes.subarray(s,n)}getByteRange(t,s){return t<0&&(t=0),s>this.end&&(s=this.end),this.bytes.subarray(t,s)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,s,n=null){return new e(this.bytes.buffer,t,s,n)}clone(){return new e(this.bytes.buffer,this.start,this.length,this.dict?.clone())}},ts=class extends ke{constructor(t,s=null){super(Ce(t),NaN,NaN,s)}},Cl=class extends ke{constructor(){super(new Uint8Array(0))}},fm=class extends ke{constructor(s,n,a){super(new Uint8Array(s),0,s,null);Y(this,"progressiveDataLength",0);Y(this,"_lastSuccessfulEnsureByteChunk",-1);Y(this,"_loadedChunks",new Set);this.chunkSize=n,this.numChunks=Math.ceil(s/n),this.manager=a}getMissingChunks(){let s=[];for(let n=0,a=this.numChunks;n<a;++n)this._loadedChunks.has(n)||s.push(n);return s}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(s,n){let a=this.chunkSize;if(s%a!==0)throw new Error(`Bad begin offset: ${s}`);let i=s+n.byteLength;if(i%a!==0&&i!==this.bytes.length)throw new Error(`Bad end offset: ${i}`);this.bytes.set(new Uint8Array(n),s);let o=Math.floor(s/a),r=Math.floor((i-1)/a)+1;for(let l=o;l<r;++l)this._loadedChunks.add(l)}onReceiveProgressiveData(s){let n=this.progressiveDataLength,a=Math.floor(n/this.chunkSize);this.bytes.set(new Uint8Array(s),n),n+=s.byteLength,this.progressiveDataLength=n;let i=n>=this.end?this.numChunks:Math.floor(n/this.chunkSize);for(let o=a;o<i;++o)this._loadedChunks.add(o)}ensureByte(s){if(s<this.progressiveDataLength)return;let n=Math.floor(s/this.chunkSize);if(!(n>this.numChunks)&&n!==this._lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(n))throw new de(s,s+1);this._lastSuccessfulEnsureByteChunk=n}}ensureRange(s,n){if(s>=n||n<=this.progressiveDataLength)return;let a=Math.floor(s/this.chunkSize);if(a>this.numChunks)return;let i=Math.min(Math.floor((n-1)/this.chunkSize)+1,this.numChunks);for(let o=a;o<i;++o)if(!this._loadedChunks.has(o))throw new de(s,n)}nextEmptyChunk(s){let n=this.numChunks;for(let a=0;a<n;++a){let i=(s+a)%n;if(!this._loadedChunks.has(i))return i}return null}hasChunk(s){return this._loadedChunks.has(s)}getByte(){let s=this.pos;return s>=this.end?-1:(s>=this.progressiveDataLength&&this.ensureByte(s),this.bytes[this.pos++])}getBytes(s){let n=this.pos,a=s?Math.min(n+s,this.end):this.end;return a>this.progressiveDataLength&&this.ensureRange(n,a),this.pos=a,this.bytes.subarray(n,a)}getByteRange(s,n){return s<0&&(s=0),n>this.end&&(n=this.end),n>this.progressiveDataLength&&this.ensureRange(s,n),this.bytes.subarray(s,n)}makeSubStream(s,n,a=null){n?s+n>this.progressiveDataLength&&this.ensureRange(s,s+n):s>=this.progressiveDataLength&&this.ensureByte(s);function i(){}i.prototype=Object.create(this),i.prototype.getMissingChunks=function(){let r=this.chunkSize,l=Math.floor(this.start/r),f=Math.floor((this.end-1)/r)+1,c=[];for(let h=l;h<f;++h)this._loadedChunks.has(h)||c.push(h);return c},Object.defineProperty(i.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||this.getMissingChunks().length===0},configurable:!0});let o=new i;return o.pos=o.start=s,o.end=s+n||this.end,o.dict=a,o}getBaseStreams(){return[this]}},_r,Pr,cm=class{constructor(t,s){at(this,_r,!1);Y(this,"currRequestId",0);Y(this,"_chunksNeededByRequest",new Map);at(this,Pr,Promise.withResolvers());Y(this,"_promisesByRequest",new Map);Y(this,"_requestsByChunk",new Map);this.length=s.length,this.chunkSize=s.rangeChunkSize,this.stream=new fm(this.length,this.chunkSize,this),this.pdfStream=t,this.disableAutoFetch=s.disableAutoFetch,this.msgHandler=s.msgHandler}async sendRequest(t,s){let n=this.pdfStream.getRangeReader(t,s),a=[];for(;;){let{value:o,done:r}=await n.read();if(S(this,_r)){a=null;return}if(r)break;a.push(o)}if(a.length===0&&this.disableAutoFetch)return;let i=D4(a);a=null,this.onReceiveData({chunk:i.buffer,begin:t})}requestAllChunks(t=!1){if(!t){let s=this.stream.getMissingChunks();this._requestChunks(s)}return S(this,Pr).promise}_requestChunks(t){let s=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(s,n);for(let o of t)this.stream.hasChunk(o)||n.add(o);if(n.size===0)return Promise.resolve();let a=Promise.withResolvers();this._promisesByRequest.set(s,a);let i=[];for(let o of n)this._requestsByChunk.getOrInsertComputed(o,()=>(i.push(o),[])).push(s);if(i.length>0){let o=this.groupChunks(i);for(let r of o){let l=r.beginChunk*this.chunkSize,f=Math.min(r.endChunk*this.chunkSize,this.length);this.sendRequest(l,f).catch(a.reject)}}return a.promise.catch(o=>{if(!S(this,_r))throw o})}getStream(){return this.stream}requestRange(t,s){s=Math.min(s,this.length);let n=this.getBeginChunk(t),a=this.getEndChunk(s),i=[];for(let o=n;o<a;++o)i.push(o);return this._requestChunks(i)}requestRanges(t=[]){let s=[];for(let n of t){let a=this.getBeginChunk(n.begin),i=this.getEndChunk(n.end);for(let o=a;o<i;++o)s.includes(o)||s.push(o)}return s.sort((n,a)=>n-a),this._requestChunks(s)}groupChunks(t){let s=[],n=-1,a=-1;for(let i=0,o=t.length;i<o;++i){let r=t[i];n<0&&(n=r),a>=0&&a+1!==r&&(s.push({beginChunk:n,endChunk:a+1}),n=r),i+1===t.length&&s.push({beginChunk:n,endChunk:r+1}),a=r}return s}onReceiveData(t){let{chunkSize:s,length:n,stream:a}=this,i=t.chunk,o=t.begin===void 0,r=o?a.progressiveDataLength:t.begin,l=r+i.byteLength,f=Math.floor(r/s),c=l<n?Math.floor(l/s):Math.ceil(l/s);o?a.onReceiveProgressiveData(i):a.onReceiveData(r,i),a.isDataLoaded&&S(this,Pr).resolve(a);let h=[];for(let m=f;m<c;++m){let u=this._requestsByChunk.get(m);if(u){this._requestsByChunk.delete(m);for(let d of u){let p=this._chunksNeededByRequest.get(d);p.has(m)&&p.delete(m),p.size>0||h.push(d)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let m;if(a.numChunksLoaded===1){let u=a.numChunks-1;a.hasChunk(u)||(m=u)}else m=a.nextEmptyChunk(c);Number.isInteger(m)&&this._requestChunks([m])}for(let m of h){let u=this._promisesByRequest.get(m);this._promisesByRequest.delete(m),u.resolve()}this.msgHandler.send("DocProgress",{loaded:He(a.numChunksLoaded*s,a.progressiveDataLength,n),total:n})}getBeginChunk(t){return Math.floor(t/this.chunkSize)}getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}abort(t){Bt(this,_r,!0),this.pdfStream?.cancelAllRequests(t);for(let s of this._promisesByRequest.values())s.reject(t);S(this,Pr).reject(t)}};_r=new WeakMap,Pr=new WeakMap;function X4(e){switch(e.kind){case q1:return hm(e);case Yo:return(function({src:s,srcPos:n=0,dest:a,destPos:i=0,width:o,height:r}){let l=0,f=o*r*3,c=f>>2,h=new Uint32Array(s.buffer,n,c),m=us.isLittleEndian?4278190080:255;if(us.isLittleEndian){for(;l<c-2;l+=3,i+=4){let u=h[l],d=h[l+1],p=h[l+2];a[i]=u|m,a[i+1]=u>>>24|d<<8|m,a[i+2]=d>>>16|p<<16|m,a[i+3]=p>>>8|m}for(let u=4*l,d=n+f;u<d;u+=3)a[i++]=s[u]|s[u+1]<<8|s[u+2]<<16|m}else{for(;l<c-2;l+=3,i+=4){let u=h[l],d=h[l+1],p=h[l+2];a[i]=u|m,a[i+1]=u<<24|d>>>8|m,a[i+2]=d<<16|p>>>16|m,a[i+3]=p<<8|m}for(let u=4*l,d=n+f;u<d;u+=3)a[i++]=s[u]<<24|s[u+1]<<16|s[u+2]<<8|m}return{srcPos:n+f,destPos:i}})(e)}return null}function hm({src:e,srcPos:t=0,dest:s,width:n,height:a,nonBlackColor:i=4294967295,inverseDecode:o=!1}){let r=us.isLittleEndian?4278190080:255,[l,f]=o?[i,r]:[r,i],c=n>>3,h=7&n,m=l^f,u=e.length;s=new Uint32Array(s.buffer);let d=0;for(let p=0;p<a;++p){for(let b=t+c;t<b;++t,d+=8){let w=e[t];s[d]=l^-(w>>7&1)&m,s[d+1]=l^-(w>>6&1)&m,s[d+2]=l^-(w>>5&1)&m,s[d+3]=l^-(w>>4&1)&m,s[d+4]=l^-(w>>3&1)&m,s[d+5]=l^-(w>>2&1)&m,s[d+6]=l^-(w>>1&1)&m,s[d+7]=l^-(1&w)&m}if(h===0)continue;let g=t<u?e[t++]:255;for(let b=0;b<h;++b,++d)s[d]=l^-(g>>7-b&1)&m}return{srcPos:t,destPos:d}}var Zs,yf,au,Y4,Ta=class Ta{constructor(t,s){at(this,au);this._imgData=t,this._isMask=s}static get canUseImageDecoder(){return yt(this,"canUseImageDecoder",S(this,yf)?ImageDecoder.isTypeSupported("image/bmp"):Promise.resolve(!1))}static needsToBeResized(t,s){if(t<=S(this,Zs)&&s<=S(this,Zs))return!1;let{MAX_DIM:n}=this;if(t>n||s>n)return!0;let a=t*s;return this._hasMaxArea?a>this.MAX_AREA:a<S(this,Zs)**2?!1:this._areGoodDims(t,s)?(Bt(this,Zs,Math.max(S(this,Zs),Math.floor(Math.sqrt(t*s)))),!1):(Bt(this,Zs,this._guessMax(S(this,Zs),n,128,0)),a>(this.MAX_AREA=S(this,Zs)**2))}static getReducePower(t,s,n=1/0){if(!Number.isInteger(t)||t<=0||!Number.isInteger(s)||s<=0)return 0;let a=t*s;if(!this.needsToBeResized(t,s))return a>n?Math.ceil(Math.log2(a/n)):0;let{MAX_DIM:i,MAX_AREA:o}=this,r=Math.max(t/i,s/i,Math.sqrt(a/Math.min(n,o)));return Math.max(0,Math.ceil(Math.log2(r)))}static getReducePowerForJPX(t,s,n){return this.getReducePower(t,s,2**30/(4*n))}static get MAX_DIM(){return yt(this,"MAX_DIM",this._guessMax(2048,32768,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,yt(this,"MAX_AREA",this._guessMax(S(this,Zs),this.MAX_DIM,128,0)**2)}static set MAX_AREA(t){t>=0&&(this._hasMaxArea=!0,yt(this,"MAX_AREA",t))}static setOptions({canvasMaxAreaInBytes:t=-1,isImageDecoderSupported:s=!1}){this._hasMaxArea||(this.MAX_AREA=t>>2),Bt(this,yf,s)}static _areGoodDims(t,s){try{let n=new OffscreenCanvas(t,s),a=n.getContext("2d");a.fillRect(0,0,1,1);let i=a.getImageData(0,0,1,1).data[3];return n.width=n.height=1,i!==0}catch{return!1}}static _guessMax(t,s,n,a){for(;t+n+1<s;){let i=Math.floor((t+s)/2),o=a||i;this._areGoodDims(i,o)?t=i:s=i}return t}static async createImage(t,s=!1){return new Ta(t,s)._createImage()}async _createImage(){let{_imgData:t}=this,{width:s,height:n}=t;if(s*n*4>b3){let w=N(this,au,Y4).call(this);if(w)return w}let a=this._encodeBMP(),i,o;await Ta.canUseImageDecoder?(i=new ImageDecoder({data:a,type:"image/bmp",preferAnimation:!1,transfer:[a.buffer]}),o=i.decode().catch(w=>(F(`BMP image decoding failed: ${w}`),createImageBitmap(new Blob([this._encodeBMP().buffer],{type:"image/bmp"})))).finally(()=>{i.close()})):o=createImageBitmap(new Blob([a.buffer],{type:"image/bmp"}));let{MAX_AREA:r,MAX_DIM:l}=Ta,f=Math.max(s/l,n/l,Math.sqrt(s*n/r)),c=Math.max(f,2),h=Math.round(10*(f+1.25))/10/c,m=Math.floor(Math.log2(h)),u=new Array(m+2).fill(2);u[0]=c,u.splice(-1,1,h/(1<<m));let d=s,p=n,g=await o,b=g.image||g;for(let w of u){let k=d,q=p;d=Math.floor(d/w),p=Math.floor(p/w);let y=new OffscreenCanvas(d,p);y.getContext("2d").drawImage(b,0,0,k,q,0,0,d,p),b.close(),b=y.transferToImageBitmap()}return t.data=null,t.bitmap=b,t.width=d,t.height=p,t}_encodeBMP(){let{width:t,height:s,kind:n}=this._imgData,a,i=this._imgData.data,o=new Uint8Array(0),r=o,l=0;switch(n){case q1:{a=1,o=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);let p=t+7>>3,g=p+3&-4;if(p!==g){let b=new Uint8Array(g*s),w=0;for(let k=0,q=s*p;k<q;k+=p,w+=g)b.set(i.subarray(k,k+p),w);i=b}break}case Yo:if(a=24,3&t){let p=3*t,g=p+3&-4,b=g-p,w=new Uint8Array(g*s),k=0;for(let q=0,y=s*p;q<y;q+=p){let v=i.subarray(q,q+p);for(let A=0;A<p;A+=3)w[k++]=v[A+2],w[k++]=v[A+1],w[k++]=v[A];k+=b}i=w}else for(let p=0,g=i.length;p<g;p+=3){let b=i[p];i[p]=i[p+2],i[p+2]=b}break;case sa:a=32,l=3,r=new Uint8Array(68);let d=new DataView(r.buffer);us.isLittleEndian?(d.setUint32(0,255,!0),d.setUint32(4,65280,!0),d.setUint32(8,16711680,!0),d.setUint32(12,4278190080,!0)):(d.setUint32(0,4278190080,!0),d.setUint32(4,16711680,!0),d.setUint32(8,65280,!0),d.setUint32(12,255,!0));break;default:throw new Error("invalid format")}let f=0,c=40+r.length,h=14+c+o.length+i.length,m=new Uint8Array(h),u=new DataView(m.buffer);return u.setUint16(f,19778,!0),f+=2,u.setUint32(f,h,!0),f+=4,u.setUint32(f,0,!0),f+=4,u.setUint32(f,14+c+o.length,!0),f+=4,u.setUint32(f,c,!0),f+=4,u.setInt32(f,t,!0),f+=4,u.setInt32(f,-s,!0),f+=4,u.setUint16(f,1,!0),f+=2,u.setUint16(f,a,!0),f+=2,u.setUint32(f,l,!0),f+=4,u.setUint32(f,0,!0),f+=4,u.setInt32(f,0,!0),f+=4,u.setInt32(f,0,!0),f+=4,u.setUint32(f,o.length/4,!0),f+=4,u.setUint32(f,0,!0),f+=4,m.set(r,f),f+=r.length,m.set(o,f),f+=o.length,m.set(i,f),m}};Zs=new WeakMap,yf=new WeakMap,au=new WeakSet,Y4=function(){let{_imgData:t}=this,{data:s,width:n,height:a,kind:i}=t,o=n*a*4,r=Math.ceil(Math.log2(o/b3)),l=n>>r,f=a>>r,c,h=a;try{c=new Uint8Array(o)}catch{let k=Math.floor(Math.log2(o+1));for(;;)try{c=new Uint8Array(2**k-1);break}catch{k-=1}h=Math.floor((2**k-1)/(4*n));let q=n*h*4;q<c.length&&(c=new Uint8Array(q))}let m=new Uint32Array(c.buffer),u=new Uint32Array(l*f),d=0,p=0,g=Math.ceil(a/h),b=a%h===0?a:a%h;for(let k=0;k<g;k++){let q=k<g-1?h:b;({srcPos:d}=X4({kind:i,src:s,dest:m,width:n,height:q,inverseDecode:this._isMask,srcPos:d}));for(let y=0,v=q>>r;y<v;y++){let A=m.subarray((y<<r)*n);for(let x=0;x<l;x++)u[p++]=A[x<<r]}}if(Ta.needsToBeResized(l,f))return t.data=u,t.width=l,t.height=f,t.kind=sa,null;let w=new OffscreenCanvas(l,f);return w.getContext("2d",{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(u.buffer),l,f),0,0),t.data=null,t.bitmap=w.transferToImageBitmap(),t.width=l,t.height=f,t},at(Ta,Zs,2048),at(Ta,yf,us.isImageDecoderSupported);var tn=Ta,Wk=new Uint8Array(0),os=class extends Et{constructor(s){super();Y(this,"buffer",Wk);Y(this,"bufferLength",0);Y(this,"eof",!1);Y(this,"minBufferLength",512);Y(this,"pos",0);if(this._rawMinBufferLength=s||0,s)for(;this.minBufferLength<s;)this.minBufferLength*=2}readBlock(){Zt("Abstract method `readBlock` called")}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(s){let n=this.buffer;if(s<=n.byteLength)return n;let a=this.minBufferLength;for(;a<s;)a*=2;let i=new Uint8Array(a);return i.set(n),this.buffer=i}getByte(){let s=this.pos;for(;this.bufferLength<=s;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(s,n=null){let a=this.pos,i;if(s){for(this.ensureBuffer(a+s),i=a+s;!this.eof&&this.bufferLength<i;)this.readBlock(n);let o=this.bufferLength;i>o&&(i=o)}else{for(;!this.eof;)this.readBlock(n);i=this.bufferLength}return this.pos=i,this.buffer.subarray(a,i)}async getImageData(s,n){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,s,n):this.getBytes(s,n);let a=await this.stream.asyncGetBytes();return this.decodeImage(a,s,n)}async asyncGetBytesFromDecompressionStream(s){this.stream.reset();let n=this.stream.isAsync?await this.stream.asyncGetBytes():this.stream.getBytes();try{let{readable:a,writable:i}=new DecompressionStream(s),o=i.getWriter();await o.ready,o.write(n).then(async()=>{await o.ready,await o.close()}).catch(()=>{});let r=[],l=0;for await(let h of a)r.push(h),l+=h.byteLength;let f=new Uint8Array(l),c=0;for(let h of r)f.set(h,c),c+=h.byteLength;return{decompressed:f,compressed:n}}catch{return{decompressed:null,compressed:n}}}reset(){this.pos=0}makeSubStream(s,n,a=null){if(n===void 0)for(;!this.eof;)this.readBlock();else{let i=s+n;for(;this.bufferLength<=i&&!this.eof;)this.readBlock()}return new ke(this.buffer,s,n,a)}clone(){for(;!this.eof;)this.readBlock();return new ke(this.buffer,0,this.bufferLength,this.dict?.clone())}getBaseStreams(){return this.stream?this.stream.getBaseStreams():null}},um=class extends os{constructor(t,s=null){t=t.filter(a=>a instanceof Et&&!a.isImageStream);let n=0;for(let a of t)n+=a instanceof os?a._rawMinBufferLength:a.length;super(n),this.streams=t,this._onError=s}readBlock(){let t=this.streams;if(t.length===0){this.eof=!0;return}let s=t.shift(),n;try{n=s.getBytes()}catch(o){if(this._onError){this._onError(o,s.dict?.objId);return}throw o}let a=this.bufferLength,i=a+n.length;this.ensureBuffer(i).set(n,a),this.bufferLength=i}getBaseStreams(){let t=[];for(let s of this.streams){let n=s.getBaseStreams();n&&t.push(...n)}return t.length>0?t:null}},In,Uo,l1,ae=class{static parse({cs:t,xref:s,resources:n=null,pdfFunctionFactory:a,globalColorSpaceCache:i,localColorSpaceCache:o,asyncIfNotCached:r=!1}){let l={xref:s,resources:n,pdfFunctionFactory:a,globalColorSpaceCache:i,localColorSpaceCache:o},f,c,h;if(t instanceof rt){c=t;let m=i.getByRef(c)||o.getByRef(c);if(m)return m;t=s.fetch(t)}if(t instanceof it){f=t.name;let m=o.getByName(f);if(m)return m}try{h=N(this,In,l1).call(this,t,l)}catch(m){if(r&&!(m instanceof de))return Promise.reject(m);throw m}return(f||c)&&(o.set(f,c,h),c&&i.set(null,c,h)),r?Promise.resolve(h):h}static get gray(){return yt(this,"gray",new Z0)}static get rgb(){return yt(this,"rgb",new tm)}static get rgba(){return yt(this,"rgba",new em)}static get cmyk(){if(Il.isUsable)try{return yt(this,"cmyk",new Il)}catch{F("CMYK fallback: DeviceCMYK")}return yt(this,"cmyk",new _1)}};In=new WeakSet,Uo=function(t,s){let{globalColorSpaceCache:n}=s,a;if(t instanceof rt){a=t;let o=n.getByRef(a);if(o)return o}let i=N(this,In,l1).call(this,t,s);return a&&n.set(null,a,i),i},l1=function(t,s){let{xref:n,resources:a,pdfFunctionFactory:i,globalColorSpaceCache:o}=s;if((t=n.fetchIfRef(t))instanceof it)switch(t.name){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"DeviceRGBA":return this.rgba;case"CMYK":case"DeviceCMYK":return this.cmyk;case"Pattern":return new N1(null);default:if(a instanceof R){let r=a.get("ColorSpace");if(r instanceof R){let l=r.get(t.name);if(l){if(l instanceof it)return N(this,In,l1).call(this,l,s);t=l;break}}}return F(`Unrecognized ColorSpace: ${t.name}`),this.gray}if(Array.isArray(t)){let r=n.fetchIfRef(t[0]).name,l,f,c,h,m,u;switch(r){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"CMYK":case"DeviceCMYK":return this.cmyk;case"CalGray":return l=n.fetchIfRef(t[1]),h=l.getArray("WhitePoint"),m=l.getArray("BlackPoint"),u=l.get("Gamma"),new nm(h,m,u);case"CalRGB":l=n.fetchIfRef(t[1]),h=l.getArray("WhitePoint"),m=l.getArray("BlackPoint"),u=l.getArray("Gamma");let d=l.getArray("Matrix");return new im(h,m,u,d);case"ICCBased":let p=t[1]instanceof rt;if(p){let x=o.getByRef(t[1]);if(x)return x}let g=n.fetchIfRef(t[1]),b=g.dict;if(f=b.get("N"),Ki.isUsable)try{let x=new Ki(g.getBytes(),"ICCBased",f);return p&&o.set(null,t[1],x),x}catch(x){if(x instanceof de)throw x;F(`ICCBased color space (${t[1]}): "${x}".`)}let w=b.getRaw("Alternate");if(w){let x=N(this,In,Uo).call(this,w,s);if(x.numComps===f)return x;F("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(f===1)return this.gray;if(f===3)return this.rgb;if(f===4)return this.cmyk;break;case"Pattern":return c=t[1]||null,c&&(c=N(this,In,Uo).call(this,c,s)),new N1(c);case"I":case"Indexed":c=N(this,In,Uo).call(this,t[1],s);let k=He(n.fetchIfRef(t[2]),0,255),q=n.fetchIfRef(t[3]);return new Q0(c,k,q);case"Separation":case"DeviceN":let y=n.fetchIfRef(t[1]);f=Array.isArray(y)?y.length:1,c=N(this,In,Uo).call(this,t[2],s);let v=i.create(t[3]);return new J0(f,c,v);case"Lab":l=n.fetchIfRef(t[1]),h=l.getArray("WhitePoint"),m=l.getArray("BlackPoint");let A=l.getArray("Range");return new om(h,m,A);default:return F(`Unimplemented ColorSpace object: ${r}`),this.gray}}return F(`Unrecognized ColorSpace object: ${t}`),this.gray},at(ae,In);var zs=class extends Bs{constructor(t){super(t,"JpegError")}},Hl=class extends Bs{constructor(t,s){super(t,"DNLMarkerError"),this.scanLines=s}},P1=class extends Bs{constructor(t){super(t,"EOIMarkerError")}},Zo=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),Dc=4017,Oc=799,Nc=3406,_c=2276,Pc=1567,Uc=3784,nr=5793,Lc=2896;function Vk(e,t){let s,n,a=0,i=16;for(;i>0&&!e[i-1];)i--;let o=[{children:[],index:0}],r,l=o[0];for(s=0;s<i;s++){for(n=0;n<e[s];n++){for(l=o.pop(),l.children[l.index]=t[a];l.index>0;)l=o.pop();for(l.index++,o.push(l);o.length<=s;)o.push(r={children:[],index:0}),l.children[l.index]=r.children,l=r;a++}s+1<i&&(o.push(r={children:[],index:0}),l.children[l.index]=r.children,l=r)}return o[0].children}function mm(e,t,s){return 64*((e.blocksPerLine+1)*t+s)}function $k(e,t,s,n,a,i,o,r,l,f,c=!1){let h=n.mcusPerLine,m=n.progressive,u=s,d=0,p=0;function g(){if(p>0)return p--,d>>p&1;if(d=e[s++],d===255){let U=e[s++];if(U){if(U===220&&c){s+=2;let _=t.getUint16(s);if(s+=2,_>0&&_!==n.scanLines)throw new Hl("Found DNL marker (0xFFDC) while parsing scan data",_)}else if(U===217){if(c){let _=A*(n.precision===8?8:0);if(_>0&&Math.round(n.scanLines/_)>=5)throw new Hl("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",_)}throw new P1("Found EOI marker (0xFFD9) while parsing scan data")}throw new zs(`unexpected marker ${(d<<8|U).toString(16)}`)}}return p=7,d>>>7}function b(U){let _=U;for(;;){switch(_=_[g()],typeof _){case"number":return _;case"object":continue}throw new zs("invalid huffman sequence")}}function w(U){let _=0;for(;U>0;)_=_<<1|g(),U--;return _}function k(U){if(U===1)return g()===1?1:-1;let _=w(U);return _>=1<<U-1?_:_+(-1<<U)+1}let q=0,y,v=0,A=0;function x(U,_,ht,vt,G){let It=ht%h;A=(ht/h|0)*U.v+vt;let jt=It*U.h+G;_(U,mm(U,A,jt))}function I(U,_,ht){A=ht/U.blocksPerLine|0;let vt=ht%U.blocksPerLine;_(U,mm(U,A,vt))}let B=a.length,D,W,L,ot,P,H;H=m?o===0?l===0?function(_,ht){let vt=b(_.huffmanTableDC),G=vt===0?0:k(vt)<<f;_.blockData[ht]=_.pred+=G}:function(_,ht){_.blockData[ht]|=g()<<f}:l===0?function(_,ht){if(q>0){q--;return}let vt=o,G=r;for(;vt<=G;){let It=b(_.huffmanTableAC),jt=15&It,kt=It>>4;if(jt===0){if(kt<15){q=w(kt)+(1<<kt)-1;break}vt+=16;continue}vt+=kt;let Ft=Zo[vt];_.blockData[ht+Ft]=k(jt)*(1<<f),vt++}}:function(_,ht){let vt=o,G=r,It,jt,kt=0;for(;vt<=G;){let Ft=ht+Zo[vt],mt=_.blockData[Ft]<0?-1:1;switch(v){case 0:if(jt=b(_.huffmanTableAC),It=15&jt,kt=jt>>4,It===0)kt<15?(q=w(kt)+(1<<kt),v=4):(kt=16,v=1);else{if(It!==1)throw new zs("invalid ACn encoding");y=k(It),v=kt?2:3}continue;case 1:case 2:_.blockData[Ft]?_.blockData[Ft]+=mt*(g()<<f):(kt--,kt===0&&(v=v===2?3:0));break;case 3:_.blockData[Ft]?_.blockData[Ft]+=mt*(g()<<f):(_.blockData[Ft]=y<<f,v=0);break;case 4:_.blockData[Ft]&&(_.blockData[Ft]+=mt*(g()<<f))}vt++}v===4&&(q--,q===0&&(v=0))}:function(_,ht){let vt=b(_.huffmanTableDC),G=vt===0?0:k(vt);_.blockData[ht]=_.pred+=G;let It=1;for(;It<64;){let jt=b(_.huffmanTableAC),kt=15&jt,Ft=jt>>4;if(kt===0){if(Ft<15)break;It+=16;continue}It+=Ft;let mt=Zo[It];_.blockData[ht+mt]=k(kt),It++}};let V,C=0,M=B===1?a[0].blocksPerLine*a[0].blocksPerColumn:h*n.mcusPerColumn,J,et;for(;C<=M;){let U=i?Math.min(M-C,i):M;if(U>0){for(W=0;W<B;W++)a[W].pred=0;if(q=0,B===1)for(D=a[0],P=0;P<U;P++)I(D,H,C),C++;else for(P=0;P<U;P++){for(W=0;W<B;W++)for(D=a[W],J=D.h,et=D.v,L=0;L<et;L++)for(ot=0;ot<J;ot++)x(D,H,C,L,ot);C++}}if(p=0,V=Fu(e,t,s),!V||(V.invalid&&(F(`decodeScan - ${U>0?"unexpected":"excessive"} MCU data, current marker is: ${V.invalid}`),s=V.offset),!(V.marker>=65488&&V.marker<=65495)))break;s+=2}return s-u}function Gk(e,t,s){let n=e.quantizationTable,a=e.blockData,i,o,r,l,f,c,h,m,u,d,p,g,b,w,k,q,y;if(!n)throw new zs("missing required Quantization Table.");for(let v=0;v<64;v+=8)u=a[t+v],d=a[t+v+1],p=a[t+v+2],g=a[t+v+3],b=a[t+v+4],w=a[t+v+5],k=a[t+v+6],q=a[t+v+7],u*=n[v],(d|p|g|b|w|k|q)!==0?(d*=n[v+1],p*=n[v+2],g*=n[v+3],b*=n[v+4],w*=n[v+5],k*=n[v+6],q*=n[v+7],i=nr*u+128>>8,o=nr*b+128>>8,r=p,l=k,f=Lc*(d-q)+128>>8,m=Lc*(d+q)+128>>8,c=g<<4,h=w<<4,i=i+o+1>>1,o=i-o,y=r*Uc+l*Pc+128>>8,r=r*Pc-l*Uc+128>>8,l=y,f=f+h+1>>1,h=f-h,m=m+c+1>>1,c=m-c,i=i+l+1>>1,l=i-l,o=o+r+1>>1,r=o-r,y=f*_c+m*Nc+2048>>12,f=f*Nc-m*_c+2048>>12,m=y,y=c*Oc+h*Dc+2048>>12,c=c*Dc-h*Oc+2048>>12,h=y,s[v]=i+m,s[v+7]=i-m,s[v+1]=o+h,s[v+6]=o-h,s[v+2]=r+c,s[v+5]=r-c,s[v+3]=l+f,s[v+4]=l-f):(y=nr*u+512>>10,s[v]=y,s[v+1]=y,s[v+2]=y,s[v+3]=y,s[v+4]=y,s[v+5]=y,s[v+6]=y,s[v+7]=y);for(let v=0;v<8;++v)u=s[v],d=s[v+8],p=s[v+16],g=s[v+24],b=s[v+32],w=s[v+40],k=s[v+48],q=s[v+56],(d|p|g|b|w|k|q)!==0?(i=nr*u+2048>>12,o=nr*b+2048>>12,r=p,l=k,f=Lc*(d-q)+2048>>12,m=Lc*(d+q)+2048>>12,c=g,h=w,i=4112+(i+o+1>>1),o=i-o,y=r*Uc+l*Pc+2048>>12,r=r*Pc-l*Uc+2048>>12,l=y,f=f+h+1>>1,h=f-h,m=m+c+1>>1,c=m-c,i=i+l+1>>1,l=i-l,o=o+r+1>>1,r=o-r,y=f*_c+m*Nc+2048>>12,f=f*Nc-m*_c+2048>>12,m=y,y=c*Oc+h*Dc+2048>>12,c=c*Dc-h*Oc+2048>>12,h=y,u=i+m,q=i-m,d=o+h,k=o-h,p=r+c,w=r-c,g=l+f,b=l-f,u<16?u=0:u>=4080?u=255:u>>=4,d<16?d=0:d>=4080?d=255:d>>=4,p<16?p=0:p>=4080?p=255:p>>=4,g<16?g=0:g>=4080?g=255:g>>=4,b<16?b=0:b>=4080?b=255:b>>=4,w<16?w=0:w>=4080?w=255:w>>=4,k<16?k=0:k>=4080?k=255:k>>=4,q<16?q=0:q>=4080?q=255:q>>=4,a[t+v]=u,a[t+v+8]=d,a[t+v+16]=p,a[t+v+24]=g,a[t+v+32]=b,a[t+v+40]=w,a[t+v+48]=k,a[t+v+56]=q):(y=nr*u+8192>>14,y=y<-2040?0:y>=2024?255:y+2056>>4,a[t+v]=y,a[t+v+8]=y,a[t+v+16]=y,a[t+v+24]=y,a[t+v+32]=y,a[t+v+40]=y,a[t+v+48]=y,a[t+v+56]=y)}function Xk(e,t){let s=t.blocksPerLine,n=t.blocksPerColumn,a=new Int16Array(64);for(let i=0;i<n;i++)for(let o=0;o<s;o++)Gk(t,mm(t,i,o),a);return t.blockData}function Fu(e,t,s,n=s){let a=e.length-1,i=n<s?n:s;if(s>=a)return null;let o=t.getUint16(s);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:s};let r=t.getUint16(i);for(;!(r>=65472&&r<=65534);){if(++i>=a)return null;r=t.getUint16(i)}return{invalid:o.toString(16),marker:r,offset:i}}function Yk(e){let t=Math.ceil(e.samplesPerLine/8/e.maxH),s=Math.ceil(e.scanLines/8/e.maxV);for(let n of e.components){let a=Math.ceil(Math.ceil(e.samplesPerLine/8)*n.h/e.maxH),i=Math.ceil(Math.ceil(e.scanLines/8)*n.v/e.maxV),o=t*n.h,r=64*(s*n.v)*(o+1);n.blockData=new Int16Array(r),n.blocksPerLine=a,n.blocksPerColumn=i}e.mcusPerLine=t,e.mcusPerColumn=s}function k3(e,t,s){let n=t.getUint16(s),a=(s+=2)+n-2,i=Fu(e,t,a,s);i?.invalid&&(F("readDataBlock - incorrect length, current marker is: "+i.invalid),a=i.offset);let o=e.subarray(s,a);return{appData:o,oldOffset:s,newOffset:s+o.length}}function Jk(e,t,s){let n=t.getUint16(s),a=(s+=2)+n-2,i=Fu(e,t,a,s);return i?.invalid?i.offset:a}var iu,J4,U1=class{constructor(t){at(this,iu);this._colorTransform=t?.colorTransform??-1}static canUseImageDecoder(t,s=-1){let n=new DataView(t.buffer,t.byteOffset,t.byteLength),a={width:0,height:0,exifStart:0,exifEnd:0},i=0,o=null,r=n.getUint16(i);if(i+=2,r!==65496)throw new zs("SOI not found");r=n.getUint16(i),i+=2;t:for(;r!==65497;){switch(r){case 65505:let{appData:l,oldOffset:f,newOffset:c}=k3(t,n,i);if(i=c,l[0]===69&&l[1]===120&&l[2]===105&&l[3]===102&&l[4]===0&&l[5]===0){if(a.exifStart)throw new zs("Duplicate EXIF-blocks found.");a.exifStart=f+6,a.exifEnd=c}r=n.getUint16(i),i+=2;continue;case 65472:case 65473:case 65474:a.height=n.getUint16(i+3),a.width=n.getUint16(i+5),o=t[i+7];break t;case 65535:t[i]!==255&&i--}i=Jk(t,n,i),r=n.getUint16(i),i+=2}return o===4||o===3&&s===0?null:a}parse(t,{dnlScanLines:s=null}={}){let n=new DataView(t.buffer,t.byteOffset,t.byteLength),a=t.length-1,i,o,r=0,l=null,f=null,c=0,h=[],m=[],u=[],d=n.getUint16(r);if(r+=2,d!==65496)throw new zs("SOI not found");d=n.getUint16(r),r+=2;t:for(;d!==65497;){let p,g,b;switch(d){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:let{appData:w,newOffset:k}=k3(t,n,r);r=k,d===65504&&w[0]===74&&w[1]===70&&w[2]===73&&w[3]===70&&w[4]===0&&(l={version:{major:w[5],minor:w[6]},densityUnits:w[7],xDensity:w[8]<<8|w[9],yDensity:w[10]<<8|w[11],thumbWidth:w[12],thumbHeight:w[13],thumbData:w.subarray(14,14+3*w[12]*w[13])}),d===65518&&w[0]===65&&w[1]===100&&w[2]===111&&w[3]===98&&w[4]===101&&(f={version:w[5]<<8|w[6],flags0:w[7]<<8|w[8],flags1:w[9]<<8|w[10],transformCode:w[11]});break;case 65499:let q=n.getUint16(r);r+=2;let y=q+r-2,v;for(;r<y;){let M=t[r++],J=new Uint16Array(64);if(M>>4){if(M>>4!=1)throw new zs("DQT - invalid table spec");for(g=0;g<64;g++)v=Zo[g],J[v]=n.getUint16(r),r+=2}else for(g=0;g<64;g++)v=Zo[g],J[v]=t[r++];h[15&M]=J}break;case 65472:case 65473:case 65474:if(i)throw new zs("Only single frame JPEGs supported");r+=2,i={},i.extended=d===65473,i.progressive=d===65474,i.precision=t[r++];let A=n.getUint16(r);r+=2,i.scanLines=s||A,i.samplesPerLine=n.getUint16(r),r+=2,i.components=[],i.componentIds={};let x=t[r++],I=0,B=0;for(p=0;p<x;p++){let M=t[r],J=t[r+1]>>4,et=15&t[r+1];I<J&&(I=J),B<et&&(B=et);let U=t[r+2];b=i.components.push({h:J,v:et,quantizationId:U,quantizationTable:null}),i.componentIds[M]=b-1,r+=3}i.maxH=I,i.maxV=B,Yk(i);break;case 65476:let D=n.getUint16(r);for(r+=2,p=2;p<D;){let M=t[r++],J=new Uint8Array(16),et=0;for(g=0;g<16;g++,r++)et+=J[g]=t[r];let U=new Uint8Array(et);for(g=0;g<et;g++,r++)U[g]=t[r];p+=17+et,(M>>4?m:u)[15&M]=Vk(J,U)}break;case 65501:r+=2,o=n.getUint16(r),r+=2;break;case 65498:let W=++c===1&&!s;r+=2;let L=t[r++],ot=[];for(p=0;p<L;p++){let M=t[r++],J=i.componentIds[M],et=i.components[J];et.index=M;let U=t[r++];et.huffmanTableDC=u[U>>4],et.huffmanTableAC=m[15&U],ot.push(et)}let P=t[r++],H=t[r++],V=t[r++];try{r+=$k(t,n,r,i,ot,o,P,H,V>>4,15&V,W)}catch(M){if(M instanceof Hl)return F(`${M.message} -- attempting to re-parse the JPEG image.`),this.parse(t,{dnlScanLines:M.scanLines});if(M instanceof P1){F(`${M.message} -- ignoring the rest of the image data.`);break t}throw M}break;case 65500:r+=4;break;case 65535:t[r]!==255&&r--;break;default:let C=Fu(t,n,r-2,r-3);if(C?.invalid){F("JpegImage.parse - unexpected data, current marker is: "+C.invalid),r=C.offset;break}if(!C||r>=a){F("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break t}throw new zs("JpegImage.parse - unknown marker: "+d.toString(16))}r<a?(d=n.getUint16(r),r+=2):d=0}if(!i)throw new zs("JpegImage.parse - no frame data found.");this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=l,this.adobe=f,this.components=[];for(let p of i.components){let g=h[p.quantizationId];g&&(p.quantizationTable=g),this.components.push({index:p.index,output:Xk(0,p),scaleX:p.h/i.maxH,scaleY:p.v/i.maxV,blocksPerLine:p.blocksPerLine,blocksPerColumn:p.blocksPerColumn})}this.numComponents=this.components.length}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform!==0&&(this.components[0].index!==82||this.components[1].index!==71||this.components[2].index!==66):this._colorTransform===1}_convertYccToRgb(t){let s,n,a;for(let i=0,o=t.length;i<o;i+=3)s=t[i],n=t[i+1],a=t[i+2],t[i]=s-179.456+1.402*a,t[i+1]=s+135.459-.344*n-.714*a,t[i+2]=s-226.816+1.772*n;return t}_convertYccToRgba(t,s){for(let n=0,a=0,i=t.length;n<i;n+=3,a+=4){let o=t[n],r=t[n+1],l=t[n+2];s[a]=o-179.456+1.402*l,s[a+1]=o+135.459-.344*r-.714*l,s[a+2]=o-226.816+1.772*r,s[a+3]=255}return s}_convertYcckToRgb(t){return this._convertYcckToCmyk(t),this._convertCmykToRgb(t)}_convertYcckToRgba(t){return this._convertYcckToCmyk(t),this._convertCmykToRgba(t)}_convertYcckToCmyk(t){let s,n,a;for(let i=0,o=t.length;i<o;i+=4)s=t[i],n=t[i+1],a=t[i+2],t[i]=434.456-s-1.402*a,t[i+1]=119.541-s+.344*n+.714*a,t[i+2]=481.816-s-1.772*n;return t}_convertCmykToRgb(t){let s=t.length/4;return ae.cmyk.getRgbBuffer(t,0,s,t,0,8,0),t.subarray(0,3*s)}_convertCmykToRgba(t){if(ae.cmyk.getRgbBuffer(t,0,t.length/4,t,0,8,1),ae.cmyk instanceof _1)for(let s=3,n=t.length;s<n;s+=4)t[s]=255;return t}getData({width:t,height:s,forceRGBA:n=!1,forceRGB:a=!1}){if(this.numComponents>4)throw new zs("Unsupported color mode");let i=N(this,iu,J4).call(this,t,s);if(this.numComponents===1&&(n||a)){let o=i.length*(n?4:3),r=new Uint8ClampedArray(o),l=0;if(n)(function(c,h){if(us.isLittleEndian)for(let m=0,u=c.length;m<u;m++)h[m]=65793*c[m]|4278190080;else for(let m=0,u=c.length;m<u;m++)h[m]=16843008*c[m]|255})(i,new Uint32Array(r.buffer));else for(let f of i)r[l++]=f,r[l++]=f,r[l++]=f;return r}if(this.numComponents===3&&this._isColorConversionNeeded){if(n){let o=new Uint8ClampedArray(i.length/3*4);return this._convertYccToRgba(i,o)}return this._convertYccToRgb(i)}if(this.numComponents===4){if(this._isColorConversionNeeded)return n?this._convertYcckToRgba(i):a?this._convertYcckToRgb(i):this._convertYcckToCmyk(i);if(n)return this._convertCmykToRgba(i);if(a)return this._convertCmykToRgb(i)}return i}};iu=new WeakSet,J4=function(t,s){let n=this.width/t,a=this.height/s,i,o,r,l,f,c,h,m,u,d,p=0,g=this.components.length,b=new Uint8ClampedArray(t*s*g),w=new Uint32Array(t),k=4294967288,q;for(h=0;h<g;h++){if(i=this.components[h],o=i.scaleX*n,r=i.scaleY*a,p=h,d=i.output,l=i.blocksPerLine+1<<3,o!==q){for(f=0;f<t;f++)m=0|f*o,w[f]=(m&k)<<3|7&m;q=o}for(c=0;c<s;c++)for(m=0|c*r,u=l*(m&k)|(7&m)<<3,f=0;f<t;f++)b[p]=d[u+w[f]],p+=g}return b};var vf,xf,pm,ru=class ru extends os{constructor(s,n,a){super(n);at(this,xf);this.stream=s,this.dict=s.dict,this.maybeLength=n,this.params=a}static get canUseImageDecoder(){return yt(this,"canUseImageDecoder",S(this,vf)?ImageDecoder.isTypeSupported("image/jpeg"):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:s=!1}){Bt(this,vf,s)}get bytes(){return yt(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(s){}readBlock(){this.decodeImage()}get jpegOptions(){let s={colorTransform:void 0};if(this.params instanceof R){let n=this.params.get("ColorTransform");Number.isInteger(n)&&(s.colorTransform=n)}return yt(this,"jpegOptions",s)}decodeImage(s){if(this.eof)return this.buffer;s=N(this,xf,pm).call(this,s||this.bytes);let n=new U1(this.jpegOptions);n.parse(s);let a=n.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB});return this.buffer=a,this.bufferLength=a.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(s,n){if(!await ru.canUseImageDecoder)return null;let a=this.jpegOptions,i;try{let o=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!o)return null;let r=N(this,xf,pm).call(this,o),l=U1.canUseImageDecoder(r,a.colorTransform);if(!l)return null;let{width:f,height:c}=l,h=tn.getReducePower(f,c);if((f!==s||c!==n)&&(h||!c))return null;l.exifStart&&(r=r.slice(),r.fill(0,l.exifStart,l.exifEnd));let m={data:r,type:"image/jpeg",preferAnimation:!1};if(h){let u=2**h;m.desiredWidth=Math.ceil(f/u),m.desiredHeight=Math.ceil(c/u)}return i=new ImageDecoder(m),(await i.decode()).image}catch(o){return F(`getTransferableImage - failed: "${o}".`),null}finally{i?.close()}}get isImageStream(){return!0}};vf=new WeakMap,xf=new WeakSet,pm=function(s){for(let n=0,a=s.length-1;n<a;n++)if(s[n]===255&&s[n+1]===216){n>0&&(s=s.subarray(n));break}return s},at(ru,vf,us.isImageDecoderSupported);var fo=ru;function Ic(e,t,s,n,a){let i=e;for(let o=0,r=t.length-1;o<r;o++){let l=t[o];i=i[l]||(i[l]=[])}i[t.at(-1)]={checkFn:s,iterateFn:n,processFn:a}}var Wi=[];Ic(Wi,[Hn,wa,F1,Vs],null,function(t,s){let n=t.fnArray,a=(s-(t.iCurr-3))%4;switch(a){case 0:return n[s]===Hn;case 1:return n[s]===wa;case 2:return n[s]===F1;case 3:return n[s]===Vs}throw new Error(`iterateInlineImageGroup - invalid pos: ${a}`)},function(t,s){let n=t.fnArray,a=t.argsArray,i=t.iCurr,o=i-3,r=i-2,l=i-1,f=Math.min(Math.floor((s-o)/4),200);if(f<10)return s-(s-o)%4;let c=0,h=[],m=0,u=1,d=1;for(let q=0;q<f;q++){let y=a[r+(q<<2)],v=a[l+(q<<2)][0];u+v.width>1e3&&(c=Math.max(c,u),d+=m+2,u=0,m=0),h.push({transform:y,x:u,y:d,w:v.width,h:v.height}),u+=v.width+2,m=Math.max(m,v.height)}let p=Math.max(c,u)+1,g=d+m+1,b=new Uint8Array(p*g*4),w=p<<2;for(let q=0;q<f;q++){let y=a[l+(q<<2)][0].data,v=h[q].w<<2,A=0,x=h[q].x+h[q].y*p<<2;b.set(y.subarray(0,v),x-w);for(let I=0,B=h[q].h;I<B;I++)b.set(y.subarray(A,A+v),x),A+=v,x+=w;for(b.set(y.subarray(A-v,A),x);x>=0;)y[x-4]=y[x],y[x-3]=y[x+1],y[x-2]=y[x+2],y[x-1]=y[x+3],y[x+v]=y[x+v-4],y[x+v+1]=y[x+v-3],y[x+v+2]=y[x+v-2],y[x+v+3]=y[x+v-1],x-=w}let k={width:p,height:g};if(t.isOffscreenCanvasSupported){let q=new OffscreenCanvas(p,g);q.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(b.buffer),p,g),0,0),k.bitmap=q.transferToImageBitmap(),k.data=null}else k.kind=sa,k.data=b;return n.splice(o,4*f,T4),a.splice(o,4*f,[k,h]),o+1});Ic(Wi,[Hn,wa,ao,Vs],null,function(t,s){let n=t.fnArray,a=(s-(t.iCurr-3))%4;switch(a){case 0:return n[s]===Hn;case 1:return n[s]===wa;case 2:return n[s]===ao;case 3:return n[s]===Vs}throw new Error(`iterateImageMaskGroup - invalid pos: ${a}`)},function(t,s){let n=t.fnArray,a=t.argsArray,i=t.iCurr,o=i-3,r=i-2,l=i-1,f=Math.floor((s-o)/4);if(f<10)return s-(s-o)%4;let c,h,m=!1,u=a[l][0],d=a[r][0],p=a[r][1],g=a[r][2],b=a[r][3];if(p===g){m=!0,c=r+4;let w=l+4;for(let k=1;k<f;k++,c+=4,w+=4)if(h=a[c],a[w][0]!==u||h[0]!==d||h[1]!==p||h[2]!==g||h[3]!==b){k<10?m=!1:f=k;break}}if(m){f=Math.min(f,1e3);let w=new Float32Array(2*f);c=r;for(let k=0;k<f;k++,c+=4)h=a[c],w[k<<1]=h[4],w[1+(k<<1)]=h[5];n.splice(o,4*f,kk),a.splice(o,4*f,[u,d,p,g,b,w])}else{f=Math.min(f,100);let w=[];for(let k=0;k<f;k++){h=a[r+(k<<2)];let q=a[l+(k<<2)][0];w.push({data:q.data,width:q.width,height:q.height,interpolate:q.interpolate,count:q.count,transform:h})}n.splice(o,4*f,wk),a.splice(o,4*f,[w])}return o+1});Ic(Wi,[Hn,wa,U0,Vs],function(e){let t=e.argsArray,s=e.iCurr-2;return t[s][1]===0&&t[s][2]===0},function(t,s){let n=t.fnArray,a=t.argsArray,i=(s-(t.iCurr-3))%4;switch(i){case 0:return n[s]===Hn;case 1:if(n[s]!==wa)return!1;let o=t.iCurr-2,r=a[o][0],l=a[o][3];return a[s][0]===r&&a[s][1]===0&&a[s][2]===0&&a[s][3]===l;case 2:if(n[s]!==U0)return!1;let f=a[t.iCurr-1][0];return a[s][0]===f;case 3:return n[s]===Vs}throw new Error(`iterateImageGroup - invalid pos: ${i}`)},function(e,t){let s=e.fnArray,n=e.argsArray,a=e.iCurr,i=a-3,o=a-2,r=n[a-1][0],l=n[o][0],f=n[o][3],c=Math.min(Math.floor((t-i)/4),1e3);if(c<3)return t-(t-i)%4;let h=new Float32Array(2*c),m=o;for(let d=0;d<c;d++,m+=4){let p=n[m];h[d<<1]=p[4],h[1+(d<<1)]=p[5]}let u=[r,l,f,h];return s.splice(i,4*c,jk),n.splice(i,4*c,u),i+1});Ic(Wi,[A1,Ga,Ui,oa,xl],null,function(t,s){let n=t.fnArray,a=t.argsArray,i=(s-(t.iCurr-4))%5;switch(i){case 0:return n[s]===A1;case 1:return n[s]===Ga;case 2:return n[s]===Ui;case 3:if(n[s]!==oa)return!1;let o=t.iCurr-3,r=a[o][0],l=a[o][1];return a[s][0]===r&&a[s][1]===l;case 4:return n[s]===xl}throw new Error(`iterateShowTextGroup - invalid pos: ${i}`)},function(e,t){let s=e.fnArray,n=e.argsArray,a=e.iCurr,i=a-4,o=a-3,r=a-2,l=a-1,f=a,c=n[o][0],h=n[o][1],m=Math.min(Math.floor((t-i)/5),1e3);if(m<3)return t-(t-i)%5;let u=i;i>=4&&s[i-4]===s[o]&&s[i-3]===s[r]&&s[i-2]===s[l]&&s[i-1]===s[f]&&n[i-4][0]===c&&n[i-4][1]===h&&(m++,u-=5);let d=u+4;for(let p=1;p<m;p++)s.splice(d,3),n.splice(d,3),d+=2;return d+1});Ic(Wi,[Hn,wa,Mi,Vs],e=>{let t=e.argsArray,s=t[e.iCurr-1][0];if(s!==b5&&s!==v1&&s!==w5&&s!==j5&&s!==x1&&s!==S1)return!0;let n=t[e.iCurr-2];return n[0]===1&&n[1]===0&&n[2]===0&&n[3]===1},()=>!1,(e,t)=>{let{fnArray:s,argsArray:n}=e,a=e.iCurr,i=a-3,o=a-2,r=n[a-1],l=n[o],[,[f],c]=r;if(c){let h=k1.slice();ee.axialAlignedBoundingBox(c,l,h),c.set(h);for(let m=0,u=f.length;m<u;)switch(f[m++]){case wi:case xn:ee.applyTransform(f,l,m),m+=2;break;case Jo:ee.applyTransformToBezier(f,l,m),m+=6}}return s.splice(i,4,Mi),n.splice(i,4,r),i+1});var L1=class{constructor(t){this.queue=t}_optimize(){}push(t,s){this.queue.fnArray.push(t),this.queue.argsArray.push(s),this._optimize()}flush(){}reset(){}},dm=class extends L1{constructor(t){super(t),this.state=null,this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray,isOffscreenCanvasSupported:$s.isOffscreenCanvasSupported},this.match=null,this.lastProcessed=0}_optimize(){let t=this.queue.fnArray,s=this.lastProcessed,n=t.length,a=this.state,i=this.match;if(!a&&!i&&s+1===n&&!Wi[t[s]]){this.lastProcessed=n;return}let o=this.context;for(;s<n;){if(i){if((0,i.iterateFn)(o,s)){s++;continue}if(s=(0,i.processFn)(o,s+1),n=t.length,i=null,a=null,s>=n)break}a=(a||Wi)[t[s]],a&&!Array.isArray(a)?(o.iCurr=s,s++,(!a.checkFn||(0,a.checkFn)(o))&&(i=a),a=null):s++}this.state=a,this.match=i,this.lastProcessed=s}flush(){for(;this.match;){let t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}},Zn=class Zn{constructor(t=0,s){this._streamSink=s,this.fnArray=[],this.argsArray=[],this.optimizer=!s||t&zj?new L1(this):new dm(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=s?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:t}){this.isOffscreenCanvasSupported=t}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(t,s){this.optimizer.push(t,s),this.weight++,this._streamSink&&(this.weight>=Zn.CHUNK_SIZE||this.weight>=Zn.CHUNK_SIZE_ABOUT&&(t===Vs||t===xl))&&this.flush()}addImageOps(t,s,n,a=!1){a&&(this.addOp(Hn),this.addOp(Wa,[[["SMask",!1]]])),n!==void 0&&this.addOp(Dn,["OC",n]),this.addOp(t,s),n!==void 0&&this.addOp(Va,[]),a&&this.addOp(Vs)}addDependency(t){this.dependencies.has(t)||(this.dependencies.add(t),this.addOp(lk,[t]))}addDependencies(t){for(let s of t)this.addDependency(s)}addOpList(t){if(t instanceof Zn){for(let s of t.dependencies)this.dependencies.add(s);for(let s=0,n=t.length;s<n;s++)this.addOp(t.fnArray[s],t.argsArray[s])}else F(\'addOpList - ignoring invalid "opList" parameter.\')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){let t=[],{fnArray:s,argsArray:n,length:a}=this;for(let i=0;i<a;i++)switch(s[i]){case F1:case T4:case ao:{let{bitmap:l,data:f}=n[i][0];(l||f?.buffer)&&t.push(l||f.buffer);break}case Mi:{let[,[l],f]=n[i];l&&t.push(l.buffer,f.buffer);break}case P0:let[o,r]=n[i];o&&t.push(o.buffer),r&&t.push(r.buffer);break;case Ui:t.push(n[i][0].buffer)}return t}flush(t=!1,s=null){this.optimizer.flush();let n=this.length;this._totalLength+=n,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,separateAnnots:s,length:n},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}};Y(Zn,"CHUNK_SIZE",1e3),Y(Zn,"CHUNK_SIZE_ABOUT",Zn.CHUNK_SIZE-5),Y(Zn,"isOffscreenCanvasSupported",!1);var $s=Zn,E1=class extends $s{constructor(){super(...arguments);Y(this,"needsIsolation",!1);Y(this,"hasSoftMask",!1)}addOp(s,n){if(!this.needsIsolation||!this.hasSoftMask){if(s===H4)this.needsIsolation||(this.needsIsolation=n[0].needsIsolation),this.hasSoftMask||(this.hasSoftMask=n[0].hasSoftMask);else if(s===Wa)for(let[a,i]of n[0])a==="BM"&&i!=="source-over"?this.needsIsolation=!0:a==="SMask"&&i!==!1&&(this.needsIsolation=!0,this.hasSoftMask=!0)}super.addOp(s,n)}},Q4=1,gm=2,bm=3,Z4=4,t8=5,e8=6,s8=7;function n8(e,t){return He(Math.floor(65536/t),1,e)}var ou,tl=class{constructor(){Zt("Cannot initialize Pattern.")}static setOptions({hasGPU:t}){Bt(this,ou,t)}static parseShading(t,s,n,a,i,o){let r=t instanceof Et?t.dict:t,l=r.get("ShadingType");try{switch(l){case Q4:return new jm(r,s,n,a,i,o);case gm:case bm:return new wm(r,s,n,a,i,o);case Z4:case t8:case e8:case s8:return new ym(t,s,n,a,i,o);default:throw new nt("Unsupported ShadingType: "+l)}}catch(f){if(f instanceof de)throw f;return F(f),new vm}}};ou=new WeakMap,at(tl,ou,!1);var ua=class{getIR(){Zt("Abstract method `getIR` called.")}};Y(ua,"SMALL_NUMBER",1e-6);var wm=class extends ua{constructor(t,s,n,a,i,o){super(),this.shadingType=t.get("ShadingType");let r=0;if(this.shadingType===gm?r=4:this.shadingType===bm&&(r=6),this.coordsArr=t.getArray("Coords"),!Fe(this.coordsArr,r))throw new nt("RadialAxialShading: Invalid /Coords array.");let l=ae.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:s,resources:n,pdfFunctionFactory:a,globalColorSpaceCache:i,localColorSpaceCache:o});this.bbox=Wn(t.getArray("BBox"),null);let f=0,c=1,h=t.getArray("Domain");Fe(h,2)&&([f,c]=h);let m=!1,u=!1,d=t.getArray("Extend");(function(vt,G){return Array.isArray(vt)&&(G===null||vt.length===G)&&vt.every(It=>typeof It=="boolean")})(d,2)&&([m,u]=d),this.extendStart=m,this.extendEnd=u;let p=t.getRaw("Function"),g=a.create(p,!0),b=840,w=(c-f)/b,k=this.colorStops=[];if(f>=c||w<=0){ie("Bad shading domain.");return}let{numComps:q}=l,y=new Float32Array(1),v=n8(b,q),A=new Float32Array(v*q),x=new Uint8ClampedArray(2520);for(let ht=0;ht<b;ht+=v){let vt=Math.min(v,b-ht);for(let G=0,It=0;G<vt;G++,It+=q)y[0]=f+(ht+G)*w,g(y,0,A,It);l.getRgbItems(A,vt,x,3*ht,0)}let I=0,B=x[0],D=x[1],W=x[2];k.push([0,ee.makeHexColor(B,D,W)]);let L=1,ot=x[3],P=x[4],H=x[5],V=ot-B+1,C=P-D+1,M=H-W+1,J=ot-B-1,et=P-D-1,U=H-W-1;for(let ht=2;ht<b;ht++){let vt=3*ht,G=x[vt],It=x[vt+1],jt=x[vt+2],kt=ht-I;if(V=Math.min(V,(G-B+1)/kt),C=Math.min(C,(It-D+1)/kt),M=Math.min(M,(jt-W+1)/kt),J=Math.max(J,(G-B-1)/kt),et=Math.max(et,(It-D-1)/kt),U=Math.max(U,(jt-W-1)/kt),!(J<=V&&et<=C&&U<=M)){let Ft=ee.makeHexColor(ot,P,H);k.push([L/b,Ft]),V=G-ot+1,C=It-P+1,M=jt-H+1,J=G-ot-1,et=It-P-1,U=jt-H-1,I=L,B=ot,D=P,W=H}L=ht,ot=G,P=It,H=jt}k.push([1,ee.makeHexColor(ot,P,H)]);let _=t.has("Background")?l.getRgbHex(t.get("Background"),0):"transparent";m||(k.unshift([0,_]),k[1][0]+=ua.SMALL_NUMBER),u||(k.at(-1)[0]-=ua.SMALL_NUMBER,k.push([1,_])),this.colorStops=k}getIR(){let{coordsArr:t,shadingType:s}=this,n,a,i,o,r;return s===gm?(a=[t[0],t[1]],i=[t[2],t[3]],o=null,r=null,n="axial"):s===bm?(a=[t[0],t[1]],i=[t[3],t[4]],o=t[2],r=t[5],n="radial"):Zt(`getPattern type unknown: ${s}`),["RadialAxial",n,this.bbox,this.colorStops,a,i,o,r]}};function a8(e,t,s){let n=0;for(let f of s)if(f.type===S0)n+=f.coords.length;else if(f.type===vl){let c=f.verticesPerRow;n+=(Math.floor(f.coords.length/c)-1)*(c-1)*6}let a=new Float32Array(2*n),i=new Uint8Array(4*n),o=0,r=0,l=(f,c)=>{a[o++]=e[2*f],a[o++]=e[2*f+1],i[r++]=t[4*c],i[r++]=t[4*c+1],i[r++]=t[4*c+2],r++};for(let f of s){let c=f.coords,h=f.colors;if(f.type===S0)for(let m=0,u=c.length;m<u;m++)l(c[m],h[m]);else if(f.type===vl){let m=f.verticesPerRow,u=Math.floor(c.length/m)-1,d=m-1;for(let p=0;p<u;p++){let g=p*m;for(let b=0;b<d;b++,g++)l(c[g],h[g]),l(c[g+1],h[g+1]),l(c[g+m],h[g+m]),l(c[g+m+1],h[g+m+1]),l(c[g+1],h[g+1]),l(c[g+m],h[g+m])}}}return{posData:a,colData:i,vertexCount:n}}var kl=class kl extends ua{constructor(t,s,n,a,i,o){super(),this.bbox=Wn(t.getArray("BBox"),null);let r=ae.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:s,resources:n,pdfFunctionFactory:a,globalColorSpaceCache:i,localColorSpaceCache:o});this.background=t.has("Background")?r.getRgb(t.get("Background"),0):null;let l=t.getRaw("Function");if(!l)throw new nt("FunctionBasedShading: missing /Function");let f=a.create(l,!0),[c,h,m,u]=Al(t.getArray("Domain"),[0,1,0,1]),d=la(t.getArray("Matrix"),an);this.bounds=Xa.slice(),ee.axialAlignedBoundingBox([c,m,h,u],d,this.bounds);let p=this.bounds[2]-this.bounds[0],g=this.bounds[3]-this.bounds[1],b=He(Math.ceil(p),1,kl.MAX_STEP_COUNT),w=He(Math.ceil(g),1,kl.MAX_STEP_COUNT),k=b+1,q=(w+1)*k,y=this.coords=new Float32Array(2*q),v=this.colors=new Uint8ClampedArray(4*q),{numComps:A}=r,x=new Float32Array(2),I=n8(q,A),B=new Float32Array(I*A),D=(h-c)/b,W=(u-m)/w,L=D/2,ot=W/2,P=0,H=0,V=0,C=0;for(let J=0;J<=w;J++){let et=m+W*J;x[1]=J===w?et-ot:et;for(let U=0;U<=b;U++){let _=c+D*U;x[0]=U===b?_-L:_,f(x,0,B,H),H+=A,V++,y[P]=_,y[P+1]=et,ee.applyTransform(y,d,P),P+=2,V===I&&(r.getRgbItems(B,V,v,C,1),C+=4*V,H=V=0)}}V>0&&r.getRgbItems(B,V,v,C,1);let M=new Uint32Array(q);for(let J=0;J<q;J++)M[J]=J;this.figures=[{type:vl,coords:M,colors:new Uint32Array(M),verticesPerRow:k}]}getIR(){let{posData:t,colData:s,vertexCount:n}=a8(this.coords,this.colors,this.figures);return["Mesh",Q4,t,s,n,this.bounds,this.bbox,this.background]}};Y(kl,"MAX_STEP_COUNT",512);var jm=kl,km=class{constructor(t,s){this.stream=t,this.context=s,this.buffer=0,this.bufferLength=0;let n=s.numComps;this.tmpCompsBuf=new Float32Array(n);let a=s.colorSpace.numComps;this.tmpCsCompsBuf=s.colorFn?new Float32Array(a):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;let t=this.stream.getByte();return t<0?!1:(this.buffer=t,this.bufferLength=8,!0)}readBits(t){let{stream:s}=this,{buffer:n,bufferLength:a}=this;if(t===32){if(a===0)return s.getInt32()>>>0;n=n<<24|s.getByte()<<16|s.getByte()<<8|s.getByte();let i=s.getByte();return this.buffer=i&(1<<a)-1,(n<<8-a|(255&i)>>a)>>>0}if(t===8&&a===0)return s.getByte();for(;a<t;)n=n<<8|s.getByte(),a+=8;return a-=t,this.bufferLength=a,this.buffer=n&(1<<a)-1,n>>a}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){let{bitsPerCoordinate:t,decode:s}=this.context,n=this.readBits(t),a=this.readBits(t),i=t<32?1/((1<<t)-1):23283064365386963e-26;return[n*i*(s[1]-s[0])+s[0],a*i*(s[3]-s[2])+s[2]]}readComponents(){let{bitsPerComponent:t,colorFn:s,colorSpace:n,decode:a,numComps:i}=this.context,o=t<32?1/((1<<t)-1):23283064365386963e-26,r=this.tmpCompsBuf;for(let f=0,c=4;f<i;f++,c+=2){let h=this.readBits(t);r[f]=h*o*(a[c+1]-a[c])+a[c]}let l=this.tmpCsCompsBuf;return s?.(r,0,l,0),n.getRgb(l,0)}},qm=null;function q3(e){return(qm??(qm=new Map)).getOrInsertComputed(e,()=>Array.from({length:e+1},(t,s)=>{let n=s/e,a=1-n;return new Float32Array([a**3,3*n*a**2,3*n**2*a,n**3])}))}var gn=class gn extends ua{constructor(t,s,n,a,i,o){if(super(),!(t instanceof Et))throw new nt("Mesh data is not a stream");let r=t.dict;this.shadingType=r.get("ShadingType"),this.bbox=Wn(r.getArray("BBox"),null);let l=ae.parse({cs:r.getRaw("CS")||r.getRaw("ColorSpace"),xref:s,resources:n,pdfFunctionFactory:a,globalColorSpaceCache:i,localColorSpaceCache:o});this.background=r.has("Background")?l.getRgb(r.get("Background"),0):null;let f=r.getRaw("Function"),c=f?a.create(f,!0):null;this.coords=[],this.colors=[],this.figures=[];let h={bitsPerCoordinate:r.get("BitsPerCoordinate"),bitsPerComponent:r.get("BitsPerComponent"),bitsPerFlag:r.get("BitsPerFlag"),decode:r.getArray("Decode"),colorFn:c,colorSpace:l,numComps:c?1:l.numComps},m=new km(t,h),u=!1;switch(this.shadingType){case Z4:this._decodeType4Shading(m);break;case t8:let d=0|r.get("VerticesPerRow");if(d<2)throw new nt("Invalid VerticesPerRow");this._decodeType5Shading(m,d);break;case e8:this._decodeType6Shading(m),u=!0;break;case s8:this._decodeType7Shading(m),u=!0;break;default:Zt("Unsupported mesh type.")}if(u){this._updateBounds();for(let d=0,p=this.figures.length;d<p;d++)this._buildFigureFromPatch(d)}this._updateBounds(),this._packData()}_decodeType4Shading(t){let s=this.coords,n=this.colors,a=[],i=[],o=0;for(;t.hasData;){let r=t.readFlag(),l=t.readCoordinate(),f=t.readComponents();if(o===0){if(!(0<=r&&r<=2))throw new nt("Unknown type4 flag");switch(r){case 0:o=3;break;case 1:i.push(i.at(-2),i.at(-1)),o=1;break;case 2:i.push(i.at(-3),i.at(-1)),o=1}a.push(r)}i.push(s.length),s.push(l),n.push(f),o--,t.align()}this.figures.push({type:S0,coords:new Int32Array(i),colors:new Int32Array(i)})}_decodeType5Shading(t,s){let n=this.coords,a=this.colors,i=[];for(;t.hasData;){let o=t.readCoordinate(),r=t.readComponents();i.push(n.length),n.push(o),a.push(r)}this.figures.push({type:vl,coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:s})}_decodeType6Shading(t){let s=this.coords,n=this.colors,a=new Int32Array(16),i=new Int32Array(4);for(;t.hasData;){let o=t.readFlag();if(!(0<=o&&o<=3))throw new nt("Unknown type6 flag");let r=s.length;for(let u=0,d=o!==0?8:12;u<d;u++)s.push(t.readCoordinate());let l=n.length;for(let u=0,d=o!==0?2:4;u<d;u++)n.push(t.readComponents());let f,c,h,m;switch(o){case 0:a[12]=r+3,a[13]=r+4,a[14]=r+5,a[15]=r+6,a[8]=r+2,a[11]=r+7,a[4]=r+1,a[7]=r+8,a[0]=r,a[1]=r+11,a[2]=r+10,a[3]=r+9,i[2]=l+1,i[3]=l+2,i[0]=l,i[1]=l+3;break;case 1:f=a[12],c=a[13],h=a[14],m=a[15],a[12]=m,a[13]=r+0,a[14]=r+1,a[15]=r+2,a[8]=h,a[11]=r+3,a[4]=c,a[7]=r+4,a[0]=f,a[1]=r+7,a[2]=r+6,a[3]=r+5,f=i[2],c=i[3],i[2]=c,i[3]=l,i[0]=f,i[1]=l+1;break;case 2:f=a[15],c=a[11],a[12]=a[3],a[13]=r+0,a[14]=r+1,a[15]=r+2,a[8]=a[7],a[11]=r+3,a[4]=c,a[7]=r+4,a[0]=f,a[1]=r+7,a[2]=r+6,a[3]=r+5,f=i[3],i[2]=i[1],i[3]=l,i[0]=f,i[1]=l+1;break;case 3:a[12]=a[0],a[13]=r+0,a[14]=r+1,a[15]=r+2,a[8]=a[1],a[11]=r+3,a[4]=a[2],a[7]=r+4,a[0]=a[3],a[1]=r+7,a[2]=r+6,a[3]=r+5,i[2]=i[0],i[3]=l,i[0]=i[1],i[1]=l+1}a[5]=s.length,s.push([(-4*s[a[0]][0]-s[a[15]][0]+6*(s[a[4]][0]+s[a[1]][0])-2*(s[a[12]][0]+s[a[3]][0])+3*(s[a[13]][0]+s[a[7]][0]))/9,(-4*s[a[0]][1]-s[a[15]][1]+6*(s[a[4]][1]+s[a[1]][1])-2*(s[a[12]][1]+s[a[3]][1])+3*(s[a[13]][1]+s[a[7]][1]))/9]),a[6]=s.length,s.push([(-4*s[a[3]][0]-s[a[12]][0]+6*(s[a[2]][0]+s[a[7]][0])-2*(s[a[0]][0]+s[a[15]][0])+3*(s[a[4]][0]+s[a[14]][0]))/9,(-4*s[a[3]][1]-s[a[12]][1]+6*(s[a[2]][1]+s[a[7]][1])-2*(s[a[0]][1]+s[a[15]][1])+3*(s[a[4]][1]+s[a[14]][1]))/9]),a[9]=s.length,s.push([(-4*s[a[12]][0]-s[a[3]][0]+6*(s[a[8]][0]+s[a[13]][0])-2*(s[a[0]][0]+s[a[15]][0])+3*(s[a[11]][0]+s[a[1]][0]))/9,(-4*s[a[12]][1]-s[a[3]][1]+6*(s[a[8]][1]+s[a[13]][1])-2*(s[a[0]][1]+s[a[15]][1])+3*(s[a[11]][1]+s[a[1]][1]))/9]),a[10]=s.length,s.push([(-4*s[a[15]][0]-s[a[0]][0]+6*(s[a[11]][0]+s[a[14]][0])-2*(s[a[12]][0]+s[a[3]][0])+3*(s[a[2]][0]+s[a[8]][0]))/9,(-4*s[a[15]][1]-s[a[0]][1]+6*(s[a[11]][1]+s[a[14]][1])-2*(s[a[12]][1]+s[a[3]][1])+3*(s[a[2]][1]+s[a[8]][1]))/9]),this.figures.push({type:Vu,coords:new Int32Array(a),colors:new Int32Array(i)})}}_decodeType7Shading(t){let s=this.coords,n=this.colors,a=new Int32Array(16),i=new Int32Array(4);for(;t.hasData;){let o=t.readFlag();if(!(0<=o&&o<=3))throw new nt("Unknown type7 flag");let r=s.length;for(let u=0,d=o!==0?12:16;u<d;u++)s.push(t.readCoordinate());let l=n.length;for(let u=0,d=o!==0?2:4;u<d;u++)n.push(t.readComponents());let f,c,h,m;switch(o){case 0:a[12]=r+3,a[13]=r+4,a[14]=r+5,a[15]=r+6,a[8]=r+2,a[9]=r+13,a[10]=r+14,a[11]=r+7,a[4]=r+1,a[5]=r+12,a[6]=r+15,a[7]=r+8,a[0]=r,a[1]=r+11,a[2]=r+10,a[3]=r+9,i[2]=l+1,i[3]=l+2,i[0]=l,i[1]=l+3;break;case 1:f=a[12],c=a[13],h=a[14],m=a[15],a[12]=m,a[13]=r+0,a[14]=r+1,a[15]=r+2,a[8]=h,a[9]=r+9,a[10]=r+10,a[11]=r+3,a[4]=c,a[5]=r+8,a[6]=r+11,a[7]=r+4,a[0]=f,a[1]=r+7,a[2]=r+6,a[3]=r+5,f=i[2],c=i[3],i[2]=c,i[3]=l,i[0]=f,i[1]=l+1;break;case 2:f=a[15],c=a[11],a[12]=a[3],a[13]=r+0,a[14]=r+1,a[15]=r+2,a[8]=a[7],a[9]=r+9,a[10]=r+10,a[11]=r+3,a[4]=c,a[5]=r+8,a[6]=r+11,a[7]=r+4,a[0]=f,a[1]=r+7,a[2]=r+6,a[3]=r+5,f=i[3],i[2]=i[1],i[3]=l,i[0]=f,i[1]=l+1;break;case 3:a[12]=a[0],a[13]=r+0,a[14]=r+1,a[15]=r+2,a[8]=a[1],a[9]=r+9,a[10]=r+10,a[11]=r+3,a[4]=a[2],a[5]=r+8,a[6]=r+11,a[7]=r+4,a[0]=a[3],a[1]=r+7,a[2]=r+6,a[3]=r+5,i[2]=i[0],i[3]=l,i[0]=i[1],i[1]=l+1}this.figures.push({type:Vu,coords:new Int32Array(a),colors:new Int32Array(i)})}}_buildFigureFromPatch(t){let s=this.figures[t];Ae(s.type===Vu,"Unexpected patch mesh figure");let n=this.coords,a=this.colors,i=s.coords,o=s.colors,r=Math.min(n[i[0]][0],n[i[3]][0],n[i[12]][0],n[i[15]][0]),l=Math.min(n[i[0]][1],n[i[3]][1],n[i[12]][1],n[i[15]][1]),f=Math.max(n[i[0]][0],n[i[3]][0],n[i[12]][0],n[i[15]][0]),c=Math.max(n[i[0]][1],n[i[3]][1],n[i[12]][1],n[i[15]][1]),h=Math.ceil((f-r)*gn.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));h=He(h,gn.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,gn.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let m=Math.ceil((c-l)*gn.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));m=He(m,gn.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,gn.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let u=h+1,d=new Int32Array((m+1)*u),p=new Int32Array((m+1)*u),g=0,b=new Uint8Array(3),w=new Uint8Array(3),k=a[o[0]],q=a[o[1]],y=a[o[2]],v=a[o[3]],A=q3(m),x=q3(h);for(let I=0;I<=m;I++){b[0]=(k[0]*(m-I)+y[0]*I)/m|0,b[1]=(k[1]*(m-I)+y[1]*I)/m|0,b[2]=(k[2]*(m-I)+y[2]*I)/m|0,w[0]=(q[0]*(m-I)+v[0]*I)/m|0,w[1]=(q[1]*(m-I)+v[1]*I)/m|0,w[2]=(q[2]*(m-I)+v[2]*I)/m|0;for(let B=0;B<=h;B++,g++){if(!(I!==0&&I!==m||B!==0&&B!==h))continue;let D=0,W=0,L=0;for(let P=0;P<=3;P++)for(let H=0;H<=3;H++,L++){let V=A[I][P]*x[B][H];D+=n[i[L]][0]*V,W+=n[i[L]][1]*V}d[g]=n.length,n.push([D,W]),p[g]=a.length;let ot=new Uint8Array(3);ot[0]=(b[0]*(h-B)+w[0]*B)/h|0,ot[1]=(b[1]*(h-B)+w[1]*B)/h|0,ot[2]=(b[2]*(h-B)+w[2]*B)/h|0,a.push(ot)}}d[0]=i[0],p[0]=o[0],d[h]=i[3],p[h]=o[1],d[u*m]=i[12],p[u*m]=o[2],d[u*m+h]=i[15],p[u*m+h]=o[3],this.figures[t]={type:vl,coords:d,colors:p,verticesPerRow:u}}_updateBounds(){(function(s){let n=s.coords[0][0],a=s.coords[0][1],i=n,o=a;for(let r=1,l=s.coords.length;r<l;r++){let f=s.coords[r][0],c=s.coords[r][1];n=n>f?f:n,a=a>c?c:a,i=i<f?f:i,o=o<c?c:o}s.bounds=[n,a,i,o]})(this)}_packData(){(function(s){let n,a,i,o=s.coords,r=new Float32Array(2*o.length);for(n=0,a=0,i=o.length;n<i;n++){let c=o[n];r[a++]=c[0],r[a++]=c[1]}s.coords=r;let l=s.colors,f=new Uint8Array(4*l.length);for(n=0,a=0,i=l.length;n<i;n++){let c=l[n];f[a++]=c[0],f[a++]=c[1],f[a++]=c[2],a++}s.colors=f;for(let c of s.figures)c.coords=new Uint32Array(c.coords),c.colors=new Uint32Array(c.colors)})(this)}getIR(){let{posData:t,colData:s,vertexCount:n}=a8(this.coords,this.colors,this.figures);return["Mesh",this.shadingType,t,s,n,this.bounds,this.bbox,this.background]}};Y(gn,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3),Y(gn,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20),Y(gn,"TRIANGLE_DENSITY",20);var ym=gn,vm=class extends ua{getIR(){return["Dummy"]}};function y3(e,t,s,n=!0){let a=la(t.getArray("Matrix"),an),i=Wn(t.getArray("BBox"),null);if(!i||i[2]-i[0]===0||i[3]-i[1]===0)throw new nt("Invalid getTilingPatternIR /BBox array.");let o=t.get("XStep");if(typeof o!="number")throw new nt("Invalid getTilingPatternIR /XStep value.");let r=t.get("YStep");if(typeof r!="number")throw new nt("Invalid getTilingPatternIR /YStep value.");let l=t.get("PaintType");if(!Number.isInteger(l))throw new nt("Invalid getTilingPatternIR /PaintType value.");let f=t.get("TilingType");if(!Number.isInteger(f))throw new nt("Invalid getTilingPatternIR /TilingType value.");return["TilingPattern",s,e,a,i,o,r,l,f,n]}function ps(e,t){let s=0;for(let n=0;n<=t;n++)s=s<<8|e[n];return s>>>0}function Ec(e,t){return t===1?String.fromCharCode(e[0],e[1]):t===3?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode(...e.subarray(0,t+1))}function ys(e,t,s){let n=0;for(let a=s;a>=0;a--)n+=e[a]+t[a],e[a]=255&n,n>>=8}function oi(e,t){let s=1;for(let n=t;n>=0&&s>0;n--)s+=e[n],e[n]=255&s,s>>=8}var ar=16,xm=class extends ke{constructor(s){super(s,0,s.length,null);Y(this,"tmpBuf",new Uint8Array(19))}readNumber(){let s,n=0;do{let a=this.getByte();if(a<0)throw new nt("unexpected EOF in bcmap");s=!(128&a),n=n<<7|127&a}while(!s);return n}readSigned(){let s=this.readNumber();return 1&s?~(s>>>1):s>>>1}readHex(s,n){s.set(this.getBytes(n+1))}readHexNumber(s,n){let a,i=this.tmpBuf,o=0;do{let c=this.getByte();if(c<0)throw new nt("unexpected EOF in bcmap");a=!(128&c),i[o++]=127&c}while(!a);let r=n,l=0,f=0;for(;r>=0;){for(;f<8&&i.length>0;)l|=i[--o]<<f,f+=7;s[r]=255&l,r--,l>>=8,f-=8}}readHexSigned(s,n){this.readHexNumber(s,n);let a=1&s[n]?255:0,i=0;for(let o=0;o<=n;o++)i=(1&i)<<8|s[o],s[o]=i>>1^a}readString(){let s=this.readNumber(),n=new Array(s);for(let a=0;a<s;a++)n[a]=this.readNumber();return String.fromCharCode(...n)}},Sm=class{async process(t,s,n){let a=new xm(t),i=a.getByte();s.vertical=!!(1&i);let o=null,r=new Uint8Array(ar),l=new Uint8Array(ar),f=new Uint8Array(ar),c=new Uint8Array(ar),h=new Uint8Array(ar),m,u;for(;(u=a.getByte())>=0;){let d=u>>5;if(d===7){switch(31&u){case 0:a.readString();break;case 1:o=a.readString()}continue}let p=!!(16&u),g=15&u;if(g+1>ar)throw new Error("BinaryCMapReader.process: Invalid dataSize.");let b=1,w=a.readNumber();switch(d){case 0:a.readHex(r,g),a.readHexNumber(l,g),ys(l,r,g),s.addCodespaceRange(g+1,ps(r,g),ps(l,g));for(let k=1;k<w;k++)oi(l,g),a.readHexNumber(r,g),ys(r,l,g),a.readHexNumber(l,g),ys(l,r,g),s.addCodespaceRange(g+1,ps(r,g),ps(l,g));break;case 1:a.readHex(r,g),a.readHexNumber(l,g),ys(l,r,g),a.readNumber();for(let k=1;k<w;k++)oi(l,g),a.readHexNumber(r,g),ys(r,l,g),a.readHexNumber(l,g),ys(l,r,g),a.readNumber();break;case 2:a.readHex(f,g),m=a.readNumber(),s.mapOne(ps(f,g),m);for(let k=1;k<w;k++)oi(f,g),p||(a.readHexNumber(h,g),ys(f,h,g)),m=a.readSigned()+(m+1),s.mapOne(ps(f,g),m);break;case 3:a.readHex(r,g),a.readHexNumber(l,g),ys(l,r,g),m=a.readNumber(),s.mapCidRange(ps(r,g),ps(l,g),m);for(let k=1;k<w;k++)oi(l,g),p?r.set(l):(a.readHexNumber(r,g),ys(r,l,g)),a.readHexNumber(l,g),ys(l,r,g),m=a.readNumber(),s.mapCidRange(ps(r,g),ps(l,g),m);break;case 4:a.readHex(f,b),a.readHex(c,g),s.mapOne(ps(f,b),Ec(c,g));for(let k=1;k<w;k++)oi(f,b),p||(a.readHexNumber(h,b),ys(f,h,b)),oi(c,g),a.readHexSigned(h,g),ys(c,h,g),s.mapOne(ps(f,b),Ec(c,g));break;case 5:a.readHex(r,b),a.readHexNumber(l,b),ys(l,r,b),a.readHex(c,g),s.mapBfRange(ps(r,b),ps(l,b),Ec(c,g));for(let k=1;k<w;k++)oi(l,b),p?r.set(l):(a.readHexNumber(r,b),ys(r,l,b)),a.readHexNumber(l,b),ys(l,r,b),a.readHex(c,g),s.mapBfRange(ps(r,b),ps(l,b),Ec(c,g));break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${d}`)}}return o?n(o):s}},lu,Am=class extends os{constructor(s,n){n&&(n*=.8);super(n);at(this,lu,new Uint8Array(5));this.stream=s,this.dict=s.dict}readBlock(){let s=this.stream,n=s.getByte();for(;rn(n);)n=s.getByte();if(n===-1||n===126){this.eof=!0;return}let a=this.bufferLength,i,o;if(n===122)i=this.ensureBuffer(a+4),i.fill(0,a,a+4),this.bufferLength+=4;else{let r=S(this,lu);for(r[0]=n,o=1;o<5;++o){for(n=s.getByte();rn(n);)n=s.getByte();if(r[o]=n,n===-1||n===126)break}i=this.ensureBuffer(a+o-1),this.bufferLength+=o-1,o<5&&(r.fill(117,o,5),this.eof=!0);let l=0;for(o=0;o<5;++o)l=85*l+(r[o]-33);for(o=3;o>=0;--o)i[a+o]=255&l,l>>=8}}};lu=new WeakMap;var Im=class extends os{constructor(t,s){s&&(s*=.5),super(s),this.stream=t,this.dict=t.dict,this.firstDigit=-1}readBlock(){let t=this.stream.getBytes(8e3);if(!t.length){this.eof=!0;return}let s=t.length+1>>1,n=this.ensureBuffer(this.bufferLength+s),a=this.bufferLength,i=this.firstDigit;for(let o of t){let r;if(o>=48&&o<=57)r=15&o;else{if(!(o>=65&&o<=70||o>=97&&o<=102)){if(o===62){this.eof=!0;break}continue}r=9+(15&o)}i<0?i=r:(n[a++]=i<<4|r,i=-1)}i>=0&&this.eof&&(n[a++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=a}},Qk=(()=>{let e=Int32Array.from([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]),t=Int32Array.from([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),s=Int32Array.from([0,3,2,1,0,0,0,0,0,0,3,3,3,3,3,3]),n=Int32Array.from([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),a=Int32Array.from([131072,131076,131075,196610,131072,131076,131075,262145,131072,131076,131075,196610,131072,131076,131075,262149]),i=Int32Array.from([1,5,9,13,17,25,33,41,49,65,81,97,113,145,177,209,241,305,369,497,753,1265,2289,4337,8433,16625]),o=Int32Array.from([2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,7,8,9,10,11,12,13,24]),r=Int16Array.from([0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,12,14,24]),l=Int16Array.from([0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,24]),f=new Int16Array(2816);(function(z){let E=new Int32Array(24),X=new Int32Array(24);X[0]=2;for(let $=0;$<23;++$)E[$+1]=E[$]+(1<<r[$]),X[$+1]=X[$]+(1<<l[$]);for(let $=0;$<704;++$){let K=$>>6,wt=-4;K>=2&&(K-=2,wt=0);let Rt=(170064>>2*K&3)<<3|$>>3&7,_t=(156228>>2*K&3)<<3|7&$,zt=X[_t],Mt=wt+Math.min(zt,5)-2,St=4*$;z[St]=r[Rt]|l[_t]<<8,z[St+1]=E[Rt],z[St+2]=X[_t],z[St+3]=Mt}})(f);function c(j){let z=-1,E=16,X=j;for(;E>0;){let $=X>>E;$!==0&&(z+=E,X=$),E>>=1}return z+X}function h(j,z,E){return 16+z+2*(E<<j)}function m(j,z,E,X){if(z<X+(2<<E))return Kt(j,-23);let $=4+(z-X>>E),K=c($)-1;return((K-1<<1|$>>K&1)-1<<E)+(1<<E)+X+16}function u(j){if(j.runningState!==0)return Kt(j,-26);j.blockTrees=new Int32Array(3091),j.blockTrees[0]=7,j.distRbIdx=3;let z=m(j,2147483644,3,120);if(z<0)return z;let E=z;return j.distExtraBits=new Int8Array(E),j.distOffset=new Int32Array(E),z=(function($){return $.byteBuffer=new Int8Array(4160),$.accumulator32=0,$.shortBuffer=new Int16Array(2080),$.bitOffset=32,$.halfOffset=2048,$.endOfStreamReached=0,Ft($)})(j),z<0?z:(j.runningState=1,0)}function d(j){if(j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16),jt(j,1)!==0){let z=jt(j,3);return z===0?1:jt(j,z)+(1<<z)}return 0}function p(j,z,E){let X=j[z],$=E.accumulator32>>>E.bitOffset;X+=255&$;let K=j[X]>>16,wt=65535&j[X];return K<=8?(E.bitOffset+=K,wt):(X+=wt,X+=($&(1<<K)-1)>>>8,E.bitOffset+=8+(j[X]>>16),65535&j[X])}function g(j,z,E){E.bitOffset>=16&&(E.accumulator32=E.shortBuffer[E.halfOffset++]<<16|E.accumulator32>>>16,E.bitOffset-=16);let X=p(j,z,E),$=o[X];return E.bitOffset>=16&&(E.accumulator32=E.shortBuffer[E.halfOffset++]<<16|E.accumulator32>>>16,E.bitOffset-=16),i[X]+($<=16?jt(E,$):kt(E,$))}function b(j,z){let E=z,X=j[E];for(;E>0;)j[E]=j[E-1],E--;j[0]=X}function w(j,z,E,X,$){let K=new Int32Array(z),wt=new Int32Array(4),Rt=1+c(j-1),_t=jt($,2)+1;for(let St=0;St<_t;++St){$.bitOffset>=16&&($.accumulator32=$.shortBuffer[$.halfOffset++]<<16|$.accumulator32>>>16,$.bitOffset-=16);let Wt=jt($,Rt);if(Wt>=z)return Kt($,-15);wt[St]=Wt}let zt=(function(Wt,ne,Gt){for(let me=0;me<Gt-1;++me)for(let Ie=me+1;Ie<Gt;++Ie)if(ne[me]===ne[Ie])return Kt(Wt,-7);return 0})($,wt,_t);if(zt<0)return zt;let Mt=_t;switch(_t===4&&(Mt+=jt($,1)),Mt){case 1:K[wt[0]]=1;break;case 2:K[wt[0]]=1,K[wt[1]]=1;break;case 3:K[wt[0]]=1,K[wt[1]]=2,K[wt[2]]=2;break;case 4:K[wt[0]]=2,K[wt[1]]=2,K[wt[2]]=2,K[wt[3]]=2;break;case 5:K[wt[0]]=1,K[wt[1]]=2,K[wt[2]]=3,K[wt[3]]=3}return vt(E,X,8,K,z)}function k(j,z,E,X,$){let K=new Int32Array(j),wt=new Int32Array(18),Rt=32,_t=0;for(let Mt=z;Mt<18;++Mt){let St=t[Mt];$.bitOffset>=16&&($.accumulator32=$.shortBuffer[$.halfOffset++]<<16|$.accumulator32>>>16,$.bitOffset-=16);let Wt=$.accumulator32>>>$.bitOffset&15;$.bitOffset+=a[Wt]>>16;let ne=65535&a[Wt];if(wt[St]=ne,ne!==0&&(Rt-=32>>ne,_t++,Rt<=0))break}if(Rt!==0&&_t!==1)return Kt($,-4);let zt=(function(St,Wt,ne,Gt){let me=0,Ie=8,xe=0,Lt=0,$e=32768,Ps=new Int32Array(33);for(vt(Ps,Ps.length-1,5,St,18);me<Wt&&$e>0;){if(Gt.halfOffset>2030){let qa=G(Gt);if(qa<0)return qa}Gt.bitOffset>=16&&(Gt.accumulator32=Gt.shortBuffer[Gt.halfOffset++]<<16|Gt.accumulator32>>>16,Gt.bitOffset-=16);let ai=Gt.accumulator32>>>Gt.bitOffset&31;Gt.bitOffset+=Ps[ai]>>16;let hn=65535&Ps[ai];if(hn<16)xe=0,ne[me++]=hn,hn!==0&&(Ie=hn,$e-=32768>>hn);else{let qa=hn-14,Ys=0;hn===16&&(Ys=Ie),Lt!==Ys&&(xe=0,Lt=Ys);let Rc=xe;xe>0&&(xe-=2,xe<<=qa),Gt.bitOffset>=16&&(Gt.accumulator32=Gt.shortBuffer[Gt.halfOffset++]<<16|Gt.accumulator32>>>16,Gt.bitOffset-=16),xe+=jt(Gt,qa)+3;let er=xe-Rc;if(me+er>Wt)return Kt(Gt,-2);for(let Fc=0;Fc<er;++Fc)ne[me++]=Lt;Lt!==0&&($e-=er<<15-Lt)}}return $e!==0?Kt(Gt,-18):(ne.fill(0,me,Wt),0)})(wt,j,K,$);return zt<0?zt:vt(E,X,8,K,j)}function q(j,z,E,X,$){if($.halfOffset>2030){let wt=G($);if(wt<0)return wt}$.bitOffset>=16&&($.accumulator32=$.shortBuffer[$.halfOffset++]<<16|$.accumulator32>>>16,$.bitOffset-=16);let K=jt($,2);return K===1?w(j,z,E,X,$):k(z,K,E,X,$)}function y(j,z,E){let X;if(E.halfOffset>2030&&(X=G(E),X<0))return X;let $=d(E)+1;if($===1)return z.fill(0,0,j),$;E.bitOffset>=16&&(E.accumulator32=E.shortBuffer[E.halfOffset++]<<16|E.accumulator32>>>16,E.bitOffset-=16);let K=0;jt(E,1)!==0&&(K=jt(E,4)+1);let wt=$+K,Rt=e[wt+31>>5],_t=new Int32Array(Rt+1),zt=_t.length-1;if(X=q(wt,wt,_t,zt,E),X<0)return X;let Mt=0;for(;Mt<j;){if(E.halfOffset>2030&&(X=G(E),X<0))return X;E.bitOffset>=16&&(E.accumulator32=E.shortBuffer[E.halfOffset++]<<16|E.accumulator32>>>16,E.bitOffset-=16);let St=p(_t,zt,E);if(St===0)z[Mt]=0,Mt++;else if(St<=K){E.bitOffset>=16&&(E.accumulator32=E.shortBuffer[E.halfOffset++]<<16|E.accumulator32>>>16,E.bitOffset-=16);let Wt=(1<<St)+jt(E,St);for(;Wt!==0;){if(Mt>=j)return Kt(E,-3);z[Mt]=0,Mt++,Wt--}}else z[Mt]=St-K,Mt++}return E.bitOffset>=16&&(E.accumulator32=E.shortBuffer[E.halfOffset++]<<16|E.accumulator32>>>16,E.bitOffset-=16),jt(E,1)===1&&(function(Wt,ne){let Gt=new Int32Array(256);for(let me=0;me<256;++me)Gt[me]=me;for(let me=0;me<ne;++me){let Ie=255&Wt[me];Wt[me]=Gt[Ie],Ie!==0&&b(Gt,Ie)}})(z,j),$}function v(j,z,E){let X=j.rings,$=4+2*z;j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16);let K=p(j.blockTrees,2*z,j),wt=g(j.blockTrees,2*z+1,j);return K===1?K=X[$+1]+1:K===0?K=X[$]:K-=2,K>=E&&(K-=E),X[$]=X[$+1],X[$+1]=K,wt}function A(j){j.literalBlockLength=v(j,0,j.numLiteralBlockTypes);let z=j.rings[5];j.contextMapSlice=z<<6,j.literalTreeIdx=255&j.contextMap[j.contextMapSlice];let E=j.contextModes[z];j.contextLookupOffset1=E<<9,j.contextLookupOffset2=j.contextLookupOffset1+256}function x(j){j.commandBlockLength=v(j,1,j.numCommandBlockTypes),j.commandTreeIdx=j.rings[7]}function I(j){j.distanceBlockLength=v(j,2,j.numDistanceBlockTypes),j.distContextMapSlice=j.rings[9]<<2}function B(j){if(j.inputEnd!==0)return j.nextRunningState=10,j.runningState=12,0;j.literalTreeGroup=new Int32Array(0),j.commandTreeGroup=new Int32Array(0),j.distanceTreeGroup=new Int32Array(0);let z;if(j.halfOffset>2030&&(z=G(j),z<0)||(z=(function(X){if(X.bitOffset>=16&&(X.accumulator32=X.shortBuffer[X.halfOffset++]<<16|X.accumulator32>>>16,X.bitOffset-=16),X.inputEnd=jt(X,1),X.metaBlockLength=0,X.isUncompressed=0,X.isMetadata=0,X.inputEnd!==0&&jt(X,1)!==0)return 0;let $=jt(X,2)+4;if($===7){if(X.isMetadata=1,jt(X,1)!==0)return Kt(X,-6);let K=jt(X,2);if(K===0)return 0;for(let wt=0;wt<K;++wt){X.bitOffset>=16&&(X.accumulator32=X.shortBuffer[X.halfOffset++]<<16|X.accumulator32>>>16,X.bitOffset-=16);let Rt=jt(X,8);if(Rt===0&&wt+1===K&&K>1)return Kt(X,-8);X.metaBlockLength+=Rt<<8*wt}}else for(let K=0;K<$;++K){X.bitOffset>=16&&(X.accumulator32=X.shortBuffer[X.halfOffset++]<<16|X.accumulator32>>>16,X.bitOffset-=16);let wt=jt(X,4);if(wt===0&&K+1===$&&$>4)return Kt(X,-8);X.metaBlockLength+=wt<<4*K}return X.metaBlockLength++,X.inputEnd===0&&(X.isUncompressed=jt(X,1)),0})(j),z<0))return z;if(j.metaBlockLength===0&&j.isMetadata===0)return 0;if(j.isUncompressed!==0||j.isMetadata!==0){if(z=ct(j),z<0)return z;j.isMetadata===0?j.runningState=6:j.runningState=5}else j.runningState=3;return j.isMetadata!==0||(j.expectedTotalSize+=j.metaBlockLength,j.expectedTotalSize>1<<30&&(j.expectedTotalSize=1<<30),j.ringBufferSize<j.maxRingBufferSize&&(function(X){let $=X.maxRingBufferSize;if($>X.expectedTotalSize){let Rt=X.expectedTotalSize;for(;$>>1>Rt;)$>>=1;X.inputEnd===0&&$<16384&&X.maxRingBufferSize>=16384&&($=16384)}if($<=X.ringBufferSize)return;let K=new Int8Array($+37),wt=X.ringBuffer;wt.length!==0&&K.set(wt.subarray(0,X.ringBufferSize),0),X.ringBuffer=K,X.ringBufferSize=$})(j)),0}function D(j,z,E){let X=j.blockTrees[2*z];if(E<=1)return j.blockTrees[2*z+1]=X,j.blockTrees[2*z+2]=X,1<<28;let $=E+2,K=q($,$,j.blockTrees,2*z,j);return K<0||(X+=K,j.blockTrees[2*z+1]=X,K=q(26,26,j.blockTrees,2*z+1,j),K<0)?K:(X+=K,j.blockTrees[2*z+2]=X,g(j.blockTrees,2*z+1,j))}function W(j){j.numLiteralBlockTypes=d(j)+1;let z=D(j,0,j.numLiteralBlockTypes);if(z<0||(j.literalBlockLength=z,j.numCommandBlockTypes=d(j)+1,z=D(j,1,j.numCommandBlockTypes),z<0)||(j.commandBlockLength=z,j.numDistanceBlockTypes=d(j)+1,z=D(j,2,j.numDistanceBlockTypes),z<0)||(j.distanceBlockLength=z,j.halfOffset>2030&&(z=G(j),z<0)))return z;j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16),j.distancePostfixBits=jt(j,2),j.numDirectDistanceCodes=jt(j,4)<<j.distancePostfixBits,j.contextModes=new Int8Array(j.numLiteralBlockTypes);let E=0;for(;E<j.numLiteralBlockTypes;){let _t=Math.min(E+96,j.numLiteralBlockTypes);for(;E<_t;)j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16),j.contextModes[E]=jt(j,2),E++;if(j.halfOffset>2030&&(z=G(j),z<0))return z}let X=j.numLiteralBlockTypes<<6;if(j.contextMap=new Int8Array(X),z=y(X,j.contextMap,j),z<0)return z;let $=z;j.trivialLiteralContext=1;for(let _t=0;_t<X;++_t)if(j.contextMap[_t]!==_t>>6){j.trivialLiteralContext=0;break}if(j.distContextMap=new Int8Array(j.numDistanceBlockTypes<<2),z=y(j.numDistanceBlockTypes<<2,j.distContextMap,j),z<0)return z;let K=z;if(j.literalTreeGroup=new Int32Array(P(256,$)),z=H(256,256,$,j,j.literalTreeGroup),z<0||(j.commandTreeGroup=new Int32Array(P(704,j.numCommandBlockTypes)),z=H(704,704,j.numCommandBlockTypes,j,j.commandTreeGroup),z<0))return z;let wt=h(j.distancePostfixBits,j.numDirectDistanceCodes,24),Rt=wt;if(j.isLargeWindow===1){if(wt=h(j.distancePostfixBits,j.numDirectDistanceCodes,62),z=m(j,2147483644,j.distancePostfixBits,j.numDirectDistanceCodes),z<0)return z;Rt=z}return j.distanceTreeGroup=new Int32Array(P(Rt,K)),z=H(wt,Rt,K,j,j.distanceTreeGroup),z<0?z:((function(zt,Mt){let St=zt.distExtraBits,Wt=zt.distOffset,ne=zt.distancePostfixBits,Gt=zt.numDirectDistanceCodes,me=1<<ne,Ie=1,xe=0,Lt=16;for(let $e=0;$e<Gt;++$e)St[Lt]=0,Wt[Lt]=$e+1,++Lt;for(;Lt<Mt;){let $e=Gt+((2+xe<<Ie)-4<<ne)+1;for(let Ps=0;Ps<me;++Ps)St[Lt]=Ie,Wt[Lt]=$e+Ps,++Lt;Ie+=xe,xe^=1}})(j,Rt),j.contextMapSlice=0,j.distContextMapSlice=0,j.contextLookupOffset1=512*j.contextModes[0],j.contextLookupOffset2=j.contextLookupOffset1+256,j.literalTreeIdx=0,j.commandTreeIdx=0,j.rings[4]=1,j.rings[5]=0,j.rings[6]=1,j.rings[7]=0,j.rings[8]=1,j.rings[9]=0,0)}function L(j){let z=j.ringBuffer,E;if(j.metaBlockLength<=0)return E=mt(j),E<0?E:(j.runningState=2,0);let X=Math.min(j.ringBufferSize-j.pos,j.metaBlockLength);return E=(function(K,wt,Rt,_t){let zt=Rt,Mt=_t;if(7&K.bitOffset)return Kt(K,-30);for(;K.bitOffset!==32&&Mt!==0;)wt[zt++]=K.accumulator32>>>K.bitOffset,K.bitOffset+=8,Mt--;if(Mt===0)return 0;let St=Math.min(tt(K),Mt>>1);if(St>0){let Wt=K.halfOffset<<1,ne=St<<1;wt.set(K.byteBuffer.subarray(Wt,Wt+ne),zt),zt+=ne,Mt-=ne,K.halfOffset+=St}if(Mt===0)return 0;if(tt(K)>0){for(K.bitOffset>=16&&(K.accumulator32=K.shortBuffer[K.halfOffset++]<<16|K.accumulator32>>>16,K.bitOffset-=16);Mt!==0;)wt[zt++]=K.accumulator32>>>K.bitOffset,K.bitOffset+=8,Mt--;return It(K,0)}for(;Mt>0;){let Wt=Pt(K,wt,zt,Mt);if(Wt<-1)return Wt;if(Wt<=0)return Kt(K,-16);zt+=Wt,Mt-=Wt}return 0})(j,z,j.pos,X),E<0?E:(j.metaBlockLength-=X,j.pos+=X,j.pos===j.ringBufferSize?(j.nextRunningState=6,j.runningState=12,0):(E=mt(j),E<0?E:(j.runningState=2,0)))}function ot(j){let z=Math.min(j.outputLength-j.outputUsed,j.ringBufferBytesReady-j.ringBufferBytesWritten);return z!==0&&(j.output.set(j.ringBuffer.subarray(j.ringBufferBytesWritten,j.ringBufferBytesWritten+z),j.outputOffset+j.outputUsed),j.outputUsed+=z,j.ringBufferBytesWritten+=z),j.outputUsed<j.outputLength?0:2}function P(j,z){return z+z*e[j+31>>5]}function H(j,z,E,X,$){let K=E;for(let wt=0;wt<E;++wt){$[wt]=K;let Rt=q(j,z,$,wt,X);if(Rt<0)return Rt;K+=Rt}return 0}function V(j){let z=j.ringBufferSize;return j.isEager!==0&&(z=Math.min(z,j.ringBufferBytesWritten+j.outputLength-j.outputUsed)),z}function C(j,z){if(j.distance>2147483644)return Kt(j,-9);let E=j.distance-j.maxDistance-1-j.cdTotalSize;if(E<0){let X=(function(K,wt,Rt){K.cdBlockBits===-1&&(function(Mt){Mt.cdBlockMap=new Int8Array(256);let St=8;for(;Mt.cdTotalSize-1>>St;)St++;St-=8,Mt.cdBlockBits=St;let Wt=0,ne=0;for(;Wt<Mt.cdTotalSize;){for(;Mt.cdChunkOffsets[ne+1]<Wt;)ne++;Mt.cdBlockMap[Wt>>St]=ne,Wt+=1<<St}})(K);let _t=K.cdBlockMap[wt>>K.cdBlockBits];for(;wt>=K.cdChunkOffsets[_t+1];)_t++;return K.cdTotalSize>wt+Rt?Kt(K,-9):(K.distRbIdx=K.distRbIdx+1&3,K.rings[K.distRbIdx]=K.distance,K.metaBlockLength-=Rt,K.cdBrIndex=_t,K.cdBrOffset=wt-K.cdChunkOffsets[_t],K.cdBrLength=Rt,K.cdBrCopied=0,0)})(j,-E-1,j.copyLength);if(X<0)return X;j.runningState=14}else{let X=pt,$=j.copyLength;if($>31)return Kt(j,-9);let K=Dt[$];if(K===0)return Kt(j,-9);let wt=Nt[$],Rt=E>>K;wt+=(E&(1<<K)-1)*$;let _t=et;if(Rt>=_t.numTransforms)return Kt(j,-9);let zt=(function(St,Wt,ne,Gt,me,Ie,xe){let Lt=Wt,$e=Ie.triplets,Ps=Ie.prefixSuffixStorage,ai=Ie.prefixSuffixHeads,hn=3*xe,qa=$e[hn],Ys=$e[hn+1],Rc=$e[hn+2],er=ai[qa],Fc=ai[qa+1],Z5=ai[Rc],Aj=ai[Rc+1],ii=Ys-11,Mc=Ys;for((ii<1||ii>9)&&(ii=0),(Mc<1||Mc>9)&&(Mc=0);er!==Fc;)St[Lt++]=Ps[er++];let Ke=me;ii>Ke&&(ii=Ke);let Ij=Gt+ii;Ke-=ii,Ke-=Mc;let t3=Ke;for(;t3>0;)St[Lt++]=ne[Ij++],t3--;if(Ys===10||Ys===11){let ve=Lt-Ke;for(Ys===10&&(Ke=1);Ke>0;){let ri=255&St[ve];ri<192?(ri>=97&&ri<=122&&(St[ve]=32^St[ve]),ve+=1,Ke-=1):ri<224?(St[ve+1]=32^St[ve+1],ve+=2,Ke-=2):(St[ve+2]=5^St[ve+2],ve+=3,Ke-=3)}}else if(Ys===21||Ys===22){let ve=Lt-Ke,ri=Ie.params[xe],Rs=16777216-(32768&ri)+(32767&ri);for(;Ke>0;){let ya=1,Gn=255&St[ve];if(Gn<128)Rs+=Gn,St[ve]=127&Rs;else if(!(Gn<192)){if(Gn<224)if(Ke>=2){let va=St[ve+1];Rs+=63&va|(31&Gn)<<6,St[ve]=192|Rs>>6&31,St[ve+1]=192&va|63&Rs,ya=2}else ya=Ke;else if(Gn<240)if(Ke>=3){let va=St[ve+1],So=St[ve+2];Rs+=63&So|(63&va)<<6|(15&Gn)<<12,St[ve]=224|Rs>>12&15,St[ve+1]=192&va|Rs>>6&63,St[ve+2]=192&So|63&Rs,ya=3}else ya=Ke;else if(Gn<248)if(Ke>=4){let va=St[ve+1],So=St[ve+2],e3=St[ve+3];Rs+=63&e3|(63&So)<<6|(63&va)<<12|(7&Gn)<<18,St[ve]=240|Rs>>18&7,St[ve+1]=192&va|Rs>>12&63,St[ve+2]=192&So|Rs>>6&63,St[ve+3]=192&e3|63&Rs,ya=4}else ya=Ke}ve+=ya,Ke-=ya,Ys===21&&(Ke=0)}}for(;Z5!==Aj;)St[Lt++]=Ps[Z5++];return Lt-Wt})(j.ringBuffer,j.pos,X,wt,$,_t,Rt);if(j.pos+=zt,j.metaBlockLength-=zt,j.pos>=z)return j.nextRunningState=4,j.runningState=12,0;j.runningState=4}return 0}function M(j,z){let E=j.pos,X=E;for(;j.cdBrLength!==j.cdBrCopied;){let $=z-E,K=j.cdChunkOffsets[j.cdBrIndex+1]-j.cdChunkOffsets[j.cdBrIndex]-j.cdBrOffset,wt=j.cdBrLength-j.cdBrCopied;if(wt>K&&(wt=K),wt>$&&(wt=$),j.ringBuffer.set(j.cdChunks[j.cdBrIndex].subarray(j.cdBrOffset,j.cdBrOffset+wt),E),E+=wt,j.cdBrOffset+=wt,j.cdBrCopied+=wt,wt===K&&(j.cdBrIndex++,j.cdBrOffset=0),E>=z)break}return E-X}function J(j){let z;if(j.runningState===0)return Kt(j,-25);if(j.runningState<0)return Kt(j,-28);if(j.runningState===11)return Kt(j,-22);if(j.runningState===1){let K=(function(Rt){let _t=Rt.isLargeWindow;if(Rt.isLargeWindow=0,Rt.bitOffset>=16&&(Rt.accumulator32=Rt.shortBuffer[Rt.halfOffset++]<<16|Rt.accumulator32>>>16,Rt.bitOffset-=16),jt(Rt,1)===0)return 16;let zt=jt(Rt,3);return zt!==0?17+zt:(zt=jt(Rt,3),zt!==0?zt===1?_t===0||(Rt.isLargeWindow=1,jt(Rt,1)===1)?-1:(zt=jt(Rt,6),zt<10||zt>30?-1:zt):8+zt:17)})(j);if(K===-1)return Kt(j,-11);j.maxRingBufferSize=1<<K,j.maxBackwardDistance=j.maxRingBufferSize-16,j.runningState=2}let E=V(j),X=j.ringBufferSize-1,$=j.ringBuffer;for(;j.runningState!==10;)switch(j.runningState){case 2:if(j.metaBlockLength<0)return Kt(j,-10);if(z=B(j),z<0)return z;E=V(j),X=j.ringBufferSize-1,$=j.ringBuffer;continue;case 3:if(z=W(j),z<0)return z;j.runningState=4;continue;case 4:if(j.metaBlockLength<=0){j.runningState=2;continue}if(j.halfOffset>2030&&(z=G(j),z<0))return z;j.commandBlockLength===0&&x(j),j.commandBlockLength--,j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16);let K=p(j.commandTreeGroup,j.commandTreeIdx,j)<<2,wt=f[K],Rt=f[K+1],_t=f[K+2];j.distanceCode=f[K+3],j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16);let zt=255&wt;j.insertLength=Rt+(zt<=16?jt(j,zt):kt(j,zt)),j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16);let Mt=wt>>8;j.copyLength=_t+(Mt<=16?jt(j,Mt):kt(j,Mt)),j.j=0,j.runningState=7;continue;case 7:if(j.trivialLiteralContext!==0)for(;j.j<j.insertLength;){if(j.halfOffset>2030&&(z=G(j),z<0))return z;if(j.literalBlockLength===0&&A(j),j.literalBlockLength--,j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16),$[j.pos]=p(j.literalTreeGroup,j.literalTreeIdx,j),j.pos++,j.j++,j.pos>=E){j.nextRunningState=7,j.runningState=12;break}}else{let xe=255&$[j.pos-1&X],Lt=255&$[j.pos-2&X];for(;j.j<j.insertLength;){if(j.halfOffset>2030&&(z=G(j),z<0))return z;j.literalBlockLength===0&&A(j);let $e=lt[j.contextLookupOffset1+xe]|lt[j.contextLookupOffset2+Lt],Ps=255&j.contextMap[j.contextMapSlice+$e];if(j.literalBlockLength--,Lt=xe,j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16),xe=p(j.literalTreeGroup,Ps,j),$[j.pos]=xe,j.pos++,j.j++,j.pos>=E){j.nextRunningState=7,j.runningState=12;break}}}if(j.runningState!==7)continue;if(j.metaBlockLength-=j.insertLength,j.metaBlockLength<=0){j.runningState=4;continue}let St=j.distanceCode;if(St<0)j.distance=j.rings[j.distRbIdx];else{if(j.halfOffset>2030&&(z=G(j),z<0))return z;j.distanceBlockLength===0&&I(j),j.distanceBlockLength--,j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16);let xe=255&j.distContextMap[j.distContextMapSlice+St];if(St=p(j.distanceTreeGroup,xe,j),St<16){let Lt=j.distRbIdx+s[St]&3;if(j.distance=j.rings[Lt]+n[St],j.distance<0)return Kt(j,-12)}else{let Lt=j.distExtraBits[St],$e;j.bitOffset+Lt<=32?$e=jt(j,Lt):(j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16),$e=Lt<=16?jt(j,Lt):kt(j,Lt)),j.distance=j.distOffset[St]+($e<<j.distancePostfixBits)}}if(j.maxDistance!==j.maxBackwardDistance&&j.pos<j.maxBackwardDistance?j.maxDistance=j.pos:j.maxDistance=j.maxBackwardDistance,j.distance>j.maxDistance){j.runningState=9;continue}if(St>0&&(j.distRbIdx=j.distRbIdx+1&3,j.rings[j.distRbIdx]=j.distance),j.copyLength>j.metaBlockLength)return Kt(j,-9);j.j=0,j.runningState=8;continue;case 8:let Wt=j.pos-j.distance&X,ne=j.pos,Gt=j.copyLength-j.j,me=Wt+Gt,Ie=ne+Gt;if(me<X&&Ie<X){if(Gt<12||me>ne&&Ie>Wt){let xe=Gt+3>>2;for(let Lt=0;Lt<xe;++Lt)$[ne++]=$[Wt++],$[ne++]=$[Wt++],$[ne++]=$[Wt++],$[ne++]=$[Wt++]}else $.copyWithin(ne,Wt,me);j.j+=Gt,j.metaBlockLength-=Gt,j.pos+=Gt}else for(;j.j<j.copyLength;)if($[j.pos]=$[j.pos-j.distance&X],j.metaBlockLength--,j.pos++,j.j++,j.pos>=E){j.nextRunningState=8,j.runningState=12;break}j.runningState===8&&(j.runningState=4);continue;case 9:if(z=C(j,E),z<0)return z;continue;case 14:if(j.pos+=M(j,E),j.pos>=E)return j.nextRunningState=14,j.runningState=12,2;j.runningState=4;continue;case 5:for(;j.metaBlockLength>0;){if(j.halfOffset>2030&&(z=G(j),z<0))return z;j.bitOffset>=16&&(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16),jt(j,8),j.metaBlockLength--}j.runningState=2;continue;case 6:if(z=L(j),z<0)return z;continue;case 12:j.ringBufferBytesReady=Math.min(j.pos,j.ringBufferSize),j.runningState=13;continue;case 13:if(z=ot(j),z!==0)return z;j.pos>=j.maxBackwardDistance&&(j.maxDistance=j.maxBackwardDistance),j.pos>=j.ringBufferSize&&(j.pos>j.ringBufferSize&&$.copyWithin(0,j.ringBufferSize,j.pos),j.pos=j.pos&X,j.ringBufferBytesWritten=0),j.runningState=j.nextRunningState;continue;default:return Kt(j,-28)}return j.runningState!==10?Kt(j,-29):j.metaBlockLength<0?Kt(j,-10):(z=ct(j),z!==0?z:(z=It(j,1),z!==0?z:1))}let et=new function(z,E,X){this.numTransforms=0,this.triplets=new Int32Array(0),this.prefixSuffixStorage=new Int8Array(0),this.prefixSuffixHeads=new Int32Array(0),this.params=new Int16Array(0),this.numTransforms=z,this.triplets=new Int32Array(3*z),this.params=new Int16Array(z),this.prefixSuffixStorage=new Int8Array(E),this.prefixSuffixHeads=new Int32Array(X+1)}(121,167,50);(function(z,E,X,$,K){let wt=le($),Rt=wt.length,_t=1,zt=0;for(let Mt=0;Mt<Rt;++Mt){let St=wt[Mt];St===35?E[_t++]=zt:z[zt++]=St}for(let Mt=0;Mt<363;++Mt)X[Mt]=K.charCodeAt(Mt)-32})(et.prefixSuffixStorage,et.prefixSuffixHeads,et.triplets,`# #s #, #e #.# the #.com/#\\xC2\\xA0# of # and # in # to #"#">#\n#]# for # a # that #. # with #\'# from # by #. The # on # as # is #ing #\n #:#ed #(# at #ly #="# of the #. This #,# not #er #al #=\'#ful #ive #less #est #ize #ous #`,` !! ! , *! &! " ! ) * * - ! # ! #!*! + ,$ ! - % . / # 0 1 . " 2 3!* 4% ! # / 5 6 7 8 0 1 & $ 9 + : ; < \' != > ?! 4 @ 4 2 & A *# ( B C& ) % ) !*# *-% A +! *. D! %\' & E *6 F G% ! *A *% H! D I!+! J!+ K +- *4! A L!*4 M N +6 O!*% +.! K *G P +%( ! G *D +D Q +# *K!*G!+D!+# +G +A +4!+% +K!+4!*D!+K!*K`);function U(j,z){let E=1<<z-1;for(;(j&E)!==0;)E>>=1;return(j&E-1)+E}function _(j,z,E,X,$){let K=X;for(;K>0;)K-=E,j[z+K]=$}function ht(j,z,E){let X=z,$=1<<X-E;for(;X<15&&($-=j[X],!($<=0));)X++,$<<=1;return X-E}function vt(j,z,E,X,$){let K=j[z],wt=new Int32Array($),Rt=new Int32Array(16),_t=new Int32Array(16);for(let Lt=0;Lt<$;++Lt)Rt[X[Lt]]++;_t[1]=0;for(let Lt=1;Lt<15;++Lt)_t[Lt+1]=_t[Lt]+Rt[Lt];for(let Lt=0;Lt<$;++Lt)X[Lt]!==0&&(wt[_t[X[Lt]]++]=Lt);let zt=E,Mt=1<<zt,St=Mt;if(_t[15]===1){for(let Lt=0;Lt<St;++Lt)j[K+Lt]=wt[0];return St}let Wt=0,ne=0,Gt=1;for(let Lt=1;Lt<=E;++Lt)for(Gt<<=1;Rt[Lt]>0;)_(j,K+Wt,Gt,Mt,Lt<<16|wt[ne++]),Wt=U(Wt,Lt),Rt[Lt]--;let me=St-1,Ie=-1,xe=K;Gt=1;for(let Lt=E+1;Lt<=15;++Lt)for(Gt<<=1;Rt[Lt]>0;)(Wt&me)!==Ie&&(xe+=Mt,zt=ht(Rt,Lt,E),Mt=1<<zt,St+=Mt,Ie=Wt&me,j[K+Ie]=zt+E<<16|xe-K-Ie),_(j,xe+(Wt>>E),Gt,Mt,Lt-E<<16|wt[ne++]),Wt=U(Wt,Lt),Rt[Lt]--;return St}function G(j){if(j.endOfStreamReached!==0)return tt(j)>=-2?0:Kt(j,-16);let z=j.halfOffset<<1,E=4096-z;for(j.byteBuffer.copyWithin(0,z,4096),j.halfOffset=0;E<4096;){let X=4096-E,$=Pt(j,j.byteBuffer,E,X);if($<-1)return $;if($<=0){j.endOfStreamReached=1,j.tailBytes=E,E+=1;break}E+=$}return(function($,K){let wt=$.byteBuffer,Rt=K>>1,_t=$.shortBuffer;for(let zt=0;zt<Rt;++zt)_t[zt]=255&wt[2*zt]|(255&wt[2*zt+1])<<8})(j,E),0}function It(j,z){if(j.endOfStreamReached===0)return 0;let E=(j.halfOffset<<1)+(j.bitOffset+7>>3)-4;return E>j.tailBytes?Kt(j,-13):z!==0&&E!==j.tailBytes?Kt(j,-17):0}function jt(j,z){let E=j.accumulator32>>>j.bitOffset&(1<<z)-1;return j.bitOffset+=z,E}function kt(j,z){let E=jt(j,16);return j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16,E|jt(j,z-16)<<16}function Ft(j){if(j.halfOffset>2030){let E=G(j);if(E!==0)return E}let z=It(j,0);return z!==0?z:(j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16,j.accumulator32=j.shortBuffer[j.halfOffset++]<<16|j.accumulator32>>>16,j.bitOffset-=16,0)}function mt(j){return j.bitOffset===32?Ft(j):0}function ct(j){let z=32-j.bitOffset&7;return z!==0&&jt(j,z)!==0?Kt(j,-5):0}function tt(j){let z=2048;return j.endOfStreamReached!==0&&(z=j.tailBytes+1>>1),z-j.halfOffset}let lt=new Int32Array(2048);(function(z,E,X){for(let K=0;K<256;++K)z[K]=63&K,z[512+K]=K>>2,z[1792+K]=2+(K>>6);for(let K=0;K<128;++K)z[1024+K]=4*(E.charCodeAt(K)-32);for(let K=0;K<64;++K)z[1152+K]=1&K,z[1216+K]=2+(1&K);let $=1280;for(let K=0;K<19;++K){let wt=3&K,Rt=X.charCodeAt(K)-32;for(let _t=0;_t<Rt;++_t)z[$++]=wt}for(let K=0;K<16;++K)z[1792+K]=1,z[2032+K]=6;z[1792]=0,z[2047]=7;for(let K=0;K<256;++K)z[1536+K]=z[1792+K]<<3})(lt,` !! ! "#$##%#$&\'##(#)#++++++++++((&*\'##,---,---,-----,-----,-----&#\'###.///.///./////./////./////&#\'# `,"A/* \': & : $ \\x81 @");function Z(){this.ringBuffer=new Int8Array(0),this.contextModes=new Int8Array(0),this.contextMap=new Int8Array(0),this.distContextMap=new Int8Array(0),this.distExtraBits=new Int8Array(0),this.output=new Int8Array(0),this.byteBuffer=new Int8Array(0),this.shortBuffer=new Int16Array(0),this.intBuffer=new Int32Array(0),this.rings=new Int32Array(0),this.blockTrees=new Int32Array(0),this.literalTreeGroup=new Int32Array(0),this.commandTreeGroup=new Int32Array(0),this.distanceTreeGroup=new Int32Array(0),this.distOffset=new Int32Array(0),this.accumulator64=0,this.runningState=0,this.nextRunningState=0,this.accumulator32=0,this.bitOffset=0,this.halfOffset=0,this.tailBytes=0,this.endOfStreamReached=0,this.metaBlockLength=0,this.inputEnd=0,this.isUncompressed=0,this.isMetadata=0,this.literalBlockLength=0,this.numLiteralBlockTypes=0,this.commandBlockLength=0,this.numCommandBlockTypes=0,this.distanceBlockLength=0,this.numDistanceBlockTypes=0,this.pos=0,this.maxDistance=0,this.distRbIdx=0,this.trivialLiteralContext=0,this.literalTreeIdx=0,this.commandTreeIdx=0,this.j=0,this.insertLength=0,this.contextMapSlice=0,this.distContextMapSlice=0,this.contextLookupOffset1=0,this.contextLookupOffset2=0,this.distanceCode=0,this.numDirectDistanceCodes=0,this.distancePostfixBits=0,this.distance=0,this.copyLength=0,this.maxBackwardDistance=0,this.maxRingBufferSize=0,this.ringBufferSize=0,this.expectedTotalSize=0,this.outputOffset=0,this.outputLength=0,this.outputUsed=0,this.ringBufferBytesWritten=0,this.ringBufferBytesReady=0,this.isEager=0,this.isLargeWindow=0,this.cdNumChunks=0,this.cdTotalSize=0,this.cdBrIndex=0,this.cdBrOffset=0,this.cdBrLength=0,this.cdBrCopied=0,this.cdChunks=new Array(0),this.cdChunkOffsets=new Int32Array(0),this.cdBlockBits=0,this.cdBlockMap=new Int8Array(0),this.input=new bt(new Int8Array(0)),this.ringBuffer=new Int8Array(0),this.rings=new Int32Array(10),this.rings[0]=16,this.rings[1]=15,this.rings[2]=11,this.rings[3]=4}let pt=new Int8Array(0),Nt=new Int32Array(32),Dt=new Int32Array(32),Tt=new Int8Array(122784),qt=new Int32Array(25);(function(z,E,X,$,K,wt){let Rt=(function(Wt){let ne=Wt.length,Gt=new Int8Array(ne);for(let me=0;me<ne;++me)Gt[me]=Wt.charCodeAt(me);return Gt})(E+X),_t=le($),zt=0,Mt=_t.length>>1;for(let St=0;St<Mt;++St){let Wt=_t[2*St]-36,ne=_t[2*St+1]-36;for(let Gt=0;Gt<Wt;++Gt)Rt[zt]=3^Rt[zt],zt++;for(let Gt=0;Gt<ne;++Gt)Rt[zt]=236^Rt[zt],zt++}for(let St=0;St<wt.length;++St)K[St]=wt.charCodeAt(St)-65;z.set(Rt)})(Tt,\'wjnfgltmojefofewab`h`lgfgbwbpkltlmozpjwf`jwzlsfmivpwojhfeqfftlqhwf{wzfbqlufqalgzolufelqnallhsobzojufojmfkfosklnfpjgfnlqftlqgolmdwkfnujftejmgsbdfgbzpevookfbgwfqnfb`kbqfbeqlnwqvfnbqhbaofvslmkjdkgbwfobmgmftpfufmmf{w`bpfalwkslpwvpfgnbgfkbmgkfqftkbwmbnfOjmhaoldpjyfabpfkfognbhfnbjmvpfq$*#(klogfmgptjwkMftpqfbgtfqfpjdmwbhfkbufdbnfpffm`boosbwktfoosovpnfmvejonsbqwiljmwkjpojpwdllgmffgtbzptfpwilapnjmgboploldlqj`kvpfpobpwwfbnbqnzellghjmdtjoofbpwtbqgafpwejqfSbdfhmltbtbz-smdnlufwkbmolbgdjufpfoemlwfnv`keffgnbmzql`hj`lmlm`follhkjgfgjfgKlnfqvofklpwbib{jmel`ovaobtpofppkboeplnfpv`kylmf233&lmfp`bqfWjnfqb`faovfelvqtffheb`fklsfdbufkbqgolpwtkfmsbqhhfswsbpppkjsqllnKWNOsobmWzsfglmfpbufhffseobdojmhplogejufwllhqbwfwltmivnswkvpgbqh`bqgejofefbqpwbzhjoowkbweboobvwlfufq-`lnwbohpklsulwfgffsnlgfqfpwwvqmalqmabmgefooqlpfvqo+phjmqlof`lnfb`wpbdfpnffwdlog-isdjwfnubqzefowwkfmpfmggqlsUjft`lsz2-3!?,b=pwlsfopfojfpwlvqsb`h-djesbpw`pp<dqbznfbm%dw8qjgfpklwobwfpbjgqlbgubq#effoilkmqj`hslqwebpw$VB.gfbg?,a=sllqajoowzsfV-P-tllgnvpw1s{8JmelqbmhtjgftbmwtbooofbgX3^8sbvotbufpvqf\\\'+$ tbjwnbppbqnpdlfpdbjmobmdsbjg"..#ol`hvmjwqllwtbohejqntjef{no!plmdwfpw13s{hjmgqltpwlloelmwnbjopbefpwbqnbsp`lqfqbjmeoltabazpsbmpbzp7s{85s{8bqwpellwqfbotjhjkfbwpwfswqjslqd,obhftfbhwlogElqn`bpwebmpabmhufqzqvmpivozwbph2s{8dlbodqftpoltfgdfjg>!pfwp6s{8-ip<73s{je#+pllmpfbwmlmfwvafyfqlpfmwqffgeb`wjmwldjewkbqn2;s{`bnfkjooalogyllnuljgfbpzqjmdejoosfbhjmjw`lpw0s{8ib`hwbdpajwpqloofgjwhmftmfbq?"..dqltIPLMgvwzMbnfpbofzlv#olwpsbjmibyy`logfzfpejpkttt-qjphwbapsqfu23s{qjpf16s{Aovfgjmd033/abooelqgfbqmtjogal{-ebjqob`hufqpsbjqivmfwf`kje+"sj`hfujo\\\'+! tbqnolqgglfpsvoo/333jgfbgqbtkvdfpslwevmgavqmkqfe`foohfzpwj`hklvqolppevfo21s{pvjwgfboQPP!bdfgdqfzDFW!fbpfbjnpdjqobjgp;s{8mbuzdqjgwjsp :::tbqpobgz`bqp*8#~sks<kfoowbootklnyk9 ), #233kboo- B4s{8svpk`kbw3s{8`qft),?,kbpk46s{eobwqbqf#%%#wfoo`bnslmwlobjgnjppphjswfmwejmfnbofdfwpsolw733/  `lloeffw-sks?aq=fqj`nlpwdvjgafoogfp`kbjqnbwkbwln,jnd% ;1ov`h`fmw3338wjmzdlmfkwnopfoogqvdEQFFmlgfmj`h<jg>olpfmvooubpwtjmgQPP#tfbqqfozaffmpbnfgvhfmbpb`bsftjpkdvoeW109kjwppolwdbwfhj`haovqwkfz26s{$$*8*8!=npjftjmpajqgplqwafwbpffhW2;9lqgpwqffnboo53s{ebqnlupalzpX3^-$*8!SLPWafbqhjgp*8~~nbqzwfmg+VH*rvbgyk9\\n.pjy....sqls$*8ojewW2:9uj`fbmgzgfaw=QPPsllomf`haoltW259gllqfuboW249ofwpebjolqbosloomlub`lopdfmf#lxplewqlnfwjooqlpp?k0=slvqebgfsjmh?wq=njmj*\\x7F"+njmfyk9abqpkfbq33*8njoh#..=jqlmeqfggjphtfmwpljosvwp,ip,klozW119JPAMW139bgbnpffp?k1=iplm$/#$`lmwW129#QPPollsbpjbnllm?,s=plvoOJMFelqw`bqwW279?k2=;3s{"..?:s{8W379njhf975Ymj`fjm`kZlqhqj`fyk9\\b$**8svqfnbdfsbqbwlmfalmg904Y\\\\le\\\\$^*8333/yk9\\vwbmhzbqgaltoavpk965YIbub03s{ \\x7F~ &@0&907YifeeF[SJ`bpkujpbdloepmltyk9rvfq-`pppj`hnfbwnjm-ajmggfookjqfsj`pqfmw905YKWWS.132elwltloeFMG#{al{967YALGZgj`h8 ~ f{jw906Yubqpafbw$~*8gjfw:::8bmmf~~?,Xj^-Obmdhn.^tjqfwlzpbggppfbobof{8 \\n~f`klmjmf-lqd336*wlmziftppbmgofdpqlle333*#133tjmfdfbqgldpallwdbqz`vwpwzofwfnswjlm-{no`l`hdbmd\\\'+$-63s{Sk-Gnjp`bobmolbmgfphnjofqzbmvmj{gjp`*8~ gvpw`ojs*- 43s{.133GUGp4^=?wbsfgfnlj((*tbdffvqlskjolswpklofEBRpbpjm.15WobapsfwpVQO#avoh`llh8~ KFBGX3^*baaqivbm+2:;ofpkwtjm?,j=plmzdvzpev`hsjsf\\x7F. "331*mgltX2^8X^8 Old#pbow \\n\\nabmdwqjnabwk*x 33s{ ~*8hl9\\0effpbg=p9,,#X^8wloosovd+*x x #-ip$133sgvboalbw-ISD*8 ~rvlw*8 $*8  ~1327132613251324132;132:13131312131113101317131613151314131;131:130313021301130013071306130513041320132113221323133:133;133413351336133713301331133213332:::2::;2::42::52::62::72::02::12::22::32:;:2:;;2:;42:;52:;62:;72:;02:;12:;22:;32:4:2:4;2:442:452:462:472:402:412:422:432:5:2:5;2:542:552:562:572:502:512:522:532:6:2:6;2:642:652:662:672:602:612:622:632333231720:73333::::`lnln/Mpfpwffpwbsfqlwlglkb`f`bgbb/]lajfmg/Abbp/Aujgb`bpllwqlelqlplollwqb`vbogjilpjgldqbmwjslwfnbgfafbodlrv/Efpwlmbgbwqfpsl`l`bpbabilwlgbpjmlbdvbsvfpvmlpbmwfgj`fovjpfoobnbzlylmbbnlqsjpllaqb`oj`foolgjlpklqb`bpj<[<\\\\<Q<\\\\<R<P=l<\\\\=l=o=n<\\\\<Q<Y<S<R<R=n<T<[<Q<R<X<R=n<R<Z<Y<R<Q<T=i<q<\\\\<Y<Y<]=g<P=g<~=g=m<R<^=g<^<R<q<R<R<]<s<R<W<T<Q<T<L<H<q<Y<p=g=n=g<r<Q<T<P<X<\\\\<{<\\\\<x<\\\\<q=o<r<]=n<Y<t<[<Y<U<Q=o<P<P<N=g=o<Z5m5f4O5j5i4K5i4U5o5h4O5d4]4C5f4K5m5e5k5d5h5i5h5o4K5d5h5k4D4_4K5h4I5j5k5f4O5f5n4C5k5h4G5i4D5k5h5d5h5f4D5h4K5f4D5o4X5f4K5i4O5i5j4F4D5f5h5j4A4D5k5i5i4X5d4Xejqpwujgflojdkwtlqognfgjbtkjwf`olpfaob`hqjdkwpnbooallhpsob`fnvpj`ejfoglqgfqsljmwubovfofufowbaofalbqgklvpfdqlvstlqhpzfbqppwbwfwlgbztbwfqpwbqwpwzofgfbwksltfqsklmfmjdkwfqqlqjmsvwbalvwwfqnpwjwofwllopfufmwol`bowjnfpobqdftlqgpdbnfppklqwpsb`fel`vp`ofbqnlgfoaol`hdvjgfqbgjlpkbqftlnfmbdbjmnlmfzjnbdfmbnfpzlvmdojmfpobwfq`lolqdqffmeqlmw%bns8tbw`kelq`fsqj`fqvofpafdjmbewfqujpjwjppvfbqfbpafoltjmgf{wlwboklvqpobafosqjmwsqfppavjowojmhppsffgpwvgzwqbgfelvmgpfmpfvmgfqpkltmelqnpqbmdfbggfgpwjoonlufgwbhfmbalufeobpkej{fglewfmlwkfqujftp`kf`hofdboqjufqjwfnprvj`hpkbsfkvnbmf{jpwdljmdnlujfwkjqgabpj`sfb`fpwbdftjgwkoldjmjgfbptqlwfsbdfpvpfqpgqjufpwlqfaqfbhplvwkulj`fpjwfpnlmwktkfqfavjogtkj`kfbqwkelqvnwkqffpslqwsbqwz@oj`holtfqojufp`obppobzfqfmwqzpwlqzvpbdfplvmg`lvqwzlvq#ajqwkslsvswzsfpbssozJnbdfafjmdvssfqmlwfpfufqzpkltpnfbmpf{wqbnbw`kwqb`hhmltmfbqozafdbmpvsfqsbsfqmlqwkofbqmdjufmmbnfgfmgfgWfqnpsbqwpDqlvsaqbmgvpjmdtlnbmebopfqfbgzbvgjlwbhfptkjof-`ln,ojufg`bpfpgbjoz`kjogdqfbwivgdfwklpfvmjwpmfufqaqlbg`lbpw`lufqbssofejofp`z`ofp`fmfsobmp`oj`htqjwfrvffmsjf`ffnbjoeqbnflogfqsklwlojnjw`b`kf`jujop`boffmwfqwkfnfwkfqfwlv`kalvmgqlzbobphfgtklofpjm`fpwl`h#mbnfebjwkkfbqwfnswzleefqp`lsfltmfgnjdkwboavnwkjmhaollgbqqbznbilqwqvpw`bmlmvmjlm`lvmwubojgpwlmfPwzofOldjmkbsszl``vqofew9eqfpkrvjwfejonpdqbgfmffgpvqabmejdkwabpjpklufqbvwl8qlvwf-kwnonj{fgejmboZlvq#pojgfwlsj`aqltmbolmfgqbtmpsojwqfb`kQjdkwgbwfpnbq`krvlwfdllgpOjmhpglvawbpzm`wkvnaboolt`kjfezlvwkmlufo23s{8pfqufvmwjokbmgp@kf`hPsb`frvfqzibnfpfrvbowtj`f3/333Pwbqwsbmfoplmdpqlvmgfjdkwpkjewtlqwkslpwpofbgptffhpbuljgwkfpfnjofpsobmfpnbqwboskbsobmwnbqhpqbwfpsobzp`objnpbofpwf{wppwbqptqlmd?,k0=wkjmd-lqd,nvowjkfbqgSltfqpwbmgwlhfmplojg+wkjpaqjmdpkjsppwbeewqjfg`boopevoozeb`wpbdfmwWkjp#,,..=bgnjmfdzswFufmw26s{8Fnbjowqvf!`qlpppsfmwaoldpal{!=mlwfgofbuf`kjmbpjyfpdvfpw?,k7=qlalwkfbuzwqvf/pfufmdqbmg`qjnfpjdmpbtbqfgbm`fskbpf=?"..fm\\\\VP% 0:8133s{\\\\mbnfobwjmfmilzbib{-bwjlmpnjwkV-P-#klogpsfwfqjmgjbmbu!=`kbjmp`lqf`lnfpgljmdsqjlqPkbqf2::3pqlnbmojpwpibsbmeboopwqjboltmfqbdqff?,k1=bavpfbofqwlsfqb!.,,T`bqgpkjoopwfbnpSklwlwqvwk`ofbm-sks<pbjmwnfwboolvjpnfbmwsqlleaqjfeqlt!=dfmqfwqv`hollhpUbovfEqbnf-mfw,..= ?wqz#x ubq#nbhfp`lpwpsobjmbgvowrvfpwwqbjmobalqkfosp`bvpfnbdj`nlwlqwkfjq163s{ofbpwpwfsp@lvmw`lvogdobpppjgfpevmgpklwfobtbqgnlvwknlufpsbqjpdjufpgvw`kwf{bpeqvjwmvoo/\\x7F\\x7FX^8wls!= ?"..SLPW!l`fbm?aq,=eollqpsfbhgfswk#pjyfabmhp`bw`k`kbqw13s{8bojdmgfboptlvog63s{8vqo>!sbqhpnlvpfNlpw#---?,bnlmdaqbjmalgz#mlmf8abpfg`bqqzgqbewqfefqsbdf\\\\klnf-nfwfqgfobzgqfbnsqlufiljmw?,wq=gqvdp?"..#bsqjojgfboboofmf{b`welqwk`lgfpoldj`Ujft#pffnpaobmhslqwp#+133pbufg\\\\ojmhdlbopdqbmwdqffhklnfpqjmdpqbwfg03s{8tklpfsbqpf+*8!#Aol`hojmv{ilmfpsj{fo$*8!=*8je+.ofewgbujgklqpfEl`vpqbjpfal{fpWqb`hfnfmw?,fn=abq!=-pq`>wltfqbow>!`baofkfmqz17s{8pfwvsjwbozpkbqsnjmlqwbpwftbmwpwkjp-qfpfwtkffodjqop,`pp,233&8`ovappwveeajaofulwfp#2333hlqfb~*8 abmgprvfvf>#x~8;3s{8`hjmdx \\n\\nbkfbg`ol`hjqjpkojhf#qbwjlpwbwpElqn!zbkll*X3^8Balvwejmgp?,k2=gfavdwbphpVQO#>`foop~*+*821s{8sqjnfwfoopwvqmp3{533-isd!psbjmafb`kwb{fpnj`qlbmdfo..=?,djewppwfuf.ojmhalgz-~*8 \\nnlvmw#+2::EBR?,qldfqeqbmh@obpp1;s{8effgp?k2=?p`lwwwfpwp11s{8gqjmh*#\\x7F\\x7F#oftjppkboo 30:8#elq#olufgtbpwf33s{8ib9npjnlm?elmwqfsoznffwpvmwfq`kfbswjdkwAqbmg*#">#gqfpp`ojspqllnplmhfznlajonbjm-Mbnf#sobwfevmmzwqffp`ln,!2-isdtnlgfsbqbnPWBQWofew#jggfm/#132*8 ~ elqn-ujqvp`kbjqwqbmptlqpwSbdfpjwjlmsbw`k?".. l.`b`ejqnpwlvqp/333#bpjbmj((*xbglaf$*X3^jg>23alwk8nfmv#-1-nj-smd!hfujm`lb`k@kjogaqv`f1-isdVQO*(-isd\\x7Fpvjwfpoj`fkbqqz213!#ptffwwq= mbnf>gjfdlsbdf#ptjpp..= eee8!=Old-`ln!wqfbwpkffw*#%%#27s{8poffsmwfmwejofgib9ojg>!`Mbnf!tlqpfpklwp.al{.gfowb %ow8afbqp97;Y?gbwb.qvqbo?,b=#psfmgabhfqpklsp>#!!8sks!=`wjlm20s{8aqjbmkfoolpjyf>l>&1E#iljmnbzaf?jnd#jnd!=/#eipjnd!#!*X3^NWlsAWzsf!mftozGbmph`yf`kwqbjohmltp?,k6=ebr!=yk.`m23*8 .2!*8wzsf>aovfpwqvozgbujp-ip$8= ?"pwffo#zlv#k1= elqn#ifpvp233&#nfmv- \\n tbofpqjphpvnfmwggjmda.ojhwfb`kdje!#ufdbpgbmphffpwjpkrjspvlnjplaqfgfpgffmwqfwlglpsvfgfb/]lpfpw/Mwjfmfkbpwblwqlpsbqwfglmgfmvfulkb`fqelqnbnjpnlnfilqnvmglbrv/Ag/Abpp/_olbzvgbef`kbwlgbpwbmwlnfmlpgbwlplwqbppjwjlnv`klbklqbovdbqnbzlqfpwlpklqbpwfmfqbmwfpelwlpfpwbpsb/Apmvfubpbovgelqlpnfgjlrvjfmnfpfpslgfq`kjofpfq/Muf`fpgf`jqilp/Efpwbqufmwbdqvslkf`klfoolpwfmdlbnjdl`lpbpmjufodfmwfnjpnbbjqfpivojlwfnbpkb`jbebulqivmjlojaqfsvmwlavfmlbvwlqbaqjoavfmbwf{wlnbqylpbafqojpwbovfdl`/_nlfmfqlivfdlsfq/Vkbafqfpwlzmvm`bnvifqubolqevfqbojaqldvpwbjdvboulwlp`bplpdv/Absvfglplnlpbujplvpwfggfafmml`kfavp`bebowbfvqlppfqjfgj`kl`vqpl`obuf`bpbpof/_msobylobqdllaqbpujpwbbslzlivmwlwqbwbujpwl`qfbq`bnslkfnlp`jm`l`bqdlsjplplqgfmkb`fm/Mqfbgjp`lsfgql`fq`bsvfgbsbsfonfmlq/Vwjo`obqlilqdf`boofslmfqwbqgfmbgjfnbq`bpjdvffoobppjdol`l`kfnlwlpnbgqf`obpfqfpwlmj/]lrvfgbsbpbqabm`lkjilpujbifsbaol/Epwfujfmfqfjmlgfibqelmgl`bmbomlqwfofwqb`bvpbwlnbqnbmlpovmfpbvwlpujoobufmglsfpbqwjslpwfmdbnbq`loofubsbgqfvmjglubnlpylmbpbnalpabmgbnbqjbbavplnv`kbpvajqqjlibujujqdqbgl`kj`bboo/Ailufmgj`kbfpwbmwbofppbojqpvfolsfplpejmfpoobnbavp`l/Epwboofdbmfdqlsobybkvnlqsbdbqivmwbglaofjpobpalopbab/]lkbaobov`kb/mqfbgj`fmivdbqmlwbpuboofboo/M`bqdbglolqbabilfpw/Edvpwlnfmwfnbqjlejqnb`lpwlej`kbsobwbkldbqbqwfpofzfpbrvfonvpflabpfpsl`lpnjwbg`jfol`kj`lnjfgldbmbqpbmwlfwbsbgfafpsobzbqfgfppjfwf`lqwf`lqfbgvgbpgfpflujfilgfpfbbdvbp%rvlw8glnbjm`lnnlmpwbwvpfufmwpnbpwfqpzpwfnb`wjlmabmmfqqfnlufp`qloovsgbwfdolabonfgjvnejowfqmvnafq`kbmdfqfpvowsvaoj`p`qffm`kllpfmlqnbowqbufojppvfpplvq`fwbqdfwpsqjmdnlgvofnlajofptjw`ksklwlpalqgfqqfdjlmjwpfoepl`jbob`wjuf`lovnmqf`lqgelooltwjwof=fjwkfqofmdwkebnjozeqjfmgobzlvwbvwklq`qfbwfqfujftpvnnfqpfqufqsobzfgsobzfqf{sbmgsloj`zelqnbwglvaofsljmwppfqjfpsfqplmojujmdgfpjdmnlmwkpelq`fpvmjrvftfjdkwsflsoffmfqdzmbwvqfpfbq`kejdvqfkbujmd`vpwlnleepfwofwwfqtjmgltpvanjwqfmgfqdqlvspvsolbgkfbowknfwklgujgflpp`klloevwvqfpkbgltgfabwfubovfpLaif`wlwkfqpqjdkwpofbdvf`kqlnfpjnsofmlwj`fpkbqfgfmgjmdpfbplmqfslqwlmojmfprvbqfavwwlmjnbdfpfmbaofnlujmdobwfpwtjmwfqEqbm`fsfqjlgpwqlmdqfsfbwOlmglmgfwbjoelqnfggfnbmgpf`vqfsbppfgwlddofsob`fpgfuj`fpwbwj``jwjfppwqfbnzfooltbwwb`hpwqffweojdkwkjggfmjmel!=lsfmfgvpfevouboofz`bvpfpofbgfqpf`qfwpf`lmggbnbdfpslqwpf{`fswqbwjmdpjdmfgwkjmdpfeef`wejfogppwbwfpleej`fujpvbofgjwlqulovnfQfslqwnvpfvnnlujfpsbqfmwb``fppnlpwoznlwkfq!#jg>!nbqhfwdqlvmg`kbm`fpvqufzafelqfpznalonlnfmwpsff`knlwjlmjmpjgfnbwwfq@fmwfqlaif`wf{jpwpnjggofFvqlsfdqltwkofdb`znbmmfqfmlvdk`bqffqbmptfqlqjdjmslqwbo`ojfmwpfof`wqbmgln`olpfgwlsj`p`lnjmdebwkfqlswjlmpjnsozqbjpfgfp`bsf`klpfm`kvq`kgfejmfqfbplm`lqmfqlvwsvwnfnlqzjeqbnfsloj`fnlgfopMvnafqgvqjmdleefqppwzofphjoofgojpwfg`boofgpjoufqnbqdjmgfofwfafwwfqaqltpfojnjwpDolabopjmdoftjgdfw`fmwfqavgdfwmltqbs`qfgjw`objnpfmdjmfpbefwz`klj`fpsjqjw.pwzofpsqfbgnbhjmdmffgfgqvppjbsofbpff{wfmwP`qjswaqlhfmbooltp`kbqdfgjujgfeb`wlqnfnafq.abpfgwkflqz`lmejdbqlvmgtlqhfgkfosfg@kvq`kjnsb`wpklvogbotbzpoldl!#alwwlnojpw!=*xubq#sqfej{lqbmdfKfbgfq-svpk+`lvsofdbqgfmaqjgdfobvm`kQfujftwbhjmdujpjlmojwwofgbwjmdAvwwlmafbvwzwkfnfpelqdlwPfbq`kbm`klqbonlpwolbgfg@kbmdfqfwvqmpwqjmdqfolbgNlajofjm`lnfpvssozPlvq`flqgfqpujftfg%maps8`lvqpfBalvw#jpobmg?kwno#`llhjfmbnf>!bnbylmnlgfqmbguj`fjm?,b=9#Wkf#gjboldklvpfpAFDJM#Nf{j`lpwbqwp`fmwqfkfjdkwbggjmdJpobmgbppfwpFnsjqfP`kllofeelqwgjqf`wmfbqoznbmvboPfof`w- Lmfiljmfgnfmv!=SkjojsbtbqgpkbmgofjnslqwLeej`fqfdbqgphjoopmbwjlmPslqwpgfdqfftffhoz#+f-d-afkjmggl`wlqolddfgvmjwfg?,a=?,afdjmpsobmwpbppjpwbqwjpwjppvfg033s{\\x7F`bmbgbbdfm`zp`kfnfqfnbjmAqbyjopbnsofoldl!=afzlmg.p`bofb``fswpfqufgnbqjmfEllwfq`bnfqb?,k2= \\\\elqn!ofbufppwqfpp!#,= -dje!#lmolbgolbgfqL{elqgpjpwfqpvqujuojpwfmefnbofGfpjdmpjyf>!bssfbowf{w!=ofufopwkbmhpkjdkfqelq`fgbmjnbobmzlmfBeqj`bbdqffgqf`fmwSflsof?aq#,=tlmgfqsqj`fpwvqmfg\\x7F\\x7F#x~8nbjm!=jmojmfpvmgbztqbs!=ebjofg`fmpvpnjmvwfafb`lmrvlwfp263s{\\x7Ffpwbwfqfnlwffnbjo!ojmhfgqjdkw8pjdmboelqnbo2-kwnopjdmvssqjm`feolbw9-smd!#elqvn-B``fppsbsfqpplvmgpf{wfmgKfjdkwpojgfqVWE.;!%bns8#Afelqf-#TjwkpwvgjlltmfqpnbmbdfsqlejwiRvfqzbmmvbosbqbnpalvdkwebnlvpdlldofolmdfqj((*#xjpqbfopbzjmdgf`jgfklnf!=kfbgfqfmpvqfaqbm`ksjf`fpaol`h8pwbwfgwls!=?qb`jmdqfpjyf..%dw8sb`jwzpf{vboavqfbv-isd!#23/333lawbjmwjwofpbnlvmw/#Jm`-`lnfgznfmv!#ozqj`pwlgbz-jmgffg`lvmwz\\\\oldl-EbnjozollhfgNbqhfwopf#jeSobzfqwvqhfz*8ubq#elqfpwdjujmdfqqlqpGlnbjm~fopfxjmpfqwAold?,ellwfqoldjm-ebpwfqbdfmwp?algz#23s{#3sqbdnbeqjgbzivmjlqgloobqsob`fg`lufqpsovdjm6/333#sbdf!=alpwlm-wfpw+bubwbqwfpwfg\\\\`lvmwelqvnpp`kfnbjmgf{/ejoofgpkbqfpqfbgfqbofqw+bssfbqPvanjwojmf!=algz!= )#WkfWklvdkpffjmdifqpfzMftp?,ufqjezf{sfqwjmivqztjgwk>@llhjfPWBQW#b`qlpp\\\\jnbdfwkqfbgmbwjufsl`hfwal{!= Pzpwfn#Gbujg`bm`fqwbaofpsqlufgBsqjo#qfboozgqjufqjwfn!=nlqf!=albqgp`lolqp`bnsvpejqpw#\\x7F\\x7F#X^8nfgjb-dvjwbqejmjpktjgwk9pkltfgLwkfq#-sks!#bppvnfobzfqptjoplmpwlqfpqfojfeptfgfm@vpwlnfbpjoz#zlvq#Pwqjmd Tkjowbzolq`ofbq9qfplqweqfm`kwklvdk!*#(#!?algz=avzjmdaqbmgpNfnafqmbnf!=lssjmdpf`wlq6s{8!=upsb`fslpwfqnbilq#`leeffnbqwjmnbwvqfkbssfm?,mbu=hbmpbpojmh!=Jnbdfp>ebopftkjof#kpsb`f3%bns8# Jm##sltfqSlophj.`lolqilqgbmAlwwlnPwbqw#.`lvmw1-kwnomftp!=32-isdLmojmf.qjdkwnjoofqpfmjlqJPAM#33/333#dvjgfpubovf*f`wjlmqfsbjq-{no!##qjdkwp-kwno.aol`hqfdF{s9klufqtjwkjmujqdjmsklmfp?,wq=vpjmd# \\nubq#=$*8 \\n?,wg= ?,wq= abkbpbaqbpjodbofdlnbdzbqslophjpqsphj4]4C5d\\bTA\\nzk\\vBl\\bQ\\x7F\\vUmGx\\bSM\\nmC\\bTA wQ\\nd}\\bW@\\bTl\\bTF i@ cT\\vBM\\v|jBV qw cC\\bWI\\npa fM\\n{Z{X\\bTF\\bVV\\bVK \\x7FmkF []\\bPm\\bTv\\nsI\\vpg [I\\bQpmx\\v_W\\n^M\\npe\\vQ}\\vGu\\nel\\npeChBV\\bTA So\\nzk\\vGL\\vxD\\nd[JzMY\\bQpli\\nfl\\npC{BNt\\vwT i_\\bTgQQ\\n|p\\vXN\\bQS\\vxDQC\\bWZ pD\\vVS\\bTWNtYh\\nzuKjN} wr Ha\\n_D j`\\vQ}\\vWp\\nxZ{c ji BU\\nbDa| Tn pV\\nZd\\nmC\\vEV{X c} To\\bWl\\bUd IQ cg\\vxs\\nXW wR\\vek c} ]y Jn\\nrp\\neg\\npV\\nz\\\\{W\\npl\\nz\\\\\\nzU Pc `{\\bV@\\nc|\\bRw i_\\bVb\\nwX HvSu\\bTF\\v_W\\vWs\\vsIm\\x7F\\nTT\\ndc US }f iZ\\bWz c}MD Be iD\\v@@\\bTl\\bPv }tSwM`\\vnU kW\\ved\\nqo\\vxY A|\\bTz\\vy`BRBM iaXU\\nyun^ fL iI\\nXW fD\\bWz\\bW@ yj \\x7Fm av BN\\vb\\\\ pD\\bTf\\nY[ Jn\\bQy [^\\vWc\\vyuDlCJ\\vWj\\vHR `V\\vuW Qy\\np@\\vGuplJm\\bW[\\nLP\\nxC\\n`m wQui\\x7FR\\nbI wQ BZ WVBR\\npg cgtiCW\\n_y Rg\\bQa\\vQB\\vWc\\nYble\\ngESu\\nL[ Q\\x7F ea dj\\v]W\\nb~M` wL\\bTV\\bVH\\nt\\x7F\\npl |bs_\\bU|\\bTaoQlvSkM`\\bTv\\vK}\\nfl cCoQBR Hk |d\\bQp HK BZ\\vHR\\bPv\\vLx\\vEZ\\bT\\x7F\\bTv iDoDMU\\vwBSuk`St\\ntC Pl Kg\\noi jY\\vxYh}\\nzk\\bWZ \\x7Fm\\ve` TB fE\\nzk `zYh\\nV| HK AJ AJ\\bUL p\\\\ ql\\nYcKd\\nfyYh [I\\vDgJm\\n]n\\nlb\\bUd\\n{Z lu fsoQ\\bTWJm\\vwB eaYhBC sb Tn\\nzU\\n_y\\vxY Q]\\ngwmt O\\\\\\ntb\\bWW\\bQy mI V[\\ny\\\\\\naB\\vRb wQ\\n]QQJ\\bWg\\vWa\\bQj\\ntC\\bVH\\nYm\\vxs\\bVK\\nel\\bWI\\vxYCq\\ntR\\vHV\\bTl\\bVw ay\\bQa\\bVV }t dj\\nr| p\\\\ wR\\n{i\\nTT [I i[ AJ\\vxs\\v_W d{\\vQ} cg Tz A| Cj\\vLmN}m\\x7F\\nbK dZ p\\\\ `V sV\\np@ iD wQ\\vQ}\\bTfkaJm\\v@@\\bV` zp\\n@NSw iI cg\\noiSu\\bVwloCy c}\\vb\\\\ sUBA\\bWI\\bTf\\nxS Vp\\nd|\\bTV\\vbC NoJu\\nTC |`\\n{Z D]\\bU| c}lm\\bTl Bv Pl c}\\bQp \\x7Fm\\nLk kj\\n@NSbKO j_ p\\\\\\nzU\\bTl\\bTg\\bWI cfXO\\bWW\\ndzli BN\\nd[\\bWOMD\\vKC dj I_\\bVV\\ny\\\\\\vLmxl xB kV\\vb\\\\\\vJW\\vVS Vx\\vxD d{MD\\bTa |`\\vPzR}\\vWsBM\\nsICN\\bTaJm\\npe i_\\npV\\nrh Rd Hv\\n~A\\nxR\\vWh\\vWk\\nxS\\vAz\\vwX\\nbIoQ fw\\nqI\\nV|\\nunz\\x7F\\vpg d\\\\\\voA{D i_xB\\bT\\x7F `Vqr TTg]CA\\vuR VJ T`\\npw\\vRb I_\\nCxRo\\vsICjKh Bv WVBBoD{D\\nhcKm\\v^R QE\\n{I\\np@\\nc|Gt c}Dl\\nzUqN sVk} Hh\\v|j\\nqou| Q]\\vek\\x7FZM`St\\npe dj\\bVG\\veE \\x7Fm\\vWc|I\\n[W fL\\bT\\x7F BZSu\\vKaCqNtY[\\nqI\\bTv fM i@ }fB\\\\ Qy\\vBl\\bWgXDkc\\vx[\\bVV Q] \\x7Fa Py\\vxD\\nfI }foD dj SGls ~DCN\\n{Z \\\\v\\n_D\\nhc\\vx_C[ AJ\\nLM VxCI bj c^ cF\\ntCSx wrXA\\bU\\\\ |a\\vK\\\\\\bTV\\bVj\\nd| fsCX\\ntb\\bRw Vx AE A|\\bT\\x7FNt\\vDg Vc\\bTld@\\npo \\x7FM cF\\npe iZ Bo\\bSq\\nfHl`\\bTx\\bWf HE\\vF{ cO fD\\nlm\\vfZ\\nlm\\veU dGBH\\bTV SiMW\\nwX\\nz\\\\ \\\\cCX\\nd} l}\\bQp\\bTV F~\\bQ\\x7F `i\\ng@nO\\bUd\\bTl\\nL[ wQ ji\\ntC |J\\nLU\\naB\\vxYKj AJuN i[\\npeSk\\vDg\\vx]\\bVb\\bVV\\nea kV\\nqI\\bTaSk\\nAO pD\\ntb\\nts\\nyi\\bVg i_\\v_W\\nLkNt yj fMR\\x7F iI\\bTl\\vwX sV\\vMl\\nyu AJ\\bVjKO WV\\vA}\\vW\\x7F\\nrp iD\\v|olv\\vsIBM d~ CU\\bVbeV\\npC\\vwT j` c}\\vxs\\vps\\vvh WV\\vGg\\vAe\\vVK\\v]W rg\\vWcF` Br\\vb\\\\ dZ\\bQp\\nqIkF\\nLk\\vAR\\bWI\\bTg bs dw\\n{L\\n_y iZ\\bTA lg\\bVV\\bTl dk\\n`k a{ i_{Awj wN\\v@@\\bTe i_\\n_D wL\\nAH\\viK\\vek\\n[] p_ yj\\bTv US [r\\n{I\\npsGt\\vVK\\nplS}\\vWP |dMD\\vHV\\bT\\x7FR}M`\\bTV\\bVHlvCh\\bW[Ke R{\\v^R ab BZ VA B`\\nd|\\nhsKe BeOi R{ d\\\\nB\\bWZ dZ VJOs \\x7FmuQ\\vhZQ@QQ\\nfI\\bW[B\\\\li\\nzU\\nMdM`\\nxS\\bVV\\n\\\\}\\vxD \\x7Fm\\bTpIS\\nc| kVi~ V{\\vhZ |b\\bWt\\n@R\\voA\\vnU\\bWI ea B` iD c} TzBR\\vQBNj CP [I\\bTv `WuN\\vpg\\vpg\\vWc iT bs wL U_ c\\\\ |h\\vKa Nr fL\\nq|\\nzu\\nz\\\\ Nr\\bUg |bm`\\bTv\\nyd\\nrp\\bWf UXBV\\nzk\\nd} wQ }fCe\\ved\\bTW\\bSB\\nxU cn\\bTb\\ne\\x7F a\\\\ SG\\bU|\\npV\\nN\\\\Kn\\vnU At pD\\v^R\\vIrb[ R{ dE\\vxD\\vWK\\vWA\\bQL\\bW@Su\\bUd\\nDM PcCADloQ Hswiub\\n\\x7Fa\\bQpOb\\nLP\\bTlY[\\vK} AJ\\bQ\\x7Fn^\\vsA\\bSM\\nqM\\bWZ\\n^W\\vz{S| fD\\bVK\\bTv\\bPvBB CPdF id\\vxsmx\\vws cC\\ntC ycM`\\vW\\x7F\\nrh\\bQp\\vxD\\\\o\\nsI_k\\nzukF fDXsXO jp\\bTvBS{B Br\\nzQ\\nbI c{BDBVnO\\bTF caJd fL PV I_\\nlK`o wX\\npa gu\\bP}{^\\bWf\\n{I BN\\npaKl\\vpg cn fL\\vvhCq\\bTl\\vnU\\bSqCm wR\\bUJ\\npe\\nyd\\nYgCy\\vKW fD\\neaoQ j_ BvnM\\vID\\bTa\\nzApl\\n]n\\bTa R{ fr\\n_y\\bUg{Xkk\\vxD|Ixl\\nfyCe\\vwB\\nLk\\vd]\\noi\\n}h Q]\\npe\\bVwHkOQ\\nzk AJ\\npV\\bPv\\ny\\\\ A{Oi\\bSBXA\\veE jp\\nq} iDqN\\v^R \\x7Fm iZ Br\\bVg\\noi\\n\\\\X U_\\nc|\\vHV\\bTf Tn\\\\N\\\\N\\nuBlv\\nyu Td\\bTf\\bPL\\v]W dG\\nA`\\nw^\\ngI\\npe dw\\nz\\\\ia\\bWZ cFJm\\n{Z\\bWO_kDfRR d\\\\\\bVV\\vxsBNtilm Td ]y\\vHV So\\v|jXX A|\\vZ^\\vGu\\bTWM`kF\\vhZ\\vVK dG\\vBl ay\\nxUqEnO\\bVw\\nqICX\\ne\\x7F Pl\\bWO\\vLm dLuHCm dTfn\\vwBka\\vnU\\n@M\\nyT Hv \\\\}Kh d~Yhk}\\neR d\\\\\\bWI |b HK iD\\bTWMY\\npl\\bQ_ wr\\vAx HE\\bTg\\bSqvp\\vb\\\\\\bWO\\nOl\\nsI\\nfy\\vID \\\\c\\n{Z\\n^~\\npe\\nAO TT\\vxvk_\\bWO\\v|j\\vwB Qy i@ Pl Ha dZk}ra UT\\vJc\\ved\\np@ QN\\nd| kj HkM`\\noi wr d\\\\\\nlq\\no_\\nlb\\nL[ acBBBHCm\\npl IQ\\bVK\\vxs\\n`e\\viK\\npaOi US\\bTp fD\\nPGkkXA\\nz\\\\\\neg\\vWh wRqN\\nqS cnlo\\nxS\\n^W BU\\nt\\x7F HE p\\\\ fF fw\\bVV\\bW@ ak\\vVKls VJ\\bVV\\veE\\\\o\\nyX\\nYmM`lL\\nd|\\nzk A{sE wQXT\\nt\\x7F Pl ]y\\vwT{pMD\\vb\\\\ Q]Kj Jn\\nAH\\vRb BU HK \\\\c\\nfIm\\x7F\\nqM\\n@R So\\noiBT Hv\\n_yKh BZ ]i\\bUJ V{Sr\\nbI\\vGg a_\\bTR\\nfI\\nfl [K IIS|\\vuW iI\\bWI\\nqI\\v|jBV\\bVg\\bWZkF\\vx]\\bTA ab fr i@ Jd Jd\\vps\\nAO\\bTaxu iD\\nzk |d |`\\bW[ lP dG\\bVV\\vw}\\vqO i[\\bQ\\x7F\\bTz\\vVF wNts dw\\bTv\\neS\\ngi NryS\\npe\\bVV\\bSq\\n`m yj BZ\\vWX\\bSB c\\\\\\nUR [J c_nM\\bWQ\\vAx\\nMd Brui\\vxY\\bSM\\vWc\\v|j\\vxs }Q BO\\bPL\\bWW fM\\nAO Pc\\veUe^\\bTg\\nqI ac\\bPv cFoQ Q\\x7F\\vhZka\\nz\\\\ iK BU\\n`k CPS|M`\\n{I S{_O BZZiSk ps p\\\\\\nYu\\n]s\\nxC\\bWt\\nbD kV\\vGuyS\\nqA [r\\neKM` dZlL\\bUg\\bTl\\nbD US\\vb\\\\ pV\\nccS\\\\ ct `z\\bPL\\vWs\\nA`\\neg\\bSquECR\\vDg `W\\vz{\\vWcSkSk bW\\bUg ea\\nxZ iI UX VJ\\nqn S{\\vRb\\bTQ\\nplGt\\vuWuj\\npF\\nqI fL [I iaXO\\nyu\\vDg\\ved q{VG\\bQ\\x7Fka Vj kV xB\\nd|\\np@ QN Pc ps]j kV oU\\bTp\\nzUnB\\vB] a{\\bV@\\n]nm` cz R{m`\\bQa\\vwT\\bSMMYqN dj~s\\vQ}MY\\vMB Bv wR\\bRg\\vQ} ql\\vKC\\nrmxuCC\\vwB\\vvh BqXq\\npV i_ObuE\\nbd\\nqo\\v{i\\nC~ BL\\veEuH\\bVjEyGz\\vzR\\v{i cf\\n{Z\\n]nXA\\vGu\\vnU hS\\vGI\\nCc HE\\bTA HBBHCj\\nCc\\bTF HE\\nXI A{\\bQ\\x7F c\\\\\\vmO\\vWX\\nfH\\np@MY\\bTF\\nlK Bt\\nzU TTKm\\vwT\\npV\\ndt\\vyI Vx Q\\x7F Rg Td\\nzU\\bRS\\nLM wAnM Tn\\ndS ]g\\nLc\\vwB }t [I CPkX\\vFm\\vhZm\\x7F i[\\np@\\vQ}\\vW\\x7F |d\\nMO\\nMd f_ fD cJ Hz\\vRb io PyY[\\nxU ct\\v@@ ww\\bPvBMFF\\ntbv|\\vKm Bq BqKh`o\\nZdXU i] |` StB\\\\\\bQ\\x7F\\v_W TJ\\nqI |a A{\\vuPMD Pl\\nxR fL\\vws c{ d\\\\\\bV`\\neg HKkc\\nd|\\bVV\\ny\\\\kc i]\\bVG `V ss I_ AE bs du\\nel pD\\vW\\x7F\\nqslv\\bSMZi\\vVKia\\vQB Q\\x7F\\n{Z\\bPt\\vKl\\nlK\\nhs\\ndS\\bVKmf\\nd^ kV cO\\nc|\\bVH \\\\]\\bTv\\bSq mI\\vDg VJ cn\\ny\\\\\\bVg\\bTv\\nyX\\bTF ]]\\bTp\\noi\\nhs\\veU\\nBf djMr\\n|p \\\\g ]r\\bVb{D\\nd[XN fM O\\\\s_ cf iZXN\\vWc qv\\n`m U^oD\\nd|\\vGg dE\\vwflou}\\nd|oQ `iOi\\vxD\\ndZ\\nCxYw\\nzk\\ntb\\ngw yj B`\\nyX\\vps\\ntC\\vpP\\vqw\\bPu\\bPX Dm\\npwNj ss aG\\vxs\\bPt\\noLGz Ok i@ i]eC IQ ii dj\\v@J |duh\\bWZ\\veU\\vnU\\bTa cCg]\\nzkYh\\bVK\\nLU\\np@\\ntb\\ntR Cj\\vNP i@\\bP{\\n\\\\}\\n{c\\nwX fL\\bVG c{ |` AJ |C fDln |d bs\\nqI{B\\vAx\\np@\\nzk\\vRbOs\\vWSe^\\vD_ Bv\\vWd\\bVb\\vxs\\veE\\bRw\\n]n\\n|p\\vg| fwkc\\bTIka\\n\\\\TSp ju\\vps\\npeu|\\vGr\\bVe CU]MXU\\vxD\\bTa IQ\\vWq CU am dj\\bSoSw\\vnUCh Q]s_\\bPt fS\\bTa \\\\}\\n@OYc UZ\\bTx\\npe\\vnU\\nzU |} iD\\nz\\\\\\bSM\\vxDBR\\nzQ QN]MYh\\nLP\\vFm\\vLXvc\\vqlka HK\\bVb\\ntC\\nCy\\bTv\\nuVoQ `z [I B`\\vRb yj sb\\vWs\\bTl kV\\ved\\ne\\x7FlL\\vxN \\x7Fm\\nJn jY\\vxD\\bVb\\bSq\\vyu wL\\vXL\\bTA pg At nDXX wR\\npl\\nhwyS\\nps cO\\bW[\\v|jXN sV p\\\\ Be\\nb~\\nAJ\\n]ek`qN dw WV HE\\vEVJz id B` zhE] fD\\bTgqN\\bTa jaCv\\bSM\\nhc\\bUet_ ieg] wQ\\nPn\\bVB jw\\bVg\\vbE BZ\\vRH\\bP{ jp\\n\\\\} a_ cC |a\\vD] BZ i[ fD\\vxW\\no_ d\\\\\\n_D\\ntb \\\\c AJ\\nlKoQlo\\vLx\\vM@\\bWZKn\\vpg\\nTi\\nIv\\n|r\\v@}JzLmWhk}ln\\vxD\\n]sgc\\vps Br\\bTW\\vBMtZ\\nBYDW jf\\vSWC}\\nqo dE mv IQ\\bPP\\bUblvBC\\nzQ [I\\vgl\\nig\\bUsBT\\vbC\\bSq sU iW\\nJn SY HK rg\\npV\\vID\\v|jKO `S |a`vbmglfmujbqnbgqjgavp`bqjmj`jlwjfnslslqrvf`vfmwbfpwbglsvfgfmivfdlp`lmwqbfpw/Mmmlnaqfwjfmfmsfqejonbmfqbbnjdlp`jvgbg`fmwqlbvmrvfsvfgfpgfmwqlsqjnfqsqf`jlpfd/Vmavfmlpuloufqsvmwlppfnbmbkba/Abbdlpwlmvfulpvmjglp`bqolpfrvjslmj/]lpnv`klpbodvmb`lqqfljnbdfmsbqwjqbqqjabnbq/Abklnaqffnsoflufqgbg`bnajlnv`kbpevfqlmsbpbglo/Amfbsbqf`fmvfubp`vqplpfpwbabrvjfqlojaqlp`vbmwlb``fplnjdvfoubqjlp`vbwqlwjfmfpdqvslppfq/Mmfvqlsbnfgjlpeqfmwfb`fq`bgfn/Mplefqwb`l`kfpnlgfoljwbojbofwqbpbod/Vm`lnsqb`vbofpf{jpwf`vfqslpjfmglsqfmpboofdbqujbifpgjmfqlnvq`jbslgq/Msvfpwlgjbqjlsvfaolrvjfqfnbmvfosqlsjl`qjpjp`jfqwlpfdvqlnvfqwfevfmwf`fqqbqdqbmgffef`wlsbqwfpnfgjgbsqlsjbleqf`fwjfqqbf.nbjoubqjbpelqnbpevwvqllaifwlpfdvjqqjfpdlmlqnbpnjpnlp/Vmj`l`bnjmlpjwjlpqby/_mgfajglsqvfabwlofglwfm/Abifp/Vpfpsfql`l`jmblqjdfmwjfmgb`jfmwl`/Mgjykbaobqpfq/Abobwjmbevfqybfpwjoldvfqqbfmwqbq/E{jwlo/_sfybdfmgbu/Agflfujwbqsbdjmbnfwqlpibujfqsbgqfpe/M`jo`bafyb/Mqfbppbojgbfmu/Alibs/_mbavplpajfmfpwf{wlpoofubqsvfgbmevfqwf`ln/Vm`obpfpkvnbmlwfmjglajoablvmjgbgfpw/Mpfgjwbq`qfbgl<X<W=c=k=n<R<V<\\\\<V<T<W<T=a=n<R<^=m<Y<Y<_<R<S=l<T=n<\\\\<V<Y=e<Y=o<Z<Y<v<\\\\<V<]<Y<[<]=g<W<R<Q<T<~=m<Y<S<R<X<A=n<R=n<R<P=k<Y<P<Q<Y=n<W<Y=n=l<\\\\<[<R<Q<\\\\<_<X<Y<P<Q<Y<x<W=c<s=l<T<Q<\\\\=m<Q<T=i=n<Y<P<V=n<R<_<R<X<^<R=n=n<\\\\<P<M<D<|<P<\\\\=c<K=n<R<^<\\\\=m<^<\\\\<P<Y<P=o<N<\\\\<V<X<^<\\\\<Q<\\\\<P=a=n<T=a=n=o<~<\\\\<P=n<Y=i<S=l<R=n=o=n<Q<\\\\<X<X<Q=c<~<R=n=n=l<T<Q<Y<U<~<\\\\=m<Q<T<P=m<\\\\<P=n<R=n=l=o<]<r<Q<T<P<T=l<Q<Y<Y<r<r<r<W<T=j=a=n<\\\\<r<Q<\\\\<Q<Y<P<X<R<P<P<R<U<X<^<Y<R<Q<R=m=o<X\\fHy\\fIk\\fHU\\fId\\fHy\\fIl\\fHT\\fIk\\fHy\\fHR\\fHy\\fIg\\fHx\\fH\\\\\\fHF\\fH\\\\\\fHD\\fIk\\fHc\\fHy\\fHy\\fHS\\fHA\\fIl\\fHk\\fHT\\fHy\\fH\\\\\\fHH\\fIg\\fHU\\fIg\\fHj\\fHF\\fHU\\fIl\\fHC\\fHU\\fHC\\fHR\\fHH\\fHy\\fHI\\fHRibdqbm\\fHj\\fHp\\fHp\\fIg\\fHi\\fH@\\fHJ\\fIg\\fH{\\fHd\\fHp\\fHR\\fH{\\fHc\\fHU\\fHB\\fHk\\fHD\\fHY\\fHU\\fHC\\fIk\\fHI\\fIk\\fHI\\fIl\\fHt\\fH\\\\\\fHp\\fH@\\fHJ\\fIl\\fHy\\fHd\\fHp\\fIl\\fHY\\fIk\\fHD\\fHd\\fHD\\fHc\\fHU\\fH\\\\\\fHe\\fHT\\fHB\\fIk\\fHy\\fHB\\fHY\\fIg\\fH^\\fIk\\fHT\\fH@\\fHB\\fHd\\fHJ\\fIk\\fH\\x7F\\fH\\\\\\fHj\\fHB\\fH@\\fHT\\fHA\\fH\\\\\\fH@\\fHD\\fHv\\fH^\\fHB\\fHD\\fHj\\fH{\\fHT\\fIl\\fH^\\fIl4U5h5e4I5h5e5k4\\\\4K4N4B4]4U4C4C4K5h5e5k4\\\\5k4Y5d4]4V5f4]5o4K5j5d5h4K4D5f5j4U4]4Z4\\\\5h5o5k5j4K5f5d5i5n4K5h4U5h5f4K5j4K5h5o5j4A4F5e5n4D5h5d4A4E4K4B4]5m5n4[4U4D4C4]5o5j4I4\\\\4K5o5i4K4K4A4C4I5h4K5m5f5k4D4U4Z5o5f5m4D4A4G5d5i5j5d5k5d4O5j4K4@4C4K5h5k4K4_5h5i4U5j4C5h5f4_4U4D4]4Y5h5e5i5j4\\\\4D5k4K4O5j5k5i4G5h5o5j4F4K5h4K4A5f4G5i4Y4]4X4]4A4A5d5h5d5m5f4K4\\\\4K5h5o5h5i4]4E4K5j4F4K5h5m4O4D5d4B4K4Y4O5j4F4K5j5k4K5h5f4U4Z5d5d5n4C4K4D5j4B5f4]4D5j4F5h5o5i4X4K4M5d5k5f4K4D5d5n4Y4Y5d5i4K4]5n5i4O4A4C5j4A5j4U4C5i4]4O5f4K4A4E5o4F4D4C5d5j5f4@4D5i5j5k4F4A4F4@5k4E4_5j4E5f4F5i5o4]4E4V4^4E5j5m4_4D5f4F5h5h5k5h5j4K4F5h5o5n5h4D5h5i4K4U5j5k4O5d5h4X5f4M5j5d4]4O5i4K5m5f5o4D5o5h4\\\\4K4F4]4F4D4D4O5j5k5i4_4K5j5o4D5f4U5m5n4C4A4_5j5h5k5i4X4U4]4O5k5h4X5k4]5n4[4]4[5h4Dsqlejofpfquj`fgfebvowkjnpfoegfwbjop`lmwfmwpvsslqwpwbqwfgnfppbdfpv``fppebpkjlm?wjwof=`lvmwqzb``lvmw`qfbwfgpwlqjfpqfpvowpqvmmjmdsql`fpptqjwjmdlaif`wpujpjaoftfo`lnfbqwj`ofvmhmltmmfwtlqh`lnsbmzgzmbnj`aqltpfqsqjub`zsqlaofnPfquj`fqfpsf`wgjpsobzqfrvfpwqfpfquftfapjwfkjpwlqzeqjfmgplswjlmptlqhjmdufqpjlmnjoojlm`kbmmfotjmglt-bggqfppujpjwfgtfbwkfq`lqqf`wsqlgv`wfgjqf`welqtbqgzlv#`bmqfnlufgpvaif`w`lmwqlobq`kjuf`vqqfmwqfbgjmdojaqbqzojnjwfgnbmbdfqevqwkfqpvnnbqznb`kjmfnjmvwfpsqjubwf`lmwf{wsqldqbnpl`jfwzmvnafqptqjwwfmfmbaofgwqjddfqplvq`fpolbgjmdfofnfmwsbqwmfqejmboozsfqef`wnfbmjmdpzpwfnphffsjmd`vowvqf%rvlw8/ilvqmbosqlif`wpvqeb`fp%rvlw8f{sjqfpqfujftpabobm`fFmdojpk@lmwfmwwkqlvdkSofbpf#lsjmjlm`lmwb`wbufqbdfsqjnbqzujoobdfPsbmjpkdboofqzgf`ojmfnffwjmdnjppjlmslsvobqrvbojwznfbpvqfdfmfqbopsf`jfppfppjlmpf`wjlmtqjwfqp`lvmwfqjmjwjboqfslqwpejdvqfpnfnafqpklogjmdgjpsvwffbqojfqf{sqfppgjdjwbosj`wvqfBmlwkfqnbqqjfgwqbeej`ofbgjmd`kbmdfg`fmwqbouj`wlqzjnbdfp,qfbplmppwvgjfpefbwvqfojpwjmdnvpw#afp`kllopUfqpjlmvpvboozfsjplgfsobzjmddqltjmdlaujlvplufqobzsqfpfmwb`wjlmp?,vo= tqbssfqboqfbgz`fqwbjmqfbojwzpwlqbdfbmlwkfqgfphwlsleefqfgsbwwfqmvmvpvboGjdjwbo`bsjwboTfapjwfebjovqf`lmmf`wqfgv`fgBmgqljggf`bgfpqfdvobq#%bns8#bmjnbopqfofbpfBvwlnbwdfwwjmdnfwklgpmlwkjmdSlsvobq`bswjlmofwwfqp`bswvqfp`jfm`foj`fmpf`kbmdfpFmdobmg>2%bns8Kjpwlqz#>#mft#@fmwqbovsgbwfgPsf`jboMfwtlqhqfrvjqf`lnnfmwtbqmjmd@loofdfwlloabqqfnbjmpaf`bvpffof`wfgGfvwp`kejmbm`ftlqhfqprvj`hozafwtffmf{b`wozpfwwjmdgjpfbpfPl`jfwztfbslmpf{kjajw%ow8"..@lmwqlo`obppfp`lufqfglvwojmfbwwb`hpgfuj`fp+tjmgltsvqslpfwjwof>!Nlajof#hjoojmdpkltjmdJwbojbmgqlssfgkfbujozfeef`wp.2$^*8 `lmejqn@vqqfmwbgubm`fpkbqjmdlsfmjmdgqbtjmdajoojlmlqgfqfgDfqnbmzqfobwfg?,elqn=jm`ovgftkfwkfqgfejmfgP`jfm`f`bwboldBqwj`ofavwwlmpobqdfpwvmjelqnilvqmfzpjgfabq@kj`bdlklojgbzDfmfqbosbppbdf/%rvlw8bmjnbwfeffojmdbqqjufgsbppjmdmbwvqboqlvdkoz- Wkf#avw#mlwgfmpjwzAqjwbjm@kjmfpfob`h#lewqjavwfJqfobmg!#gbwb.eb`wlqpqf`fjufwkbw#jpOjaqbqzkvpabmgjm#eb`wbeebjqp@kbqofpqbgj`boaqlvdkwejmgjmdobmgjmd9obmd>!qfwvqm#ofbgfqpsobmmfgsqfnjvnsb`hbdfBnfqj`bFgjwjlm^%rvlw8Nfppbdfmffg#wlubovf>!`lnsof{ollhjmdpwbwjlmafojfufpnboofq.nlajofqf`lqgptbmw#wlhjmg#leEjqfel{zlv#bqfpjnjobqpwvgjfgnb{jnvnkfbgjmdqbsjgoz`ojnbwfhjmdglnfnfqdfgbnlvmwpelvmgfgsjlmffqelqnvobgzmbpwzklt#wl#Pvsslqwqfufmvff`lmlnzQfpvowpaqlwkfqplogjfqobqdfoz`boojmd-%rvlw8B``lvmwFgtbqg#pfdnfmwQlafqw#feelqwpSb`jej`ofbqmfgvs#tjwkkfjdkw9tf#kbufBmdfofpmbwjlmp\\\\pfbq`kbssojfgb`rvjqfnbppjufdqbmwfg9#ebopfwqfbwfgajddfpwafmfejwgqjujmdPwvgjfpnjmjnvnsfqkbspnlqmjmdpfoojmdjp#vpfgqfufqpfubqjbmw#qlof>!njppjmdb`kjfufsqlnlwfpwvgfmwplnflmff{wqfnfqfpwlqfalwwln9fuloufgboo#wkfpjwfnbsfmdojpktbz#wl##Bvdvpwpznalop@lnsbmznbwwfqpnvpj`bobdbjmpwpfqujmd~*+*8 sbznfmwwqlvaof`lm`fsw`lnsbqfsbqfmwpsobzfqpqfdjlmpnlmjwlq#$$Wkf#tjmmjmdf{solqfbgbswfgDboofqzsqlgv`fbajojwzfmkbm`f`bqffqp*-#Wkf#`loof`wPfbq`k#bm`jfmwf{jpwfgellwfq#kbmgofqsqjmwfg`lmplofFbpwfqmf{slqwptjmgltp@kbmmfojoofdbomfvwqbopvddfpw\\\\kfbgfqpjdmjmd-kwno!=pfwwofgtfpwfqm`bvpjmd.tfahjw`objnfgIvpwj`f`kbswfquj`wjnpWklnbp#nlyjoobsqlnjpfsbqwjfpfgjwjlmlvwpjgf9ebopf/kvmgqfgLoznsj`\\\\avwwlmbvwklqpqfb`kfg`kqlmj`gfnbmgppf`lmgpsqlwf`wbglswfgsqfsbqfmfjwkfqdqfbwozdqfbwfqlufqboojnsqluf`lnnbmgpsf`jbopfbq`k-tlqpkjsevmgjmdwklvdkwkjdkfpwjmpwfbgvwjojwzrvbqwfq@vowvqfwfpwjmd`ofbqozf{slpfgAqltpfqojafqbo~#`bw`kSqlif`wf{bnsofkjgf+*8EolqjgbbmptfqpbooltfgFnsfqlqgfefmpfpfqjlvpeqffglnPfufqbo.avwwlmEvqwkfqlvw#le#">#mvoowqbjmfgGfmnbqhuljg+3*,boo-ipsqfufmwQfrvfpwPwfskfm Tkfm#lapfquf?,k1= Nlgfqm#sqlujgf!#bow>!alqgfqp- Elq# Nbmz#bqwjpwpsltfqfgsfqelqnej`wjlmwzsf#lenfgj`bowj`hfwplsslpfg@lvm`jotjwmfppivpwj`fDflqdf#Afodjvn---?,b=wtjwwfqmlwbaoztbjwjmdtbqebqf#Lwkfq#qbmhjmdskqbpfpnfmwjlmpvqujufp`klobq?,s= #@lvmwqzjdmlqfgolpp#leivpw#bpDflqdjbpwqbmdf?kfbg=?pwlssfg2$^*8 jpobmgpmlwbaofalqgfq9ojpw#le`bqqjfg233/333?,k0= #pfufqboaf`lnfppfof`w#tfggjmd33-kwnonlmbq`klee#wkfwfb`kfqkjdkoz#ajloldzojef#lelq#fufmqjpf#le%qbrvl8sovplmfkvmwjmd+wklvdkGlvdobpiljmjmd`jq`ofpElq#wkfBm`jfmwUjfwmbnufkj`ofpv`k#bp`qzpwboubovf#>Tjmgltpfmilzfgb#pnboobppvnfg?b#jg>!elqfjdm#Boo#qjklt#wkfGjpsobzqfwjqfgkltfufqkjggfm8abwwofppffhjmd`bajmfwtbp#mlwollh#bw`lmgv`wdfw#wkfIbmvbqzkbssfmpwvqmjmdb9klufqLmojmf#Eqfm`k#ob`hjmdwzsj`bof{wqb`wfmfnjfpfufm#jedfmfqbwgf`jgfgbqf#mlw,pfbq`kafojfep.jnbdf9ol`bwfgpwbwj`-oldjm!=`lmufqwujlofmwfmwfqfgejqpw!=`jq`vjwEjmobmg`kfnjpwpkf#tbp23s{8!=bp#pv`kgjujgfg?,psbm=tjoo#afojmf#leb#dqfbwnzpwfqz,jmgf{-eboojmdgvf#wl#qbjotbz`loofdfnlmpwfqgfp`fmwjw#tjwkmv`ofbqIftjpk#sqlwfpwAqjwjpkeoltfqpsqfgj`wqfelqnpavwwlm#tkl#tbpof`wvqfjmpwbmwpvj`jgfdfmfqj`sfqjlgpnbqhfwpPl`jbo#ejpkjmd`lnajmfdqbskj`tjmmfqp?aq#,=?az#wkf#MbwvqboSqjub`z`llhjfplvw`lnfqfploufPtfgjpkaqjfeozSfqpjbmpl#nv`k@fmwvqzgfsj`wp`lovnmpklvpjmdp`qjswpmf{w#wlafbqjmdnbssjmdqfujpfgiRvfqz+.tjgwk9wjwof!=wllowjsPf`wjlmgfpjdmpWvqhjpkzlvmdfq-nbw`k+~*+*8 avqmjmdlsfqbwfgfdqffpplvq`f>Qj`kbqg`olpfozsobpwj`fmwqjfp?,wq= `lolq9 vo#jg>!slppfppqloojmdskzpj`pebjojmdf{f`vwf`lmwfpwojmh#wlGfebvow?aq#,= 9#wqvf/`kbqwfqwlvqjpn`obppj`sql`ffgf{sobjm?,k2= lmojmf-<{no#ufkfosjmdgjbnlmgvpf#wkfbjqojmffmg#..=*-bwwq+qfbgfqpklpwjmd eeeeeeqfbojyfUjm`fmwpjdmbop#pq`>!,Sqlgv`wgfpsjwfgjufqpfwfoojmdSvaoj`#kfog#jmIlpfsk#wkfbwqfbeef`wp?pwzof=b#obqdfglfpm$wobwfq/#Fofnfmwebuj`lm`qfbwlqKvmdbqzBjqslqwpff#wkfpl#wkbwNj`kbfoPzpwfnpSqldqbnp/#bmg##tjgwk>f%rvlw8wqbgjmdofew!= sfqplmpDlogfm#Beebjqpdqbnnbqelqnjmdgfpwqlzjgfb#le`bpf#lelogfpw#wkjp#jp-pq`#>#`bqwllmqfdjpwq@lnnlmpNvpojnpTkbw#jpjm#nbmznbqhjmdqfufbopJmgffg/frvbooz,pklt\\\\blvwgllqfp`bsf+Bvpwqjbdfmfwj`pzpwfn/Jm#wkf#pjwwjmdKf#boplJpobmgpB`bgfnz \\n\\n?"..Gbmjfo#ajmgjmdaol`h!=jnslpfgvwjojyfBaqbkbn+f{`fswxtjgwk9svwwjmd*-kwno+\\x7F\\x7F#X^8 GBWBX#)hjw`kfmnlvmwfgb`wvbo#gjbof`wnbjmoz#\\\\aobmh$jmpwboof{sfqwpje+wzsfJw#bopl%`lsz8#!=Wfqnpalqm#jmLswjlmpfbpwfqmwbohjmd`lm`fqmdbjmfg#lmdljmdivpwjez`qjwj`peb`wlqzjwp#ltmbppbvowjmujwfgobpwjmdkjp#ltmkqfe>!,!#qfo>!gfufols`lm`fqwgjbdqbngloobqp`ovpwfqsks<jg>bo`lklo*8~*+*8vpjmd#b=?psbm=ufppfopqfujuboBggqfppbnbwfvqbmgqljgboofdfgjoomfpptbohjmd`fmwfqprvbojeznbw`kfpvmjejfgf{wjm`wGfefmpfgjfg#jm \\n?"..#`vpwlnpojmhjmdOjwwof#Allh#lefufmjmdnjm-ip<bqf#wkfhlmwbhwwlgbz$p-kwno!#wbqdfw>tfbqjmdBoo#Qjd8 ~*+*8qbjpjmd#Bopl/#`qv`jbobalvw!=gf`obqf..= ?p`ejqfel{bp#nv`kbssojfpjmgf{/#p/#avw#wzsf#>#  ?"..wltbqgpQf`lqgpSqjubwfElqfjdmSqfnjfq`klj`fpUjqwvboqfwvqmp@lnnfmwSltfqfgjmojmf8slufqwz`kbnafqOjujmd#ulovnfpBmwklmzoldjm!#QfobwfgF`lmlnzqfb`kfp`vwwjmddqbujwzojef#jm@kbswfq.pkbgltMlwbaof?,wg= #qfwvqmpwbgjvntjgdfwpubqzjmdwqbufopkfog#aztkl#bqftlqh#jmeb`vowzbmdvobqtkl#kbgbjqslqwwltm#le Plnf#$`oj`h$`kbqdfphfztlqgjw#tjoo`jwz#le+wkjp*8Bmgqft#vmjrvf#`kf`hfglq#nlqf033s{8#qfwvqm8qpjlm>!sovdjmptjwkjm#kfqpfoePwbwjlmEfgfqboufmwvqfsvaojpkpfmw#wlwfmpjlmb`wqfpp`lnf#wlejmdfqpGvhf#lesflsof/f{soljwtkbw#jpkbqnlmzb#nbilq!9!kwwsjm#kjp#nfmv!= nlmwkozleej`fq`lvm`jodbjmjmdfufm#jmPvnnbqzgbwf#leolzbowzejwmfppbmg#tbpfnsfqlqpvsqfnfPf`lmg#kfbqjmdQvppjbmolmdfpwBoafqwbobwfqbopfw#le#pnboo!=-bssfmggl#tjwkefgfqboabmh#leafmfbwkGfpsjwf@bsjwbodqlvmgp*/#bmg#sfq`fmwjw#eqln`olpjmd`lmwbjmJmpwfbgejewffmbp#tfoo-zbkll-qfpslmgejdkwfqlap`vqfqfeof`wlqdbmj`>#Nbwk-fgjwjmdlmojmf#sbggjmdb#tkloflmfqqlqzfbq#lefmg#le#abqqjfqtkfm#jwkfbgfq#klnf#leqfpvnfgqfmbnfgpwqlmd=kfbwjmdqfwbjmp`olvgeqtbz#le#Nbq`k#2hmltjmdjm#sbqwAfwtffmofpplmp`olpfpwujqwvboojmhp!=`qlppfgFMG#..=ebnlvp#btbqgfgOj`fmpfKfbowk#ebjqoz#tfbowkznjmjnboBeqj`bm`lnsfwfobafo!=pjmdjmdebqnfqpAqbpjo*gjp`vppqfsob`fDqfdlqzelmw#`lsvqpvfgbssfbqpnbhf#vsqlvmgfgalwk#leaol`hfgpbt#wkfleej`fp`lolvqpje+gl`vtkfm#kffmelq`fsvpk+evBvdvpw#VWE.;!=Ebmwbpzjm#nlpwjmivqfgVpvboozebqnjmd`olpvqflaif`w#gfefm`fvpf#le#Nfgj`bo?algz= fujgfmwaf#vpfghfz@lgfpj{wffmJpobnj` 333333fmwjqf#tjgfoz#b`wjuf#+wzsflelmf#`bm`lolq#>psfbhfqf{wfmgpSkzpj`pwfqqbjm?walgz=evmfqboujftjmdnjggof#`qj`hfwsqlskfwpkjewfggl`wlqpQvppfoo#wbqdfw`lnsb`wbodfaqbpl`jbo.avoh#lenbm#bmg?,wg= #kf#ofew*-ubo+*ebopf*8oldj`boabmhjmdklnf#wlmbnjmd#Bqjylmb`qfgjwp*8 ~*8 elvmgfqjm#wvqm@loojmpafelqf#Avw#wkf`kbqdfgWjwof!=@bswbjmpsfoofgdlggfppWbd#..=Bggjmd9avw#tbpQf`fmw#sbwjfmwab`h#jm>ebopf%Ojm`lomtf#hmlt@lvmwfqIvgbjpnp`qjsw#bowfqfg$^*8 ##kbp#wkfvm`ofbqFufmw$/alwk#jmmlw#boo ?"..#sob`jmdkbqg#wl#`fmwfqplqw#le`ojfmwppwqffwpAfqmbqgbppfqwpwfmg#wlebmwbpzgltm#jmkbqalvqEqffglniftfoqz,balvw--pfbq`kofdfmgpjp#nbgfnlgfqm#lmoz#lmlmoz#wljnbdf!#ojmfbq#sbjmwfqbmg#mlwqbqfoz#b`qlmzngfojufqpklqwfq33%bns8bp#nbmztjgwk>!,)#?"X@wjwof#>le#wkf#oltfpw#sj`hfg#fp`bsfgvpfp#lesflsofp#Svaoj`Nbwwkftwb`wj`pgbnbdfgtbz#elqobtp#lefbpz#wl#tjmgltpwqlmd##pjnsof~`bw`k+pfufmwkjmelal{tfmw#wlsbjmwfg`jwjyfmJ#glm$wqfwqfbw-#Plnf#tt-!*8 alnajmdnbjowl9nbgf#jm-#Nbmz#`bqqjfp\\x7F\\x7Fx~8tjtlqh#lepzmlmzngfefbwpebulqfglswj`bosbdfWqbvmofpp#pfmgjmdofew!=?`lnP`lqBoo#wkfiRvfqz-wlvqjpw@obppj`ebopf!#Tjokfonpvavqapdfmvjmfajpklsp-psojw+dolabo#elooltpalgz#lemlnjmbo@lmwb`wpf`vobqofew#wl`kjfeoz.kjggfm.abmmfq?,oj= -#Tkfm#jm#alwkgjpnjppF{solqfbotbzp#ujb#wkfpsb/]lotfoebqfqvojmd#bqqbmdf`bswbjmkjp#plmqvof#lekf#wllhjwpfoe/>3%bns8+`boofgpbnsofpwl#nbhf`ln,sbdNbqwjm#Hfmmfgzb``fswpevoo#lekbmgofgAfpjgfp,,..=?,baof#wlwbqdfwpfppfm`fkjn#wl#jwp#az#`lnnlm-njmfqbowl#wbhftbzp#wlp-lqd,obgujpfgsfmbowzpjnsof9je#wkfzOfwwfqpb#pklqwKfqafqwpwqjhfp#dqlvsp-ofmdwkeojdkwplufqobspoltoz#ofppfq#pl`jbo#?,s= \\n\\njw#jmwlqbmhfg#qbwf#levo= ##bwwfnswsbjq#lenbhf#jwHlmwbhwBmwlmjlkbujmd#qbwjmdp#b`wjufpwqfbnpwqbssfg!*-`pp+klpwjofofbg#wlojwwof#dqlvsp/Sj`wvqf..=  #qltp>!#laif`wjmufqpf?ellwfq@vpwlnU=?_,p`qploujmd@kbnafqpobufqztlvmgfgtkfqfbp">#$vmgelq#boosbqwoz#.qjdkw9Bqbajbmab`hfg#`fmwvqzvmjw#lenlajof.Fvqlsf/jp#klnfqjph#legfpjqfg@ojmwlm`lpw#lebdf#le#af`lnf#mlmf#les%rvlw8Njggof#fbg$*X3@qjwj`ppwvgjlp=%`lsz8dqlvs!=bppfnaonbhjmd#sqfppfgtjgdfw-sp9!#<#qfavjowaz#plnfElqnfq#fgjwlqpgfobzfg@bmlmj`kbg#wkfsvpkjmd`obpp>!avw#bqfsbqwjboAbazolmalwwln#`bqqjfq@lnnbmgjwp#vpfBp#tjwk`lvqpfpb#wkjqggfmlwfpbopl#jmKlvpwlm13s{8!=b``vpfgglvaof#dlbo#leEbnlvp#*-ajmg+sqjfpwp#Lmojmfjm#Ivozpw#(#!d`lmpvowgf`jnbokfosevoqfujufgjp#ufqzq$($jswolpjmd#efnbofpjp#boplpwqjmdpgbzp#lebqqjuboevwvqf#?laif`welq`jmdPwqjmd+!#,= \\n\\nkfqf#jpfm`lgfg-##Wkf#aboollmglmf#az,`lnnlmad`lolqobt#le#Jmgjbmbbuljgfgavw#wkf1s{#0s{irvfqz-bewfq#bsloj`z-nfm#bmgellwfq.>#wqvf8elq#vpfp`qffm-Jmgjbm#jnbdf#>ebnjoz/kwws9,,#%maps8gqjufqpfwfqmbopbnf#bpmlwj`fgujftfqp~*+*8 #jp#nlqfpfbplmpelqnfq#wkf#mftjp#ivpw`lmpfmw#Pfbq`ktbp#wkftkz#wkfpkjssfgaq=?aq=tjgwk9#kfjdkw>nbgf#le`vjpjmfjp#wkbwb#ufqz#Bgnjqbo#ej{fg8mlqnbo#NjppjlmSqfpp/#lmwbqjl`kbqpfwwqz#wl#jmubgfg>!wqvf!psb`jmdjp#nlpwb#nlqf#wlwboozeboo#le~*8 ##jnnfmpfwjnf#jmpfw#lvwpbwjpezwl#ejmggltm#wlolw#le#Sobzfqpjm#Ivmfrvbmwvnmlw#wkfwjnf#wlgjpwbmwEjmmjpkpq`#>#+pjmdof#kfos#leDfqnbm#obt#bmgobafofgelqfpwp`llhjmdpsb`f!=kfbgfq.tfoo#bpPwbmofzaqjgdfp,dolabo@qlbwjb#Balvw#X3^8 ##jw/#bmgdqlvsfgafjmd#b*xwkqltkf#nbgfojdkwfqfwkj`boEEEEEE!alwwln!ojhf#b#fnsolzpojuf#jmbp#pffmsqjmwfqnlpw#leva.ojmhqfif`wpbmg#vpfjnbdf!=pv``ffgeffgjmdMv`ofbqjmelqnbwl#kfosTlnfm$pMfjwkfqNf{j`bmsqlwfjm?wbaof#az#nbmzkfbowkzobtpvjwgfujpfg-svpk+xpfoofqppjnsoz#Wkqlvdk-`llhjf#Jnbdf+logfq!=vp-ip!=#Pjm`f#vmjufqpobqdfq#lsfm#wl"..#fmgojfp#jm$^*8 ##nbqhfwtkl#jp#+!GLN@lnbmbdfglmf#elqwzsfle#Hjmdglnsqlejwpsqlslpfwl#pklt`fmwfq8nbgf#jwgqfppfgtfqf#jmnj{wvqfsqf`jpfbqjpjmdpq`#>#$nbhf#b#pf`vqfgAbswjpwulwjmd# \\n\\nubq#Nbq`k#1dqft#vs@ojnbwf-qfnlufphjoofgtbz#wkf?,kfbg=eb`f#leb`wjmd#qjdkw!=wl#tlqhqfgv`fpkbp#kbgfqf`wfgpklt+*8b`wjlm>allh#lebm#bqfb>>#!kww?kfbgfq ?kwno=`lmelqneb`jmd#`llhjf-qfoz#lmklpwfg#-`vpwlnkf#tfmwavw#elqpsqfbg#Ebnjoz#b#nfbmplvw#wkfelqvnp-ellwbdf!=Nlajo@ofnfmwp!#jg>!bp#kjdkjmwfmpf..=?"..efnbof#jp#pffmjnsojfgpfw#wkfb#pwbwfbmg#kjpebpwfpwafpjgfpavwwlm\\\\alvmgfg!=?jnd#Jmelal{fufmwp/b#zlvmdbmg#bqfMbwjuf#`kfbsfqWjnflvwbmg#kbpfmdjmfptlm#wkf+nlpwozqjdkw9#ejmg#b#.alwwlnSqjm`f#bqfb#lenlqf#lepfbq`k\\\\mbwvqf/ofdboozsfqjlg/obmg#lelq#tjwkjmgv`fgsqlujmdnjppjofol`boozBdbjmpwwkf#tbzh%rvlw8s{8!= svpkfg#babmglmmvnfqbo@fqwbjmJm#wkjpnlqf#jmlq#plnfmbnf#jpbmg/#jm`qltmfgJPAM#3.`qfbwfpL`wlafqnbz#mlw`fmwfq#obwf#jmGfefm`ffmb`wfgtjpk#wlaqlbgoz`llojmdlmolbg>jw-#Wkfqf`lufqNfnafqpkfjdkw#bppvnfp?kwno= sflsof-jm#lmf#>tjmgltellwfq\\\\b#dllg#qfhobnblwkfqp/wl#wkjp\\\\`llhjfsbmfo!=Olmglm/gfejmfp`qvpkfgabswjpn`lbpwbopwbwvp#wjwof!#nluf#wlolpw#jmafwwfq#jnsojfpqjuboqzpfqufqp#PzpwfnSfqkbspfp#bmg#`lmwfmgeoltjmdobpwfg#qjpf#jmDfmfpjpujft#leqjpjmd#pffn#wlavw#jm#ab`hjmdkf#tjoodjufm#bdjujmd#`jwjfp-eolt#le#Obwfq#boo#avwKjdktbzlmoz#azpjdm#lekf#glfpgjeefqpabwwfqz%bns8obpjmdofpwkqfbwpjmwfdfqwbhf#lmqfevpfg`boofg#>VP%bnsPff#wkfmbwjufpaz#wkjppzpwfn-kfbg#le9klufq/ofpajbmpvqmbnfbmg#boo`lnnlm,kfbgfq\\\\\\\\sbqbnpKbqubqg,sj{fo-qfnlubopl#olmdqlof#leiljmwozphzp`qbVmj`lgfaq#,= Bwobmwbmv`ofvp@lvmwz/svqfoz#`lvmw!=fbpjoz#avjog#blm`oj`hb#djufmsljmwfqk%rvlw8fufmwp#fopf#x gjwjlmpmlt#wkf/#tjwk#nbm#tkllqd,Tfalmf#bmg`buboqzKf#gjfgpfbwwof33/333#xtjmgltkbuf#wlje+tjmgbmg#jwpplofoz#n%rvlw8qfmftfgGfwqljwbnlmdpwfjwkfq#wkfn#jmPfmbwlqVp?,b=?Hjmd#leEqbm`jp.sqlgv`kf#vpfgbqw#bmgkjn#bmgvpfg#azp`lqjmdbw#klnfwl#kbufqfobwfpjajojwzeb`wjlmAveebolojmh!=?tkbw#kfeqff#wl@jwz#le`lnf#jmpf`wlqp`lvmwfglmf#gbzmfqulvpprvbqf#~8je+dljm#tkbwjnd!#bojp#lmozpfbq`k,wvfpgbzollpfozPlolnlmpf{vbo#.#?b#kqnfgjvn!GL#MLW#Eqbm`f/tjwk#b#tbq#bmgpf`lmg#wbhf#b#=   nbqhfw-kjdktbzglmf#jm`wjujwz!obpw!=laojdfgqjpf#wl!vmgfejnbgf#wl#Fbqoz#sqbjpfgjm#jwp#elq#kjpbwkofwfIvsjwfqZbkll"#wfqnfg#pl#nbmzqfbooz#p-#Wkf#b#tlnbm<ubovf>gjqf`w#qjdkw!#aj`z`ofb`jmd>!gbz#bmgpwbwjmdQbwkfq/kjdkfq#Leej`f#bqf#mltwjnfp/#tkfm#b#sbz#elqlm#wkjp.ojmh!=8alqgfqbqlvmg#bmmvbo#wkf#Mftsvw#wkf-`ln!#wbhjm#wlb#aqjfe+jm#wkfdqlvsp-8#tjgwkfmyznfppjnsof#jm#obwfxqfwvqmwkfqbszb#sljmwabmmjmdjmhp!= +*8!#qfb#sob`f_v330@bbalvw#bwq= \\n\\n``lvmw#djufp#b?P@QJSWQbjotbzwkfnfp,wlloal{AzJg+!{kvnbmp/tbw`kfpjm#plnf#je#+tj`lnjmd#elqnbwp#Vmgfq#avw#kbpkbmgfg#nbgf#azwkbm#jmefbq#legfmlwfg,jeqbnfofew#jmulowbdfjm#fb`kb%rvlw8abpf#leJm#nbmzvmgfqdlqfdjnfpb`wjlm#?,s= ?vpwlnUb8%dw8?,jnslqwplq#wkbwnlpwoz#%bns8qf#pjyf>!?,b=?,kb#`obppsbppjufKlpw#>#TkfwkfqefqwjofUbqjlvp>X^8+ev`bnfqbp,=?,wg=b`wp#bpJm#plnf=  ?"lqdbmjp#?aq#,=Afjijmd`bwbo/Lgfvwp`kfvqlsfvfvphbqbdbfjodfpufmphbfpsb/]bnfmpbifvpvbqjlwqbabiln/E{j`ls/Mdjmbpjfnsqfpjpwfnbl`wvaqfgvqbmwfb/]bgjqfnsqfpbnlnfmwlmvfpwqlsqjnfqbwqbu/Epdqb`jbpmvfpwqbsql`fplfpwbglp`bojgbgsfqplmbm/Vnfqlb`vfqgln/Vpj`bnjfnaqllefqwbpbodvmlpsb/Apfpfifnsolgfqf`klbgfn/Mpsqjubglbdqfdbqfmob`fpslpjaofklwfofppfujoobsqjnfql/Vowjnlfufmwlpbq`kjul`vowvqbnvifqfpfmwqbgbbmvm`jlfnabqdlnfq`bgldqbmgfpfpwvgjlnfilqfpefaqfqlgjpf/]lwvqjpnl`/_gjdlslqwbgbfpsb`jlebnjojbbmwlmjlsfqnjwfdvbqgbqbodvmbpsqf`jlpbodvjfmpfmwjglujpjwbpw/Awvol`lml`fqpfdvmgl`lmpfileqbm`jbnjmvwlppfdvmgbwfmfnlpfef`wlpn/Mobdbpfpj/_mqfujpwbdqbmbgb`lnsqbqjmdqfpldbq`/Abb``j/_mf`vbglqrvjfmfpjm`ovplgfafq/Mnbwfqjbklnaqfpnvfpwqbslgq/Abnb/]bmb/Vowjnbfpwbnlplej`jbowbnajfmmjmd/Vmpbovglpslgfnlpnfilqbqslpjwjlmavpjmfppklnfsbdfpf`vqjwzobmdvbdfpwbmgbqg`bnsbjdmefbwvqfp`bwfdlqzf{wfqmbo`kjogqfmqfpfqufgqfpfbq`kf{`kbmdfebulqjwfwfnsobwfnjojwbqzjmgvpwqzpfquj`fpnbwfqjbosqlgv`wpy.jmgf{9`lnnfmwpplewtbqf`lnsofwf`bofmgbqsobwelqnbqwj`ofpqfrvjqfgnlufnfmwrvfpwjlmavjogjmdslojwj`pslppjaofqfojdjlmskzpj`boeffgab`hqfdjpwfqsj`wvqfpgjpbaofgsqlwl`lobvgjfm`fpfwwjmdpb`wjujwzfofnfmwpofbqmjmdbmzwkjmdbapwqb`wsqldqfpplufqujftnbdbyjmff`lmlnj`wqbjmjmdsqfppvqfubqjlvp#?pwqlmd=sqlsfqwzpklssjmdwldfwkfqbgubm`fgafkbujlqgltmolbgefbwvqfgellwaboopfof`wfgObmdvbdfgjpwbm`fqfnfnafqwqb`hjmdsbpptlqgnlgjejfgpwvgfmwpgjqf`wozejdkwjmdmlqwkfqmgbwbabpfefpwjuboaqfbhjmdol`bwjlmjmwfqmfwgqlsgltmsqb`wj`ffujgfm`fevm`wjlmnbqqjbdfqfpslmpfsqlaofnpmfdbwjufsqldqbnpbmbozpjpqfofbpfgabmmfq!=svq`kbpfsloj`jfpqfdjlmbo`qfbwjufbqdvnfmwallhnbqhqfefqqfq`kfnj`bogjujpjlm`booab`hpfsbqbwfsqlif`wp`lmeoj`wkbqgtbqfjmwfqfpwgfojufqznlvmwbjmlawbjmfg>#ebopf8elq+ubq#b``fswfg`bsb`jwz`lnsvwfqjgfmwjwzbjq`qbewfnsolzfgsqlslpfgglnfpwj`jm`ovgfpsqlujgfgklpsjwboufqwj`bo`loobspfbssqlb`ksbqwmfqpoldl!=?bgbvdkwfqbvwklq!#`vowvqboebnjojfp,jnbdfp,bppfnaozsltfqevowfb`kjmdejmjpkfggjpwqj`w`qjwj`bo`dj.ajm,svqslpfpqfrvjqfpfof`wjlmaf`lnjmdsqlujgfpb`bgfnj`f{fq`jpfb`wvbooznfgj`jmf`lmpwbmwb``jgfmwNbdbyjmfgl`vnfmwpwbqwjmdalwwln!=lapfqufg9#%rvlw8f{wfmgfgsqfujlvpPlewtbqf`vpwlnfqgf`jpjlmpwqfmdwkgfwbjofgpojdkwozsobmmjmdwf{wbqfb`vqqfm`zfufqzlmfpwqbjdkwwqbmpefqslpjwjufsqlgv`fgkfqjwbdfpkjssjmdbaplovwfqf`fjufgqfofubmwavwwlm!#ujlofm`fbmztkfqfafmfejwpobvm`kfgqf`fmwozboojbm`felooltfgnvowjsofavoofwjmjm`ovgfgl``vqqfgjmwfqmbo\\\'+wkjp*-qfsvaoj`=?wq=?wg`lmdqfppqf`lqgfgvowjnbwfplovwjlm?vo#jg>!gjp`lufqKlnf?,b=tfapjwfpmfwtlqhpbowklvdkfmwjqfoznfnlqjbonfppbdfp`lmwjmvfb`wjuf!=plnftkbwuj`wlqjbTfpwfqm##wjwof>!Ol`bwjlm`lmwqb`wujpjwlqpGltmolbgtjwklvw#qjdkw!= nfbpvqfptjgwk#>#ubqjbaofjmuloufgujqdjmjbmlqnboozkbssfmfgb``lvmwppwbmgjmdmbwjlmboQfdjpwfqsqfsbqfg`lmwqlopb``vqbwfajqwkgbzpwqbwfdzleej`jbodqbskj`p`qjnjmboslppjaoz`lmpvnfqSfqplmbopsfbhjmdubojgbwfb`kjfufg-isd!#,=nb`kjmfp?,k1= ##hfztlqgpeqjfmgozaqlwkfqp`lnajmfglqjdjmbo`lnslpfgf{sf`wfgbgfrvbwfsbhjpwbmeloolt!#ubovbaof?,obafo=qfobwjufaqjmdjmdjm`qfbpfdlufqmlqsovdjmp,Ojpw#le#Kfbgfq!=!#mbnf>!#+%rvlw8dqbgvbwf?,kfbg= `lnnfq`fnbobzpjbgjqf`wlqnbjmwbjm8kfjdkw9p`kfgvof`kbmdjmdab`h#wl#`bwkloj`sbwwfqmp`lolq9# dqfbwfpwpvssojfpqfojbaof?,vo= \\n\\n?pfof`w#`jwjyfmp`olwkjmdtbw`kjmd?oj#jg>!psf`jej``bqqzjmdpfmwfm`f?`fmwfq=`lmwqbpwwkjmhjmd`bw`k+f*plvwkfqmNj`kbfo#nfq`kbmw`bqlvpfosbggjmd9jmwfqjlq-psojw+!ojybwjlmL`wlafq#*xqfwvqmjnsqlufg..%dw8 `lufqbdf`kbjqnbm-smd!#,=pvaif`wpQj`kbqg#tkbwfufqsqlabaozqf`lufqzabpfabooivgdnfmw`lmmf`w--`pp!#,=#tfapjwfqfslqwfggfebvow!,=?,b= fof`wqj`p`lwobmg`qfbwjlmrvbmwjwz-#JPAM#3gjg#mlw#jmpwbm`f.pfbq`k.!#obmd>!psfbhfqp@lnsvwfq`lmwbjmpbq`kjufpnjmjpwfqqfb`wjlmgjp`lvmwJwbojbml`qjwfqjbpwqlmdoz9#$kwws9$p`qjsw$`lufqjmdleefqjmdbssfbqfgAqjwjpk#jgfmwjezEb`fallhmvnfqlvpufkj`ofp`lm`fqmpBnfqj`bmkbmgojmdgju#jg>!Tjoojbn#sqlujgfq\\\\`lmwfmwb``vqb`zpf`wjlm#bmgfqplmeof{jaof@bwfdlqzobtqfm`f?p`qjsw=obzlvw>!bssqlufg#nb{jnvnkfbgfq!=?,wbaof=Pfquj`fpkbnjowlm`vqqfmw#`bmbgjbm`kbmmfop,wkfnfp,,bqwj`oflswjlmboslqwvdboubovf>!!jmwfqubotjqfofppfmwjwofgbdfm`jfpPfbq`k!#nfbpvqfgwklvpbmgpsfmgjmd%kfoojs8mft#Gbwf!#pjyf>!sbdfMbnfnjggof!#!#,=?,b=kjggfm!=pfrvfm`fsfqplmbolufqeoltlsjmjlmpjoojmljpojmhp!= \\n?wjwof=ufqpjlmppbwvqgbzwfqnjmbojwfnsqlsfmdjmffqpf`wjlmpgfpjdmfqsqlslpbo>!ebopf!Fpsb/]loqfofbpfppvanjw!#fq%rvlw8bggjwjlmpznswlnplqjfmwfgqfplvq`fqjdkw!=?sofbpvqfpwbwjlmpkjpwlqz-ofbujmd##alqgfq>`lmwfmwp`fmwfq!=- Plnf#gjqf`wfgpvjwbaofavodbqjb-pklt+*8gfpjdmfgDfmfqbo#`lm`fswpF{bnsofptjoojbnpLqjdjmbo!=?psbm=pfbq`k!=lsfqbwlqqfrvfpwpb#%rvlw8booltjmdGl`vnfmwqfujpjlm-# Wkf#zlvqpfoe@lmwb`w#nj`kjdbmFmdojpk#`lovnajbsqjlqjwzsqjmwjmdgqjmhjmdeb`jojwzqfwvqmfg@lmwfmw#leej`fqpQvppjbm#dfmfqbwf.;;6:.2!jmgj`bwfebnjojbq#rvbojwznbqdjm93#`lmwfmwujftslqw`lmwb`wp.wjwof!=slqwbaof-ofmdwk#fojdjaofjmuloufpbwobmwj`lmolbg>!gfebvow-pvssojfgsbznfmwpdolppbqz Bewfq#dvjgbm`f?,wg=?wgfm`lgjmdnjggof!=`bnf#wl#gjpsobzpp`lwwjpkilmbwkbmnbilqjwztjgdfwp-`ojmj`bowkbjobmgwfb`kfqp?kfbg= \\nbeef`wfgpvsslqwpsljmwfq8wlPwqjmd?,pnboo=lhobklnbtjoo#af#jmufpwlq3!#bow>!klojgbzpQfplvq`foj`fmpfg#+tkj`k#-#Bewfq#`lmpjgfqujpjwjmdf{solqfqsqjnbqz#pfbq`k!#bmgqljg!rvj`hoz#nffwjmdpfpwjnbwf8qfwvqm#8`lolq9 #kfjdkw>bssqlubo/#%rvlw8#`kf`hfg-njm-ip!nbdmfwj`=?,b=?,kelqf`bpw-#Tkjof#wkvqpgbzgufqwjpf%fb`vwf8kbp@obppfubovbwflqgfqjmdf{jpwjmdsbwjfmwp#Lmojmf#`lolqbglLswjlmp!`bnsafoo?"..#fmg?,psbm=??aq#,= \\\\slsvsp\\x7Fp`jfm`fp/%rvlw8#rvbojwz#Tjmgltp#bppjdmfgkfjdkw9#?a#`obppof%rvlw8#ubovf>!#@lnsbmzf{bnsofp?jeqbnf#afojfufpsqfpfmwpnbqpkboosbqw#le#sqlsfqoz*- Wkf#wb{lmlnznv`k#le#?,psbm= !#gbwb.pqwvdv/Fpp`qlooWl#sqlif`w?kfbg= bwwlqmfzfnskbpjppslmplqpebm`zal{tlqog$p#tjogojef`kf`hfg>pfppjlmpsqldqbnns{8elmw.#Sqlif`wilvqmbopafojfufgub`bwjlmwklnsplmojdkwjmdbmg#wkf#psf`jbo#alqgfq>3`kf`hjmd?,walgz=?avwwlm#@lnsofwf`ofbqej{ ?kfbg= bqwj`of#?pf`wjlmejmgjmdpqlof#jm#slsvobq##L`wlafqtfapjwf#f{slpvqfvpfg#wl##`kbmdfplsfqbwfg`oj`hjmdfmwfqjmd`lnnbmgpjmelqnfg#mvnafqp##?,gju=`qfbwjmdlmPvanjwnbqzobmg`loofdfpbmbozwj`ojpwjmdp`lmwb`w-olddfgJmbgujplqzpjaojmdp`lmwfmw!p%rvlw8*p-#Wkjp#sb`hbdfp`kf`hal{pvddfpwpsqfdmbmwwlnlqqltpsb`jmd>j`lm-smdibsbmfpf`lgfabpfavwwlm!=dbnaojmdpv`k#bp#/#tkjof#?,psbm=#njpplvqjpslqwjmdwls92s{#-?,psbm=wfmpjlmptjgwk>!1obyzolbgmlufnafqvpfg#jm#kfjdkw>!`qjsw!= %maps8?,?wq=?wg#kfjdkw91,sqlgv`w`lvmwqz#jm`ovgf#ellwfq!#%ow8"..#wjwof!=?,irvfqz-?,elqn= +\\vBl\\bQ\\x7F*+\\vUmGx*kqubwphjjwbojbmlqln/Nm(ow/Pqh/Kf4K4]4C5dwbnaj/Emmlwj`jbpnfmpbifpsfqplmbpgfqf`klpmb`jlmbopfquj`jl`lmwb`wlvpvbqjlpsqldqbnbdlajfqmlfnsqfpbpbmvm`jlpubofm`jb`lolnajbgfpsv/Epgfslqwfpsqlzf`wlsqlgv`wls/Vaoj`lmlplwqlpkjpwlqjbsqfpfmwfnjoolmfpnfgjbmwfsqfdvmwbbmwfqjlqqf`vqplpsqlaofnbpbmwjbdlmvfpwqlplsjmj/_mjnsqjnjqnjfmwqbpbn/Eqj`bufmgfglqpl`jfgbgqfpsf`wlqfbojybqqfdjpwqlsbobaqbpjmwfq/Epfmwlm`fpfpsf`jbonjfnaqlpqfbojgbg`/_qglabybqbdlybs/Mdjmbppl`jbofpaolrvfbqdfpwj/_mborvjofqpjpwfnbp`jfm`jbp`lnsofwlufqpj/_m`lnsofwbfpwvgjlps/Vaoj`blaifwjulboj`bmwfavp`bglq`bmwjgbgfmwqbgbpb``jlmfpbq`kjulppvsfqjlqnbzlq/Abbofnbmjbevm`j/_m/Vowjnlpkb`jfmglbrvfoolpfgj`j/_mefqmbmglbnajfmwfeb`fallhmvfpwqbp`ojfmwfpsql`fplpabpwbmwfsqfpfmwbqfslqwbq`lmdqfplsvaoj`bq`lnfq`jl`lmwqbwli/_ufmfpgjpwqjwlw/E`mj`b`lmivmwlfmfqd/Abwqbabibqbpwvqjbpqf`jfmwfvwjojybqalofw/Ampboubglq`lqqf`wbwqbabilpsqjnfqlpmfdl`jlpojafqwbggfwboofpsbmwboobsq/_{jnlbonfq/Abbmjnbofprvj/Emfp`lqby/_mpf``j/_mavp`bmglls`jlmfpf{wfqjlq`lm`fswlwlgbu/Abdbofq/Abfp`qjajqnfgj`jmboj`fm`jb`lmpvowbbpsf`wlp`q/Awj`bg/_obqfpivpwj`jbgfafq/Mmsfq/Alglmf`fpjwbnbmwfmfqsfrvf/]lqf`jajgbwqjavmbowfmfqjef`bm`j/_m`bmbqjbpgfp`bqdbgjufqplpnboolq`bqfrvjfqfw/E`mj`lgfafq/Abujujfmgbejmbmybpbgfobmwfevm`jlmb`lmpfilpgje/A`jo`jvgbgfpbmwjdvbpbubmybgbw/Eqnjmlvmjgbgfpp/Mm`kfy`bnsb/]bplewlmj`qfujpwbp`lmwjfmfpf`wlqfpnlnfmwlpeb`vowbg`q/Egjwlgjufqpbppvsvfpwleb`wlqfppfdvmglpsfrvf/]b<_<R<X<\\\\<Y=m<W<T<Y=m=n=`<]=g<W<R<]=g=n=`=a=n<R<P<y=m<W<T=n<R<_<R<P<Y<Q=c<^=m<Y=i=a=n<R<U<X<\\\\<Z<Y<]=g<W<T<_<R<X=o<X<Y<Q=`=a=n<R=n<]=g<W<\\\\=m<Y<]=c<R<X<T<Q=m<Y<]<Y<Q<\\\\<X<R=m<\\\\<U=n=h<R=n<R<Q<Y<_<R=m<^<R<T=m<^<R<U<T<_=l=g=n<R<Z<Y<^=m<Y<P=m<^<R=b<W<T=d=`=a=n<T=i<S<R<V<\\\\<X<Q<Y<U<X<R<P<\\\\<P<T=l<\\\\<W<T<]<R=n<Y<P=o=i<R=n=c<X<^=o=i=m<Y=n<T<W=b<X<T<X<Y<W<R<P<T=l<Y=n<Y<]=c=m<^<R<Y<^<T<X<Y=k<Y<_<R=a=n<T<P=m=k<Y=n=n<Y<P=g=j<Y<Q=g=m=n<\\\\<W<^<Y<X=`=n<Y<P<Y<^<R<X=g=n<Y<]<Y<^=g=d<Y<Q<\\\\<P<T=n<T<S<\\\\=n<R<P=o<S=l<\\\\<^<W<T=j<\\\\<R<X<Q<\\\\<_<R<X=g<[<Q<\\\\=b<P<R<_=o<X=l=o<_<^=m<Y<U<T<X<Y=n<V<T<Q<R<R<X<Q<R<X<Y<W<\\\\<X<Y<W<Y=m=l<R<V<T=b<Q=c<^<Y=m=`<y=m=n=`=l<\\\\<[<\\\\<Q<\\\\=d<T4K5h5h5k4K5h4F5f4@5i5f4U4B4K4Y4E4K5h4\\\\5f4U5h5f5k4@4C5f4C4K5h4N5j4K5h4]4C4F4A5o5i4Y5m4A4E5o4K5j4F4K5h5h5f5f5o5d5j4X4D5o4E5m5f5k4K4D5j4K4F4A5d4K4M4O5o4G4]4B5h4K5h4K5h4A4D4C5h5f5h4C4]5d4_4K4Z4V4[4F5o5d5j5k5j4K5o4_4K4A4E5j4K4C5f4K5h4[4D4U5h5f5o4X5o4]4K5f5i5o5j5i5j5k4K4X4]5o4E4]4J5f4_5j4X5f4[5i4K4\\\\4K4K5h5m5j4X4D4K4D4F4U4D4]4]4A5i4E5o4K5m4E5f5n5d5h5i4]5o4^5o5h5i4E4O4A5i4C5n5h4D5f5f4U5j5f4Y5d4]4E4[4]5f5n4X4K4]5o4@5d4K5h4O4B4]5e5i4U5j4K4K4D4A4G4U4]5d4Z4D4X5o5h5i4_4@5h4D5j4K5j4B4K5h4C5o4F4K4D5o5h5f4E4D4C5d5j4O5f4Z4K5f5d4@4C5m4]5f5n5o4F4D4F4O5m4Z5h5i4[4D4B4K5o4G4]4D4K4]5o4K5m4Z5h4K4A5h5e5j5m4_5k4O5f4K5i4]4C5d4C4O5j5k4K4C5f5j4K4K5h4K5j5i4U4]4Z4F4U5h5i4C4K4B5h5i5i5o5j\\x07\\x07\\x07\\x07\\0\\x07\\x07\\0\\v\\n \\b\\r\\f\\f\\r\\b \\n\\v\\x1B\\x1B\\0\\v\\v\\v\\v\\0\\x07qfplvq`fp`lvmwqjfprvfpwjlmpfrvjsnfmw`lnnvmjwzbubjobaofkjdkojdkwGWG,{kwnonbqhfwjmdhmltofgdfplnfwkjmd`lmwbjmfqgjqf`wjlmpvap`qjafbgufqwjpf`kbqb`wfq!#ubovf>!?,pfof`w=Bvpwqbojb!#`obpp>!pjwvbwjlmbvwklqjwzelooltjmdsqjnbqjozlsfqbwjlm`kboofmdfgfufolsfgbmlmznlvpevm`wjlm#evm`wjlmp`lnsbmjfppwqv`wvqfbdqffnfmw!#wjwof>!slwfmwjbofgv`bwjlmbqdvnfmwppf`lmgbqz`lszqjdkwobmdvbdfpf{`ovpjuf`lmgjwjlm?,elqn= pwbwfnfmwbwwfmwjlmAjldqbskz~#fopf#x plovwjlmptkfm#wkf#Bmbozwj`pwfnsobwfpgbmdfqlvppbwfoojwfgl`vnfmwpsvaojpkfqjnslqwbmwsqlwlwzsfjmeovfm`f%qbrvl8?,feef`wjufdfmfqboozwqbmpelqnafbvwjevowqbmpslqwlqdbmjyfgsvaojpkfgsqlnjmfmwvmwjo#wkfwkvnambjoMbwjlmbo#-el`vp+*8lufq#wkf#njdqbwjlmbmmlvm`fgellwfq!= f{`fswjlmofpp#wkbmf{sfmpjufelqnbwjlmeqbnftlqhwfqqjwlqzmgj`bwjlm`vqqfmwoz`obppMbnf`qjwj`jpnwqbgjwjlmfopftkfqfBof{bmgfqbssljmwfgnbwfqjbopaqlbg`bpwnfmwjlmfgbeejojbwf?,lswjlm=wqfbwnfmwgjeefqfmw,gfebvow-Sqfpjgfmwlm`oj`h>!ajldqbskzlwkfqtjpfsfqnbmfmwEqbm/KbjpKlooztllgf{sbmpjlmpwbmgbqgp?,pwzof= qfgv`wjlmGf`fnafq#sqfefqqfg@bnaqjgdflsslmfmwpAvpjmfpp#`lmevpjlm= ?wjwof=sqfpfmwfgf{sobjmfgglfp#mlw#tlqogtjgfjmwfqeb`fslpjwjlmpmftpsbsfq?,wbaof= nlvmwbjmpojhf#wkf#fppfmwjboejmbm`jbopfof`wjlmb`wjlm>!,babmglmfgFgv`bwjlmsbqpfJmw+pwbajojwzvmbaof#wl?,wjwof= qfobwjlmpMlwf#wkbwfeej`jfmwsfqelqnfgwtl#zfbqpPjm`f#wkfwkfqfelqftqbssfq!=bowfqmbwfjm`qfbpfgAbwwof#lesfq`fjufgwqzjmd#wlmf`fppbqzslqwqbzfgfof`wjlmpFojybafwk?,jeqbnf=gjp`lufqzjmpvqbm`fp-ofmdwk8ofdfmgbqzDfldqbskz`bmgjgbwf`lqslqbwfplnfwjnfppfquj`fp-jmkfqjwfg?,pwqlmd=@lnnvmjwzqfojdjlvpol`bwjlmp@lnnjwwffavjogjmdpwkf#tlqogml#olmdfqafdjmmjmdqfefqfm`f`bmmlw#afeqfrvfm`zwzsj`boozjmwl#wkf#qfobwjuf8qf`lqgjmdsqfpjgfmwjmjwjboozwf`kmjrvfwkf#lwkfqjw#`bm#aff{jpwfm`fvmgfqojmfwkjp#wjnfwfofsklmfjwfnp`lsfsqb`wj`fpbgubmwbdf*8qfwvqm#Elq#lwkfqsqlujgjmdgfnl`qb`zalwk#wkf#f{wfmpjufpveefqjmdpvsslqwfg`lnsvwfqp#evm`wjlmsqb`wj`bopbjg#wkbwjw#nbz#afFmdojpk?,eqln#wkf#p`kfgvofggltmolbgp?,obafo= pvpsf`wfgnbqdjm9#3psjqjwvbo?,kfbg= nj`qlplewdqbgvboozgjp`vppfgkf#af`bnff{f`vwjufirvfqz-ipklvpfklog`lmejqnfgsvq`kbpfgojwfqboozgfpwqlzfgvs#wl#wkfubqjbwjlmqfnbjmjmdjw#jp#mlw`fmwvqjfpIbsbmfpf#bnlmd#wkf`lnsofwfgbodlqjwknjmwfqfpwpqfafoojlmvmgfejmfgfm`lvqbdfqfpjybaofjmuloujmdpfmpjwjufvmjufqpbosqlujpjlm+bowklvdkefbwvqjmd`lmgv`wfg*/#tkj`k#`lmwjmvfg.kfbgfq!=Efaqvbqz#mvnfqlvp#lufqeolt9`lnslmfmweqbdnfmwpf{`foofmw`lopsbm>!wf`kmj`bomfbq#wkf#Bgubm`fg#plvq`f#lef{sqfppfgKlmd#Hlmd#Eb`fallhnvowjsof#nf`kbmjpnfofubwjlmleefmpjuf?,elqn= \\npslmplqfggl`vnfmw-lq#%rvlw8wkfqf#bqfwklpf#tklnlufnfmwpsql`fppfpgjeej`vowpvanjwwfgqf`lnnfmg`lmujm`fgsqlnlwjmd!#tjgwk>!-qfsob`f+`obppj`bo`lbojwjlmkjp#ejqpwgf`jpjlmpbppjpwbmwjmgj`bwfgfulovwjlm.tqbssfq!fmlvdk#wlbolmd#wkfgfojufqfg..= ?"..Bnfqj`bm#sqlwf`wfgMlufnafq#?,pwzof=?evqmjwvqfJmwfqmfw##lmaovq>!pvpsfmgfgqf`jsjfmwabpfg#lm#Nlqflufq/balojpkfg`loof`wfgtfqf#nbgffnlwjlmbofnfqdfm`zmbqqbwjufbgul`bwfps{8alqgfq`lnnjwwfggjq>!owq!fnsolzffpqfpfbq`k-#pfof`wfgpv``fpplq`vpwlnfqpgjpsobzfgPfswfnafqbgg@obpp+Eb`fallh#pvddfpwfgbmg#obwfqlsfqbwjmdfobalqbwfPlnfwjnfpJmpwjwvwf`fqwbjmozjmpwboofgelooltfqpIfqvpbofnwkfz#kbuf`lnsvwjmddfmfqbwfgsqlujm`fpdvbqbmwffbqajwqbqzqf`ldmjyftbmwfg#wls{8tjgwk9wkflqz#leafkbujlvqTkjof#wkffpwjnbwfgafdbm#wl#jw#af`bnfnbdmjwvgfnvpw#kbufnlqf#wkbmGjqf`wlqzf{wfmpjlmpf`qfwbqzmbwvqboozl``vqqjmdubqjbaofpdjufm#wkfsobwelqn-?,obafo=?ebjofg#wl`lnslvmgphjmgp#le#pl`jfwjfpbolmdpjgf#..%dw8 plvwktfpwwkf#qjdkwqbgjbwjlmnbz#kbuf#vmfp`bsf+pslhfm#jm!#kqfe>!,sqldqbnnflmoz#wkf#`lnf#eqlngjqf`wlqzavqjfg#jmb#pjnjobqwkfz#tfqf?,elmw=?,Mlqtfdjbmpsf`jejfgsqlgv`jmdsbppfmdfq+mft#Gbwfwfnslqbqzej`wjlmboBewfq#wkffrvbwjlmpgltmolbg-qfdvobqozgfufolsfqbaluf#wkfojmhfg#wlskfmlnfmbsfqjlg#lewllowjs!=pvapwbm`fbvwlnbwj`bpsf`w#leBnlmd#wkf`lmmf`wfgfpwjnbwfpBjq#Elq`fpzpwfn#lelaif`wjufjnnfgjbwfnbhjmd#jwsbjmwjmdp`lmrvfqfgbqf#pwjoosql`fgvqfdqltwk#lekfbgfg#azFvqlsfbm#gjujpjlmpnlof`vofpeqbm`kjpfjmwfmwjlmbwwqb`wfg`kjogkllgbopl#vpfggfgj`bwfgpjmdbslqfgfdqff#leebwkfq#le`lmeoj`wp?,b=?,s= `bnf#eqlntfqf#vpfgmlwf#wkbwqf`fjujmdF{f`vwjuffufm#nlqfb``fpp#wl`lnnbmgfqSlojwj`bonvpj`jbmpgfoj`jlvpsqjplmfqpbgufmw#leVWE.;!#,=?"X@GBWBX!=@lmwb`wPlvwkfqm#ad`lolq>!pfqjfp#le-#Jw#tbp#jm#Fvqlsfsfqnjwwfgubojgbwf-bssfbqjmdleej`jboppfqjlvpoz.obmdvbdfjmjwjbwfgf{wfmgjmdolmd.wfqnjmeobwjlmpv`k#wkbwdfw@llhjfnbqhfg#az?,avwwlm=jnsofnfmwavw#jw#jpjm`qfbpfpgltm#wkf#qfrvjqjmdgfsfmgfmw..= ?"..#jmwfqujftTjwk#wkf#`lsjfp#le`lmpfmpvptbp#avjowUfmfyvfob+elqnfqozwkf#pwbwfsfqplmmfopwqbwfdj`ebulvq#lejmufmwjlmTjhjsfgjb`lmwjmfmwujqwvbooztkj`k#tbpsqjm`jsof@lnsofwf#jgfmwj`bopklt#wkbwsqjnjwjufbtbz#eqlnnlof`vobqsqf`jpfozgjpploufgVmgfq#wkfufqpjlm>!=%maps8?,Jw#jp#wkf#Wkjp#jp#tjoo#kbuflqdbmjpnpplnf#wjnfEqjfgqj`ktbp#ejqpwwkf#lmoz#eb`w#wkbwelqn#jg>!sqf`fgjmdWf`kmj`boskzpj`jpwl``vqp#jmmbujdbwlqpf`wjlm!=psbm#jg>!plvdkw#wlafolt#wkfpvqujujmd~?,pwzof=kjp#gfbwkbp#jm#wkf`bvpfg#azsbqwjboozf{jpwjmd#vpjmd#wkftbp#djufmb#ojpw#leofufop#lemlwjlm#leLeej`jbo#gjpnjppfgp`jfmwjpwqfpfnaofpgvsoj`bwff{solpjufqf`lufqfgboo#lwkfqdboofqjfpxsbggjmd9sflsof#leqfdjlm#lebggqfppfpbppl`jbwfjnd#bow>!jm#nlgfqmpklvog#afnfwklg#leqfslqwjmdwjnfpwbnsmffgfg#wlwkf#Dqfbwqfdbqgjmdpffnfg#wlujftfg#bpjnsb`w#lmjgfb#wkbwwkf#Tlqogkfjdkw#lef{sbmgjmdWkfpf#bqf`vqqfmw!=`bqfevooznbjmwbjmp`kbqdf#le@obppj`bobggqfppfgsqfgj`wfgltmfqpkjs?gju#jg>!qjdkw!= qfpjgfm`fofbuf#wkf`lmwfmw!=bqf#lewfm##~*+*8 sqlabaoz#Sqlefpplq.avwwlm!#qfpslmgfgpbzp#wkbwkbg#wl#afsob`fg#jmKvmdbqjbmpwbwvp#lepfqufp#bpVmjufqpbof{f`vwjlmbddqfdbwfelq#tkj`kjmef`wjlmbdqffg#wlkltfufq/#slsvobq!=sob`fg#lm`lmpwqv`wfof`wlqbopznalo#lejm`ovgjmdqfwvqm#wlbq`kjwf`w@kqjpwjbmsqfujlvp#ojujmd#jmfbpjfq#wlsqlefpplq %ow8"..#feef`w#lebmbozwj`ptbp#wbhfmtkfqf#wkfwllh#lufqafojfe#jmBeqjhbbmpbp#ebq#bpsqfufmwfgtlqh#tjwkb#psf`jbo?ejfogpfw@kqjpwnbpQfwqjfufg Jm#wkf#ab`h#jmwlmlqwkfbpwnbdbyjmfp=?pwqlmd=`lnnjwwffdlufqmjmddqlvsp#lepwlqfg#jmfpwbaojpkb#dfmfqbojwp#ejqpwwkfjq#ltmslsvobwfgbm#laif`w@bqjaafbmboolt#wkfgjpwqj`wptjp`lmpjmol`bwjlm-8#tjgwk9#jmkbajwfgPl`jbojpwIbmvbqz#2?,ellwfq=pjnjobqoz`klj`f#lewkf#pbnf#psf`jej`#avpjmfpp#Wkf#ejqpw-ofmdwk8#gfpjqf#wlgfbo#tjwkpjm`f#wkfvpfqBdfmw`lm`fjufgjmgf{-sksbp#%rvlw8fmdbdf#jmqf`fmwoz/eft#zfbqptfqf#bopl ?kfbg= ?fgjwfg#azbqf#hmltm`jwjfp#jmb``fpphfz`lmgfnmfgbopl#kbufpfquj`fp/ebnjoz#leP`kllo#le`lmufqwfgmbwvqf#le#obmdvbdfnjmjpwfqp?,laif`w=wkfqf#jp#b#slsvobqpfrvfm`fpbgul`bwfgWkfz#tfqfbmz#lwkfqol`bwjlm>fmwfq#wkfnv`k#nlqfqfeof`wfgtbp#mbnfglqjdjmbo#b#wzsj`botkfm#wkfzfmdjmffqp`lvog#mlwqfpjgfmwptfgmfpgbzwkf#wkjqg#sqlgv`wpIbmvbqz#1tkbw#wkfzb#`fqwbjmqfb`wjlmpsql`fpplqbewfq#kjpwkf#obpw#`lmwbjmfg!=?,gju= ?,b=?,wg=gfsfmg#lmpfbq`k!= sjf`fp#le`lnsfwjmdQfefqfm`fwfmmfppfftkj`k#kbp#ufqpjlm>?,psbm=#??,kfbgfq=djufp#wkfkjpwlqjbmubovf>!!=sbggjmd93ujft#wkbwwldfwkfq/wkf#nlpw#tbp#elvmgpvapfw#lebwwb`h#lm`kjogqfm/sljmwp#lesfqplmbo#slpjwjlm9boofdfgoz@ofufobmgtbp#obwfqbmg#bewfqbqf#djufmtbp#pwjoop`qloojmdgfpjdm#lenbhfp#wkfnv`k#ofppBnfqj`bmp- Bewfq#/#avw#wkfNvpfvn#leolvjpjbmb+eqln#wkfnjmmfplwbsbqwj`ofpb#sql`fppGlnjmj`bmulovnf#leqfwvqmjmdgfefmpjuf33s{\\x7Fqjdknbgf#eqlnnlvpflufq!#pwzof>!pwbwfp#le+tkj`k#jp`lmwjmvfpEqbm`jp`lavjogjmd#tjwklvw#btjwk#plnftkl#tlvogb#elqn#leb#sbqw#leafelqf#jwhmltm#bp##Pfquj`fpol`bwjlm#bmg#lewfmnfbpvqjmdbmg#jw#jpsbsfqab`hubovfp#le ?wjwof=>#tjmglt-gfwfqnjmffq%rvlw8#sobzfg#azbmg#fbqoz?,`fmwfq=eqln#wkjpwkf#wkqffsltfq#bmgle#%rvlw8jmmfqKWNO?b#kqfe>!z9jmojmf8@kvq`k#lewkf#fufmwufqz#kjdkleej`jbo#.kfjdkw9#`lmwfmw>!,`dj.ajm,wl#`qfbwfbeqjhbbmpfpsfqbmwleqbm/Kbjpobwujf)Mvojfwvuj)_(`f)Mwjmb(af)Mwjmb\\fUh\\fT{\\fTN\\n{I\\np@Fr\\vBl\\bQ\\x7F A{\\vUmGx A{ypYA\\0zX\\bTV\\bWl\\bUdBM\\vB{\\npV\\v@xB\\\\\\np@DbGz al\\npa fM uD\\bV~mx\\vQ}\\ndS p\\\\\\bVK\\bS]\\bU|oD kV\\ved\\vHR\\nb~M`\\nJpoD|Q\\nLPSw\\bTl\\nAI\\nxC\\bWt BqF`Cm\\vLm Kx }t\\bPv\\ny\\\\\\naB V\\x7F\\nZdXUli fr i@ BHBDBV `V\\n[] p_ Tn\\n~A\\nxR uD `{\\bV@ Tn HK AJ\\vxsZf\\nqIZf\\vBM\\v|j }t\\bSM\\nmC\\vQ}pfquj`jlpbqw/A`volbqdfmwjmbabq`folmb`vborvjfqsvaoj`bglsqlgv`wlpslo/Awj`bqfpsvfpwbtjhjsfgjbpjdvjfmwfa/Vprvfgb`lnvmjgbgpfdvqjgbgsqjm`jsbosqfdvmwbp`lmwfmjglqfpslmgfqufmfyvfobsqlaofnbpgj`jfnaqfqfob`j/_mmlujfnaqfpjnjobqfpsqlzf`wlpsqldqbnbpjmpwjwvwlb`wjujgbgfm`vfmwqbf`lmln/Abjn/Mdfmfp`lmwb`wbqgfp`bqdbqmf`fpbqjlbwfm`j/_mwfo/Eelml`lnjpj/_m`bm`jlmfp`bsb`jgbgfm`lmwqbqbm/Mojpjpebulqjwlpw/Eqnjmlpsqlujm`jbfwjrvfwbpfofnfmwlpevm`jlmfpqfpvowbgl`bq/M`wfqsqlsjfgbgsqjm`jsjlmf`fpjgbgnvmj`jsbo`qfb`j/_mgfp`bqdbpsqfpfm`jb`lnfq`jbolsjmjlmfpfifq`j`jlfgjwlqjbopbobnbm`bdlmy/Mofygl`vnfmwlsfo/A`vobqf`jfmwfpdfmfqbofpwbqqbdlmbsq/M`wj`bmlufgbgfpsqlsvfpwbsb`jfmwfpw/E`mj`bplaifwjulp`lmwb`wlp\\fHB\\fIk\\fHn\\fH^\\fHS\\fHc\\fHU\\fId\\fHn\\fH{\\fHC\\fHR\\fHT\\fHR\\fHI\\fHc\\fHY\\fHn\\fH\\\\\\fHU\\fIk\\fHy\\fIg\\fHd\\fHy\\fIm\\fHw\\fH\\\\\\fHU\\fHR\\fH@\\fHR\\fHJ\\fHy\\fHU\\fHR\\fHT\\fHA\\fIl\\fHU\\fIm\\fHc\\fH\\\\\\fHU\\fIl\\fHB\\fId\\fHn\\fHJ\\fHS\\fHD\\fH@\\fHR\\fHHgjsolgl`p\\fHT\\fHB\\fHC\\fH\\\\\\fIn\\fHF\\fHD\\fHR\\fHB\\fHF\\fHH\\fHR\\fHG\\fHS\\fH\\\\\\fHx\\fHT\\fHH\\fHH\\fH\\\\\\fHU\\fH^\\fIg\\fH{\\fHU\\fIm\\fHj\\fH@\\fHR\\fH\\\\\\fHJ\\fIk\\fHZ\\fHU\\fIm\\fHd\\fHz\\fIk\\fH^\\fHC\\fHJ\\fHS\\fHy\\fHR\\fHB\\fHY\\fIk\\fH@\\fHH\\fIl\\fHD\\fH@\\fIl\\fHv\\fHB\\fI`\\fHH\\fHT\\fHR\\fH^\\fH^\\fIk\\fHz\\fHp\\fIe\\fH@\\fHB\\fHJ\\fHJ\\fHH\\fHI\\fHR\\fHD\\fHU\\fIl\\fHZ\\fHU\\fH\\\\\\fHi\\fH^\\fH{\\fHy\\fHA\\fIl\\fHD\\fH{\\fH\\\\\\fHF\\fHR\\fHT\\fH\\\\\\fHR\\fHH\\fHy\\fHS\\fHc\\fHe\\fHT\\fIk\\fH{\\fHC\\fIl\\fHU\\fIn\\fHm\\fHj\\fH{\\fIk\\fHs\\fIl\\fHB\\fHz\\fIg\\fHp\\fHy\\fHR\\fH\\\\\\fHi\\fHA\\fIl\\fH{\\fHC\\fIk\\fHH\\fIm\\fHB\\fHY\\fIg\\fHs\\fHJ\\fIk\\fHn\\fHi\\fH{\\fH\\\\\\fH|\\fHT\\fIk\\fHB\\fIk\\fH^\\fH^\\fH{\\fHR\\fHU\\fHR\\fH^\\fHf\\fHF\\fH\\\\\\fHv\\fHR\\fH\\\\\\fH|\\fHT\\fHR\\fHJ\\fIk\\fH\\\\\\fHp\\fHS\\fHT\\fHJ\\fHS\\fH^\\fH@\\fHn\\fHJ\\fH@\\fHD\\fHR\\fHU\\fIn\\fHn\\fH^\\fHR\\fHz\\fHp\\fIl\\fHH\\fH@\\fHs\\fHD\\fHB\\fHS\\fH^\\fHk\\fHT\\fIk\\fHj\\fHD\\fIk\\fHD\\fHC\\fHR\\fHy\\fIm\\fH^\\fH^\\fIe\\fH{\\fHA\\fHR\\fH{\\fH\\\\\\fIk\\fH^\\fHp\\fH{\\fHU\\fH\\\\\\fHR\\fHB\\fH^\\fH{\\fIk\\fHF\\fIk\\fHp\\fHU\\fHR\\fHI\\fHk\\fHT\\fIl\\fHT\\fHU\\fIl\\fHy\\fH^\\fHR\\fHL\\fIl\\fHy\\fHU\\fHR\\fHm\\fHJ\\fIn\\fH\\\\\\fHH\\fHU\\fHH\\fHT\\fHR\\fHH\\fHC\\fHR\\fHJ\\fHj\\fHC\\fHR\\fHF\\fHR\\fHy\\fHy\\fI`\\fHD\\fHZ\\fHR\\fHB\\fHJ\\fIk\\fHz\\fHC\\fHU\\fIl\\fH\\\\\\fHR\\fHC\\fHz\\fIm\\fHJ\\fH^\\fH{\\fIl`bwfdlqjfpf{sfqjfm`f?,wjwof= @lszqjdkw#ibubp`qjsw`lmgjwjlmpfufqzwkjmd?s#`obpp>!wf`kmloldzab`hdqlvmg?b#`obpp>!nbmbdfnfmw%`lsz8#132ibubP`qjsw`kbqb`wfqpaqfbg`qvnawkfnpfoufpklqjylmwbodlufqmnfmw@bojelqmjbb`wjujwjfpgjp`lufqfgMbujdbwjlmwqbmpjwjlm`lmmf`wjlmmbujdbwjlmbssfbqbm`f?,wjwof=?n`kf`hal{!#wf`kmjrvfpsqlwf`wjlmbssbqfmwozbp#tfoo#bpvmw$/#$VB.qfplovwjlmlsfqbwjlmpwfofujpjlmwqbmpobwfgTbpkjmdwlmmbujdbwlq-#>#tjmglt-jnsqfppjlm%ow8aq%dw8ojwfqbwvqfslsvobwjlmad`lolq>! fpsf`jbooz#`lmwfmw>!sqlgv`wjlmmftpofwwfqsqlsfqwjfpgfejmjwjlmofbgfqpkjsWf`kmloldzSbqojbnfmw`lnsbqjplmvo#`obpp>!-jmgf{Le+!`lm`ovpjlmgjp`vppjlm`lnslmfmwpajloldj`boQfulovwjlm\\\\`lmwbjmfqvmgfqpwllgmlp`qjsw=?sfqnjppjlmfb`k#lwkfqbwnlpskfqf#lmel`vp>!?elqn#jg>!sql`fppjmdwkjp-ubovfdfmfqbwjlm@lmefqfm`fpvapfrvfmwtfoo.hmltmubqjbwjlmpqfsvwbwjlmskfmlnfmlmgjp`jsojmfoldl-smd!#+gl`vnfmw/alvmgbqjfpf{sqfppjlmpfwwofnfmwAb`hdqlvmglvw#le#wkffmwfqsqjpf+!kwwsp9!#vmfp`bsf+!sbpptlqg!#gfnl`qbwj`?b#kqfe>!,tqbssfq!= nfnafqpkjsojmdvjpwj`s{8sbggjmdskjolplskzbppjpwbm`fvmjufqpjwzeb`jojwjfpqf`ldmjyfgsqfefqfm`fje#+wzsflenbjmwbjmfgul`bavobqzkzslwkfpjp-pvanjw+*8%bns8maps8bmmlwbwjlmafkjmg#wkfElvmgbwjlmsvaojpkfq!bppvnswjlmjmwqlgv`fg`lqqvswjlmp`jfmwjpwpf{soj`jwozjmpwfbg#legjnfmpjlmp#lm@oj`h>!`lmpjgfqfggfsbqwnfmwl``vsbwjlmpllm#bewfqjmufpwnfmwsqlmlvm`fgjgfmwjejfgf{sfqjnfmwNbmbdfnfmwdfldqbskj`!#kfjdkw>!ojmh#qfo>!-qfsob`f+,gfsqfppjlm`lmefqfm`fsvmjpknfmwfojnjmbwfgqfpjpwbm`fbgbswbwjlmlsslpjwjlmtfoo#hmltmpvssofnfmwgfwfqnjmfgk2#`obpp>!3s{8nbqdjmnf`kbmj`bopwbwjpwj`p`fofaqbwfgDlufqmnfmw Gvqjmd#wgfufolsfqpbqwjej`jbofrvjubofmwlqjdjmbwfg@lnnjppjlmbwwb`knfmw?psbm#jg>!wkfqf#tfqfMfgfqobmgpafzlmg#wkfqfdjpwfqfgilvqmbojpweqfrvfmwozboo#le#wkfobmd>!fm!#?,pwzof= baplovwf8#pvsslqwjmdf{wqfnfoz#nbjmpwqfbn?,pwqlmd=#slsvobqjwzfnsolznfmw?,wbaof= #`lopsbm>!?,elqn= ##`lmufqpjlmbalvw#wkf#?,s=?,gju=jmwfdqbwfg!#obmd>!fmSlqwvdvfpfpvapwjwvwfjmgjujgvbojnslppjaofnvowjnfgjbbonlpw#boos{#plojg# bsbqw#eqlnpvaif`w#wljm#Fmdojpk`qjwj`jyfgf{`fsw#elqdvjgfojmfplqjdjmboozqfnbqhbaofwkf#pf`lmgk1#`obpp>!?b#wjwof>!+jm`ovgjmdsbqbnfwfqpsqlkjajwfg>#!kwws9,,gj`wjlmbqzsfq`fswjlmqfulovwjlmelvmgbwjlms{8kfjdkw9pv``fppevopvsslqwfqpnjoofmmjvnkjp#ebwkfqwkf#%rvlw8ml.qfsfbw8`lnnfq`jbojmgvpwqjbofm`lvqbdfgbnlvmw#le#vmleej`jbofeej`jfm`zQfefqfm`fp`llqgjmbwfgjp`objnfqf{sfgjwjlmgfufolsjmd`bo`vobwfgpjnsojejfgofdjwjnbwfpvapwqjmd+3!#`obpp>!`lnsofwfozjoovpwqbwfejuf#zfbqpjmpwqvnfmwSvaojpkjmd2!#`obpp>!spz`kloldz`lmejgfm`fmvnafq#le#bapfm`f#leel`vpfg#lmiljmfg#wkfpwqv`wvqfpsqfujlvpoz=?,jeqbnf=lm`f#bdbjmavw#qbwkfqjnnjdqbmwple#`lvqpf/b#dqlvs#leOjwfqbwvqfVmojhf#wkf?,b=%maps8 evm`wjlm#jw#tbp#wkf@lmufmwjlmbvwlnlajofSqlwfpwbmwbddqfppjufbewfq#wkf#Pjnjobqoz/!#,=?,gju=`loof`wjlm evm`wjlmujpjajojwzwkf#vpf#leulovmwffqpbwwqb`wjlmvmgfq#wkf#wkqfbwfmfg)?"X@GBWBXjnslqwbm`fjm#dfmfqbowkf#obwwfq?,elqn= ?,-jmgf{Le+$j#>#38#j#?gjeefqfm`fgfulwfg#wlwqbgjwjlmppfbq`k#elqvowjnbwfozwlvqmbnfmwbwwqjavwfppl.`boofg#~ ?,pwzof=fubovbwjlmfnskbpjyfgb``fppjaof?,pf`wjlm=pv``fppjlmbolmd#tjwkNfbmtkjof/jmgvpwqjfp?,b=?aq#,=kbp#af`lnfbpsf`wp#leWfofujpjlmpveej`jfmwabphfwabooalwk#pjgfp`lmwjmvjmdbm#bqwj`of?jnd#bow>!bgufmwvqfpkjp#nlwkfqnbm`kfpwfqsqjm`jsofpsbqwj`vobq`lnnfmwbqzfeef`wp#legf`jgfg#wl!=?pwqlmd=svaojpkfqpIlvqmbo#legjeej`vowzeb`jojwbwfb``fswbaofpwzof-`pp!\\nevm`wjlm#jmmlubwjlm=@lszqjdkwpjwvbwjlmptlvog#kbufavpjmfppfpGj`wjlmbqzpwbwfnfmwplewfm#vpfgsfqpjpwfmwjm#Ibmvbqz`lnsqjpjmd?,wjwof= \\ngjsolnbwj``lmwbjmjmdsfqelqnjmdf{wfmpjlmpnbz#mlw#af`lm`fsw#le#lm`oj`h>!Jw#jp#boplejmbm`jbo#nbhjmd#wkfOv{fnalvqdbggjwjlmbobqf#`boofgfmdbdfg#jm!p`qjsw!*8avw#jw#tbpfof`wqlmj`lmpvanjw>! ?"..#Fmg#fof`wqj`boleej`jboozpvddfpwjlmwls#le#wkfvmojhf#wkfBvpwqbojbmLqjdjmboozqfefqfm`fp ?,kfbg= qf`ldmjpfgjmjwjbojyfojnjwfg#wlBof{bmgqjbqfwjqfnfmwBgufmwvqfpelvq#zfbqp %ow8"..#jm`qfbpjmdgf`lqbwjlmk0#`obpp>!lqjdjmp#lelaojdbwjlmqfdvobwjlm`obppjejfg+evm`wjlm+bgubmwbdfpafjmd#wkf#kjpwlqjbmp?abpf#kqfeqfsfbwfgoztjoojmd#wl`lnsbqbaofgfpjdmbwfgmlnjmbwjlmevm`wjlmbojmpjgf#wkfqfufobwjlmfmg#le#wkfp#elq#wkf#bvwklqjyfgqfevpfg#wlwbhf#sob`fbvwlmlnlvp`lnsqlnjpfslojwj`bo#qfpwbvqbmwwtl#le#wkfEfaqvbqz#1rvbojwz#leptelaif`w-vmgfqpwbmgmfbqoz#bootqjwwfm#azjmwfqujftp!#tjgwk>!2tjwkgqbtboeolbw9ofewjp#vpvbooz`bmgjgbwfpmftpsbsfqpnzpwfqjlvpGfsbqwnfmwafpw#hmltmsbqojbnfmwpvssqfppfg`lmufmjfmwqfnfnafqfggjeefqfmw#pzpwfnbwj`kbp#ofg#wlsqlsbdbmgb`lmwqloofgjmeovfm`fp`fqfnlmjbosql`objnfgSqlwf`wjlmoj#`obpp>!P`jfmwjej``obpp>!ml.wqbgfnbqhpnlqf#wkbm#tjgfpsqfbgOjafqbwjlmwllh#sob`fgbz#le#wkfbp#olmd#bpjnsqjplmfgBggjwjlmbo ?kfbg= ?nObalqbwlqzMlufnafq#1f{`fswjlmpJmgvpwqjboubqjfwz#leeolbw9#ofeGvqjmd#wkfbppfppnfmwkbuf#affm#gfbop#tjwkPwbwjpwj`pl``vqqfm`f,vo=?,gju=`ofbqej{!=wkf#svaoj`nbmz#zfbqptkj`k#tfqflufq#wjnf/pzmlmznlvp`lmwfmw!= sqfpvnbaozkjp#ebnjozvpfqBdfmw-vmf{sf`wfgjm`ovgjmd#`kboofmdfgb#njmlqjwzvmgfejmfg!afolmdp#wlwbhfm#eqlnjm#L`wlafqslpjwjlm9#pbjg#wl#afqfojdjlvp#Efgfqbwjlm#qltpsbm>!lmoz#b#eftnfbmw#wkbwofg#wl#wkf..= ?gju#?ejfogpfw=Bq`kajpkls#`obpp>!mlafjmd#vpfgbssqlb`kfpsqjujofdfpmlp`qjsw= qfpvowp#jmnbz#af#wkfFbpwfq#fddnf`kbmjpnpqfbplmbaofSlsvobwjlm@loof`wjlmpfof`wfg!=mlp`qjsw=,jmgf{-sksbqqjubo#le.ippgh$**8nbmbdfg#wljm`lnsofwf`bpvbowjfp`lnsofwjlm@kqjpwjbmpPfswfnafq#bqjwknfwj`sql`fgvqfpnjdkw#kbufSqlgv`wjlmjw#bssfbqpSkjolplskzeqjfmgpkjsofbgjmd#wldjujmd#wkfwltbqg#wkfdvbqbmwffggl`vnfmwfg`lolq9 333ujgfl#dbnf`lnnjppjlmqfeof`wjmd`kbmdf#wkfbppl`jbwfgpbmp.pfqjelmhfzsqfpp8#sbggjmd9Kf#tbp#wkfvmgfqozjmdwzsj`booz#/#bmg#wkf#pq`Fofnfmwpv``fppjufpjm`f#wkf#pklvog#af#mfwtlqhjmdb``lvmwjmdvpf#le#wkfoltfq#wkbmpkltp#wkbw?,psbm= \\n\\n`lnsobjmwp`lmwjmvlvprvbmwjwjfpbpwqlmlnfqkf#gjg#mlwgvf#wl#jwpbssojfg#wlbm#bufqbdffeelqwp#wlwkf#evwvqfbwwfnsw#wlWkfqfelqf/`bsbajojwzQfsvaoj`bmtbp#elqnfgFof`wqlmj`hjolnfwfqp`kboofmdfpsvaojpkjmdwkf#elqnfqjmgjdfmlvpgjqf`wjlmppvapjgjbqz`lmpsjqb`zgfwbjop#lebmg#jm#wkfbeelqgbaofpvapwbm`fpqfbplm#elq`lmufmwjlmjwfnwzsf>!baplovwfozpvsslpfgozqfnbjmfg#bbwwqb`wjufwqbufoojmdpfsbqbwfozel`vpfp#lmfofnfmwbqzbssoj`baofelvmg#wkbwpwzofpkffwnbmvp`qjswpwbmgp#elq#ml.qfsfbw+plnfwjnfp@lnnfq`jbojm#Bnfqj`bvmgfqwbhfmrvbqwfq#lebm#f{bnsofsfqplmboozjmgf{-sks<?,avwwlm= sfq`fmwbdfafpw.hmltm`qfbwjmd#b!#gjq>!owqOjfvwfmbmw ?gju#jg>!wkfz#tlvogbajojwz#lenbgf#vs#lemlwfg#wkbw`ofbq#wkbwbqdvf#wkbwwl#bmlwkfq`kjogqfm$psvqslpf#leelqnvobwfgabpfg#vslmwkf#qfdjlmpvaif`w#lesbppfmdfqpslppfppjlm- Jm#wkf#Afelqf#wkfbewfqtbqgp`vqqfmwoz#b`qlpp#wkfp`jfmwjej``lnnvmjwz-`bsjwbojpnjm#Dfqnbmzqjdkw.tjmdwkf#pzpwfnPl`jfwz#leslojwj`jbmgjqf`wjlm9tfmw#lm#wlqfnlubo#le#Mft#Zlqh#bsbqwnfmwpjmgj`bwjlmgvqjmd#wkfvmofpp#wkfkjpwlqj`bokbg#affm#bgfejmjwjufjmdqfgjfmwbwwfmgbm`f@fmwfq#elqsqlnjmfm`fqfbgzPwbwfpwqbwfdjfpavw#jm#wkfbp#sbqw#le`lmpwjwvwf`objn#wkbwobalqbwlqz`lnsbwjaofebjovqf#le/#pv`k#bp#afdbm#tjwkvpjmd#wkf#wl#sqlujgfefbwvqf#leeqln#tkj`k,!#`obpp>!dfloldj`bopfufqbo#legfojafqbwfjnslqwbmw#klogp#wkbwjmd%rvlw8#ubojdm>wlswkf#Dfqnbmlvwpjgf#lemfdlwjbwfgkjp#`bqffqpfsbqbwjlmjg>!pfbq`ktbp#`boofgwkf#elvqwkqf`qfbwjlmlwkfq#wkbmsqfufmwjlmtkjof#wkf#fgv`bwjlm/`lmmf`wjmdb``vqbwfoztfqf#avjowtbp#hjoofgbdqffnfmwpnv`k#nlqf#Gvf#wl#wkftjgwk9#233plnf#lwkfqHjmdgln#lewkf#fmwjqfebnlvp#elqwl#`lmmf`wlaif`wjufpwkf#Eqfm`ksflsof#bmgefbwvqfg!=jp#pbjg#wlpwqv`wvqboqfefqfmgvnnlpw#lewfmb#pfsbqbwf.= ?gju#jg#Leej`jbo#tlqogtjgf-bqjb.obafowkf#sobmfwbmg#jw#tbpg!#ubovf>!ollhjmd#bwafmfej`jbobqf#jm#wkfnlmjwlqjmdqfslqwfgozwkf#nlgfqmtlqhjmd#lmbooltfg#wltkfqf#wkf#jmmlubwjuf?,b=?,gju=plvmgwqb`hpfbq`kElqnwfmg#wl#afjmsvw#jg>!lsfmjmd#leqfpwqj`wfgbglswfg#azbggqfppjmdwkfloldjbmnfwklgp#leubqjbmw#le@kqjpwjbm#ufqz#obqdfbvwlnlwjufaz#ebq#wkfqbmdf#eqlnsvqpvjw#leeloolt#wkfaqlvdkw#wljm#Fmdobmgbdqff#wkbwb``vpfg#le`lnfp#eqlnsqfufmwjmdgju#pwzof>kjp#lq#kfqwqfnfmglvpeqffgln#le`lm`fqmjmd3#2fn#2fn8Abphfwaboo,pwzof-`ppbm#fbqojfqfufm#bewfq,!#wjwof>!-`ln,jmgf{wbhjmd#wkfsjwwpavqdk`lmwfmw!=?p`qjsw=+ewvqmfg#lvwkbujmd#wkf?,psbm= #l``bpjlmboaf`bvpf#jwpwbqwfg#wlskzpj`booz=?,gju= ##`qfbwfg#az@vqqfmwoz/#ad`lolq>!wbajmgf{>!gjpbpwqlvpBmbozwj`p#bopl#kbp#b=?gju#jg>!?,pwzof= ?`boofg#elqpjmdfq#bmg-pq`#>#!,,ujlobwjlmpwkjp#sljmw`lmpwbmwozjp#ol`bwfgqf`lqgjmdpg#eqln#wkfmfgfqobmgpslqwvdv/Fp;N;};D;u;F5m4K4]4_7`gfpbqqlool`lnfmwbqjlfgv`b`j/_mpfswjfnaqfqfdjpwqbglgjqf``j/_mvaj`b`j/_msvaoj`jgbgqfpsvfpwbpqfpvowbglpjnslqwbmwfqfpfqubglpbqw/A`volpgjefqfmwfppjdvjfmwfpqfs/Vaoj`bpjwvb`j/_mnjmjpwfqjlsqjub`jgbggjqf`wlqjlelqnb`j/_mslaob`j/_msqfpjgfmwf`lmw\',\'fmjglpb``fplqjlpwf`kmlqbwjsfqplmbofp`bwfdlq/Abfpsf`jbofpgjpslmjaofb`wvbojgbgqfefqfm`jbuboobglojgajaojlwf`bqfob`jlmfp`bofmgbqjlslo/Awj`bpbmwfqjlqfpgl`vnfmwlpmbwvqbofybnbwfqjbofpgjefqfm`jbf`lm/_nj`bwqbmpslqwfqlgq/Advfysbqwj`jsbqfm`vfmwqbmgjp`vpj/_mfpwqv`wvqbevmgb`j/_meqf`vfmwfpsfqnbmfmwfwlwbonfmwf<P<R<Z<Q<R<]=o<X<Y=n<P<R<Z<Y=n<^=l<Y<P=c=n<\\\\<V<Z<Y=k=n<R<]=g<]<R<W<Y<Y<R=k<Y<Q=`=a=n<R<_<R<V<R<_<X<\\\\<S<R=m<W<Y<^=m<Y<_<R=m<\\\\<U=n<Y=k<Y=l<Y<[<P<R<_=o=n=m<\\\\<U=n<\\\\<Z<T<[<Q<T<P<Y<Z<X=o<]=o<X=o=n<s<R<T=m<V<[<X<Y=m=`<^<T<X<Y<R=m<^=c<[<T<Q=o<Z<Q<R=m<^<R<Y<U<W=b<X<Y<U<S<R=l<Q<R<P<Q<R<_<R<X<Y=n<Y<U=m<^<R<T=i<S=l<\\\\<^<\\\\=n<\\\\<V<R<U<P<Y=m=n<R<T<P<Y<Y=n<Z<T<[<Q=`<R<X<Q<R<U<W=o=k=d<Y<S<Y=l<Y<X=k<\\\\=m=n<T=k<\\\\=m=n=`=l<\\\\<]<R=n<Q<R<^=g=i<S=l<\\\\<^<R=m<R<]<R<U<S<R=n<R<P<P<Y<Q<Y<Y=k<T=m<W<Y<Q<R<^=g<Y=o=m<W=o<_<R<V<R<W<R<Q<\\\\<[<\\\\<X=n<\\\\<V<R<Y=n<R<_<X<\\\\<S<R=k=n<T<s<R=m<W<Y=n<\\\\<V<T<Y<Q<R<^=g<U=m=n<R<T=n=n<\\\\<V<T=i=m=l<\\\\<[=o<M<\\\\<Q<V=n=h<R=l=o<P<v<R<_<X<\\\\<V<Q<T<_<T=m<W<R<^<\\\\<Q<\\\\=d<Y<U<Q<\\\\<U=n<T=m<^<R<T<P=m<^=c<[=`<W=b<]<R<U=k<\\\\=m=n<R=m=l<Y<X<T<v=l<R<P<Y<H<R=l=o<P=l=g<Q<V<Y=m=n<\\\\<W<T<S<R<T=m<V=n=g=m=c=k<P<Y=m=c=j=j<Y<Q=n=l=n=l=o<X<\\\\=m<\\\\<P=g=i=l=g<Q<V<\\\\<q<R<^=g<U=k<\\\\=m<R<^<P<Y=m=n<\\\\=h<T<W=`<P<P<\\\\=l=n<\\\\=m=n=l<\\\\<Q<P<Y=m=n<Y=n<Y<V=m=n<Q<\\\\=d<T=i<P<T<Q=o=n<T<P<Y<Q<T<T<P<Y=b=n<Q<R<P<Y=l<_<R=l<R<X=m<\\\\<P<R<P=a=n<R<P=o<V<R<Q=j<Y=m<^<R<Y<P<V<\\\\<V<R<U<|=l=i<T<^5i5j4F4C5e4I4]4_4K5h4]4_4K5h4E4K5h4U4K5i5o4F4D5k4K4D4]4K5i4@4K5h5f5d5i4K5h4Y5d4]4@4C5f4C4E4K5h4U4Z5d4I4Z4K5m4E4K5h5n4_5i4K5h4U4K4D4F4A5i5f5h5i5h5m4K4F5i5h4F5n5e4F4U4C5f5h4K5h4X4U4]4O4B4D4K4]4F4[5d5f4]4U5h5f5o5i4I4]5m4K5n4[5h4D4K4F4K5h5h4V4E4F4]4F5f4D4K5h5j4K4_4K5h4X5f4B5i5j4F4C5f4K5h4U4]4D4K5h5n4Y4Y4K5m5h4K5i4U5h5f5k4K4F4A4C5f4G4K5h5h5k5i4K5h4U5i5h5i5o4F4D4E5f5i5o5j5o4K5h4[5m5h5m5f4C5f5d4I4C4K4]4E4F4K4]5f4B4K5h4Y4A4E4F4_4@5f5h4K5h5d5n4F4U5j4C5i4K5i4C5f5j4E4F4Y5i5f5i4O4]4X5f5m4K5h4\\\\5f5j4U4]4D5f4E4D5d4K4D4E4O5h4U4K4D4K5h4_5m4]5i4X4K5o5h4F4U4K5h5e4K5h4O5d5h4K5h4_5j4E4@4K5i4U4E4K5h4Y4A5m4K5h4C5f5j5o5h5i4K4F4K5h4B4K4Y4K5h5i5h5m4O4U4Z4K4M5o4F4K4D4E4K5h4B5f4]4]4_4K4J5h4K5h5n5h4D4K5h4O4C4D5i5n4K4[4U5i4]4K4_5h5i5j4[5n4E4K5h5o4F4D4K5h4]4@5h4K4X4F4]5o4K5h5n4C5i5f4U4[5f5opAzWbdMbnf+-isd!#bow>!2s{#plojg# -dje!#bow>!wqbmpsbqfmwjmelqnbwjlmbssoj`bwjlm!#lm`oj`h>!fpwbaojpkfgbgufqwjpjmd-smd!#bow>!fmujqlmnfmwsfqelqnbm`fbssqlsqjbwf%bns8ngbpk8jnnfgjbwfoz?,pwqlmd=?,qbwkfq#wkbmwfnsfqbwvqfgfufolsnfmw`lnsfwjwjlmsob`fklogfqujpjajojwz9`lszqjdkw!=3!#kfjdkw>!fufm#wklvdkqfsob`fnfmwgfpwjmbwjlm@lqslqbwjlm?vo#`obpp>!Bppl`jbwjlmjmgjujgvbopsfqpsf`wjufpfwWjnflvw+vqo+kwws9,,nbwkfnbwj`pnbqdjm.wls9fufmwvbooz#gfp`qjswjlm*#ml.qfsfbw`loof`wjlmp-ISD\\x7Fwkvna\\x7Fsbqwj`jsbwf,kfbg=?algzeolbw9ofew8?oj#`obpp>!kvmgqfgp#le Kltfufq/#`lnslpjwjlm`ofbq9alwk8`llsfqbwjlmtjwkjm#wkf#obafo#elq>!alqgfq.wls9Mft#Yfbobmgqf`lnnfmgfgsklwldqbskzjmwfqfpwjmd%ow8pvs%dw8`lmwqlufqpzMfwkfqobmgpbowfqmbwjufnb{ofmdwk>!ptjwyfqobmgGfufolsnfmwfppfmwjbooz Bowklvdk#?,wf{wbqfb=wkvmgfqajqgqfsqfpfmwfg%bns8mgbpk8psf`vobwjlm`lnnvmjwjfpofdjpobwjlmfof`wqlmj`p \\n?gju#jg>!joovpwqbwfgfmdjmffqjmdwfqqjwlqjfpbvwklqjwjfpgjpwqjavwfg5!#kfjdkw>!pbmp.pfqje8`bsbaof#le#gjpbssfbqfgjmwfqb`wjufollhjmd#elqjw#tlvog#afBedkbmjpwbmtbp#`qfbwfgNbwk-eollq+pvqqlvmgjmd`bm#bopl#aflapfqubwjlmnbjmwfmbm`ffm`lvmwfqfg?k1#`obpp>!nlqf#qf`fmwjw#kbp#affmjmubpjlm#le*-dfwWjnf+*evmgbnfmwboGfpsjwf#wkf!=?gju#jg>!jmpsjqbwjlmf{bnjmbwjlmsqfsbqbwjlmf{sobmbwjlm?jmsvw#jg>!?,b=?,psbm=ufqpjlmp#lejmpwqvnfmwpafelqf#wkf##>#$kwws9,,Gfp`qjswjlmqfobwjufoz#-pvapwqjmd+fb`k#le#wkff{sfqjnfmwpjmeovfmwjbojmwfdqbwjlmnbmz#sflsofgvf#wl#wkf#`lnajmbwjlmgl#mlw#kbufNjggof#Fbpw?mlp`qjsw=?`lszqjdkw!#sfqkbsp#wkfjmpwjwvwjlmjm#Gf`fnafqbqqbmdfnfmwnlpw#ebnlvpsfqplmbojwz`qfbwjlm#leojnjwbwjlmpf{`ovpjufozplufqfjdmwz.`lmwfmw!= ?wg#`obpp>!vmgfqdqlvmgsbqboofo#wlgl`wqjmf#lel``vsjfg#azwfqnjmloldzQfmbjppbm`fb#mvnafq#lepvsslqw#elqf{solqbwjlmqf`ldmjwjlmsqfgf`fpplq?jnd#pq`>!,?k2#`obpp>!svaoj`bwjlmnbz#bopl#afpsf`jbojyfg?,ejfogpfw=sqldqfppjufnjoojlmp#lepwbwfp#wkbwfmelq`fnfmwbqlvmg#wkf#lmf#bmlwkfq-sbqfmwMlgfbdqj`vowvqfBowfqmbwjufqfpfbq`kfqpwltbqgp#wkfNlpw#le#wkfnbmz#lwkfq#+fpsf`jbooz?wg#tjgwk>!8tjgwk9233&jmgfsfmgfmw?k0#`obpp>!#lm`kbmdf>!*-bgg@obpp+jmwfqb`wjlmLmf#le#wkf#gbvdkwfq#leb``fpplqjfpaqbm`kfp#le ?gju#jg>!wkf#obqdfpwgf`obqbwjlmqfdvobwjlmpJmelqnbwjlmwqbmpobwjlmgl`vnfmwbqzjm#lqgfq#wl!= ?kfbg= ?!#kfjdkw>!2b`qlpp#wkf#lqjfmwbwjlm*8?,p`qjsw=jnsofnfmwfg`bm#af#pffmwkfqf#tbp#bgfnlmpwqbwf`lmwbjmfq!=`lmmf`wjlmpwkf#Aqjwjpktbp#tqjwwfm"jnslqwbmw8s{8#nbqdjm.elooltfg#azbajojwz#wl#`lnsoj`bwfggvqjmd#wkf#jnnjdqbwjlmbopl#`boofg?k7#`obpp>!gjpwjm`wjlmqfsob`fg#azdlufqmnfmwpol`bwjlm#lejm#Mlufnafqtkfwkfq#wkf?,s= ?,gju=b`rvjpjwjlm`boofg#wkf#sfqpf`vwjlmgfpjdmbwjlmxelmw.pjyf9bssfbqfg#jmjmufpwjdbwff{sfqjfm`fgnlpw#ojhfoztjgfoz#vpfggjp`vppjlmpsqfpfm`f#le#+gl`vnfmw-f{wfmpjufozJw#kbp#affmjw#glfp#mlw`lmwqbqz#wljmkbajwbmwpjnsqlufnfmwp`klobqpkjs`lmpvnswjlmjmpwqv`wjlmelq#f{bnsoflmf#lq#nlqfs{8#sbggjmdwkf#`vqqfmwb#pfqjfp#lebqf#vpvboozqlof#jm#wkfsqfujlvpoz#gfqjubwjufpfujgfm`f#lef{sfqjfm`fp`lolqp`kfnfpwbwfg#wkbw`fqwjej`bwf?,b=?,gju= #pfof`wfg>!kjdk#p`klloqfpslmpf#wl`lnelqwbaofbglswjlm#lewkqff#zfbqpwkf#`lvmwqzjm#Efaqvbqzpl#wkbw#wkfsflsof#tkl#sqlujgfg#az?sbqbn#mbnfbeef`wfg#azjm#wfqnp#lebssljmwnfmwJPL.;;6:.2!tbp#alqm#jmkjpwlqj`bo#qfdbqgfg#bpnfbpvqfnfmwjp#abpfg#lm#bmg#lwkfq#9#evm`wjlm+pjdmjej`bmw`fofaqbwjlmwqbmpnjwwfg,ip,irvfqz-jp#hmltm#bpwkflqfwj`bo#wbajmgf{>!jw#`lvog#af?mlp`qjsw= kbujmd#affm ?kfbg= ?#%rvlw8Wkf#`lnsjobwjlmkf#kbg#affmsqlgv`fg#azskjolplskfq`lmpwqv`wfgjmwfmgfg#wlbnlmd#lwkfq`lnsbqfg#wlwl#pbz#wkbwFmdjmffqjmdb#gjeefqfmwqfefqqfg#wlgjeefqfm`fpafojfe#wkbwsklwldqbskpjgfmwjezjmdKjpwlqz#le#Qfsvaoj`#lemf`fppbqjozsqlabajojwzwf`kmj`boozofbujmd#wkfpsf`wb`vobqeqb`wjlm#lefof`wqj`jwzkfbg#le#wkfqfpwbvqbmwpsbqwmfqpkjsfnskbpjp#lmnlpw#qf`fmwpkbqf#tjwk#pbzjmd#wkbwejoofg#tjwkgfpjdmfg#wljw#jp#lewfm!=?,jeqbnf=bp#elooltp9nfqdfg#tjwkwkqlvdk#wkf`lnnfq`jbo#sljmwfg#lvwlsslqwvmjwzujft#le#wkfqfrvjqfnfmwgjujpjlm#lesqldqbnnjmdkf#qf`fjufgpfwJmwfqubo!=?,psbm=?,jm#Mft#Zlqhbggjwjlmbo#`lnsqfppjlm ?gju#jg>!jm`lqslqbwf8?,p`qjsw=?bwwb`kFufmwaf`bnf#wkf#!#wbqdfw>!\\\\`bqqjfg#lvwPlnf#le#wkfp`jfm`f#bmgwkf#wjnf#le@lmwbjmfq!=nbjmwbjmjmd@kqjpwlskfqNv`k#le#wkftqjwjmdp#le!#kfjdkw>!1pjyf#le#wkfufqpjlm#le#nj{wvqf#le#afwtffm#wkfF{bnsofp#lefgv`bwjlmbo`lnsfwjwjuf#lmpvanjw>!gjqf`wlq#legjpwjm`wjuf,GWG#[KWNO#qfobwjmd#wlwfmgfm`z#wlsqlujm`f#letkj`k#tlvoggfpsjwf#wkfp`jfmwjej`#ofdjpobwvqf-jmmfqKWNO#boofdbwjlmpBdqj`vowvqftbp#vpfg#jmbssqlb`k#wljmwfoojdfmwzfbqp#obwfq/pbmp.pfqjegfwfqnjmjmdSfqelqnbm`fbssfbqbm`fp/#tkj`k#jp#elvmgbwjlmpbaaqfujbwfgkjdkfq#wkbmp#eqln#wkf#jmgjujgvbo#`lnslpfg#lepvsslpfg#wl`objnp#wkbwbwwqjavwjlmelmw.pjyf92fofnfmwp#leKjpwlqj`bo#kjp#aqlwkfqbw#wkf#wjnfbmmjufqpbqzdlufqmfg#azqfobwfg#wl#vowjnbwfoz#jmmlubwjlmpjw#jp#pwjoo`bm#lmoz#afgfejmjwjlmpwlDNWPwqjmdB#mvnafq#lejnd#`obpp>!Fufmwvbooz/tbp#`kbmdfgl``vqqfg#jmmfjdkalqjmdgjpwjmdvjpktkfm#kf#tbpjmwqlgv`jmdwfqqfpwqjboNbmz#le#wkfbqdvfp#wkbwbm#Bnfqj`bm`lmrvfpw#letjgfpsqfbg#tfqf#hjoofgp`qffm#bmg#Jm#lqgfq#wlf{sf`wfg#wlgfp`fmgbmwpbqf#ol`bwfgofdjpobwjufdfmfqbwjlmp#ab`hdqlvmgnlpw#sflsofzfbqp#bewfqwkfqf#jp#mlwkf#kjdkfpweqfrvfmwoz#wkfz#gl#mlwbqdvfg#wkbwpkltfg#wkbwsqfglnjmbmwwkfloldj`boaz#wkf#wjnf`lmpjgfqjmdpklqw.ojufg?,psbm=?,b=`bm#af#vpfgufqz#ojwwoflmf#le#wkf#kbg#boqfbgzjmwfqsqfwfg`lnnvmj`bwfefbwvqfp#ledlufqmnfmw/?,mlp`qjsw=fmwfqfg#wkf!#kfjdkw>!0Jmgfsfmgfmwslsvobwjlmpobqdf.p`bof-#Bowklvdk#vpfg#jm#wkfgfpwqv`wjlmslppjajojwzpwbqwjmd#jmwtl#lq#nlqff{sqfppjlmppvalqgjmbwfobqdfq#wkbmkjpwlqz#bmg?,lswjlm= @lmwjmfmwbofojnjmbwjmdtjoo#mlw#afsqb`wj`f#lejm#eqlmw#lepjwf#le#wkffmpvqf#wkbwwl#`qfbwf#bnjppjppjssjslwfmwjboozlvwpwbmgjmdafwwfq#wkbmtkbw#jp#mltpjwvbwfg#jmnfwb#mbnf>!WqbgjwjlmbopvddfpwjlmpWqbmpobwjlmwkf#elqn#lebwnlpskfqj`jgfloldj`bofmwfqsqjpfp`bo`vobwjmdfbpw#le#wkfqfnmbmwp#lesovdjmpsbdf,jmgf{-sks<qfnbjmfg#jmwqbmpelqnfgKf#tbp#bopltbp#boqfbgzpwbwjpwj`bojm#ebulq#leNjmjpwqz#lenlufnfmw#leelqnvobwjlmjp#qfrvjqfg?ojmh#qfo>!Wkjp#jp#wkf#?b#kqfe>!,slsvobqjyfgjmuloufg#jmbqf#vpfg#wlbmg#pfufqbonbgf#az#wkfpffnp#wl#afojhfoz#wkbwSbofpwjmjbmmbnfg#bewfqjw#kbg#affmnlpw#`lnnlmwl#qfefq#wlavw#wkjp#jp`lmpf`vwjufwfnslqbqjozJm#dfmfqbo/`lmufmwjlmpwbhfp#sob`fpvagjujpjlmwfqqjwlqjbolsfqbwjlmbosfqnbmfmwoztbp#obqdfozlvwaqfbh#lejm#wkf#sbpwelooltjmd#b#{nomp9ld>!=?b#`obpp>!`obpp>!wf{w@lmufqpjlm#nbz#af#vpfgnbmveb`wvqfbewfq#afjmd`ofbqej{!= rvfpwjlm#letbp#fof`wfgwl#af`lnf#baf`bvpf#le#plnf#sflsofjmpsjqfg#azpv``fppevo#b#wjnf#tkfmnlqf#`lnnlmbnlmdpw#wkfbm#leej`jbotjgwk9233&8wf`kmloldz/tbp#bglswfgwl#hffs#wkfpfwwofnfmwpojuf#ajqwkpjmgf{-kwno!@lmmf`wj`vwbppjdmfg#wl%bns8wjnfp8b``lvmw#elqbojdm>qjdkwwkf#`lnsbmzbotbzp#affmqfwvqmfg#wljmuloufnfmwAf`bvpf#wkfwkjp#sfqjlg!#mbnf>!r!#`lmejmfg#wlb#qfpvow#leubovf>!!#,=jp#b`wvboozFmujqlmnfmw ?,kfbg= @lmufqpfoz/= ?gju#jg>!3!#tjgwk>!2jp#sqlabaozkbuf#af`lnf`lmwqloojmdwkf#sqlaofn`jwjyfmp#leslojwj`jbmpqfb`kfg#wkfbp#fbqoz#bp9mlmf8#lufq?wbaof#`fooubojgjwz#legjqf`woz#wllmnlvpfgltmtkfqf#jw#jptkfm#jw#tbpnfnafqp#le#qfobwjlm#wlb``lnnlgbwfbolmd#tjwk#Jm#wkf#obwfwkf#Fmdojpkgfoj`jlvp!=wkjp#jp#mlwwkf#sqfpfmwje#wkfz#bqfbmg#ejmboozb#nbwwfq#le \\n?,gju=  ?,p`qjsw=ebpwfq#wkbmnbilqjwz#lebewfq#tkj`k`lnsbqbwjufwl#nbjmwbjmjnsqluf#wkfbtbqgfg#wkffq!#`obpp>!eqbnfalqgfqqfpwlqbwjlmjm#wkf#pbnfbmbozpjp#lewkfjq#ejqpwGvqjmd#wkf#`lmwjmfmwbopfrvfm`f#leevm`wjlm+*xelmw.pjyf9#tlqh#lm#wkf?,p`qjsw= ?afdjmp#tjwkibubp`qjsw9`lmpwjwvfmwtbp#elvmgfgfrvjojaqjvnbppvnf#wkbwjp#djufm#azmffgp#wl#af`llqgjmbwfpwkf#ubqjlvpbqf#sbqw#lelmoz#jm#wkfpf`wjlmp#lejp#b#`lnnlmwkflqjfp#legjp`lufqjfpbppl`jbwjlmfgdf#le#wkfpwqfmdwk#leslpjwjlm#jmsqfpfmw.gbzvmjufqpboozwl#elqn#wkfavw#jmpwfbg`lqslqbwjlmbwwb`kfg#wljp#`lnnlmozqfbplmp#elq#%rvlw8wkf#`bm#af#nbgftbp#baof#wltkj`k#nfbmpavw#gjg#mlwlmNlvpfLufqbp#slppjaoflsfqbwfg#az`lnjmd#eqlnwkf#sqjnbqzbggjwjlm#leelq#pfufqbowqbmpefqqfgb#sfqjlg#lebqf#baof#wlkltfufq/#jwpklvog#kbufnv`k#obqdfq \\n?,p`qjsw=bglswfg#wkfsqlsfqwz#legjqf`wfg#azfeef`wjufoztbp#aqlvdkw`kjogqfm#leSqldqbnnjmdolmdfq#wkbmnbmvp`qjswptbq#bdbjmpwaz#nfbmp#lebmg#nlpw#lepjnjobq#wl#sqlsqjfwbqzlqjdjmbwjmdsqfpwjdjlvpdqbnnbwj`bof{sfqjfm`f-wl#nbhf#wkfJw#tbp#bopljp#elvmg#jm`lnsfwjwlqpjm#wkf#V-P-qfsob`f#wkfaqlvdkw#wkf`bo`vobwjlmeboo#le#wkfwkf#dfmfqbosqb`wj`boozjm#klmlq#leqfofbpfg#jmqfpjgfmwjbobmg#plnf#lehjmd#le#wkfqfb`wjlm#wl2pw#Fbqo#le`vowvqf#bmgsqjm`jsbooz?,wjwof= ##wkfz#`bm#afab`h#wl#wkfplnf#le#kjpf{slpvqf#wlbqf#pjnjobqelqn#le#wkfbggEbulqjwf`jwjyfmpkjssbqw#jm#wkfsflsof#tjwkjm#sqb`wj`fwl#`lmwjmvf%bns8njmvp8bssqlufg#az#wkf#ejqpw#booltfg#wkfbmg#elq#wkfevm`wjlmjmdsobzjmd#wkfplovwjlm#wlkfjdkw>!3!#jm#kjp#allhnlqf#wkbm#belooltp#wkf`qfbwfg#wkfsqfpfm`f#jm%maps8?,wg=mbwjlmbojpwwkf#jgfb#leb#`kbqb`wfqtfqf#elq`fg#`obpp>!awmgbzp#le#wkfefbwvqfg#jmpkltjmd#wkfjmwfqfpw#jmjm#sob`f#lewvqm#le#wkfwkf#kfbg#leOlqg#le#wkfslojwj`boozkbp#jwp#ltmFgv`bwjlmbobssqlubo#leplnf#le#wkffb`k#lwkfq/afkbujlq#lebmg#af`bvpfbmg#bmlwkfqbssfbqfg#lmqf`lqgfg#jmaob`h%rvlw8nbz#jm`ovgfwkf#tlqog$p`bm#ofbg#wlqfefqp#wl#balqgfq>!3!#dlufqmnfmw#tjmmjmd#wkfqfpvowfg#jm#tkjof#wkf#Tbpkjmdwlm/wkf#pvaif`w`jwz#jm#wkf=?,gju= \\n\\nqfeof`w#wkfwl#`lnsofwfaf`bnf#nlqfqbgjlb`wjufqfif`wfg#aztjwklvw#bmzkjp#ebwkfq/tkj`k#`lvog`lsz#le#wkfwl#jmgj`bwfb#slojwj`bob``lvmwp#le`lmpwjwvwfptlqhfg#tjwkfq?,b=?,oj=le#kjp#ojefb``lnsbmjfg`ojfmwTjgwksqfufmw#wkfOfdjpobwjufgjeefqfmwozwldfwkfq#jmkbp#pfufqboelq#bmlwkfqwf{w#le#wkfelvmgfg#wkff#tjwk#wkf#jp#vpfg#elq`kbmdfg#wkfvpvbooz#wkfsob`f#tkfqftkfqfbp#wkf=#?b#kqfe>!!=?b#kqfe>!wkfnpfoufp/bowklvdk#kfwkbw#`bm#afwqbgjwjlmboqlof#le#wkfbp#b#qfpvowqfnluf@kjoggfpjdmfg#aztfpw#le#wkfPlnf#sflsofsqlgv`wjlm/pjgf#le#wkfmftpofwwfqpvpfg#az#wkfgltm#wl#wkfb``fswfg#azojuf#jm#wkfbwwfnswp#wllvwpjgf#wkfeqfrvfm`jfpKltfufq/#jmsqldqbnnfqpbw#ofbpw#jmbssql{jnbwfbowklvdk#jwtbp#sbqw#lebmg#ubqjlvpDlufqmlq#lewkf#bqwj`ofwvqmfg#jmwl=?b#kqfe>!,wkf#f`lmlnzjp#wkf#nlpwnlpw#tjgfoztlvog#obwfqbmg#sfqkbspqjpf#wl#wkfl``vqp#tkfmvmgfq#tkj`k`lmgjwjlmp-wkf#tfpwfqmwkflqz#wkbwjp#sqlgv`fgwkf#`jwz#lejm#tkj`k#kfpffm#jm#wkfwkf#`fmwqboavjogjmd#lenbmz#le#kjpbqfb#le#wkfjp#wkf#lmoznlpw#le#wkfnbmz#le#wkfwkf#TfpwfqmWkfqf#jp#mlf{wfmgfg#wlPwbwjpwj`bo`lopsbm>1#\\x7Fpklqw#pwlqzslppjaof#wlwlsloldj`bo`qjwj`bo#leqfslqwfg#wlb#@kqjpwjbmgf`jpjlm#wljp#frvbo#wlsqlaofnp#leWkjp#`bm#afnfq`kbmgjpfelq#nlpw#leml#fujgfm`ffgjwjlmp#lefofnfmwp#jm%rvlw8-#Wkf`ln,jnbdfp,tkj`k#nbhfpwkf#sql`fppqfnbjmp#wkfojwfqbwvqf/jp#b#nfnafqwkf#slsvobqwkf#bm`jfmwsqlaofnp#jmwjnf#le#wkfgfefbwfg#azalgz#le#wkfb#eft#zfbqpnv`k#le#wkfwkf#tlqh#le@bojelqmjb/pfqufg#bp#bdlufqmnfmw-`lm`fswp#lenlufnfmw#jm\\n\\n?gju#jg>!jw!#ubovf>!obmdvbdf#lebp#wkfz#bqfsqlgv`fg#jmjp#wkbw#wkff{sobjm#wkfgju=?,gju= Kltfufq#wkfofbg#wl#wkf\\n?b#kqfe>!,tbp#dqbmwfgsflsof#kbuf`lmwjmvbooztbp#pffm#bpbmg#qfobwfgwkf#qlof#lesqlslpfg#azle#wkf#afpwfb`k#lwkfq-@lmpwbmwjmfsflsof#eqlngjbof`wp#lewl#qfujpjlmtbp#qfmbnfgb#plvq`f#lewkf#jmjwjboobvm`kfg#jmsqlujgf#wkfwl#wkf#tfpwtkfqf#wkfqfbmg#pjnjobqafwtffm#wtljp#bopl#wkfFmdojpk#bmg`lmgjwjlmp/wkbw#jw#tbpfmwjwofg#wlwkfnpfoufp-rvbmwjwz#leqbmpsbqfm`zwkf#pbnf#bpwl#iljm#wkf`lvmwqz#bmgwkjp#jp#wkfWkjp#ofg#wlb#pwbwfnfmw`lmwqbpw#wlobpwJmgf{Lewkqlvdk#kjpjp#gfpjdmfgwkf#wfqn#jpjp#sqlujgfgsqlwf`w#wkfmd?,b=?,oj=Wkf#`vqqfmwwkf#pjwf#lepvapwbmwjbof{sfqjfm`f/jm#wkf#Tfpwwkfz#pklvogpolufm(ajmb`lnfmwbqjlpvmjufqpjgbg`lmgj`jlmfpb`wjujgbgfpf{sfqjfm`jbwf`mlold/Absqlgv``j/_msvmwvb`j/_mbsoj`b`j/_m`lmwqbpf/]b`bwfdlq/Abpqfdjpwqbqpfsqlefpjlmbowqbwbnjfmwlqfd/Apwqbwfpf`qfwbq/Absqjm`jsbofpsqlwf``j/_mjnslqwbmwfpjnslqwbm`jbslpjajojgbgjmwfqfpbmwf`qf`jnjfmwlmf`fpjgbgfppvp`qjajqpfbpl`jb`j/_mgjpslmjaofpfubovb`j/_mfpwvgjbmwfpqfpslmpbaofqfplov`j/_mdvbgbobibqbqfdjpwqbglplslqwvmjgbg`lnfq`jbofpelwldqbe/Abbvwlqjgbgfpjmdfmjfq/Abwfofujpj/_m`lnsfwfm`jblsfqb`jlmfpfpwbaof`jglpjnsofnfmwfb`wvbonfmwfmbufdb`j/_m`lmelqnjgbgojmf.kfjdkw9elmw.ebnjoz9!#9#!kwws9,,bssoj`bwjlmpojmh!#kqfe>!psf`jej`booz,,?"X@GBWBX Lqdbmjybwjlmgjpwqjavwjlm3s{8#kfjdkw9qfobwjlmpkjsgfuj`f.tjgwk?gju#`obpp>!?obafo#elq>!qfdjpwqbwjlm?,mlp`qjsw= ,jmgf{-kwno!tjmglt-lsfm+#"jnslqwbmw8bssoj`bwjlm,jmgfsfmgfm`f,,ttt-dlldoflqdbmjybwjlmbvwl`lnsofwfqfrvjqfnfmwp`lmpfqubwjuf?elqn#mbnf>!jmwfoof`wvbonbqdjm.ofew92;wk#`fmwvqzbm#jnslqwbmwjmpwjwvwjlmpbaaqfujbwjlm?jnd#`obpp>!lqdbmjpbwjlm`jujojybwjlm2:wk#`fmwvqzbq`kjwf`wvqfjm`lqslqbwfg13wk#`fmwvqz.`lmwbjmfq!=nlpw#mlwbaoz,=?,b=?,gju=mlwjej`bwjlm$vmgfejmfg$*Evqwkfqnlqf/afojfuf#wkbwjmmfqKWNO#>#sqjlq#wl#wkfgqbnbwj`boozqfefqqjmd#wlmfdlwjbwjlmpkfbgrvbqwfqpPlvwk#Beqj`bvmpv``fppevoSfmmpzoubmjbBp#b#qfpvow/?kwno#obmd>!%ow8,pvs%dw8gfbojmd#tjwkskjobgfoskjbkjpwlqj`booz*8?,p`qjsw= sbggjmd.wls9f{sfqjnfmwbodfwBwwqjavwfjmpwqv`wjlmpwf`kmloldjfpsbqw#le#wkf#>evm`wjlm+*xpvap`qjswjlmo-gwg!= ?kwdfldqbskj`bo@lmpwjwvwjlm$/#evm`wjlm+pvsslqwfg#azbdqj`vowvqbo`lmpwqv`wjlmsvaoj`bwjlmpelmw.pjyf9#2b#ubqjfwz#le?gju#pwzof>!Fm`z`olsfgjbjeqbnf#pq`>!gfnlmpwqbwfgb``lnsojpkfgvmjufqpjwjfpGfnldqbskj`p*8?,p`qjsw=?gfgj`bwfg#wlhmltofgdf#lepbwjpeb`wjlmsbqwj`vobqoz?,gju=?,gju=Fmdojpk#+VP*bssfmg@kjog+wqbmpnjppjlmp-#Kltfufq/#jmwfoojdfm`f!#wbajmgf{>!eolbw9qjdkw8@lnnlmtfbowkqbmdjmd#eqlnjm#tkj`k#wkfbw#ofbpw#lmfqfsqlgv`wjlmfm`z`olsfgjb8elmw.pjyf92ivqjpgj`wjlmbw#wkbw#wjnf!=?b#`obpp>!Jm#bggjwjlm/gfp`qjswjlm(`lmufqpbwjlm`lmwb`w#tjwkjp#dfmfqboozq!#`lmwfmw>!qfsqfpfmwjmd%ow8nbwk%dw8sqfpfmwbwjlml``bpjlmbooz?jnd#tjgwk>!mbujdbwjlm!=`lnsfmpbwjlm`kbnsjlmpkjsnfgjb>!boo!#ujlobwjlm#leqfefqfm`f#wlqfwvqm#wqvf8Pwqj`w,,FM!#wqbmpb`wjlmpjmwfqufmwjlmufqjej`bwjlmJmelqnbwjlm#gjeej`vowjfp@kbnsjlmpkjs`bsbajojwjfp?"Xfmgje^..=~ ?,p`qjsw= @kqjpwjbmjwzelq#f{bnsof/Sqlefppjlmboqfpwqj`wjlmppvddfpw#wkbwtbp#qfofbpfg+pv`k#bp#wkfqfnluf@obpp+vmfnsolznfmwwkf#Bnfqj`bmpwqv`wvqf#le,jmgf{-kwno#svaojpkfg#jmpsbm#`obpp>!!=?b#kqfe>!,jmwqlgv`wjlmafolmdjmd#wl`objnfg#wkbw`lmpfrvfm`fp?nfwb#mbnf>!Dvjgf#wl#wkflufqtkfonjmdbdbjmpw#wkf#`lm`fmwqbwfg/ -mlmwlv`k#lapfqubwjlmp?,b= ?,gju= e#+gl`vnfmw-alqgfq9#2s{#xelmw.pjyf92wqfbwnfmw#le3!#kfjdkw>!2nlgjej`bwjlmJmgfsfmgfm`fgjujgfg#jmwldqfbwfq#wkbmb`kjfufnfmwpfpwbaojpkjmdIbubP`qjsw!#mfufqwkfofpppjdmjej`bm`fAqlbg`bpwjmd=%maps8?,wg=`lmwbjmfq!= pv`k#bp#wkf#jmeovfm`f#leb#sbqwj`vobqpq`>$kwws9,,mbujdbwjlm!#kboe#le#wkf#pvapwbmwjbo#%maps8?,gju=bgubmwbdf#legjp`lufqz#leevmgbnfmwbo#nfwqlslojwbmwkf#lsslpjwf!#{no9obmd>!gfojafqbwfozbojdm>`fmwfqfulovwjlm#lesqfpfqubwjlmjnsqlufnfmwpafdjmmjmd#jmIfpvp#@kqjpwSvaoj`bwjlmpgjpbdqffnfmwwf{w.bojdm9q/#evm`wjlm+*pjnjobqjwjfpalgz=?,kwno=jp#`vqqfmwozboskbafwj`bojp#plnfwjnfpwzsf>!jnbdf,nbmz#le#wkf#eolt9kjggfm8bubjobaof#jmgfp`qjaf#wkff{jpwfm`f#leboo#lufq#wkfwkf#Jmwfqmfw\\n?vo#`obpp>!jmpwboobwjlmmfjdkalqkllgbqnfg#elq`fpqfgv`jmd#wkf`lmwjmvfp#wlMlmfwkfofpp/wfnsfqbwvqfp \\n\\n?b#kqfe>!`olpf#wl#wkff{bnsofp#le#jp#balvw#wkf+pff#afolt*-!#jg>!pfbq`ksqlefppjlmbojp#bubjobaofwkf#leej`jbo\\n\\n?,p`qjsw= \\n\\n?gju#jg>!b``fofqbwjlmwkqlvdk#wkf#Kboo#le#Ebnfgfp`qjswjlmpwqbmpobwjlmpjmwfqefqfm`f#wzsf>$wf{w,qf`fmw#zfbqpjm#wkf#tlqogufqz#slsvobqxab`hdqlvmg9wqbgjwjlmbo#plnf#le#wkf#`lmmf`wfg#wlf{soljwbwjlmfnfqdfm`f#le`lmpwjwvwjlmB#Kjpwlqz#lepjdmjej`bmw#nbmveb`wvqfgf{sf`wbwjlmp=?mlp`qjsw=?`bm#af#elvmgaf`bvpf#wkf#kbp#mlw#affmmfjdkalvqjmdtjwklvw#wkf#bggfg#wl#wkf\\n?oj#`obpp>!jmpwqvnfmwboPlujfw#Vmjlmb`hmltofgdfgtkj`k#`bm#afmbnf#elq#wkfbwwfmwjlm#wlbwwfnswp#wl#gfufolsnfmwpJm#eb`w/#wkf?oj#`obpp>!bjnsoj`bwjlmppvjwbaof#elqnv`k#le#wkf#`lolmjybwjlmsqfpjgfmwjbo`bm`foAvaaof#Jmelqnbwjlmnlpw#le#wkf#jp#gfp`qjafgqfpw#le#wkf#nlqf#lq#ofppjm#PfswfnafqJmwfoojdfm`fpq`>!kwws9,,s{8#kfjdkw9#bubjobaof#wlnbmveb`wvqfqkvnbm#qjdkwpojmh#kqfe>!,bubjobajojwzsqlslqwjlmbolvwpjgf#wkf#bpwqlmlnj`bokvnbm#afjmdpmbnf#le#wkf#bqf#elvmg#jmbqf#abpfg#lmpnboofq#wkbmb#sfqplm#tklf{sbmpjlm#lebqdvjmd#wkbwmlt#hmltm#bpJm#wkf#fbqozjmwfqnfgjbwfgfqjufg#eqlnP`bmgjmbujbm?,b=?,gju= `lmpjgfq#wkfbm#fpwjnbwfgwkf#Mbwjlmbo?gju#jg>!sbdqfpvowjmd#jm`lnnjppjlmfgbmboldlvp#wlbqf#qfrvjqfg,vo= ?,gju= tbp#abpfg#lmbmg#af`bnf#b%maps8%maps8w!#ubovf>!!#tbp#`bswvqfgml#nlqf#wkbmqfpsf`wjufoz`lmwjmvf#wl#= ?kfbg= ?tfqf#`qfbwfgnlqf#dfmfqbojmelqnbwjlm#vpfg#elq#wkfjmgfsfmgfmw#wkf#Jnsfqjbo`lnslmfmw#lewl#wkf#mlqwkjm`ovgf#wkf#@lmpwqv`wjlmpjgf#le#wkf#tlvog#mlw#afelq#jmpwbm`fjmufmwjlm#lenlqf#`lnsof{`loof`wjufozab`hdqlvmg9#wf{w.bojdm9#jwp#lqjdjmbojmwl#b``lvmwwkjp#sql`fppbm#f{wfmpjufkltfufq/#wkfwkfz#bqf#mlwqfif`wfg#wkf`qjwj`jpn#legvqjmd#tkj`ksqlabaoz#wkfwkjp#bqwj`of+evm`wjlm+*xJw#pklvog#afbm#bdqffnfmwb``jgfmwboozgjeefqp#eqlnBq`kjwf`wvqfafwwfq#hmltmbqqbmdfnfmwpjmeovfm`f#lmbwwfmgfg#wkfjgfmwj`bo#wlplvwk#le#wkfsbpp#wkqlvdk{no!#wjwof>!tfjdkw9alog8`qfbwjmd#wkfgjpsobz9mlmfqfsob`fg#wkf?jnd#pq`>!,jkwwsp9,,ttt-Tlqog#Tbq#JJwfpwjnlmjbopelvmg#jm#wkfqfrvjqfg#wl#bmg#wkbw#wkfafwtffm#wkf#tbp#gfpjdmfg`lmpjpwp#le#`lmpjgfqbaozsvaojpkfg#azwkf#obmdvbdf@lmpfqubwjlm`lmpjpwfg#leqfefq#wl#wkfab`h#wl#wkf#`pp!#nfgjb>!Sflsof#eqln#bubjobaof#lmsqlufg#wl#afpvddfpwjlmp!tbp#hmltm#bpubqjfwjfp#leojhfoz#wl#af`lnsqjpfg#lepvsslqw#wkf#kbmgp#le#wkf`lvsofg#tjwk`lmmf`w#bmg#alqgfq9mlmf8sfqelqnbm`fpafelqf#afjmdobwfq#af`bnf`bo`vobwjlmplewfm#`boofgqfpjgfmwp#lenfbmjmd#wkbw=?oj#`obpp>!fujgfm`f#elqf{sobmbwjlmpfmujqlmnfmwp!=?,b=?,gju=tkj`k#booltpJmwqlgv`wjlmgfufolsfg#azb#tjgf#qbmdflm#afkboe#leubojdm>!wls!sqjm`jsof#lebw#wkf#wjnf/?,mlp`qjsw=pbjg#wl#kbufjm#wkf#ejqpwtkjof#lwkfqpkzslwkfwj`boskjolplskfqpsltfq#le#wkf`lmwbjmfg#jmsfqelqnfg#azjmbajojwz#wltfqf#tqjwwfmpsbm#pwzof>!jmsvw#mbnf>!wkf#rvfpwjlmjmwfmgfg#elqqfif`wjlm#lejnsojfp#wkbwjmufmwfg#wkfwkf#pwbmgbqgtbp#sqlabaozojmh#afwtffmsqlefpplq#lejmwfqb`wjlmp`kbmdjmd#wkfJmgjbm#L`fbm#`obpp>!obpwtlqhjmd#tjwk$kwws9,,ttt-zfbqp#afelqfWkjp#tbp#wkfqf`qfbwjlmbofmwfqjmd#wkfnfbpvqfnfmwpbm#f{wqfnfozubovf#le#wkfpwbqw#le#wkf ?,p`qjsw= bm#feelqw#wljm`qfbpf#wkfwl#wkf#plvwkpsb`jmd>!3!=pveej`jfmwozwkf#Fvqlsfbm`lmufqwfg#wl`ofbqWjnflvwgjg#mlw#kbuf`lmpfrvfmwozelq#wkf#mf{wf{wfmpjlm#lef`lmlnj`#bmgbowklvdk#wkfbqf#sqlgv`fgbmg#tjwk#wkfjmpveej`jfmwdjufm#az#wkfpwbwjmd#wkbwf{sfmgjwvqfp?,psbm=?,b= wklvdkw#wkbwlm#wkf#abpjp`foosbggjmd>jnbdf#le#wkfqfwvqmjmd#wljmelqnbwjlm/pfsbqbwfg#azbppbppjmbwfgp!#`lmwfmw>!bvwklqjwz#lemlqwktfpwfqm?,gju= ?gju#!=?,gju= ##`lmpvowbwjlm`lnnvmjwz#lewkf#mbwjlmbojw#pklvog#afsbqwj`jsbmwp#bojdm>!ofewwkf#dqfbwfpwpfof`wjlm#lepvsfqmbwvqbogfsfmgfmw#lmjp#nfmwjlmfgbooltjmd#wkftbp#jmufmwfgb``lnsbmzjmdkjp#sfqplmbobubjobaof#bwpwvgz#le#wkflm#wkf#lwkfqf{f`vwjlm#leKvnbm#Qjdkwpwfqnp#le#wkfbppl`jbwjlmpqfpfbq`k#bmgpv``ffgfg#azgfefbwfg#wkfbmg#eqln#wkfavw#wkfz#bqf`lnnbmgfq#lepwbwf#le#wkfzfbqp#le#bdfwkf#pwvgz#le?vo#`obpp>!psob`f#jm#wkftkfqf#kf#tbp?oj#`obpp>!ewkfqf#bqf#mltkj`k#af`bnfkf#svaojpkfgf{sqfppfg#jmwl#tkj`k#wkf`lnnjppjlmfqelmw.tfjdkw9wfqqjwlqz#lef{wfmpjlmp!=Qlnbm#Fnsjqffrvbo#wl#wkfJm#`lmwqbpw/kltfufq/#bmgjp#wzsj`boozbmg#kjp#tjef+bopl#`boofg=?vo#`obpp>!feef`wjufoz#fuloufg#jmwlpffn#wl#kbuftkj`k#jp#wkfwkfqf#tbp#mlbm#f{`foofmwboo#le#wkfpfgfp`qjafg#azJm#sqb`wj`f/aqlbg`bpwjmd`kbqdfg#tjwkqfeof`wfg#jmpvaif`wfg#wlnjojwbqz#bmgwl#wkf#sljmwf`lmlnj`boozpfwWbqdfwjmdbqf#b`wvboozuj`wlqz#lufq+*8?,p`qjsw=`lmwjmvlvpozqfrvjqfg#elqfulovwjlmbqzbm#feef`wjufmlqwk#le#wkf/#tkj`k#tbp#eqlmw#le#wkflq#lwkfqtjpfplnf#elqn#lekbg#mlw#affmdfmfqbwfg#azjmelqnbwjlm-sfqnjwwfg#wljm`ovgfp#wkfgfufolsnfmw/fmwfqfg#jmwlwkf#sqfujlvp`lmpjpwfmwozbqf#hmltm#bpwkf#ejfog#lewkjp#wzsf#ledjufm#wl#wkfwkf#wjwof#le`lmwbjmp#wkfjmpwbm`fp#lejm#wkf#mlqwkgvf#wl#wkfjqbqf#gfpjdmfg`lqslqbwjlmptbp#wkbw#wkflmf#le#wkfpfnlqf#slsvobqpv``ffgfg#jmpvsslqw#eqlnjm#gjeefqfmwglnjmbwfg#azgfpjdmfg#elqltmfqpkjs#lebmg#slppjaozpwbmgbqgjyfgqfpslmpfWf{wtbp#jmwfmgfgqf`fjufg#wkfbppvnfg#wkbwbqfbp#le#wkfsqjnbqjoz#jmwkf#abpjp#lejm#wkf#pfmpfb``lvmwp#elqgfpwqlzfg#azbw#ofbpw#wtltbp#gf`obqfg`lvog#mlw#afPf`qfwbqz#lebssfbq#wl#afnbqdjm.wls92,]_p(\\x7F_p(\\\',df*xwkqlt#f~8wkf#pwbqw#lewtl#pfsbqbwfobmdvbdf#bmgtkl#kbg#affmlsfqbwjlm#legfbwk#le#wkfqfbo#mvnafqp\\n?ojmh#qfo>!sqlujgfg#wkfwkf#pwlqz#le`lnsfwjwjlmpfmdojpk#+VH*fmdojpk#+VP*<p<R<Q<_<R<W<M=l<S=m<V<T=m=l<S=m<V<T=m=l<S=m<V<R5h4U4]4D5f4E\\nAOGx\\bTA\\nzk\\vBl\\bQ\\x7F\\bTA\\nzk\\vUm\\bQ\\x7F\\bTA\\nzk\\npeu| i@ cT\\bVV\\n\\\\}\\nxS VptSk` [X [X\\vHR\\bPv\\bTW\\bUe\\n\\x7Fa\\bQp\\v_W\\vWs\\nxS\\vAz\\n_yKhjmelqnb`j/_mkfqqbnjfmwbpfof`wq/_mj`lgfp`qjs`j/_m`obpjej`bglp`lml`jnjfmwlsvaoj`b`j/_mqfob`jlmbgbpjmelqn/Mwj`bqfob`jlmbglpgfsbqwbnfmwlwqbabibglqfpgjqf`wbnfmwfbzvmwbnjfmwlnfq`bglOjaqf`lmw/M`wfmlpkbajwb`jlmfp`vnsojnjfmwlqfpwbvqbmwfpgjpslpj`j/_m`lmpf`vfm`jbfof`wq/_mj`bbsoj`b`jlmfpgfp`lmf`wbgljmpwbob`j/_mqfbojyb`j/_mvwjojyb`j/_mfm`j`olsfgjbfmefqnfgbgfpjmpwqvnfmwlpf{sfqjfm`jbpjmpwjwv`j/_msbqwj`vobqfppva`bwfdlqjb=n<R<W=`<V<R<L<R=m=m<T<T=l<\\\\<]<R=n=g<]<R<W=`=d<Y<S=l<R=m=n<R<P<R<Z<Y=n<Y<X=l=o<_<T=i=m<W=o=k<\\\\<Y=m<Y<U=k<\\\\=m<^=m<Y<_<X<\\\\<L<R=m=m<T=c<p<R=m<V<^<Y<X=l=o<_<T<Y<_<R=l<R<X<\\\\<^<R<S=l<R=m<X<\\\\<Q<Q=g=i<X<R<W<Z<Q=g<T<P<Y<Q<Q<R<p<R=m<V<^=g=l=o<]<W<Y<U<p<R=m<V<^<\\\\=m=n=l<\\\\<Q=g<Q<T=k<Y<_<R=l<\\\\<]<R=n<Y<X<R<W<Z<Y<Q=o=m<W=o<_<T=n<Y<S<Y=l=`<r<X<Q<\\\\<V<R<S<R=n<R<P=o=l<\\\\<]<R=n=o<\\\\<S=l<Y<W=c<^<R<R<]=e<Y<R<X<Q<R<_<R=m<^<R<Y<_<R=m=n<\\\\=n=`<T<X=l=o<_<R<U=h<R=l=o<P<Y=i<R=l<R=d<R<S=l<R=n<T<^=m=m=g<W<V<\\\\<V<\\\\<Z<X=g<U<^<W<\\\\=m=n<T<_=l=o<S<S=g<^<P<Y=m=n<Y=l<\\\\<]<R=n<\\\\=m<V<\\\\<[<\\\\<W<S<Y=l<^=g<U<X<Y<W<\\\\=n=`<X<Y<Q=`<_<T<S<Y=l<T<R<X<]<T<[<Q<Y=m<R=m<Q<R<^<Y<P<R<P<Y<Q=n<V=o<S<T=n=`<X<R<W<Z<Q<\\\\=l<\\\\<P<V<\\\\=i<Q<\\\\=k<\\\\<W<R<L<\\\\<]<R=n<\\\\<N<R<W=`<V<R=m<R<^=m<Y<P<^=n<R=l<R<U<Q<\\\\=k<\\\\<W<\\\\=m<S<T=m<R<V=m<W=o<Z<]=g=m<T=m=n<Y<P<S<Y=k<\\\\=n<T<Q<R<^<R<_<R<S<R<P<R=e<T=m<\\\\<U=n<R<^<S<R=k<Y<P=o<S<R<P<R=e=`<X<R<W<Z<Q<R=m=m=g<W<V<T<]=g=m=n=l<R<X<\\\\<Q<Q=g<Y<P<Q<R<_<T<Y<S=l<R<Y<V=n<M<Y<U=k<\\\\=m<P<R<X<Y<W<T=n<\\\\<V<R<_<R<R<Q<W<\\\\<U<Q<_<R=l<R<X<Y<^<Y=l=m<T=c=m=n=l<\\\\<Q<Y=h<T<W=`<P=g=o=l<R<^<Q=c=l<\\\\<[<Q=g=i<T=m<V<\\\\=n=`<Q<Y<X<Y<W=b=c<Q<^<\\\\=l=c<P<Y<Q=`=d<Y<P<Q<R<_<T=i<X<\\\\<Q<Q<R<U<[<Q<\\\\=k<T=n<Q<Y<W=`<[=c=h<R=l=o<P<\\\\<N<Y<S<Y=l=`<P<Y=m=c=j<\\\\<[<\\\\=e<T=n=g<w=o=k=d<T<Y\\fHD\\fHU\\fIl\\fHn\\fHy\\fH\\\\\\fHD\\fIk\\fHi\\fHF\\fHD\\fIk\\fHy\\fHS\\fHC\\fHR\\fHy\\fH\\\\\\fIk\\fHn\\fHi\\fHD\\fIa\\fHC\\fHy\\fIa\\fHC\\fHR\\fH{\\fHR\\fHk\\fHM\\fH@\\fHR\\fH\\\\\\fIk\\fHy\\fHS\\fHT\\fIl\\fHJ\\fHS\\fHC\\fHR\\fHF\\fHU\\fH^\\fIk\\fHT\\fHS\\fHn\\fHU\\fHA\\fHR\\fH\\\\\\fHH\\fHi\\fHF\\fHD\\fIl\\fHY\\fHR\\fH^\\fIk\\fHT\\fIk\\fHY\\fHR\\fHy\\fH\\\\\\fHH\\fIk\\fHB\\fIk\\fH\\\\\\fIk\\fHU\\fIg\\fHD\\fIk\\fHT\\fHy\\fHH\\fIk\\fH@\\fHU\\fIm\\fHH\\fHT\\fHR\\fHk\\fHs\\fHU\\fIg\\fH{\\fHR\\fHp\\fHR\\fHD\\fIk\\fHB\\fHS\\fHD\\fHs\\fHy\\fH\\\\\\fHH\\fHR\\fHy\\fH\\\\\\fHD\\fHR\\fHe\\fHD\\fHy\\fIk\\fHC\\fHU\\fHR\\fHm\\fHT\\fH@\\fHT\\fIk\\fHA\\fHR\\fH[\\fHR\\fHj\\fHF\\fHy\\fIk\\fH^\\fHS\\fHC\\fIk\\fHZ\\fIm\\fH\\\\\\fIn\\fHk\\fHT\\fHy\\fIk\\fHt\\fHn\\fHs\\fIk\\fHB\\fIk\\fH\\\\\\fIl\\fHT\\fHy\\fHH\\fHR\\fHB\\fIk\\fH\\\\\\fHR\\fH^\\fIk\\fHy\\fH\\\\\\fHi\\fHK\\fHS\\fHy\\fHi\\fHF\\fHD\\fHR\\fHT\\fHB\\fHR\\fHp\\fHB\\fIm\\fHq\\fIk\\fHy\\fHR\\fH\\\\\\fHO\\fHU\\fIg\\fHH\\fHR\\fHy\\fHM\\fHP\\fIl\\fHC\\fHU\\fHR\\fHn\\fHU\\fIg\\fHs\\fH^\\fHZ\\fH@\\fIa\\fHJ\\fH^\\fHS\\fHC\\fHR\\fHp\\fIl\\fHY\\fHD\\fHp\\fHR\\fHH\\fHR\\fHy\\fId\\fHT\\fIk\\fHj\\fHF\\fHy\\fHR\\fHY\\fHR\\fH^\\fIl\\fHJ\\fIk\\fHD\\fIk\\fHF\\fIn\\fH\\\\\\fIl\\fHF\\fHR\\fHD\\fIl\\fHe\\fHT\\fHy\\fIk\\fHU\\fIg\\fH{\\fIl\\fH@\\fId\\fHL\\fHy\\fHj\\fHF\\fHy\\fIl\\fHY\\fH\\\\\\fIa\\fH[\\fH{\\fHR\\fHn\\fHY\\fHj\\fHF\\fHy\\fIg\\fHp\\fHS\\fH^\\fHR\\fHp\\fHR\\fHD\\fHR\\fHT\\fHU\\fHB\\fHH\\fHU\\fHB\\fIk\\fHn\\fHe\\fHD\\fHy\\fIl\\fHC\\fHR\\fHU\\fIn\\fHJ\\fH\\\\\\fIa\\fHp\\fHT\\fIn\\fHv\\fIl\\fHF\\fHT\\fHn\\fHJ\\fHT\\fHY\\fHR\\fH^\\fHU\\fIg\\fHD\\fHR\\fHU\\fIg\\fHH\\fIl\\fHp\\fId\\fHT\\fIk\\fHY\\fHR\\fHF\\fHT\\fHp\\fHD\\fHH\\fHR\\fHD\\fIk\\fHH\\fHR\\fHp\\fHR\\fH\\\\\\fIl\\fHt\\fHR\\fHC\\fH^\\fHp\\fHS\\fH^\\fIk\\fHD\\fIl\\fHv\\fIk\\fHp\\fHR\\fHn\\fHv\\fHF\\fHH\\fIa\\fH\\\\\\fH{\\fIn\\fH{\\fH^\\fHp\\fHR\\fHH\\fIk\\fH@\\fHR\\fHU\\fH\\\\\\fHj\\fHF\\fHD\\fIk\\fHY\\fHR\\fHU\\fHD\\fHk\\fHT\\fHy\\fHR\\fHT\\fIm\\fH@\\fHU\\fH\\\\\\fHU\\fHD\\fIk\\fHk\\fHT\\fHT\\fIk\\fHT\\fHU\\fHS\\fHH\\fH@\\fHM\\fHP\\fIk\\fHt\\fHs\\fHD\\fHR\\fHH\\fH^\\fHR\\fHZ\\fHF\\fHR\\fHn\\fHv\\fHZ\\fIa\\fH\\\\\\fIl\\fH@\\fHM\\fHP\\fIl\\fHU\\fIg\\fHH\\fIk\\fHT\\fHR\\fHd\\fHs\\fHZ\\fHR\\fHC\\fHJ\\fHT\\fHy\\fHH\\fIl\\fHp\\fHR\\fHH\\fIl\\fHY\\fHR\\fH^\\fHR\\fHU\\fHp\\fHR\\fH\\\\\\fHF\\fHs\\fHD\\fHR\\fH\\\\\\fHz\\fHD\\fIk\\fHT\\fHM\\fHP\\fHy\\fHB\\fHS\\fH^\\fHR\\fHe\\fHT\\fHy\\fIl\\fHy\\fIk\\fHY\\fH^\\fH^\\fH{\\fHH\\fHR\\fHz\\fHR\\fHD\\fHR\\fHi\\fH\\\\\\fIa\\fHI\\fHp\\fHU\\fHR\\fHn\\fHJ\\fIk\\fHz\\fHR\\fHF\\fHU\\fH^\\fIl\\fHD\\fHS\\fHC\\fHB\\fH@\\fHS\\fHD\\fHR\\fH@\\fId\\fHn\\fHy\\fHy\\fHU\\fIl\\fHn\\fHy\\fHU\\fHD\\fHR\\fHJ\\fIk\\fHH\\fHR\\fHU\\fHB\\fH^\\fIk\\fHy\\fHR\\fHG\\fIl\\fHp\\fH@\\fHy\\fHS\\fHH\\fIm\\fH\\\\\\fHH\\fHB\\fHR\\fHn\\fH{\\fHY\\fHU\\fIl\\fHn\\fH\\\\\\fIg\\fHp\\fHP\\fHB\\fHS\\fH^\\fIl\\fHj\\fH\\\\\\fIg\\fHF\\fHT\\fIk\\fHD\\fHR\\fHC\\fHR\\fHJ\\fHY\\fH^\\fIk\\fHD\\fIk\\fHz\\fHR\\fHH\\fHR\\fHy\\fH\\\\\\fIl\\fH@\\fHe\\fHD\\fHy\\fHR\\fHp\\fHY\\fHR\\fH@\\fHF\\fIn\\fH\\\\\\fHR\\fH@\\fHM\\fHP\\fHR\\fHT\\fI`\\fHJ\\fHR\\fHZ\\fIk\\fHC\\fH\\\\\\fHy\\fHS\\fHC\\fIk\\fHy\\fHU\\fHR\\fHn\\fHi\\fHy\\fHT\\fH\\\\\\fH@\\fHD\\fHR\\fHc\\fHY\\fHU\\fHR\\fHn\\fHT\\fIa\\fHI\\fH^\\fHB\\fHS\\fH^\\fIk\\fH^\\fIk\\fHz\\fHy\\fHY\\fHS\\fH[\\fHC\\fHy\\fIa\\fH\\\\\\fHn\\fHT\\fHB\\fIn\\fHU\\fHI\\fHR\\fHD\\fHR4F4_4F4[5f4U5i4X4K4]5o4E4D5d4K4_4[4E4K5h4Y5m4A4E5i5d4K4Z5f4U4K5h4B4K4Y4E4K5h5i4^5f4C4K5h4U4K5i4E4K5h5o4K4F4D4K5h4]4C5d4C4D4]5j4K5i4@4K5h4C5d5h4E4K5h4U4K5h5i4K5h5i5d5n4U4K5h4U4]4D5f4K5h4_4]5f4U4K5h4@5d4K5h4K5h4\\\\5k4K4D4K5h4A5f4K4E4K5h4A5n5d5n4K5h5o4]5f5i4K5h4U4]4K5n5i4A5m5d4T4E4K5h4G4K5j5f5i4X4K5k4C4E4K5h5i4]4O4E4K5h5n4]4N5j4K5h4X4D4K4D4K5h4A5d4K4]4K5h4@4C5f4C4K5h4O4_4]4E4K5h4U5h5d5i5i4@5i5d4U4E4K5h4]4A5i5j4K5h5j5n4K4[5m5h4_4[5f5j4K5h5o5d5f4F4K5h4C5j5f4K4D4]5o4K4F5k4K5h4]5f4K4Z4F4A5f4K4F5f4D4F5d5n5f4F4K5h4O5d5h5e4K5h4D4]5f4C4K5h5o5h4K5i4K5h4]4K4D4[4K5h4X4B4Y5f4_5f4K4]4K4F4K5h4G4K5h4G4K5h4Y5h4K4E4K5h4A4C5f4G4K5h4^5d4K4]4K5h4B5h5f4@4K5h4@5i5f4U4K5h4U4K5i5k4K5h4@5i4K5h4K5h4_4K4U4E5i4X4K5k4C5k4K5h4]4J5f4_4K5h4C4B5d5h4K5h5m5j5f4E4K5h5o4F4K4D4K5h4C5d4]5f4K5h4C4]5d4_4K4_4F4V4]5n4F4Y4K5i5f5i4K5h4D5j4K4F4K5h4U4T5f5ifmwfqwbjmnfmwvmgfqpwbmgjmd#>#evm`wjlm+*-isd!#tjgwk>!`lmejdvqbwjlm-smd!#tjgwk>!?algz#`obpp>!Nbwk-qbmgln+*`lmwfnslqbqz#Vmjwfg#Pwbwfp`jq`vnpwbm`fp-bssfmg@kjog+lqdbmjybwjlmp?psbm#`obpp>!!=?jnd#pq`>!,gjpwjmdvjpkfgwklvpbmgp#le#`lnnvmj`bwjlm`ofbq!=?,gju=jmufpwjdbwjlmebuj`lm-j`l!#nbqdjm.qjdkw9abpfg#lm#wkf#Nbppb`kvpfwwpwbaof#alqgfq>jmwfqmbwjlmbobopl#hmltm#bpsqlmvm`jbwjlmab`hdqlvmg9 esbggjmd.ofew9Elq#f{bnsof/#njp`foobmflvp%ow8,nbwk%dw8spz`kloldj`bojm#sbqwj`vobqfbq`k!#wzsf>!elqn#nfwklg>!bp#lsslpfg#wlPvsqfnf#@lvqwl``bpjlmbooz#Bggjwjlmbooz/Mlqwk#Bnfqj`bs{8ab`hdqlvmglsslqwvmjwjfpFmwfqwbjmnfmw-wlOltfq@bpf+nbmveb`wvqjmdsqlefppjlmbo#`lnajmfg#tjwkElq#jmpwbm`f/`lmpjpwjmd#le!#nb{ofmdwk>!qfwvqm#ebopf8`lmp`jlvpmfppNfgjwfqqbmfbmf{wqblqgjmbqzbppbppjmbwjlmpvapfrvfmwoz#avwwlm#wzsf>!wkf#mvnafq#lewkf#lqjdjmbo#`lnsqfkfmpjufqfefqp#wl#wkf?,vo= ?,gju= skjolplskj`bool`bwjlm-kqfetbp#svaojpkfgPbm#Eqbm`jp`l+evm`wjlm+*x ?gju#jg>!nbjmplskjpwj`bwfgnbwkfnbwj`bo#,kfbg= ?algzpvddfpwp#wkbwgl`vnfmwbwjlm`lm`fmwqbwjlmqfobwjlmpkjspnbz#kbuf#affm+elq#f{bnsof/Wkjp#bqwj`of#jm#plnf#`bpfpsbqwp#le#wkf#gfejmjwjlm#leDqfbw#Aqjwbjm#`foosbggjmd>frvjubofmw#wlsob`fklogfq>!8#elmw.pjyf9#ivpwjej`bwjlmafojfufg#wkbwpveefqfg#eqlnbwwfnswfg#wl#ofbgfq#le#wkf`qjsw!#pq`>!,+evm`wjlm+*#xbqf#bubjobaof \\n?ojmh#qfo>!#pq`>$kwws9,,jmwfqfpwfg#jm`lmufmwjlmbo#!#bow>!!#,=?,bqf#dfmfqboozkbp#bopl#affmnlpw#slsvobq#`lqqfpslmgjmd`qfgjwfg#tjwkwzof>!alqgfq9?,b=?,psbm=?,-dje!#tjgwk>!?jeqbnf#pq`>!wbaof#`obpp>!jmojmf.aol`h8b``lqgjmd#wl#wldfwkfq#tjwkbssql{jnbwfozsbqojbnfmwbqznlqf#bmg#nlqfgjpsobz9mlmf8wqbgjwjlmboozsqfglnjmbmwoz%maps8\\x7F%maps8%maps8?,psbm=#`foopsb`jmd>?jmsvw#mbnf>!lq!#`lmwfmw>!`lmwqlufqpjbosqlsfqwz>!ld9,{.pkl`htbuf.gfnlmpwqbwjlmpvqqlvmgfg#azMfufqwkfofpp/tbp#wkf#ejqpw`lmpjgfqbaof#Bowklvdk#wkf#`loobalqbwjlmpklvog#mlw#afsqlslqwjlm#le?psbm#pwzof>!hmltm#bp#wkf#pklqwoz#bewfqelq#jmpwbm`f/gfp`qjafg#bp#,kfbg= ?algz#pwbqwjmd#tjwkjm`qfbpjmdoz#wkf#eb`w#wkbwgjp`vppjlm#lenjggof#le#wkfbm#jmgjujgvbogjeej`vow#wl#sljmw#le#ujftklnlpf{vbojwzb``fswbm`f#le?,psbm=?,gju=nbmveb`wvqfqplqjdjm#le#wkf`lnnlmoz#vpfgjnslqwbm`f#legfmlnjmbwjlmpab`hdqlvmg9# ofmdwk#le#wkfgfwfqnjmbwjlmb#pjdmjej`bmw!#alqgfq>!3!=qfulovwjlmbqzsqjm`jsofp#lejp#`lmpjgfqfgtbp#gfufolsfgJmgl.Fvqlsfbmuvomfqbaof#wlsqlslmfmwp#lebqf#plnfwjnfp`olpfq#wl#wkfMft#Zlqh#@jwz#mbnf>!pfbq`kbwwqjavwfg#wl`lvqpf#le#wkfnbwkfnbwj`jbmaz#wkf#fmg#lebw#wkf#fmg#le!#alqgfq>!3!#wf`kmloldj`bo-qfnluf@obpp+aqbm`k#le#wkffujgfm`f#wkbw"Xfmgje^..= Jmpwjwvwf#le#jmwl#b#pjmdofqfpsf`wjufoz-bmg#wkfqfelqfsqlsfqwjfp#lejp#ol`bwfg#jmplnf#le#tkj`kWkfqf#jp#bopl`lmwjmvfg#wl#bssfbqbm`f#le#%bns8mgbpk8#gfp`qjafp#wkf`lmpjgfqbwjlmbvwklq#le#wkfjmgfsfmgfmwozfrvjssfg#tjwkglfp#mlw#kbuf?,b=?b#kqfe>!`lmevpfg#tjwk?ojmh#kqfe>!,bw#wkf#bdf#lebssfbq#jm#wkfWkfpf#jm`ovgfqfdbqgofpp#le`lvog#af#vpfg#pwzof>%rvlw8pfufqbo#wjnfpqfsqfpfmw#wkfalgz= ?,kwno=wklvdkw#wl#afslsvobwjlm#leslppjajojwjfpsfq`fmwbdf#leb``fpp#wl#wkfbm#bwwfnsw#wlsqlgv`wjlm#leirvfqz,irvfqzwtl#gjeefqfmwafolmd#wl#wkffpwbaojpknfmwqfsob`jmd#wkfgfp`qjswjlm!#gfwfqnjmf#wkfbubjobaof#elqB``lqgjmd#wl#tjgf#qbmdf#le\\n?gju#`obpp>!nlqf#`lnnlmozlqdbmjpbwjlmpevm`wjlmbojwztbp#`lnsofwfg#%bns8ngbpk8#sbqwj`jsbwjlmwkf#`kbqb`wfqbm#bggjwjlmbobssfbqp#wl#afeb`w#wkbw#wkfbm#f{bnsof#lepjdmjej`bmwozlmnlvpflufq>!af`bvpf#wkfz#bpzm`#>#wqvf8sqlaofnp#tjwkpffnp#wl#kbufwkf#qfpvow#le#pq`>!kwws9,,ebnjojbq#tjwkslppfppjlm#leevm`wjlm#+*#xwllh#sob`f#jmbmg#plnfwjnfppvapwbmwjbooz?psbm=?,psbm=jp#lewfm#vpfgjm#bm#bwwfnswdqfbw#gfbo#leFmujqlmnfmwbopv``fppevooz#ujqwvbooz#boo13wk#`fmwvqz/sqlefppjlmbopmf`fppbqz#wl#gfwfqnjmfg#az`lnsbwjajojwzaf`bvpf#jw#jpGj`wjlmbqz#lenlgjej`bwjlmpWkf#elooltjmdnbz#qfefq#wl9@lmpfrvfmwoz/Jmwfqmbwjlmbobowklvdk#plnfwkbw#tlvog#aftlqog$p#ejqpw`obppjejfg#bpalwwln#le#wkf+sbqwj`vobqozbojdm>!ofew!#nlpw#`lnnlmozabpjp#elq#wkfelvmgbwjlm#le`lmwqjavwjlmpslsvobqjwz#le`fmwfq#le#wkfwl#qfgv`f#wkfivqjpgj`wjlmpbssql{jnbwjlm#lmnlvpflvw>!Mft#Wfpwbnfmw`loof`wjlm#le?,psbm=?,b=?,jm#wkf#Vmjwfgejon#gjqf`wlq.pwqj`w-gwg!=kbp#affm#vpfgqfwvqm#wl#wkfbowklvdk#wkjp`kbmdf#jm#wkfpfufqbo#lwkfqavw#wkfqf#bqfvmsqf`fgfmwfgjp#pjnjobq#wlfpsf`jbooz#jmtfjdkw9#alog8jp#`boofg#wkf`lnsvwbwjlmbojmgj`bwf#wkbwqfpwqj`wfg#wl\\n?nfwb#mbnf>!bqf#wzsj`booz`lmeoj`w#tjwkKltfufq/#wkf#Bm#f{bnsof#le`lnsbqfg#tjwkrvbmwjwjfp#leqbwkfq#wkbm#b`lmpwfoobwjlmmf`fppbqz#elqqfslqwfg#wkbwpsf`jej`bwjlmslojwj`bo#bmg%maps8%maps8?qfefqfm`fp#wlwkf#pbnf#zfbqDlufqmnfmw#ledfmfqbwjlm#lekbuf#mlw#affmpfufqbo#zfbqp`lnnjwnfmw#wl\\n\\n?vo#`obpp>!ujpvbojybwjlm2:wk#`fmwvqz/sqb`wjwjlmfqpwkbw#kf#tlvogbmg#`lmwjmvfgl``vsbwjlm#lejp#gfejmfg#bp`fmwqf#le#wkfwkf#bnlvmw#le=?gju#pwzof>!frvjubofmw#legjeefqfmwjbwfaqlvdkw#balvwnbqdjm.ofew9#bvwlnbwj`boozwklvdkw#le#bpPlnf#le#wkfpf ?gju#`obpp>!jmsvw#`obpp>!qfsob`fg#tjwkjp#lmf#le#wkffgv`bwjlm#bmgjmeovfm`fg#azqfsvwbwjlm#bp ?nfwb#mbnf>!b``lnnlgbwjlm?,gju= ?,gju=obqdf#sbqw#leJmpwjwvwf#elqwkf#pl.`boofg#bdbjmpw#wkf#Jm#wkjp#`bpf/tbp#bssljmwfg`objnfg#wl#afKltfufq/#wkjpGfsbqwnfmw#lewkf#qfnbjmjmdfeef`w#lm#wkfsbqwj`vobqoz#gfbo#tjwk#wkf ?gju#pwzof>!bonlpw#botbzpbqf#`vqqfmwozf{sqfppjlm#leskjolplskz#leelq#nlqf#wkbm`jujojybwjlmplm#wkf#jpobmgpfof`wfgJmgf{`bm#qfpvow#jm!#ubovf>!!#,=wkf#pwqv`wvqf#,=?,b=?,gju=Nbmz#le#wkfpf`bvpfg#az#wkfle#wkf#Vmjwfgpsbm#`obpp>!n`bm#af#wqb`fgjp#qfobwfg#wlaf`bnf#lmf#lejp#eqfrvfmwozojujmd#jm#wkfwkflqfwj`boozElooltjmd#wkfQfulovwjlmbqzdlufqmnfmw#jmjp#gfwfqnjmfgwkf#slojwj`bojmwqlgv`fg#jmpveej`jfmw#wlgfp`qjswjlm!=pklqw#pwlqjfppfsbqbwjlm#lebp#wl#tkfwkfqhmltm#elq#jwptbp#jmjwjboozgjpsobz9aol`hjp#bm#f{bnsofwkf#sqjm`jsbo`lmpjpwp#le#bqf`ldmjyfg#bp,algz=?,kwno=b#pvapwbmwjboqf`lmpwqv`wfgkfbg#le#pwbwfqfpjpwbm`f#wlvmgfqdqbgvbwfWkfqf#bqf#wtldqbujwbwjlmbobqf#gfp`qjafgjmwfmwjlmboozpfqufg#bp#wkf`obpp>!kfbgfqlsslpjwjlm#wlevmgbnfmwboozglnjmbwfg#wkfbmg#wkf#lwkfqboojbm`f#tjwktbp#elq`fg#wlqfpsf`wjufoz/bmg#slojwj`bojm#pvsslqw#lesflsof#jm#wkf13wk#`fmwvqz-bmg#svaojpkfgolbg@kbqwafbwwl#vmgfqpwbmgnfnafq#pwbwfpfmujqlmnfmwboejqpw#kboe#le`lvmwqjfp#bmgbq`kjwf`wvqboaf#`lmpjgfqfg`kbqb`wfqjyfg`ofbqJmwfqubobvwklqjwbwjufEfgfqbwjlm#letbp#pv``ffgfgbmg#wkfqf#bqfb#`lmpfrvfm`fwkf#Sqfpjgfmwbopl#jm`ovgfgeqff#plewtbqfpv``fppjlm#legfufolsfg#wkftbp#gfpwqlzfgbtbz#eqln#wkf8 ?,p`qjsw= ?bowklvdk#wkfzelooltfg#az#bnlqf#sltfqevoqfpvowfg#jm#bVmjufqpjwz#leKltfufq/#nbmzwkf#sqfpjgfmwKltfufq/#plnfjp#wklvdkw#wlvmwjo#wkf#fmgtbp#bmmlvm`fgbqf#jnslqwbmwbopl#jm`ovgfp=?jmsvw#wzsf>wkf#`fmwfq#le#GL#MLW#BOWFQvpfg#wl#qfefqwkfnfp,<plqw>wkbw#kbg#affmwkf#abpjp#elqkbp#gfufolsfgjm#wkf#pvnnfq`lnsbqbwjufozgfp`qjafg#wkfpv`k#bp#wklpfwkf#qfpvowjmdjp#jnslppjaofubqjlvp#lwkfqPlvwk#Beqj`bmkbuf#wkf#pbnffeef`wjufmfppjm#tkj`k#`bpf8#wf{w.bojdm9pwqv`wvqf#bmg8#ab`hdqlvmg9qfdbqgjmd#wkfpvsslqwfg#wkfjp#bopl#hmltmpwzof>!nbqdjmjm`ovgjmd#wkfabkbpb#Nfobzvmlqph#alhn/Iomlqph#mzmlqphpolufm)M(ajmbjmwfqmb`jlmbo`bojej`b`j/_m`lnvmj`b`j/_m`lmpwqv``j/_m!=?gju#`obpp>!gjpbnajdvbwjlmGlnbjmMbnf$/#$bgnjmjpwqbwjlmpjnvowbmflvpozwqbmpslqwbwjlmJmwfqmbwjlmbo#nbqdjm.alwwln9qfpslmpjajojwz?"Xfmgje^..= ?,=?nfwb#mbnf>!jnsofnfmwbwjlmjmeqbpwqv`wvqfqfsqfpfmwbwjlmalqgfq.alwwln9?,kfbg= ?algz=>kwws&0B&1E&1E?elqn#nfwklg>!nfwklg>!slpw!#,ebuj`lm-j`l!#~*8 ?,p`qjsw= -pfwBwwqjavwf+Bgnjmjpwqbwjlm>#mft#Bqqbz+*8?"Xfmgje^..= gjpsobz9aol`h8Vmelqwvmbwfoz/!=%maps8?,gju=,ebuj`lm-j`l!=>$pwzofpkffw$#jgfmwjej`bwjlm/#elq#f{bnsof/?oj=?b#kqfe>!,bm#bowfqmbwjufbp#b#qfpvow#lesw!=?,p`qjsw= wzsf>!pvanjw!# +evm`wjlm+*#xqf`lnnfmgbwjlmelqn#b`wjlm>!,wqbmpelqnbwjlmqf`lmpwqv`wjlm-pwzof-gjpsobz#B``lqgjmd#wl#kjggfm!#mbnf>!bolmd#tjwk#wkfgl`vnfmw-algz-bssql{jnbwfoz#@lnnvmj`bwjlmpslpw!#b`wjlm>!nfbmjmd#%rvlw8..?"Xfmgje^..=Sqjnf#Njmjpwfq`kbqb`wfqjpwj`?,b=#?b#`obpp>wkf#kjpwlqz#le#lmnlvpflufq>!wkf#dlufqmnfmwkqfe>!kwwsp9,,tbp#lqjdjmbooztbp#jmwqlgv`fg`obppjej`bwjlmqfsqfpfmwbwjufbqf#`lmpjgfqfg?"Xfmgje^..= gfsfmgp#lm#wkfVmjufqpjwz#le#jm#`lmwqbpw#wl#sob`fklogfq>!jm#wkf#`bpf#lejmwfqmbwjlmbo#`lmpwjwvwjlmbopwzof>!alqgfq.9#evm`wjlm+*#xAf`bvpf#le#wkf.pwqj`w-gwg!= ?wbaof#`obpp>!b``lnsbmjfg#azb``lvmw#le#wkf?p`qjsw#pq`>!,mbwvqf#le#wkf#wkf#sflsof#jm#jm#bggjwjlm#wlp*8#ip-jg#>#jg!#tjgwk>!233&!qfdbqgjmd#wkf#Qlnbm#@bwkloj`bm#jmgfsfmgfmwelooltjmd#wkf#-dje!#tjgwk>!2wkf#elooltjmd#gjp`qjnjmbwjlmbq`kbfloldj`bosqjnf#njmjpwfq-ip!=?,p`qjsw=`lnajmbwjlm#le#nbqdjmtjgwk>!`qfbwfFofnfmw+t-bwwb`kFufmw+?,b=?,wg=?,wq=pq`>!kwwsp9,,bJm#sbqwj`vobq/#bojdm>!ofew!#@yf`k#Qfsvaoj`Vmjwfg#Hjmdgln`lqqfpslmgfm`f`lm`ovgfg#wkbw-kwno!#wjwof>!+evm`wjlm#+*#x`lnfp#eqln#wkfbssoj`bwjlm#le?psbm#`obpp>!pafojfufg#wl#affnfmw+$p`qjsw$?,b= ?,oj= ?ojufqz#gjeefqfmw=?psbm#`obpp>!lswjlm#ubovf>!+bopl#hmltm#bp\\n?oj=?b#kqfe>!=?jmsvw#mbnf>!pfsbqbwfg#eqlnqfefqqfg#wl#bp#ubojdm>!wls!=elvmgfq#le#wkfbwwfnswjmd#wl#`bqalm#gjl{jgf ?gju#`obpp>!`obpp>!pfbq`k.,algz= ?,kwno=lsslqwvmjwz#wl`lnnvmj`bwjlmp?,kfbg= ?algz#pwzof>!tjgwk9Wj\\rVSmd#Uj\\rWkw`kbmdfp#jm#wkfalqgfq.`lolq9 3!#alqgfq>!3!#?,psbm=?,gju=?tbp#gjp`lufqfg!#wzsf>!wf{w!#*8 ?,p`qjsw= Gfsbqwnfmw#le#f``ofpjbpwj`bowkfqf#kbp#affmqfpvowjmd#eqln?,algz=?,kwno=kbp#mfufq#affmwkf#ejqpw#wjnfjm#qfpslmpf#wlbvwlnbwj`booz#?,gju= ?gju#jtbp#`lmpjgfqfgsfq`fmw#le#wkf!#,=?,b=?,gju=`loof`wjlm#le#gfp`fmgfg#eqlnpf`wjlm#le#wkfb``fsw.`kbqpfwwl#af#`lmevpfgnfnafq#le#wkf#sbggjmd.qjdkw9wqbmpobwjlm#lejmwfqsqfwbwjlm#kqfe>$kwws9,,tkfwkfq#lq#mlwWkfqf#bqf#boplwkfqf#bqf#nbmzb#pnboo#mvnafqlwkfq#sbqwp#lejnslppjaof#wl##`obpp>!avwwlmol`bwfg#jm#wkf-#Kltfufq/#wkfbmg#fufmwvboozBw#wkf#fmg#le#af`bvpf#le#jwpqfsqfpfmwp#wkf?elqn#b`wjlm>!#nfwklg>!slpw!jw#jp#slppjaofnlqf#ojhfoz#wlbm#jm`qfbpf#jmkbuf#bopl#affm`lqqfpslmgp#wlbmmlvm`fg#wkbwbojdm>!qjdkw!=nbmz#`lvmwqjfpelq#nbmz#zfbqpfbqojfpw#hmltmaf`bvpf#jw#tbpsw!=?,p`qjsw=#ubojdm>!wls!#jmkbajwbmwp#leelooltjmd#zfbq ?gju#`obpp>!njoojlm#sflsof`lmwqlufqpjbo#`lm`fqmjmd#wkfbqdvf#wkbw#wkfdlufqmnfmw#bmgb#qfefqfm`f#wlwqbmpefqqfg#wlgfp`qjajmd#wkf#pwzof>!`lolq9bowklvdk#wkfqfafpw#hmltm#elqpvanjw!#mbnf>!nvowjsoj`bwjlmnlqf#wkbm#lmf#qf`ldmjwjlm#le@lvm`jo#le#wkffgjwjlm#le#wkf##?nfwb#mbnf>!Fmwfqwbjmnfmw#btbz#eqln#wkf#8nbqdjm.qjdkw9bw#wkf#wjnf#lejmufpwjdbwjlmp`lmmf`wfg#tjwkbmg#nbmz#lwkfqbowklvdk#jw#jpafdjmmjmd#tjwk#?psbm#`obpp>!gfp`fmgbmwp#le?psbm#`obpp>!j#bojdm>!qjdkw!?,kfbg= ?algz#bpsf`wp#le#wkfkbp#pjm`f#affmFvqlsfbm#Vmjlmqfnjmjp`fmw#lenlqf#gjeej`vowUj`f#Sqfpjgfmw`lnslpjwjlm#lesbppfg#wkqlvdknlqf#jnslqwbmwelmw.pjyf922s{f{sobmbwjlm#lewkf#`lm`fsw#letqjwwfm#jm#wkf\\n?psbm#`obpp>!jp#lmf#le#wkf#qfpfnaobm`f#wllm#wkf#dqlvmgptkj`k#`lmwbjmpjm`ovgjmd#wkf#gfejmfg#az#wkfsvaoj`bwjlm#lenfbmp#wkbw#wkflvwpjgf#le#wkfpvsslqw#le#wkf?jmsvw#`obpp>!?psbm#`obpp>!w+Nbwk-qbmgln+*nlpw#sqlnjmfmwgfp`qjswjlm#le@lmpwbmwjmlsoftfqf#svaojpkfg?gju#`obpp>!pfbssfbqp#jm#wkf2!#kfjdkw>!2!#nlpw#jnslqwbmwtkj`k#jm`ovgfptkj`k#kbg#affmgfpwqv`wjlm#lewkf#slsvobwjlm \\n?gju#`obpp>!slppjajojwz#leplnfwjnfp#vpfgbssfbq#wl#kbufpv``fpp#le#wkfjmwfmgfg#wl#afsqfpfmw#jm#wkfpwzof>!`ofbq9a ?,p`qjsw= ?tbp#elvmgfg#jmjmwfqujft#tjwk\\\\jg!#`lmwfmw>!`bsjwbo#le#wkf ?ojmh#qfo>!pqfofbpf#le#wkfsljmw#lvw#wkbw{NOKwwsQfrvfpwbmg#pvapfrvfmwpf`lmg#obqdfpwufqz#jnslqwbmwpsf`jej`bwjlmppvqeb`f#le#wkfbssojfg#wl#wkfelqfjdm#sloj`z\\\\pfwGlnbjmMbnffpwbaojpkfg#jmjp#afojfufg#wlJm#bggjwjlm#wlnfbmjmd#le#wkfjp#mbnfg#bewfqwl#sqlwf`w#wkfjp#qfsqfpfmwfgGf`obqbwjlm#lenlqf#feej`jfmw@obppjej`bwjlmlwkfq#elqnp#lekf#qfwvqmfg#wl?psbm#`obpp>!`sfqelqnbm`f#le+evm`wjlm+*#xje#bmg#lmoz#jeqfdjlmp#le#wkfofbgjmd#wl#wkfqfobwjlmp#tjwkVmjwfg#Mbwjlmppwzof>!kfjdkw9lwkfq#wkbm#wkfzsf!#`lmwfmw>!Bppl`jbwjlm#le ?,kfbg= ?algzol`bwfg#lm#wkfjp#qfefqqfg#wl+jm`ovgjmd#wkf`lm`fmwqbwjlmpwkf#jmgjujgvbobnlmd#wkf#nlpwwkbm#bmz#lwkfq,= ?ojmh#qfo>!#qfwvqm#ebopf8wkf#svqslpf#lewkf#bajojwz#wl8`lolq9 eee~ - ?psbm#`obpp>!wkf#pvaif`w#legfejmjwjlmp#le= ?ojmh#qfo>!`objn#wkbw#wkfkbuf#gfufolsfg?wbaof#tjgwk>!`fofaqbwjlm#leElooltjmd#wkf#wl#gjpwjmdvjpk?psbm#`obpp>!awbhfp#sob`f#jmvmgfq#wkf#mbnfmlwfg#wkbw#wkf=?"Xfmgje^..= pwzof>!nbqdjm.jmpwfbg#le#wkfjmwqlgv`fg#wkfwkf#sql`fpp#lejm`qfbpjmd#wkfgjeefqfm`fp#jmfpwjnbwfg#wkbwfpsf`jbooz#wkf,gju=?gju#jg>!tbp#fufmwvboozwkqlvdklvw#kjpwkf#gjeefqfm`fplnfwkjmd#wkbwpsbm=?,psbm=?,pjdmjej`bmwoz#=?,p`qjsw=  fmujqlmnfmwbo#wl#sqfufmw#wkfkbuf#affm#vpfgfpsf`jbooz#elqvmgfqpwbmg#wkfjp#fppfmwjbooztfqf#wkf#ejqpwjp#wkf#obqdfpwkbuf#affm#nbgf!#pq`>!kwws9,,jmwfqsqfwfg#bppf`lmg#kboe#le`qloojmd>!ml!#jp#`lnslpfg#leJJ/#Kloz#Qlnbmjp#f{sf`wfg#wlkbuf#wkfjq#ltmgfejmfg#bp#wkfwqbgjwjlmbooz#kbuf#gjeefqfmwbqf#lewfm#vpfgwl#fmpvqf#wkbwbdqffnfmw#tjwk`lmwbjmjmd#wkfbqf#eqfrvfmwozjmelqnbwjlm#lmf{bnsof#jp#wkfqfpvowjmd#jm#b?,b=?,oj=?,vo=#`obpp>!ellwfqbmg#fpsf`jboozwzsf>!avwwlm!#?,psbm=?,psbm=tkj`k#jm`ovgfg= ?nfwb#mbnf>!`lmpjgfqfg#wkf`bqqjfg#lvw#azKltfufq/#jw#jpaf`bnf#sbqw#lejm#qfobwjlm#wlslsvobq#jm#wkfwkf#`bsjwbo#letbp#leej`jbooztkj`k#kbp#affmwkf#Kjpwlqz#lebowfqmbwjuf#wlgjeefqfmw#eqlnwl#pvsslqw#wkfpvddfpwfg#wkbwjm#wkf#sql`fpp##?gju#`obpp>!wkf#elvmgbwjlmaf`bvpf#le#kjp`lm`fqmfg#tjwkwkf#vmjufqpjwzlsslpfg#wl#wkfwkf#`lmwf{w#le?psbm#`obpp>!swf{w!#mbnf>!r!\\n\\n?gju#`obpp>!wkf#p`jfmwjej`qfsqfpfmwfg#aznbwkfnbwj`jbmpfof`wfg#az#wkfwkbw#kbuf#affm=?gju#`obpp>!`gju#jg>!kfbgfqjm#sbqwj`vobq/`lmufqwfg#jmwl*8 ?,p`qjsw= ?skjolplskj`bo#pqsphlkqubwphjwj\\rVSmd#Uj\\rWkw<L=o=m=m<V<T<U=l=o=m=m<V<T<Ujmufpwjdb`j/_msbqwj`jsb`j/_m<V<R=n<R=l=g<Y<R<]<W<\\\\=m=n<T<V<R=n<R=l=g<U=k<Y<W<R<^<Y<V=m<T=m=n<Y<P=g<q<R<^<R=m=n<T<V<R=n<R=l=g=i<R<]<W<\\\\=m=n=`<^=l<Y<P<Y<Q<T<V<R=n<R=l<\\\\=c=m<Y<_<R<X<Q=c=m<V<\\\\=k<\\\\=n=`<Q<R<^<R=m=n<T<O<V=l<\\\\<T<Q=g<^<R<S=l<R=m=g<V<R=n<R=l<R<U=m<X<Y<W<\\\\=n=`<S<R<P<R=e=`=b=m=l<Y<X=m=n<^<R<]=l<\\\\<[<R<P=m=n<R=l<R<Q=g=o=k<\\\\=m=n<T<Y=n<Y=k<Y<Q<T<Y<\\x7F<W<\\\\<^<Q<\\\\=c<T=m=n<R=l<T<T=m<T=m=n<Y<P<\\\\=l<Y=d<Y<Q<T=c<M<V<\\\\=k<\\\\=n=`<S<R=a=n<R<P=o=m<W<Y<X=o<Y=n=m<V<\\\\<[<\\\\=n=`=n<R<^<\\\\=l<R<^<V<R<Q<Y=k<Q<R=l<Y=d<Y<Q<T<Y<V<R=n<R=l<R<Y<R=l<_<\\\\<Q<R<^<V<R=n<R=l<R<P<L<Y<V<W<\\\\<P<\\\\4K5h5i5j4F4C5e5i5j4F4C5f4K4F4K5h5i5d4Z5d4U4K5h4D4]4K5i4@4K5h5i5d4K5n4U4K5h4]4_4K4J5h5i4X4K4]5o4K4F4K5h4O4U4Z4K4M4K5h4]5f4K4Z4E4K5h4F4Y5i5f5i4K5h4K4U4Z4K4M4K5h5j4F4K4J4@4K5h4O5h4U4K4D4K5h4F4_4@5f5h4K5h4O5n4_4K5i4K5h4Z4V4[4K4F4K5h5m5f4C5f5d4K5h4F4]4A5f4D4K5h4@4C5f4C4E4K5h4F4U5h5f5i4K5h4O4B4D4K4]4K5h4K5m5h4K5i4K5h4O5m5h4K5i4K5h4F4K4]5f4B4K5h4F5n5j5f4E4K5h4K5h4U4K4D4K5h4B5d4K4[4]4K5h5i4@4F5i4U4K5h4C5f5o5d4]4K5h4_5f4K4A4E4U4D4C4K5h5h5k4K5h4F4]4D5f4E4K5h4]5d4K4D4[4K5h4O4C4D5f4E4K5h4K4B4D4K4]4K5h5i4F4A4C4E4K5h4K4V4K5j5f`vqplq9sljmwfq8?,wjwof= ?nfwb#!#kqfe>!kwws9,,!=?psbm#`obpp>!nfnafqp#le#wkf#tjmglt-ol`bwjlmufqwj`bo.bojdm9,b=#\\x7F#?b#kqfe>!?"gl`wzsf#kwno=nfgjb>!p`qffm!#?lswjlm#ubovf>!ebuj`lm-j`l!#,= \\n\\n?gju#`obpp>!`kbqb`wfqjpwj`p!#nfwklg>!dfw!#,algz= ?,kwno= pklqw`vw#j`lm!#gl`vnfmw-tqjwf+sbggjmd.alwwln9qfsqfpfmwbwjufppvanjw!#ubovf>!bojdm>!`fmwfq!#wkqlvdklvw#wkf#p`jfm`f#ej`wjlm ##?gju#`obpp>!pvanjw!#`obpp>!lmf#le#wkf#nlpw#ubojdm>!wls!=?tbp#fpwbaojpkfg*8 ?,p`qjsw= qfwvqm#ebopf8!=*-pwzof-gjpsobzaf`bvpf#le#wkf#gl`vnfmw-`llhjf?elqn#b`wjlm>!,~algzxnbqdjm938Fm`z`olsfgjb#leufqpjlm#le#wkf#-`qfbwfFofnfmw+mbnf!#`lmwfmw>!?,gju= ?,gju= bgnjmjpwqbwjuf#?,algz= ?,kwno=kjpwlqz#le#wkf#!=?jmsvw#wzsf>!slqwjlm#le#wkf#bp#sbqw#le#wkf#%maps8?b#kqfe>!lwkfq#`lvmwqjfp!= ?gju#`obpp>!?,psbm=?,psbm=?Jm#lwkfq#tlqgp/gjpsobz9#aol`h8`lmwqlo#le#wkf#jmwqlgv`wjlm#le,= ?nfwb#mbnf>!bp#tfoo#bp#wkf#jm#qf`fmw#zfbqp \\n?gju#`obpp>!?,gju= \\n?,gju= jmpsjqfg#az#wkfwkf#fmg#le#wkf#`lnsbwjaof#tjwkaf`bnf#hmltm#bp#pwzof>!nbqdjm9-ip!=?,p`qjsw=?#Jmwfqmbwjlmbo#wkfqf#kbuf#affmDfqnbm#obmdvbdf#pwzof>!`lolq9 @lnnvmjpw#Sbqwz`lmpjpwfmw#tjwkalqgfq>!3!#`foo#nbqdjmkfjdkw>!wkf#nbilqjwz#le!#bojdm>!`fmwfqqfobwfg#wl#wkf#nbmz#gjeefqfmw#Lqwklgl{#@kvq`kpjnjobq#wl#wkf#,= ?ojmh#qfo>!ptbp#lmf#le#wkf#vmwjo#kjp#gfbwk~*+*8 ?,p`qjsw=lwkfq#obmdvbdfp`lnsbqfg#wl#wkfslqwjlmp#le#wkfwkf#Mfwkfqobmgpwkf#nlpw#`lnnlmab`hdqlvmg9vqo+bqdvfg#wkbw#wkfp`qloojmd>!ml!#jm`ovgfg#jm#wkfMlqwk#Bnfqj`bm#wkf#mbnf#le#wkfjmwfqsqfwbwjlmpwkf#wqbgjwjlmbogfufolsnfmw#le#eqfrvfmwoz#vpfgb#`loof`wjlm#leufqz#pjnjobq#wlpvqqlvmgjmd#wkff{bnsof#le#wkjpbojdm>!`fmwfq!=tlvog#kbuf#affmjnbdf\\\\`bswjlm#>bwwb`kfg#wl#wkfpvddfpwjmd#wkbwjm#wkf#elqn#le#jmuloufg#jm#wkfjp#gfqjufg#eqlnmbnfg#bewfq#wkfJmwqlgv`wjlm#wlqfpwqj`wjlmp#lm#pwzof>!tjgwk9#`bm#af#vpfg#wl#wkf#`qfbwjlm#lenlpw#jnslqwbmw#jmelqnbwjlm#bmgqfpvowfg#jm#wkf`loobspf#le#wkfWkjp#nfbmp#wkbwfofnfmwp#le#wkftbp#qfsob`fg#azbmbozpjp#le#wkfjmpsjqbwjlm#elqqfdbqgfg#bp#wkfnlpw#pv``fppevohmltm#bp#%rvlw8b#`lnsqfkfmpjufKjpwlqz#le#wkf#tfqf#`lmpjgfqfgqfwvqmfg#wl#wkfbqf#qfefqqfg#wlVmplvq`fg#jnbdf= \\n?gju#`obpp>!`lmpjpwp#le#wkfpwlsSqlsbdbwjlmjmwfqfpw#jm#wkfbubjobajojwz#lebssfbqp#wl#kbuffof`wqlnbdmfwj`fmbaofPfquj`fp+evm`wjlm#le#wkfJw#jp#jnslqwbmw?,p`qjsw=?,gju=evm`wjlm+*xubq#qfobwjuf#wl#wkfbp#b#qfpvow#le#wkf#slpjwjlm#leElq#f{bnsof/#jm#nfwklg>!slpw!#tbp#elooltfg#az%bns8ngbpk8#wkfwkf#bssoj`bwjlmip!=?,p`qjsw= vo=?,gju=?,gju=bewfq#wkf#gfbwktjwk#qfpsf`w#wlpwzof>!sbggjmd9jp#sbqwj`vobqozgjpsobz9jmojmf8#wzsf>!pvanjw!#jp#gjujgfg#jmwl\\bTA\\nzk#+\\vBl\\bQ\\x7F*qfpslmpbajojgbgbgnjmjpwqb`j/_mjmwfqmb`jlmbofp`lqqfpslmgjfmwf\\fHe\\fHF\\fHC\\fIg\\fH{\\fHF\\fIn\\fH\\\\\\fIa\\fHY\\fHU\\fHB\\fHR\\fH\\\\\\fIk\\fH^\\fIg\\fH{\\fIg\\fHn\\fHv\\fIm\\fHD\\fHR\\fHY\\fH^\\fIk\\fHy\\fHS\\fHD\\fHT\\fH\\\\\\fHy\\fHR\\fH\\\\\\fHF\\fIm\\fH^\\fHS\\fHT\\fHz\\fIg\\fHp\\fIk\\fHn\\fHv\\fHR\\fHU\\fHS\\fHc\\fHA\\fIk\\fHp\\fIk\\fHn\\fHZ\\fHR\\fHB\\fHS\\fH^\\fHU\\fHB\\fHR\\fH\\\\\\fIl\\fHp\\fHR\\fH{\\fH\\\\\\fHO\\fH@\\fHD\\fHR\\fHD\\fIk\\fHy\\fIm\\fHB\\fHR\\fH\\\\\\fH@\\fIa\\fH^\\fIe\\fH{\\fHB\\fHR\\fH^\\fHS\\fHy\\fHB\\fHU\\fHS\\fH^\\fHR\\fHF\\fIo\\fH[\\fIa\\fHL\\fH@\\fHN\\fHP\\fHH\\fIk\\fHA\\fHR\\fHp\\fHF\\fHR\\fHy\\fIa\\fH^\\fHS\\fHy\\fHs\\fIa\\fH\\\\\\fIk\\fHD\\fHz\\fHS\\fH^\\fHR\\fHG\\fHJ\\fI`\\fH\\\\\\fHR\\fHD\\fHB\\fHR\\fHB\\fH^\\fIk\\fHB\\fHH\\fHJ\\fHR\\fHD\\fH@\\fHR\\fHp\\fHR\\fH\\\\\\fHY\\fHS\\fHy\\fHR\\fHT\\fHy\\fIa\\fHC\\fIg\\fHn\\fHv\\fHR\\fHU\\fHH\\fIk\\fHF\\fHU\\fIm\\fHm\\fHv\\fH@\\fHH\\fHR\\fHC\\fHR\\fHT\\fHn\\fHY\\fHR\\fHJ\\fHJ\\fIk\\fHz\\fHD\\fIk\\fHF\\fHS\\fHw\\fH^\\fIk\\fHY\\fHS\\fHZ\\fIk\\fH[\\fH\\\\\\fHR\\fHp\\fIa\\fHC\\fHe\\fHH\\fIa\\fHH\\fH\\\\\\fHB\\fIm\\fHn\\fH@\\fHd\\fHJ\\fIg\\fHD\\fIg\\fHn\\fHe\\fHF\\fHy\\fH\\\\\\fHO\\fHF\\fHN\\fHP\\fIk\\fHn\\fHT\\fIa\\fHI\\fHS\\fHH\\fHG\\fHS\\fH^\\fIa\\fHB\\fHB\\fIm\\fHz\\fIa\\fHC\\fHi\\fHv\\fIa\\fHw\\fHR\\fHw\\fIn\\fHs\\fHH\\fIl\\fHT\\fHn\\fH{\\fIl\\fHH\\fHp\\fHR\\fHc\\fH{\\fHR\\fHY\\fHS\\fHA\\fHR\\fH{\\fHt\\fHO\\fIa\\fHs\\fIk\\fHJ\\fIn\\fHT\\fH\\\\\\fIk\\fHJ\\fHS\\fHD\\fIg\\fHn\\fHU\\fHH\\fIa\\fHC\\fHR\\fHT\\fIk\\fHy\\fIa\\fHT\\fH{\\fHR\\fHn\\fHK\\fIl\\fHY\\fHS\\fHZ\\fIa\\fHY\\fH\\\\\\fHR\\fHH\\fIk\\fHn\\fHJ\\fId\\fHs\\fIa\\fHT\\fHD\\fHy\\fIa\\fHZ\\fHR\\fHT\\fHR\\fHB\\fHD\\fIk\\fHi\\fHJ\\fHR\\fH^\\fHH\\fH@\\fHS\\fHp\\fH^\\fIl\\fHF\\fIm\\fH\\\\\\fIn\\fH[\\fHU\\fHS\\fHn\\fHJ\\fIl\\fHB\\fHS\\fHH\\fIa\\fH\\\\\\fHy\\fHY\\fHS\\fHH\\fHR\\fH\\\\\\fIm\\fHF\\fHC\\fIk\\fHT\\fIa\\fHI\\fHR\\fHD\\fHy\\fH\\\\\\fIg\\fHM\\fHP\\fHB\\fIm\\fHy\\fIa\\fHH\\fHC\\fIg\\fHp\\fHD\\fHR\\fHy\\fIo\\fHF\\fHC\\fHR\\fHF\\fIg\\fHT\\fIa\\fHs\\fHt\\fH\\\\\\fIk\\fH^\\fIn\\fHy\\fHR\\fH\\\\\\fIa\\fHC\\fHY\\fHS\\fHv\\fHR\\fH\\\\\\fHT\\fIn\\fHv\\fHD\\fHR\\fHB\\fIn\\fH^\\fIa\\fHC\\fHJ\\fIk\\fHz\\fIk\\fHn\\fHU\\fHB\\fIk\\fHZ\\fHR\\fHT\\fIa\\fHy\\fIn\\fH^\\fHB\\fId\\fHn\\fHD\\fIk\\fHH\\fId\\fHC\\fHR\\fH\\\\\\fHp\\fHS\\fHT\\fHy\\fIkqpp({no!#wjwof>!.wzsf!#`lmwfmw>!wjwof!#`lmwfmw>!bw#wkf#pbnf#wjnf-ip!=?,p`qjsw= ?!#nfwklg>!slpw!#?,psbm=?,b=?,oj=ufqwj`bo.bojdm9w,irvfqz-njm-ip!=-`oj`h+evm`wjlm+#pwzof>!sbggjmd.~*+*8 ?,p`qjsw= ?,psbm=?b#kqfe>!?b#kqfe>!kwws9,,*8#qfwvqm#ebopf8wf{w.gf`lqbwjlm9#p`qloojmd>!ml!#alqgfq.`loobspf9bppl`jbwfg#tjwk#Abkbpb#JmglmfpjbFmdojpk#obmdvbdf?wf{w#{no9psb`f>-dje!#alqgfq>!3!?,algz= ?,kwno= lufqeolt9kjggfm8jnd#pq`>!kwws9,,bggFufmwOjpwfmfqqfpslmpjaof#elq#p-ip!=?,p`qjsw= ,ebuj`lm-j`l!#,=lsfqbwjmd#pzpwfn!#pwzof>!tjgwk92wbqdfw>!\\\\aobmh!=Pwbwf#Vmjufqpjwzwf{w.bojdm9ofew8 gl`vnfmw-tqjwf+/#jm`ovgjmd#wkf#bqlvmg#wkf#tlqog*8 ?,p`qjsw= ?!#pwzof>!kfjdkw98lufqeolt9kjggfmnlqf#jmelqnbwjlmbm#jmwfqmbwjlmbob#nfnafq#le#wkf#lmf#le#wkf#ejqpw`bm#af#elvmg#jm#?,gju= \\n\\n?,gju= gjpsobz9#mlmf8!=!#,= ?ojmh#qfo>! ##+evm`wjlm+*#xwkf#26wk#`fmwvqz-sqfufmwGfebvow+obqdf#mvnafq#le#Azybmwjmf#Fnsjqf-isd\\x7Fwkvna\\x7Fofew\\x7Fubpw#nbilqjwz#lenbilqjwz#le#wkf##bojdm>!`fmwfq!=Vmjufqpjwz#Sqfppglnjmbwfg#az#wkfPf`lmg#Tlqog#Tbqgjpwqjavwjlm#le#pwzof>!slpjwjlm9wkf#qfpw#le#wkf#`kbqb`wfqjyfg#az#qfo>!mleloolt!=gfqjufp#eqln#wkfqbwkfq#wkbm#wkf#b#`lnajmbwjlm#lepwzof>!tjgwk9233Fmdojpk.psfbhjmd`lnsvwfq#p`jfm`falqgfq>!3!#bow>!wkf#f{jpwfm`f#leGfnl`qbwj`#Sbqwz!#pwzof>!nbqdjm.Elq#wkjp#qfbplm/-ip!=?,p`qjsw= \\npAzWbdMbnf+p*X3^ip!=?,p`qjsw= ?-ip!=?,p`qjsw= ojmh#qfo>!j`lm!#$#bow>$$#`obpp>$elqnbwjlm#le#wkfufqpjlmp#le#wkf#?,b=?,gju=?,gju=,sbdf= ##?sbdf= ?gju#`obpp>!`lmwaf`bnf#wkf#ejqpwabkbpb#Jmglmfpjbfmdojpk#+pjnsof*"y"W"W"["Q"U"V"@=i=l<^<\\\\=n=m<V<T<V<R<P<S<\\\\<Q<T<T=c<^<W=c<Y=n=m=c<x<R<]<\\\\<^<T=n=`=k<Y<W<R<^<Y<V<\\\\=l<\\\\<[<^<T=n<T=c<t<Q=n<Y=l<Q<Y=n<r=n<^<Y=n<T=n=`<Q<\\\\<S=l<T<P<Y=l<T<Q=n<Y=l<Q<Y=n<V<R=n<R=l<R<_<R=m=n=l<\\\\<Q<T=j=g<V<\\\\=k<Y=m=n<^<Y=o=m<W<R<^<T=c=i<S=l<R<]<W<Y<P=g<S<R<W=o=k<T=n=`=c<^<W=c=b=n=m=c<Q<\\\\<T<]<R<W<Y<Y<V<R<P<S<\\\\<Q<T=c<^<Q<T<P<\\\\<Q<T<Y=m=l<Y<X=m=n<^<\\\\4K5h5i5d4K4Z5f4U4K5h4]4J5f4_5f4E4K5h4K5j4F5n4K5h5i4X4K4]5o4K4F5o4K5h4_5f4K4]4K4F4K5h5i5o4F5d4D4E4K5h4_4U5d4C5f4E4K4A4Y4K4J5f4K4F4K5h4U4K5h5i5f4E4K5h4Y5d4F5f4K4F4K5h4K5j4F4]5j4F4K5h4F4Y4K5i5f5i4K5h4I4_5h4K5i5f4K5h5i4X4K4]5o4E4K5h5i4]4J5f4K4Fqlalwp!#`lmwfmw>!?gju#jg>!ellwfq!=wkf#Vmjwfg#Pwbwfp?jnd#pq`>!kwws9,,-isd\\x7Fqjdkw\\x7Fwkvna\\x7F-ip!=?,p`qjsw= ?ol`bwjlm-sqlwl`loeqbnfalqgfq>!3!#p!#,= ?nfwb#mbnf>!?,b=?,gju=?,gju=?elmw.tfjdkw9alog8%rvlw8#bmg#%rvlw8gfsfmgjmd#lm#wkf#nbqdjm938sbggjmd9!#qfo>!mleloolt!#Sqfpjgfmw#le#wkf#wtfmwjfwk#`fmwvqzfujpjlm= ##?,sbdfJmwfqmfw#F{solqfqb-bpzm`#>#wqvf8 jmelqnbwjlm#balvw?gju#jg>!kfbgfq!=!#b`wjlm>!kwws9,,?b#kqfe>!kwwsp9,,?gju#jg>!`lmwfmw!?,gju= ?,gju= ?gfqjufg#eqln#wkf#?jnd#pq`>$kwws9,,b``lqgjmd#wl#wkf# ?,algz= ?,kwno= pwzof>!elmw.pjyf9p`qjsw#obmdvbdf>!Bqjbo/#Kfoufwj`b/?,b=?psbm#`obpp>!?,p`qjsw=?p`qjsw#slojwj`bo#sbqwjfpwg=?,wq=?,wbaof=?kqfe>!kwws9,,ttt-jmwfqsqfwbwjlm#leqfo>!pwzofpkffw!#gl`vnfmw-tqjwf+$?`kbqpfw>!vwe.;!= afdjmmjmd#le#wkf#qfufbofg#wkbw#wkfwfofujpjlm#pfqjfp!#qfo>!mleloolt!=#wbqdfw>!\\\\aobmh!=`objnjmd#wkbw#wkfkwws&0B&1E&1Ettt-nbmjefpwbwjlmp#leSqjnf#Njmjpwfq#lejmeovfm`fg#az#wkf`obpp>!`ofbqej{!=,gju= ?,gju=  wkqff.gjnfmpjlmbo@kvq`k#le#Fmdobmgle#Mlqwk#@bqlojmbprvbqf#hjolnfwqfp-bggFufmwOjpwfmfqgjpwjm`w#eqln#wkf`lnnlmoz#hmltm#bpSklmfwj`#Boskbafwgf`obqfg#wkbw#wkf`lmwqloofg#az#wkfAfmibnjm#Eqbmhojmqlof.sobzjmd#dbnfwkf#Vmjufqpjwz#lejm#Tfpwfqm#Fvqlsfsfqplmbo#`lnsvwfqSqlif`w#Dvwfmafqdqfdbqgofpp#le#wkfkbp#affm#sqlslpfgwldfwkfq#tjwk#wkf=?,oj=?oj#`obpp>!jm#plnf#`lvmwqjfpnjm-ip!=?,p`qjsw=le#wkf#slsvobwjlmleej`jbo#obmdvbdf?jnd#pq`>!jnbdfp,jgfmwjejfg#az#wkfmbwvqbo#qfplvq`fp`obppjej`bwjlm#le`bm#af#`lmpjgfqfgrvbmwvn#nf`kbmj`pMfufqwkfofpp/#wkfnjoojlm#zfbqp#bdl?,algz= ?,kwno="y"W"W"["Q"U"V"@ wbhf#bgubmwbdf#lebmg/#b``lqgjmd#wlbwwqjavwfg#wl#wkfNj`qlplew#Tjmgltpwkf#ejqpw#`fmwvqzvmgfq#wkf#`lmwqlogju#`obpp>!kfbgfqpklqwoz#bewfq#wkfmlwbaof#f{`fswjlmwfmp#le#wklvpbmgppfufqbo#gjeefqfmwbqlvmg#wkf#tlqog-qfb`kjmd#njojwbqzjplobwfg#eqln#wkflsslpjwjlm#wl#wkfwkf#Log#WfpwbnfmwBeqj`bm#Bnfqj`bmpjmpfqwfg#jmwl#wkfpfsbqbwf#eqln#wkfnfwqlslojwbm#bqfbnbhfp#jw#slppjaofb`hmltofgdfg#wkbwbqdvbaoz#wkf#nlpwwzsf>!wf{w,`pp!= wkf#JmwfqmbwjlmboB``lqgjmd#wl#wkf#sf>!wf{w,`pp!#,= `ljm`jgf#tjwk#wkfwtl.wkjqgp#le#wkfGvqjmd#wkjp#wjnf/gvqjmd#wkf#sfqjlgbmmlvm`fg#wkbw#kfwkf#jmwfqmbwjlmbobmg#nlqf#qf`fmwozafojfufg#wkbw#wkf`lmp`jlvpmfpp#bmgelqnfqoz#hmltm#bppvqqlvmgfg#az#wkfejqpw#bssfbqfg#jml``bpjlmbooz#vpfgslpjwjlm9baplovwf8!#wbqdfw>!\\\\aobmh!#slpjwjlm9qfobwjuf8wf{w.bojdm9`fmwfq8ib{,ojap,irvfqz,2-ab`hdqlvmg.`lolq9 wzsf>!bssoj`bwjlm,bmdvbdf!#`lmwfmw>!?nfwb#kwws.frvju>!Sqjub`z#Sloj`z?,b=f+!&0@p`qjsw#pq`>$!#wbqdfw>!\\\\aobmh!=Lm#wkf#lwkfq#kbmg/-isd\\x7Fwkvna\\x7Fqjdkw\\x7F1?,gju=?gju#`obpp>!?gju#pwzof>!eolbw9mjmfwffmwk#`fmwvqz?,algz= ?,kwno= ?jnd#pq`>!kwws9,,p8wf{w.bojdm9`fmwfqelmw.tfjdkw9#alog8#B``lqgjmd#wl#wkf#gjeefqfm`f#afwtffm!#eqbnfalqgfq>!3!#!#pwzof>!slpjwjlm9ojmh#kqfe>!kwws9,,kwno7,ollpf-gwg!= gvqjmd#wkjp#sfqjlg?,wg=?,wq=?,wbaof=`olpfoz#qfobwfg#wlelq#wkf#ejqpw#wjnf8elmw.tfjdkw9alog8jmsvw#wzsf>!wf{w!#?psbm#pwzof>!elmw.lmqfbgzpwbwf`kbmdf\\n?gju#`obpp>!`ofbqgl`vnfmw-ol`bwjlm-#Elq#f{bnsof/#wkf#b#tjgf#ubqjfwz#le#?"GL@WZSF#kwno= ?%maps8%maps8%maps8!=?b#kqfe>!kwws9,,pwzof>!eolbw9ofew8`lm`fqmfg#tjwk#wkf>kwws&0B&1E&1Ettt-jm#slsvobq#`vowvqfwzsf>!wf{w,`pp!#,=jw#jp#slppjaof#wl#Kbqubqg#Vmjufqpjwzwzofpkffw!#kqfe>!,wkf#nbjm#`kbqb`wfqL{elqg#Vmjufqpjwz##mbnf>!hfztlqgp!#`pwzof>!wf{w.bojdm9wkf#Vmjwfg#Hjmdglnefgfqbo#dlufqmnfmw?gju#pwzof>!nbqdjm#gfsfmgjmd#lm#wkf#gfp`qjswjlm#le#wkf?gju#`obpp>!kfbgfq-njm-ip!=?,p`qjsw=gfpwqv`wjlm#le#wkfpojdkwoz#gjeefqfmwjm#b``lqgbm`f#tjwkwfof`lnnvmj`bwjlmpjmgj`bwfp#wkbw#wkfpklqwoz#wkfqfbewfqfpsf`jbooz#jm#wkf#Fvqlsfbm#`lvmwqjfpKltfufq/#wkfqf#bqfpq`>!kwws9,,pwbwj`pvddfpwfg#wkbw#wkf!#pq`>!kwws9,,ttt-b#obqdf#mvnafq#le#Wfof`lnnvmj`bwjlmp!#qfo>!mleloolt!#wKloz#Qlnbm#Fnsfqlqbonlpw#f{`ovpjufoz!#alqgfq>!3!#bow>!Pf`qfwbqz#le#Pwbwf`vonjmbwjmd#jm#wkf@JB#Tlqog#Eb`wallhwkf#nlpw#jnslqwbmwbmmjufqpbqz#le#wkfpwzof>!ab`hdqlvmg.?oj=?fn=?b#kqfe>!,wkf#Bwobmwj`#L`fbmpwqj`woz#psfbhjmd/pklqwoz#afelqf#wkfgjeefqfmw#wzsfp#lewkf#Lwwlnbm#Fnsjqf=?jnd#pq`>!kwws9,,Bm#Jmwqlgv`wjlm#wl`lmpfrvfm`f#le#wkfgfsbqwvqf#eqln#wkf@lmefgfqbwf#Pwbwfpjmgjdfmlvp#sflsofpSql`ffgjmdp#le#wkfjmelqnbwjlm#lm#wkfwkflqjfp#kbuf#affmjmuloufnfmw#jm#wkfgjujgfg#jmwl#wkqffbgib`fmw#`lvmwqjfpjp#qfpslmpjaof#elqgjpplovwjlm#le#wkf`loobalqbwjlm#tjwktjgfoz#qfdbqgfg#bpkjp#`lmwfnslqbqjfpelvmgjmd#nfnafq#leGlnjmj`bm#Qfsvaoj`dfmfqbooz#b``fswfgwkf#slppjajojwz#lebqf#bopl#bubjobaofvmgfq#`lmpwqv`wjlmqfpwlqbwjlm#le#wkfwkf#dfmfqbo#svaoj`jp#bonlpw#fmwjqfozsbppfp#wkqlvdk#wkfkbp#affm#pvddfpwfg`lnsvwfq#bmg#ujgflDfqnbmj`#obmdvbdfp#b``lqgjmd#wl#wkf#gjeefqfmw#eqln#wkfpklqwoz#bewfqtbqgpkqfe>!kwwsp9,,ttt-qf`fmw#gfufolsnfmwAlbqg#le#Gjqf`wlqp?gju#`obpp>!pfbq`k\\x7F#?b#kqfe>!kwws9,,Jm#sbqwj`vobq/#wkfNvowjsof#ellwmlwfplq#lwkfq#pvapwbm`fwklvpbmgp#le#zfbqpwqbmpobwjlm#le#wkf?,gju= ?,gju=  ?b#kqfe>!jmgf{-skstbp#fpwbaojpkfg#jmnjm-ip!=?,p`qjsw= sbqwj`jsbwf#jm#wkfb#pwqlmd#jmeovfm`fpwzof>!nbqdjm.wls9qfsqfpfmwfg#az#wkfdqbgvbwfg#eqln#wkfWqbgjwjlmbooz/#wkfFofnfmw+!p`qjsw!*8Kltfufq/#pjm`f#wkf,gju= ?,gju= ?gju#ofew8#nbqdjm.ofew9sqlwf`wjlm#bdbjmpw38#ufqwj`bo.bojdm9Vmelqwvmbwfoz/#wkfwzsf>!jnbdf,{.j`lm,gju= ?gju#`obpp>!#`obpp>!`ofbqej{!=?gju#`obpp>!ellwfq\\n\\n?,gju= \\n\\n?,gju= wkf#nlwjlm#sj`wvqf<}=f<W<_<\\\\=l=m<V<T<]=f<W<_<\\\\=l=m<V<T<H<Y<X<Y=l<\\\\=j<T<T<Q<Y=m<V<R<W=`<V<R=m<R<R<]=e<Y<Q<T<Y=m<R<R<]=e<Y<Q<T=c<S=l<R<_=l<\\\\<P<P=g<r=n<S=l<\\\\<^<T=n=`<]<Y=m<S<W<\\\\=n<Q<R<P<\\\\=n<Y=l<T<\\\\<W=g<S<R<[<^<R<W=c<Y=n<S<R=m<W<Y<X<Q<T<Y=l<\\\\<[<W<T=k<Q=g=i<S=l<R<X=o<V=j<T<T<S=l<R<_=l<\\\\<P<P<\\\\<S<R<W<Q<R=m=n=`=b<Q<\\\\=i<R<X<T=n=m=c<T<[<]=l<\\\\<Q<Q<R<Y<Q<\\\\=m<Y<W<Y<Q<T=c<T<[<P<Y<Q<Y<Q<T=c<V<\\\\=n<Y<_<R=l<T<T<|<W<Y<V=m<\\\\<Q<X=l\\fHJ\\fIa\\fHY\\fHR\\fH\\\\\\fHR\\fHB\\fId\\fHD\\fIm\\fHi\\fH^\\fHF\\fIa\\fH\\\\\\fHJ\\fHR\\fHD\\fHA\\fHR\\fH\\\\\\fHH\\fIl\\fHC\\fHi\\fHD\\fIm\\fHJ\\fIk\\fHZ\\fHU\\fHS\\fHD\\fIa\\fHJ\\fIl\\fHk\\fHn\\fHM\\fHS\\fHC\\fHR\\fHJ\\fHS\\fH^\\fIa\\fH^\\fIl\\fHi\\fHK\\fHS\\fHy\\fHR\\fH\\\\\\fHY\\fIl\\fHM\\fHS\\fHC\\fIg\\fHv\\fHS\\fHs\\fIa\\fHL\\fIk\\fHT\\fHB\\fHR\\fHv\\fHR\\fH\\\\\\fHp\\fHn\\fHy\\fIa\\fHZ\\fHD\\fHJ\\fIm\\fHD\\fHS\\fHC\\fHR\\fHF\\fIa\\fH\\\\\\fHC\\fIg\\fH{\\fHi\\fHD\\fIm\\fHT\\fHR\\fH\\\\\\fH}\\fHD\\fH^\\fHR\\fHk\\fHD\\fHF\\fHR\\fH\\\\\\fIa\\fHs\\fIl\\fHZ\\fH\\\\\\fIa\\fHH\\fIg\\fHn\\fH^\\fIg\\fHy\\fHT\\fHA\\fHR\\fHG\\fHP\\fIa\\fH^\\fId\\fHZ\\fHZ\\fH\\\\\\fIa\\fHH\\fIk\\fHn\\fHF\\fIa\\fH\\\\\\fHJ\\fIk\\fHZ\\fHF\\fIa\\fH^\\fIk\\fHC\\fH\\\\\\fHy\\fIk\\fHn\\fHJ\\fIa\\fH\\\\\\fHT\\fIa\\fHI\\fHS\\fHH\\fHS\\fHe\\fHH\\fIa\\fHF\\fHR\\fHJ\\fHe\\fHD\\fIa\\fHU\\fIk\\fHn\\fHv\\fHS\\fHs\\fIa\\fHL\\fHR\\fHC\\fHR\\fHH\\fIa\\fH\\\\\\fHR\\fHp\\fIa\\fHC\\fHR\\fHJ\\fHR\\fHF\\fIm\\fH\\\\\\fHR\\fHD\\fIk\\fHp\\fIg\\fHM\\fHP\\fIk\\fHn\\fHi\\fHD\\fIm\\fHY\\fHR\\fHJ\\fHZ\\fIa\\fH\\\\\\fIk\\fHO\\fIl\\fHZ\\fHS\\fHy\\fIa\\fH[\\fHR\\fHT\\fH\\\\\\fHy\\fHR\\fH\\\\\\fIl\\fHT\\fHn\\fH{\\fIa\\fH\\\\\\fHU\\fHF\\fH\\\\\\fHS\\fHO\\fHR\\fHB\\fH@\\fIa\\fH\\\\\\fHR\\fHn\\fHM\\fH@\\fHv\\fIa\\fHv\\fIg\\fHn\\fHe\\fHF\\fH^\\fH@\\fIa\\fHK\\fHB\\fHn\\fHH\\fIa\\fH\\\\\\fIl\\fHT\\fHn\\fHF\\fH\\\\\\fIa\\fHy\\fHe\\fHB\\fIa\\fHB\\fIl\\fHJ\\fHB\\fHR\\fHK\\fIa\\fHC\\fHB\\fHT\\fHU\\fHR\\fHC\\fHH\\fHR\\fHZ\\fH@\\fIa\\fHJ\\fIg\\fHn\\fHB\\fIl\\fHM\\fHS\\fHC\\fHR\\fHj\\fHd\\fHF\\fIl\\fHc\\fH^\\fHB\\fIg\\fH@\\fHR\\fHk\\fH^\\fHT\\fHn\\fHz\\fIa\\fHC\\fHR\\fHj\\fHF\\fH\\\\\\fIk\\fHZ\\fHD\\fHi\\fHD\\fIm\\fH@\\fHn\\fHK\\fH@\\fHR\\fHp\\fHP\\fHR\\fH\\\\\\fHD\\fHY\\fIl\\fHD\\fHH\\fHB\\fHF\\fIa\\fH\\\\\\fHB\\fIm\\fHz\\fHF\\fIa\\fH\\\\\\fHZ\\fIa\\fHD\\fHF\\fH\\\\\\fHS\\fHY\\fHR\\fH\\\\\\fHD\\fIm\\fHy\\fHT\\fHR\\fHD\\fHT\\fHB\\fH\\\\\\fIa\\fHI\\fHD\\fHj\\fHC\\fIg\\fHp\\fHS\\fHH\\fHT\\fIg\\fHB\\fHY\\fHR\\fH\\\\4K5h5i4X4K4]5o4K4F4K5h5i5j4F4C5f4K4F4K5h5o5i4D5f5d4F4]4K5h5i4X4K5k4C4K4F4U4C4C4K5h4^5d4K4]4U4C4C4K5h4]4C5d4C4K5h4I4_5h4K5i5f4E4K5h5m5d4F5d4X5d4D4K5h5i4_4K4D5n4K4F4K5h5i4U5h5d5i4K4F4K5h5i4_5h4_5h4K4F4K5h4@4]4K5m5f5o4_4K5h4K4_5h4K5i5f4E4K5h4K4F4Y4K5h4K4Fhfztlqgp!#`lmwfmw>!t0-lqd,2:::,{kwno!=?b#wbqdfw>!\\\\aobmh!#wf{w,kwno8#`kbqpfw>!#wbqdfw>!\\\\aobmh!=?wbaof#`foosbggjmd>!bvwl`lnsofwf>!lee!#wf{w.bojdm9#`fmwfq8wl#obpw#ufqpjlm#az#ab`hdqlvmg.`lolq9# !#kqfe>!kwws9,,ttt-,gju=?,gju=?gju#jg>?b#kqfe>! !#`obpp>!!=?jnd#pq`>!kwws9,,`qjsw!#pq`>!kwws9,, ?p`qjsw#obmdvbdf>!,,FM!#!kwws9,,ttt-tfm`lgfVQJ@lnslmfmw+!#kqfe>!ibubp`qjsw9?gju#`obpp>!`lmwfmwgl`vnfmw-tqjwf+$?p`slpjwjlm9#baplovwf8p`qjsw#pq`>!kwws9,,#pwzof>!nbqdjm.wls9-njm-ip!=?,p`qjsw= ?,gju= ?gju#`obpp>!t0-lqd,2:::,{kwno!#  ?,algz= ?,kwno=gjpwjm`wjlm#afwtffm,!#wbqdfw>!\\\\aobmh!=?ojmh#kqfe>!kwws9,,fm`lgjmd>!vwe.;!<= t-bggFufmwOjpwfmfq<b`wjlm>!kwws9,,ttt-j`lm!#kqfe>!kwws9,,#pwzof>!ab`hdqlvmg9wzsf>!wf{w,`pp!#,= nfwb#sqlsfqwz>!ld9w?jmsvw#wzsf>!wf{w!##pwzof>!wf{w.bojdm9wkf#gfufolsnfmw#le#wzofpkffw!#wzsf>!wfkwno8#`kbqpfw>vwe.;jp#`lmpjgfqfg#wl#afwbaof#tjgwk>!233&!#Jm#bggjwjlm#wl#wkf#`lmwqjavwfg#wl#wkf#gjeefqfm`fp#afwtffmgfufolsnfmw#le#wkf#Jw#jp#jnslqwbmw#wl#?,p`qjsw= ?p`qjsw##pwzof>!elmw.pjyf92=?,psbm=?psbm#jg>daOjaqbqz#le#@lmdqfpp?jnd#pq`>!kwws9,,jnFmdojpk#wqbmpobwjlmB`bgfnz#le#P`jfm`fpgju#pwzof>!gjpsobz9`lmpwqv`wjlm#le#wkf-dfwFofnfmwAzJg+jg*jm#`lmivm`wjlm#tjwkFofnfmw+$p`qjsw$*8#?nfwb#sqlsfqwz>!ld9<}=f<W<_<\\\\=l=m<V<T #wzsf>!wf{w!#mbnf>!=Sqjub`z#Sloj`z?,b=bgnjmjpwfqfg#az#wkffmbaofPjmdofQfrvfpwpwzof>%rvlw8nbqdjm9?,gju=?,gju=?,gju=?=?jnd#pq`>!kwws9,,j#pwzof>%rvlw8eolbw9qfefqqfg#wl#bp#wkf#wlwbo#slsvobwjlm#lejm#Tbpkjmdwlm/#G-@-#pwzof>!ab`hdqlvmg.bnlmd#lwkfq#wkjmdp/lqdbmjybwjlm#le#wkfsbqwj`jsbwfg#jm#wkfwkf#jmwqlgv`wjlm#lejgfmwjejfg#tjwk#wkfej`wjlmbo#`kbqb`wfq#L{elqg#Vmjufqpjwz#njpvmgfqpwbmgjmd#leWkfqf#bqf/#kltfufq/pwzofpkffw!#kqfe>!,@lovnajb#Vmjufqpjwzf{sbmgfg#wl#jm`ovgfvpvbooz#qfefqqfg#wljmgj`bwjmd#wkbw#wkfkbuf#pvddfpwfg#wkbwbeejojbwfg#tjwk#wkf`lqqfobwjlm#afwtffmmvnafq#le#gjeefqfmw=?,wg=?,wq=?,wbaof=Qfsvaoj`#le#Jqfobmg ?,p`qjsw= ?p`qjsw#vmgfq#wkf#jmeovfm`f`lmwqjavwjlm#wl#wkfLeej`jbo#tfapjwf#lekfbgrvbqwfqp#le#wkf`fmwfqfg#bqlvmg#wkfjnsoj`bwjlmp#le#wkfkbuf#affm#gfufolsfgEfgfqbo#Qfsvaoj`#leaf`bnf#jm`qfbpjmdoz`lmwjmvbwjlm#le#wkfMlwf/#kltfufq/#wkbwpjnjobq#wl#wkbw#le#`bsbajojwjfp#le#wkfb``lqgbm`f#tjwk#wkfsbqwj`jsbmwp#jm#wkfevqwkfq#gfufolsnfmwvmgfq#wkf#gjqf`wjlmjp#lewfm#`lmpjgfqfgkjp#zlvmdfq#aqlwkfq?,wg=?,wq=?,wbaof=?b#kwws.frvju>![.VB.skzpj`bo#sqlsfqwjfple#Aqjwjpk#@lovnajbkbp#affm#`qjwj`jyfg+tjwk#wkf#f{`fswjlmrvfpwjlmp#balvw#wkfsbppjmd#wkqlvdk#wkf3!#`foosbggjmd>!3!#wklvpbmgp#le#sflsofqfgjqf`wp#kfqf-#Elqkbuf#`kjogqfm#vmgfq&0F&0@,p`qjsw&0F!**8?b#kqfe>!kwws9,,ttt-?oj=?b#kqfe>!kwws9,,pjwf\\\\mbnf!#`lmwfmw>!wf{w.gf`lqbwjlm9mlmfpwzof>!gjpsobz9#mlmf?nfwb#kwws.frvju>![.mft#Gbwf+*-dfwWjnf+*#wzsf>!jnbdf,{.j`lm!?,psbm=?psbm#`obpp>!obmdvbdf>!ibubp`qjswtjmglt-ol`bwjlm-kqfe?b#kqfe>!ibubp`qjsw9..= ?p`qjsw#wzsf>!w?b#kqfe>$kwws9,,ttt-klqw`vw#j`lm!#kqfe>!?,gju= ?gju#`obpp>!?p`qjsw#pq`>!kwws9,,!#qfo>!pwzofpkffw!#w?,gju= ?p`qjsw#wzsf>,b=#?b#kqfe>!kwws9,,#booltWqbmpsbqfm`z>![.VB.@lnsbwjaof!#`lmqfobwjlmpkjs#afwtffm ?,p`qjsw= ?p`qjsw#?,b=?,oj=?,vo=?,gju=bppl`jbwfg#tjwk#wkf#sqldqbnnjmd#obmdvbdf?,b=?b#kqfe>!kwws9,,?,b=?,oj=?oj#`obpp>!elqn#b`wjlm>!kwws9,,?gju#pwzof>!gjpsobz9wzsf>!wf{w!#mbnf>!r!?wbaof#tjgwk>!233&!#ab`hdqlvmg.slpjwjlm9!#alqgfq>!3!#tjgwk>!qfo>!pklqw`vw#j`lm!#k5=?vo=?oj=?b#kqfe>!##?nfwb#kwws.frvju>!`pp!#nfgjb>!p`qffm!#qfpslmpjaof#elq#wkf#!#wzsf>!bssoj`bwjlm,!#pwzof>!ab`hdqlvmg.kwno8#`kbqpfw>vwe.;!#booltwqbmpsbqfm`z>!pwzofpkffw!#wzsf>!wf ?nfwb#kwws.frvju>!=?,psbm=?psbm#`obpp>!3!#`foopsb`jmd>!3!=8 ?,p`qjsw= ?p`qjsw#plnfwjnfp#`boofg#wkfglfp#mlw#mf`fppbqjozElq#nlqf#jmelqnbwjlmbw#wkf#afdjmmjmd#le#?"GL@WZSF#kwno=?kwnosbqwj`vobqoz#jm#wkf#wzsf>!kjggfm!#mbnf>!ibubp`qjsw9uljg+3*8!feef`wjufmfpp#le#wkf#bvwl`lnsofwf>!lee!#dfmfqbooz#`lmpjgfqfg=?jmsvw#wzsf>!wf{w!#!=?,p`qjsw= ?p`qjswwkqlvdklvw#wkf#tlqog`lnnlm#njp`lm`fswjlmbppl`jbwjlm#tjwk#wkf?,gju= ?,gju= ?gju#`gvqjmd#kjp#ojefwjnf/`lqqfpslmgjmd#wl#wkfwzsf>!jnbdf,{.j`lm!#bm#jm`qfbpjmd#mvnafqgjsolnbwj`#qfobwjlmpbqf#lewfm#`lmpjgfqfgnfwb#`kbqpfw>!vwe.;!#?jmsvw#wzsf>!wf{w!#f{bnsofp#jm`ovgf#wkf!=?jnd#pq`>!kwws9,,jsbqwj`jsbwjlm#jm#wkfwkf#fpwbaojpknfmw#le ?,gju= ?gju#`obpp>!%bns8maps8%bns8maps8wl#gfwfqnjmf#tkfwkfqrvjwf#gjeefqfmw#eqlnnbqhfg#wkf#afdjmmjmdgjpwbm`f#afwtffm#wkf`lmwqjavwjlmp#wl#wkf`lmeoj`w#afwtffm#wkftjgfoz#`lmpjgfqfg#wltbp#lmf#le#wkf#ejqpwtjwk#ubqzjmd#gfdqffpkbuf#psf`vobwfg#wkbw+gl`vnfmw-dfwFofnfmwsbqwj`jsbwjmd#jm#wkflqjdjmbooz#gfufolsfgfwb#`kbqpfw>!vwe.;!=#wzsf>!wf{w,`pp!#,= jmwfq`kbmdfbaoz#tjwknlqf#`olpfoz#qfobwfgpl`jbo#bmg#slojwj`bowkbw#tlvog#lwkfqtjpfsfqsfmgj`vobq#wl#wkfpwzof#wzsf>!wf{w,`ppwzsf>!pvanjw!#mbnf>!ebnjojfp#qfpjgjmd#jmgfufolsjmd#`lvmwqjfp`lnsvwfq#sqldqbnnjmdf`lmlnj`#gfufolsnfmwgfwfqnjmbwjlm#le#wkfelq#nlqf#jmelqnbwjlmlm#pfufqbo#l``bpjlmpslqwvdv/Fp#+Fvqlsfv*<O<V=l<\\\\={<Q=m=`<V<\\\\=o<V=l<\\\\={<Q=m=`<V<\\\\<L<R=m=m<T<U=m<V<R<U<P<\\\\=n<Y=l<T<\\\\<W<R<^<T<Q=h<R=l<P<\\\\=j<T<T=o<S=l<\\\\<^<W<Y<Q<T=c<Q<Y<R<]=i<R<X<T<P<R<T<Q=h<R=l<P<\\\\=j<T=c<t<Q=h<R=l<P<\\\\=j<T=c<L<Y=m<S=o<]<W<T<V<T<V<R<W<T=k<Y=m=n<^<R<T<Q=h<R=l<P<\\\\=j<T=b=n<Y=l=l<T=n<R=l<T<T<X<R=m=n<\\\\=n<R=k<Q<R4K5h5i4F5d4K4@4C5d5j4K5h4K4X4F4]4K5o4K4F4K5h4K5n4F4]4K4A4K4Fkwno8#`kbqpfw>VWE.;!#pfwWjnflvw+evm`wjlm+*gjpsobz9jmojmf.aol`h8?jmsvw#wzsf>!pvanjw!#wzsf#>#$wf{w,ibubp`qj?jnd#pq`>!kwws9,,ttt-!#!kwws9,,ttt-t0-lqd,pklqw`vw#j`lm!#kqfe>!!#bvwl`lnsofwf>!lee!#?,b=?,gju=?gju#`obpp>?,b=?,oj= ?oj#`obpp>!`pp!#wzsf>!wf{w,`pp!#?elqn#b`wjlm>!kwws9,,{w,`pp!#kqfe>!kwws9,,ojmh#qfo>!bowfqmbwf!# ?p`qjsw#wzsf>!wf{w,#lm`oj`h>!ibubp`qjsw9+mft#Gbwf*-dfwWjnf+*~kfjdkw>!2!#tjgwk>!2!#Sflsof$p#Qfsvaoj`#le##?b#kqfe>!kwws9,,ttt-wf{w.gf`lqbwjlm9vmgfqwkf#afdjmmjmd#le#wkf#?,gju= ?,gju= ?,gju= fpwbaojpknfmw#le#wkf#?,gju=?,gju=?,gju=?,g ujftslqwxnjm.kfjdkw9 ?p`qjsw#pq`>!kwws9,,lswjlm=?lswjlm#ubovf>lewfm#qfefqqfg#wl#bp#,lswjlm= ?lswjlm#ubov?"GL@WZSF#kwno= ?"..XJmwfqmbwjlmbo#Bjqslqw= ?b#kqfe>!kwws9,,ttt?,b=?b#kqfe>!kwws9,,t\\fTL\\fT^\\fTE\\fT^\\fUh\\fT{\\fTN\\roI\\ro|\\roL\\ro{\\roO\\rov\\rot\\nAOGx\\bTA\\nzk#+\\vUmGx*\\fHD\\fHS\\fH\\\\\\fIa\\fHJ\\fIk\\fHZ\\fHM\\fHR\\fHe\\fHD\\fH^\\fIg\\fHM\\fHy\\fIa\\fH[\\fIk\\fHH\\fIa\\fH\\\\\\fHp\\fHR\\fHD\\fHy\\fHR\\fH\\\\\\fIl\\fHT\\fHn\\fH@\\fHn\\fHK\\fHS\\fHH\\fHT\\fIa\\fHI\\fHR\\fHF\\fHD\\fHR\\fHT\\fIa\\fHY\\fIl\\fHy\\fHR\\fH\\\\\\fHT\\fHn\\fHT\\fIa\\fHy\\fH\\\\\\fHO\\fHT\\fHR\\fHB\\fH{\\fIa\\fH\\\\\\fIl\\fHv\\fHS\\fHs\\fIa\\fHL\\fIg\\fHn\\fHY\\fHS\\fHp\\fIa\\fHr\\fHR\\fHD\\fHi\\fHB\\fIk\\fH\\\\\\fHS\\fHy\\fHR\\fHY\\fHS\\fHA\\fHS\\fHD\\fIa\\fHD\\fH{\\fHR\\fHM\\fHS\\fHC\\fHR\\fHm\\fHy\\fIa\\fHC\\fIg\\fHn\\fHy\\fHS\\fHT\\fIm\\fH\\\\\\fHy\\fIa\\fH[\\fHR\\fHF\\fHU\\fIm\\fHm\\fHv\\fHH\\fIl\\fHF\\fIa\\fH\\\\\\fH@\\fHn\\fHK\\fHD\\fHs\\fHS\\fHF\\fIa\\fHF\\fHO\\fIl\\fHy\\fIa\\fH\\\\\\fHS\\fHy\\fIk\\fHs\\fHF\\fIa\\fH\\\\\\fHR\\fH\\\\\\fHn\\fHA\\fHF\\fIa\\fH\\\\\\fHR\\fHF\\fIa\\fHH\\fHB\\fHR\\fH^\\fHS\\fHy\\fIg\\fHn\\fH\\\\\\fHG\\fHP\\fIa\\fHH\\fHR\\fH\\\\\\fHD\\fHS\\fH\\\\\\fIa\\fHB\\fHR\\fHO\\fH^\\fHS\\fHB\\fHS\\fHs\\fIk\\fHMgfp`qjswjlm!#`lmwfmw>!gl`vnfmw-ol`bwjlm-sqlw-dfwFofnfmwpAzWbdMbnf+?"GL@WZSF#kwno= ?kwno#?nfwb#`kbqpfw>!vwe.;!=9vqo!#`lmwfmw>!kwws9,,-`pp!#qfo>!pwzofpkffw!pwzof#wzsf>!wf{w,`pp!=wzsf>!wf{w,`pp!#kqfe>!t0-lqd,2:::,{kwno!#{nowzsf>!wf{w,ibubp`qjsw!#nfwklg>!dfw!#b`wjlm>!ojmh#qfo>!pwzofpkffw!##>#gl`vnfmw-dfwFofnfmwwzsf>!jnbdf,{.j`lm!#,=`foosbggjmd>!3!#`foops-`pp!#wzsf>!wf{w,`pp!#?,b=?,oj=?oj=?b#kqfe>!!#tjgwk>!2!#kfjdkw>!2!!=?b#kqfe>!kwws9,,ttt-pwzof>!gjpsobz9mlmf8!=bowfqmbwf!#wzsf>!bssoj.,,T0@,,GWG#[KWNO#2-3#foopsb`jmd>!3!#`foosbg#wzsf>!kjggfm!#ubovf>!,b=%maps8?psbm#qlof>!p ?jmsvw#wzsf>!kjggfm!#obmdvbdf>!IbubP`qjsw!##gl`vnfmw-dfwFofnfmwpAd>!3!#`foopsb`jmd>!3!#zsf>!wf{w,`pp!#nfgjb>!wzsf>$wf{w,ibubp`qjsw$tjwk#wkf#f{`fswjlm#le#zsf>!wf{w,`pp!#qfo>!pw#kfjdkw>!2!#tjgwk>!2!#>$(fm`lgfVQJ@lnslmfmw+?ojmh#qfo>!bowfqmbwf!# algz/#wq/#jmsvw/#wf{wnfwb#mbnf>!qlalwp!#`lmnfwklg>!slpw!#b`wjlm>!= ?b#kqfe>!kwws9,,ttt-`pp!#qfo>!pwzofpkffw!#?,gju=?,gju=?gju#`obppobmdvbdf>!ibubp`qjsw!=bqjb.kjggfm>!wqvf!=.[?qjsw!#wzsf>!wf{w,ibubpo>38~*+*8 +evm`wjlm+*xab`hdqlvmg.jnbdf9#vqo+,b=?,oj=?oj=?b#kqfe>!k\\n\\n?oj=?b#kqfe>!kwws9,,bwlq!#bqjb.kjggfm>!wqv=#?b#kqfe>!kwws9,,ttt-obmdvbdf>!ibubp`qjsw!#,lswjlm= ?lswjlm#ubovf,gju=?,gju=?gju#`obpp>qbwlq!#bqjb.kjggfm>!wqf>+mft#Gbwf*-dfwWjnf+*slqwvdv/Fp#+gl#Aqbpjo*<R=l<_<\\\\<Q<T<[<\\\\=j<T<T<^<R<[<P<R<Z<Q<R=m=n=`<R<]=l<\\\\<[<R<^<\\\\<Q<T=c=l<Y<_<T=m=n=l<\\\\=j<T<T<^<R<[<P<R<Z<Q<R=m=n<T<R<]=c<[<\\\\=n<Y<W=`<Q<\\\\?"GL@WZSF#kwno#SVAOJ@#!mw.Wzsf!#`lmwfmw>!wf{w,?nfwb#kwws.frvju>!@lmwfqbmpjwjlmbo,,FM!#!kwws9?kwno#{nomp>!kwws9,,ttt.,,T0@,,GWG#[KWNO#2-3#WGWG,{kwno2.wqbmpjwjlmbo,,ttt-t0-lqd,WQ,{kwno2,sf#>#$wf{w,ibubp`qjsw$8?nfwb#mbnf>!gfp`qjswjlmsbqfmwMlgf-jmpfqwAfelqf?jmsvw#wzsf>!kjggfm!#mbip!#wzsf>!wf{w,ibubp`qj+gl`vnfmw*-qfbgz+evm`wjp`qjsw#wzsf>!wf{w,ibubpjnbdf!#`lmwfmw>!kwws9,,VB.@lnsbwjaof!#`lmwfmw>wno8#`kbqpfw>vwe.;!#,= ojmh#qfo>!pklqw`vw#j`lm?ojmh#qfo>!pwzofpkffw!#?,p`qjsw= ?p`qjsw#wzsf>>#gl`vnfmw-`qfbwfFofnfm?b#wbqdfw>!\\\\aobmh!#kqfe>#gl`vnfmw-dfwFofnfmwpAjmsvw#wzsf>!wf{w!#mbnf>b-wzsf#>#$wf{w,ibubp`qjmsvw#wzsf>!kjggfm!#mbnfkwno8#`kbqpfw>vwe.;!#,=gwg!= ?kwno#{nomp>!kwws.,,T0@,,GWG#KWNO#7-32#WfmwpAzWbdMbnf+$p`qjsw$*jmsvw#wzsf>!kjggfm!#mbn?p`qjsw#wzsf>!wf{w,ibubp!#pwzof>!gjpsobz9mlmf8!=gl`vnfmw-dfwFofnfmwAzJg+>gl`vnfmw-`qfbwfFofnfmw+$#wzsf>$wf{w,ibubp`qjsw$jmsvw#wzsf>!wf{w!#mbnf>!g-dfwFofnfmwpAzWbdMbnf+pmj`bo!#kqfe>!kwws9,,ttt-@,,GWG#KWNO#7-32#Wqbmpjw?pwzof#wzsf>!wf{w,`pp!= ?pwzof#wzsf>!wf{w,`pp!=jlmbo-gwg!= ?kwno#{nomp>kwws.frvju>!@lmwfmw.Wzsfgjmd>!3!#`foopsb`jmd>!3!kwno8#`kbqpfw>vwe.;!#,= #pwzof>!gjpsobz9mlmf8!=??oj=?b#kqfe>!kwws9,,ttt-#wzsf>$wf{w,ibubp`qjsw$=<X<Y=c=n<Y<W=`<Q<R=m=n<T=m<R<R=n<^<Y=n=m=n<^<T<T<S=l<R<T<[<^<R<X=m=n<^<\\\\<]<Y<[<R<S<\\\\=m<Q<R=m=n<T\\fHF\\fIm\\fHT\\fIa\\fHH\\fHS\\fHy\\fHR\\fHy\\fHR\\fHn\\fH{\\fIa\\fH\\\\\\fIk\\fHT\\fHe\\fHD\\fIa\\fHU\\fIg\\fHn\\fHD\\fIk\\fHY\\fHS\\fHK\\fHR\\fHD\\fHT\\fHA\\fHR\\fHG\\fHS\\fHy\\fIa\\fHT\\fHS\\fHn\\fH{\\fHT\\fIm\\fH\\\\\\fHy\\fIa\\fH[\\fHS\\fHH\\fHy\\fIe\\fHF\\fIl\\fH\\\\\\fHR\\fHk\\fHs\\fHY\\fHS\\fHp\\fIa\\fHr\\fHR\\fHF\\fHD\\fHy\\fHR\\fH\\\\\\fIa\\fH\\\\\\fHY\\fHR\\fHd\\fHT\\fHy\\fIa\\fH\\\\\\fHS\\fHC\\fHH\\fHR\',"\\u06F7%\\u018C\'T%\\x85\'W%\\xD7%O%g%\\xA6&\\u0193%\\u01E5&>&*&\'&^&\\x88\\u0178\\u0C3E&\\u01AD&\\u0192&)&^&%&\'&\\x82&P&1&\\xB1&3&]&m&u&E&t&C&\\xCF&V&V&/&>&6&\\u0F76\\u177Co&p&@&E&M&P&x&@&F&e&\\xCC&7&:&(&D&0&C&)&.&F&-&1&(&L&F&1\\u025E*\\u03EA\\u21F3&\\u1372&K&;&)&E&H&P&0&?&9&V&\\x81&-&v&a&,&E&)&?&=&\'&\'&B&\\u0D2E&\\u0503&\\u0316*&*8&%&%&&&%,)&\\x9A&>&\\x86&7&]&F&2&>&J&6&n&2&%&?&\\x8E&2&6&J&g&-&0&,&*&J&*&O&)&6&(&<&B&N&.&P&@&2&.&W&M&%\\u053C\\x84(,(<&,&\\u03DA&\\u18C7&-&,(%&(&%&(\\u013B0&X&D&\\x81&j&\'&J&(&.&B&3&Z&R&h&3&E&E&<\\xC6-\\u0360\\u1EF3&%8?&@&,&Z&@&0&J&,&^&x&_&6&C&6&C\\u072C\\u2A25&f&-&-&-&-&,&J&2&8&z&8&C&Y&8&-&d&\\u1E78\\xCC-&7&1&F&7&t&W&7&I&.&.&^&=\\u0F9C\\u19D3&8(>&/&/&\\u077B\')\'\\u1065\')\'%@/&0&%\\u043E\\u09C0*&*@&C\\u053D\\u05D4\\u0274\\u05EB4\\u0DD7\\u071A\\u04D16\\u0D84&/\\u0178\\u0303Z&*%\\u0246\\u03FF&\\u0134&1\\xA8\\u04B4\\u0174",qt,"AAAAKKLLKKKKKJJIHHIHHGGFF"),(function(z,E){let X=Nt,$=Dt;for(let wt=0;wt<E.length;++wt)$[wt]=E[wt];let K=0;for(let wt=0;wt<E.length;++wt){X[wt]=K;let Rt=$[wt];Rt!==0&&(K+=wt<<(31&Rt))}for(let wt=E.length;wt<32;++wt)X[wt]=K;pt=z})(Tt,qt);function bt(j){this.data=new Int8Array(0),this.offset=0,this.data=j}function Pt(j,z,E,X){if(j.input===null)return-1;let $=j.input,K=Math.min($.offset+X,$.data.length),wt=K-$.offset;return z.set($.data.subarray($.offset,K),E),$.offset+=wt,wt}function le(j){let z=j.length,E=new Int32Array(z);for(let X=0;X<z;++X)E[X]=j.charCodeAt(X);return E}function Kt(j,z){if(z>=0)return z;throw j.runningState>=0&&(j.runningState=z),new Error("Brotli error code: "+z)}return function(z,E){let X=new Z;if(X.input=new bt(z),u(X),E){let _t=E.customDictionary;_t&&(function(Mt,St){return Mt.runningState!==1?Kt(Mt,-24):(Mt.cdNumChunks===0&&(Mt.cdChunks=new Array(16),Mt.cdChunkOffsets=new Int32Array(16),Mt.cdBlockBits=-1),Mt.cdNumChunks===15?Kt(Mt,-27):(Mt.cdChunks[Mt.cdNumChunks]=St,Mt.cdNumChunks++,Mt.cdTotalSize+=St.length,Mt.cdChunkOffsets[Mt.cdNumChunks]=Mt.cdTotalSize,0))})(X,_t)}let $=0,K=[];for(;;){let _t=new Int8Array(16384);if(K.push(_t),X.output=_t,X.outputOffset=0,X.outputLength=16384,X.outputUsed=0,J(X),$+=X.outputUsed,X.outputUsed<16384)break}(function(zt){return zt.runningState===0?Kt(zt,-25):(zt.runningState>0&&(zt.runningState=11),0)})(X),(function(zt){zt.input=new bt(new Int8Array(0))})(X);let wt=new Int8Array($),Rt=0;for(let _t=0;_t<K.length;++_t){let zt=K[_t],Mt=Math.min($,Rt+16384)-Rt;Mt<16384?wt.set(zt.subarray(0,Mt),Rt):wt.set(zt,Rt),Rt+=Mt}return wt}})(),Sf,Cm=class extends os{constructor(s,n){super(n);at(this,Sf,!0);this.stream=s,this.dict=s.dict}readBlock(){let s=this.stream.getBytes(),n=Qk(new Int8Array(s.buffer,s.byteOffset,s.length));this.buffer=new Uint8Array(n.buffer,n.byteOffset,n.length),this.bufferLength=this.buffer.length,this.eof=!0}async getImageData(s,n){let a=await this.asyncGetBytes();return a?a.length<=s?a:a.subarray(0,s):this.getBytes(s)}async asyncGetBytes(){let{decompressed:s,compressed:n}=await this.asyncGetBytesFromDecompressionStream("brotli");return s||(Bt(this,Sf,!1),this.stream=new ke(n,0,n.length,this.stream.dict),this.reset(),null)}get isAsync(){return S(this,Sf)}};Sf=new WeakMap;var Zk=async function(t={}){var s=t,n=(C,M)=>{throw M},a=Sj.url;try{new URL(".",a).href}catch{}console.log.bind(console);var i,o,r,l,f,c=console.error.bind(console),h=!1,m=!1;function u(){var C=g.buffer;l=new Int8Array(C),new Int16Array(C),f=new Uint8Array(C),new Uint16Array(C),new Int32Array(C),new Uint32Array(C),new Float32Array(C),new Float64Array(C),new BigInt64Array(C),new BigUint64Array(C)}class d{constructor(M){Y(this,"name","ExitStatus");this.message=`Program terminated with exit(${M})`,this.status=M}}var p,g,b=C=>{for(;C.length>0;)C.shift()(s)},w=[],k=C=>w.push(C),q=[],y=C=>q.push(C),v=!0,A=0,x={},I=C=>{if(C instanceof d||C=="unwind")return i;n(0,C)},B=()=>v||A>0,D=C=>{i=C,B()||(s.onExit?.(C),h=!0),n(0,new d(C))},W=(C,M)=>{i=C,D(C)},L=C=>{if(!h)try{return C()}catch(M){I(M)}finally{(()=>{if(!B())try{W(i)}catch(M){I(M)}})()}},ot=(C,M)=>Math.ceil(C/M)*M,P=C=>{var M=(C-g.buffer.byteLength+65535)/65536|0;try{return g.grow(M),u(),1}catch{}};if(s.noExitRuntime&&(v=s.noExitRuntime),s.print&&s.print,s.printErr&&(c=s.printErr),s.wasmBinary&&s.wasmBinary,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.shift()();s.writeArrayToMemory=(C,M)=>{l.set(C,M)};var H,V={e:()=>(function(M){s.onAbort?.(M),c(M="Aborted("+M+")"),h=!0,M+=". Build with -sASSERTIONS for more info.";var J=new WebAssembly.RuntimeError(M);throw r?.(J),J})(""),b:()=>{v=!1,A=0},c:(C,M)=>{if(x[C]&&(clearTimeout(x[C].id),delete x[C]),!M)return 0;var J=setTimeout(()=>{delete x[C],L(()=>p(C,performance.now()))},M);return x[C]={id:J,timeout_ms:M},0},g:function(M){s.imageData=new Uint8Array(M)},d:C=>{var M=f.length,J=2147483648;if((C>>>=0)>J)return!1;for(var et=1;et<=4;et*=2){var U=M*(1+.2/et);U=Math.min(U,C+100663296);var _=Math.min(J,ot(Math.max(C,U),65536));if(P(_))return!0}return!1},a:D,h:function(M,J,et,U){if(et===J){s.imageData=new Uint8ClampedArray(f.subarray(M,M+et*U));return}let _=J*U,ht=s.imageData=new Uint8ClampedArray(_);for(let vt=M,G=0;G<_;vt+=et,G+=J)ht.set(f.subarray(vt,vt+J),G)},f:function(M,J,et){s.imageData.set(f.subarray(M,M+J),et)}};return H=await(async function(){function M(et,U){return(function(ht){s._malloc=ht.k,s._free=ht.l,s._jbig2_decode=ht.m,s._ccitt_decode=ht.n,p=ht.o,g=ht.i,ht.__indirect_function_table})(H=et.exports),u(),H}var J=(function(){return{a:V}})();return new Promise((et,U)=>{s.instantiateWasm(J,(_,ht)=>{et(M(_))})})})(),(function(){(function(){if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)y(s.preRun.shift());b(q)})();function M(){s.calledRun=!0,h||((function(){m=!0,H.j()})(),o?.(s),s.onRuntimeInitialized?.(),(function(){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;)k(s.postRun.shift());b(w)})())}s.setStatus?(s.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>s.setStatus(""),1),M()},1)):M()})(),m?s:new Promise((C,M)=>{o=C,r=M})},Af,If,Cf,Hf,Ur,vi,xi,Qi,Hm,i8,es=class es{constructor(t=!1){at(this,Qi);at(this,vi,null);at(this,xi,null);Y(this,"_filename",null);Y(this,"_noWasmFilename",null);t&&S(es,If).add(this)}static setOptions({handler:t,useWasm:s,useWorkerFetch:n,wasmUrl:a}){Bt(es,Cf,s),Bt(es,Hf,n),Bt(es,Ur,a),n||Bt(es,Af,t)}static get instance(){Zt("Abstract getter `instance` accessed")}static cleanup(){for(let t of S(es,If))Bt(t,xi,null)}_getModule(t){if(!S(this,xi)){let{promise:s,resolve:n}=Promise.withResolvers(),a=[s];S(es,Cf)?a.push(t({warn:F,instantiateWasm:N(this,Qi,i8).bind(this,n)})):N(this,Qi,Hm).call(this,n),Bt(this,xi,Promise.race(a))}return S(this,xi)}async decode(t,s){Zt("Abstract method `decode` called")}};Af=new WeakMap,If=new WeakMap,Cf=new WeakMap,Hf=new WeakMap,Ur=new WeakMap,vi=new WeakMap,xi=new WeakMap,Qi=new WeakSet,Hm=async function(t){let s=null;try{s=(await import(`${S(es,Ur)}${this._noWasmFilename}`)).default()}catch(n){F(`#getJsModule: ${n}`)}t(s)},i8=async function(t,s,n){try{return S(this,vi)||(S(es,Hf)?Bt(this,vi,await G0(`${S(es,Ur)}${this._filename}`)):Bt(this,vi,await S(es,Af).sendWithPromise("FetchBinaryData",{kind:"wasmUrl",filename:this._filename}))),n((await WebAssembly.instantiate(S(this,vi),s)).instance)}catch(a){return F(`#instantiateWasm: ${a}`),N(this,Qi,Hm).call(this,t),null}},at(es,Af,null),at(es,If,new Set),at(es,Cf,!0),at(es,Hf,!0),at(es,Ur,null);var co=es,K1=class extends Bs{constructor(t){super(t,"Jbig2Error")}},W1=class e extends co{constructor(){super(...arguments);Y(this,"_filename","jbig2.wasm");Y(this,"_noWasmFilename","jbig2_nowasm_fallback.js")}static get instance(){return yt(this,"instance",new e(!0))}async decode(s,n,a,i,o){let r=await this._getModule(Zk);if(!r)throw new K1("JBig2 failed to initialize");let l,f;try{let c=s.length;if(l=r._malloc(c),r.writeArrayToMemory(s,l),o)r._ccitt_decode(l,c,n,a,o.K,o.EndOfLine?1:0,o.EncodedByteAlign?1:0,o.BlackIs1?1:0,o.Columns,o.Rows);else{let m=i?i.length:0;m>0&&(f=r._malloc(m),r.writeArrayToMemory(i,f)),r._jbig2_decode(l,c,n,a,f,m)}if(!r.imageData)throw new K1("Unknown error");let{imageData:h}=r;return r.imageData=null,h}finally{l&&r._free(l),f&&r._free(f)}}},Bm=class extends os{constructor(t,s,n){super(s),this.stream=t,this.maybeLength=s,this.dict=t.dict,n instanceof R||(n=R.empty),this.params={K:n.get("K")||0,EndOfLine:!!n.get("EndOfLine"),EncodedByteAlign:!!n.get("EncodedByteAlign"),Columns:n.get("Columns")||1728,Rows:n.get("Rows")||0,EndOfBlock:!!(n.get("EndOfBlock")??1),BlackIs1:!!n.get("BlackIs1")}}get bytes(){return yt(this,"bytes",this.stream.getBytes(this.maybeLength))}get isImageStream(){return!0}get isAsyncDecoder(){return!0}async decodeImage(t,s,n){return this.eof?this.buffer:(t??(t=this.stream.isAsync&&await this.stream.asyncGetBytes()||this.bytes),this.buffer=await W1.instance.decode(t,this.dict.get("W","Width"),this.dict.get("H","Height"),null,this.params),this.bufferLength=this.buffer.length,this.eof=!0,this.buffer)}},v3=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tq=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),eq=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),sq=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],nq=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],Bf,za,pr,V1=class extends os{constructor(s,n){super(n);at(this,za);at(this,Bf,!0);this.stream=s,this.dict=s.dict;let a=s.getByte(),i=s.getByte();if(a===-1||i===-1)throw new nt(`Invalid header in flate stream: ${a}, ${i}`);if((15&a)!=8)throw new nt(`Unknown compression method in flate stream: ${a}, ${i}`);if(((a<<8)+i)%31!=0)throw new nt(`Bad FCHECK in flate stream: ${a}, ${i}`);if(32&i)throw new nt(`FDICT bit set in flate stream: ${a}, ${i}`);this.codeSize=0,this.codeBuf=0}async getImageData(s,n){let a=await this.asyncGetBytes();return a?a.length<=s?a:a.subarray(0,s):this.getBytes(s)}async asyncGetBytes(){let{decompressed:s,compressed:n}=await this.asyncGetBytesFromDecompressionStream("deflate");return s||(Bt(this,Bf,!1),this.stream=new ke(n,2,n.length,this.stream.dict),this.reset(),null)}get isAsync(){return S(this,Bf)}getBits(s){let n=this.stream,a,i=this.codeSize,o=this.codeBuf;for(;i<s;){if((a=n.getByte())===-1)throw new nt("Bad encoding in flate stream");o|=a<<i,i+=8}return a=o&(1<<s)-1,this.codeBuf=o>>s,this.codeSize=i-=s,a}getCode(s){let n=this.stream,a=s[0],i=s[1],o,r=this.codeSize,l=this.codeBuf;for(;r<i&&(o=n.getByte())!==-1;)l|=o<<r,r+=8;let f=a[l&(1<<i)-1],c=f>>16,h=65535&f;if(c<1||r<c)throw new nt("Bad encoding in flate stream");return this.codeBuf=l>>c,this.codeSize=r-c,h}generateHuffmanTable(s){let n=s.length,a,i=0;for(a=0;a<n;++a)s[a]>i&&(i=s[a]);let o=1<<i,r=new Int32Array(o);for(let l=1,f=0,c=2;l<=i;++l,f<<=1,c<<=1)for(let h=0;h<n;++h)if(s[h]===l){let m=0,u=f;for(a=0;a<l;++a)m=m<<1|1&u,u>>=1;for(a=m;a<o;a+=c)r[a]=l<<16|h;++f}return[r,i]}readBlock(){let s,n,a,i=this.stream;try{n=this.getBits(3)}catch(c){N(this,za,pr).call(this,c.message);return}if(1&n&&(this.eof=!0),n>>=1,n===0){let c;if((c=i.getByte())===-1){N(this,za,pr).call(this,"Bad block header in flate stream");return}let h=c;if((c=i.getByte())===-1){N(this,za,pr).call(this,"Bad block header in flate stream");return}if(h|=c<<8,(c=i.getByte())===-1){N(this,za,pr).call(this,"Bad block header in flate stream");return}let m=c;if((c=i.getByte())===-1){N(this,za,pr).call(this,"Bad block header in flate stream");return}if(m|=c<<8,m!==(65535&~h)&&(h!==0||m!==0))throw new nt("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;let u=this.bufferLength,d=u+h;if(s=this.ensureBuffer(d),this.bufferLength=d,h===0)i.peekByte()===-1&&(this.eof=!0);else{let p=i.getBytes(h);s.set(p,u),p.length<h&&(this.eof=!0)}return}let o,r;if(n===1)o=sq,r=nq;else{if(n!==2)throw new nt("Unknown block type in flate stream");{let c=this.getBits(5)+257,h=this.getBits(5)+1,m=this.getBits(4)+4,u=new Uint8Array(v3.length),d;for(d=0;d<m;++d)u[v3[d]]=this.getBits(3);let p=this.generateHuffmanTable(u);a=0,d=0;let g=c+h,b=new Uint8Array(g),w,k,q;for(;d<g;){let y=this.getCode(p);if(y===16)w=2,k=3,q=a;else if(y===17)w=3,k=3,q=a=0;else{if(y!==18){b[d++]=a=y;continue}w=7,k=11,q=a=0}let v=this.getBits(w)+k;for(;v-- >0;)b[d++]=q}o=this.generateHuffmanTable(b.subarray(0,c)),r=this.generateHuffmanTable(b.subarray(c,g))}}s=this.buffer;let l=s?s.length:0,f=this.bufferLength;for(;;){let c=this.getCode(o);if(c<256){f+1>=l&&(s=this.ensureBuffer(f+1),l=s.length),s[f++]=c;continue}if(c===256){this.bufferLength=f;return}c-=257,c=tq[c];let h=c>>16;h>0&&(h=this.getBits(h)),a=(65535&c)+h,c=this.getCode(r),c=eq[c],h=c>>16,h>0&&(h=this.getBits(h));let m=(65535&c)+h;f+a>=l&&(s=this.ensureBuffer(f+a),l=s.length);for(let u=0;u<a;++u,++f)s[f]=s[f-m]}}};Bf=new WeakMap,za=new WeakSet,pr=function(s){ie(s),this.eof=!0};var Tm=class e extends os{constructor(t,s,n){super(s),this.stream=t,this.dict=t.dict,this.maybeLength=s,this.params=n}get bytes(){return yt(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}get isAsyncDecoder(){return!0}get isImageStream(){return!0}static stripFileHeader(t){if(t.length>=9&&t[0]===151&&t[1]===74&&t[2]===66&&t[3]===50&&t[4]===13&&t[5]===10&&t[6]===26&&t[7]===10){let s=2&t[8]?9:13;return t.subarray(s)}return t}async decodeImage(t,s,n){if(this.eof)return this.buffer;t=e.stripFileHeader(t||this.bytes);let a=null;if(this.params instanceof R){let i=this.params.get("JBIG2Globals");i instanceof Et&&(a=e.stripFileHeader(i.getBytes()))}return this.buffer=await W1.instance.decode(t,this.dict.get("Width"),this.dict.get("Height"),a),this.bufferLength=this.buffer.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}},aq=async function(t={}){var s=t,n="./this.program",a=(mt,ct)=>{throw ct},i=Sj.url;try{new URL(".",i).href}catch{}var o,r,l,f,c,h,m,u=console.log.bind(console),d=console.error.bind(console),p=!1,g=!1;function b(){var mt=q.buffer;c=new Int8Array(mt),new Int16Array(mt),m=new Uint8Array(mt),new Uint16Array(mt),f=new Int32Array(mt),h=new Uint32Array(mt),new Float32Array(mt),new Float64Array(mt),new BigInt64Array(mt),new BigUint64Array(mt)}class w{constructor(ct){Y(this,"name","ExitStatus");this.message=`Program terminated with exit(${ct})`,this.status=ct}}var k,q,y=mt=>{for(;mt.length>0;)mt.shift()(s)},v=[],A=mt=>v.push(mt),x=[],I=mt=>x.push(mt),B=!0,D=0,W={},L=mt=>{if(mt instanceof w||mt=="unwind")return o;a(0,mt)},ot=()=>B||D>0,P=mt=>{o=mt,ot()||(s.onExit?.(mt),p=!0),a(0,new w(mt))},H=(mt,ct)=>{o=mt,P(mt)},V=mt=>{if(!p)try{return mt()}catch(ct){L(ct)}finally{(()=>{if(!ot())try{H(o)}catch(ct){L(ct)}})()}},C=(mt,ct)=>Math.ceil(mt/ct)*ct,M=mt=>{var ct=(mt-q.buffer.byteLength+65535)/65536|0;try{return q.grow(ct),b(),1}catch{}},J={},et=()=>{if(!et.strings){var mt={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(var ct in J)J[ct]===void 0?delete mt[ct]:mt[ct]=J[ct];var tt=[];for(var ct in mt)tt.push(`${ct}=${mt[ct]}`);et.strings=tt}return et.strings},U=(mt,ct,tt)=>((lt,Z,pt,Nt)=>{if(!(Nt>0))return 0;for(var Dt=pt,Tt=pt+Nt-1,qt=0;qt<lt.length;++qt){var bt=lt.codePointAt(qt);if(bt<=127){if(pt>=Tt)break;Z[pt++]=bt}else if(bt<=2047){if(pt+1>=Tt)break;Z[pt++]=192|bt>>6,Z[pt++]=128|63&bt}else if(bt<=65535){if(pt+2>=Tt)break;Z[pt++]=224|bt>>12,Z[pt++]=128|bt>>6&63,Z[pt++]=128|63&bt}else{if(pt+3>=Tt)break;Z[pt++]=240|bt>>18,Z[pt++]=128|bt>>12&63,Z[pt++]=128|bt>>6&63,Z[pt++]=128|63&bt,qt++}}return Z[pt]=0,pt-Dt})(mt,m,ct,tt),_=mt=>{for(var ct=0,tt=0;tt<mt.length;++tt){var lt=mt.charCodeAt(tt);lt<=127?ct++:lt<=2047?ct+=2:lt>=55296&&lt<=57343?(ct+=4,++tt):ct+=3}return ct},ht=[null,[],[]],vt=globalThis.TextDecoder&&new TextDecoder,G=(mt,ct=0,tt,lt)=>{var Z=((bt,Pt,le,Kt)=>{var j=Pt+le;if(Kt)return j;for(;bt[Pt]&&!(Pt>=j);)++Pt;return Pt})(mt,ct,tt,lt);if(Z-ct>16&&mt.buffer&&vt)return vt.decode(mt.subarray(ct,Z));for(var pt="";ct<Z;){var Nt=mt[ct++];if(128&Nt){var Dt=63&mt[ct++];if((224&Nt)!=192){var Tt=63&mt[ct++];if((Nt=(240&Nt)==224?(15&Nt)<<12|Dt<<6|Tt:(7&Nt)<<18|Dt<<12|Tt<<6|63&mt[ct++])<65536)pt+=String.fromCharCode(Nt);else{var qt=Nt-65536;pt+=String.fromCharCode(55296|qt>>10,56320|1023&qt)}}else pt+=String.fromCharCode((31&Nt)<<6|Dt)}else pt+=String.fromCharCode(Nt)}return pt},It=(mt,ct)=>{var tt=ht[mt];ct===0||ct===10?((mt===1?u:d)(G(tt)),tt.length=0):tt.push(ct)},jt=(mt,ct,tt)=>mt?G(m,mt,ct,tt):"";if(s.noExitRuntime&&(B=s.noExitRuntime),s.print&&(u=s.print),s.printErr&&(d=s.printErr),s.wasmBinary&&s.wasmBinary,s.arguments&&s.arguments,s.thisProgram&&(n=s.thisProgram),s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.shift()();s.writeArrayToMemory=(mt,ct)=>{c.set(mt,ct)};var kt,Ft={m:()=>(function(ct){s.onAbort?.(ct),d(ct=`Aborted(${ct})`),p=!0,ct+=". Build with -sASSERTIONS for more info.";var tt=new WebAssembly.RuntimeError(ct);throw l?.(tt),tt})(""),l:()=>{B=!1,D=0},i:(mt,ct)=>{if(W[mt]&&(clearTimeout(W[mt].id),delete W[mt]),!ct)return 0;var tt=setTimeout(()=>{delete W[mt],V(()=>k(mt,performance.now()))},ct);return W[mt]={id:tt,timeout_ms:ct},0},f:function(ct,tt){ct>>=2;let lt=s.imageData=new Uint8ClampedArray(tt),Z=f.subarray(ct,ct+tt);lt.set(Z)},e:function(ct,tt,lt,Z){ct>>=2,tt>>=2,lt>>=2;let pt=s.imageData=new Uint8ClampedArray(3*Z),Nt=f.subarray(ct,ct+Z),Dt=f.subarray(tt,tt+Z),Tt=f.subarray(lt,lt+Z);for(let qt=0;qt<Z;qt++)pt[3*qt]=Nt[qt],pt[3*qt+1]=Dt[qt],pt[3*qt+2]=Tt[qt]},d:function(ct,tt,lt,Z,pt){ct>>=2,tt>>=2,lt>>=2,Z>>=2;let Nt=s.imageData=new Uint8ClampedArray(4*pt),Dt=f.subarray(ct,ct+pt),Tt=f.subarray(tt,tt+pt),qt=f.subarray(lt,lt+pt),bt=f.subarray(Z,Z+pt);for(let Pt=0;Pt<pt;Pt++)Nt[4*Pt]=Dt[Pt],Nt[4*Pt+1]=Tt[Pt],Nt[4*Pt+2]=qt[Pt],Nt[4*Pt+3]=bt[Pt]},j:mt=>{var ct=m.length,tt=2147483648;if((mt>>>=0)>tt)return!1;for(var lt=1;lt<=4;lt*=2){var Z=ct*(1+.2/lt);Z=Math.min(Z,mt+100663296);var pt=Math.min(tt,C(Math.max(mt,Z),65536));if(M(pt))return!0}return!1},o:(mt,ct)=>{var tt=0,lt=0;for(var Z of et()){var pt=ct+tt;h[mt+lt>>2]=pt,tt+=U(Z,pt,1/0)+1,lt+=4}return 0},p:(mt,ct)=>{var tt=et();h[mt>>2]=tt.length;var lt=0;for(var Z of tt)lt+=_(Z)+1;return h[ct>>2]=lt,0},n:function(ct,tt,lt,Z){tt=(pt=tt)<-9007199254740992||pt>9007199254740992?NaN:Number(pt);var pt;return 70},b:(mt,ct,tt,lt)=>{for(var Z=0,pt=0;pt<tt;pt++){var Nt=h[ct>>2],Dt=h[ct+4>>2];ct+=8;for(var Tt=0;Tt<Dt;Tt++)It(mt,m[Nt+Tt]);Z+=Dt}return h[lt>>2]=Z,0},q:function(ct,tt){ct>>=2;let lt=s.imageData=new Uint8ClampedArray(4*tt),Z=f.subarray(ct,ct+tt);for(let pt=0;pt<tt;pt++)lt[4*pt]=lt[4*pt+1]=lt[4*pt+2]=Z[pt],lt[4*pt+3]=255},h:function(ct,tt,lt){ct>>=2,tt>>=2;let Z=s.imageData=new Uint8ClampedArray(4*lt),pt=f.subarray(ct,ct+lt),Nt=f.subarray(tt,tt+lt);for(let Dt=0;Dt<lt;Dt++)Z[4*Dt]=Z[4*Dt+1]=Z[4*Dt+2]=pt[Dt],Z[4*Dt+3]=Nt[Dt]},c:function(ct){let tt=jt(ct);(s.warn||console.warn)(`OpenJPEG: ${tt}`)},k:P,g:function(ct,tt,lt,Z){ct>>=2,tt>>=2,lt>>=2;let pt=s.imageData=new Uint8ClampedArray(4*Z),Nt=f.subarray(ct,ct+Z),Dt=f.subarray(tt,tt+Z),Tt=f.subarray(lt,lt+Z);for(let qt=0;qt<Z;qt++)pt[4*qt]=Nt[qt],pt[4*qt+1]=Dt[qt],pt[4*qt+2]=Tt[qt],pt[4*qt+3]=255},a:function(ct){let tt=jt(ct);s.errorMessages?s.errorMessages+=`\n`+tt:s.errorMessages=tt}};return kt=await(async function(){function ct(lt,Z){return(function(Nt){s._malloc=Nt.t,s._free=Nt.u,s._jp2_decode=Nt.v,k=Nt.w,q=Nt.r,Nt.__indirect_function_table})(kt=lt.exports),b(),kt}var tt=(function(){return{a:Ft}})();return new Promise((lt,Z)=>{s.instantiateWasm(tt,(pt,Nt)=>{lt(ct(pt))})})})(),(function(){(function(){if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)I(s.preRun.shift());y(x)})();function ct(){s.calledRun=!0,p||((function(){g=!0,kt.s()})(),r?.(s),s.onRuntimeInitialized?.(),(function(){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;)A(s.postRun.shift());y(v)})())}s.setStatus?(s.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>s.setStatus(""),1),ct()},1)):ct()})(),g?s:new Promise((mt,ct)=>{r=mt,l=ct})},yr=class extends Bs{constructor(t){super(t,"JpxError")}},$1=class e extends co{constructor(){super(...arguments);Y(this,"_filename","openjpeg.wasm");Y(this,"_noWasmFilename","openjpeg_nowasm_fallback.js")}static get instance(){return yt(this,"instance",new e(!0))}async decode(s,{numComponents:n=4,isIndexedColormap:a=!1,smaskInData:i=!1,reducePower:o=0}={}){let r=await this._getModule(aq);if(!r)throw new yr("OpenJPEG failed to initialize");let l;try{let f=s.length;if(l=r._malloc(f),r.writeArrayToMemory(s,l),r._jp2_decode(l,f,n>0?n:0,!!a,!!i,o)){let{errorMessages:h}=r;throw h?(delete r.errorMessages,new yr(h)):new yr("Unknown error")}let{imageData:c}=r;return r.imageData=null,c}finally{l&&r._free(l)}}static parseImageProperties(s){let n=s.getByte();for(;n>=0;){let a=n;if(n=s.getByte(),(a<<8|n)===65361){s.skip(4);let i=s.getInt32()>>>0,o=s.getInt32()>>>0,r=s.getInt32()>>>0,l=s.getInt32()>>>0;return s.skip(16),{width:i-r,height:o-l,bitsPerComponent:8,componentsCount:s.getUint16()}}}throw new yr("No size marker found in JPX stream")}},Rm=class extends os{constructor(t,s){super(s),this.stream=t,this.dict=t.dict,this.maybeLength=s}get bytes(){return yt(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}get isAsyncDecoder(){return!0}async decodeImage(t,s,n){return this.eof?this.buffer:(t||(t=this.bytes),this.buffer=await $1.instance.decode(t,n),this.bufferLength=this.buffer.length,this.eof=!0,this.buffer)}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}get isImageStream(){return!0}},G1=class extends os{constructor(t,s,n){super(s),this.stream=t,this.dict=t.dict,this.cachedData=0,this.bitsCached=0;let a=4096,i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(a),dictionaryLengths:new Uint16Array(a),dictionaryPrevCodes:new Uint16Array(a),currentSequence:new Uint8Array(a),currentSequenceLength:0};for(let o=0;o<256;++o)i.dictionaryValues[o]=o,i.dictionaryLengths[o]=1;this.lzwState=i}readBits(t){let s=this.bitsCached,n=this.cachedData;for(;s<t;){let a=this.stream.getByte();if(a===-1)return this.eof=!0,null;n=n<<8|a,s+=8}return this.bitsCached=s-=t,this.cachedData=n,n>>>s&(1<<t)-1}readBlock(){let t,s,n,a=1024,{lzwState:i}=this,o=i.earlyChange,r=i.nextCode,l=i.dictionaryValues,f=i.dictionaryLengths,c=i.dictionaryPrevCodes,h=i.codeLength,m=i.prevCode,u=i.currentSequence,d=i.currentSequenceLength,p=0,g=this.bufferLength,b=this.ensureBuffer(this.bufferLength+a);for(t=0;t<512;t++){let w=this.readBits(h),k=d>0;if(w<256)u[0]=w,d=1;else{if(!(w>=258)){if(w===256){h=9,r=258,d=0;continue}this.eof=!0,delete this.lzwState;break}if(w<r)for(d=f[w],s=d-1,n=w;s>=0;s--)u[s]=l[n],n=c[n];else u[d++]=u[0]}if(k&&(c[r]=m,f[r]=f[m]+1,l[r]=u[0],r++,h=r+o&r+o-1?h:0|Math.min(Math.log(r+o)/.6931471805599453+1,12)),m=w,p+=d,a<p){do a+=512;while(a<p);b=this.ensureBuffer(this.bufferLength+a)}for(s=0;s<d;s++)b[g++]=u[s]}i.nextCode=r,i.codeLength=h,i.prevCode=m,i.currentSequenceLength=d,this.bufferLength=g}},X1=class extends os{constructor(t,s,n){if(super(s),!(n instanceof R))return t;let a=this.predictor=n.get("Predictor")||1;if(a<=1)return t;if(a!==2&&(a<10||a>15))throw new nt(`Unsupported predictor: ${a}`);this.readBlock=a===2?this.readBlockTiff:this.readBlockPng,this.stream=t,this.dict=t.dict;let i=this.colors=n.get("Colors")||1,o=this.bits=n.get("BPC","BitsPerComponent")||8,r=this.columns=n.get("Columns")||1;return this.pixBytes=i*o+7>>3,this.rowBytes=r*i*o+7>>3,this}readBlockTiff(){let t=this.rowBytes,s=this.bufferLength,n=this.ensureBuffer(s+t),a=this.bits,i=this.colors,o=this.stream.getBytes(t);if(this.eof=!o.length,this.eof)return;let r,l=0,f=0,c=0,h=0,m=s;if(a===1&&i===1)for(r=0;r<t;++r){let u=o[r]^l;u^=u>>1,u^=u>>2,u^=u>>4,l=(1&u)<<7,n[m++]=u}else if(a===8){for(r=0;r<i;++r)n[m++]=o[r];for(;r<t;++r)n[m]=n[m-i]+o[r],m++}else if(a===16){let u=2*i;for(r=0;r<u;++r)n[m++]=o[r];for(;r<t;r+=2){let d=((255&o[r])<<8)+(255&o[r+1])+((255&n[m-u])<<8)+(255&n[m-u+1]);n[m++]=d>>8&255,n[m++]=255&d}}else{let u=new Uint8Array(i+1),d=(1<<a)-1,p=0,g=s,b=this.columns;for(r=0;r<b;++r)for(let w=0;w<i;++w)c<a&&(l=l<<8|255&o[p++],c+=8),u[w]=u[w]+(l>>c-a)&d,c-=a,f=f<<a|u[w],h+=a,h>=8&&(n[g++]=f>>h-8&255,h-=8);h>0&&(n[g++]=(f<<8-h)+(l&(1<<8-h)-1))}this.bufferLength+=t}readBlockPng(){let t=this.rowBytes,s=this.pixBytes,n=this.stream.getByte(),a=this.stream.getBytes(t);if(this.eof=!a.length,this.eof)return;let i=this.bufferLength,o=this.ensureBuffer(i+t),r=o.subarray(i-t,i);r.length===0&&(r=new Uint8Array(t));let l,f,c,h=i;switch(n){case 0:for(l=0;l<t;++l)o[h++]=a[l];break;case 1:for(l=0;l<s;++l)o[h++]=a[l];for(;l<t;++l)o[h]=o[h-s]+a[l]&255,h++;break;case 2:for(l=0;l<t;++l)o[h++]=r[l]+a[l]&255;break;case 3:for(l=0;l<s;++l)o[h++]=(r[l]>>1)+a[l];for(;l<t;++l)o[h]=(r[l]+o[h-s]>>1)+a[l]&255,h++;break;case 4:for(l=0;l<s;++l)f=r[l],c=a[l],o[h++]=f+c;for(;l<t;++l){f=r[l];let m=r[l-s],u=o[h-s],d=u+f-m,p=d-u;p<0&&(p=-p);let g=d-f;g<0&&(g=-g);let b=d-m;b<0&&(b=-b),c=a[l],o[h++]=p<=g&&p<=b?u+c:g<=b?f+c:m+c}break;default:throw new nt(`Unsupported predictor: ${n}`)}this.bufferLength+=t}},Fm=class extends os{constructor(t,s){super(s),this.stream=t,this.dict=t.dict}readBlock(){let t=this.stream.getBytes(2);if(t.length<2||t[0]===128){this.eof=!0;return}let s,n=this.bufferLength,a=t[0];if(a<128){if(s=this.ensureBuffer(n+a+1),s[n++]=t[1],a>0){let i=this.stream.getBytes(a);s.set(i,n),n+=a}}else a=257-a,s=this.ensureBuffer(n+a+1),s.fill(t[1],n,n+a),n+=a;this.bufferLength=n}},Tf,fu,nn,Lo,Mm,r8,On=class{constructor({lexer:t,xref:s,allowStreams:n=!1,recoveryMode:a=!1}){at(this,nn);at(this,Tf,null);at(this,fu,0);this.lexer=t,this.xref=s,this.allowStreams=n,this.recoveryMode=a,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof Ve&&this.buf2.cmd==="ID"?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(t){if(t instanceof de)throw t;return!1}}getObj(t=null){let s=this.buf1;if(this.shift(),s instanceof Ve)switch(s.cmd){case"BI":return this.makeInlineImage(t);case"[":let n=[];for(;!Qe(this.buf1,"]")&&this.buf1!==fs;)n.push(this.getObj(t));if(this.buf1===fs){if(this.recoveryMode)return n;throw new Sl("End of file inside array.")}return this.shift(),n;case"<<":let a=new R(this.xref);for(;!Qe(this.buf1,">>")&&this.buf1!==fs;){if(!(this.buf1 instanceof it)){ie("Malformed dictionary: key must be a name object"),this.shift();continue}let i=this.buf1.name;if(this.shift(),this.buf1===fs)break;a.set(i,this.getObj(t))}if(this.buf1===fs){if(this.recoveryMode)return a;throw new Sl("End of file inside dictionary.")}return Qe(this.buf2,"stream")?this.allowStreams?this.makeStream(a,t):a:(this.shift(),a);default:return s}if(Number.isInteger(s)){if(Number.isInteger(this.buf1)&&Qe(this.buf2,"R")){let n=rt.get(s,this.buf1);return this.shift(),this.shift(),n}return s}return typeof s=="string"&&t?t.decryptString(s):s}findDefaultInlineStreamEnd(t){let{knownCommands:s}=this.lexer,n=t.pos,a,i,o=0;for(;(a=t.getByte())!==-1;)if(o===0)o=a===69?1:0;else if(o===1)o=a===73?2:0;else if(a===32||a===10||a===13){i=t.pos;let l=t.peekBytes(15),f=l.length;if(f===0)break;for(let m=0;m<f;m++)if(a=l[m],(a!==0||l[m+1]===0)&&a!==10&&a!==13&&(a<32||a>127)){o=0;break}if(o!==2)continue;if(!s){F("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}let c=new Ls(new ke(t.peekBytes(75)),s);c._hexStringWarn=()=>{};let h=0;for(;;){let m=c.getObj();if(m===fs){o=0;break}if(m instanceof Ve){let u=s[m.cmd];if(!u){o=0;break}if(u.variableArgs?h<=u.numArgs:h===u.numArgs)break;h=0;continue}h++}if(o===2)break}else o=0;a===-1&&(F("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),i&&(F(\'... trying to recover by using the last "EI" occurrence.\'),t.skip(-(t.pos-i))));let r=4;return t.skip(-r),a=t.peekByte(),t.skip(r),rn(a)||r--,t.pos-r-n}findDCTDecodeInlineStreamEnd(t){let s=t.pos,n,a,i=!1;for(;(n=t.getByte())!==-1;)if(n===255){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:a=t.getUint16(),a>2?t.skip(a-2):t.skip(-2)}if(i)break}let o=t.pos-s;return n===-1?(F("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),t.skip(-o),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),o)}findASCII85DecodeInlineStreamEnd(t){let s=t.pos,n;for(;(n=t.getByte())!==-1;)if(n===126){let i=t.pos;for(n=t.peekByte();rn(n);)t.skip(),n=t.peekByte();if(n===62){t.skip();break}if(t.pos>i){let o=t.peekBytes(2);if(o[0]===69&&o[1]===73)break}}let a=t.pos-s;return n===-1?(F("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-a),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),a)}findASCIIHexDecodeInlineStreamEnd(t){let s=t.pos,n;for(;(n=t.getByte())!==-1&&n!==62;);let a=t.pos-s;return n===-1?(F("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-a),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),a)}inlineStreamSkipEI(t){let s,n=0;for(;(s=t.getByte())!==-1;)if(n===0)n=s===69?1:0;else if(n===1)n=s===73?2:0;else if(n===2)break}makeInlineImage(t){let s=this.lexer,n=s.stream,a=new R(this.xref),i;for(;!Qe(this.buf1,"ID")&&this.buf1!==fs;){if(!(this.buf1 instanceof it))throw new nt("Dictionary key must be a name object");let m=this.buf1.name;if(this.shift(),this.buf1===fs)break;a.set(m,this.getObj(t))}s.beginInlineImagePos!==-1&&(i=n.pos-s.beginInlineImagePos);let o=a.get("F","Filter"),r;if(o instanceof it)r=o.name;else if(Array.isArray(o)){let m=N(this,nn,Lo).call(this,o[0]);m instanceof it&&(r=m.name)}let l=n.pos,f,c;switch(r){case"DCT":case"DCTDecode":f=this.findDCTDecodeInlineStreamEnd(n);break;case"A85":case"ASCII85Decode":f=this.findASCII85DecodeInlineStreamEnd(n);break;case"AHx":case"ASCIIHexDecode":f=this.findASCIIHexDecodeInlineStreamEnd(n);break;default:f=this.findDefaultInlineStreamEnd(n)}if(f<1e3&&i>0){let m=n.pos;n.pos=s.beginInlineImagePos,c=(function(p){let g=[],b=p.length,w=0;for(;w<b-1;)g.push(p[w++]<<8|p[w++]);return w<b&&g.push(p[w]),b+"_"+String.fromCharCode.apply(null,g)})(n.getBytes(i+f)),n.pos=m;let u=S(this,Tf)?.get(c);if(u)return this.buf2=Ve.get("EI"),this.shift(),u.reset(),u}let h=n.makeSubStream(l,f,a);return t&&!N(this,nn,Mm).call(this,o)&&(h=t.createStream(h,f)),h=this.filter(h,a,f,t),h.dict=a,c&&(h.cacheKey="inline_img_"+ ++pe(this,fu)._,(S(this,Tf)??Bt(this,Tf,new Map)).set(c,h)),this.buf2=Ve.get("EI"),this.shift(),h}makeStream(t,s){let n=this.lexer,a=n.stream;n.skipToNextLine();let i=a.pos-1,o=t.get("Length");if(Number.isInteger(o)||(ie(`Bad length "${o&&o.toString()}" in stream.`),o=0),a.pos=i+o,n.nextChar(),this.tryShift()&&Qe(this.buf2,"endstream"))this.shift();else{if(o=N(this,nn,r8).call(this,i),o<0)throw new nt("Missing endstream command.");n.nextChar(),this.shift(),this.shift()}this.shift(),a=a.makeSubStream(i,o,t);let r=t.get("F","Filter");return s&&!N(this,nn,Mm).call(this,r)&&(a=s.createStream(a,o)),a=this.filter(a,t,o,s),a.dict=t,a}filter(t,s,n,a=null){let i=s.get("F","Filter"),o=s.get("DP","DecodeParms");if(i instanceof it)return Array.isArray(o)&&F("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(t,i.name,n,o,a);let r=n;if(Array.isArray(i)){let l=i,f=o;for(let c=0,h=l.length;c<h;++c){if(i=N(this,nn,Lo).call(this,l[c]),!(i instanceof it))throw new nt(`Bad filter name "${i}"`);o=null,Array.isArray(f)&&c in f&&(o=N(this,nn,Lo).call(this,f[c])),t=this.makeFilter(t,i.name,r,o,a),r=null}}return t}makeFilter(t,s,n,a,i=null){if(n===0)return F(`Empty "${s}" stream.`),new Cl;try{switch(s){case"Fl":case"FlateDecode":return a?new X1(new V1(t,n),n,a):new V1(t,n);case"LZW":case"LZWDecode":let o=1;return a?(a.has("EarlyChange")&&(o=a.get("EarlyChange")),new X1(new G1(t,n,o),n,a)):new G1(t,n,o);case"DCT":case"DCTDecode":return new fo(t,n,a);case"JPX":case"JPXDecode":return new Rm(t,n);case"A85":case"ASCII85Decode":return new Am(t,n);case"AHx":case"ASCIIHexDecode":return new Im(t,n);case"CCF":case"CCITTFaxDecode":return new Bm(t,n,a);case"RL":case"RunLengthDecode":return new Fm(t,n);case"JBIG2Decode":return new Tm(t,n,a);case"BrotliDecode":return new Cm(t,n);case"Crypt":{if(!i)return F(\'Filter "Crypt" is missing a cipher transform.\'),t;let r=a instanceof R?a.get("Name"):null,l=r instanceof it?r:it.get("Identity");return i.createStream(t,n,l)}}return F(`Filter "${s}" is not supported.`),t}catch(o){if(o instanceof de)throw o;return F(`Invalid stream: "${o}"`),new Cl}}};Tf=new WeakMap,fu=new WeakMap,nn=new WeakSet,Lo=function(t){return this.xref?this.xref.fetchIfRef(t):t},Mm=function(t){return Array.isArray(t)?t.some(s=>$t(N(this,nn,Lo).call(this,s),"Crypt")):$t(t,"Crypt")},r8=function(t){let{stream:s}=this.lexer;s.pos=t;let n=new Uint8Array([101,110,100]),a=n.length,i=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],o=9-a;for(;s.pos<s.end;){let r=s.peekBytes(2048),l=r.length-9;if(l<=0)break;let f=0;for(;f<l;){let c=0;for(;c<a&&r[f+c]===n[c];)c++;if(c>=a){let h=!1;for(let m of i){let u=m.length,d=0;for(;d<u&&r[f+c+d]===m[d];)d++;if(d>=o){h=!0;break}if(d>=u){rn(r[f+c+d])&&(ie(`Found "${Cs([...n,...m])}" when searching for endstream command.`),h=!0);break}}if(h)return s.pos+=f,s.pos-t}f++}s.pos+=l}return-1};var ir=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Qu(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var Ls=class{constructor(t,s=null){this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=s,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let t=this.currentChar,s=0,n=1;if(t===45?(n=-1,t=this.nextChar(),t===45&&(t=this.nextChar())):t===43&&(t=this.nextChar()),t===10||t===13)do t=this.nextChar();while(t===10||t===13);if(t===46&&(s=10,t=this.nextChar()),t<48||t>57){let i=`Invalid number: ${String.fromCharCode(t)} (charCode ${t})`;if(rn(t)||t===40||t===60||t===-1)return ie(`Lexer.getNumber - "${i}".`),0;throw new nt(i)}let a=t-48;for(;(t=this.nextChar())>=0;)if(t>=48&&t<=57)s!==0&&(s*=10),a=10*a+(t-48);else if(t===46){if(s!==0)break;s=1}else{if(t!==45)break;F("Badly formatted number: minus sign in the middle")}return s!==0&&(a/=s),n*a}getString(){let t=1,s=!1,n=this.strBuf;n.length=0;let a=this.nextChar();for(;;){let i=!1;switch(0|a){case-1:F("Unterminated string"),s=!0;break;case 40:++t,n.push("(");break;case 41:--t===0?(this.nextChar(),s=!0):n.push(")");break;case 92:switch(a=this.nextChar(),a){case-1:F("Unterminated string"),s=!0;break;case 110:n.push(`\n`);break;case 114:n.push("\\r");break;case 116:n.push(" ");break;case 98:n.push("\\b");break;case 102:n.push("\\f");break;case 92:case 40:case 41:n.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let o=15&a;a=this.nextChar(),i=!0,a>=48&&a<=55&&(o=(o<<3)+(15&a),a=this.nextChar(),a>=48&&a<=55&&(i=!1,o=(o<<3)+(15&a))),n.push(String.fromCharCode(o));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(a))}break;default:n.push(String.fromCharCode(a))}if(s)break;i||(a=this.nextChar())}return n.join("")}getName(){let t,s,n=this.strBuf;for(n.length=0;(t=this.nextChar())>=0&&!ir[t];)if(t===35){if(t=this.nextChar(),ir[t]){F("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}let a=Qu(t);if(a!==-1){s=t,t=this.nextChar();let i=Qu(t);if(i===-1){if(F(`Lexer_getName: Illegal digit (${String.fromCharCode(t)}) in hexadecimal number.`),n.push("#",String.fromCharCode(s)),ir[t])break;n.push(String.fromCharCode(t));continue}n.push(String.fromCharCode(a<<4|i))}else n.push("#",String.fromCharCode(t))}else n.push(String.fromCharCode(t));return n.length>127&&F(`Name token is longer than allowed by the spec: ${n.length}`),it.get(n.join(""))}_hexStringWarn(t){this._hexStringNumWarn++!==5?this._hexStringNumWarn>5||F(`getHexString - ignoring invalid character: ${t}`):F("getHexString - ignoring additional invalid characters.")}getHexString(){let t=this.strBuf;t.length=0;let s=this.currentChar,n=-1,a=-1;for(this._hexStringNumWarn=0;;){if(s<0){F("Unterminated hex string");break}if(s===62){this.nextChar();break}ir[s]!==1?(a=Qu(s),a===-1?this._hexStringWarn(s):n===-1?n=a:(t.push(String.fromCharCode(n<<4|a)),n=-1),s=this.nextChar()):s=this.nextChar()}return n!==-1&&t.push(String.fromCharCode(n<<4)),t.join("")}getObj(){let t=!1,s=this.currentChar;for(;;){if(s<0)return fs;if(t)s!==10&&s!==13||(t=!1);else if(s===37)t=!0;else if(ir[s]!==1)break;s=this.nextChar()}switch(0|s){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),Ve.get("[");case 93:return this.nextChar(),Ve.get("]");case 60:return s=this.nextChar(),s===60?(this.nextChar(),Ve.get("<<")):this.getHexString();case 62:return s=this.nextChar(),s===62?(this.nextChar(),Ve.get(">>")):Ve.get(">");case 123:return this.nextChar(),Ve.get("{");case 125:return this.nextChar(),Ve.get("}");case 41:throw this.nextChar(),new nt(`Illegal character: ${s}`)}let n=String.fromCharCode(s);if(s<32||s>127){let o=this.peekChar();if(o>=32&&o<=127)return this.nextChar(),Ve.get(n)}let a=this.knownCommands,i=a?.[n]!==void 0;for(;(s=this.nextChar())>=0&&!ir[s];){let o=n+String.fromCharCode(s);if(i&&a[o]===void 0)break;if(n.length===128)throw new nt(`Command token too long: ${n.length}`);n=o,i=a?.[n]!==void 0}return n==="true"?!0:n==="false"?!1:n==="null"?null:(n==="BI"&&(this.beginInlineImagePos=this.stream.pos),Ve.get(n))}skipToNextLine(){let t=this.currentChar;for(;t>=0;){if(t===13){t=this.nextChar(),t===10&&this.nextChar();break}if(t===10){this.nextChar();break}t=this.nextChar()}}},zm=class{static create(t){function s(c,h,m=!1){let u=c.get(h);if(Number.isInteger(u)&&(m?u>=0:u>0))return u;throw new Error(`The "${h}" parameter in the linearization dictionary is invalid.`)}let n=new On({lexer:new Ls(t),xref:null}),a=n.getObj(),i=n.getObj(),o=n.getObj(),r=n.getObj(),l,f;if(!(Number.isInteger(a)&&Number.isInteger(i)&&Qe(o,"obj")&&r instanceof R&&typeof(l=r.get("Linearized"))=="number"&&l>0))return null;if((f=s(r,"L"))!==t.length)throw new Error(\'The "L" parameter in the linearization dictionary does not equal the stream length.\');return{length:f,hints:(function(h){let m=h.get("H"),u;if(Array.isArray(m)&&((u=m.length)===2||u===4)){for(let d=0;d<u;d++){let p=m[d];if(!(Number.isInteger(p)&&p>0))throw new Error(`Hint (${d}) in the linearization dictionary is invalid.`)}return m}throw new Error("Hint array in the linearization dictionary is invalid.")})(r),objectNumberFirst:s(r,"O"),endFirst:s(r,"E"),numPages:s(r,"N"),mainXRefEntriesOffset:s(r,"T"),pageFirst:r.has("P")?s(r,"P",!0):0}}},iq=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],Zu=2**24-1,Bl=class{constructor(t=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}addCodespaceRange(t,s,n){this.codespaceRanges[t-1].push(s,n),this.numCodespaceRanges++}mapCidRange(t,s,n){if(s-t>Zu)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;t<=s;)this._map[t++]=n++}mapBfRange(t,s,n){if(s-t>Zu)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");let a=n.length-1;for(;t<=s;){this._map[t++]=n;let i=n.charCodeAt(a)+1;i>255?n=n.substring(0,a-1)+String.fromCharCode(n.charCodeAt(a-1)+1)+"\\0":n=n.substring(0,a)+String.fromCharCode(i)}}mapBfRangeToArray(t,s,n){if(s-t>Zu)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");let a=n.length,i=0;for(;t<=s&&i<a;)this._map[t]=n[i++],++t}mapOne(t,s){this._map[t]=s}lookup(t){return this._map[t]}contains(t){return this._map[t]!==void 0}forEach(t){let s=this._map,n=s.length;if(n<=65536)for(let a=0;a<n;a++)s[a]!==void 0&&t(a,s[a]);else for(let a in s)t(a,s[a])}charCodeOf(t){let s=this._map;if(s.length<=65536)return s.indexOf(t);for(let n in s)if(s[n]===t)return 0|n;return-1}getMap(){return this._map}readCharCode(t,s,n){let a=0,i=this.codespaceRanges;for(let o=0,r=i.length;o<r;o++){a=(a<<8|t.charCodeAt(s+o))>>>0;let l=i[o];for(let f=0,c=l.length;f<c;){let h=l[f++],m=l[f++];if(a>=h&&a<=m){n.charcode=a,n.length=o+1;return}}}n.charcode=0,n.length=1}getCharCodeLength(t){let s=this.codespaceRanges;for(let n=0,a=s.length;n<a;n++){let i=s[n];for(let o=0,r=i.length;o<r;){let l=i[o++],f=i[o++];if(t>=l&&t<=f)return n+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if(this.name!=="Identity-H"&&this.name!=="Identity-V"||this._map.length!==65536)return!1;for(let t=0;t<65536;t++)if(this._map[t]!==t)return!1;return!0}},zi=class extends Bl{constructor(t,s){super(),this.vertical=t,this.addCodespaceRange(s,0,65535)}mapCidRange(t,s,n){Zt("should not call mapCidRange")}mapBfRange(t,s,n){Zt("should not call mapBfRange")}mapBfRangeToArray(t,s,n){Zt("should not call mapBfRangeToArray")}mapOne(t,s){Zt("should not call mapCidOne")}lookup(t){return Number.isInteger(t)&&t<=65535?t:void 0}contains(t){return Number.isInteger(t)&&t<=65535}forEach(t){for(let s=0;s<=65535;s++)t(s,s)}charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}getMap(){let t=new Array(65536);for(let s=0;s<=65535;s++)t[s]=s;return t}get length(){return 65536}get isIdentityCMap(){Zt("should not access .isIdentityCMap")}};function Qa(e){let t=0;for(let s=0;s<e.length;s++)t=t<<8|e.charCodeAt(s);return t>>>0}function Vi(e){if(typeof e!="string")throw new nt("Malformed CMap: expected string.")}function o8(e){if(!Number.isInteger(e))throw new nt("Malformed CMap: expected int.")}function rq(e,t){for(;;){let s=t.getObj();if(s===fs)break;if(Qe(s,"endbfchar"))return;Vi(s);let n=Qa(s);s=t.getObj(),Vi(s);let a=s;e.mapOne(n,a)}}function oq(e,t){for(;;){let s=t.getObj();if(s===fs)break;if(Qe(s,"endbfrange"))return;Vi(s);let n=Qa(s);s=t.getObj(),Vi(s);let a=Qa(s);if(s=t.getObj(),Number.isInteger(s)||typeof s=="string"){let i=Number.isInteger(s)?String.fromCharCode(s):s;e.mapBfRange(n,a,i)}else{if(!Qe(s,"["))break;{s=t.getObj();let i=[];for(;!Qe(s,"]")&&s!==fs;)i.push(s),s=t.getObj();e.mapBfRangeToArray(n,a,i)}}}throw new nt("Invalid bf range.")}function lq(e,t){for(;;){let s=t.getObj();if(s===fs)break;if(Qe(s,"endcidchar"))return;Vi(s);let n=Qa(s);s=t.getObj(),o8(s);let a=s;e.mapOne(n,a)}}function fq(e,t){for(;;){let s=t.getObj();if(s===fs)break;if(Qe(s,"endcidrange"))return;Vi(s);let n=Qa(s);s=t.getObj(),Vi(s);let a=Qa(s);s=t.getObj(),o8(s);let i=s;e.mapCidRange(n,a,i)}}function cq(e,t){for(;;){let s=t.getObj();if(s===fs)break;if(Qe(s,"endcodespacerange"))return;if(typeof s!="string")break;let n=Qa(s);if(s=t.getObj(),typeof s!="string")break;let a=Qa(s);e.addCodespaceRange(s.length,n,a)}throw new nt("Invalid codespace range.")}function hq(e,t){let s=t.getObj();Number.isInteger(s)&&(e.vertical=!!s)}function uq(e,t){let s=t.getObj();s instanceof it&&(e.name=s.name)}async function l8(e,t,s,n){let a,i;t:for(;;)try{let o=t.getObj();if(o===fs)break;if(o instanceof it)o.name==="WMode"?hq(e,t):o.name==="CMapName"&&uq(e,t),a=o;else if(o instanceof Ve)switch(o.cmd){case"endcmap":break t;case"usecmap":a instanceof it&&(i=a.name);break;case"begincodespacerange":cq(e,t);break;case"beginbfchar":rq(e,t);break;case"begincidchar":lq(e,t);break;case"beginbfrange":oq(e,t);break;case"begincidrange":fq(e,t)}}catch(o){if(o instanceof de)throw o;F("Invalid cMap data: "+o);continue}return!n&&i&&(n=i),n?f8(e,s,n):e}async function f8(e,t,s){if(e.useCMap=await Dm(s,t),e.numCodespaceRanges===0){let n=e.useCMap.codespaceRanges;for(let a=0;a<n.length;a++)e.codespaceRanges[a]=n[a].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach(function(n,a){e.contains(n)||e.mapOne(n,a)}),e}async function Dm(e,t){if(e==="Identity-H")return new zi(!1,2);if(e==="Identity-V")return new zi(!0,2);if(!iq.includes(e))throw new Error("Unknown CMap name: "+e);if(!t)throw new Error("Built-in CMap parameters are not provided.");let{cMapData:s,isCompressed:n}=await t(e),a=new Bl(!0);if(n)return new Sm().process(s,a,o=>f8(a,t,o));let i=new Ls(new ke(s));return l8(a,i,t,null)}var hi=class{static async create({encoding:t,fetchBuiltInCMap:s,useCMap:n}){if(t instanceof it)return Dm(t.name,s);if(t instanceof Et){if(t.isAsync){let i=await t.asyncGetBytes();i&&(t=new ke(i,0,i.length,t.dict))}let a=await l8(new Bl,new Ls(t),s,n);return a.isIdentityCMap?Dm(a.name,s):a}throw new Error("Encoding required.")}},c8=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],mq=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],C5=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"],ma=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""],Tl=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"],Mu=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""],H5=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];function Rl(e){switch(e){case"WinAnsiEncoding":return Tl;case"StandardEncoding":return ma;case"MacRomanEncoding":return C5;case"SymbolSetEncoding":return Mu;case"ZapfDingbatsEncoding":return H5;case"ExpertEncoding":return c8;case"MacExpertEncoding":return mq;default:return null}}var yn=Se(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052,e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36,e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.f_f_i=64259,e.ffl=64260,e.f_f_l=64260,e.fi=64257,e.f_i=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.f_l=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.planckover2pi=8463,e.planckover2pi1=8463,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}),pq=Se(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0}),dq=Se(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63718]=9168,e[63719]=9135,e[63733]=9134,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120});function ho(e,t){let s=t[e];if(s!==void 0)return s;if(!e)return-1;if(e[0]==="u"){let n=e.length,a;if(n===7&&e[1]==="n"&&e[2]==="i")a=e.substring(3);else{if(!(n>=5&&n<=7))return-1;a=e.substring(1)}if(a===a.toUpperCase()&&(s=parseInt(a,16),s>=0))return s}return-1}var t0=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];function gq(e,t=-1){if(t!==-1){let s=t0[t];for(let n=0,a=s.length;n<a;n+=2)if(e>=s[n]&&e<=s[n+1])return t}for(let s=0,n=t0.length;s<n;s++){let a=t0[s];for(let i=0,o=a.length;i<o;i+=2)if(e>=a[i]&&e<=a[i+1])return s}return-1}var bq=/^(\\s)|(\\p{Mn})|(\\p{Cf})$/u,Om=new Map,f1=1,h8=2,el=4,x3=32,Y1=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function u8(e,t){if(t[e]!==void 0)return e;let s=ho(e,t);if(s!==-1){for(let n in t)if(t[n]===s)return n}return ie("Unable to recover a standard glyph name for: "+e),e}function m8(e,t,s){let n=Object.create(null),a,i,o,r=!!(e.flags&el);if(e.isInternalFont)for(o=t,i=0;i<o.length;i++)a=s.indexOf(o[i]),n[i]=a>=0?a:0;else if(e.baseEncodingName)for(o=Rl(e.baseEncodingName),i=0;i<o.length;i++)a=s.indexOf(o[i]),n[i]=a>=0?a:0;else if(r)for(i in t)n[i]=t[i];else for(o=ma,i=0;i<o.length;i++)a=s.indexOf(o[i]),n[i]=a>=0?a:0;let l=e.differences,f;if(l)for(i in l){let c=l[i];if(a=s.indexOf(c),a===-1){f??(f=yn());let h=u8(c,f);h!==c&&(a=s.indexOf(h))}n[i]=a>=0?a:0}return n}function Za(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\\s/g,"")}var wq=Se(e=>{e[8211]=65074,e[8212]=65073,e[8229]=65072,e[8230]=65049,e[12289]=65041,e[12290]=65042,e[12296]=65087,e[12297]=65088,e[12298]=65085,e[12299]=65086,e[12300]=65089,e[12301]=65090,e[12302]=65091,e[12303]=65092,e[12304]=65083,e[12305]=65084,e[12308]=65081,e[12309]=65082,e[12310]=65047,e[12311]=65048,e[65103]=65076,e[65281]=65045,e[65288]=65077,e[65289]=65078,e[65292]=65040,e[65306]=65043,e[65307]=65044,e[65311]=65046,e[65339]=65095,e[65341]=65096,e[65343]=65075,e[65371]=65079,e[65373]=65080}),jq=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],kq=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],qq=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"],Da,kn,ia,ss,Si,Oa,dr,Ne=class{constructor({exactLength:t=0,minLength:s=0}){at(this,Oa);at(this,Da);at(this,kn,1024);at(this,ia,!1);at(this,ss,0);at(this,Si);Bt(this,ia,!!t),N(this,Oa,dr).call(this,t||s)}get data(){return S(this,Da).subarray(0,S(this,ss))}get length(){return S(this,ss)}skip(t){Bt(this,ss,S(this,ss)+t)}setArray(t){let s=S(this,ss)+t.length;!S(this,ia)&&s>S(this,kn)&&N(this,Oa,dr).call(this,s),S(this,Da).set(t,S(this,ss)),Bt(this,ss,s)}setInt16(t){let s=S(this,ss)+2;!S(this,ia)&&s>S(this,kn)&&N(this,Oa,dr).call(this,s),S(this,Si).setInt16(S(this,ss),t),Bt(this,ss,s)}setSafeInt16(t){let s=S(this,ss)+2;!S(this,ia)&&s>S(this,kn)&&N(this,Oa,dr).call(this,s),S(this,Si).setInt16(S(this,ss),He(t,-32768,32767)),Bt(this,ss,s)}setInt32(t){let s=S(this,ss)+4;!S(this,ia)&&s>S(this,kn)&&N(this,Oa,dr).call(this,s),S(this,Si).setInt32(S(this,ss),t),Bt(this,ss,s)}};Da=new WeakMap,kn=new WeakMap,ia=new WeakMap,ss=new WeakMap,Si=new WeakMap,Oa=new WeakSet,dr=function(t){if(S(this,ia))Bt(this,kn,t);else for(;S(this,kn)<t;)Bt(this,kn,S(this,kn)*2);let s=new Uint8Array(S(this,kn));S(this,Da)&&s.set(S(this,Da),0),Bt(this,Da,s),Bt(this,Si,new DataView(s.buffer))};function c1(e){return e>32767&&e<=65535}function e0(e,t=!1){return ee.normalizeRect(e.map((s,n)=>(!t||n<2)&&c1(s)?s-65536:s))}var h1=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],s0=391,Nm=.039625,rr=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1},{id:"return",min:0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],yq=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}],Fl=class{constructor(t,s,n){this.bytes=t.getBytes(),this.properties=s,this.seacAnalysisEnabled=!!n}parse(){let t=this.properties,s=new J1(this.bytes.length);this.cff=s;let n=this.parseHeader(),a=this.parseIndex(n.endPos),i=this.parseIndex(a.endPos),o=this.parseIndex(i.endPos),r=this.parseIndex(o.endPos),l=this.parseDict(i.obj.get(0)),f=this.createDict(zl,l,s.strings);s.header=n.obj,s.names=this.parseNameIndex(a.obj),s.strings=this.parseStringIndex(o.obj),s.topDict=f,s.globalSubrIndex=r.obj,this.parsePrivateDict(s.topDict),s.isCIDFont=f.hasName("ROS");let c=f.getByName("CharStrings"),h=this.parseIndex(c).obj;s.charStringCount=h.count;let m=f.getByName("FontMatrix");m&&(t.fontMatrix=m);let u=f.getByName("FontBBox"),d=t.bbox?.some(q=>q!==0)?e0(t.bbox):null,p=u?.slice(0,2).some(c1),g=u?.some(c1);if(u?.every(q=>q===0)&&d)u=d,f.setByName("FontBBox",u);else if(g){let q=e0(u),y=d&&t.bbox.some(v=>v<0)&&!t.bbox.some(c1)&&Ei(q,d);(y||p)&&(u=y?q:e0(u,!0),f.setByName("FontBBox",u))}u?.some(q=>q!==0)&&(t.ascent=Math.max(u[3],u[1]),t.descent=Math.min(u[1],u[3]),t.ascentScaled=!0);let b,w;if(s.isCIDFont){let q=this.parseIndex(f.getByName("FDArray")).obj;for(let y=0,v=q.count;y<v;++y){let A=q.get(y),x=this.createDict(zl,this.parseDict(A),s.strings);this.parsePrivateDict(x),s.fdArray.push(x)}w=null,b=this.parseCharsets(f.getByName("charset"),h.count,s.strings,!0),s.fdSelect=this.parseFDSelect(f.getByName("FDSelect"),h.count)}else b=this.parseCharsets(f.getByName("charset"),h.count,s.strings,!1),w=this.parseEncoding(f.getByName("Encoding"),t,s.strings,b.charset);s.charset=b,s.encoding=w;let k=this.parseCharStrings({charStrings:h,localSubrIndex:f.privateDict.subrsIndex,globalSubrIndex:r.obj,fdSelect:s.fdSelect,fdArray:s.fdArray,privateDict:f.privateDict});return s.charStrings=k.charStrings,s.seacs=k.seacs,s.widths=k.widths,s}parseHeader(){let t=this.bytes,s=t.length,n=0;for(;n<s&&t[n]!==1;)++n;if(n>=s)throw new nt("Invalid CFF header");n!==0&&(ie("cff data is shifted"),t=t.subarray(n),this.bytes=t);let a=t[0],i=t[1],o=t[2],r=t[3];return{obj:new Q1(a,i,o,r),endPos:o}}parseDict(t){let s=new DataView(t.buffer,t.byteOffset,t.bytesLength),n=0;function a(){let l=t[n++];return l===30?(function(){let c="",m=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],u=t.length;for(;n<u;){let d=t[n++],p=d>>4,g=15&d;if(p===15||(c+=m[p],g===15))break;c+=m[g]}return parseFloat(c)})():l===28?(l=s.getInt16(n),n+=2,l):l===29?(l=s.getInt32(n),n+=4,l):l>=32&&l<=246?l-139:l>=247&&l<=250?256*(l-247)+t[n++]+108:l>=251&&l<=254?-256*(l-251)-t[n++]-108:(F(`CFFParser.parseDict: "${l}" is a reserved command.`),NaN)}let i=[],o=[];n=0;let r=t.length;for(;n<r;){let l=t[n];l<=21?(l===12&&(l=l<<8|t[++n]),o.push([l,i]),i=[],++n):i.push(a())}return o}parseIndex(t){let s=new Un,n=this.bytes,a=n[t++]<<8|n[t++],i=[],o,r,l=t;if(a!==0){let f=n[t++],c=t+(a+1)*f-1;for(o=0,r=a+1;o<r;++o){let h=0;for(let m=0;m<f;++m)h<<=8,h+=n[t++];i.push(c+h)}l=i[a]}for(o=0,r=i.length-1;o<r;++o){let f=i[o],c=i[o+1];s.add(n.subarray(f,c))}return{obj:s,endPos:l}}parseNameIndex(t){let s=[];for(let n=0,a=t.count;n<a;++n){let i=t.get(n);s.push(Cs(i))}return s}parseStringIndex(t){let s=new Ml;for(let n=0,a=t.count;n<a;++n){let i=t.get(n);s.add(Cs(i))}return s}createDict(t,s,n){let a=new t(n);for(let[i,o]of s)a.setByKey(i,o);return a}parseCharString(t,s,n,a){if(!s||t.callDepth>10)return!1;let i=new DataView(s.buffer,s.byteOffset,s.bytesLength),o=t.stackSize,r=t.stack,l=s.length;for(let f=0;f<l;){let c=s[f++],h=null;if(c===12){let m=s[f++];m===0?(s[f-2]=139,s[f-1]=22,o=0):h=yq[m]}else if(c===28)r[o]=i.getInt16(f),f+=2,o++;else if(c===14){if(o>=4&&(o-=4,this.seacAnalysisEnabled))return t.seac=r.slice(o,o+4),!1;h=rr[c]}else if(c>=32&&c<=246)r[o]=c-139,o++;else if(c>=247&&c<=254)r[o]=c<251?(c-247<<8)+s[f]+108:-(c-251<<8)-s[f]-108,f++,o++;else if(c===255)r[o]=i.getInt32(f)/65536,f+=4,o++;else if(c===19||c===20){if(t.hints+=o>>1,t.hints===0){s.copyWithin(f-1,f,-1),f-=1,l-=1;continue}f+=t.hints+7>>3,o%=2,h=rr[c]}else{if(c===10||c===29){let m=c===10?n:a;if(!m)return h=rr[c],F("Missing subrsIndex for "+h.id),!1;let u=32768;m.count<1240?u=107:m.count<33900&&(u=1131);let d=r[--o]+u;if(d<0||d>=m.count||isNaN(d))return h=rr[c],F("Out of bounds subrIndex for "+h.id),!1;if(t.stackSize=o,t.callDepth++,!this.parseCharString(t,m.get(d),n,a))return!1;t.callDepth--,o=t.stackSize;continue}if(c===11)return t.stackSize=o,!0;if(c===0&&f===s.length)s[f-1]=14,h=rr[14];else{if(c===9){s.copyWithin(f-1,f,-1),f-=1,l-=1;continue}h=rr[c]}}if(h){if(h.stem&&(t.hints+=o>>1,c===3||c===23?t.hasVStems=!0:t.hasVStems&&(c===1||c===18)&&(F("CFF stem hints are in wrong order"),s[f-1]=c===1?3:23)),o<h.min)return F("Not enough parameters for "+h.id+"; actual: "+o+", expected: "+h.min),o===0?(s[f-1]=14,!0):!1;t.firstStackClearing&&h.stackClearing&&(t.firstStackClearing=!1,o-=h.min,o>=2&&h.stem?o%=2:o>1&&F("Found too many parameters for stack-clearing command"),o>0&&(t.width=r[o-1])),"stackDelta"in h?("stackFn"in h&&h.stackFn(r,o),o+=h.stackDelta):(h.stackClearing||h.resetStack)&&(o=0)}}return l<s.length&&s.fill(14,l),t.stackSize=o,!0}parseCharStrings({charStrings:t,localSubrIndex:s,globalSubrIndex:n,fdSelect:a,fdArray:i,privateDict:o}){let r=[],l=[],f=t.count;for(let c=0;c<f;c++){let h=t.get(c),m={callDepth:0,stackSize:0,stack:[],hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},u=!0,d=null,p=o;if(a&&i.length){let g=a.getFDIndex(c);g===-1&&(F("Glyph index is not in fd select."),u=!1),g>=i.length&&(F("Invalid fd index for glyph index."),u=!1),u&&(p=i[g].privateDict,d=p.subrsIndex)}else s&&(d=s);if(u&&(u=this.parseCharString(m,h,d,n)),m.width!==null){let g=p.getByName("nominalWidthX");l[c]=g+m.width}else{let g=p.getByName("defaultWidthX");l[c]=g}m.seac!==null&&(r[c]=m.seac),u||t.set(c,new Uint8Array([14]))}return{charStrings:t,seacs:r,widths:l}}emptyPrivateDictionary(t){let s=this.createDict(Dl,[],t.strings);t.setByKey(18,[0,0]),t.privateDict=s}parsePrivateDict(t){if(!t.hasName("Private")){this.emptyPrivateDictionary(t);return}let s=t.getByName("Private");if(!Array.isArray(s)||s.length!==2){t.removeByName("Private");return}let n=s[0],a=s[1];if(n===0||a>=this.bytes.length){this.emptyPrivateDictionary(t);return}if(a+n>this.bytes.length)throw new nt("CFF Private DICT extends past end of font");let i=a+n,o=this.bytes.subarray(a,i),r=this.parseDict(o),l=this.createDict(Dl,r,t.strings);t.privateDict=l;let f=l.getByName("BlueScale"),c=l.getByName("BlueShift"),h=l.getByName("BlueFuzz"),m=l.getByName("ExpansionFactor");if(f===0&&c===0&&h===0&&m===0&&(l.setByName("BlueScale",Nm),l.setByName("BlueShift",7),l.setByName("BlueFuzz",1)),m===0&&l.setByName("ExpansionFactor",.06),f>0){let g=0;for(let b of[l.getByName("BlueValues"),l.getByName("OtherBlues")])if(b)for(let w=1;w<b.length;w+=2)b[w]>g&&(g=b[w]);if(g>0){let w=.5/g,k=He(f,w<=Nm?Math.ceil(w*1e5)/1e5:-1/0,Math.floor(1e5/g)/1e5);k!==f&&l.setByName("BlueScale",k)}}if(!l.getByName("Subrs"))return;let u=l.getByName("Subrs"),d=a+u;if(u===0||d>=this.bytes.length){this.emptyPrivateDictionary(t);return}let p=this.parseIndex(d);l.subrsIndex=p.obj}parseCharsets(t,s,n,a){if(t===0)return new ji(!0,n0.ISO_ADOBE,jq);if(t===1)return new ji(!0,n0.EXPERT,kq);if(t===2)return new ji(!0,n0.EXPERT_SUBSET,qq);let{bytes:i}=this,o=i[t++],r=[a?0:".notdef"],l,f,c;switch(s-=1,o){case 0:for(c=0;c<s;c++)l=i[t++]<<8|i[t++],r.push(a?l:n.get(l));break;case 1:for(;r.length<=s;)for(l=i[t++]<<8|i[t++],f=i[t++],c=0;c<=f;c++)r.push(a?l++:n.get(l++));break;case 2:for(;r.length<=s;)for(l=i[t++]<<8|i[t++],f=i[t++]<<8|i[t++],c=0;c<=f;c++)r.push(a?l++:n.get(l++));break;default:throw new nt("Unknown charset format")}return new ji(!1,o,r)}parseEncoding(t,s,n,a){let i=Object.create(null),o=this.bytes,r,l,f,c=!1,h=null;if(t===0||t===1){c=!0,r=t;let m=t?c8:ma;for(l=0,f=a.length;l<f;l++){let u=m.indexOf(a[l]);u!==-1&&(i[u]=l)}}else{let m=t;switch(r=o[t++],127&r){case 0:let d=o[t++];for(l=1;l<=d;l++)i[o[t++]]=l;break;case 1:let p=o[t++],g=1;for(l=0;l<p;l++){let b=o[t++],w=o[t++];for(let k=b;k<=b+w;k++)i[k]=g++}break;default:throw new nt(`Unknown encoding format: ${r} in CFF`)}let u=t;128&r&&(o[m]&=127,(function(){let p=o[t++];for(l=0;l<p;l++){let g=o[t++],b=(o[t++]<<8)+(255&o[t++]);i[g]=a.indexOf(n.get(b))}})()),h=o.subarray(m,u)}return r&=127,new _m(c,r,i,h)}parseFDSelect(t,s){let n=this.bytes,a=n[t++],i=[],o;switch(a){case 0:for(o=0;o<s;++o){let l=n[t++];i.push(l)}break;case 3:let r=n[t++]<<8|n[t++];for(o=0;o<r;++o){let l=n[t++]<<8|n[t++];o===0&&l!==0&&(F("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),l=0);let f=n[t++],c=n[t]<<8|n[t+1];for(let h=l;h<c;++h)i.push(f)}t+=2;break;default:throw new nt(`parseFDSelect: Unknown format "${a}".`)}if(i.length!==s)throw new nt("parseFDSelect: Invalid font data.");return new Pm(a,i)}},J1=class{constructor(t=0){Y(this,"header",null);Y(this,"names",[]);Y(this,"topDict",null);Y(this,"strings",new Ml);Y(this,"globalSubrIndex",null);Y(this,"encoding",null);Y(this,"charset",null);Y(this,"charStrings",null);Y(this,"fdArray",[]);Y(this,"fdSelect",null);Y(this,"isCIDFont",!1);Y(this,"charStringCount",0);this.rawFileLength=t}duplicateFirstGlyph(){if(this.charStrings.count>=65535){F("Not enough space in charstrings to duplicate first glyph.");return}let t=this.charStrings.get(0);this.charStrings.add(t),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(t){return t<0||t>=this.charStrings.count?!1:this.charStrings.get(t).length>0}},Q1=class{constructor(t,s,n,a){this.major=t,this.minor=s,this.hdrSize=n,this.offSize=a}},Ml=class{constructor(){Y(this,"strings",[])}get(t){return t>=0&&t<=390?h1[t]:t-s0<=this.strings.length?this.strings[t-s0]:h1[0]}getSID(t){let s=h1.indexOf(t);return s!==-1?s:(s=this.strings.indexOf(t),s!==-1?s+s0:-1)}add(t){this.strings.push(t)}get count(){return this.strings.length}},Un=class{constructor(){Y(this,"objects",[]);Y(this,"length",0)}add(t){this.length+=t.length,this.objects.push(t)}set(t,s){this.length+=s.length-this.objects[t].length,this.objects[t]=s}get(t){return this.objects[t]}get count(){return this.objects.length}},Z1=class{constructor(t,s){this.keyToNameMap=t.keyToNameMap,this.nameToKeyMap=t.nameToKeyMap,this.defaults=t.defaults,this.types=t.types,this.opcodes=t.opcodes,this.order=t.order,this.strings=s,this.values=Object.create(null)}setByKey(t,s){if(!(t in this.keyToNameMap))return!1;if(s.length===0)return!0;for(let a of s)if(isNaN(a))return F(`Invalid CFFDict value: "${s}" for key "${t}".`),!0;let n=this.types[t];return n!=="num"&&n!=="sid"&&n!=="offset"||(s=s[0]),this.values[t]=s,!0}setByName(t,s){if(!(t in this.nameToKeyMap))throw new nt(`Invalid dictionary name "${t}"`);this.values[this.nameToKeyMap[t]]=s}hasName(t){return this.nameToKeyMap[t]in this.values}getByName(t){if(!(t in this.nameToKeyMap))throw new nt(`Invalid dictionary name ${t}"`);let s=this.nameToKeyMap[t];return s in this.values?this.values[s]:this.defaults[s]}removeByName(t){delete this.values[this.nameToKeyMap[t]]}static createTables(t){let s={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(let n of t){let a=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];s.keyToNameMap[a]=n[1],s.nameToKeyMap[n[1]]=a,s.types[a]=n[2],s.defaults[a]=n[3],s.opcodes[a]=Array.isArray(n[0])?n[0]:[n[0]],s.order.push(a)}return s}},vq=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],zl=class e extends Z1{static get tables(){return yt(this,"tables",this.createTables(vq))}constructor(t){super(e.tables,t),this.privateDict=null}},xq=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",Nm],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],Dl=class e extends Z1{static get tables(){return yt(this,"tables",this.createTables(xq))}constructor(t){super(e.tables,t),this.subrsIndex=null}},n0={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},ji=class{constructor(t,s,n){this.predefined=t,this.format=s,this.charset=n}},_m=class{constructor(t,s,n,a){this.predefined=t,this.format=s,this.encoding=n,this.raw=a}},Pm=class{constructor(t,s){this.format=t,this.fdSelect=s}getFDIndex(t){return t<0||t>=this.fdSelect.length?-1:this.fdSelect[t]}},th=class{constructor(){Y(this,"offsets",Object.create(null))}isTracking(t){return t in this.offsets}track(t,s){if(t in this.offsets)throw new nt(`Already tracking location of ${t}`);this.offsets[t]=s}offset(t){for(let s in this.offsets)this.offsets[s]+=t}setEntryLocation(t,s,n){if(!(t in this.offsets))throw new nt(`Not tracking location of ${t}`);let a=n.data,i=this.offsets[t];for(let o=0,r=s.length;o<r;++o){let l=5*o+i,f=l+1,c=l+2,h=l+3,m=l+4;if(a[l]!==29||a[f]!==0||a[c]!==0||a[h]!==0||a[m]!==0)throw new nt("writing to an offset that is not empty");let u=s[o];a[l]=29,a[f]=u>>24&255,a[c]=u>>16&255,a[h]=u>>8&255,a[m]=255&u}}},Ol=class e{constructor(t){this.cff=t}compile(){let t=this.cff,s=new Ne({minLength:t.rawFileLength}),n=this.compileHeader(t.header);s.setArray(n);let a=this.compileNameIndex(t.names);if(s.setArray(a),t.isCIDFont&&t.topDict.hasName("FontMatrix")){let m=t.topDict.getByName("FontMatrix");t.topDict.removeByName("FontMatrix");for(let u of t.fdArray){let d=m.slice(0);u.hasName("FontMatrix")&&(d=ee.transform(d,u.getByName("FontMatrix"))),u.setByName("FontMatrix",d)}}t.topDict.getByName("XUID")?.length>16&&t.topDict.removeByName("XUID"),t.topDict.setByName("charset",0);let o=this.compileTopDicts([t.topDict],s.length,t.isCIDFont);s.setArray(o.output);let r=o.trackers[0],l=this.compileStringIndex(t.strings.strings);s.setArray(l);let f=this.compileIndex(t.globalSubrIndex);if(s.setArray(f),t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)r.setEntryLocation("Encoding",[t.encoding.format],s);else{let m=this.compileEncoding(t.encoding);r.setEntryLocation("Encoding",[s.length],s),s.setArray(m)}let c=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);r.setEntryLocation("charset",[s.length],s),s.setArray(c);let h=this.compileCharStrings(t.charStrings);if(r.setEntryLocation("CharStrings",[s.length],s),s.setArray(h),t.isCIDFont){r.setEntryLocation("FDSelect",[s.length],s);let m=this.compileFDSelect(t.fdSelect);s.setArray(m),o=this.compileTopDicts(t.fdArray,s.length,!0),r.setEntryLocation("FDArray",[s.length],s),s.setArray(o.output);let u=o.trackers;this.compilePrivateDicts(t.fdArray,u,s)}return this.compilePrivateDicts([t.topDict],[r],s),s.setArray([0]),s.data}encodeNumber(t){return Number.isInteger(t)?this.encodeInteger(t):this.encodeFloat(t)}static get EncodeFloatRegExp(){return yt(this,"EncodeFloatRegExp",/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/)}encodeFloat(t){let s=t.toString(),n=e.EncodeFloatRegExp.exec(s);if(n){let l=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));s=(Math.round(t*l)/l).toString()}let a,i,o="";for(a=0,i=s.length;a<i;++a){let l=s[a];o+=l==="e"?s[++a]==="-"?"c":"b":l==="."?"a":l==="-"?"e":l}o+=1&o.length?"f":"ff";let r=[30];for(a=0,i=o.length;a<i;a+=2)r.push(parseInt(o.substring(a,a+2),16));return r}encodeInteger(t){let s;return s=t>=-107&&t<=107?[t+139]:t>=108&&t<=1131?[247+((t-=108)>>8),255&t]:t>=-1131&&t<=-108?[251+((t=-t-108)>>8),255&t]:t>=-32768&&t<=32767?[28,t>>8&255,255&t]:[29,t>>24&255,t>>16&255,t>>8&255,255&t],s}compileHeader(t){return[t.major,t.minor,4,t.offSize]}compileNameIndex(t){let s=new Un;for(let n of t){let a=Math.min(n.length,127),i=new Array(a);for(let o=0;o<a;o++){let r=n[o];(r<"!"||r>"~"||r==="["||r==="]"||r==="("||r===")"||r==="{"||r==="}"||r==="<"||r===">"||r==="/"||r==="%")&&(r="_"),i[o]=r}i=i.join(""),i===""&&(i="Bad_Font_Name"),s.add(Ce(i))}return this.compileIndex(s)}compileTopDicts(t,s,n){let a=[],i=new Un;for(let o of t){n&&(o.removeByName("CIDFontVersion"),o.removeByName("CIDFontRevision"),o.removeByName("CIDFontType"),o.removeByName("CIDCount"),o.removeByName("UIDBase"));let r=new th,l=this.compileDict(o,r);a.push(r),i.add(l),r.offset(s)}return i=this.compileIndex(i,a),{trackers:a,output:i}}compilePrivateDicts(t,s,n){for(let a=0,i=t.length;a<i;++a){let o=t[a],r=o.privateDict;if(!r||!o.hasName("Private"))throw new nt("There must be a private dictionary.");let l=new th,f=this.compileDict(r,l),c=n.length;if(l.offset(c),f.length||(c=0),s[a].setEntryLocation("Private",[f.length,c],n),n.setArray(f),r.subrsIndex&&r.hasName("Subrs")){let h=this.compileIndex(r.subrsIndex);l.setEntryLocation("Subrs",[f.length],n),n.setArray(h)}}}compileDict(t,s){let n=[];for(let a of t.order){if(!(a in t.values))continue;let i=t.values[a],o=t.types[a];if(Array.isArray(o)||(o=[o]),Array.isArray(i)||(i=[i]),i.length!==0){for(let r=0,l=o.length;r<l;++r){let f=o[r],c=i[r];switch(f){case"num":case"sid":n.push(...this.encodeNumber(c));break;case"offset":let h=t.keyToNameMap[a];s.isTracking(h)||s.track(h,n.length),n.push(29,0,0,0,0);break;case"array":case"delta":n.push(...this.encodeNumber(c));for(let m=1,u=i.length;m<u;++m)n.push(...this.encodeNumber(i[m]));break;default:throw new nt(`Unknown data type of ${f}`)}}n.push(...t.opcodes[a])}}return n}compileStringIndex(t){let s=new Un;for(let n of t)s.add(Ce(n));return this.compileIndex(s)}compileCharStrings(t){let s=new Un;for(let n=0;n<t.count;n++){let a=t.get(n);a.length!==0?s.add(a):s.add(new Uint8Array([139,14]))}return this.compileIndex(s)}compileCharset(t,s,n,a){let i,o=s-1;if(a){let r=o-1;i=new Uint8Array([2,0,1,r>>8&255,255&r])}else{i=new Uint8Array(1+2*o);let r=0,l=t.charset.length,f=!1;for(let c=1;c<i.length;c+=2){let h=0;if(r<l){let m=t.charset[r++];h=n.getSID(m),h===-1&&(h=0,f||(f=!0,F(`Couldn\'t find ${m} in CFF strings`)))}i[c]=h>>8&255,i[c+1]=255&h}}return i}compileEncoding(t){return t.raw}compileFDSelect(t){let s=t.format,n,a;switch(s){case 0:n=new Uint8Array(1+t.fdSelect.length),n[0]=s,n.set(t.fdSelect,1);break;case 3:let i=0,o=t.fdSelect[0],r=[s,0,0,i>>8&255,255&i,o];for(a=1;a<t.fdSelect.length;a++){let f=t.fdSelect[a];f!==o&&(r.push(a>>8&255,255&a,f),o=f)}let l=(r.length-3)/3;r[1]=l>>8&255,r[2]=255&l,r.push(a>>8&255,255&a),n=new Uint8Array(r)}return n}compileIndex(t,s=[]){let n=t.objects,a=n.length;if(a===0)return new Uint8Array(2);let i,o,r=1;for(i=0;i<a;++i)r+=n[i].length;o=r<256?1:r<65536?2:r<16777216?3:4;let l=new Uint8Array(2+o*(a+1)+r),f=0;l[f++]=a>>8&255,l[f++]=255&a,l[f++]=o;let c=1;for(i=0;i<a+1;i++)o===1?l[f++]=255&c:o===2?(l[f++]=c>>8&255,l[f++]=255&c):o===3?(l[f++]=c>>16&255,l[f++]=c>>8&255,l[f++]=255&c):(l[f++]=c>>>24&255,l[f++]=c>>16&255,l[f++]=c>>8&255,l[f++]=255&c),n[i]&&(c+=n[i].length);for(i=0;i<a;i++)s[i]?.offset(f),l.set(n[i],f),f+=n[i].length;return l}},Nl=Se(function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",e["Arial-BoldMT-Bold"]="Helvetica-Bold",e["Arial-ItalicMT-Italic"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["HelveticaLTStd-Bold"]="Helvetica-Bold",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}),Sq=Se(function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="LiberationSans-Regular.ttf",e["Helvetica-Bold"]="LiberationSans-Bold.ttf",e["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",e["Helvetica-Oblique"]="LiberationSans-Italic.ttf",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}),Um=Se(function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.GillSansMT="Helvetica",e["GillSansMT-Bold"]="Helvetica-Bold",e["GillSansMT-BoldItalic"]="Helvetica-BoldOblique",e["GillSansMT-Italic"]="Helvetica-Oblique",e.Impact="Helvetica",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.TrebuchetMS="Helvetica",e["TrebuchetMS-Bold"]="Helvetica-Bold",e["TrebuchetMS-BoldItalic"]="Helvetica-BoldOblique",e["TrebuchetMS-Italic"]="Helvetica-Oblique"}),B5=Se(function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e.Trinit\\u00E9=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}),Lm=Se(function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e["Wingdings-Bold"]=!0,e["Wingdings-Regular"]=!0}),Aq=Se(function(e){let t=yn();e[2]=10;for(let s=3;s<Y1.length;s++){let n=t[Y1[s]];n!==void 0&&(e[s]=n)}}),S3=Se(function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[207]=211,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[570]=1040,e[571]=1041,e[572]=1042,e[573]=1043,e[574]=1044,e[575]=1045,e[576]=1046,e[577]=1047,e[578]=1048,e[579]=1049,e[580]=1050,e[581]=1051,e[582]=1052,e[583]=1053,e[584]=1054,e[585]=1055,e[586]=1056,e[587]=1057,e[588]=1058,e[589]=1059,e[590]=1060,e[591]=1061,e[592]=1062,e[593]=1063,e[594]=1064,e[595]=1065,e[596]=1066,e[597]=1067,e[598]=1068,e[599]=1069,e[600]=1070,e[601]=1071,e[602]=1072,e[603]=1073,e[604]=1074,e[605]=1075,e[606]=1076,e[607]=1077,e[608]=1078,e[609]=1079,e[610]=1080,e[611]=1081,e[612]=1082,e[613]=1083,e[614]=1084,e[615]=1085,e[616]=1086,e[617]=1087,e[618]=1088,e[619]=1089,e[620]=1090,e[621]=1091,e[622]=1092,e[623]=1093,e[624]=1094,e[625]=1095,e[626]=1096,e[627]=1097,e[628]=1098,e[629]=1099,e[630]=1100,e[631]=1101,e[632]=1102,e[633]=1103,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}),Iq=Se(function(e){e[151]=956,e[159]=937,e[168]=916,e[189]=8364,e[195]=8729,e[218]=713,e[236]=222,e[237]=254,e[238]=8722,e[239]=185,e[240]=178,e[241]=179,e[242]=189,e[243]=188,e[244]=190,e[245]=181,e[246]=8486,e[247]=8710,e[248]=253,e[249]=215,e[250]=173,e[253]=8355,e[254]=286,e[255]=287,e[256]=304,e[257]=350,e[258]=351,e[259]=262,e[260]=263,e[261]=268,e[262]=269,e[263]=273,e[264]=175,e[266]=183,e[267]=258,e[268]=259,e[269]=260,e[270]=261,e[271]=270,e[272]=271,e[273]=272,e[274]=280,e[275]=281,e[276]=282,e[277]=283,e[278]=313,e[279]=314,e[280]=317,e[281]=318,e[282]=319,e[283]=320,e[284]=323,e[285]=324,e[286]=327,e[287]=328,e[288]=336,e[289]=337,e[290]=340,e[291]=341,e[292]=344,e[293]=345,e[294]=346,e[295]=347,e[296]=538,e[297]=539,e[298]=356,e[299]=357,e[300]=366,e[301]=367,e[302]=368,e[303]=369,e[304]=377,e[305]=378,e[306]=379,e[307]=380}),Cq=Se(function(e){e[227]=322,e[264]=261,e[291]=346}),Hq=Se(function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[940]=163,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45});function a0(e){let t=Za(e);return Nl()[t]}function A3(e){let t=Za(e);return!!(Nl()[t]||Um()[t]||B5()[t]||Lm()[t])}var i0=256,Tr=10,Em=class{constructor({glyfTable:t,isGlyphLocationsLong:s,locaTable:n,numGlyphs:a}){this.glyphs=[];let i=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new DataView(t.buffer,t.byteOffset,t.byteLength),r=s?4:2,l=s?i.getUint32(0):2*i.getUint16(0),f=0;for(let c=0;c<a;c++){f+=r;let h=s?i.getUint32(f):2*i.getUint16(f);if(h===l){this.glyphs.push(new eh({}));continue}let m=eh.parse(l,o);this.glyphs.push(m),l=h}}getSize(){return Math.sumPrecise(this.glyphs.map(t=>t.getSize()+3&-4))}write(){let t=this.getSize(),s=new DataView(new ArrayBuffer(t)),n=t>131070,a=n?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*a));n?i.setUint32(0,0):i.setUint16(0,0);let o=0,r=0;for(let l of this.glyphs)o+=l.write(o,s),o=o+3&-4,r+=a,n?i.setUint32(r,o):i.setUint16(r,o>>1);return{isLocationLong:n,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(s.buffer)}}scale(t){for(let s=0,n=this.glyphs.length;s<n;s++)this.glyphs[s].scale(t[s])}},eh=class e{constructor({header:t=null,simple:s=null,composites:n=null}){this.header=t,this.simple=s,this.composites=n}static parse(t,s){let[n,a]=Km.parse(t,s);if(t+=n,a.numberOfContours<0){let o=[];for(;;){let[r,l]=$m.parse(t,s);if(t+=r,o.push(l),!(32&l.flags))break}return new e({header:a,composites:o})}let i=Vm.parse(t,s,a.numberOfContours);return new e({header:a,simple:i})}getSize(){if(!this.header)return 0;let t=this.simple?this.simple.getSize():Math.sumPrecise(this.composites.map(s=>s.getSize()));return this.header.getSize()+t}write(t,s){if(!this.header)return 0;let n=t;if(t+=this.header.write(t,s),this.simple)t+=this.simple.write(t,s);else for(let a of this.composites)t+=a.write(t,s);return t-n}scale(t){if(!this.header)return;let s=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(s,t),this.simple)this.simple.scale(s,t);else for(let n of this.composites)n.scale(s,t)}},Km=class e{constructor({numberOfContours:t,xMin:s,yMin:n,xMax:a,yMax:i}){this.numberOfContours=t,this.xMin=s,this.yMin=n,this.xMax=a,this.yMax=i}static parse(t,s){return[Tr,new e({numberOfContours:s.getInt16(t),xMin:s.getInt16(t+2),yMin:s.getInt16(t+4),xMax:s.getInt16(t+6),yMax:s.getInt16(t+8)})]}getSize(){return Tr}write(t,s){return s.setInt16(t,this.numberOfContours),s.setInt16(t+2,this.xMin),s.setInt16(t+4,this.yMin),s.setInt16(t+6,this.xMax),s.setInt16(t+8,this.yMax),Tr}scale(t,s){this.xMin=Math.round(t+(this.xMin-t)*s),this.xMax=Math.round(t+(this.xMax-t)*s)}},Wm=class{constructor({flags:t,xCoordinates:s,yCoordinates:n}){this.xCoordinates=s,this.yCoordinates=n,this.flags=t}},Vm=class e{constructor({contours:t,instructions:s}){this.contours=t,this.instructions=s}static parse(t,s,n){let a=[];for(let g=0;g<n;g++){let b=s.getUint16(t);t+=2,a.push(b)}let i=a[n-1]+1,o=s.getUint16(t);t+=2;let r=new Uint8Array(s).slice(t,t+o);t+=o;let l=[];for(let g=0;g<i;t++,g++){let b=s.getUint8(t);if(l.push(b),8&b){let w=s.getUint8(++t);b^=8;for(let k=0;k<w;k++)l.push(b);g+=w}}let f=[],c=[],h=[],m=[],u=[],d=0,p=0;for(let g=0;g<i;g++){let b=l[g];if(2&b){let w=s.getUint8(t++);p+=16&b?w:-w,c.push(p)}else 16&b||(p+=s.getInt16(t),t+=2),c.push(p);a[d]===g&&(d++,f.push(c),c=[])}p=0,d=0;for(let g=0;g<i;g++){let b=l[g];if(4&b){let w=s.getUint8(t++);p+=32&b?w:-w,h.push(p)}else 32&b||(p+=s.getInt16(t),t+=2),h.push(p);m.push(1&b|64&b),a[d]===g&&(c=f[d],d++,u.push(new Wm({flags:m,xCoordinates:c,yCoordinates:h})),h=[],m=[])}return new e({contours:u,instructions:r})}getSize(){let t=2*this.contours.length+2+this.instructions.length,s=0,n=0;for(let a of this.contours){t+=a.flags.length;for(let i=0,o=a.xCoordinates.length;i<o;i++){let r=a.xCoordinates[i],l=a.yCoordinates[i],f=Math.abs(r-s);f>255?t+=2:f>0&&(t+=1),s=r,f=Math.abs(l-n),f>255?t+=2:f>0&&(t+=1),n=l}}return t}write(t,s){let n=t,a=[],i=[],o=[],r=0,l=0;for(let f of this.contours){for(let c=0,h=f.xCoordinates.length;c<h;c++){let m=f.flags[c],u=f.xCoordinates[c],d=u-r;if(d===0)m|=16,a.push(0);else{let g=Math.abs(d);g<=255?(m|=d>=0?18:2,a.push(g)):a.push(d)}r=u;let p=f.yCoordinates[c];if(d=p-l,d===0)m|=32,i.push(0);else{let g=Math.abs(d);g<=255?(m|=d>=0?36:4,i.push(g)):i.push(d)}l=p,o.push(m)}s.setUint16(t,a.length-1),t+=2}s.setUint16(t,this.instructions.length),t+=2,this.instructions.length&&(new Uint8Array(s.buffer,0,s.buffer.byteLength).set(this.instructions,t),t+=this.instructions.length);for(let f of o)s.setUint8(t++,f);for(let f=0,c=a.length;f<c;f++){let h=a[f],m=o[f];2&m?s.setUint8(t++,h):16&m||(s.setInt16(t,h),t+=2)}for(let f=0,c=i.length;f<c;f++){let h=i[f],m=o[f];4&m?s.setUint8(t++,h):32&m||(s.setInt16(t,h),t+=2)}return t-n}scale(t,s){for(let n of this.contours)if(n.xCoordinates.length!==0)for(let a=0,i=n.xCoordinates.length;a<i;a++)n.xCoordinates[a]=Math.round(t+(n.xCoordinates[a]-t)*s)}},$m=class e{constructor({flags:t,glyphIndex:s,argument1:n,argument2:a,transf:i,instructions:o}){this.flags=t,this.glyphIndex=s,this.argument1=n,this.argument2=a,this.transf=i,this.instructions=o}static parse(t,s){let n=t,a=[],i=s.getUint16(t),o=s.getUint16(t+2);t+=4;let r,l;1&i?(2&i?(r=s.getInt16(t),l=s.getInt16(t+2)):(r=s.getUint16(t),l=s.getUint16(t+2)),t+=4,i^=1):(2&i?(r=s.getInt8(t),l=s.getInt8(t+1)):(r=s.getUint8(t),l=s.getUint8(t+1)),t+=2),8&i?(a.push(s.getUint16(t)),t+=2):64&i?(a.push(s.getUint16(t),s.getUint16(t+2)),t+=4):128&i&&(a.push(s.getUint16(t),s.getUint16(t+2),s.getUint16(t+4),s.getUint16(t+6)),t+=8);let f=null;if(i&i0){let c=s.getUint16(t);t+=2,f=new Uint8Array(s).slice(t,t+c),t+=c}return[t-n,new e({flags:i,glyphIndex:o,argument1:r,argument2:l,transf:a,instructions:f})]}getSize(){let t=4+2*this.transf.length;return this.flags&i0&&(t+=2+this.instructions.length),t+=2,2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(t+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(t+=2),t}write(t,s){let n=t;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),s.setUint16(t,this.flags),s.setUint16(t+2,this.glyphIndex),t+=4,1&this.flags?(2&this.flags?(s.setInt16(t,this.argument1),s.setInt16(t+2,this.argument2)):(s.setUint16(t,this.argument1),s.setUint16(t+2,this.argument2)),t+=4):(s.setUint8(t,this.argument1),s.setUint8(t+1,this.argument2),t+=2),this.flags&i0&&(s.setUint16(t,this.instructions.length),t+=2,this.instructions.length&&(new Uint8Array(s.buffer,0,s.buffer.byteLength).set(this.instructions,t),t+=this.instructions.length)),t-n}scale(t,s){}},ki=class{constructor(t=[]){this._map=t}get length(){return this._map.length}forEach(t){for(let s in this._map)t(s,this._map[s].codePointAt(0))}has(t){return this._map[t]!==void 0}get(t){return this._map[t]}charCodeOf(t){let s=this._map;if(s.length<=65536)return s.indexOf(t);for(let n in s)if(s[n]===t)return 0|n;return-1}amend(t){for(let s in t)this._map[s]=t[s]}},Ds=class{constructor(t,s){this.firstChar=t,this.lastChar=s}get length(){return this.lastChar+1-this.firstChar}forEach(t){for(let s=this.firstChar,n=this.lastChar;s<=n;s++)t(s,s)}has(t){return this.firstChar<=t&&t<=this.lastChar}get(t){return this.firstChar<=t&&t<=this.lastChar?String.fromCharCode(t):void 0}charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}amend(t){Zt("Should not call amend()")}},sl=class{constructor(t,s){this.properties=s;let n=new Fl(t,s,!0);this.cff=n.parse(),this.cff.duplicateFirstGlyph();let a=new Ol(this.cff);this.seacs=this.cff.seacs;try{this.data=a.compile()}catch(i){F(`Failed to compile font "${s.loadedName}": "${i}".`),t.reset(),this.data=t.getBytes()}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){let t=this.cff,s=this.properties,{cidToGidMap:n,cMap:a}=s,i=t.charset.charset,o,r;if(s.composite){let f,c;if(n?.length>0){f=Object.create(null);for(let h=0,m=n.length;h<m;h++){let u=n[h];u!==void 0&&(f[u]=h)}}if(o=Object.create(null),t.isCIDFont)for(r=0;r<i.length;r++){let h=i[r];c=a.charCodeOf(h),f?.[c]!==void 0&&(c=f[c]),o[c]=r}else for(r=0;r<t.charStrings.count;r++)c=a.charCodeOf(r),o[c]=r;return o}let l=t.encoding?t.encoding.encoding:null;return s.isInternalFont&&(l=s.defaultEncoding),o=m8(s,l,i),o}hasGlyphId(t){return this.cff.hasGlyphId(t)}_createBuiltInEncoding(){let{charset:t,encoding:s}=this.cff;if(!t||!s)return;let n=t.charset,a=s.encoding,i=[];for(let o in a){let r=a[o];if(r>=0){let l=n[r];l&&(i[o]=l)}}i.length>0&&(this.properties.builtInEncoding=i)}},nl=class{};Y(nl,"strings",["fontFamily","fontWeight","italicAngle"]);var al=class{};Y(al,"strings",["css","loadedName","baseFontName","src"]);var ws=class ws{};Y(ws,"bools",["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"]),Y(ws,"numbers",["ascent","defaultWidth","descent"]),Y(ws,"strings",["fallbackName","loadedName","mimetype","name"]),Y(ws,"OFFSET_NUMBERS",Math.ceil(2*ws.bools.length/8)),Y(ws,"OFFSET_BBOX",ws.OFFSET_NUMBERS+8*ws.numbers.length),Y(ws,"OFFSET_FONT_MATRIX",ws.OFFSET_BBOX+1+8),Y(ws,"OFFSET_DEFAULT_VMETRICS",ws.OFFSET_FONT_MATRIX+1+48),Y(ws,"OFFSET_STRINGS",ws.OFFSET_DEFAULT_VMETRICS+1+6);var gs=ws,as=class{};Y(as,"KIND",0),Y(as,"HAS_BBOX",1),Y(as,"HAS_BACKGROUND",2),Y(as,"SHADING_TYPE",3),Y(as,"N_COORD",4),Y(as,"N_COLOR",8),Y(as,"N_STOP",12),Y(as,"N_FIGURES",16);var il=class{static get decoder(){return yt(this,"decoder",new TextDecoder)}static get encoder(){return yt(this,"encoder",new TextEncoder)}};function Bq(e){let t=e.systemFontInfo?(function(p){let{encoder:g}=il,b={},w=0;for(let B of al.strings){let D=g.encode(p[B]);b[B]=D,w+=4+D.length}w+=4;let k,q,y=1+w;p.style&&(k=g.encode(p.style.style),q=g.encode(p.style.weight),y+=4+k.length+4+q.length);let v=new ArrayBuffer(y),A=new Uint8Array(v),x=new DataView(v),I=0;x.setUint8(I++,p.guessFallback?1:0),x.setUint32(I,0),I+=4,w=0;for(let B of al.strings){let D=b[B],W=D.length;w+=4+W,x.setUint32(I,W),A.set(D,I+4),I+=4+W}return x.setUint32(I-w-4,w),p.style&&(x.setUint32(I,k.length),A.set(k,I+4),I+=4+k.length,x.setUint32(I,q.length),A.set(q,I+4),I+=4+q.length),Ae(I<=v.byteLength,"compileSystemFontInfo: Buffer overflow"),v.transferToFixedLength(I)})(e.systemFontInfo):null,s=e.cssFontInfo?(function(p){let{encoder:g}=il,b={},w=0;for(let A of nl.strings){let x=g.encode(p[A]);b[A]=x,w+=4+x.length}let k=new ArrayBuffer(w),q=new Uint8Array(k),y=new DataView(k),v=0;for(let A of nl.strings){let x=b[A],I=x.length;y.setUint32(v,I),q.set(x,v+4),v+=4+I}return Ae(v===k.byteLength,"compileCssFontInfo: Buffer overflow"),k})(e.cssFontInfo):null,{encoder:n}=il,a={},i=0;for(let d of gs.strings)a[d]=n.encode(e[d]),i+=4+a[d].length;let o=gs.OFFSET_STRINGS+4+i+4+(t?.byteLength??0)+4+(s?.byteLength??0)+4+(e.data?.length??0),r=new ArrayBuffer(o),l=new Uint8Array(r),f=new DataView(r),c=0,h=gs.bools.length,m=0,u=0;for(let d=0;d<h;d++){let p=e[gs.bools[d]];m|=(p===void 0?0:p?2:1)<<u,u+=2,(u===8||d===h-1)&&(f.setUint8(c++,m),m=0,u=0)}Ae(c===gs.OFFSET_NUMBERS,"compileFontInfo: Boolean properties offset mismatch");for(let d of gs.numbers)f.setFloat64(c,e[d]),c+=8;if(Ae(c===gs.OFFSET_BBOX,"compileFontInfo: Number properties offset mismatch"),e.bbox){f.setUint8(c++,4);for(let d of e.bbox)f.setInt16(c,d,!0),c+=2}else f.setUint8(c++,0),c+=8;if(Ae(c===gs.OFFSET_FONT_MATRIX,"compileFontInfo: BBox properties offset mismatch"),e.fontMatrix){f.setUint8(c++,6);for(let d of e.fontMatrix)f.setFloat64(c,d,!0),c+=8}else f.setUint8(c++,0),c+=48;if(Ae(c===gs.OFFSET_DEFAULT_VMETRICS,"compileFontInfo: FontMatrix properties offset mismatch"),e.defaultVMetrics){f.setUint8(c++,3);for(let d of e.defaultVMetrics)f.setInt16(c,d,!0),c+=2}else f.setUint8(c++,0),c+=6;Ae(c===gs.OFFSET_STRINGS,"compileFontInfo: DefaultVMetrics properties offset mismatch"),f.setUint32(gs.OFFSET_STRINGS,0),c+=4;for(let d of gs.strings){let p=a[d],g=p.length;f.setUint32(c,g),l.set(p,c+4),c+=4+g}if(f.setUint32(gs.OFFSET_STRINGS,c-gs.OFFSET_STRINGS-4),t){let d=t.byteLength;f.setUint32(c,d),Ae(c+4+d<=r.byteLength,"compileFontInfo: Buffer overflow at systemFontInfo"),l.set(new Uint8Array(t),c+4),c+=4+d}else f.setUint32(c,0),c+=4;if(s){let d=s.byteLength;f.setUint32(c,d),Ae(c+4+d<=r.byteLength,"compileFontInfo: Buffer overflow at cssFontInfo"),l.set(new Uint8Array(s),c+4),c+=4+d}else f.setUint32(c,0),c+=4;return e.data===void 0?(f.setUint32(c,0),c+=4):(f.setUint32(c,e.data.length),l.set(e.data,c+4),c+=4+e.data.length),Ae(c<=r.byteLength,"compileFontInfo: Buffer overflow"),r.transferToFixedLength(c)}function li(e,t){return e.getInt16(t)/16384}function Gm(e){let t=e.length;return t>=33900?32768:t<1240?107:1131}function Tq(e,t,s){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),a=n.getUint16(t+2)===1?n.getUint32(t+8):n.getUint32(t+16),i=n.getUint16(t+a),o,r,l;if(i===4){let f=n.getUint16(t+a+6)>>1;for(r=t+a+14,o=[],l=0;l<f;l++,r+=2)o[l]={end:n.getUint16(r)};for(r+=2,l=0;l<f;l++,r+=2)o[l].start=n.getUint16(r);for(l=0;l<f;l++,r+=2)o[l].idDelta=n.getUint16(r);for(l=0;l<f;l++,r+=2){let c=n.getUint16(r);if(c!==0){o[l].ids=[];for(let h=0,m=o[l].end-o[l].start+1;h<m;h++)o[l].ids[h]=n.getUint16(r+c),c+=2}}return o}if(i===12){let f=n.getUint32(t+a+12);for(r=t+a+16,o=[],l=0;l<f;l++)t=n.getUint32(r),o.push({start:t,end:n.getUint32(r+4),idDelta:n.getUint32(r+8)-t}),r+=12;return o}throw new nt(`unsupported cmap: ${i}`)}function Rq(e,t,s,n){let a=new Fl(new ke(e,t,s-t),{},n).parse();return{glyphs:a.charStrings.objects,subrs:a.topDict.privateDict?.subrsIndex?.objects,gsubrs:a.globalSubrIndex?.objects,isCFFCIDFont:a.isCIDFont,fdSelect:a.fdSelect,fdArray:a.fdArray}}function Xm(e,t){let s=t.codePointAt(0),n=0,a=0,i=e.length-1;for(;a<i;){let o=a+i+1>>1;s<e[o].start?i=o-1:a=o}return e[a].start<=s&&s<=e[a].end&&(n=e[a].idDelta+(e[a].ids?e[a].ids[s-e[a].start]:s)&65535),{charCode:s,glyphId:n}}function p8(e,t,s,n=new Set){if(!e?.length)return;if(n.has(e)){F("compileGlyf: skipping recursive composite glyph reference.");return}n.add(e);function a(d,p){h&&t.add(xn,h),h=[d,p],t.add(wi,[d,p])}function i(d,p){t.add(xn,[d,p])}function o(d,p,g,b){t.add(Sk,[d,p,g,b])}let r=new DataView(e.buffer,e.byteOffset,e.byteLength),l=0,f=r.getInt16(l),c,h=null,m=0,u=0;if(l+=10,f<0)do{c=r.getUint16(l);let d=r.getUint16(l+2);l+=4;let p,g;1&c?(2&c?(p=r.getInt16(l),g=r.getInt16(l+2)):(p=r.getUint16(l),g=r.getUint16(l+2)),l+=4):2&c?(p=r.getInt8(l++),g=r.getInt8(l++)):(p=e[l++],g=e[l++]),2&c?(m=p,u=g):(m=0,u=0);let b=1,w=1,k=0,q=0;8&c?(b=w=li(r,l),l+=2):64&c?(b=li(r,l),w=li(r,l+2),l+=4):128&c&&(b=li(r,l),k=li(r,l+2),q=li(r,l+4),w=li(r,l+6),l+=8);let y=s.glyphs[d];y&&(t.save(),t.transform([b,k,q,w,m,u]),p8(y,t,s,n),t.restore())}while(32&c);else{let d=[],p,g;for(p=0;p<f;p++)d.push(r.getUint16(l)),l+=2;l+=2+r.getUint16(l);let b=d.at(-1)+1,w=[];for(;w.length<b;){c=e[l++];let q=1;for(8&c&&(q+=e[l++]);q-- >0;)w.push({flags:c})}for(p=0;p<b;p++){switch(18&w[p].flags){case 0:m+=r.getInt16(l),l+=2;break;case 2:m-=e[l++];break;case 18:m+=e[l++]}w[p].x=m}for(p=0;p<b;p++){switch(36&w[p].flags){case 0:u+=r.getInt16(l),l+=2;break;case 4:u-=e[l++];break;case 36:u+=e[l++]}w[p].y=u}let k=0;for(l=0;l<f;l++){let q=d[l],y=w.slice(k,q+1);if(1&y[0].flags)y.push(y[0]);else if(1&y.at(-1).flags)y.unshift(y.at(-1));else{let v={flags:1,x:(y[0].x+y.at(-1).x)/2,y:(y[0].y+y.at(-1).y)/2};y.unshift(v),y.push(v)}for(a(y[0].x,y[0].y),p=1,g=y.length;p<g;p++)1&y[p].flags?i(y[p].x,y[p].y):1&y[p+1].flags?(o(y[p].x,y[p].y,y[p+1].x,y[p+1].y),p++):o(y[p].x,y[p].y,(y[p].x+y[p+1].x)/2,(y[p].y+y[p+1].y)/2);k=q+1}}n.delete(e)}function Ym(e,t,s,n){function a(m,u){h&&t.add(xn,h),h=[m,u],t.add(wi,[m,u])}function i(m,u){t.add(xn,[m,u])}function o(m,u,d,p,g,b){t.add(Jo,[m,u,d,p,g,b])}let r=[],l=0,f=0,c=0,h=null;(function m(u){let d=new DataView(u.buffer,u.byteOffset,u.byteLength),p=0;for(;p<u.length;){let g,b,w,k,q,y,v,A,x,I=!1,B=u[p++];switch(B){case 1:case 3:case 18:case 23:c+=r.length>>1,I=!0;break;case 4:f+=r.pop(),a(l,f),I=!0;break;case 5:for(;r.length>0;)l+=r.shift(),f+=r.shift(),i(l,f);break;case 6:for(;r.length>0&&(l+=r.shift(),i(l,f),r.length!==0);)f+=r.shift(),i(l,f);break;case 7:for(;r.length>0&&(f+=r.shift(),i(l,f),r.length!==0);)l+=r.shift(),i(l,f);break;case 8:for(;r.length>0;)g=l+r.shift(),w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k+r.shift(),o(g,w,b,k,l,f);break;case 10:if(A=r.pop(),x=null,s.isCFFCIDFont){let D=s.fdSelect.getFDIndex(n);if(D>=0&&D<s.fdArray.length){let W=s.fdArray[D],L;W.privateDict?.subrsIndex&&(L=W.privateDict.subrsIndex.objects),L&&(A+=Gm(L),x=L[A])}else F("Invalid fd index for glyph index.")}else x=s.subrs[A+s.subrsBias];x&&m(x);break;case 11:return;case 12:switch(B=u[p++],B){case 34:g=l+r.shift(),b=g+r.shift(),q=f+r.shift(),l=b+r.shift(),o(g,f,b,q,l,q),g=l+r.shift(),b=g+r.shift(),l=b+r.shift(),o(g,q,b,f,l,f);break;case 35:g=l+r.shift(),w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k+r.shift(),o(g,w,b,k,l,f),g=l+r.shift(),w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k+r.shift(),o(g,w,b,k,l,f),r.pop();break;case 36:g=l+r.shift(),q=f+r.shift(),b=g+r.shift(),y=q+r.shift(),l=b+r.shift(),o(g,q,b,y,l,y),g=l+r.shift(),b=g+r.shift(),v=y+r.shift(),l=b+r.shift(),o(g,y,b,v,l,f);break;case 37:let D=l,W=f;g=l+r.shift(),w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k+r.shift(),o(g,w,b,k,l,f),g=l+r.shift(),w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b,f=k,Math.abs(l-D)>Math.abs(f-W)?l+=r.shift():f+=r.shift(),o(g,w,b,k,l,f);break;default:throw new nt(`unknown operator: 12 ${B}`)}break;case 14:if(r.length>=4){let D=r.pop(),W=r.pop();f=r.pop(),l=r.pop(),t.save(),t.translate(l,f);let L=Xm(s.cmap,String.fromCharCode(s.glyphNameMap[ma[D]]));Ym(s.glyphs[L.glyphId],t,s,L.glyphId),t.restore(),L=Xm(s.cmap,String.fromCharCode(s.glyphNameMap[ma[W]])),Ym(s.glyphs[L.glyphId],t,s,L.glyphId)}return;case 19:case 20:c+=r.length>>1,p+=c+7>>3,I=!0;break;case 21:f+=r.pop(),l+=r.pop(),a(l,f),I=!0;break;case 22:l+=r.pop(),a(l,f),I=!0;break;case 24:for(;r.length>2;)g=l+r.shift(),w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k+r.shift(),o(g,w,b,k,l,f);l+=r.shift(),f+=r.shift(),i(l,f);break;case 25:for(;r.length>6;)l+=r.shift(),f+=r.shift(),i(l,f);g=l+r.shift(),w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k+r.shift(),o(g,w,b,k,l,f);break;case 26:for(r.length%2&&(l+=r.shift());r.length>0;)g=l,w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b,f=k+r.shift(),o(g,w,b,k,l,f);break;case 27:for(r.length%2&&(f+=r.shift());r.length>0;)g=l+r.shift(),w=f,b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k,o(g,w,b,k,l,f);break;case 28:r.push(d.getInt16(p)),p+=2;break;case 29:A=r.pop()+s.gsubrsBias,x=s.gsubrs[A],x&&m(x);break;case 30:for(;r.length>0&&(g=l,w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k+(r.length===1?r.shift():0),o(g,w,b,k,l,f),r.length!==0);)g=l+r.shift(),w=f,b=g+r.shift(),k=w+r.shift(),f=k+r.shift(),l=b+(r.length===1?r.shift():0),o(g,w,b,k,l,f);break;case 31:for(;r.length>0&&(g=l+r.shift(),w=f,b=g+r.shift(),k=w+r.shift(),f=k+r.shift(),l=b+(r.length===1?r.shift():0),o(g,w,b,k,l,f),r.length!==0);)g=l,w=f+r.shift(),b=g+r.shift(),k=w+r.shift(),l=b+r.shift(),f=k+(r.length===1?r.shift():0),o(g,w,b,k,l,f);break;default:if(B<32)throw new nt(`unknown operator: ${B}`);B<247?r.push(B-139):B<251?r.push(256*(B-247)+u[p++]+108):B<255?r.push(256*-(B-251)-u[p++]-108):(r.push(d.getInt32(p)/65536),p+=4)}I&&(r.length=0)}})(e)}var Jm=class{constructor(){Y(this,"cmds",[]);Y(this,"transformStack",[]);Y(this,"currentTransform",[1,0,0,1,0,0])}add(t,s){if(s){let{currentTransform:n}=this;for(let a=0,i=s.length;a<i;a+=2)ee.applyTransform(s,n,a);this.cmds.push(t,...s)}else this.cmds.push(t)}transform(t){this.currentTransform=ee.transform(this.currentTransform,t)}translate(t,s){this.transform([1,0,0,1,t,s])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getPath(){return us.isFloat16ArraySupported?new Float16Array(this.cmds):new Float32Array(this.cmds)}},Rf,Ff,G5=class G5{constructor(t){at(this,Rf,new Set);at(this,Ff,new Map);this.fontMatrix=t}static get NOOP(){return yt(this,"NOOP",us.isFloat16ArraySupported?new Float16Array(0):new Float32Array(0))}getPath(t){let{charCode:s,glyphId:n}=Xm(this.cmap,t);if(S(this,Ff).has(n)&&S(this,Rf).has(s))return null;let a=S(this,Ff).getOrInsertComputed(n,()=>{try{return this.compileGlyph(this.glyphs[n],n)}catch(i){return i}});if(S(this,Rf).add(s),a instanceof Error)throw a;return(function(o){return o.slice().buffer})(a)}compileGlyph(t,s){if(!t?.length||t[0]===14)return G5.NOOP;let n=this.fontMatrix;if(this.isCFFCIDFont){let i=this.fdSelect.getFDIndex(s);i>=0&&i<this.fdArray.length?n=this.fdArray[i].getByName("FontMatrix")||Ri:F("Invalid fd index for glyph index.")}Ae(Fe(n,6),"Expected a valid fontMatrix.");let a=new Jm;return a.transform(n.slice()),this.compileGlyphImpl(t,a,s),a.add(_o),a.getPath()}compileGlyphImpl(){Zt("Children classes should implement this.")}};Rf=new WeakMap,Ff=new WeakMap;var sh=G5,Qm=class extends sh{constructor(t,s,n){super(n||[488e-6,0,0,488e-6,0,0]),this.glyphs=t,this.cmap=s}compileGlyphImpl(t,s){p8(t,s,this)}},Zm=class extends sh{constructor(t,s,n){super(n||[.001,0,0,.001,0,0]),this.glyphs=t.glyphs,this.gsubrs=t.gsubrs||[],this.subrs=t.subrs||[],this.cmap=s,this.glyphNameMap=yn(),this.gsubrsBias=Gm(this.gsubrs),this.subrsBias=Gm(this.subrs),this.isCFFCIDFont=t.isCFFCIDFont,this.fdSelect=t.fdSelect,this.fdArray=t.fdArray}compileGlyphImpl(t,s,n){Ym(t,s,this,n)}},tp=class{static create(t,s){let n=new Uint8Array(t.data),a=new DataView(n.buffer),i,o,r,l,f,c,h=a.getUint16(4);for(let m=0,u=12;m<h;m++,u+=16){let d=Cs(n.subarray(u,u+4)),p=a.getUint32(u+8),g=a.getUint32(u+12);switch(d){case"cmap":i=Tq(n,p);break;case"glyf":o=n.subarray(p,p+g);break;case"loca":r=n.subarray(p,p+g);break;case"head":c=a.getUint16(p+18),f=a.getUint16(p+50);break;case"CFF ":l=Rq(n,p,p+g,s)}}if(o){let m=c?[1/c,0,0,1/c,0,0]:t.fontMatrix;return new Qm((function(d,p,g){let b=new DataView(p.buffer,p.byteOffset,p.byteLength),w,k;g?(w=4,k=(v,A)=>v.getUint32(A)):(w=2,k=(v,A)=>2*v.getUint16(A));let q=[],y=k(b,0);for(let v=w;v<p.length;v+=w){let A=k(b,v);q.push(d.subarray(y,A)),y=A}return q})(o,r,f),i,m)}return new Zm(l,i,t.fontMatrix)}},Fq=Se(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=Se(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),e["Helvetica-Bold"]=Se(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),e["Helvetica-BoldOblique"]=Se(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),e["Helvetica-Oblique"]=Se(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),e.Symbol=Se(function(t){t.space=250,t.exclam=333,t.universal=713,t.numbersign=500,t.existential=549,t.percent=833,t.ampersand=778,t.suchthat=439,t.parenleft=333,t.parenright=333,t.asteriskmath=500,t.plus=549,t.comma=250,t.minus=549,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=549,t.equal=549,t.greater=549,t.question=444,t.congruent=549,t.Alpha=722,t.Beta=667,t.Chi=722,t.Delta=612,t.Epsilon=611,t.Phi=763,t.Gamma=603,t.Eta=722,t.Iota=333,t.theta1=631,t.Kappa=722,t.Lambda=686,t.Mu=889,t.Nu=722,t.Omicron=722,t.Pi=768,t.Theta=741,t.Rho=556,t.Sigma=592,t.Tau=611,t.Upsilon=690,t.sigma1=439,t.Omega=768,t.Xi=645,t.Psi=795,t.Zeta=611,t.bracketleft=333,t.therefore=863,t.bracketright=333,t.perpendicular=658,t.underscore=500,t.radicalex=500,t.alpha=631,t.beta=549,t.chi=549,t.delta=494,t.epsilon=439,t.phi=521,t.gamma=411,t.eta=603,t.iota=329,t.phi1=603,t.kappa=549,t.lambda=549,t.mu=576,t.nu=521,t.omicron=549,t.pi=549,t.theta=521,t.rho=549,t.sigma=603,t.tau=439,t.upsilon=576,t.omega1=713,t.omega=686,t.xi=493,t.psi=686,t.zeta=494,t.braceleft=480,t.bar=200,t.braceright=480,t.similar=549,t.Euro=750,t.Upsilon1=620,t.minute=247,t.lessequal=549,t.fraction=167,t.infinity=713,t.florin=500,t.club=753,t.diamond=753,t.heart=753,t.spade=753,t.arrowboth=1042,t.arrowleft=987,t.arrowup=603,t.arrowright=987,t.arrowdown=603,t.degree=400,t.plusminus=549,t.second=411,t.greaterequal=549,t.multiply=549,t.proportional=713,t.partialdiff=494,t.bullet=460,t.divide=549,t.notequal=549,t.equivalence=549,t.approxequal=549,t.ellipsis=1e3,t.arrowvertex=603,t.arrowhorizex=1e3,t.carriagereturn=658,t.aleph=823,t.Ifraktur=686,t.Rfraktur=795,t.weierstrass=987,t.circlemultiply=768,t.circleplus=768,t.emptyset=823,t.intersection=768,t.union=768,t.propersuperset=713,t.reflexsuperset=713,t.notsubset=713,t.propersubset=713,t.reflexsubset=713,t.element=713,t.notelement=713,t.angle=768,t.gradient=713,t.registerserif=790,t.copyrightserif=790,t.trademarkserif=890,t.product=823,t.radical=549,t.dotmath=250,t.logicalnot=713,t.logicaland=603,t.logicalor=603,t.arrowdblboth=1042,t.arrowdblleft=987,t.arrowdblup=603,t.arrowdblright=987,t.arrowdbldown=603,t.lozenge=494,t.angleleft=329,t.registersans=790,t.copyrightsans=790,t.trademarksans=786,t.summation=713,t.parenlefttp=384,t.parenleftex=384,t.parenleftbt=384,t.bracketlefttp=384,t.bracketleftex=384,t.bracketleftbt=384,t.bracelefttp=494,t.braceleftmid=494,t.braceleftbt=494,t.braceex=494,t.angleright=329,t.integral=274,t.integraltp=686,t.integralex=686,t.integralbt=686,t.parenrighttp=384,t.parenrightex=384,t.parenrightbt=384,t.bracketrighttp=384,t.bracketrightex=384,t.bracketrightbt=384,t.bracerighttp=494,t.bracerightmid=494,t.bracerightbt=494,t.apple=790}),e["Times-Roman"]=Se(function(t){t.space=250,t.exclam=333,t.quotedbl=408,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=564,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=564,t.equal=564,t.greater=564,t.question=444,t.at=921,t.A=722,t.B=667,t.C=667,t.D=722,t.E=611,t.F=556,t.G=722,t.H=722,t.I=333,t.J=389,t.K=722,t.L=611,t.M=889,t.N=722,t.O=722,t.P=556,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=722,t.W=944,t.X=722,t.Y=722,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=469,t.underscore=500,t.quoteleft=333,t.a=444,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=500,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=500,t.o=500,t.p=500,t.q=500,t.r=333,t.s=389,t.t=278,t.u=500,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=480,t.bar=200,t.braceright=480,t.asciitilde=541,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=180,t.quotedblleft=444,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=453,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=444,t.quotedblright=444,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=444,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=889,t.ordfeminine=276,t.Lslash=611,t.Oslash=722,t.OE=889,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=444,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=722,t.divide=564,t.Yacute=722,t.Acircumflex=722,t.aacute=444,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=444,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=444,t.Ncommaaccent=722,t.lacute=278,t.agrave=444,t.Tcommaaccent=611,t.Cacute=667,t.atilde=444,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=444,t.Amacron=722,t.rcaron=333,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=556,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=588,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=722,t.Abreve=722,t.multiply=564,t.uacute=500,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=444,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=722,t.Iacute=333,t.plusminus=564,t.brokenbar=200,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=333,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=326,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=444,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=344,t.Kcommaaccent=722,t.Lacute=611,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=722,t.zdotaccent=444,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=500,t.minus=564,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=564,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-Bold"]=Se(function(t){t.space=250,t.exclam=333,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=1e3,t.ampersand=833,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=930,t.A=722,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=778,t.I=389,t.J=500,t.K=778,t.L=667,t.M=944,t.N=722,t.O=778,t.P=611,t.Q=778,t.R=722,t.S=556,t.T=667,t.U=722,t.V=722,t.W=1e3,t.X=722,t.Y=722,t.Z=667,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=581,t.underscore=500,t.quoteleft=333,t.a=500,t.b=556,t.c=444,t.d=556,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=333,t.k=556,t.l=278,t.m=833,t.n=556,t.o=500,t.p=556,t.q=556,t.r=444,t.s=389,t.t=333,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=394,t.bar=220,t.braceright=394,t.asciitilde=520,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=540,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=300,t.Lslash=667,t.Oslash=778,t.OE=1e3,t.ordmasculine=330,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=556,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=722,t.divide=570,t.Yacute=722,t.Acircumflex=722,t.aacute=500,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=667,t.Cacute=722,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=500,t.Amacron=722,t.rcaron=444,t.ccedilla=444,t.Zdotaccent=667,t.Thorn=611,t.Omacron=778,t.Racute=722,t.Sacute=556,t.dcaron=672,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=570,t.uacute=556,t.Tcaron=667,t.partialdiff=494,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=778,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=444,t.omacron=500,t.Zacute=667,t.Zcaron=667,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=416,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=778,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=300,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=556,t.threequarters=750,t.Scedilla=556,t.lcaron=394,t.Kcommaaccent=778,t.Lacute=667,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=667,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=778,t.degree=400,t.ograve=500,t.Ccaron=722,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=444,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=722,t.Lcommaaccent=667,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=444,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=556,t.minus=570,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=333,t.logicalnot=570,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-BoldItalic"]=Se(function(t){t.space=250,t.exclam=389,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=832,t.A=667,t.B=667,t.C=667,t.D=722,t.E=667,t.F=667,t.G=722,t.H=778,t.I=389,t.J=500,t.K=667,t.L=611,t.M=889,t.N=722,t.O=722,t.P=611,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=667,t.W=889,t.X=667,t.Y=611,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=570,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=556,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=556,t.v=444,t.w=667,t.x=500,t.y=444,t.z=389,t.braceleft=348,t.bar=220,t.braceright=348,t.asciitilde=570,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=500,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=944,t.ordfeminine=266,t.Lslash=611,t.Oslash=722,t.OE=944,t.ordmasculine=300,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=611,t.divide=570,t.Yacute=611,t.Acircumflex=667,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=611,t.Cacute=667,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=556,t.acircumflex=500,t.Amacron=667,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=611,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=608,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=722,t.Agrave=667,t.Abreve=667,t.multiply=570,t.uacute=556,t.Tcaron=611,t.partialdiff=494,t.ydieresis=444,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=722,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=366,t.eogonek=444,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=576,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=382,t.Kcommaaccent=667,t.Lacute=611,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=722,t.zdotaccent=389,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=500,t.minus=606,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=606,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-Italic"]=Se(function(t){t.space=250,t.exclam=333,t.quotedbl=420,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=675,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=675,t.equal=675,t.greater=675,t.question=500,t.at=920,t.A=611,t.B=611,t.C=667,t.D=722,t.E=611,t.F=611,t.G=722,t.H=722,t.I=333,t.J=444,t.K=667,t.L=556,t.M=833,t.N=667,t.O=722,t.P=611,t.Q=722,t.R=611,t.S=500,t.T=556,t.U=722,t.V=611,t.W=833,t.X=611,t.Y=556,t.Z=556,t.bracketleft=389,t.backslash=278,t.bracketright=389,t.asciicircum=422,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=278,t.g=500,t.h=500,t.i=278,t.j=278,t.k=444,t.l=278,t.m=722,t.n=500,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=500,t.v=444,t.w=667,t.x=444,t.y=444,t.z=389,t.braceleft=400,t.bar=275,t.braceright=400,t.asciitilde=541,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=214,t.quotedblleft=556,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=523,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=556,t.quotedblright=556,t.guillemotright=500,t.ellipsis=889,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=889,t.AE=889,t.ordfeminine=276,t.Lslash=556,t.Oslash=722,t.OE=944,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=667,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=500,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=556,t.divide=675,t.Yacute=556,t.Acircumflex=611,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=500,t.Ncommaaccent=667,t.lacute=278,t.agrave=500,t.Tcommaaccent=556,t.Cacute=667,t.atilde=500,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=611,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=500,t.Amacron=611,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=556,t.Thorn=611,t.Omacron=722,t.Racute=611,t.Sacute=500,t.dcaron=544,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=611,t.Abreve=611,t.multiply=675,t.uacute=500,t.Tcaron=556,t.partialdiff=476,t.ydieresis=444,t.Nacute=667,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=667,t.Iacute=333,t.plusminus=675,t.brokenbar=275,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=389,t.omacron=500,t.Zacute=556,t.Zcaron=556,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=300,t.eogonek=444,t.Uogonek=722,t.Aacute=611,t.Adieresis=611,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=500,t.lcaron=300,t.Kcommaaccent=667,t.Lacute=556,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=500,t.Scommaaccent=500,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=667,t.otilde=500,t.Rcommaaccent=611,t.Lcommaaccent=556,t.Atilde=611,t.Aogonek=611,t.Aring=611,t.Otilde=722,t.zdotaccent=389,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=444,t.minus=675,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=675,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),e.ZapfDingbats=Se(function(t){t.space=278,t.a1=974,t.a2=961,t.a202=974,t.a3=980,t.a4=719,t.a5=789,t.a119=790,t.a118=791,t.a117=690,t.a11=960,t.a12=939,t.a13=549,t.a14=855,t.a15=911,t.a16=933,t.a105=911,t.a17=945,t.a18=974,t.a19=755,t.a20=846,t.a21=762,t.a22=761,t.a23=571,t.a24=677,t.a25=763,t.a26=760,t.a27=759,t.a28=754,t.a6=494,t.a7=552,t.a8=537,t.a9=577,t.a10=692,t.a29=786,t.a30=788,t.a31=788,t.a32=790,t.a33=793,t.a34=794,t.a35=816,t.a36=823,t.a37=789,t.a38=841,t.a39=823,t.a40=833,t.a41=816,t.a42=831,t.a43=923,t.a44=744,t.a45=723,t.a46=749,t.a47=790,t.a48=792,t.a49=695,t.a50=776,t.a51=768,t.a52=792,t.a53=759,t.a54=707,t.a55=708,t.a56=682,t.a57=701,t.a58=826,t.a59=815,t.a60=789,t.a61=789,t.a62=707,t.a63=687,t.a64=696,t.a65=689,t.a66=786,t.a67=787,t.a68=713,t.a69=791,t.a70=785,t.a71=791,t.a72=873,t.a73=761,t.a74=762,t.a203=762,t.a75=759,t.a204=759,t.a76=892,t.a77=892,t.a78=788,t.a79=784,t.a81=438,t.a82=138,t.a83=277,t.a84=415,t.a97=392,t.a98=392,t.a99=668,t.a100=668,t.a89=390,t.a90=390,t.a93=317,t.a94=317,t.a91=276,t.a92=276,t.a205=509,t.a85=509,t.a206=410,t.a86=410,t.a87=234,t.a88=234,t.a95=334,t.a96=334,t.a101=732,t.a102=544,t.a103=544,t.a104=910,t.a106=667,t.a107=760,t.a108=760,t.a112=776,t.a111=595,t.a110=694,t.a109=626,t.a120=788,t.a121=788,t.a122=788,t.a123=788,t.a124=788,t.a125=788,t.a126=788,t.a127=788,t.a128=788,t.a129=788,t.a130=788,t.a131=788,t.a132=788,t.a133=788,t.a134=788,t.a135=788,t.a136=788,t.a137=788,t.a138=788,t.a139=788,t.a140=788,t.a141=788,t.a142=788,t.a143=788,t.a144=788,t.a145=788,t.a146=788,t.a147=788,t.a148=788,t.a149=788,t.a150=788,t.a151=788,t.a152=788,t.a153=788,t.a154=788,t.a155=788,t.a156=788,t.a157=788,t.a158=788,t.a159=788,t.a160=894,t.a161=838,t.a163=1016,t.a164=458,t.a196=748,t.a165=924,t.a192=748,t.a166=918,t.a167=927,t.a168=928,t.a169=928,t.a170=834,t.a171=873,t.a172=828,t.a173=924,t.a162=924,t.a174=917,t.a175=930,t.a176=931,t.a177=463,t.a178=883,t.a179=836,t.a193=836,t.a180=867,t.a199=867,t.a181=696,t.a200=696,t.a182=874,t.a201=874,t.a183=760,t.a184=946,t.a197=771,t.a185=865,t.a194=771,t.a198=888,t.a186=967,t.a195=888,t.a187=831,t.a188=873,t.a189=927,t.a190=970,t.a191=918})}),Mq=Se(function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}),Ai,X5=class X5{constructor(t){at(this,Ai,new Map);this.sfnt=t}static getSearchParams(t,s){let n=1,a=0;for(;(n^t)>n;)n<<=1,a++;let i=n*s;return{range:i,entry:a,rangeShift:s*t-i}}toArray(){let t=this.sfnt,s=S(this,Ai),n=[...s.keys()].sort(),a=n.length,i=12+16*a,o=[i];for(let c=0;c<a;c++)i+=(s.get(n[c]).length+3&-4)>>>0,o.push(i);let r=new Uint8Array(i),l=new DataView(r.buffer);for(let c=0;c<a;c++){let h=s.get(n[c]);r.set(h,o[c])}t==="true"&&(t="\\0\\0\\0"),r.set(Ce(t),0),l.setInt16(4,a);let f=X5.getSearchParams(a,16);l.setInt16(6,f.range),l.setInt16(8,f.entry),l.setInt16(10,f.rangeShift),i=12;for(let c=0;c<a;c++){let h=n[c];r.set(Ce(h),i);let m=0;for(let u=o[c],d=o[c+1];u<d;u+=4)m=m+l.getUint32(u)>>>0;l.setInt32(i+4,m),l.setInt32(i+8,o[c]),l.setInt32(i+12,s.get(h).length),i+=16}return S(this,Ai).clear(),r}addTable(t,s){if(S(this,Ai).has(t))throw new Error(`Table ${t} already exists`);S(this,Ai).set(t,s)}};Ai=new WeakMap;var _l=X5,zq=[4],Dq=[5],Oq=[6],Nq=[7],_q=[8],Pq=[12,35],r0=[14],I3=[21],C3=[22],Uq=[30],Lq=[31],nh=class{constructor(){Y(this,"width",0);Y(this,"lsb",0);Y(this,"flexing",!1);Y(this,"output",[]);Y(this,"stack",[])}convert(t,s,n){let a=t.length,i,o,r,l=!1;for(let f=0;f<a;f++){let c=t[f];if(c<32){switch(c===12&&(c=(c<<8)+t[++f]),c){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){l=!0;break}let p=this.stack.pop();this.stack.push(0,p);break}l=this.executeCommand(1,zq);break;case 5:l=this.executeCommand(2,Dq);break;case 6:l=this.executeCommand(1,Oq);break;case 7:l=this.executeCommand(1,Nq);break;case 8:l=this.executeCommand(6,_q);break;case 10:if(this.stack.length<1){l=!0;break}if(r=this.stack.pop(),!s[r]){l=!0;break}l=this.convert(s[r],s,n);break;case 11:return l;case 13:if(this.stack.length<2){l=!0;break}i=this.stack.pop(),o=this.stack.pop(),this.lsb=o,this.width=i,this.stack.push(i,o),l=this.executeCommand(2,C3);break;case 14:this.output.push(r0[0]);break;case 21:if(this.flexing)break;l=this.executeCommand(2,I3);break;case 22:if(this.flexing){this.stack.push(0);break}l=this.executeCommand(1,C3);break;case 30:l=this.executeCommand(4,Uq);break;case 31:l=this.executeCommand(4,Lq);break;case 3078:if(n){let p=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-p,l=this.executeCommand(0,r0)}else l=this.executeCommand(4,r0);break;case 3079:if(this.stack.length<4){l=!0;break}this.stack.pop(),i=this.stack.pop();let h=this.stack.pop();o=this.stack.pop(),this.lsb=o,this.width=i,this.stack.push(i,o,h),l=this.executeCommand(3,I3);break;case 3084:if(this.stack.length<2){l=!0;break}let m=this.stack.pop(),u=this.stack.pop();this.stack.push(u/m);break;case 3088:if(this.stack.length<2){l=!0;break}r=this.stack.pop();let d=this.stack.pop();if(r===0&&d===3){let p=this.stack.splice(-17,17);this.stack.push(p[2]+p[0],p[3]+p[1],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14]),l=this.executeCommand(13,Pq,!0),this.flexing=!1,this.stack.push(p[15],p[16])}else r===1&&d===0&&(this.flexing=!0);break;case 3089:break;default:F(\'Unknown type 1 charstring command of "\'+c+\'"\')}if(l)break}else c<=246?c-=139:c=c<=250?256*(c-247)+t[++f]+108:c<=254?-256*(c-251)-t[++f]-108:(255&t[++f])<<24|(255&t[++f])<<16|(255&t[++f])<<8|255&t[++f],this.stack.push(c)}return l}executeCommand(t,s,n){let a=this.stack.length;if(t>a)return!0;let i=a-t;for(let o=i;o<a;o++){let r=this.stack[o];Number.isInteger(r)?this.output.push(28,r>>8&255,255&r):(r=65536*r|0,this.output.push(255,r>>24&255,r>>16&255,r>>8&255,255&r))}return this.output.push(...s),n?this.stack.splice(i,t):this.stack.length=0,!1}};function un(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function H3(e,t,s){if(s>=e.length)return new Uint8Array(0);let n,a,i=0|t;for(n=0;n<s;n++)i=52845*(e[n]+i)+22719&65535;let o=e.length-s,r=new Uint8Array(o);for(n=s,a=0;a<o;n++,a++){let l=e[n];r[a]=l^i>>8,i=52845*(l+i)+22719&65535}return r}function B3(e){return e===47||e===91||e===93||e===123||e===125||e===40||e===41}var rl=class{constructor(t,s,n){if(s){let a=t.getBytes(),i=!((un(a[0])||rn(a[0]))&&un(a[1])&&un(a[2])&&un(a[3])&&un(a[4])&&un(a[5])&&un(a[6])&&un(a[7]));t=new ke(i?H3(a,55665,4):(function(r,l,f){let c=0|l,h=r.length,m=new Uint8Array(h>>>1),u,d;for(u=0,d=0;u<h;u++){let p=r[u];if(!un(p))continue;u++;let g;for(;u<h&&!un(g=r[u]);)u++;if(u<h){let b=parseInt(String.fromCharCode(p,g),16);m[d++]=b^c>>8,c=52845*(b+c)+22719&65535}}return m.slice(f,d)})(a,55665,4))}this.seacAnalysisEnabled=!!n,this.stream=t,this.nextChar()}readNumberArray(){this.getToken();let t=[];for(;;){let s=this.getToken();if(s===null||s==="]"||s==="}")break;t.push(parseFloat(s||0))}return t}readNumber(){let t=this.getToken();return parseFloat(t||0)}readInt(){let t=this.getToken();return 0|parseInt(t||0,10)}readBoolean(){return this.getToken()==="true"?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let t=!1,s=this.currentChar;for(;;){if(s===-1)return null;if(t)s!==10&&s!==13||(t=!1);else if(s===37)t=!0;else if(!rn(s))break;s=this.nextChar()}if(B3(s))return this.nextChar(),String.fromCharCode(s);let n="";do n+=String.fromCharCode(s),s=this.nextChar();while(s>=0&&!rn(s)&&!B3(s));return n}readCharStrings(t,s){return s===-1?t:H3(t,4330,s)}extractFontProgram(t){let s=this.stream,n=[],a=[],i=new Map([["lenIV",4]]),o={subrs:[],charstrings:[],properties:{privateData:i}},r,l,f,c=!1,h=!1;for(;(r=this.getToken())!==null;)if(r==="/")switch(r=this.getToken(),r){case"CharStrings":if(h)break;for(h=!0,this.getToken(),this.getToken(),this.getToken(),this.getToken();r=this.getToken(),!(r===null||r==="end");){if(r!=="/")continue;let m=this.getToken();l=this.readInt(),this.getToken(),f=l>0?s.getBytes(l):new Uint8Array(0);let u=this.readCharStrings(f,i.get("lenIV"));this.nextChar(),r=this.getToken(),r==="noaccess"?this.getToken():r==="/"&&this.prevChar(),a.push({glyph:m,encoded:u})}break;case"Subrs":if(c)break;for(c=!0,this.readInt(),this.getToken();this.getToken()==="dup";){let m=this.readInt();l=this.readInt(),this.getToken(),f=l>0?s.getBytes(l):new Uint8Array(0);let u=this.readCharStrings(f,i.get("lenIV"));this.nextChar(),r=this.getToken(),r==="noaccess"&&this.getToken(),n[m]=u}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":this.readNumberArray();break;case"StemSnapH":case"StemSnapV":i.set(r,this.readNumberArray());break;case"StdHW":case"StdVW":i.set(r,this.readNumberArray()[0]);break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":i.set(r,this.readNumber());break;case"ExpansionFactor":i.set(r,this.readNumber()||.06);break;case"ForceBold":i.set(r,this.readBoolean())}for(let{encoded:m,glyph:u}of a){let d=new nh,p={glyphName:u,charstring:d.convert(m,n,this.seacAnalysisEnabled)?[14]:d.output,width:d.width,lsb:d.lsb,seac:d.seac};if(u===".notdef"?o.charstrings.unshift(p):o.charstrings.push(p),t.builtInEncoding){let g=t.builtInEncoding.indexOf(u);g>-1&&t.widths[g]===void 0&&g>=t.firstChar&&g<=t.lastChar&&(t.widths[g]=d.width)}}return o}extractCidKeyedFontProgram(t){let s=this.stream,n=new Map([["lenIV",4]]),a={subrs:[],charstrings:[],properties:{privateData:n}},i=0,o=-1,r=1,l=0,f=-1,c=0,h=0,m=0,u=!1,d=!1,p=[];function g(B){p.push(B),p.length>4&&p.shift()}let b;for(;(b=this.getToken())!==null;){if(b==="StartData"){let B=p.at(-3),D=p.at(-1);if(p.at(-4)!=="("||p.at(-2)!==")"||B!=="Binary"&&B!=="Hex"||!/^\\d+$/.test(D)||(m=parseInt(D,10),m<=0))return null;u=B==="Hex",d=!0;break}if(g(b),b==="/")switch(b=this.getToken(),g(b),b){case"FontMatrix":t.fontMatrix=this.readNumberArray();break;case"FontBBox":let B=this.readNumberArray();t.ascent=Math.max(B[3],B[1]),t.descent=Math.min(B[1],B[3]),t.ascentScaled=!0;break;case"CIDCount":i=this.readInt();break;case"CIDMapOffset":o=this.readInt();break;case"FDBytes":r=this.readInt();break;case"GDBytes":l=this.readInt();break;case"SubrMapOffset":f=this.readInt();break;case"SDBytes":c=this.readInt();break;case"SubrCount":h=this.readInt();break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":this.readNumberArray();break;case"StemSnapH":case"StemSnapV":n.set(b,this.readNumberArray());break;case"StdHW":case"StdVW":n.set(b,this.readNumberArray()[0]);break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":n.set(b,this.readNumber());break;case"ExpansionFactor":n.set(b,this.readNumber()||.06);break;case"ForceBold":n.set(b,this.readBoolean())}}if(!d||i<=0||o<0||r<0||r>4||l<1||l>4)return null;let w=s.end-s.pos;if(m>w)if(u){if(m>2*w)return null}else m=w;let k=s.getBytes(u?void 0:m);if(u){let B=new Uint8Array(m),D=-1,W=0;for(let L=0,ot=k.length;L<ot&&W<m;L++){let P=k[L];un(P)&&(D<0?D=P:(B[W++]=parseInt(String.fromCharCode(D,P),16),D=-1))}if(W!==m)return null;k=B}let q=n.get("lenIV"),y=r+l,v=[];function A(B,D){let W=0;for(let L=0;L<D;L++)W=W<<8|k[B+L];return W>>>0}if(o+(i+1)*y>k.length||h>0&&(f<0||c<1||c>4||f+(h+1)*c>k.length))return null;if(r>0){for(let B=0;B<i;B++)if(A(o+B*y,r)!==0)return null}if(h>0){let B=new Array(h+1);for(let D=0;D<=h;D++)B[D]=A(f+D*c,c);for(let D=0;D<h;D++){let W=B[D],L=B[D+1];L>k.length||L<W?v[D]=new Uint8Array(0):v[D]=this.readCharStrings(k.subarray(W,L),q)}}let x=[],I=A(o+r,l);for(let B=0;B<i;B++){let D=A(o+(B+1)*y+r,l),W=B===0?".notdef":`cid${B}`;if(D>I&&D<=k.length){let L=this.readCharStrings(k.subarray(I,D),q),ot=new nh,P=ot.convert(L,v,this.seacAnalysisEnabled);x.push({glyphName:W,charstring:P?[14]:ot.output,width:ot.width,lsb:ot.lsb,seac:ot.seac})}else{let L=x[0];x.push({glyphName:W,charstring:L?.charstring.slice()||[139,14],width:L?.width||0,lsb:L?.lsb||0})}I=D}return a.subrs=v,a.charstrings=x,a}extractFontHeader(t){let s;for(;(s=this.getToken())!==null;)if(s==="/")switch(s=this.getToken(),s){case"FontMatrix":let n=this.readNumberArray();t.fontMatrix=n;break;case"Encoding":let a=this.getToken(),i;if(/^\\d+$/.test(a)){i=[];let r=0|parseInt(a,10);this.getToken();for(let l=0;l<r;l++){for(s=this.getToken();s!=="dup"&&s!=="def";)if(s=this.getToken(),s===null)return;if(s==="def")break;let f=this.readInt();this.getToken();let c=this.getToken();i[f]=c,this.getToken()}}else i=Rl(a);t.builtInEncoding=i;break;case"FontBBox":let o=this.readNumberArray();t.ascent=Math.max(o[3],o[1]),t.descent=Math.min(o[1],o[3]),t.ascentScaled=!0}}};function T3(e,t,s){let n=e.length,a=t.length,i=n-a,o=s,r=!1;for(;o<i;){let l=0;for(;l<a&&e[o+l]===t[l];)l++;if(l>=a){for(o+=l;o<n&&rn(e[o]);)o++;r=!0;break}o++}return{found:r,length:o}}var Lr,ko,d8,g8,ep=class{constructor(t,s,n){at(this,ko);at(this,Lr);let a;n.composite&&(function(f){let c=f.peekBytes(2048);if(c.length<2||c[0]!==37||c[1]!==33)return!1;let h=Cs(c);return h.includes("Resource-CIDFont")||/\\/CIDFontType\\s+0\\b/.test(h)})(s)&&(a=N(this,ko,g8).call(this,s,n)),a||(a=N(this,ko,d8).call(this,s,n));for(let l in a.properties)n[l]=a.properties[l];let i=a.charstrings,o=this.getType2Charstrings(i),r=this.getType2Subrs(a.subrs);this.charstrings=i,this.data=this.wrap(t,o,this.charstrings,r,n),this.seacs=this.getSeacs(a.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){let t=[".notdef"];for(let{glyphName:s}of this.charstrings)t.push(s);return t}getGlyphMapping(t){let s=this.charstrings;if(t.composite){let r=Object.create(null);for(let l=0,f=s.length;l<f;l++)r[t.cMap.charCodeOf(l)]=l+1;return r}let n=[".notdef"],a,i;for(i=0;i<s.length;i++)n.push(s[i].glyphName);let o=t.builtInEncoding;if(o){a=Object.create(null);for(let r in o)i=n.indexOf(o[r]),i>=0&&(a[r]=i)}return m8(t,a,n)}hasGlyphId(t){return t<0||t>=this.numGlyphs?!1:t===0?!0:this.charstrings[t-1].charstring.length>0}getSeacs(t){let s=[];for(let n=0,a=t.length;n<a;n++){let i=t[n];i.seac&&(s[n+1]=i.seac)}return s}getType2Charstrings(t){let s=[];for(let n of t)s.push(n.charstring);return s}getType2Subrs(t){let s=0,n=t.length;s=n<1133?107:n<33769?1131:32768;let a=[],i;for(i=0;i<s;i++)a.push([11]);for(i=0;i<n;i++)a.push(t[i]);return a}wrap(t,s,n,a,i){let o=new J1(S(this,Lr));o.header=new Q1(1,0,4,4),o.names=[t];let r=new zl;r.setByName("version",391),r.setByName("Notice",392),r.setByName("FullName",393),r.setByName("FamilyName",394),r.setByName("Weight",395),r.setByName("Encoding",null),r.setByName("FontMatrix",i.fontMatrix),r.setByName("FontBBox",i.bbox),r.setByName("charset",null),r.setByName("CharStrings",null),r.setByName("Private",null),o.topDict=r;let l=new Ml;l.add("Version 0.11"),l.add("See original notice"),l.add(t),l.add(t),l.add("Medium"),o.strings=l,o.globalSubrIndex=new Un;let f=s.length,c=[".notdef"];for(let p=0;p<f;p++){let{glyphName:g}=n[p];h1.indexOf(g)===-1&&l.add(g),c.push(g)}o.charset=new ji(!1,0,c);let h=new Un;h.add([139,14]);for(let p=0;p<f;p++)h.add(s[p]);o.charStrings=h;let m=new Dl;m.setByName("Subrs",null);let u=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(let p of u){if(!i.privateData.has(p))continue;let g=i.privateData.get(p);if(Array.isArray(g))for(let b=g.length-1;b>0;b--)g[b]-=g[b-1];m.setByName(p,g)}o.topDict.privateDict=m;let d=new Un;for(let p of a)d.add(p);return m.subrsIndex=d,new Ol(o).compile()}};Lr=new WeakMap,ko=new WeakSet,d8=function(t,s){let n=s.length1,a=s.length2,i=t.peekBytes(6),o=i[0]===128&&i[1]===1;o&&(t.skip(6),n=i[5]<<24|i[4]<<16|i[3]<<8|i[2]);let r=(function(h,m){let u=[101,101,120,101,99],d=h.pos,p,g,b,w;try{p=h.getBytes(m),g=p.length}catch{}if(g===m&&(b=T3(p,u,m-2*u.length),b.found&&b.length===m))return{stream:new ke(p),length:m};for(F(\'Invalid "Length1" property in Type1 font -- trying to recover.\'),h.pos=d;b=T3(h.peekBytes(2048),u,0),b.length!==0;)if(h.pos+=b.length,b.found){w=h.pos-d;break}return h.pos=d,w?{stream:new ke(h.getBytes(w)),length:w}:(F(\'Unable to recover "Length1" property in Type1 font -- using as is.\'),{stream:new ke(h.getBytes(m)),length:m})})(t,n);new rl(r.stream,!1,!0).extractFontHeader(s),o&&(i=t.getBytes(6),a=i[5]<<24|i[4]<<16|i[3]<<8|i[2]);let l=(function(h,m){let u=h.getBytes();if(u.length===0)throw new nt("getEexecBlock - no font program found.");return{stream:new ke(u),length:u.length}})(t),f=new rl(l.stream,!0,!0).extractFontProgram(s);return Bt(this,Lr,r.length+l.length),f},g8=function(t,s){let n=t.pos,a=t.end-n,i=new rl(t,!1,!0).extractCidKeyedFontProgram(s);return i?(Bt(this,Lr,a),i):(t.pos=n,F("Type1Font: unable to parse CID-keyed Type 1 font."),null)};var Xn=[[57344,63743],[1048576,1114109]],ci=1e3,Eq=["ascent","bbox","black","bold","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","disableFontFace","fallbackName","fontExtraProperties","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","systemFontInfo","vertical"],Kq=["cMap","composite","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","subtype","toFontChar","toUnicode","type","vmetrics","widths"];function R3(e){if(!e.fontMatrix||e.fontMatrix[0]===Ri[0])return;let t=.001/e.fontMatrix[0],s=e.widths;for(let n in s)s[n]*=t;e.defaultWidth*=t}function F3(e){if(!e.fallbackToUnicode||e.toUnicode instanceof Ds)return;let t=[];for(let s in e.fallbackToUnicode)e.toUnicode.has(s)||(t[s]=e.fallbackToUnicode[s]);t.length>0&&e.toUnicode.amend(t)}var sp=class{constructor(t,s,n,a,i,o,r,l,f){this.originalCharCode=t,this.fontChar=s,this.unicode=n,this.accent=a,this.width=i,this.vmetric=o,this.operatorListId=r,this.isSpace=l,this.isInFont=f}get category(){return yt(this,"category",(function(s){let n=Om.get(s);if(n)return n;let a=s.match(bq),i={isWhitespace:!!a?.[1],isZeroWidthDiacritic:!!a?.[2],isInvisibleFormatMark:!!a?.[3]};return Om.set(s,i),i})(this.unicode),!0)}};function Ao(e,t){return(e<<8)+t}function Io(e,t,s){e[t+1]=s,e[t]=s>>>8}function vs(e,t){let s=(e<<8)+t;return 32768&s?s-65536:s}function M3(e,t,s){e[t+3]=255&s,e[t+2]=s>>>8,e[t+1]=s>>>16,e[t]=s>>>24}function b8(e){return Cs(e.peekBytes(4))==="ttcf"}function Wq(e,{type:t,subtype:s,composite:n}){let a,i;return(function(r){let l=Cs(r.peekBytes(4));return l==="\\0\\0\\0"||l==="true"})(e)||b8(e)?a=n?"CIDFontType2":"TrueType":(function(r){return Cs(r.peekBytes(4))==="OTTO"})(e)?a=n?"CIDFontType2":"OpenType":(function(r){let l=r.peekBytes(2);return l[0]===37&&l[1]===33||l[0]===128&&l[1]===1})(e)?a=n?"CIDFontType0":t==="MMType1"?"MMType1":"Type1":(function(r){let l=r.peekBytes(4);return l[0]>=1&&l[3]>=1&&l[3]<=4})(e)?n?(a="CIDFontType0",i="CIDFontType0C"):(a=t==="MMType1"?"MMType1":"Type1",i="Type1C"):(F("getFontFileType: Unable to detect correct font file Type/Subtype."),a=t,i=s),[a,i]}function or(e,t){for(let s in t)e[+s]=t[s]}var Vq=Se(e=>{let t=3;for(let[s,n]of[[32,126],[161,254]])for(let a=s;a<=n;a++)e[t++]=Mu[a]},!0);function o0(e,t,s){let n=[],a;for(let i=0,o=e.length;i<o;i++)a=ho(e[i],t),a!==-1&&(n[i]=a);for(let i in s)a=ho(s[i],t),a!==-1&&(n[+i]=a);return n}function $q(e){return e.platform===1&&e.encoding===0&&e.language===0}function z3(e){return e.platform===3&&e.encoding===1&&e.language===1033}function l0(e,t,s=!1){switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}let n=`Unsupported CID string (charCode ${e}): "${t}".`;if(s)throw new nt(n);return F(n),t}function D3(e,t,s,n){let a=Object.create(null),i=new Map,o=[],r=new Set,l=0,f=Xn[l][0],c=Xn[l][1],h=u=>Xn[0][0]<=u&&u<=Xn[0][1]||Xn[1][0]<=u&&u<=Xn[1][1],m=null;for(let u in e){let d=e[u];if(!t(d))continue;if(f>c){if(l++,l>=Xn.length){F("Ran out of space in font private use area.");break}f=Xn[l][0],c=Xn[l][1]}let p=f++;d===0&&(d=s);let g=n.get(u);if(typeof g=="string")if(g.length===1)g=g.codePointAt(0);else{if(!m){m=new Map;for(let b=64256;b<=64335;b++){let w=String.fromCharCode(b).normalize("NFKD");w.length>1&&m.set(w,b)}}g=m.get(g)||g.codePointAt(0)}g&&!h(g)&&!r.has(d)&&(i.set(g,d),r.add(d)),a[p]=d,o[u]=p}return{toFontChar:o,charCodeToGlyphId:a,toUnicodeExtraMap:i,nextAvailableFontCharCode:f}}function O3(e,t,s){let n=(function(V,C,M){let J=[];for(let _ in V)V[_]>=M||J.push({fontCharCode:0|_,glyphId:V[_]});if(C)for(let[_,ht]of C)ht>=M||J.push({fontCharCode:_,glyphId:ht});J.length===0&&J.push({fontCharCode:0,glyphId:0}),J.sort((_,ht)=>_.fontCharCode-ht.fontCharCode);let et=[],U=J.length;for(let _=0;_<U;){let ht=J[_].fontCharCode,vt=[J[_].glyphId];++_;let G=ht;for(;_<U&&G+1===J[_].fontCharCode&&(vt.push(J[_].glyphId),++G,++_,G!==65535););et.push([ht,G,vt])}return et})(e,t,s),a=n.at(-1)[1]>65535,i,o,r,l;for(i=n.length-1;i>=0&&!(n[i][0]<=65535);--i);let f=i+1;n[i][0]<65535&&n[i][1]===65535&&(n[i][1]=65534);let c=n[i][1]<65535?1:0,h=f+c,m=_l.getSearchParams(h,2),u=2*f+2*c,d=new Ne({exactLength:u}),p=new Ne({exactLength:u}),g=new Ne({exactLength:u}),b=new Ne({exactLength:u}),w=new Ne({}),k=0,q=!1;for(i=0,o=f;i<o;i++){let[H,V,C]=n[i];d.setInt16(H),p.setInt16(V);let M=!0;for(r=1,l=C.length;r<l;++r)if(C[r]!==C[r-1]+1){M=!1;break}if(M){let J=C[0];g.setInt16(J-H&65535),b.skip(2)}else{let J=2*(h-i)+2*k;for(k+=V-H+1,g.skip(2),J>65535?(q=!0,b.skip(2)):b.setInt16(J),r=0,l=C.length;r<l;++r)w.setInt16(C[r])}}c>0&&(p.setArray([255,255]),d.setArray([255,255]),g.setArray([0,1]),b.skip(2));let y=new Ne({exactLength:12+d.length+p.length+g.length+b.length+w.length});y.skip(2),y.setInt16(2*h),y.setInt16(m.range),y.setInt16(m.entry),y.setInt16(m.rangeShift),y.setArray(p.data),y.skip(2),y.setArray(d.data),y.setArray(g.data),y.setArray(b.data),y.setArray(w.data);let v=!q&&y.length+4<=65535,A=a||!v,x=(v?1:0)+(A?1:0),I=null,B=null;if(A){I=new Ne({});for(let H of n){let V=H[0],C=H[2],M=C[0];for(r=1,l=C.length;r<l;++r)if(C[r]!==C[r-1]+1){let J=H[0]+r-1;I.setInt32(V),I.setInt32(J),I.setInt32(M),V=J+1,M=C[r]}I.setInt32(V),I.setInt32(H[1]),I.setInt32(M)}B=new Ne({exactLength:16}),B.setArray([0,12]),B.skip(2),B.setInt32(I.length+16),B.skip(4),B.setInt32(I.length/12)}let D=4+8*x,W=v?4+y.length:0,L=new Ne({exactLength:D});L.skip(2),L.setInt16(x);let ot=D;v&&(L.setArray([0,3]),L.setArray([0,1]),L.setInt32(ot),ot+=W),A&&(L.setArray([0,3]),L.setArray([0,10]),L.setInt32(ot));let P=new Ne({exactLength:L.length+W+(B?.length??0)+(I?.length??0)});return P.setArray(L.data),v&&(P.setArray([0,4]),P.setInt16(y.length+4),P.setArray(y.data)),A&&(P.setArray(B.data),P.setArray(I.data)),P.data}function N3(e,t,s){s||(s={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0});let n=0,a=0,i=0,o=0,r=null,l=0,f=-1;if(t){for(let w in t)if(w|=0,(r>w||!r)&&(r=w),l<w&&(l=w),f=gq(w,f),f<32)n|=1<<f;else if(f<64)a|=1<<f-32;else if(f<96)i|=1<<f-64;else{if(!(f<123))throw new nt("Unicode ranges Bits > 123 are reserved for internal usage");o|=1<<f-96}l>65535&&(l=65535)}else r=0,l=255;let c=e.bbox||[0,0,0,0],h=s.unitsPerEm||(e.fontMatrix?1/Math.max(...e.fontMatrix.slice(0,4).map(Math.abs)):1e3),m=e.ascentScaled?1:h/ci,u=s.ascent||Math.round(m*(e.ascent||c[3])),d=s.descent||Math.round(m*(e.descent||c[1]));d>0&&e.descent>0&&c[1]<0&&(d=-d);let p=s.yMax||u,g=-s.yMin||-d,b=new Ne({exactLength:96});return b.setArray([0,3]),b.setArray([2,36]),b.setArray([1,244]),b.setArray([0,5]),b.skip(2),b.setArray([2,138]),b.setArray([2,187]),b.skip(2),b.setArray([0,140]),b.setArray([2,138]),b.setArray([2,187]),b.skip(2),b.setArray([1,223]),b.setArray([0,49]),b.setArray([1,2]),b.skip(2),b.setArray([0,0,6,e.fixedPitch?9:0,0,0,0,0,0,0]),b.setInt32(n),b.setInt32(a),b.setInt32(i),b.setInt32(o),b.setArray([42,50,49,42]),b.setInt16(e.italicAngle?1:0),b.setInt16(r||e.firstChar),b.setInt16(l||e.lastChar),b.setInt16(u),b.setInt16(d),b.setArray([0,100]),b.setInt16(p),b.setInt16(g),b.skip(8),b.setInt16(e.xHeight),b.setInt16(e.capHeight),b.skip(2),b.setInt16(r||e.firstChar),b.setArray([0,3]),b.data}function _3(e){let t=new Ne({exactLength:32});return t.setArray([0,3,0,0]),t.setInt32(Math.floor(65536*e.italicAngle)),t.skip(4),t.setInt32(e.fixedPitch?1:0),t.skip(16),t.data}function Gq(e){return e.replaceAll(/[^\\x21-\\x7E]|[[\\](){}<>/%]/g,"").slice(0,63)}function f0(e,t){t||(t=[[],[]]);let s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||Gq(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],n=s.map(Ce),a=new Array(s.length),i,o,r,l,f;for(i=0,o=s.length;i<o;i++){f=t[1][i]||s[i];let w=new Ne({exactLength:2*f.length});for(r=0,l=f.length;r<l;r++)w.setInt16(f.charCodeAt(r));a[i]=w.data}let c=[n,a],h=[[0,1],[0,3]],m=[[0,0],[0,1]],u=[[0,0],[4,9]],d=[],p=0;for(i=0,o=h.length;i<o;i++){let w=c[i];for(r=0,l=w.length;r<l;r++){f=w[r];let k=new Ne({exactLength:6+h[i].length+m[i].length+u[i].length});k.setArray(h[i]),k.setArray(m[i]),k.setArray(u[i]),k.setInt16(r),k.setInt16(f.length),k.setInt16(p),d.push(k.data),p+=f.length}}let g=n.length*h.length,b=new Ne({exactLength:6+Math.sumPrecise(d.map(w=>w.length))+Math.sumPrecise(n.map(w=>w.length))+Math.sumPrecise(a.map(w=>w.length))});b.skip(2),b.setInt16(g),b.setInt16(12*g+6);for(let w of d)b.setArray(w);for(let w of n)b.setArray(w);for(let w of a)b.setArray(w);return b.data}var Mf,Er,zf,np,ah=class{constructor(t,s,n,a){at(this,zf);at(this,Mf,new Map);at(this,Er,new Map);Y(this,"charProcOperatorList");this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=a.disableFontFace,this.fontExtraProperties=a.fontExtraProperties,this.loadedName=n.loadedName,this.isType3Font=n.isType3Font,this.missingFile=!1,this.cssFontInfo=n.cssFontInfo;let i=!!(n.flags&h8);if(!i&&!n.isSimulatedFlags){let c=Nl(),h=Um(),m=B5();for(let u of t.split("+")){let d=Za(u);if(d=c[d]||h[d]||d,d=d.split("-",1)[0],m[d]){i=!0;break}}}this.isSerifFont=i,this.isSymbolicFont=!!(n.flags&el),this.isMonospace=!!(n.flags&f1);let{type:o,subtype:r}=n;this.type=o,this.subtype=r,this.systemFontInfo=n.systemFontInfo;let l=t.match(/^InvalidPDFjsFont_(.*)_\\d+$/);if(this.isInvalidPDFjsFont=!!l,this.isInvalidPDFjsFont?this.fallbackName=l[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",this.systemFontInfo?.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=`,${this.fallbackName}`),this.differences=n.differences,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.composite=n.composite,this.cMap=n.cMap,this.capHeight=n.capHeight/ci,this.ascent=n.ascent/ci,this.descent=n.descent/ci,this.lineHeight=this.ascent-this.descent,this.fontMatrix=n.fontMatrix,this.bbox=n.bbox,this.defaultEncoding=n.defaultEncoding,this.toUnicode=n.toUnicode,this.toFontChar=[],n.type==="Type3"){for(let c=0;c<256;c++)this.toFontChar[c]=this.differences[c]||n.defaultEncoding[c];return}if(this.cidEncoding=n.cidEncoding||"",this.vertical=!!n.vertical,this.vertical&&(this.vmetrics=n.vmetrics,this.defaultVMetrics=n.defaultVMetrics),!s||s.isEmpty){s&&F(\'Font file is empty in "\'+t+\'" (\'+this.loadedName+")"),this.fallbackToSystemFont(n);return}[o,r]=Wq(s,n),o===this.type&&r===this.subtype||ie(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${o}/${r}.`);let f;try{switch(o){case"MMType1":ie("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";let c=r==="Type1C"||r==="CIDFontType0C"?new sl(s,n):new ep(t,s,n);R3(n),f=this.convert(t,c,n);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",f=this.checkAndRepair(t,s,n),R3(n),this.isOpenType&&(o="OpenType");break;default:throw new nt(`Font ${o} is not supported`)}}catch(c){F(c),this.fallbackToSystemFont(n);return}F3(n),this.data=f,this.type=o,this.subtype=r,this.fontMatrix=n.fontMatrix,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.toUnicode=n.toUnicode,this.seacMap=n.seacMap}get renderer(){return yt(this,"renderer",tp.create(this,!0))}exportData(){return{buffer:Bq(N(this,zf,np).call(this,Eq)),charProcOperatorList:this.charProcOperatorList,extra:this.fontExtraProperties?N(this,zf,np).call(this,Kq):void 0}}fallbackToSystemFont(t){this.missingFile=!0;let{name:s,type:n}=this,a=Za(s),i=Nl(),o=Um(),r=!!i[a],l=!(!o[a]||!i[o[a]]);a=i[a]||o[a]||a;let f=Mq()[a];f&&(isNaN(this.ascent)&&(this.ascent=f.ascent/ci),isNaN(this.descent)&&(this.descent=f.descent/ci),isNaN(this.capHeight)&&(this.capHeight=f.capHeight/ci)),this.bold=/bold/i.test(a),this.italic=/oblique|italic/i.test(a),this.black=/Black/.test(s);let c=/Narrow/.test(s);if(this.remeasure=(!r||c)&&Object.keys(this.widths).length>0,(r||l)&&n==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){let h=t.cidToGidMap,m=[];if(/Trebuchet/i.test(s)?(or(m,Aq()),or(m,Iq())):(or(m,S3()),/Arial-?Black/i.test(s)?or(m,Cq()):/Calibri/i.test(s)&&or(m,Hq())),h){for(let u in m){let d=m[u];h[d]!==void 0&&(m[+u]=h[d])}h.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof Ds&&this.toUnicode.forEach(function(u,d){let p=m[u];h[p]===void 0&&(m[+u]=d)})}this.toUnicode instanceof Ds||this.toUnicode.forEach(function(u,d){m[+u]=d}),this.toFontChar=m,this.toUnicode=new ki(m)}else if(/Symbol/i.test(a)){let h=this.composite&&this.cidEncoding.startsWith("Identity-");this.toFontChar=o0(h?Vq():Mu,yn(),this.differences)}else if(/Dingbats/i.test(a))this.toFontChar=o0(H5,pq(),this.differences);else if(r||l){let h=o0(this.defaultEncoding,yn(),this.differences);n!=="CIDFontType2"||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof Ds||this.toUnicode.forEach(function(m,u){h[+m]=u}),this.toFontChar=h}else{let h=yn(),m=[];this.toUnicode.forEach((u,d)=>{if(!this.composite){let p=ho(this.differences[u]||this.defaultEncoding[u],h);p!==-1&&(d=p)}m[+u]=d}),this.composite&&this.toUnicode instanceof Ds&&/Tahoma|Verdana/i.test(s)&&or(m,S3()),this.toFontChar=m}F3(t),this.loadedName=a.split("-",1)[0]}checkAndRepair(t,s,n){let a=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function i(P,H){let V=Object.create(null);V["OS/2"]=null,V.cmap=null,V.head=null,V.hhea=null,V.hmtx=null,V.maxp=null,V.name=null,V.post=null;for(let C=0;C<H;C++){let M=o(P);a.includes(M.tag)&&M.length!==0&&(V[M.tag]=M)}return V}function o(P){let H=P.getString(4),V=P.getInt32()>>>0,C=P.getInt32()>>>0,M=P.getInt32()>>>0,J=P.pos;P.pos=P.start||0,P.skip(C);let et=P.getBytes(M);return P.pos=J,H==="head"&&(et[8]=et[9]=et[10]=et[11]=0,et[17]|=32),{tag:H,checksum:V,length:M,offset:C,data:et,view:H==="CFF "?null:new DataView(et.buffer,et.byteOffset,et.byteLength)}}function r(P){return{version:P.getString(4),numTables:P.getUint16(),searchRange:P.getUint16(),entrySelector:P.getUint16(),rangeShift:P.getUint16()}}function l(P,H,V,C,M,J){let et={length:0,sizeOfInstructions:0};if(H<0||H>=P.length||V>P.length||V-H<=12)return et;let U=P.subarray(H,V),_=vs(U[2],U[3]),ht=vs(U[4],U[5]),vt=vs(U[6],U[7]),G=vs(U[8],U[9]);_>vt&&(Io(U,2,vt),Io(U,6,_)),ht>G&&(Io(U,4,G),Io(U,8,ht));let It=vs(U[0],U[1]);if(It<0)return It<-1||(C.set(U,M),et.length=U.length),et;let jt,kt=10,Ft=0;for(jt=0;jt<It;jt++)Ft=(U[kt]<<8|U[kt+1])+1,kt+=2;let mt=kt,ct=U[kt]<<8|U[kt+1];et.sizeOfInstructions=ct,kt+=2+ct;let tt=kt,lt=0;for(jt=0;jt<Ft;jt++){let pt=U[kt++];192&pt&&(U[kt-1]=63&pt);let Nt=2;2&pt?Nt=1:16&pt&&(Nt=0);let Dt=2;4&pt?Dt=1:32&pt&&(Dt=0);let Tt=Nt+Dt;if(lt+=Tt,8&pt){let qt=U[kt++];qt===0&&(U[kt-1]^=8),jt+=qt,lt+=qt*Tt}}if(lt===0)return et;let Z=kt+lt;return Z>U.length?et:!J&&ct>0?(C.set(U.subarray(0,mt),M),C.set([0,0],M+mt),C.set(U.subarray(tt,Z),M+mt+2),Z-=ct,U.length-Z>3&&(Z=Z+3&-4),et.length=Z,et):U.length-Z>3?(Z=Z+3&-4,C.set(U.subarray(0,Z),M),et.length=Z,et):(C.set(U,M),et.length=U.length,et)}function f(P){let H=(s.start||0)+P.offset;s.pos=H;let V=[[],[]],C=[],M=P.length,J=H+M;if(s.getUint16()!==0||M<6)return[V,C];let et=s.getUint16(),U=s.getUint16(),_,ht;for(_=0;_<et&&s.pos+12<=J;_++){let vt={platform:s.getUint16(),encoding:s.getUint16(),language:s.getUint16(),name:s.getUint16(),length:s.getUint16(),offset:s.getUint16()};($q(vt)||z3(vt))&&C.push(vt)}for(_=0,ht=C.length;_<ht;_++){let vt=C[_];if(vt.length<=0)continue;let G=H+U+vt.offset;if(G+vt.length>J)continue;s.pos=G;let It=vt.name;if(vt.encoding){let jt="";for(let kt=0,Ft=vt.length;kt<Ft;kt+=2)jt+=String.fromCharCode(s.getUint16());V[1][It]=jt}else V[0][It]=s.getString(vt.length)}return[V,C]}let c=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function h(P,H){let V,C,M,J,et,U=P.data,_=0,ht=0,vt=0,G=[],It=[],jt=[],kt=H.tooComplexToFollowFunctions,Ft=!1,mt=0,ct=0;for(let lt=U.length;_<lt;){let Z=U[_++];if(Z===64)if(C=U[_++],Ft||ct)_+=C;else for(V=0;V<C;V++)G.push(U[_++]);else if(Z===65)if(C=U[_++],Ft||ct)_+=2*C;else for(V=0;V<C;V++)M=U[_++],G.push(vs(M,U[_++]));else if((248&Z)==176)if(C=Z-176+1,Ft||ct)_+=C;else for(V=0;V<C;V++)G.push(U[_++]);else if((248&Z)==184)if(C=Z-184+1,Ft||ct)_+=2*C;else for(V=0;V<C;V++)M=U[_++],G.push(vs(M,U[_++]));else if(Z!==43||kt)if(Z!==44||kt){if(Z===45)if(Ft)Ft=!1,ht=_;else{if(et=It.pop(),!et){F("TT: ENDF bad stack"),H.hintsValid=!1;return}J=jt.pop(),U=et.data,_=et.i,H.functionsStackDeltas[J]=G.length-et.stackTop}else if(Z===137)(Ft||ct)&&(F("TT: nested IDEFs not allowed"),kt=!0),Ft=!0,vt=_;else if(Z===88)++mt;else if(Z===27)ct=mt;else if(Z===89)ct===mt&&(ct=0),--mt;else if(Z===28&&!Ft&&!ct){let pt=G.at(-1);pt>0&&(_+=pt-1)}}else(Ft||ct)&&(F("TT: nested FDEFs not allowed"),kt=!0),Ft=!0,vt=_,J=G.pop(),H.functionsDefined[J]={data:U,i:_};else if(!Ft&&!ct){if(J=G.at(-1),isNaN(J))ie("TT: CALL empty stack (or invalid entry).");else if(H.functionsUsed[J]=!0,J in H.functionsStackDeltas){let pt=G.length+H.functionsStackDeltas[J];if(pt<0){F("TT: CALL invalid functions stack delta."),H.hintsValid=!1;return}G.length=pt}else if(J in H.functionsDefined&&!jt.includes(J)){if(It.push({data:U,i:_,stackTop:G.length-1}),jt.push(J),et=H.functionsDefined[J],!et){F("TT: CALL non-existent function"),H.hintsValid=!1;return}U=et.data,_=et.i}}if(!Ft&&!ct){let pt=0;for(Z<=142?pt=c[Z]:Z>=192&&Z<=223?pt=-1:Z>=224&&(pt=-2),Z>=113&&Z<=117&&(C=G.pop(),isNaN(C)||(pt=2*-C));pt<0&&G.length>0;)G.pop(),pt++;for(;pt>0;)G.push(NaN),pt--}}H.tooComplexToFollowFunctions=kt;let tt=[U];_>U.length&&tt.push(new Uint8Array(_-U.length)),vt>ht&&(F("TT: complementing a missing function tail"),tt.push(new Uint8Array([34,45]))),(function(Z,pt){if(pt.length>1){let Nt,Dt,Tt=0;for(Nt=0,Dt=pt.length;Nt<Dt;Nt++)Tt+=pt[Nt].length;Tt=Tt+3&-4;let qt=new Uint8Array(Tt),bt=0;for(Nt=0,Dt=pt.length;Nt<Dt;Nt++)qt.set(pt[Nt],bt),bt+=pt[Nt].length;Z.data=qt,Z.length=Tt}})(P,tt)}let m,u;if(b8(s=new ke(new Uint8Array(s.getBytes())))){let P=(function(V,C){let{numFonts:M,offsetTable:J}=(function(ht){let vt=ht.getString(4);Ae(vt==="ttcf","Must be a TrueType Collection font.");let G=ht.getUint16(),It=ht.getUint16(),jt=ht.getInt32()>>>0,kt=[];for(let mt=0;mt<jt;mt++)kt.push(ht.getInt32()>>>0);let Ft={ttcTag:vt,majorVersion:G,minorVersion:It,numFonts:jt,offsetTable:kt};switch(G){case 1:return Ft;case 2:return Ft.dsigTag=ht.getInt32()>>>0,Ft.dsigLength=ht.getInt32()>>>0,Ft.dsigOffset=ht.getInt32()>>>0,Ft}throw new nt(`Invalid TrueType Collection majorVersion: ${G}.`)})(V),et=C.split("+"),U;for(let _=0;_<M;_++){V.pos=(V.start||0)+J[_];let ht=r(V),vt=i(V,ht.numTables);if(!vt.name)throw new nt(\'TrueType Collection font must contain a "name" table.\');let[G]=f(vt.name);for(let It of G)for(let jt of It){let kt=jt?.replaceAll(/\\s/g,"");if(kt){if(kt===C)return{header:ht,tables:vt};if(!(et.length<2))for(let Ft of et)kt===Ft&&(U={name:Ft,header:ht,tables:vt})}}}if(U)return F(`TrueType Collection does not contain "${C}" font, falling back to "${U.name}" font instead.`),{header:U.header,tables:U.tables};throw new nt(`TrueType Collection does not contain "${C}" font.`)})(s,this.name);m=P.header,u=P.tables}else m=r(s),u=i(s,m.numTables);let d=!u["CFF "],p,g=null;if(d){if(!u.loca)throw new nt(\'Required "loca" table is not found\');u.glyf||(F(\'Required "glyf" table is not found -- trying to recover.\'),u.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{try{g=new Fl(new ke(u["CFF "].data),n,!0).parse()}catch{F("Failed to parse font "+n.loadedName)}if(m.version==="OTTO"&&(!n.composite||n.fontFileN==="FontFile3"&&g?.isCIDFont)||!u.head||!u.hhea||!u.maxp||!u.post)return this.convert(t,new sl(new ke(u["CFF "].data),n),n);delete u.glyf,delete u.loca,delete u.fpgm,delete u.prep,delete u["cvt "],this.isOpenType=!0}if(!u.maxp)throw new nt(\'Required "maxp" table is not found\');if(g)try{g.duplicateFirstGlyph(),u["CFF "].data=new Ol(g).compile(),p=g.charStringCount}catch{F("Failed to compile font "+n.loadedName)}s.pos=(s.start||0)+u.maxp.offset;let b=s.getInt32(),w=p??s.getUint16();if(b===20480&&u.maxp.length!==6&&(u.maxp.data=u.maxp.data.subarray(0,6),u.maxp.length=6),b!==65536&&b!==20480){if(u.maxp.length===6)b=20480;else{if(!(u.maxp.length>=32))throw new nt(\'"maxp" table has a wrong version number\');b=65536}M3(u.maxp.data,0,b)}let k=Ao(u.head.data[50],u.head.data[51]);if(u.loca){let P=k?4*(w+1):2*(w+1);if(u.loca.length!==P){F("Incorrect \'loca\' table length -- attempting to fix it.");let H=Object.values(u).filter(Boolean).sort((M,J)=>M.offset-J.offset),V=H.indexOf(u.loca),C=H[V+1]||null;if(C&&u.loca.offset+P<C.offset){let M=s.pos;s.pos=s.start||0,s.skip(u.loca.offset),u.loca.data=s.getBytes(P),u.loca.length=P,s.pos=M}}}if(n.scaleFactors?.length===w&&d){let{scaleFactors:P}=n,H=new Em({glyfTable:u.glyf.data,isGlyphLocationsLong:k,locaTable:u.loca.data,numGlyphs:w});H.scale(P);let{glyf:V,loca:C,isLocationLong:M}=H.write();u.glyf.data=V,u.loca.data=C,M!==!!k&&(u.head.data[50]=0,k=u.head.data[51]=M?1:0);let J=u.hmtx.data;for(let et=0;et<w;et++){let U=4*et,_=Math.round(P[et]*Ao(J[U],J[U+1]));J[U]=_>>8&255,J[U+1]=255&_,Io(J,U+2,Math.round(P[et]*vs(J[U+2],J[U+3])))}}let q=w+1,y=!0;q>65535&&(y=!1,q=w,F("Not enough space in glyfs to duplicate first glyph."));let v=0,A=0;if(b>=65536&&u.maxp.length>=32)s.pos+=8,s.getUint16()>2&&(u.maxp.data[14]=0,u.maxp.data[15]=2),s.pos+=4,v=s.getUint16(),s.pos+=4,A=s.getUint16();else if(d&&b===20480){let P=new Uint8Array(32);M3(P,0,65536),P[4]=w>>8&255,P[5]=255&w,P.fill(255,6,14),P[15]=2,P[28]=255,P[29]=255,P[31]=16,u.maxp.data=P,u.maxp.length=32,b=65536}u.maxp.data[4]=q>>8,u.maxp.data[5]=255&q;let x=(function(H,V,C,M){let J={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(H&&h(H,J),V&&h(V,J),H&&(function(U,_){if(!U.tooComplexToFollowFunctions)if(U.functionsDefined.length>_)F("TT: more functions defined than expected"),U.hintsValid=!1;else for(let ht=0,vt=U.functionsUsed.length;ht<vt;ht++){if(ht>_){F("TT: invalid function id: "+ht),U.hintsValid=!1;return}if(U.functionsUsed[ht]&&!U.functionsDefined[ht]){F("TT: undefined function: "+ht),U.hintsValid=!1;return}}})(J,M),C&&1&C.length){let et=new Uint8Array(C.length+1);et.set(C.data),C.data=et}return J.hintsValid})(u.fpgm,u.prep,u["cvt "],v);if(x||(delete u.fpgm,delete u.prep,delete u["cvt "]),(function(H,V,C,M,J,et){if(!V){C&&(C.data=null);return}H.pos=(H.start||0)+V.offset,H.pos+=4,H.pos+=2,H.pos+=2,H.pos+=2,H.pos+=2,H.pos+=2,H.pos+=2,H.pos+=2,H.pos+=2,H.pos+=2;let U=H.getUint16();H.pos+=8,H.pos+=2;let _=H.getUint16();U!==0&&(2&Ao(M.data[44],M.data[45])||(V.data[22]=0,V.data[23]=0)),_>J&&(ie(`The numOfMetrics (${_}) should not be greater than the numGlyphs (${J}).`),_=J,V.data[34]=(65280&_)>>8,V.data[35]=255&_);let ht=J-_-(C.length-4*_>>1);if(ht>0){let vt=new Uint8Array(C.length+2*ht);vt.set(C.data),et&&(vt[C.length]=C.data[2],vt[C.length+1]=C.data[3]),C.data=vt}})(s,u.hhea,u.hmtx,u.head,q,y),!u.head)throw new nt(\'Required "head" table is not found\');(function(H,V,C){let{data:M,view:J}=H,et=J.getInt32(0);et>>16!=1&&(ie("Attempting to fix invalid version in head table: "+et),J.setInt32(0,65536));let U=vs(M[50],M[51]);if(U<0||U>1){ie("Attempting to fix invalid indexToLocFormat in head table: "+U);let _=V+1;if(C===_<<1)M[50]=0,M[51]=0;else{if(C!==_<<2)throw new nt("Could not fix indexToLocFormat: "+U);M[50]=0,M[51]=1}}})(u.head,w,d?u.loca.length:0);let I=Object.create(null);if(d){let P=(function(V,C,M,J,et,U,_){let ht,vt,G;J?(ht=4,vt=function(bt,Pt){return bt[Pt]<<24|bt[Pt+1]<<16|bt[Pt+2]<<8|bt[Pt+3]},G=function(bt,Pt,le){bt[Pt]=le>>>24&255,bt[Pt+1]=le>>16&255,bt[Pt+2]=le>>8&255,bt[Pt+3]=255&le}):(ht=2,vt=function(bt,Pt){return bt[Pt]<<9|bt[Pt+1]<<1},G=function(bt,Pt,le){bt[Pt]=le>>9&255,bt[Pt+1]=le>>1&255});let It=U?M+1:M,jt=ht*(1+It),kt=new Uint8Array(jt);kt.set(V.data.subarray(0,jt)),V.data=kt;let Ft=C.data,mt=Ft.length,ct=new Uint8Array(mt),tt,lt,Z=[];for(tt=0,lt=0;tt<M+1;tt++,lt+=ht){let qt=vt(kt,lt);qt>mt&&(qt=mt),Z.push({index:tt,offset:qt,endOffset:0})}for(Z.sort((qt,bt)=>qt.offset-bt.offset),tt=0;tt<M;tt++)Z[tt].endOffset=Z[tt+1].offset;for(Z.sort((qt,bt)=>qt.index-bt.index),tt=0;tt<M;tt++){let{offset:qt,endOffset:bt}=Z[tt];if(qt!==0||bt!==0)break;let Pt=Z[tt+1].offset;if(Pt!==0){Z[tt].endOffset=Pt;break}}let pt=Z.at(-2);pt.offset!==0&&pt.endOffset===0&&(pt.endOffset=mt);let Nt=(function(bt,Pt,le){let Kt=new DataView(bt.buffer,bt.byteOffset,bt.byteLength),j=new Array(le);for(let $=0;$<le;$++){let K=Pt[$].offset,wt=Math.min(Pt[$].endOffset,Kt.byteLength);if(wt-K<=Tr||Kt.getInt16(K)>=0)continue;let Rt=[],_t=K+Tr;for(;_t+4<=wt;){let zt=Kt.getUint16(_t),Mt=Kt.getUint16(_t+2),St=4+(1&zt?4:2);if(8&zt?St+=2:64&zt?St+=4:128&zt&&(St+=8),Rt.push({gid:Mt,offset:_t,size:St,flags:zt}),_t+=St,!(32&zt))break}Rt.length&&(j[$]=Rt)}let z=new Uint8Array(le),E=new Map;for(let $=0;$<le;$++){if(z[$]!==0||!j[$])continue;let K=[{node:$,idx:0}];for(z[$]=1;K.length>0;){let wt=K.at(-1),Rt=j[wt.node];if(!Rt||wt.idx>=Rt.length){z[wt.node]=2,K.pop();continue}let _t=wt.idx++,zt=Rt[_t].gid;zt>=le||z[zt]===2||(z[zt]!==0?E.getOrInsertComputed(wt.node,R4).add(_t):(z[zt]=1,K.push({node:zt,idx:0})))}}let X=new Set;for(let[$,K]of E){let wt=j[$],Rt=[];for(let St=0;St<wt.length;St++)K.has(St)||Rt.push(wt[St]);if(Rt.length===0){X.add($);continue}let _t=Pt[$].offset,zt=Math.min(Pt[$].endOffset,Kt.byteLength),Mt=_t+Tr;for(let St=0;St<Rt.length;St++){let Wt=Rt[St],ne=St===Rt.length-1,Gt=-257&Wt.flags;Gt=ne?-33&Gt:32|Gt,Mt!==Wt.offset&&bt.copyWithin(Mt,Wt.offset,Wt.offset+Wt.size),Kt.setUint16(Mt,Gt),Mt+=Wt.size}Mt<zt&&bt.fill(0,Mt,zt)}return X})(Ft,Z,M),Dt=Object.create(null),Tt=0;for(G(kt,0,Tt),tt=0,lt=ht;tt<M;tt++,lt+=ht){let qt=Nt.has(tt)?{length:0,sizeOfInstructions:0}:l(Ft,Z[tt].offset,Z[tt].endOffset,ct,Tt,et),bt=qt.length;bt===0&&(Dt[tt]=!0),qt.sizeOfInstructions>_&&(_=qt.sizeOfInstructions),Tt+=bt,G(kt,lt,Tt)}if(Tt===0){let qt=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(tt=0,lt=ht;tt<It;tt++,lt+=ht)G(kt,lt,qt.length);C.data=qt}else if(U){let qt=vt(kt,ht);ct.length>qt+Tt?C.data=ct.subarray(0,qt+Tt):(C.data=new Uint8Array(qt+Tt),C.data.set(ct.subarray(0,Tt))),C.data.set(ct.subarray(0,qt),Tt),G(V.data,kt.length-ht,Tt+qt)}else C.data=ct.subarray(0,Tt);return{missingGlyphs:Dt,maxSizeOfInstructions:_}})(u.loca,u.glyf,w,k,x,y,A);I=P.missingGlyphs,b>=65536&&u.maxp.length>=32&&(u.maxp.data[26]=P.maxSizeOfInstructions>>8,u.maxp.data[27]=255&P.maxSizeOfInstructions)}if(!u.hhea)throw new nt(\'Required "hhea" table is not found\');u.hhea.data[10]===0&&u.hhea.data[11]===0&&(u.hhea.data[10]=255,u.hhea.data[11]=255);let B={unitsPerEm:Ao(u.head.data[18],u.head.data[19]),yMax:vs(u.head.data[42],u.head.data[43]),yMin:vs(u.head.data[38],u.head.data[39]),ascent:vs(u.hhea.data[4],u.hhea.data[5]),descent:vs(u.hhea.data[6],u.hhea.data[7]),lineGap:vs(u.hhea.data[8],u.hhea.data[9])};this.ascent=B.ascent/B.unitsPerEm,this.descent=B.descent/B.unitsPerEm,this.lineGap=B.lineGap/B.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,u.post&&(function(H,V,C){let M=(s.start||0)+H.offset;s.pos=M;let J=M+H.length,et=s.getInt32();s.skip(28);let U,_,ht=!0;switch(et){case 65536:U=Y1;break;case 131072:let vt=s.getUint16();if(vt!==C){ht=!1;break}let G=[];for(_=0;_<vt;++_){let jt=s.getUint16();if(jt>=32768){ht=!1;break}G.push(jt)}if(!ht)break;let It=[];for(;s.pos<J;){let jt=s.getByte(),kt=s.getString(jt);It.push(kt)}for(U=[],_=0;_<vt;++_){let jt=G[_];jt<258?U.push(Y1[jt]):U.push(It[jt-258])}break;case 196608:break;default:F("Unknown/unsupported post table version "+et),ht=!1,V.defaultEncoding&&(U=V.defaultEncoding)}return V.glyphNames=U,ht})(u.post,n,w),u.post={tag:"post",data:_3(n)};let D=Object.create(null);function W(P){return!I[P]}if(n.composite){let P=n.cidToGidMap||[],H=P.length===0;n.cMap.forEach(function(V,C){if(typeof C=="string"&&(C=l0(V,C,!0)),C>65535)throw new nt("Max size of CID is 65,535");let M=-1;H?M=C:P[C]!==void 0&&(M=P[C]),M>=0&&M<w&&W(M)&&(D[V]=M)})}else{let P=(function(U,_,ht,vt){if(!U)return F("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let G,It=(_.start||0)+U.offset;_.pos=It,_.skip(2);let jt=_.getUint16(),kt,Ft=!1;for(let Dt=0;Dt<jt;Dt++){let Tt=_.getUint16(),qt=_.getUint16(),bt=_.getInt32()>>>0,Pt=!1;if(kt?.platformId!==Tt||kt?.encodingId!==qt){if(Tt!==0||qt!==0&&qt!==1&&qt!==3)if(Tt===1&&qt===0)Pt=!0;else if(Tt!==3||qt!==1||!vt&&kt){if(ht&&Tt===3&&qt===0){Pt=!0;let le=!0;if(Dt<jt-1){let Kt=_.peekBytes(2);Ao(Kt[0],Kt[1])<Tt&&(le=!1)}le&&(Ft=!0)}}else Pt=!0,ht||(Ft=!0);else Pt=!0;if(Pt&&(kt={platformId:Tt,encodingId:qt,offset:bt}),Ft)break}}if(kt&&(_.pos=It+kt.offset),!kt||_.peekByte()===-1)return F("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let mt=_.getUint16(),ct=!1,tt=[],lt,Z;if(mt===0){for(_.skip(4),lt=0;lt<256;lt++){let Dt=_.getByte();Dt&&tt.push({charCode:lt,glyphId:Dt})}ct=!0}else if(mt===2){_.skip(4);let Dt=[],Tt=0;for(let bt=0;bt<256;bt++){let Pt=_.getUint16()>>3;Dt.push(Pt),Tt=Math.max(Pt,Tt)}let qt=[];for(let bt=0;bt<=Tt;bt++)qt.push({firstCode:_.getUint16(),entryCount:_.getUint16(),idDelta:vs(_.getByte(),_.getByte()),idRangePos:_.pos+_.getUint16()});for(let bt=0;bt<256;bt++)if(Dt[bt]===0)_.pos=qt[0].idRangePos+2*bt,Z=_.getUint16(),tt.push({charCode:bt,glyphId:Z});else{let Pt=qt[Dt[bt]];for(lt=0;lt<Pt.entryCount;lt++){let le=(bt<<8)+lt+Pt.firstCode;_.pos=Pt.idRangePos+2*lt,Z=_.getUint16(),Z!==0&&(Z=(Z+Pt.idDelta)%65536),tt.push({charCode:le,glyphId:Z})}}}else if(mt===4){_.skip(4);let Dt=_.getUint16()>>1;_.skip(6);let Tt=[],qt;for(qt=0;qt<Dt;qt++)Tt.push({end:_.getUint16()});for(_.skip(2),qt=0;qt<Dt;qt++)Tt[qt].start=_.getUint16();for(qt=0;qt<Dt;qt++)Tt[qt].delta=_.getUint16();let bt,Pt=0;for(qt=0;qt<Dt;qt++){G=Tt[qt];let Kt=_.getUint16();Kt?(bt=(Kt>>1)-(Dt-qt),G.offsetIndex=bt,Pt=Math.max(Pt,bt+G.end-G.start+1)):G.offsetIndex=-1}let le=[];for(lt=0;lt<Pt;lt++)le.push(_.getUint16());for(qt=0;qt<Dt;qt++){G=Tt[qt],It=G.start;let Kt=G.end,j=G.delta;for(bt=G.offsetIndex,lt=It;lt<=Kt;lt++)lt!==65535&&(Z=bt<0?lt:le[bt+lt-It],Z=Z+j&65535,tt.push({charCode:lt,glyphId:Z}))}}else if(mt===6){_.skip(4);let Dt=_.getUint16(),Tt=_.getUint16();for(lt=0;lt<Tt;lt++){Z=_.getUint16();let qt=Dt+lt;tt.push({charCode:qt,glyphId:Z})}}else{if(mt!==12)return F("cmap table has unsupported format: "+mt),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};{_.skip(10);let Dt=_.getInt32()>>>0;for(lt=0;lt<Dt;lt++){let Tt=_.getInt32()>>>0,qt=_.getInt32()>>>0,bt=_.getInt32()>>>0;for(let Pt=Tt;Pt<=qt;Pt++)tt.push({charCode:Pt,glyphId:bt++})}}}let pt=[],Nt=new Set;for(let Dt of tt){let{charCode:Tt}=Dt;Nt.has(Tt)||(Nt.add(Tt),pt.push(Dt))}return{platformId:kt.platformId,encodingId:kt.encodingId,mappings:pt.sort((Dt,Tt)=>Dt.charCode-Tt.charCode),hasShortCmap:ct}})(u.cmap,s,this.isSymbolicFont,n.hasEncoding),H=P.platformId,V=P.encodingId,C=P.mappings,M=[],J=!1;if(!n.hasEncoding||n.baseEncodingName!=="MacRomanEncoding"&&n.baseEncodingName!=="WinAnsiEncoding"||(M=Rl(n.baseEncodingName)),n.hasEncoding&&!this.isSymbolicFont&&(H===3&&V===1||H===1&&V===0)){let et=yn();for(let U=0;U<256;U++){let _;if(_=this.differences[U]!==void 0?this.differences[U]:M.length&&M[U]!==""?M[U]:ma[U],!_)continue;let ht=u8(_,et),vt;if(H===3&&V===1?vt=et[ht]:H===1&&V===0&&(vt=C5.indexOf(ht)),vt===void 0){if(!n.glyphNames&&n.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof Ds)){let G=this.toUnicode.get(U);G&&(vt=G.codePointAt(0))}if(vt===void 0)continue}for(let G of C)if(G.charCode===vt){D[U]=G.glyphId;break}}}else if(H===0){for(let et of C)D[et.charCode]=et.glyphId;J=!0}else if(H===3&&V===0)for(let et of C){let U=et.charCode;U>=61440&&U<=61695&&(U&=255),D[U]=et.glyphId}else for(let et of C)D[et.charCode]=et.glyphId;if(n.glyphNames&&(M.length||this.differences.length))for(let et=0;et<256;++et){if(!J&&D[et]!==void 0)continue;let U=this.differences[et]||M[et];if(!U)continue;let _=n.glyphNames.indexOf(U);_>0&&W(_)&&(D[et]=_)}!n.isInternalFont&&D[0]===void 0&&W(0)&&(D[0]=0)}D.length===0&&(D[0]=0);let L=y?q-1:0;if(!n.cssFontInfo){let P=D3(D,W,L,this.toUnicode);this.toFontChar=P.toFontChar,u.cmap={tag:"cmap",data:O3(P.charCodeToGlyphId,P.toUnicodeExtraMap,q)},u["OS/2"]&&(function(V,C){C.pos=(C.start||0)+V.offset;let M=C.getUint16(),J=[78,86,96,96,96,100][M];if(J===void 0||V.length<J)return!1;C.skip(60);let et=C.getUint16();return M<4&&768&et||C.getUint16()>C.getUint16()||(C.skip(6),C.getUint16()===0)?!1:(V.data[8]=V.data[9]=0,!0)})(u["OS/2"],s)||(u["OS/2"]={tag:"OS/2",data:N3(n,P.charCodeToGlyphId,B)})}if(u.name){let[P,H]=f(u.name);u.name.data=f0(t,P),this.psName=P[0][6]||null,n.composite||(function(C,M,J){if(C.isInternalFont||C.hasIncludedToUnicodeMap||C.hasEncoding||C.toUnicode instanceof Ds||!M||J.length===0||C.defaultEncoding===Tl)return;for(let ht of J)if(!z3(ht))return;let et=Tl,U=[],_=yn();for(let ht in et){let vt=et[ht];if(vt==="")continue;let G=_[vt];G!==void 0&&(U[ht]=String.fromCharCode(G))}U.length>0&&C.toUnicode.amend(U)})(n,this.isSymbolicFont,H)}else u.name={tag:"name",data:f0(this.name)};let ot=new _l(m.version);for(let P in u)ot.addTable(P,u[P].data);return ot.toArray()}convert(t,s,n){n.fixedPitch=!1,n.builtInEncoding&&(function(g,b){if(g.isInternalFont||g.hasIncludedToUnicodeMap||b===g.defaultEncoding||g.toUnicode instanceof Ds)return;let w=[],k=yn();for(let q in b){if(g.hasEncoding&&(g.baseEncodingName||g.differences[q]!==void 0))continue;let y=ho(b[q],k);y!==-1&&(w[q]=String.fromCharCode(y))}w.length>0&&g.toUnicode.amend(w)})(n,n.builtInEncoding);let a=s instanceof sl?s.numGlyphs-1:1,i=s.getGlyphMapping(n),o=null,r=i,l=null;n.cssFontInfo||(o=D3(i,s.hasGlyphId.bind(s),a,this.toUnicode),this.toFontChar=o.toFontChar,r=o.charCodeToGlyphId,l=o.toUnicodeExtraMap);let f=s.numGlyphs;function c(p,g){let b=null;for(let w in p)g===p[w]&&(b||(b=[])).push(0|w);return b}function h(p,g){for(let b in p)if(g===p[b])return 0|b;return o.charCodeToGlyphId[o.nextAvailableFontCharCode]=g,o.nextAvailableFontCharCode++}let m=s.seacs;if(o&&m?.length){let p=n.fontMatrix||Ri,g=s.getCharset(),b=Object.create(null);for(let w in m){w|=0;let k=m[w],q=ma[k[2]],y=ma[k[3]],v=g.indexOf(q),A=g.indexOf(y);if(v<0||A<0)continue;let x={x:k[0]*p[0]+k[1]*p[2]+p[4],y:k[0]*p[1]+k[1]*p[3]+p[5]},I=c(i,w);if(I)for(let B of I){let D=o.charCodeToGlyphId,W=h(D,v),L=h(D,A);b[B]={baseFontCharCode:W,accentFontCharCode:L,accentOffset:x}}}n.seacMap=b}let u=n.fontMatrix?1/Math.max(...n.fontMatrix.slice(0,4).map(Math.abs)):1e3,d=new _l("OTTO");return d.addTable("CFF ",s.data),d.addTable("OS/2",N3(n,r)),d.addTable("cmap",O3(r,l,f)),d.addTable("head",(function(){let g=[0,0,0,0,158,11,126,39],b=new Ne({exactLength:54});return b.setArray([0,1,0,0]),b.setArray([0,0,16,0]),b.skip(4),b.setArray([95,15,60,245]),b.skip(2),b.setSafeInt16(u),b.setArray(g),b.setArray(g),b.skip(2),b.setSafeInt16(n.descent),b.setArray([15,255]),b.setSafeInt16(n.ascent),b.setInt16(n.italicAngle?2:0),b.setArray([0,17]),b.skip(6),b.data})()),d.addTable("hhea",(function(){let g=new Ne({exactLength:36});return g.setArray([0,1,0,0]),g.setSafeInt16(n.ascent),g.setSafeInt16(n.descent),g.skip(2),g.setArray([255,255]),g.skip(6),g.setSafeInt16(n.capHeight),g.setSafeInt16(Math.tan(n.italicAngle)*n.xHeight),g.skip(12),g.setInt16(f),g.data})()),d.addTable("hmtx",(function(){let g=s.charstrings,b=s.cff?.widths??null,w=new Ne({exactLength:4*f});w.skip(4);for(let k=1,q=f;k<q;k++){let y=0;g?y=g[k-1].width||0:b&&(y=Math.ceil(b[k]||0)),w.setInt16(y),w.skip(2)}return w.data})()),d.addTable("maxp",(function(){let g=new Ne({exactLength:6});return g.setArray([0,0,80,0]),g.setInt16(f),g.data})()),d.addTable("name",f0(t)),d.addTable("post",_3(n)),d.toArray()}get _spaceWidth(){let t=["space","minus","one","i","I"],s;for(let n of t){if(n in this.widths){s=this.widths[n];break}let a=yn()[n],i=0;if(this.composite&&this.cMap.contains(a)&&(i=this.cMap.lookup(a),typeof i=="string"&&(i=l0(a,i))),!i&&this.toUnicode&&(i=this.toUnicode.charCodeOf(a)),i<=0&&(i=a),s=this.widths[i],s)break}return yt(this,"_spaceWidth",s||this.defaultWidth)}_charToGlyph(t,s=!1){let n,a,i,o=S(this,Er).get(t);if(o?.isSpace===s)return o;let r=t;this.cMap?.contains(t)&&(r=this.cMap.lookup(t),typeof r=="string"&&(r=l0(t,r))),a=this.widths[r],typeof a!="number"&&(a=this.defaultWidth);let l=this.vmetrics?.[r]||this.defaultVMetrics,f=this.toUnicode.get(t)||t;typeof f=="number"&&(f=String.fromCharCode(f));let c=this.toFontChar[t]!==void 0;if(n=this.toFontChar[t]||t,this.missingFile){let u=this.differences[t]||this.defaultEncoding[t];(u===".notdef"||u==="")&&this.type==="Type1"&&(n=32,u===""&&(a||(a=this._spaceWidth),f=String.fromCharCode(n))),n=(function(p){return p>=65520&&p<=65535?0:p>=62976&&p<=63743?dq()[p]||p:p===173?45:p})(n)}this.isType3Font&&(i=n);let h=null;if(this.seacMap?.[t]){c=!0;let u=this.seacMap[t];n=u.baseFontCharCode,h={fontChar:String.fromCodePoint(u.accentFontCharCode),offset:u.accentOffset}}let m="";if(typeof n=="number"&&(n<=1114111?m=String.fromCodePoint(n):F(`charToGlyph - invalid fontCharCode: ${n}`)),this.missingFile&&this.vertical&&m.length===1){let u=wq()[m.charCodeAt(0)];u&&(m=f=String.fromCharCode(u))}return o=new sp(t,m,f,h,a,l,i,s,c),S(this,Er).set(t,o),o}charsToGlyphs(t){let s=S(this,Mf).get(t);if(s)return s;if(s=[],this.cMap){let n=Object.create(null),a=t.length,i=0;for(;i<a;){this.cMap.readCharCode(t,i,n);let{charcode:o,length:r}=n;i+=r;let l=this._charToGlyph(o,r===1&&t.charCodeAt(i-1)===32);s.push(l)}}else for(let n=0,a=t.length;n<a;++n){let i=t.charCodeAt(n),o=this._charToGlyph(i,i===32);s.push(o)}return S(this,Mf).set(t,s),s}getCharPositions(t){let s=[];if(this.cMap){let n=Object.create(null),a=0;for(;a<t.length;){this.cMap.readCharCode(t,a,n);let i=n.length;s.push([a,a+i]),a+=i}}else for(let n=0,a=t.length;n<a;++n)s.push([n,n+1]);return s}get glyphCacheValues(){return S(this,Er).values()}encodeString(t){let s=[],n=[],a=()=>s.length%2==1,i=this.toUnicode instanceof Ds?o=>this.toUnicode.charCodeOf(o):o=>this.toUnicode.charCodeOf(String.fromCodePoint(o));for(let o=0,r=t.length;o<r;o++){let l=t.codePointAt(o);if(l>65535&&o++,this.toUnicode){let f=i(l);if(f!==-1){a()&&(s.push(n.join("")),n.length=0);for(let c=(this.cMap?this.cMap.getCharCodeLength(f):1)-1;c>=0;c--)n.push(String.fromCharCode(f>>8*c&255));continue}}a()||(s.push(n.join("")),n.length=0),n.push(String.fromCodePoint(l))}return s.push(n.join("")),s}};Mf=new WeakMap,Er=new WeakMap,zf=new WeakSet,np=function(t){let s=Object.create(null);for(let n of t){let a=this[n];a!==void 0&&(s[n]=a)}return s};var ih=class{constructor(t){this.error=t,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(t){return[t]}exportData(){return{error:this.error}}},Xq=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Yq={lineHeight:1.2207,lineGap:.2207},Jq=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Qq={lineHeight:1.2207,lineGap:.2207},Zq=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],ty={lineHeight:1.2207,lineGap:.2207},ey=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],sy={lineHeight:1.2207,lineGap:.2207},ny=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],ay={lineHeight:1.2,lineGap:.2},iy=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],ry={lineHeight:1.35,lineGap:.2},oy=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],ly={lineHeight:1.35,lineGap:.2},fy=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],cy={lineHeight:1.2,lineGap:.2},Co=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Ho=[-1,-1,-1,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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Bo=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],To=[-1,-1,-1,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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Ro=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],Fo=[-1,-1,-1,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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Mo=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],zo=[-1,-1,-1,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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],hy=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],uy={lineHeight:1.2,lineGap:.2},my=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],py={lineHeight:1.2,lineGap:.2},dy=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],gy={lineHeight:1.2,lineGap:.2},by=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],wy={lineHeight:1.2,lineGap:.2},jy=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],ky={lineHeight:1.33008,lineGap:0},qy=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],yy={lineHeight:1.33008,lineGap:0},vy=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],xy={lineHeight:1.33008,lineGap:0},Sy=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1],Ay={lineHeight:1.33008,lineGap:0},Iy=Se(function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:by,baseWidths:Mo,baseMapping:zo,metrics:wy},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:hy,baseWidths:Co,baseMapping:Ho,metrics:uy},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:dy,baseWidths:Ro,baseMapping:Fo,metrics:gy},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:my,baseWidths:Bo,baseMapping:To,metrics:py},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:Mo,baseMapping:zo},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:Co,baseMapping:Ho},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:Ro,baseMapping:Fo},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:Bo,baseMapping:To},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:ey,baseWidths:Mo,baseMapping:zo,metrics:sy},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:Xq,baseWidths:Co,baseMapping:Ho,metrics:Yq},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:Zq,baseWidths:Ro,baseMapping:Fo,metrics:ty},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:Jq,baseWidths:Bo,baseMapping:To,metrics:Qq},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:Sy,baseWidths:Mo,baseMapping:zo,metrics:Ay},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:jy,baseWidths:Co,baseMapping:Ho,metrics:ky},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:vy,baseWidths:Ro,baseMapping:Fo,metrics:xy},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:qy,baseWidths:Bo,baseMapping:To,metrics:yy},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:fy,baseWidths:Mo,baseMapping:zo,metrics:cy},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:ny,baseWidths:Co,baseMapping:Ho,metrics:ay},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:oy,baseWidths:Ro,baseMapping:Fo,metrics:ly},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:iy,baseWidths:Bo,baseMapping:To,metrics:ry}});function T5(e){let t=Za(e);return Iy()[t]}function w8(e){let t=(function(o){let r=T5(o);if(!r)return null;let{baseWidths:l,baseMapping:f,factors:c}=r,h=c?l.map((p,g)=>p*c[g]):l,m,u=-2,d=[];for(let[p,g]of f.map((b,w)=>[b,w]).sort(([b],[w])=>b-w))p!==-1&&(p===u+1?(m.push(h[g]),u+=1):(u=p,m=[h[g]],d.push(p,m)));return d})(e),s=new R(null);s.set("BaseFont",it.get(e)),s.set("Type",it.get("Font")),s.set("Subtype",it.get("CIDFontType2")),s.set("Encoding",it.get("Identity-H")),s.set("CIDToGIDMap",it.get("Identity")),s.set("W",t),s.set("FirstChar",t[0]),s.set("LastChar",t.at(-2)+t.at(-1).length-1);let n=new R(null);s.set("FontDescriptor",n);let a=new R(null);return a.set("Ordering","Identity"),a.set("Registry","Adobe"),a.set("Supplement",0),s.set("CIDSystemInfo",a),s}var T={number:0,lbrace:1,rbrace:2,true:3,false:4,add:5,sub:6,mul:7,div:8,idiv:9,mod:10,exp:11,eq:12,ne:13,gt:14,ge:15,lt:16,le:17,and:18,or:19,xor:20,bitshift:21,abs:22,neg:23,ceiling:24,floor:25,round:26,truncate:27,not:28,sqrt:29,sin:30,cos:31,ln:32,log:33,atan:34,cvi:35,cvr:36,dup:37,exch:38,pop:39,copy:40,index:41,roll:42,if:43,ifelse:44,eof:45,min:46,max:47},Yn=class{constructor(t,s=null){this.id=t,this.value=s}},Na,Df,cu,j8,bn=class bn{constructor(t){var s;S(bn,Na)||N(s=bn,cu,j8).call(s),this.data=t,this.pos=0,this.len=t.length,this._numberPattern=/[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?/iy,this._identifierPattern=/[a-z]+/y}_skipComment(){let t=this.data.indexOf(`\n`,this.pos),s=this.data.indexOf("\\r",this.pos),n=Math.min(t<0?this.len:t,s<0?this.len:s);this.pos=Math.min(n+1,this.len)}_getNumber(){this._numberPattern.lastIndex=this.pos;let t=this._numberPattern.exec(this.data);if(!t)return new Yn(T.number,0);let s=parseFloat(t[0]);return Number.isFinite(s)?(this.pos=this._numberPattern.lastIndex,new Yn(T.number,s)):new Yn(T.number,0)}_getOperator(){this._identifierPattern.lastIndex=this.pos;let t=this._identifierPattern.exec(this.data);if(!t)return new Yn(T.number,0);this.pos=this._identifierPattern.lastIndex;let s=t[0];return S(bn,Df)[s]||new Yn(T.number,0)}next(){for(;this.pos<this.len;){let t=this.data.charCodeAt(this.pos++);switch(t){case 0:case 9:case 10:case 12:case 13:case 32:break;case 37:this._skipComment();break;case 123:return S(bn,Na).lbrace;case 125:return S(bn,Na).rbrace;case 43:case 45:case 46:return this.pos--,this._getNumber();default:return t>=48&&t<=57?(this.pos--,this._getNumber()):t>=97&&t<=122?(this.pos--,this._getOperator()):new Yn(T.number,0)}}return S(bn,Na).eof}};Na=new WeakMap,Df=new WeakMap,cu=new WeakSet,j8=function(){let t=Object.create(null),s=Object.create(null);for(let[n,a]of Object.entries(T)){if(n==="number")continue;let i=a>=T.true&&a<=T.ifelse,o=new Yn(a,i?n:null);t[n]=o,i&&(s[n]=o)}Bt(this,Na,t),Bt(this,Df,s)},at(bn,cu),at(bn,Na,null),at(bn,Df,null);var ap=bn,uo=0,_n=1,Rr=2,Cy=0,Hy=1,R5=2,F5=3,M5=4,z5=5,mo=6,Re=7,$i=8,Sn=9,Cc=10,Gs=class{constructor(t){this.type=t}},ip=class extends Gs{constructor(t){super(Cy),this.body=t}},rp=class extends Gs{constructor(t){super(Hy),this.instructions=t}},op=class extends Gs{constructor(t){super(R5),this.value=t}},lp=class extends Gs{constructor(t){super(F5),this.op=t}},fp=class extends Gs{constructor(t){super(M5),this.then=t}},cp=class extends Gs{constructor(t,s){super(z5),this.then=t,this.otherwise=s}},hp=class extends Gs{constructor(t){super(mo),this.index=t,this.valueType=uo}},bs=class extends Gs{constructor(t){super(Re),this.value=t,this.valueType=typeof t=="boolean"?_n:uo}},up=class extends Gs{constructor(t,s,n=Rr){super($i),this.op=t,this.operand=s,this.valueType=n}},rh=class extends Gs{constructor(t,s,n,a=Rr){super(Sn),this.op=t,this.first=s,this.second=n,this.valueType=a}},mp=class extends Gs{constructor(t,s,n,a=Rr){super(Cc),this.cond=t,this.then=s,this.otherwise=n,this.valueType=a}},pp=class e{constructor(t){this.lexer=t,this._token=null}static _isRegularOperator(t){return t>=T.true&&t<T.if}_advance(){this._token=this.lexer.next()}_expect(t){if(this._token.id!==t)throw new nt(`PostScript function: expected token id ${t}, got ${this._token.id}.`);let s=this._token;return this._advance(),s}parse(){this._advance(),this._expect(T.lbrace);let t=this._parseBlock();return this._expect(T.rbrace),this._token.id!==T.eof&&F("PostScript function: unexpected content after closing brace."),new ip(t)}_parseBlock(){let t=[];for(;;){let s=this._token;switch(s.id){case T.number:t.push(new op(s.value)),this._advance();break;case T.lbrace:{this._advance();let n=this._parseBlock();if(this._expect(T.rbrace),this._token.id===T.if)this._advance(),t.push(new fp(n));else{if(this._token.id!==T.lbrace)throw new nt("PostScript function: a procedure block must be followed by \'if\' or \'{\\u2026} ifelse\'.");{this._advance();let a=this._parseBlock();this._expect(T.rbrace),this._expect(T.ifelse),t.push(new cp(n,a))}}break}case T.rbrace:case T.eof:return new rp(t);case T.if:case T.ifelse:throw new nt(`PostScript function: unexpected \'${s.value}\' operator.`);default:if(e._isRegularOperator(s.id)){t.push(new lp(s.id)),this._advance();break}throw new nt(`PostScript function: unexpected token id ${s.id}.`)}}}};function k8(e){return new pp(new ap(e)).parse()}function js(e,t){if(e===t)return!0;if(e.type!==t.type)return!1;switch(e.type){case mo:return e.index===t.index;case Re:return e.value===t.value;case $i:return e.op===t.op&&js(e.operand,t.operand);case Sn:return e.op===t.op&&js(e.first,t.first)&&js(e.second,t.second);case Cc:return js(e.cond,t.cond)&&js(e.then,t.then)&&js(e.otherwise,t.otherwise);default:return!1}}var lr=100,Kr,Of,Nf,_f,qo,q8,y8,Fs=class Fs{evaluate(t,s){var a,i;if(S(Fs,Kr)||N(a=Fs,qo,q8).call(a),this._failed=!1,s>lr)return null;let n=[];for(let o=0;o<s;o++)n.push(new hp(o));return this._evalBlock(t.body,n),this._failed?null:(N(i=Fs,qo,y8).call(i,n),n)}_evalBlock(t,s){this._evalBlockFrom(t.instructions,0,s)}_evalBlockFrom(t,s,n){for(let a=s;a<t.length&&!this._failed;a++){let i=t[a];switch(i.type){case R5:n.push(new bs(i.value)),n.length>lr&&(this._failed=!0);break;case F5:this._evalOp(i.op,n);break;case M5:{if(n.length<1){this._failed=!0;break}let o=n.pop(),r=n.slice();if(this._evalBlock(i.then,n),this._failed)break;if(n.length===r.length)for(let l=0;l<n.length;l++)n[l]!==r[l]&&(n[l]=this._makeTernary(o,n[l],r[l]));else{if(n.length>r.length){if(o.type===Re){o.value||(n.length=0,n.push(...r));break}let l=n.slice();if(this._evalBlockFrom(t,a+1,l),this._failed)break;let f=r;if(this._evalBlockFrom(t,a+1,f),this._failed)break;if(l.length!==f.length){let c=new bs(0);for(;l.length<f.length;)l.push(c);for(;f.length<l.length;)f.push(c)}n.length=0;for(let c=0;c<l.length;c++)n.push(this._makeTernary(o,l[c],f[c]));return}this._failed=!0}break}case z5:{if(n.length<1){this._failed=!0;break}let o=n.pop(),r=n.slice(),l=r.slice();if(this._evalBlock(i.then,l),this._failed)break;let f=r.slice();if(this._evalBlock(i.otherwise,f),this._failed)break;if(l.length!==f.length){let c=new bs(0);for(;l.length<f.length;)l.push(c);for(;f.length<l.length;)f.push(c)}n.length=0;for(let c=0;c<l.length;c++)n.push(this._makeTernary(o,l[c],f[c]));break}}}}_evalOp(t,s){if(S(Fs,Kr).has(t)){if(s.length<2){this._failed=!0;return}let n=s.pop(),a=s.pop();s.push(this._makeBinary(t,n,a));return}if(S(Fs,Of).has(t)){if(s.length<1){this._failed=!0;return}s.push(this._makeUnary(t,s.pop()))}else switch(t){case T.true:s.push(new bs(!0)),s.length>lr&&(this._failed=!0);break;case T.false:s.push(new bs(!1)),s.length>lr&&(this._failed=!0);break;case T.dup:if(s.length<1){this._failed=!0;break}s.push(s.at(-1)),s.length>lr&&(this._failed=!0);break;case T.exch:{if(s.length<2){this._failed=!0;break}let n=s.pop(),a=s.pop();s.push(n,a);break}case T.pop:if(s.length<1){this._failed=!0;break}s.pop();break;case T.copy:{if(s.length<1){this._failed=!0;break}let n=s.pop();if(n.type===Re){let a=0|n.value;a===0||(a<0||a>s.length?this._failed=!0:(s.push(...s.slice(-a)),s.length>lr&&(this._failed=!0)))}else this._failed=!0;break}case T.index:{if(s.length<1){this._failed=!0;break}let n=s.pop();if(n.type===Re){let a=0|n.value;a<0||a>=s.length?this._failed=!0:s.push(s.at(-a-1))}else this._failed=!0;break}case T.roll:{if(s.length<2){this._failed=!0;break}let n=s.pop(),a=s.pop();if(a.type===Re&&n.type===Re){let i=0|a.value;if(i!==0)if(i<0||i>s.length)this._failed=!0;else{let o=((0|n.value)%i+i)%i;if(o>0){let r=s.splice(-i,i);s.push(...r.slice(i-o),...r.slice(0,i-o))}}}else this._failed=!0;break}default:this._failed=!0}}_makeBinary(t,s,n){if(s.type===Re&&n.type===Re){let a=(function(o,r,l){switch(o){case T.add:return r+l;case T.sub:return r-l;case T.mul:return r*l;case T.div:return l!==0?r/l:0;case T.idiv:return l!==0?Math.trunc(r/l):0;case T.mod:return l!==0?r-Math.trunc(r/l)*l:0;case T.exp:{let f=r**l;return Number.isFinite(f)?f:void 0}case T.atan:{let f=Math.atan2(r,l)*(180/Math.PI);return f<0&&(f+=360),f}case T.eq:return r===l;case T.ne:return r!==l;case T.gt:return r>l;case T.ge:return r>=l;case T.lt:return r<l;case T.le:return r<=l;case T.and:return typeof r=="boolean"?r&&l:r&l|0;case T.or:return typeof r=="boolean"?r||l:r|l|0;case T.xor:return typeof r=="boolean"?r!==l:r^l|0;case T.bitshift:return l>=0?r<<l|0:r>>-l|0;case T.min:return Math.min(r,l);case T.max:return Math.max(r,l);default:return}})(t,n.value,s.value);if(a!==void 0)return new bs(a)}if(js(s,n))switch(t){case T.sub:return new bs(0);case T.xor:return new bs(s.valueType!==_n&&0);case T.and:case T.or:case T.min:case T.max:return s;case T.eq:case T.ge:case T.le:return new bs(!0);case T.ne:case T.gt:case T.lt:return new bs(!1)}if(s.type===Re){let a=s.value;switch(t){case T.add:case T.sub:if(a===0)return n;break;case T.mul:if(a===1)return n;if(a===0)return s;if(a===-1)return this._makeUnary(T.neg,n);break;case T.div:if(a!==0)return this._makeBinary(T.mul,new bs(1/a),n);break;case T.idiv:if(a===1)return n;break;case T.exp:if(a===1)return n;if(a===-1)return this._makeBinary(T.div,n,new bs(1));if(a===.5)return this._makeUnary(T.sqrt,n);if(a===.25){let i=this._makeUnary(T.sqrt,n);return this._makeUnary(T.sqrt,i)}if(a===2)return this._makeBinary(T.mul,n,n);if(a===3)return this._makeBinary(T.mul,this._makeBinary(T.mul,n,n),n);if(a===4){let i=this._makeBinary(T.mul,n,n);return this._makeBinary(T.mul,i,i)}if(a===0)return new bs(1);break;case T.and:if(a===!0)return n;if(a===!1)return s;break;case T.or:if(a===!1)return n;if(a===!0)return s;break;case T.min:if(n.type===Sn&&n.op===T.max&&n.first.type===Re&&n.first.value>=a)return s;break;case T.max:if(n.type===Sn&&n.op===T.min&&n.first.type===Re&&n.first.value<=a)return s}}if(n.type===Re){let a=n.value;switch(t){case T.add:if(a===0)return s;break;case T.sub:if(a===0)return this._makeUnary(T.neg,s);break;case T.mul:if(a===1)return s;if(a===0)return n;if(a===-1)return this._makeUnary(T.neg,s);break;case T.and:if(a===!0)return s;if(a===!1)return n;break;case T.or:if(a===!1)return s;if(a===!0)return n}}return new rh(t,s,n,(function(i,o,r){switch(i){case T.eq:case T.ne:case T.gt:case T.ge:case T.lt:case T.le:return _n;case T.and:case T.or:case T.xor:return o===r&&o!==Rr?o:Rr;default:return uo}})(t,s.valueType,n.valueType))}_makeUnary(t,s){if(s.type===Re){let n=(function(i,o){switch(i){case T.abs:return Math.abs(o);case T.neg:return-o;case T.ceiling:return Math.ceil(o);case T.floor:return Math.floor(o);case T.round:return Math.round(o);case T.truncate:return Math.trunc(o);case T.sqrt:{let r=Math.sqrt(o);return Number.isFinite(r)?r:void 0}case T.sin:return Math.sin(o%360*Math.PI/180);case T.cos:return Math.cos(o%360*Math.PI/180);case T.ln:{let r=Math.log(o);return Number.isFinite(r)?r:void 0}case T.log:{let r=Math.log10(o);return Number.isFinite(r)?r:void 0}case T.cvi:return Math.trunc(o);case T.cvr:return o;case T.not:return typeof o=="boolean"?!o:~o;default:return}})(t,s.value);if(n!==void 0)return new bs(n)}if(t===T.not&&s.type===Sn){let n=S(Fs,_f).get(s.op);if(n!==void 0)return new rh(n,s.first,s.second,_n)}if(t===T.neg&&s.type===Sn&&s.op===T.sub)return this._makeBinary(T.sub,s.second,s.first);if(s.type===$i){if(t===T.neg&&s.op===T.neg||t===T.not&&s.op===T.not)return s.operand;if(t===T.abs&&s.op===T.neg)return this._makeUnary(T.abs,s.operand);if(S(Fs,Nf).has(t)&&t===s.op)return s}return new up(t,s,(function(a,i){return a===T.not?i:uo})(t,s.valueType))}_makeTernary(t,s,n){if(t.type===Re)return t.value?s:n;if(js(s,n))return s;if(s.type===Re&&n.type===Re){if(s.value===!0&&n.value===!1)return t;if(s.value===!1&&n.value===!0)return this._makeUnary(T.not,t)}if(t.type===Sn){let{op:a,first:i,second:o}=t;if(a===T.gt||a===T.ge){if(js(s,i)&&js(n,o))return this._makeBinary(T.min,i,o);if(js(s,o)&&js(n,i))return this._makeBinary(T.max,i,o)}else if(a===T.lt||a===T.le){if(js(s,i)&&js(n,o))return this._makeBinary(T.max,i,o);if(js(s,o)&&js(n,i))return this._makeBinary(T.min,i,o)}}return new mp(t,s,n,s.valueType===n.valueType?s.valueType:Rr)}};Kr=new WeakMap,Of=new WeakMap,Nf=new WeakMap,_f=new WeakMap,qo=new WeakSet,q8=function(){Bt(this,Kr,new Set([T.add,T.sub,T.mul,T.div,T.idiv,T.mod,T.exp,T.atan,T.eq,T.ne,T.gt,T.ge,T.lt,T.le,T.and,T.or,T.xor,T.bitshift])),Bt(this,Of,new Set([T.abs,T.neg,T.ceiling,T.floor,T.round,T.truncate,T.sqrt,T.sin,T.cos,T.ln,T.log,T.cvi,T.cvr,T.not])),Bt(this,Nf,new Set([T.abs,T.ceiling,T.cvi,T.cvr,T.floor,T.round,T.truncate])),Bt(this,_f,new Map([[T.eq,T.ne],[T.ne,T.eq],[T.lt,T.ge],[T.le,T.gt],[T.gt,T.le],[T.ge,T.lt]]))},y8=function(t){let s=new Map,n=a=>{if(!a||a.type===mo||a.type===Re)return;let i=s.get(a)??0;if(s.set(a,i+1),!(i>0))switch(a.type){case $i:n(a.operand);break;case Sn:n(a.first),n(a.second);break;case Cc:n(a.cond),n(a.then),n(a.otherwise)}};for(let a of t)n(a);for(let[a,i]of s)i>1&&(a.shared=!0,a.sharedCount=i)},at(Fs,qo),at(Fs,Kr,null),at(Fs,Of,null),at(Fs,Nf,null),at(Fs,_f,null);var oh=Fs,P3=0,U3=1,L3=2,E3=3,K3=4,W3=5,V3=6,$3=7,G3=8,X3=9,Y3=10,J3=11,Q3=12,Z3=13,t6=14,e6=15,s6=16,n6=17,a6=18,i6=19,r6=20,o6=21,l6=22,f6=23,c6=24,h6=25,u6=26,m6=27,p6=28,d6=29,g6=30,b6=31,w6=32,j6=33,k6=34,q6=35,y6=36,v6=37,x6=38,S6=39,A6=40,lh=Math.PI/180,v8=180/Math.PI,hu,uu,vr=class{constructor(t,s){this.nIn=t.length>>1,this.nOut=s.length>>1,this.range=s,this.ir=[],this._tmpMap=new Map,this._nextTmp=0}_compileNode(t){if(t.shared){let s=this._tmpMap.get(t);if(s!==void 0)return this.ir.push(A6,s),!0;if(!this._compileNodeImpl(t))return!1;let n=this._nextTmp++;return this._tmpMap.set(t,n),this.ir.push(S6,n),!0}return this._compileNodeImpl(t)}_compileNodeImpl(t){switch(t.type){case mo:return this.ir.push(P3,t.index),!0;case Re:{let s=t.value;return this.ir.push(U3,typeof s=="boolean"?Number(s):s),!0}case $i:return this._compileUnary(t);case Sn:return this._compileBinary(t);case Cc:return this._compileTernary(t);default:return!1}}_compileUnary(t){let{op:s,operand:n,valueType:a}=t;if(s===T.cvr)return this._compileNode(n);if(!this._compileNode(n))return!1;switch(s){case T.abs:this.ir.push(W3);break;case T.neg:this.ir.push(V3);break;case T.ceiling:this.ir.push($3);break;case T.floor:this.ir.push(G3);break;case T.round:this.ir.push(X3);break;case T.truncate:this.ir.push(Y3);break;case T.sqrt:this.ir.push(Z3);break;case T.sin:this.ir.push(t6);break;case T.cos:this.ir.push(e6);break;case T.ln:this.ir.push(s6);break;case T.log:this.ir.push(n6);break;case T.cvi:this.ir.push(a6);break;case T.not:if(a===_n)this.ir.push(J3);else{if(a!==uo)return!1;this.ir.push(Q3)}break;default:return!1}return!0}_compileBinary(t){let{op:s,first:n,second:a}=t;if(s===T.bitshift)return n.type!==Re||!Number.isInteger(n.value)||!this._compileNode(a)?!1:(this.ir.push(i6,n.value),!0);if(!this._compileNode(a)||!this._compileNode(n))return!1;switch(s){case T.add:this.ir.push(r6);break;case T.sub:this.ir.push(o6);break;case T.mul:this.ir.push(l6);break;case T.div:this.ir.push(f6);break;case T.idiv:this.ir.push(c6);break;case T.mod:this.ir.push(h6);break;case T.exp:this.ir.push(u6);break;case T.eq:this.ir.push(m6);break;case T.ne:this.ir.push(p6);break;case T.gt:this.ir.push(d6);break;case T.ge:this.ir.push(g6);break;case T.lt:this.ir.push(b6);break;case T.le:this.ir.push(w6);break;case T.and:this.ir.push(j6);break;case T.or:this.ir.push(k6);break;case T.xor:this.ir.push(q6);break;case T.atan:this.ir.push(y6);break;case T.min:this.ir.push(v6);break;case T.max:this.ir.push(x6);break;default:return!1}return!0}_compileTernary(t){if(!this._compileNode(t.cond))return!1;this.ir.push(E3,0);let s=this.ir.length-1;if(!this._compileNode(t.then))return!1;this.ir.push(K3,0);let n=this.ir.length-1;return this.ir[s]=this.ir.length,this._compileNode(t.otherwise)?(this.ir[n]=this.ir.length,!0):!1}compile(t){let s=new oh().evaluate(t,this.nIn);if(!s||s.length<this.nOut)return null;for(let n=0;n<this.nOut;n++){if(!this._compileNode(s[n]))return null;let a=this.range[2*n],i=this.range[2*n+1];this.ir.push(L3,n,a,i)}return new Float64Array(this.ir)}static execute(t,s,n,a,i){let o=0,r=0,l=t.length,f=S(this,hu),c=S(this,uu);for(;o<l;)switch(0|t[o++]){case P3:f[r++]=s[n+(0|t[o++])];break;case U3:f[r++]=t[o++];break;case L3:{let h=0|t[o++],m=t[o++],u=t[o++];a[i+h]=He(f[--r],m,u);break}case E3:{let h=t[o++];f[--r]===0&&(o=h);break}case K3:o=t[o];break;case W3:f[r-1]=Math.abs(f[r-1]);break;case V3:f[r-1]=-f[r-1];break;case $3:f[r-1]=Math.ceil(f[r-1]);break;case G3:f[r-1]=Math.floor(f[r-1]);break;case X3:f[r-1]=Math.floor(f[r-1]+.5);break;case Y3:f[r-1]=Math.trunc(f[r-1]);break;case J3:f[r-1]=f[r-1]!==0?0:1;break;case Q3:f[r-1]=~f[r-1];break;case Z3:f[r-1]=Math.sqrt(f[r-1]);break;case t6:f[r-1]=Math.sin(f[r-1]%360*lh);break;case e6:f[r-1]=Math.cos(f[r-1]%360*lh);break;case s6:f[r-1]=Math.log(f[r-1]);break;case n6:f[r-1]=Math.log10(f[r-1]);break;case a6:f[r-1]=0|Math.trunc(f[r-1]);break;case i6:{let h=t[o++],m=0|f[r-1];f[r-1]=h>0?m<<h:h<0?m>>-h:m;break}case r6:{let h=f[--r];f[r-1]+=h;break}case o6:{let h=f[--r];f[r-1]-=h;break}case l6:{let h=f[--r];f[r-1]*=h;break}case f6:{let h=f[--r];f[r-1]=h!==0?f[r-1]/h:0;break}case c6:{let h=f[--r];f[r-1]=h!==0?Math.trunc(f[r-1]/h):0;break}case h6:{let h=f[--r];f[r-1]=h!==0?f[r-1]%h:0;break}case u6:{let h=f[--r];f[r-1]**=h;break}case m6:{let h=f[--r];f[r-1]=f[r-1]===h?1:0;break}case p6:{let h=f[--r];f[r-1]=f[r-1]!==h?1:0;break}case d6:{let h=f[--r];f[r-1]=f[r-1]>h?1:0;break}case g6:{let h=f[--r];f[r-1]=f[r-1]>=h?1:0;break}case b6:{let h=f[--r];f[r-1]=f[r-1]<h?1:0;break}case w6:{let h=f[--r];f[r-1]=f[r-1]<=h?1:0;break}case j6:{let h=0|f[--r];f[r-1]=(0|f[r-1])&h;break}case k6:{let h=0|f[--r];f[r-1]=0|f[r-1]|h;break}case q6:{let h=0|f[--r];f[r-1]=(0|f[r-1])^h;break}case y6:{let h=f[--r],m=Math.atan2(f[r-1],h)*v8;f[r-1]=m<0?m+360:m;break}case v6:{let h=f[--r];f[r-1]=Math.min(f[r-1],h);break}case x6:{let h=f[--r];f[r-1]=Math.max(f[r-1],h);break}case S6:c[0|t[o++]]=f[r-1];break;case A6:f[r++]=c[0|t[o++]]}}};hu=new WeakMap,uu=new WeakMap,at(vr,hu,new Float64Array(64)),at(vr,uu,new Float64Array(64));var ra,Ct,Je,Rn,x8,Eo,gr=class{static build(t,s,n){let a=s.length>>1,i=n.length>>1,{instructions:o}=t.body;return(r,l,f,c)=>{Bt(this,Ct,0);for(let m=0;m<a;m++)N(this,Je,Rn).call(this,r[l+m]);N(this,Je,Eo).call(this,o);let h=S(this,Ct)-i;for(let m=0;m<i;m++){let u=h+m>=0?S(this,ra)[h+m]:0;f[c+m]=He(u,n[2*m],n[2*m+1])}}}};ra=new WeakMap,Ct=new WeakMap,Je=new WeakSet,Rn=function(t){S(this,Ct)<S(this,ra).length&&(S(this,ra)[pe(this,Ct)._++]=t)},x8=function(t){let s=S(this,ra);switch(t){case T.true:N(this,Je,Rn).call(this,1);break;case T.false:N(this,Je,Rn).call(this,0);break;case T.abs:s[S(this,Ct)-1]=Math.abs(s[S(this,Ct)-1]);break;case T.neg:s[S(this,Ct)-1]=-s[S(this,Ct)-1];break;case T.ceiling:s[S(this,Ct)-1]=Math.ceil(s[S(this,Ct)-1]);break;case T.floor:s[S(this,Ct)-1]=Math.floor(s[S(this,Ct)-1]);break;case T.round:s[S(this,Ct)-1]=Math.floor(s[S(this,Ct)-1]+.5);break;case T.truncate:s[S(this,Ct)-1]=Math.trunc(s[S(this,Ct)-1]);break;case T.sqrt:s[S(this,Ct)-1]=Math.sqrt(s[S(this,Ct)-1]);break;case T.sin:s[S(this,Ct)-1]=Math.sin(s[S(this,Ct)-1]%360*lh);break;case T.cos:s[S(this,Ct)-1]=Math.cos(s[S(this,Ct)-1]%360*lh);break;case T.ln:s[S(this,Ct)-1]=Math.log(s[S(this,Ct)-1]);break;case T.log:s[S(this,Ct)-1]=Math.log10(s[S(this,Ct)-1]);break;case T.cvi:s[S(this,Ct)-1]=0|Math.trunc(s[S(this,Ct)-1]);break;case T.cvr:break;case T.not:{let n=s[S(this,Ct)-1];s[S(this,Ct)-1]=n===0||n===1?1-n:~n;break}case T.add:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]+=n;break}case T.sub:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]-=n;break}case T.mul:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]*=n;break}case T.div:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=n!==0?s[S(this,Ct)-1]/n:0;break}case T.idiv:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=n!==0?Math.trunc(s[S(this,Ct)-1]/n):0;break}case T.mod:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=n!==0?s[S(this,Ct)-1]%n:0;break}case T.exp:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]**=n;break}case T.atan:{let n=s[--pe(this,Ct)._],a=Math.atan2(s[S(this,Ct)-1],n)*v8;s[S(this,Ct)-1]=a<0?a+360:a;break}case T.eq:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=s[S(this,Ct)-1]===n?1:0;break}case T.ne:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=s[S(this,Ct)-1]!==n?1:0;break}case T.gt:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=s[S(this,Ct)-1]>n?1:0;break}case T.ge:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=s[S(this,Ct)-1]>=n?1:0;break}case T.lt:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=s[S(this,Ct)-1]<n?1:0;break}case T.le:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=s[S(this,Ct)-1]<=n?1:0;break}case T.and:{let n=0|s[--pe(this,Ct)._];s[S(this,Ct)-1]=(0|s[S(this,Ct)-1])&n;break}case T.or:{let n=0|s[--pe(this,Ct)._];s[S(this,Ct)-1]=0|s[S(this,Ct)-1]|n;break}case T.xor:{let n=0|s[--pe(this,Ct)._];s[S(this,Ct)-1]=(0|s[S(this,Ct)-1])^n;break}case T.bitshift:{let n=0|s[--pe(this,Ct)._],a=0|s[S(this,Ct)-1];s[S(this,Ct)-1]=n>0?a<<n:a>>-n;break}case T.min:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=Math.min(s[S(this,Ct)-1],n);break}case T.max:{let n=s[--pe(this,Ct)._];s[S(this,Ct)-1]=Math.max(s[S(this,Ct)-1],n);break}case T.dup:N(this,Je,Rn).call(this,s[S(this,Ct)-1]);break;case T.exch:{let n=s[--pe(this,Ct)._],a=s[--pe(this,Ct)._];N(this,Je,Rn).call(this,n),N(this,Je,Rn).call(this,a);break}case T.pop:pe(this,Ct)._--;break;case T.copy:{let n=Math.trunc(s[--pe(this,Ct)._]),a=S(this,Ct)-n;for(let i=0;i<n;i++)N(this,Je,Rn).call(this,s[a+i]);break}case T.index:{let n=Math.trunc(s[--pe(this,Ct)._]);N(this,Je,Rn).call(this,s[S(this,Ct)-1-n]);break}case T.roll:{let n=Math.trunc(s[--pe(this,Ct)._]),a=Math.trunc(s[--pe(this,Ct)._]);if(a>1&&n!==0){let i=(n%a+a)%a;if(i!==0){let o=S(this,Ct)-a,r=s.slice(o,S(this,Ct));for(let l=0;l<a;l++)s[o+l]=r[(l-i+a)%a]}}break}}},Eo=function(t){for(let s of t)switch(s.type){case R5:N(this,Je,Rn).call(this,s.value);break;case F5:N(this,Je,x8).call(this,s.op);break;case M5:S(this,ra)[--pe(this,Ct)._]!==0&&N(this,Je,Eo).call(this,s.then.instructions);break;case z5:S(this,ra)[--pe(this,Ct)._]!==0?N(this,Je,Eo).call(this,s.then.instructions):N(this,Je,Eo).call(this,s.otherwise.instructions)}},at(gr,Je),at(gr,ra,new Float64Array(100)),at(gr,Ct,0);var Ht={if:4,else:5,end:11,select:27,call:16,local_get:32,local_set:33,local_tee:34,i32_const:65,i32_eqz:69,i32_and:113,i32_or:114,i32_xor:115,i32_shl:116,i32_shr_s:117,i32_trunc_f64_s:170,f64_const:68,f64_eq:97,f64_ne:98,f64_lt:99,f64_gt:100,f64_le:101,f64_ge:102,f64_abs:153,f64_neg:154,f64_ceil:155,f64_floor:156,f64_trunc:157,f64_nearest:158,f64_sqrt:159,f64_add:160,f64_sub:161,f64_mul:162,f64_div:163,f64_min:164,f64_max:165,f64_convert_i32_s:183,f64_store:57},ns=124,By=1,Ty=2,Ry=3,Fy=5,My=7,zy=10;function qi(e){let t=[];do{let s=127&e;(e>>>=7)!==0&&(s|=128),t.push(s)}while(e!==0);return t}function Kc(e){return[...qi(e.length),...Ce(e)]}function fr(e,t){return[e,...qi(t.length),...t]}function mn(e){let t=qi(e.length);for(let s of e)if(typeof s!="number")for(let n of s)t.push(n);else t.push(s);return t}var br=[["sin","Math","sin",[ns],[ns]],["cos","Math","cos",[ns],[ns]],["atan2","Math","atan2",[ns,ns],[ns]],["log","Math","log",[ns],[ns]],["log10","Math","log10",[ns],[ns]],["pow","Math","pow",[ns,ns],[ns]]],Dy={Math:Object.fromEntries(br.map(([e])=>[e,Math[e]]))},Pf,Uf,Mn,Lf,Ef,Kf,Wf,Vf,$f,Gf,Xf,Yf,Jf,mu,S8,be=class be{constructor(t,s){var n;S(be,Pf)||N(n=be,mu,S8).call(n),this._nIn=t.length>>1,this._nOut=s.length>>1,this._range=s,this._code=[],this._nextLocal=this._nIn,this._freeLocals=[],this._sharedLocals=new Map}_allocLocal(){return this._freeLocals.pop()??this._nextLocal++}_releaseLocal(t){this._freeLocals.push(t)}_emitULEB128(t){do{let s=127&t;(t>>>=7)!==0&&(s|=128),this._code.push(s)}while(t!==0)}_emitSLEB128(t){for(;;){let s=127&t;if((t>>=7)===0&&!(64&s)||t===-1&&64&s){this._code.push(s);return}this._code.push(128|s)}}_emitF64Const(t){this._code.push(Ht.f64_const),S(be,Yf).setFloat64(0,t,!0);for(let s=0;s<8;s++)this._code.push(S(be,Jf)[s])}_emitLocalGet(t){this._code.push(Ht.local_get),this._emitULEB128(t)}_emitLocalSet(t){this._code.push(Ht.local_set),this._emitULEB128(t)}_emitLocalTee(t){this._code.push(Ht.local_tee),this._emitULEB128(t)}_compileNode(t){if(t.shared){let s=this._sharedLocals.get(t);if(s!==void 0)return this._emitLocalGet(s.local),--s.remaining===0&&this._releaseLocal(s.local),!0;if(!this._compileNodeImpl(t))return!1;let n=this._allocLocal();return this._sharedLocals.set(t,{local:n,remaining:t.sharedCount-1}),this._emitLocalTee(n),!0}return this._compileNodeImpl(t)}_compileNodeImpl(t){switch(t.type){case mo:return this._emitLocalGet(t.index),!0;case Re:{let s=t.value;return typeof s=="boolean"&&(s=s?1:0),this._emitF64Const(s),!0}case $i:return this._compileUnaryNode(t);case Sn:return this._compileBinaryNode(t);case Cc:return this._compileTernaryNode(t);default:return!1}}_compileSinCosNode(t){let s=this._allocLocal();try{if(!this._compileNode(t.operand))return!1;let n=this._code;return this._emitLocalSet(s),this._emitLocalGet(s),this._emitLocalGet(s),this._emitF64Const(360),n.push(Ht.f64_div,Ht.f64_trunc),this._emitF64Const(360),n.push(Ht.f64_mul,Ht.f64_sub),this._emitF64Const(S(be,Lf)),n.push(Ht.f64_mul,Ht.call),this._emitULEB128(S(be,Mn)[t.op===T.sin?"sin":"cos"]),!0}finally{this._releaseLocal(s)}}_compileUnaryNode(t){let s=this._code;if(t.op===T.sin||t.op===T.cos)return this._compileSinCosNode(t);if(t.op===T.not)return t.valueType===_n?this._compileNodeAsBoolI32(t.operand)?(s.push(Ht.i32_eqz,Ht.f64_convert_i32_s),!0):!1:t.valueType===uo&&this._compileNode(t.operand)?(s.push(Ht.i32_trunc_f64_s,Ht.i32_const,127,Ht.i32_xor,Ht.f64_convert_i32_s),!0):!1;if(!this._compileNode(t.operand))return!1;switch(t.op){case T.abs:s.push(Ht.f64_abs);break;case T.neg:s.push(Ht.f64_neg);break;case T.sqrt:s.push(Ht.f64_sqrt);break;case T.floor:s.push(Ht.f64_floor);break;case T.ceiling:s.push(Ht.f64_ceil);break;case T.round:this._emitF64Const(.5),s.push(Ht.f64_add,Ht.f64_floor);break;case T.truncate:s.push(Ht.f64_trunc);break;case T.cvi:s.push(Ht.i32_trunc_f64_s,Ht.f64_convert_i32_s);break;case T.cvr:break;case T.ln:s.push(Ht.call),this._emitULEB128(S(be,Mn).log);break;case T.log:s.push(Ht.call),this._emitULEB128(S(be,Mn).log10);break;default:return!1}return!0}_compileSafeDivNode(t,s){let n=this._allocLocal();try{if(!this._compileNode(s)||!this._compileNode(t))return!1;let a=this._code;return this._emitLocalTee(n),a.push(Ht.f64_div),this._emitF64Const(0),this._emitLocalGet(n),this._emitF64Const(0),a.push(Ht.f64_ne,Ht.select),!0}finally{this._releaseLocal(n)}}_compileSafeIdivNode(t,s){let n=this._allocLocal();try{if(!this._compileNode(s)||!this._compileNode(t))return!1;let a=this._code;return this._emitLocalTee(n),a.push(Ht.f64_div,Ht.f64_trunc),this._emitF64Const(0),this._emitLocalGet(n),this._emitF64Const(0),a.push(Ht.f64_ne,Ht.select),!0}finally{this._releaseLocal(n)}}_compileBitshiftNode(t,s){if(t.type!==Re||!Number.isInteger(t.value)||!this._compileNode(s))return!1;let n=this._code;n.push(Ht.i32_trunc_f64_s);let a=t.value;return a>0?(n.push(Ht.i32_const),this._emitSLEB128(a),n.push(Ht.i32_shl)):a<0&&(n.push(Ht.i32_const),this._emitSLEB128(-a),n.push(Ht.i32_shr_s)),n.push(Ht.f64_convert_i32_s),!0}_compileModNode(t,s){if(t.type===Re&&t.value===0)return this._compileNode(s)?(this._code.push(Ht.drop),this._emitF64Const(0),!0):!1;let n=this._allocLocal();try{if(!this._compileNode(s))return!1;this._emitLocalTee(n);let a=this._code;if(t.type===Re)this._emitLocalGet(n),this._emitF64Const(t.value),a.push(Ht.f64_div,Ht.f64_trunc),this._emitF64Const(t.value),a.push(Ht.f64_mul,Ht.f64_sub);else{let i=this._allocLocal();try{if(!this._compileNode(t))return!1;this._emitLocalSet(i),this._emitLocalGet(n),this._emitLocalGet(i),a.push(Ht.f64_div,Ht.f64_trunc),this._emitLocalGet(i),a.push(Ht.f64_mul,Ht.f64_sub),this._emitF64Const(0),this._emitLocalGet(i),this._emitF64Const(0),a.push(Ht.f64_ne,Ht.select)}finally{this._releaseLocal(i)}}return!0}finally{this._releaseLocal(n)}}_compileAtanNode(t,s){let n=this._allocLocal();try{if(!this._compileNode(s)||!this._compileNode(t))return!1;let a=this._code;return a.push(Ht.call),this._emitULEB128(S(be,Mn).atan2),this._emitF64Const(S(be,Ef)),a.push(Ht.f64_mul),this._emitLocalTee(n),this._emitF64Const(0),a.push(Ht.f64_lt,Ht.if,ns),this._emitLocalGet(n),this._emitF64Const(360),a.push(Ht.f64_add,Ht.else),this._emitLocalGet(n),a.push(Ht.end),!0}finally{this._releaseLocal(n)}}_compileBitwiseNode(t,s,n){if(!this._compileBitwiseOperandI32(n)||!this._compileBitwiseOperandI32(s))return!1;let a=this._code;switch(t){case T.and:a.push(Ht.i32_and);break;case T.or:a.push(Ht.i32_or);break;case T.xor:a.push(Ht.i32_xor);break;default:return!1}return a.push(Ht.f64_convert_i32_s),!0}_compileBitwiseOperandI32(t){return t.valueType===_n?this._compileNodeAsBoolI32(t):this._compileNode(t)?(this._code.push(Ht.i32_trunc_f64_s),!0):!1}_compileStandardBinaryNode(t,s,n){if(s!==n||s.type===mo||s.type===Re||s.shared){if(!this._compileNode(n)||!this._compileNode(s))return!1}else{let i=this._allocLocal();try{if(!this._compileNode(s))return!1;this._emitLocalTee(i),this._emitLocalGet(i)}finally{this._releaseLocal(i)}}let a=this._code;switch(t){case T.add:a.push(Ht.f64_add);break;case T.sub:a.push(Ht.f64_sub);break;case T.mul:a.push(Ht.f64_mul);break;case T.exp:a.push(Ht.call),this._emitULEB128(S(be,Mn).pow);break;case T.eq:a.push(Ht.f64_eq,Ht.f64_convert_i32_s);break;case T.ne:a.push(Ht.f64_ne,Ht.f64_convert_i32_s);break;case T.lt:a.push(Ht.f64_lt,Ht.f64_convert_i32_s);break;case T.le:a.push(Ht.f64_le,Ht.f64_convert_i32_s);break;case T.gt:a.push(Ht.f64_gt,Ht.f64_convert_i32_s);break;case T.ge:a.push(Ht.f64_ge,Ht.f64_convert_i32_s);break;case T.min:a.push(Ht.f64_min);break;case T.max:a.push(Ht.f64_max);break;default:return!1}return!0}_compileBinaryNode(t){let{op:s,first:n,second:a}=t;return s===T.bitshift?this._compileBitshiftNode(n,a):s===T.div?this._compileSafeDivNode(n,a):s===T.idiv?this._compileSafeIdivNode(n,a):s===T.mod?this._compileModNode(n,a):s===T.atan?this._compileAtanNode(n,a):s===T.and||s===T.or||s===T.xor?this._compileBitwiseNode(s,n,a):this._compileStandardBinaryNode(s,n,a)}_compileNodeAsBoolI32(t){if(t.type===Sn){let s=S(be,Uf).get(t.op);if(s!==void 0)return!this._compileNode(t.second)||!this._compileNode(t.first)?!1:(this._code.push(s),!0);if(t.valueType===_n&&(t.op===T.and||t.op===T.or||t.op===T.xor)){if(!this._compileNodeAsBoolI32(t.second)||!this._compileNodeAsBoolI32(t.first))return!1;switch(t.op){case T.and:this._code.push(Ht.i32_and);break;case T.or:this._code.push(Ht.i32_or);break;case T.xor:this._code.push(Ht.i32_xor)}return!0}}return t.type===$i&&t.op===T.not&&t.valueType===_n?this._compileNodeAsBoolI32(t.operand)?(this._code.push(Ht.i32_eqz),!0):!1:this._compileNode(t)?(t.valueType===_n?this._code.push(Ht.i32_trunc_f64_s):(this._emitF64Const(0),this._code.push(Ht.f64_ne)),!0):!1}_compileTernaryNode(t){return!this._compileNodeAsBoolI32(t.cond)||(this._code.push(Ht.if,ns),!this._compileNode(t.then))||(this._code.push(Ht.else),!this._compileNode(t.otherwise))?!1:(this._code.push(Ht.end),!0)}compile(t){let s=new oh().evaluate(t,this._nIn);if(!s||s.length<this._nOut)return null;let n=this._code;for(let k=0;k<this._nOut;k++){let q=this._range[2*k],y=this._range[2*k+1];if(n.push(Ht.i32_const),this._emitSLEB128(8*k),!this._compileNode(s[k]))return null;this._emitF64Const(y),n.push(Ht.f64_min),this._emitF64Const(q),n.push(Ht.f64_max,Ht.f64_store,3,0)}n.push(Ht.end);let a=this._nIn,i=this._nextLocal-a,o=[96,...mn(Array(a).fill(ns)),...mn([])],r=new Uint8Array(fr(By,mn([o,...S(be,Kf)]))),l=mn(i>0?[[...qi(i),ns]]:[]),f=l.length+n.length,c=new Uint8Array(fr(zy,mn([[...qi(f),...l,...n]]))),h=S(be,Xf),m=S(be,Wf),u=S(be,Vf),d=S(be,$f),p=S(be,Gf),g=h.length+r.length+m.length+u.length+d.length+p.length+c.length,b=new Uint8Array(g),w=0;return b.set(h,w),w+=h.length,b.set(r,w),w+=r.length,b.set(m,w),w+=m.length,b.set(u,w),w+=u.length,b.set(d,w),w+=d.length,b.set(p,w),w+=p.length,b.set(c,w),b}};Pf=new WeakMap,Uf=new WeakMap,Mn=new WeakMap,Lf=new WeakMap,Ef=new WeakMap,Kf=new WeakMap,Wf=new WeakMap,Vf=new WeakMap,$f=new WeakMap,Gf=new WeakMap,Xf=new WeakMap,Yf=new WeakMap,Jf=new WeakMap,mu=new WeakSet,S8=function(){Bt(this,Uf,new Map([[T.eq,Ht.f64_eq],[T.ne,Ht.f64_ne],[T.lt,Ht.f64_lt],[T.le,Ht.f64_le],[T.gt,Ht.f64_gt],[T.ge,Ht.f64_ge]])),Bt(this,Mn,Object.create(null));for(let s=0;s<br.length;s++)S(this,Mn)[br[s][0]]=s;Bt(this,Lf,Math.PI/180),Bt(this,Ef,180/Math.PI),Bt(this,Kf,br.map(([,,,s,n])=>[96,...mn(s),...mn(n)])),Bt(this,Wf,new Uint8Array(fr(Ty,mn(br.map(([,s,n],a)=>[...Kc(s),...Kc(n),0,...qi(a+1)]))))),Bt(this,Vf,new Uint8Array(fr(Ry,mn([[0]])))),Bt(this,$f,new Uint8Array(fr(Fy,mn([[0,1]])))),Bt(this,Gf,new Uint8Array(fr(My,mn([[...Kc("fn"),0,...qi(br.length)],[...Kc("mem"),2,0]])))),Bt(this,Xf,new Uint8Array([0,97,115,109,1,0,0,0]));let t=new ArrayBuffer(8);Bt(this,Yf,new DataView(t)),Bt(this,Jf,new Uint8Array(t)),Bt(this,Pf,!0)},at(be,mu),at(be,Pf,!1),at(be,Uf,null),at(be,Mn,null),at(be,Lf,0),at(be,Ef,0),at(be,Kf,null),at(be,Wf,null),at(be,Vf,null),at(be,$f,null),at(be,Gf,null),at(be,Xf,null),at(be,Yf,null),at(be,Jf,null);var dp=be;function Oy(e,t,s){let n=(function(i,o,r){return new dp(o,r).compile(k8(i))})(e,t,s);if(!n)return null;try{return(function(i,o,r){let{fn:l,mem:f}=i,c=new Float64Array(f.buffer,0,r),h;switch(r){case 1:h=(m,u)=>{m[u]=c[0]};break;case 2:h=(m,u)=>{m[u]=c[0],m[u+1]=c[1]};break;case 3:h=(m,u)=>{m[u]=c[0],m[u+1]=c[1],m[u+2]=c[2]};break;case 4:h=(m,u)=>{m[u]=c[0],m[u+1]=c[1],m[u+2]=c[2],m[u+3]=c[3]};break;default:h=(m,u)=>{for(let d=0;d<r;d++)m[u+d]=c[d]}}switch(o){case 1:return(m,u,d,p)=>{l(m[u]),h(d,p)};case 2:return(m,u,d,p)=>{l(m[u],m[u+1]),h(d,p)};case 3:return(m,u,d,p)=>{l(m[u],m[u+1],m[u+2]),h(d,p)};case 4:return(m,u,d,p)=>{l(m[u],m[u+1],m[u+2],m[u+3]),h(d,p)};default:{let m=new Float64Array(o);return(u,d,p,g)=>{for(let b=0;b<o;b++)m[b]=u[d+b];l(...m),h(p,g)}}}})(new WebAssembly.Instance(new WebAssembly.Module(n),Dy).exports,t.length>>1,s.length>>1)}catch{return null}}var ja=class{constructor(t){this._onlyRefs=t?.onlyRefs===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new Pe}getByName(t){this._onlyRefs&&Zt("Should not call `getByName` method.");let s=this._nameRefMap.get(t);return s?this.getByRef(s):this._imageMap.get(t)||null}getByRef(t){return this._imageCache.get(t)||null}set(t,s,n){Zt("Abstract method `set` called.")}},fh=class extends ja{set(t,s=null,n){if(typeof t!="string")throw new Error(\'LocalImageCache.set - expected "name" argument.\');if(s){if(this._imageCache.has(s))return;this._nameRefMap.set(t,s),this._imageCache.put(s,n)}else this._imageMap.has(t)||this._imageMap.set(t,n)}},ch=class extends ja{set(t=null,s=null,n){if(typeof t!="string"&&!s)throw new Error(\'LocalColorSpaceCache.set - expected "name" and/or "ref" argument.\');if(s){if(this._imageCache.has(s))return;t!==null&&this._nameRefMap.set(t,s),this._imageCache.put(s,n)}else this._imageMap.has(t)||this._imageMap.set(t,n)}},gp=class extends ja{constructor(t){super({onlyRefs:!0})}set(t=null,s,n){if(!s)throw new Error(\'LocalFunctionCache.set - expected "ref" argument.\');this._imageCache.has(s)||this._imageCache.put(s,n)}},hh=class extends ja{set(t,s=null,n){if(typeof t!="string")throw new Error(\'LocalGStateCache.set - expected "name" argument.\');if(s){if(this._imageCache.has(s))return;this._nameRefMap.set(t,s),this._imageCache.put(s,n)}else this._imageMap.has(t)||this._imageMap.set(t,n)}},bp=class extends ja{constructor(t){super({onlyRefs:!0})}set(t=null,s,n){if(!s)throw new Error(\'LocalTilingPatternCache.set - expected "ref" argument.\');this._imageCache.has(s)||this._imageCache.put(s,n)}},wp=class extends ja{constructor(t){super({onlyRefs:!0})}set(t=null,s,n){if(!s)throw new Error(\'RegionalImageCache.set - expected "ref" argument.\');this._imageCache.has(s)||this._imageCache.put(s,n)}},jp=class extends ja{constructor(t){super({onlyRefs:!0})}set(t=null,s,n){if(!s)throw new Error(\'GlobalColorSpaceCache.set - expected "ref" argument.\');this._imageCache.has(s)||this._imageCache.put(s,n)}clear(){this._imageCache.clear()}},Wr,Zi,A8,qp,ta=class ta{constructor(){at(this,Zi);at(this,Wr,new re);this._refCache=new Pe,this._imageCache=new Pe}shouldCache(t,s){let n=this._refCache.getOrPutComputed(t,R4);return n.add(s),!(n.size<ta.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&S(this,Zi,qp))}addDecodeFailed(t){S(this,Wr).put(t)}hasDecodeFailed(t){return S(this,Wr).has(t)}addByteSize(t,s){let n=this._imageCache.get(t);n&&(n.byteSize||(n.byteSize=s))}getData(t,s){let n=this._refCache.get(t);if(!n||n.size<ta.NUM_PAGES_THRESHOLD)return null;let a=this._imageCache.get(t);return a?(n.add(s),a):null}setData(t,s){if(!this._refCache.has(t))throw new Error(\'GlobalImageCache.setData - expected "shouldCache" to have been called.\');this._imageCache.has(t)||(S(this,Zi,qp)?F("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(t,s))}clear(t=!1){t||(S(this,Wr).clear(),this._refCache.clear()),this._imageCache.clear()}};Wr=new WeakMap,Zi=new WeakSet,A8=function(){let t=0;for(let s of this._imageCache)t+=s.byteSize;return t},qp=function(){return!(this._imageCache.size<ta.MIN_IMAGES_TO_CACHE)&&!(S(this,Zi,A8)<ta.MAX_BYTE_SIZE)},Y(ta,"NUM_PAGES_THRESHOLD",2),Y(ta,"MIN_IMAGES_TO_CACHE",10),Y(ta,"MAX_BYTE_SIZE",5e7);var kp=ta,Ny=0,_y=2,Py=3,Uy=4,Qf,pu=class pu{static setOptions({useWasm:t}){Bt(this,Qf,t)}constructor({xref:t}){this.xref=t}get useWasm(){return S(pu,Qf)}create(t,s=!1){let n,a;if(t instanceof rt?n=t:t instanceof R?n=t.objId:t instanceof Et&&(n=t.dict?.objId),n){let o=this._localFunctionCache.getByRef(n);if(o)return o}let i=this.xref.fetchIfRef(t);if(Array.isArray(i)){if(!s)throw new Error(\'PDFFunctionFactory.create - expected "parseArray" argument.\');a=uh.parseArray(this,i)}else a=uh.parse(this,i);return n&&this._localFunctionCache.set(null,n,a),a}get _localFunctionCache(){return yt(this,"_localFunctionCache",new gp)}};Qf=new WeakMap,at(pu,Qf,!0);var Pl=pu;function Js(e){return Array.isArray(e)?Fe(e,null)?e:e.map(t=>+t):null}var uh=class{static getSampleArray(t,s,n,a){let i=s;for(let m of t)i*=m;let o=new Array(i),r=0,l=0,f=1/(2**n-1),c=a.getBytes((i*n+7)/8),h=0;for(let m=0;m<i;m++){for(;r<n;)l<<=8,l|=c[h++],r+=8;r-=n,o[m]=(l>>r)*f,l&=(1<<r)-1}return o}static parse(t,s){let n=s.dict||s,a=n.get("FunctionType");switch(a){case Ny:return this.constructSampled(t,s,n);case _y:return this.constructInterpolated(t,n);case Py:return this.constructStiched(t,n);case Uy:return this.constructPostScript(t,s,n)}throw new nt(`Unknown function type: ${a}`)}static parseArray(t,s){let{xref:n}=t,a=[];for(let i of s)a.push(this.parse(t,n.fetchIfRef(i)));return function(i,o,r,l){for(let f=0,c=a.length;f<c;f++)a[f](i,o,r,l+f)}}static constructSampled(t,s,n){function a(p,g,b,w,k){return w+(k-w)/(b-g)*(p-g)}let i=Js(n.getArray("Domain")),o=Js(n.getArray("Range"));if(!i||!o)throw new nt("No domain or range");let r=i.length/2,l=o.length/2,f=Js(n.getArray("Size")),c=n.get("BitsPerSample"),h=n.get("Order")||1;h!==1&&ie("No support for cubic spline interpolation: "+h);let m=Js(n.getArray("Encode"));if(!m){m=[];for(let p=0;p<r;++p)m.push(0,f[p]-1)}let u=Js(n.getArray("Decode"))||o,d=this.getSampleArray(f,l,c,s);return function(g,b,w,k){let q=1<<r,y=new Float64Array(q).fill(1),v=new Uint32Array(q),A,x,I=l,B=1;for(A=0;A<r;++A){let D=i[2*A],W=i[2*A+1],L=a(He(g[b+A],D,W),D,W,m[2*A],m[2*A+1]),ot=f[A];L=He(L,0,ot-1);let P=L<ot-1?Math.floor(L):L-1,H=P+1-L,V=L-P,C=P*I,M=C+I;for(x=0;x<q;x++)x&B?(y[x]*=V,v[x]+=M):(y[x]*=H,v[x]+=C);I*=ot,B<<=1}for(x=0;x<l;++x){let D=0;for(A=0;A<q;A++)D+=d[v[A]+x]*y[A];D=a(D,0,1,u[2*x],u[2*x+1]),w[k+x]=He(D,o[2*x],o[2*x+1])}}}static constructInterpolated(t,s){let n=Js(s.getArray("C0"))||[0],a=Js(s.getArray("C1"))||[1],i=s.get("N"),o=[];for(let l=0,f=n.length;l<f;++l)o.push(a[l]-n[l]);let r=o.length;return function(f,c,h,m){let u=i===1?f[c]:f[c]**i;for(let d=0;d<r;++d)h[m+d]=n[d]+u*o[d]}}static constructStiched(t,s){let n=Js(s.getArray("Domain"));if(!n)throw new nt("No domain");if(n.length/2!==1)throw new nt("Bad domain for stiched function");let{xref:a}=t,i=[];for(let f of s.get("Functions"))i.push(this.parse(t,a.fetchIfRef(f)));let o=Js(s.getArray("Bounds")),r=Js(s.getArray("Encode")),l=new Float32Array(1);return function(c,h,m,u){let d=He(c[h],n[0],n[1]),p=o.length,g;for(g=0;g<p&&!(d<o[g]);++g);let b=g>0?o[g-1]:n[0],w=g<p?o[g]:n[1],k=r[2*g],q=r[2*g+1];l[0]=b===w?k:k+(d-b)*(q-k)/(w-b),i[g](l,0,m,u)}}static constructPostScript(t,s,n){let a=Js(n.getArray("Domain")),i=Js(n.getArray("Range"));if(!a)throw new nt("No domain.");if(!i)throw new nt("No range.");let o=s.getString();try{if(t.useWasm){let r=Oy(o,a,i);if(r)return r}}catch{}return F("Failed to compile PostScript function to wasm, falling back to JS"),(function(l,f,c,h=!1){let m=k8(l),u=!h&&new vr(f,c).compile(m);return u?(d,p,g,b)=>{vr.execute(u,d,p,g,b)}:gr.build(m,f,c)})(o,a,i)}};function c0(e){let t;if(e instanceof R)t=e;else{if(!(e instanceof Et))return!1;t=e.dict}return t.has("FunctionType")}function I6(e){let t=e?null:Promise.resolve();return{enqueueInvoked:!1,enqueue(s,n){this.enqueueInvoked=!0,e?.enqueue(s,n)},get desiredSize(){return e?.desiredSize??100},get ready(){return e?.ready??t}}}function I8(e,t,s,n){if(++s>10){F("Visibility expression is too deeply nested");return}let a=t.length,i=e.fetchIfRef(t[0]);if(!(a<2)&&i instanceof it){switch(i.name){case"And":case"Or":case"Not":n.push(i.name);break;default:F(`Invalid operator ${i.name} in visibility expression`);return}for(let o=1;o<a;o++){let r=t[o],l=e.fetchIfRef(r);if(Array.isArray(l)){let f=[];n.push(f),I8(e,l,s,f)}else r instanceof rt&&n.push(r.toString())}}else F("Invalid visibility expression")}function C8(e,t,s){let n;if(t instanceof it)n=s.get("Properties").get(t.name);else{if(!(t instanceof R))throw new nt("Optional content properties malformed.");n=t}let a=n.get("Type")?.name;if(a==="OCG")return{type:a,id:n.objId};if(a==="OCMD"){let i=n.get("VE");if(Array.isArray(i)){let r=[];if(I8(e,i,0,r),r.length>0)return{type:"OCMD",expression:r}}let o=n.get("OCGs");if(Array.isArray(o)||o instanceof R){let r=[];if(Array.isArray(o))for(let f of o)r.push(f.toString());else r.push(o.objId);let l=n.get("P");return{type:a,ids:r,policy:l instanceof it?l.name:null,expression:null}}if(o instanceof rt)return{type:a,id:o.toString()}}return null}var Ly=["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","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","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","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],Ey=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","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","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","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function C6(e){return!!(1&e)}function Ky(e){return!(1&e)}function Wy(e,t,s){let n,a;for(n=t,a=e.length;n<a;++n)if(e[n]!==s)return n;return n}function H6(e,t,s){for(let n=t,a=s-1;n<a;++n,--a){let i=e[n];e[n]=e[a],e[a]=i}}function h0(e,t,s=!1){let n="ltr";return s?n="ttb":t||(n="rtl"),{str:e,dir:n}}var xa=[],fe=[];function D5(e,t=-1,s=!1){let n=!0,a=e.length;if(a===0||s)return h0(e,n,s);xa.length=a,fe.length=a;let i,o,r=0;for(i=0;i<a;++i){xa[i]=e.charAt(i);let b=e.charCodeAt(i),w="L";b<=255?w=Ly[b]:1424<=b&&b<=1524?w="R":1536<=b&&b<=1791?(w=Ey[255&b],w||F("Bidi: invalid Unicode character "+b.toString(16))):(1792<=b&&b<=2220||64336<=b&&b<=65023||65136<=b&&b<=65279)&&(w="AL"),w!=="R"&&w!=="AL"&&w!=="AN"||r++,fe[i]=w}if(r===0)return n=!0,h0(e,n);t===-1&&(r/a<.3&&a>4?(n=!0,t=0):(n=!1,t=1));let l=[];for(i=0;i<a;++i)l[i]=t;let f=C6(t)?"R":"L",c=f,h=c,m,u=c;for(i=0;i<a;++i)fe[i]==="NSM"?fe[i]=u:u=fe[i];for(u=c,i=0;i<a;++i)m=fe[i],m==="EN"?fe[i]=u==="AL"?"AN":"EN":m!=="R"&&m!=="L"&&m!=="AL"||(u=m);for(i=0;i<a;++i)m=fe[i],m==="AL"&&(fe[i]="R");for(i=1;i<a-1;++i)fe[i]==="ES"&&fe[i-1]==="EN"&&fe[i+1]==="EN"&&(fe[i]="EN"),fe[i]!=="CS"||fe[i-1]!=="EN"&&fe[i-1]!=="AN"||fe[i+1]!==fe[i-1]||(fe[i]=fe[i-1]);for(i=0;i<a;++i)if(fe[i]==="EN"){for(let b=i-1;b>=0&&fe[b]==="ET";--b)fe[b]="EN";for(let b=i+1;b<a&&fe[b]==="ET";++b)fe[b]="EN"}for(i=0;i<a;++i)m=fe[i],m!=="WS"&&m!=="ES"&&m!=="ET"&&m!=="CS"||(fe[i]="ON");for(u=c,i=0;i<a;++i)m=fe[i],m==="EN"?fe[i]=u==="L"?"L":"EN":m!=="R"&&m!=="L"||(u=m);for(i=0;i<a;++i)if(fe[i]==="ON"){let b=Wy(fe,i+1,"ON"),w=c;for(let q=i-1;q>=0;q--){let y=fe[q];if(y==="L"){w="L";break}if(y==="R"||y==="EN"||y==="AN"){w="R";break}}let k=h;for(let q=b;q<a;q++){let y=fe[q];if(y==="L"){k="L";break}if(y==="R"||y==="EN"||y==="AN"){k="R";break}}w===k&&fe.fill(w,i,b),i=b-1}for(i=0;i<a;++i)fe[i]==="ON"&&(fe[i]=f);for(i=0;i<a;++i)m=fe[i],Ky(l[i])?m==="R"?l[i]+=1:m!=="AN"&&m!=="EN"||(l[i]+=2):m!=="L"&&m!=="AN"&&m!=="EN"||(l[i]+=1);let d,p=-1,g=99;for(i=0,o=l.length;i<o;++i)d=l[i],p<d&&(p=d),g>d&&C6(d)&&(g=d);for(d=p;d>=g;--d){let b=-1;for(i=0,o=l.length;i<o;++i)l[i]<d?b>=0&&(H6(xa,b,i),b=-1):b<0&&(b=i);b>=0&&H6(xa,b,l.length)}for(i=0,o=xa.length;i<o;++i){let b=xa[i];b!=="<"&&b!==">"||(xa[i]="")}return h0(xa.join(""),n)}var ds={style:"normal",weight:"normal"},Wc={style:"normal",weight:"500"},Jn={style:"normal",weight:"bold"},ui={style:"italic",weight:"normal"},mi={style:"italic",weight:"bold"},ol=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","Linux Libertine O","Libertinus Serif","PT Astra Serif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:ds,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:Jn,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:ui,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:mi,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:ds,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:Jn,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:ui,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:mi,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono","Linux Libertine Mono O","Libertinus Mono"],style:ds,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:Jn,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:ui,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:mi,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:ds,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:Jn,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:ui,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:mi,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:ds,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:Jn,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:ui,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:mi,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:ds}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}],["\\xCB\\xCE\\xCC\\xE5",{local:["SimSun","SimSun Regular","NSimSun"],style:ds,ultimate:"serif"}],["\\xBA\\xDA\\xCC\\xE5",{local:["SimHei","SimHei Regular"],style:ds,ultimate:"sans-serif"}],["\\xBF\\xAC\\xCC\\xE5",{local:["KaiTi","SimKai","SimKai Regular"],style:ds,ultimate:"sans-serif"}],["\\xB7\\xC2\\xCB\\xCE",{local:["FangSong","SimFang","SimFang Regular"],style:ds,ultimate:"serif"}],["\\xBF\\xAC\\xCC\\xE5_GB2312",{alias:"\\xBF\\xAC\\xCC\\xE5"}],["\\xB7\\xC2\\xCB\\xCE_GB2312",{alias:"\\xB7\\xC2\\xCB\\xCE"}],["\\xC1\\xA5\\xCA\\xE9",{local:["SimLi","SimLi Regular"],style:ds,ultimate:"serif"}],["\\xD0\\xC2\\xCB\\xCE",{alias:"\\xCB\\xCE\\xCC\\xE5"}],["HeiseiMin-W3",{local:["Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho","YuMincho","Source Han Serif JP","Noto Serif JP","Noto Serif CJK JP","IPAexMincho","IPAMincho","Takao Mincho","MS Mincho","MS PMincho"],style:ds,ultimate:"serif"}],["HeiseiKakuGo-W5",{local:["Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","Hiragino Sans","Yu Gothic","YuGothic","Source Han Sans JP","Noto Sans JP","Noto Sans CJK JP","IPAexGothic","IPAGothic","Takao Gothic","Meiryo","MS Gothic","MS PGothic"],style:Wc,ultimate:"sans-serif"}],["HeiseiMin-W3-Acro",{alias:"HeiseiMin-W3"}],["HeiseiKakuGo-W5-Acro",{alias:"HeiseiKakuGo-W5"}],["KozMinPro-Regular",{alias:"HeiseiMin-W3"}],["KozMinProVI-Regular",{alias:"HeiseiMin-W3"}],["KozMinPr6N-Regular",{alias:"HeiseiMin-W3"}],["KozGoPro-Regular",{alias:"HeiseiKakuGo-W5"}],["KozGoProVI-Regular",{alias:"HeiseiKakuGo-W5"}],["KozGoPr6N-Regular",{alias:"HeiseiKakuGo-W5"}],["STSong-Light",{local:["STSong","Songti SC","Source Han Serif SC","Source Han Serif CN","Noto Serif SC","Noto Serif CJK SC","AR PL UMing CN","SimSun","NSimSun"],style:ds,ultimate:"serif"}],["STHeiti-Regular",{local:["STHeiti","Heiti SC","PingFang SC","Source Han Sans SC","Source Han Sans CN","Noto Sans SC","Noto Sans CJK SC","Microsoft YaHei","SimHei","WenQuanYi Zen Hei"],style:ds,ultimate:"sans-serif"}],["STSongStd-Light",{alias:"STSong-Light"}],["AdobeSongStd-Light",{alias:"STSong-Light"}],["AdobeHeitiStd-Regular",{alias:"STHeiti-Regular"}],["AdobeKaitiStd-Regular",{alias:"\\xBF\\xAC\\xCC\\xE5"}],["AdobeFangsongStd-Regular",{alias:"\\xB7\\xC2\\xCB\\xCE"}],["MSung-Light",{local:["Songti TC","LiSong Pro","Source Han Serif TC","Source Han Serif TW","Noto Serif TC","Noto Serif CJK TC","AR PL UMing TW","PMingLiU","MingLiU","MingLiU_HKSCS"],style:ds,ultimate:"serif"}],["MHei-Medium",{local:["Heiti TC","STHeiti","Source Han Sans TC","Source Han Sans TW","Noto Sans TC","Noto Sans CJK TC","PingFang TC","Microsoft JhengHei"],style:Wc,ultimate:"sans-serif"}],["MSungStd-Light",{alias:"MSung-Light"}],["AdobeMingStd-Light",{alias:"MSung-Light"}],["HYSMyeongJo-Medium",{local:["AppleMyungjo","Source Han Serif KR","Noto Serif KR","Noto Serif CJK KR","Nanum Myeongjo","Batang"],style:Wc,ultimate:"serif"}],["HYGoThic-Medium",{local:["Apple SD Gothic Neo","AppleGothic","Source Han Sans KR","Noto Sans KR","Noto Sans CJK KR","Nanum Gothic","Malgun Gothic","Dotum","Gulim"],style:Wc,ultimate:"sans-serif"}],["HYSMyeongJoStd-Medium",{alias:"HYSMyeongJo-Medium"}],["AdobeMyungjoStd-Medium",{alias:"HYSMyeongJo-Medium"}],["HYGoThic-Bold",{alias:"HYGoThic-Medium",style:Jn}],["AdobeGothicStd-Bold",{alias:"HYGoThic-Medium",style:Jn}]]),Vy=new Map([["Arial-Black","ArialBlack"]]);function B6(e){let t=new Set(["thin","extralight","ultralight","demilight","semilight","light","book","regular","normal","medium","demibold","semibold","bold","extrabold","ultrabold","black","heavy","extrablack","ultrablack","roman","italic","oblique","ultracondensed","extracondensed","condensed","semicondensed","normal","semiexpanded","expanded","extraexpanded","ultraexpanded","bolditalic"]);return e.split(/[- ,+]+/g).filter(s=>!t.has(s.toLowerCase())).join(" ")}function yp({alias:e,local:t,path:s,fallback:n,style:a,ultimate:i},o,r,l=!0,f=!0,c=""){let h={style:null,ultimate:null};if(t){let m=c?` ${c}`:"";for(let u of t)o.push(`local(${u}${m})`)}if(e){let m=ol.get(e),u=c||(function(p){switch(p){case Jn:return"Bold";case ui:return"Italic";case mi:return"Bold Italic";default:if(p?.weight==="bold")return"Bold";if(p?.style==="italic")return"Italic"}return""})(a);Object.assign(h,yp(m,o,r,l&&!n,f&&!s,u))}if(a&&(h.style=a),i&&(h.ultimate=i),l&&n){let m=ol.get(n),{ultimate:u}=yp(m,o,r,l,f&&!s,c);h.ultimate||(h.ultimate=u)}return f&&s&&r&&o.push(`url(${r}${s})`),h}function u0(e,t,s,n,a,i){if(n.startsWith("InvalidPDFjsFont_"))return null;i!=="TrueType"&&i!=="Type1"||!/^[A-Z]{6}\\+/.test(n)||(n=n.slice(7));let o=n=Za(n),r=e.get(o);if(r)return r;let l=ol.get(n);if(!l){for(let[g,b]of Vy)if(n.startsWith(g)){n=`${b}${n.substring(g.length)}`,l=ol.get(n);break}}let f=!1;l||(l=ol.get(a),f=!0);let c=`${t.getDocId()}_s${t.createFontId()}`;if(!l){if(!Y0(n))return F(`Cannot substitute the font because of its name: ${n}`),e.set(o,null),null;let g=/bold/i.test(n),b=/oblique|italic/i.test(n),w=g&&b&&mi||g&&Jn||b&&ui||ds;return r={css:`"${B6(n)}",${c}`,guessFallback:!0,loadedName:c,baseFontName:n,src:`local(${n})`,style:w},e.set(o,r),r}let h=[];f&&Y0(n)&&h.push(`local(${n})`);let{style:m,ultimate:u}=yp(l,h,s),d=u===null,p=d?"":`,${u}`;return r={css:`"${B6(n)}",${c}${p}`,guessFallback:d,loadedName:c,baseFontName:n,src:h.join(","),style:m},e.set(o,r),r}var T6=3285377520,Qs=4294901760,Sa=65535,mh=class{constructor(t){this.h1=t?4294967295&t:T6,this.h2=t?4294967295&t:T6}update(t){let s,n;if(typeof t=="string"){s=new Uint8Array(2*t.length),n=0;for(let p=0,g=t.length;p<g;p++){let b=t.charCodeAt(p);b<=255?s[n++]=b:(s[n++]=b>>>8,s[n++]=255&b)}}else{if(!ArrayBuffer.isView(t))throw new Error("Invalid data format, must be a string or TypedArray.");s=t.slice(),n=s.byteLength}let a=n>>2,i=n-4*a,o=new Uint32Array(s.buffer,0,a),r=0,l=0,f=this.h1,c=this.h2,h=3432918353,m=461845907,u=11601,d=13715;for(let p=0;p<a;p++)1&p?(r=o[p],r=r*h&Qs|r*u&Sa,r=r<<15|r>>>17,r=r*m&Qs|r*d&Sa,f^=r,f=f<<13|f>>>19,f=5*f+3864292196):(l=o[p],l=l*h&Qs|l*u&Sa,l=l<<15|l>>>17,l=l*m&Qs|l*d&Sa,c^=l,c=c<<13|c>>>19,c=5*c+3864292196);switch(r=0,i){case 3:r^=s[4*a+2]<<16;case 2:r^=s[4*a+1]<<8;case 1:r^=s[4*a],r=r*h&Qs|r*u&Sa,r=r<<15|r>>>17,r=r*m&Qs|r*d&Sa,1&a?f^=r:c^=r}this.h1=f,this.h2=c}hexdigest(){let t=this.h1,s=this.h2;return t^=s>>>1,t=3981806797*t&Qs|36045*t&Sa,s=4283543511*s&Qs|(2950163797*(s<<16|t>>>16)&Qs)>>>16,t^=s>>>1,t=444984403*t&Qs|60499*t&Sa,s=3301882366*s&Qs|(3120437893*(s<<16|t>>>16)&Qs)>>>16,t^=s>>>1,(t>>>0).toString(16).padStart(8,"0")+(s>>>0).toString(16).padStart(8,"0")}},Zf,vp,tc,xp,ea=class ea{constructor({xref:t,res:s,image:n,isInline:a=!1,smask:i=null,mask:o=null,isMask:r=!1,pdfFunctionFactory:l,globalColorSpaceCache:f,localColorSpaceCache:c}){at(this,tc);this.image=n;let h=n.dict,m=h.get("F","Filter"),u;if(m instanceof it)u=m.name;else if(Array.isArray(m)){let b=t.fetchIfRef(m[0]);b instanceof it&&(u=b.name)}switch(u){case"JPXDecode":({width:n.width,height:n.height,componentsCount:n.numComps,bitsPerComponent:n.bitsPerComponent}=$1.parseImageProperties(n.stream)),n.stream.reset();let b=tn.getReducePowerForJPX(n.width,n.height,n.numComps);if(this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:h.get("SMaskInData")>=1,reducePower:b},b){let w=2**b;n.width=Math.ceil(n.width/w),n.height=Math.ceil(n.height/w)}break;case"JBIG2Decode":n.bitsPerComponent=1,n.numComps=1}let d=h.get("W","Width"),p=h.get("H","Height");if(Number.isInteger(n.width)&&n.width>0&&Number.isInteger(n.height)&&n.height>0&&(n.width!==d||n.height!==p))F("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),d=n.width,p=n.height;else{let b=typeof d=="number"&&d>0,w=typeof p=="number"&&p>0;if(!b||!w){if(!n.fallbackDims)throw new nt(`Invalid image width: ${d} or height: ${p}`);F("PDFImage - using the Width/Height of the parent image, for SMask/Mask data."),b||(d=n.fallbackDims.width),w||(p=n.fallbackDims.height)}}this.width=d,this.height=p,this.interpolate=h.get("I","Interpolate"),this.imageMask=h.get("IM","ImageMask")||!1,this.matte=h.get("Matte")||!1;let g=n.bitsPerComponent;if(!g&&(g=h.get("BPC","BitsPerComponent"),!g)){if(!this.imageMask)throw new nt(`Bits per component missing in image: ${this.imageMask}`);g=1}if(this.bpc=g,this.imageMask)this.numComps=1;else{let b=h.getRaw("CS")||h.getRaw("ColorSpace"),w=!!b;if(this.jpxDecoderOptions?.smaskInData&&h.get("SMaskInData")===2&&(this.jpxPremultiplied=!0,this.matte)){let k=ae.parse({cs:w?b:it.get("DeviceRGB"),xref:t,resources:a?s:null,pdfFunctionFactory:l,globalColorSpaceCache:f,localColorSpaceCache:c});this.preblendMatte=k.getRgb(this.matte,0)}if(w)this.jpxDecoderOptions?.smaskInData&&(b=it.get("DeviceRGBA"));else if(this.jpxDecoderOptions)b=it.get("DeviceRGBA");else switch(n.numComps){case 1:b=it.get("DeviceGray");break;case 3:b=it.get("DeviceRGB");break;case 4:b=it.get("DeviceCMYK");break;default:throw new Error(`Images with ${n.numComps} color components not supported.`)}this.colorSpace=ae.parse({cs:b,xref:t,resources:a?s:null,pdfFunctionFactory:l,globalColorSpaceCache:f,localColorSpaceCache:c}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=w?this.numComps:0,this.jpxDecoderOptions.isIndexedColormap=this.colorSpace.name==="Indexed")}if(this.decode=h.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,g)||r&&!hs.isDefaultDecode(this.decode,1))){this.needsDecode=!0;let b=(1<<g)-1;this.decodeCoefficients=[],this.decodeAddends=[];let w=this.colorSpace?.name==="Indexed";for(let k=0,q=0;k<this.decode.length;k+=2,++q){let y=this.decode[k],v=this.decode[k+1];this.decodeCoefficients[q]=w?(v-y)/b:v-y,this.decodeAddends[q]=w?y:b*y}}i?(i.fallbackDims??(i.fallbackDims={width:d,height:p}),this.smask=new ea({xref:t,res:s,image:i,isInline:a,pdfFunctionFactory:l,globalColorSpaceCache:f,localColorSpaceCache:c})):o&&(o instanceof Et?o.dict.get("IM","ImageMask")?(o.fallbackDims??(o.fallbackDims={width:d,height:p}),this.mask=new ea({xref:t,res:s,image:o,isInline:a,isMask:!0,pdfFunctionFactory:l,globalColorSpaceCache:f,localColorSpaceCache:c})):F("Ignoring /Mask in image without /ImageMask."):this.mask=o)}static async buildImage({xref:t,res:s,image:n,isInline:a=!1,pdfFunctionFactory:i,globalColorSpaceCache:o,localColorSpaceCache:r}){let l=n,f=null,c=null,h=n.dict.get("SMask"),m=n.dict.get("Mask");return h?h instanceof Et?f=h:F("Unsupported /SMask format."):m&&(m instanceof Et||Array.isArray(m)?c=m:F("Unsupported /Mask format.")),new ea({xref:t,res:s,image:l,isInline:a,smask:f,mask:c,pdfFunctionFactory:i,globalColorSpaceCache:o,localColorSpaceCache:r})}static async createMask({image:t,isOffscreenCanvasSupported:s=!1}){let{dict:n}=t,a=n.get("W","Width"),i=n.get("H","Height"),o=n.get("I","Interpolate"),r=n.getArray("D","Decode"),l=r?.[0]>0,f=(a+7>>3)*i,c=await t.getImageData(f),h=a===1&&i===1&&l===(c.length===0||!!(128&c[0]));if(h)return{isSingleOpaquePixel:h};if(s){if(tn.needsToBeResized(a,i)){let b=new Uint8ClampedArray(a*i*4);return hm({src:c,dest:b,width:a,height:i,nonBlackColor:0,inverseDecode:l}),tn.createImage({kind:sa,data:b,width:a,height:i,interpolate:o})}let d=new OffscreenCanvas(a,i),p=d.getContext("2d"),g=p.createImageData(a,i);return hm({src:c,dest:g.data,width:a,height:i,nonBlackColor:0,inverseDecode:l}),p.putImageData(g,0,0),{data:null,width:a,height:i,interpolate:o,bitmap:d.transferToImageBitmap()}}let m=c.byteLength,u;if(t instanceof os&&(!l||f===m)?u=c:l?(u=new Uint8Array(f),u.set(c),u.fill(255,m)):u=new Uint8Array(c),l)for(let d=0;d<m;d++)u[d]^=255;return{data:u,width:a,height:i,interpolate:o}}get drawWidth(){return Math.max(this.width,this.smask?.width||0,this.mask?.width||0)}get drawHeight(){return Math.max(this.height,this.smask?.height||0,this.mask?.height||0)}decodeBuffer(t){let s=this.bpc,n=this.numComps,a=this.decodeAddends,i=this.decodeCoefficients,o=(1<<s)-1,r,l;if(s===1){for(r=0,l=t.length;r<l;r++)t[r]=+!t[r];return}let f=0;for(r=0,l=this.width*this.height;r<l;r++)for(let c=0;c<n;c++)t[f]=He(a[c]+t[f]*i[c],0,o),f++}getComponents(t){let s=this.bpc;if(s===8)return t;let n=this.width,a=this.height,i=this.numComps,o=n*a*i,r,l=0;r=s<=8?new Uint8Array(o):s<=16?new Uint16Array(o):new Uint32Array(o);let f=n*i,c=(1<<s)-1,h,m,u=0;if(s===1){let d,p,g;for(let b=0;b<a;b++){for(p=u+(-8&f),g=u+f;u<p;)m=t[l++],r[u]=m>>7&1,r[u+1]=m>>6&1,r[u+2]=m>>5&1,r[u+3]=m>>4&1,r[u+4]=m>>3&1,r[u+5]=m>>2&1,r[u+6]=m>>1&1,r[u+7]=1&m,u+=8;if(u<g)for(m=t[l++],d=128;u<g;)r[u++]=+!!(m&d),d>>=1}}else{let d=0;for(m=0,u=0,h=o;u<h;++u){for(u%f===0&&(m=0,d=0);d<s;)m=m<<8|t[l++],d+=8;let p=d-s;r[u]=He(m>>p,0,c),m&=(1<<p)-1,d=p}}return r}async fillOpacity(t,s,n,a,i){let o;if(this.smask)o=(r,l)=>this.smask.fillGrayBuffer(r,{...l,destWidth:s,destHeight:n});else if(this.mask)if(this.mask instanceof ea)o=(r,l)=>this.mask.fillGrayBuffer(r,{...l,invertOutput:!0,destWidth:s,destHeight:n});else{if(!Array.isArray(this.mask))throw new nt("Unknown mask format.");o=(r,{maxRows:l,offset:f,stride:c})=>{for(let h=0,m=s*l;h<m;++h){let u=0,d=h*this.numComps;for(let p=0;p<this.numComps;++p){let g=i[d+p],b=2*p;if(g<this.mask[b]||g>this.mask[b+1]){u=255;break}}r[h*c+f]=u}}}else o=(r,{maxRows:l,offset:f,stride:c})=>{for(let h=0,m=s*l;h<m;++h)r[h*c+f]=255};await o(t,{maxRows:a,offset:3,stride:4})}undoPreblend(t,s,n){var o;let a=this.smask?.matte;if(!a)return;let i=this.colorSpace.getRgb(a,0);N(o=ea,Zf,vp).call(o,t,s*n*4,i[0],i[1],i[2])}async createImageData(t=!1,s=!1){var y;let n=this.drawWidth,a=this.drawHeight,i={width:n,height:a,interpolate:this.interpolate,kind:0,data:null},o=this.numComps,r=this.width,l=this.height,f=this.bpc,c=r*o*f+7>>3,h=s&&tn.needsToBeResized(n,a);if(!this.smask&&!this.mask&&this.colorSpace.name==="DeviceRGBA"){i.kind=sa;let v=i.data=await this.getImageBytes(l*r*4,{internal:s&&h});if(this.jpxPremultiplied){let A=this.preblendMatte;N(y=ea,Zf,vp).call(y,v,v.length,A?.[0]??0,A?.[1]??0,A?.[2]??0)}return s?h?tn.createImage(i,!1):this.createBitmap(sa,n,a,v):i}if(!t&&!this.smask&&!this.mask){let v;if(this.colorSpace.name==="DeviceGray"&&f===1?v=q1:this.colorSpace.name!=="DeviceRGB"||f!==8||this.needsDecode||(v=Yo),v&&n===r&&a===l){let A=await N(this,tc,xp).call(this,r,l);if(A)return A;let x=await this.getImageBytes(l*c,{internal:s&&h});if(s)return h?tn.createImage({data:x,kind:v,width:n,height:a,interpolate:this.interpolate},this.needsDecode):this.createBitmap(v,r,l,x);if(i.kind=v,i.data=x,this.needsDecode){Ae(v===q1,"PDFImage.createImageData: The image must be grayscale.");let I=i.data;for(let B=0,D=I.length;B<D;B++)I[B]^=255}return i}if(this.image instanceof fo&&!this.needsDecode){let A=!1;switch(this.colorSpace.name){case"DeviceGray":case"DeviceRGB":case"DeviceCMYK":A=!0}if(A){if(s){let I=await N(this,tc,xp).call(this,n,a);if(I)return I}let x=l*c;if(s&&!h){switch(this.colorSpace.name){case"DeviceGray":x*=4;break;case"DeviceRGB":x=x/3*4}let I=await this.getImageBytes(x,{drawWidth:n,drawHeight:a,forceRGBA:!0,internal:!0});return this.createBitmap(sa,n,a,I)}return this.colorSpace.name==="DeviceGray"&&(x*=3),i.kind=Yo,i.data=await this.getImageBytes(x,{drawWidth:n,drawHeight:a,forceRGB:!0,internal:h}),h?tn.createImage(i):i}}}let m=await this.getImageBytes(l*c,{internal:!0}),u=0|m.length/c*a/l,d=this.getComponents(m),p,g,b,w,k,q;return s&&!h&&(b=new OffscreenCanvas(n,a),w=b.getContext("2d"),k=w.createImageData(n,a),q=k.data),i.kind=sa,t||this.smask||this.mask?(s&&!h||(q=new Uint8ClampedArray(n*a*4)),p=1,g=!0,await this.fillOpacity(q,n,a,u,d)):(!s||h?(i.kind=Yo,q=new Uint8ClampedArray(n*a*3),p=0):(new Uint32Array(q.buffer).fill(us.isLittleEndian?4278190080:255),p=1),g=!1),this.needsDecode&&this.decodeBuffer(d),this.colorSpace.fillRgb(q,r,l,n,a,u,f,d,p),g&&this.undoPreblend(q,n,u),s&&!h?(w.putImageData(k,0,0),{data:null,width:n,height:a,bitmap:b.transferToImageBitmap(),interpolate:this.interpolate}):(i.data=q,h?tn.createImage(i):i)}async fillGrayBuffer(t,{destWidth:s,destHeight:n,invertOutput:a,maxRows:i,offset:o=0,stride:r=1}={}){let l=this.numComps;if(l!==1)throw new nt(`Reading gray scale from a color image: ${l}`);let f=this.width,c=this.height,h=this.bpc,m=f*l*h+7>>3,u=await this.getImageBytes(c*m,{internal:!0}),d=this.getComponents(u),p=s??f,g=n??c,b=p!==f||g!==c,w=i===void 0?g:Math.min(g,i),k=f,q=0,y=null;if(b){k=p,q=c/g;let x=f/p;y=new Uint32Array(p);for(let I=0;I<p;I++)y[I]=Math.floor(I*x)}let v=a?255:0;if(h===1){if(y){let x=y,I=o;if(this.needsDecode)for(let B=0;B<w;B++){let D=Math.floor(B*q)*f;for(let W=0;W<k;W++)t[I]=d[D+x[W]]-1&255^v,I+=r}else for(let B=0;B<w;B++){let D=Math.floor(B*q)*f;for(let W=0;W<k;W++)t[I]=255&-d[D+x[W]]^v,I+=r}}else{let x=k*w;if(this.needsDecode)for(let I=0;I<x;++I)t[I*r+o]=d[I]-1&255^v;else for(let I=0;I<x;++I)t[I*r+o]=255&-d[I]^v}return}this.needsDecode&&this.decodeBuffer(d);let A=255/((1<<h)-1);if(y){let x=y,I=o;for(let B=0;B<w;B++){let D=Math.floor(B*q)*f;for(let W=0;W<k;W++)t[I]=A*d[D+x[W]]^v,I+=r}}else{let x=k*w;for(let I=0;I<x;++I)t[I*r+o]=A*d[I]^v}}createBitmap(t,s,n,a){let i=new OffscreenCanvas(s,n),o=i.getContext("2d"),r;return t===sa?r=new ImageData(a,s,n):(r=o.createImageData(s,n),X4({kind:t,src:a,dest:new Uint32Array(r.data.buffer),width:s,height:n,inverseDecode:this.needsDecode})),o.putImageData(r,0,0),{data:null,width:s,height:n,bitmap:i.transferToImageBitmap(),interpolate:this.interpolate}}async getImageBytes(t,{drawWidth:s,drawHeight:n,forceRGBA:a=!1,forceRGB:i=!1,internal:o=!1}){this.image.reset(),this.image.drawWidth=s||this.width,this.image.drawHeight=n||this.height,this.image.forceRGBA=!!a,this.image.forceRGB=!!i;let r=await this.image.getImageData(t,this.jpxDecoderOptions);return o||this.image instanceof os?r:(Ae(r instanceof Uint8Array,\'PDFImage.getImageBytes: Unsupported "imageBytes" type.\'),new Uint8Array(r))}};Zf=new WeakSet,vp=function(t,s,n,a,i){for(let o=0;o<s;o+=4){let r=t[o+3];if(r===0){t[o]=255,t[o+1]=255,t[o+2]=255;continue}let l=255/r;t[o]=(t[o]-n)*l+n,t[o+1]=(t[o+1]-a)*l+a,t[o+2]=(t[o+2]-i)*l+i}},tc=new WeakSet,xp=async function(t,s){let n=await this.image.getTransferableImage(t,s);return n?{data:null,width:n.displayWidth??t,height:n.displayHeight??s,bitmap:n,interpolate:this.interpolate}:null},at(ea,Zf);var ll=ea,$y=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,cMapPacked:!0,iccUrl:null,standardFontDataUrl:null,wasmUrl:null,hasGPU:!1}),Gy=1,Xy=2,R6=Promise.resolve();function H8(e,t=!1){if(Array.isArray(e)){for(let s of e){let n=H8(s,!0);if(n)return n}return F(`Unsupported blend mode Array: ${e}`),"source-over"}if(e instanceof it){switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}F(`Unsupported blend mode: ${e.name}`)}return t?null:"source-over"}function m0(e,{objId:t,fn:s,args:n,optionalContent:a,hasMask:i}){t&&e.addDependency(t),e.addImageOps(s,n,a,i),s===ao&&n[0]?.count>0&&n[0].count++}var Ir=class Ir{constructor(){this.reset()}check(){return++this.checked<Ir.CHECK_TIME_EVERY?!1:(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+Ir.TIME_SLOT_DURATION_MS,this.checked=0}};Y(Ir,"TIME_SLOT_DURATION_MS",20),Y(Ir,"CHECK_TIME_EVERY",100);var ph=Ir,ec,Sp,du=class du{constructor({xref:t,handler:s,pageIndex:n,idFactory:a,fontCache:i,builtInCMapCache:o,standardFontDataCache:r,globalColorSpaceCache:l,globalImageCache:f,systemFontCache:c,options:h=null}){at(this,ec);this.xref=t,this.handler=s,this.pageIndex=n,this.idFactory=a,this.fontCache=i,this.builtInCMapCache=o,this.standardFontDataCache=r,this.globalColorSpaceCache=l,this.globalImageCache=f,this.systemFontCache=c,this.options=h||$y,this.type3FontRefs=null,this._regionalImageCache=new wp,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){return yt(this,"_pdfFunctionFactory",new Pl({xref:this.xref}))}get parsingType3Font(){return!!this.type3FontRefs}clone(t=null){let s=Object.create(this);return s.options=Object.assign(Object.create(null),this.options,t),s}hasBlendModes(t,s){if(!(t instanceof R)||t.objId&&s.has(t.objId))return!1;let n=new re(s);t.objId&&n.put(t.objId);let a=[t],i=this.xref;for(;a.length;){let o=a.shift(),r=o.get("ExtGState");if(r instanceof R)for(let f of r.getRawValues()){if(f instanceof rt){if(n.has(f))continue;try{f=i.fetch(f)}catch(h){n.put(f),ie(`hasBlendModes - ignoring ExtGState: "${h}".`);continue}}if(!(f instanceof R))continue;f.objId&&n.put(f.objId);let c=f.get("BM");if(c instanceof it){if(c.name!=="Normal")return!0}else if(c!==void 0&&Array.isArray(c)){for(let h of c)if(h instanceof it&&h.name!=="Normal")return!0}}let l=o.get("XObject");if(l instanceof R)for(let f of l.getRawValues()){if(f instanceof rt){if(n.has(f))continue;try{f=i.fetch(f)}catch(h){n.put(f),ie(`hasBlendModes - ignoring XObject: "${h}".`);continue}}if(!(f instanceof Et))continue;f.dict.objId&&n.put(f.dict.objId);let c=f.dict.get("Resources");c instanceof R&&(!c.objId||!n.has(c.objId))&&(a.push(c),c.objId&&n.put(c.objId))}}for(let o of n)s.put(o);return!1}async fetchBuiltInCMap(t){let s=this.builtInCMapCache.get(t);if(s)return s;let n;return n=this.options.useWorkerFetch?{cMapData:await G0(`${this.options.cMapUrl}${t}.bcmap`),isCompressed:!0}:{cMapData:await this.handler.sendWithPromise("FetchBinaryData",{kind:"cMapUrl",filename:`${t}${this.options.cMapPacked?".bcmap":""}`}),isCompressed:this.options.cMapPacked},this.builtInCMapCache.set(t,n),n}async fetchStandardFontData(t){let s=this.standardFontDataCache.get(t);if(s)return new ke(s);if(this.options.useSystemFonts&&t!=="Symbol"&&t!=="ZapfDingbats")return null;let n=Sq()[t],a;try{a=this.options.useWorkerFetch?await G0(`${this.options.standardFontDataUrl}${n}`):await this.handler.sendWithPromise("FetchBinaryData",{kind:"standardFontDataUrl",filename:n})}catch(i){return F(i),null}return this.standardFontDataCache.set(t,a),new ke(a)}async buildFormXObject(t,s,n,a,i,o,r,l){let{dict:f}=s,c=la(f.getArray("Matrix"),null),h=Wn(f.getArray("BBox"),null),m,u,d=h&&new Float32Array(h);d?.some(k=>!isFinite(k))&&(d=null),f.has("OC")&&(m=await this.parseMarkedContentProps(f.get("OC"),t)),m!==void 0&&a.addOp(Dn,["OC",m]);let p=f.get("Group"),g,b=[c&&new Float32Array(c),!p&&d||null],w=f.get("Resources");if(p){u={matrix:c,bbox:d,smask:n,isolated:!1,knockout:!1,needsIsolation:!1,hasSoftMask:!1,isGray:!1};let k=null;if($t(p.get("S"),"Transparency")&&(u.isolated=p.get("I")||!1,u.knockout=p.get("K")||!1,p.has("CS"))){let q=this._getColorSpace(p.getRaw("CS"),t,r);k=q instanceof hs?q:await this._handleColorSpace(q)}u.isGray=k?.numComps===1,n?.backdrop?(k||(k=ae.rgb),n.backdrop=k.getRgbHex(n.backdrop,0)):n?.subtype==="Luminosity"&&(n.backdrop="#000000"),g=new E1}else g=a,a.addOp(P0,b);await this.getOperatorList({stream:s,task:i,resources:w instanceof R?w:t,operatorList:g,initialState:o,prevRefs:l}),p?(u.needsIsolation=g.needsIsolation||!!n,u.hasSoftMask=g.hasSoftMask||!!n,a.addOp(H4,[u]),a.addOp(P0,b),a.addOpList(g),a.addOp(p3,[]),a.addOp(bk,[u])):a.addOp(p3,[]),m!==void 0&&a.addOp(Va,[])}_sendImgData(t,s,n=!1){let a=s?[s.bitmap||s.data.buffer]:null;return this.parsingType3Font||n?this.handler.send("commonobj",[t,"Image",s],a):this.handler.send("obj",[t,this.pageIndex,"Image",s],a)}async buildPaintImageXObject({resources:t,image:s,isInline:n=!1,operatorList:a,cacheKey:i,localImageCache:o,localColorSpaceCache:r}){let{maxImageSize:l,ignoreErrors:f,isOffscreenCanvasSupported:c}=this.options,{dict:h}=s,m=h.objId,u=h.get("W","Width"),d=h.get("H","Height");if(!u||typeof u!="number"||!d||typeof d!="number"){F("Image dimensions are missing, or not numbers.");return}if(l!==-1&&u*d>l){let A="Image exceeded maximum allowed size and was removed.";if(!f)throw new Error(A);F(A);return}let p;h.has("OC")&&(p=await this.parseMarkedContentProps(h.get("OC"),t));let g,b,w;if(h.get("IM","ImageMask")){if(g=await ll.createMask({image:s,isOffscreenCanvasSupported:c&&!this.parsingType3Font}),g.isSingleOpaquePixel){if(b=qk,w=[],a.addImageOps(b,w,p),i){let x={fn:b,args:w,optionalContent:p};o.set(i,m,x),m&&this._regionalImageCache.set(null,m,x)}return}if(this.parsingType3Font){if(w=(function({data:I,width:B,height:D}){if(B>1e3||D>1e3)return null;let W=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),L=B+1,ot=new Uint8Array(L*(D+1)),P,H,V,C=B+7&-8,M=new Uint8Array(C*D),J=0;for(let Ft of I){let mt=128;for(;mt>0;)M[J++]=Ft&mt?0:255,mt>>=1}let et=0;for(J=0,M[J]!==0&&(ot[0]=1,++et),H=1;H<B;H++)M[J]!==M[J+1]&&(ot[H]=M[J]?2:1,++et),J++;for(M[J]!==0&&(ot[H]=2,++et),P=1;P<D;P++){J=P*C,V=P*L,M[J-C]!==M[J]&&(ot[V]=M[J]?1:8,++et);let Ft=(M[J]?4:0)+(M[J-C]?8:0);for(H=1;H<B;H++)Ft=(Ft>>2)+(M[J+1]?4:0)+(M[J-C+1]?8:0),W[Ft]&&(ot[V+H]=W[Ft],++et),J++;if(M[J-C]!==M[J]&&(ot[V+H]=M[J]?2:4,++et),et>1e3)return null}for(J=C*(D-1),V=P*L,M[J]!==0&&(ot[V]=8,++et),H=1;H<B;H++)M[J]!==M[J+1]&&(ot[V+H]=M[J]?4:8,++et),J++;if(M[J]!==0&&(ot[V+H]=4,++et),et>1e3)return null;let U=new Int32Array([0,L,-1,0,-L,0,0,0,1]),_=[],{a:ht,b:vt,c:G,d:It,e:jt,f:kt}=new DOMMatrix().scaleSelf(1/B,-1/D).translateSelf(0,-D);for(P=0;et&&P<=D;P++){let Ft=P*L,mt=Ft+B;for(;Ft<mt&&!ot[Ft];)Ft++;if(Ft===mt)continue;let ct=Ft%L,tt=P;_.push(wi,ht*ct+G*tt+jt,vt*ct+It*tt+kt);let lt=Ft,Z=ot[Ft];do{let pt=U[Z];do Ft+=pt;while(!ot[Ft]);let Nt=ot[Ft];Nt!==5&&Nt!==10?(Z=Nt,ot[Ft]=0):(Z=Nt&51*Z>>4,ot[Ft]&=Z>>2|Z<<2),ct=Ft%L,tt=Ft/L|0,_.push(xn,ht*ct+G*tt+jt,vt*ct+It*tt+kt),ot[Ft]||--et}while(lt!==Ft);--P}return[xk,[new Float32Array(_)],new Float32Array([0,0,B,D])]})(g),w){a.addImageOps(Mi,w,p);return}F("Cannot compile Type3 glyph."),a.addImageOps(ao,[g],p);return}let A=`mask_${this.idFactory.createObjId()}`;if(a.addDependency(A),g.dataLen=g.bitmap?g.width*g.height*4:g.data.length,this._sendImgData(A,g),b=ao,w=[{data:A,width:g.width,height:g.height,interpolate:g.interpolate,count:1}],a.addImageOps(b,w,p),i){let x={objId:A,fn:b,args:w,optionalContent:p};o.set(i,m,x),m&&this._regionalImageCache.set(null,m,x)}return}let k=h.has("SMask")||h.has("Mask");if(n&&u+d<200&&!k){try{g=await new ll({xref:this.xref,res:t,image:s,isInline:n,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:r}).createImageData(!0,!1),a.addImageOps(F1,[g],p)}catch(A){let x=`Unable to decode inline image: "${A}".`;if(!f)throw new Error(x);F(x)}return}let q=`img_${this.idFactory.createObjId()}`,y=!1,v=null;if(this.parsingType3Font?q=`${this.idFactory.getDocId()}_type3_${q}`:i&&m&&(y=this.globalImageCache.shouldCache(m,this.pageIndex),y&&(Ae(!n,"Cannot cache an inline image globally."),q=`${this.idFactory.getDocId()}_${q}`)),a.addDependency(q),b=U0,w=[q,u,d],a.addImageOps(b,w,p,k),y){if(v={objId:q,fn:b,args:w,optionalContent:p,hasMask:k,byteSize:0},this.globalImageCache.hasDecodeFailed(m)){this.globalImageCache.setData(m,v),this._sendImgData(q,null,y);return}if(u*d>25e4||k){let A=await this.handler.sendWithPromise("commonobj",[q,"CopyLocalImage",{imageRef:m}]);if(A){this.globalImageCache.setData(m,v),this.globalImageCache.addByteSize(m,A);return}}}if(ll.buildImage({xref:this.xref,res:t,image:s,isInline:n,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:r}).then(async A=>(g=await A.createImageData(!1,c),g.dataLen=g.bitmap?g.width*g.height*4:g.data.length,g.ref=m,y&&this.globalImageCache.addByteSize(m,g.dataLen),this._sendImgData(q,g,y))).catch(A=>(F(`Unable to decode image "${q}": "${A}".`),m&&this.globalImageCache.addDecodeFailed(m),this._sendImgData(q,null,y))),i){let A={objId:q,fn:b,args:w,optionalContent:p,hasMask:k};o.set(i,m,A),m&&(this._regionalImageCache.set(null,m,A),y&&(Ae(v,"The global cache-data must be available."),this.globalImageCache.setData(m,v)))}}handleSMask(t,s,n,a,i,o,r){let l=t.get("G"),f={subtype:t.get("S").name,backdrop:t.get("BC")},c=t.get("TR");return c0(c)&&(f.transferMap=N(this,ec,Sp).call(this,c)),this.buildFormXObject(s,l,f,n,a,i.state.clone({newPath:!0}),o,r)}handleTransferFunction(t){let s;if(Array.isArray(t))s=t.length>1&&t.every(o=>o===t[0])?[t[0]]:t;else{if(!c0(t))return null;s=[t]}let n=[],a=0,i=0;for(let o of s){let r=this.xref.fetchIfRef(o);if(a++,$t(r,"Identity"))n.push(null);else{if(!c0(r))return null;n.push(N(this,ec,Sp).call(this,r)),i++}}return a!==1&&a!==4||i===0?null:n}handleTilingType(t,s,n,a,i,o,r,l,f){let c=new E1,h=R.merge({xref:this.xref,dictArray:[i.get("Resources"),n]});return this.getOperatorList({stream:a,task:r,resources:h,operatorList:c,prevRefs:f}).then(function(){let m=c.getIR(),{needsIsolation:u}=c,d=y3(m,i,s,u);o.addDependencies(c.dependencies),o.addOp(t,d),i.objId&&l.set(null,i.objId,{operatorListIR:m,needsIsolation:u,dict:i})}).catch(m=>{if(!(m instanceof Ye)){if(!this.options.ignoreErrors)throw m;F(`handleTilingType - ignoring pattern: "${m}".`)}})}async handleSetFont(t,s,n,a,i,o,r=null,l=null,f=null){let c=s?.[0]instanceof it?s[0].name:null,h=await this.loadFont(c,n,t,i,r,l,f);return h.font.isType3Font&&a.addDependencies(h.type3Dependencies),o.font=h.font,h.send(this.handler),h.loadedName}handleText(t,s){let n=s.font,a=n.charsToGlyphs(t);return n.data&&(s.textRenderingMode&Nj||s.fillColorSpace.name==="Pattern"||s.strokeColorSpace.name==="Pattern"||n.disableFontFace)&&du.buildFontPaths(n,a,this.handler,this.options),a}ensureStateFont(t){if(t.font)return;let s=new nt("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw s;F(`ensureStateFont: "${s}".`)}async setGState({resources:t,gState:s,operatorList:n,cacheKey:a,task:i,stateManager:o,localGStateCache:r,localColorSpaceCache:l,seenRefs:f}){let c=s.objId,h=!0,m=[],u=Promise.resolve();for(let[d,p]of s)switch(d){case"Type":break;case"LW":if(typeof p!="number"){F(`Invalid LW (line width): ${p}`);break}m.push([d,Math.abs(p)]);break;case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":m.push([d,p]);break;case"Font":h=!1,u=u.then(()=>this.handleSetFont(t,null,p[0],n,i,o.state,null,null,f).then(function(g){n.addDependency(g),m.push([d,[g,p[1]]])}));break;case"BM":m.push([d,H8(p)]);break;case"SMask":if($t(p,"None")){m.push([d,!1]);break}p instanceof R?(h=!1,u=u.then(()=>this.handleSMask(p,t,n,i,o,l,f)),m.push([d,!0])):F("Unsupported SMask type");break;case"TR":if(s.has("TR2"))break;case"TR2":{let g=this.handleTransferFunction(p);m.push(["TR",g]);break}case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"HT":case"SM":case"SA":case"AIS":case"TK":ie("graphic state operator "+d);break;default:ie("Unknown graphic state operator "+d)}await u,m.length>0&&n.addOp(Wa,[m]),h&&r.set(a,c,m)}loadFont(t,s,n,a,i=null,o=null,r=null){let l=async()=>new fl({loadedName:"g_font_error",font:new ih(`Font "${t}" is not available.`),dict:s}),f;if(s)s instanceof rt&&(f=s);else{let b=n.get("Font");b&&(f=b.getRaw(t))}if(f){if(this.type3FontRefs?.has(f))return l();if(this.fontCache.has(f))return this.fontCache.get(f);try{s=this.xref.fetchIfRef(f)}catch(b){F(`loadFont - lookup failed: "${b}".`)}}if(!(s instanceof R)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return F(`Font "${t}" is not available.`),l();F(`Font "${t}" is not available -- attempting to fallback to a default font.`),s=i||du.fallbackFontDict}if(s.cacheKey&&this.fontCache.has(s.cacheKey))return this.fontCache.get(s.cacheKey);let{promise:c,resolve:h}=Promise.withResolvers(),m;try{m=this.preEvaluateFont(s),m.cssFontInfo=o}catch(b){return F(`loadFont - preEvaluateFont failed: "${b}".`),l()}let{descriptor:u,hash:d}=m,p=f instanceof rt,g;if(d&&u instanceof R){let b=u.fontAliases||(u.fontAliases=Object.create(null));if(b[d]){let w=b[d].aliasRef;if(p&&w&&this.fontCache.has(w))return this.fontCache.putAlias(f,w),this.fontCache.get(f)}else b[d]={fontID:this.idFactory.createFontId()};p&&(b[d].aliasRef=f),g=b[d].fontID}else g=this.idFactory.createFontId();return Ae(g?.startsWith("f"),\'The "fontID" must be (correctly) defined.\'),p?this.fontCache.put(f,c):(s.cacheKey=`cacheKey_${g}`,this.fontCache.put(s.cacheKey,c)),s.loadedName=`${this.idFactory.getDocId()}_${g}`,this.translateFont(m).then(async b=>{let w=new fl({loadedName:s.loadedName,font:b,dict:s});if(b.isType3Font)try{await w.loadType3Data(this,n,a,r)}catch(k){throw new Error(`Type3 font load error: ${k}`)}h(w)}).catch(b=>{F(`loadFont - translateFont failed: "${b}".`),h(new fl({loadedName:s.loadedName,font:new ih(b?.message),dict:s}))}),c}buildPath(t,s,n){let{pathMinMax:a,pathBuffer:i}=n;switch(0|t){case R0:{let o=n.currentPointX=s[0],r=n.currentPointY=s[1],l=s[2],f=s[3],c=o+l,h=r+f;l===0||f===0?i.push(wi,o,r,xn,c,h,_o):i.push(wi,o,r,xn,c,r,xn,c,h,xn,o,h,_o),ee.rectBoundingBox(o,r,c,h,a);break}case y1:{let o=n.currentPointX=s[0],r=n.currentPointY=s[1];i.push(wi,o,r),ee.pointBoundingBox(o,r,a);break}case I0:{let o=n.currentPointX=s[0],r=n.currentPointY=s[1];i.push(xn,o,r),ee.pointBoundingBox(o,r,a);break}case C0:{let o=n.currentPointX,r=n.currentPointY,[l,f,c,h,m,u]=s;n.currentPointX=m,n.currentPointY=u,i.push(Jo,l,f,c,h,m,u),ee.bezierBoundingBox(o,r,l,f,c,h,m,u,a);break}case H0:{let o=n.currentPointX,r=n.currentPointY,[l,f,c,h]=s;n.currentPointX=c,n.currentPointY=h,i.push(Jo,o,r,l,f,c,h),ee.bezierBoundingBox(o,r,o,r,l,f,c,h,a);break}case B0:{let o=n.currentPointX,r=n.currentPointY,[l,f,c,h]=s;n.currentPointX=c,n.currentPointY=h,i.push(Jo,l,f,c,h,c,h),ee.bezierBoundingBox(o,r,l,f,c,h,c,h,a);break}case T0:i.push(_o)}}_getColorSpace(t,s,n){return ae.parse({cs:t,xref:this.xref,resources:s,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:n,asyncIfNotCached:!0})}async _handleColorSpace(t){try{return await t}catch(s){if(s instanceof Ye)return null;if(this.options.ignoreErrors)return F(`_handleColorSpace - ignoring ColorSpace: "${s}".`),null;throw s}}parseShading({shading:t,resources:s,localColorSpaceCache:n,localShadingPatternCache:a}){let i,o=a.get(t);if(o)return o;try{i=tl.parseShading(t,this.xref,s,this._pdfFunctionFactory,this.globalColorSpaceCache,n).getIR()}catch(r){if(r instanceof Ye)return null;if(this.options.ignoreErrors)return F(`parseShading - ignoring shading: "${r}".`),a.set(t,null),null;throw r}if(o=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(o=`${this.idFactory.getDocId()}_type3_${o}`),a.set(t,o),this.parsingType3Font){let r=(function(f){let c,h=null,m=[],u=[],d=[],p=null,g=null;switch(f[0]){case"RadialAxial":c=f[1]==="axial"?1:2,h=f[2],d=f[3],c===1?m.push(...f[4],...f[5]):m.push(f[4][0],f[4][1],f[6],f[5][0],f[5][1],f[7]);break;case"Mesh":c=3,p=f[1],m=f[2],u=f[3],h=f[6],g=f[7];break;default:throw new Error(`Unsupported pattern type: ${f[0]}`)}let b=Math.floor(m.length/2),w=Math.floor(u.length/4),k=d.length,q=new ArrayBuffer(20+8*b+4*w+8*k+(h?16:0)+(g?3:0)),y=new DataView(q),v=new Uint8Array(q);y.setUint8(as.KIND,c),y.setUint8(as.HAS_BBOX,h?1:0),y.setUint8(as.HAS_BACKGROUND,g?1:0),y.setUint8(as.SHADING_TYPE,p),y.setUint32(as.N_COORD,b,!0),y.setUint32(as.N_COLOR,w,!0),y.setUint32(as.N_STOP,k,!0),y.setUint32(as.N_FIGURES,0,!0);let A=20;new Float32Array(q,A,2*b).set(m),A+=8*b,v.set(u,A),A+=4*w;for(let[x,I]of d)y.setFloat32(A,x,!0),A+=4,y.setUint32(A,parseInt(I.slice(1),16),!0),A+=4;if(h)for(let x of h)y.setFloat32(A,x,!0),A+=4;return g&&v.set(g,A),q})(i);this.handler.send("commonobj",[o,"Pattern",r],[r])}else this.handler.send("obj",[o,this.pageIndex,"Pattern",i]);return o}handleColorN(t,s,n,a,i,o,r,l,f,c,h){let m=n.pop();if(m instanceof it){let u=i.getRaw(m.name),d=u instanceof rt&&f.getByRef(u);if(d)try{let g=a.base?a.base.getRgbHex(n,0):null,b=y3(d.operatorListIR,d.dict,g,d.needsIsolation);t.addOp(s,b);return}catch{}let p=this.xref.fetchIfRef(u);if(p){let g=p instanceof Et?p.dict:p,b=g.get("PatternType");if(b===Gy){let w=a.base?a.base.getRgbHex(n,0):null;return this.handleTilingType(s,w,o,p,g,t,r,f,h)}if(b===Xy){let w=g.get("Shading"),k=this.parseShading({shading:w,resources:o,localColorSpaceCache:l,localShadingPatternCache:c});if(k){let q=la(g.getArray("Matrix"),null);t.addOp(s,["Shading",k,q])}return}throw new nt(`Unknown PatternType: ${b}`)}}throw new nt(`Unknown PatternName: ${m}`)}async parseMarkedContentProps(t,s){return C8(this.xref,t,s)}async getOperatorList({stream:t,task:s,resources:n,operatorList:a,initialState:i=null,fallbackFontDict:o=null,prevRefs:r=null}){if(t.isAsync){let I=await t.asyncGetBytes();I&&(t=new ke(I,0,I.length,t.dict))}let l=t.dict?.objId,f=new re(r);if(l){if(r?.has(l))throw new Error(`getOperatorList - ignoring circular reference: ${l}`);f.put(l)}if(n||(n=R.empty),i||(i=new dh),!a)throw new Error(\'getOperatorList: missing "operatorList" parameter\');let c=this,h=this.xref,m=new fh,u=new ch,d=new hh,p=new bp,g=new Map,b=n.get("XObject")||R.empty,w=n.get("Pattern")||R.empty,k=new Fr(i),q=new po(t,h,k),y=new ph,v=0;function A(I){for(let B=0,D=q.savedStatesDepth;B<D;B++)a.addOp(Vs,[])}function x(){for(;v>0;v--)a.addOp(Va,[])}return new Promise(function I(B,D){let W=function(C){Promise.all([C,a.ready]).then(function(){try{I(B,D)}catch(M){D(M)}},D)};s.ensureNotTerminated(),y.reset();let L={},ot,P,H,V;for(;!(ot=y.check())&&(L.args=null,!!q.read(L));){let C=L.args,M=L.fn;switch(0|M){case N0:if(V=C[0]instanceof it,H=C[0].name,V){let G=m.getByName(H);if(G){m0(a,G),C=null;continue}}W(new Promise(function(G,It){if(!V)throw new nt("XObject must be referred to by name.");let jt=b.getRaw(H);if(jt instanceof rt){let Ft=m.getByRef(jt)||c._regionalImageCache.getByRef(jt)||c.globalImageCache.getData(jt,c.pageIndex);if(Ft){m0(a,Ft),G();return}jt=h.fetch(jt)}if(!(jt instanceof Et))throw new nt("XObject should be a stream");let kt=jt.dict.get("Subtype");if(!(kt instanceof it))throw new nt("XObject should have a Name subtype");if(kt.name!=="Form")if(kt.name!=="Image"){if(kt.name!=="PS")throw new nt(`Unhandled XObject subtype ${kt.name}`);ie("Ignored XObject subtype PS"),G()}else c.buildPaintImageXObject({resources:n,image:jt,operatorList:a,cacheKey:H,localImageCache:m,localColorSpaceCache:u}).then(G,It);else k.save(),c.buildFormXObject(n,jt,null,a,s,k.state.clone({newPath:!0}),u,f).then(function(){k.restore(),G()},It)}).catch(function(G){if(!(G instanceof Ye)){if(!c.options.ignoreErrors)throw G;F(`getOperatorList - ignoring XObject: "${G}".`)}}));return;case Ga:let J=C[1];W(c.handleSetFont(n,C,null,a,s,k.state,o,null,f).then(function(G){a.addDependency(G),a.addOp(Ga,[G,J])}));return;case x4:let et=C[0].cacheKey;if(et){let G=m.getByName(et);if(G){m0(a,G),C=null;continue}}W(c.buildPaintImageXObject({resources:n,image:C[0],isInline:!0,operatorList:a,cacheKey:et,localImageCache:m,localColorSpaceCache:u}));return;case oa:if(!k.state.font){c.ensureStateFont(k.state);continue}C[0]=c.handleText(C[0],k.state);break;case I1:if(!k.state.font){c.ensureStateFont(k.state);continue}let U=[],_=k.state;for(let G of C[0])typeof G=="string"?U.push(...c.handleText(G,_)):typeof G=="number"&&U.push(G);C[0]=U,M=oa;break;case C1:if(!k.state.font){c.ensureStateFont(k.state);continue}a.addOp(Zc),C[0]=c.handleText(C[0],k.state),M=oa;break;case H1:if(!k.state.font){c.ensureStateFont(k.state);continue}a.addOp(Zc),a.addOp(D0,[C.shift()]),a.addOp(z0,[C.shift()]),C[0]=c.handleText(C[0],k.state),M=oa;break;case j4:k.state.textRenderingMode=C[0];break;case Hu:{let G=c._getColorSpace(C[0],n,u);if(G instanceof hs){k.state.fillColorSpace=G;continue}W(c._handleColorSpace(G).then(It=>{k.state.fillColorSpace=It||ae.gray}));return}case k5:{let G=c._getColorSpace(C[0],n,u);if(G instanceof hs){k.state.strokeColorSpace=G;continue}W(c._handleColorSpace(G).then(It=>{k.state.strokeColorSpace=It||ae.gray}));return}case Bu:if(!Fe(C,null))continue;P=k.state.fillColorSpace,C=[P.getRgbHex(C,0)],M=zn;break;case q5:if(!Fe(C,null))continue;P=k.state.strokeColorSpace,C=[P.getRgbHex(C,0)],M=Ca;break;case Sc:if(!Fe(C,null))continue;k.state.fillColorSpace=ae.gray,C=[ae.gray.getRgbHex(C,0)],M=zn;break;case y5:if(!Fe(C,null))continue;k.state.strokeColorSpace=ae.gray,C=[ae.gray.getRgbHex(C,0)],M=Ca;break;case Ac:if(!Fe(C,null))continue;k.state.fillColorSpace=ae.cmyk,C=[ae.cmyk.getRgbHex(C,0)],M=zn;break;case v5:if(!Fe(C,null))continue;k.state.strokeColorSpace=ae.cmyk,C=[ae.cmyk.getRgbHex(C,0)],M=Ca;break;case zn:if(!Fe(C,null))continue;k.state.fillColorSpace=ae.rgb,C=[ae.rgb.getRgbHex(C,0)];break;case Ca:if(!Fe(C,null))continue;k.state.strokeColorSpace=ae.rgb,C=[ae.rgb.getRgbHex(C,0)];break;case T1:if(P=k.state.patternFillColorSpace,!P){if(Fe(C,null)){C=[ae.gray.getRgbHex(C,0)],M=zn;break}C=[],M=vk;break}if(P.name==="Pattern"){if(!Array.isArray(C))continue;W(c.handleColorN(a,T1,C,P,w,n,s,u,p,g,f));return}if(!Fe(C,null))continue;C=[P.getRgbHex(C,0)],M=zn;break;case B1:if(P=k.state.patternStrokeColorSpace,!P){if(Fe(C,null)){C=[ae.gray.getRgbHex(C,0)],M=Ca;break}C=[],M=yk;break}if(P.name==="Pattern"){if(!Array.isArray(C))continue;W(c.handleColorN(a,B1,C,P,w,n,s,u,p,g,f));return}if(!Fe(C,null))continue;C=[P.getRgbHex(C,0)],M=Ca;break;case R1:let ht;try{let G=n.get("Shading");if(!G)throw new nt("No shading resource found");if(ht=G.get(C[0].name),!ht)throw new nt("No shading object found")}catch(G){if(G instanceof Ye)continue;if(c.options.ignoreErrors){F(`getOperatorList - ignoring Shading: "${G}".`);continue}throw G}let vt=c.parseShading({shading:ht,resources:n,localColorSpaceCache:u,localShadingPatternCache:g});if(!vt)continue;C=[vt],M=R1;break;case Wa:if(V=C[0]instanceof it,H=C[0].name,V){let G=d.getByName(H);if(G){G.length>0&&a.addOp(Wa,[G]),C=null;continue}}W(new Promise(function(G,It){if(!V)throw new nt("GState must be referred to by name.");let jt=n.get("ExtGState");if(!(jt instanceof R))throw new nt("ExtGState should be a dictionary.");let kt=jt.get(H);if(!(kt instanceof R))throw new nt("GState should be a dictionary.");c.setGState({resources:n,gState:kt,operatorList:a,cacheKey:H,task:s,stateManager:k,localGStateCache:d,localColorSpaceCache:u,seenRefs:f}).then(G,It)}).catch(function(G){if(!(G instanceof Ye)){if(!c.options.ignoreErrors)throw G;F(`getOperatorList - ignoring ExtGState: "${G}".`)}}));return;case m4:{let[G]=C;if(typeof G!="number"){F(`Invalid setLineWidth: ${G}`);continue}C[0]=Math.abs(G);break}case p4:{let G=C[1];if(typeof G!="number"){F(`Invalid setDash: ${G}`);continue}let It=C[0];if(!Array.isArray(It)){F(`Invalid setDash: ${It}`);continue}It.some(jt=>typeof jt!="number")&&(C[0]=It.filter(jt=>typeof jt=="number"));break}case y1:case I0:case C0:case H0:case B0:case T0:case R0:c.buildPath(M,C,k.state);continue;case b5:case v1:case F0:case g4:case w5:case j5:case x1:case S1:case M0:{let{state:{pathBuffer:G,pathMinMax:It}}=k;M!==v1&&M!==x1&&M!==S1||G.push(_o),G.length===0?a.addOp(Mi,[M,[null],null]):(a.addOp(Mi,[M,[new Float32Array(G)],It.slice()]),G.length=0,It.set(Xa,0));continue}case Ui:a.addOp(M,[new Float32Array(C)]);continue;case S4:case A4:case I4:case C4:continue;case Dn:if(v++,!(C[0]instanceof it)){F(`Expected name for beginMarkedContentProps arg0=${C[0]}`),a.addOp(Dn,["OC",null]);continue}if(C[0].name==="OC"){W(c.parseMarkedContentProps(C[1],n).then(G=>{a.addOp(Dn,["OC",G])}).catch(G=>{if(!(G instanceof Ye)){if(!c.options.ignoreErrors)throw G;F(`getOperatorList - ignoring beginMarkedContentProps: "${G}".`),a.addOp(Dn,["OC",null])}}));return}C=[C[0].name,C[1]instanceof R?C[1].get("MCID"):null];break;case _0:if(C?.some(G=>G instanceof R)){F(`getOperatorList - ignoring operator: ${M}`);continue}v++;break;case Va:if(C?.some(G=>G instanceof R)){F(`getOperatorList - ignoring operator: ${M}`);continue}if(v===0)continue;v--;break;default:if(C?.some(G=>G instanceof R)){F(`getOperatorList - ignoring operator: ${M}`);continue}}a.addOp(M,C)}ot?W(R6):(x(),A(),B())}).catch(I=>{if(!(I instanceof Ye)){if(!this.options.ignoreErrors)throw I;F(`getOperatorList - ignoring errors during "${s.name}" task: "${I}".`),x(),A()}})}async getTextContent({stream:t,task:s,resources:n,stateManager:a=null,includeMarkedContent:i=!1,sink:o,seenStyles:r=new Set,viewBox:l,lang:f=null,disableNormalization:c=!1,keepWhiteSpace:h=!1,prevRefs:m=null,intersector:u=null}){if(t.isAsync){let tt=await t.asyncGetBytes();tt&&(t=new ke(tt,0,tt.length,t.dict))}o??(o=I6(null));let d=t.dict?.objId,p=new re(m);if(d){if(m?.has(d))throw new Error(`getTextContent - ignoring circular reference: ${d}`);p.put(d)}n||(n=R.empty),a||(a=new Fr(new Ap));let g=0,b=null,w={items:[],styles:Object.create(null),lang:f},k={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,prevTextRise:0,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},q=[" "," "],y=0;function v(tt){let lt=(y+1)%2,Z=q[y]!==" "&&q[lt]===" ";return q[y]=tt,y=lt,!h&&Z}function A(){return!h&&q[y]!==" "&&q[(y+1)%2]===" "}function x(){q[0]=q[1]=" ",y=0}let I=this,B=this.xref,D=[],W=null,L=new fh,ot=new hh,P=new po(t,B,a),H,V;function C({width:tt=0,height:lt=0,transform:Z=k.prevTransform,fontName:pt=k.fontName}){u?.addExtraChar(" "),w.items.push({str:" ",dir:"ltr",width:tt,height:lt,transform:Z,fontName:pt,hasEOL:!1})}function M(){let tt=H.font,lt=[H.fontSize*H.textHScale,0,0,H.fontSize,0,H.textRise];if(tt.isType3Font&&(H.fontSize<=1||tt.isCharBBox)&&!Ei(H.fontMatrix,Ri)){let Z=tt.bbox[3]-tt.bbox[1];Z>0&&(lt[3]*=Z*H.fontMatrix[3])}return ee.transform(H.ctm,ee.transform(H.textMatrix,lt))}function J(){if(k.initialized)return k;let{font:tt,loadedName:lt}=H;if(!r.has(lt)&&(r.add(lt),w.styles[lt]={fontFamily:tt.fallbackName,ascent:tt.ascent,descent:tt.descent,vertical:tt.vertical},I.options.fontExtraProperties&&tt.systemFontInfo)){let Tt=w.styles[lt];Tt.fontSubstitution=tt.systemFontInfo.css,Tt.fontSubstitutionLoadedName=tt.systemFontInfo.loadedName}k.fontName=lt;let Z=k.transform=M();tt.vertical?(k.width=k.totalWidth=Math.hypot(Z[0],Z[1]),k.height=k.totalHeight=0,k.vertical=!0):(k.width=k.totalWidth=0,k.height=k.totalHeight=Math.hypot(Z[2],Z[3]),k.vertical=!1);let pt=Math.hypot(H.textLineMatrix[0],H.textLineMatrix[1]),Nt=Math.hypot(H.ctm[0],H.ctm[1]);k.textAdvanceScale=Nt*pt;let{fontSize:Dt}=H;return k.trackingSpaceMin=.102*Dt,k.notASpace=.03*Dt,k.negativeSpaceMax=-.2*Dt,k.spaceInFlowMin=.102*Dt,k.spaceInFlowMax=.6*Dt,k.hasEOL=!1,k.initialized=!0,k}function et(){if(!k.initialized)return;let tt=Math.hypot(H.textLineMatrix[0],H.textLineMatrix[1]),lt=Math.hypot(H.ctm[0],H.ctm[1])*tt;lt!==k.textAdvanceScale&&(k.vertical?(k.totalHeight+=k.height*k.textAdvanceScale,k.height=0):(k.totalWidth+=k.width*k.textAdvanceScale,k.width=0),k.textAdvanceScale=lt)}function U(tt){let lt=tt.str.join("");c||(lt=(function(Nt){return $u||($u=/([\\u00a0\\u00b5\\u037e\\u0eb3\\u2000-\\u200a\\u202f\\u2126\\ufb00-\\ufb04\\ufb06\\ufb20-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufba1\\ufba4-\\ufba9\\ufbae-\\ufbb1\\ufbd3-\\ufbdc\\ufbde-\\ufbe7\\ufbea-\\ufbf8\\ufbfc\\ufbfd\\ufc00-\\ufc5d\\ufc64-\\ufcf1\\ufcf5-\\ufd3d\\ufd88\\ufdf4\\ufdfa\\ufdfb\\ufe71\\ufe77\\ufe79\\ufe7b\\ufe7d]+)|(\\ufb05+)/gu,d3=new Map([["\\uFB05","\\u017Ft"]])),Nt.replaceAll($u,(Dt,Tt,qt)=>Tt?Tt.normalize("NFKC"):d3.get(qt))})(lt));let Z=D5(lt,-1,tt.vertical);return{str:Z.str,dir:Z.dir,width:Math.abs(tt.totalWidth),height:Math.abs(tt.totalHeight),transform:tt.transform,fontName:tt.fontName,hasEOL:tt.hasEOL}}async function _(tt,lt){let Z=await I.loadFont(tt,lt,n,s,null,null,p);H.loadedName=Z.loadedName,H.font=Z.font,H.fontMatrix=Z.font.fontMatrix||Ri}function ht(tt,lt,Z){let pt=Math.hypot(Z[0],Z[1]);return[(Z[0]*tt+Z[1]*lt)/pt,(Z[2]*tt+Z[3]*lt)/pt]}function vt(tt){let lt=M(),Z=lt[4],pt=lt[5];if(H.font?.vertical){if(Z<l[0]||Z>l[2]||pt+tt<l[1]||pt>l[3])return!1}else if(Z+tt<l[0]||Z>l[2]||pt<l[1]||pt>l[3])return!1;if(!H.font||!k.prevTransform)return!0;let Nt=k.prevTransform[4],Dt=k.prevTransform[5];if(Nt===Z&&Dt===pt)return!0;let Tt=-1;switch(lt[0]&&lt[1]===0&&lt[2]===0?Tt=lt[0]>0?0:180:lt[1]&&lt[0]===0&&lt[3]===0&&(Tt=lt[1]>0?90:270),Tt){case 0:break;case 90:[Z,pt]=[pt,Z],[Nt,Dt]=[Dt,Nt];break;case 180:[Z,pt,Nt,Dt]=[-Z,-pt,-Nt,-Dt];break;case 270:[Z,pt]=[-pt,-Z],[Nt,Dt]=[-Dt,-Nt];break;default:[Z,pt]=ht(Z,pt,lt),[Nt,Dt]=ht(Nt,Dt,k.prevTransform)}if(H.font.vertical){let j=(Dt-pt)/k.textAdvanceScale,z=Z-Nt,E=Math.sign(k.height||k.totalHeight);return j<E*k.negativeSpaceMax?Math.abs(z)>.5*k.width?(It(),!0):(x(),kt(),!0):Math.abs(z)>k.width?(It(),!0):(j<=E*k.notASpace&&x(),j<=E*k.trackingSpaceMin?A()?(x(),kt(),C({height:Math.abs(j)})):k.height+=j:jt(j,k.prevTransform,E)||(k.str.length===0?(x(),C({height:Math.abs(j)})):k.height+=j),Math.abs(z)>.25*k.width&&kt(),!0)}let qt=(Z-Nt)/k.textAdvanceScale,bt=pt-Dt,Pt=Math.sign(k.width||k.totalWidth);if(qt<Pt*k.negativeSpaceMax)return Math.abs(bt)>.5*k.height?(It(),!0):(x(),kt(),!0);let le=H.textRise-k.prevTextRise,Kt=le===0?bt:bt-lt[3]/H.fontSize*le;return Math.abs(Kt)>k.height?(It(),!0):(qt<=Pt*k.notASpace&&x(),qt<=Pt*k.trackingSpaceMin?A()?(x(),kt(),C({width:Math.abs(qt)})):k.width+=qt:jt(qt,k.prevTransform,Pt)||(k.str.length===0?(x(),C({width:Math.abs(qt)})):k.width+=qt),Math.abs(bt)>.25*k.height&&kt(),!0)}function G({chars:tt,extraSpacing:lt}){V!==H&&(V.fontSize!==H.fontSize||V.fontName!==H.fontName&&(V.font.name!==H.font.name||V.font.vertical!==H.font.vertical))&&(kt(),V=H.clone());let Z=H.font,pt=Z.vertical?-H.charSpacing:H.charSpacing;if(!tt){let Tt=pt+lt;Tt&&(Z.vertical?H.translateTextMatrix(0,-Tt):H.translateTextMatrix(Tt*H.textHScale,0)),h&&vt(0);return}let Nt=Z.charsToGlyphs(tt),Dt=H.fontMatrix[0]*H.fontSize;for(let Tt=0,qt=Nt.length;Tt<qt;Tt++){let bt=Nt[Tt],{category:Pt,originalCharCode:le}=bt;if(Pt.isInvisibleFormatMark)continue;let Kt=pt+(Tt+1===qt?lt:0),j=bt.width;Z.vertical&&(j=bt.vmetric?bt.vmetric[0]:-j);let z=j*Dt;if(le===32&&(Kt+=H.wordSpacing),!h&&Pt.isWhitespace){Z.vertical?(Kt+=-z,H.translateTextMatrix(0,-Kt)):(Kt+=z,H.translateTextMatrix(Kt*H.textHScale,0)),v(" ");continue}if(!Pt.isZeroWidthDiacritic&&!vt(z)){Z.vertical?H.translateTextMatrix(0,z):H.translateTextMatrix(z*H.textHScale,0);continue}let E=J();Pt.isZeroWidthDiacritic&&(z=0),Z.vertical?(u?.addGlyph(M(),0,z,bt.unicode),H.translateTextMatrix(0,z),z=Math.abs(z),E.height+=z):(z*=H.textHScale,u?.addGlyph(M(),z,0,bt.unicode),H.translateTextMatrix(z,0),E.width+=z),z&&(E.prevTransform=M(),E.prevTextRise=H.textRise);let X=bt.unicode;v(X)&&(E.str.push(" "),u?.addExtraChar(" ")),u||E.str.push(X),Kt&&(Z.vertical?H.translateTextMatrix(0,-Kt):H.translateTextMatrix(Kt*H.textHScale,0))}}function It(){u?.addExtraChar(`\n`),x(),k.initialized?(k.hasEOL=!0,kt()):w.items.push({str:"",dir:"ltr",width:0,height:0,transform:M(),fontName:H.loadedName,hasEOL:!0})}function jt(tt,lt,Z){if(Z*k.spaceInFlowMin<=tt&&tt<=Z*k.spaceInFlowMax)return k.initialized&&(x(),k.str.push(" "),u?.addExtraChar(" ")),!1;let pt=k.fontName,Nt=0;return k.vertical&&(Nt=tt,tt=0),kt(),x(),C({width:Math.abs(tt),height:Math.abs(Nt),transform:lt||M(),fontName:pt}),!0}function kt(){k.initialized&&k.str&&(k.vertical?k.totalHeight+=k.height*k.textAdvanceScale:k.totalWidth+=k.width*k.textAdvanceScale,w.items.push(U(k)),k.initialized=!1,k.str.length=0)}function Ft(tt=0){if(i&&!(g<=tt))for(kt();g>tt;g--)w.items.push({type:"endMarkedContent"})}function mt(tt=!1){let lt=w.items.length;lt!==0&&!(tt&&lt<10)&&(o.enqueue(w,lt),w.items=[],w.styles=Object.create(null))}let ct=new ph;return new Promise(function tt(lt,Z){let pt=function(Pt){mt(!0),Promise.all([Pt,o.ready]).then(function(){try{tt(lt,Z)}catch(le){Z(le)}},Z)};s.ensureNotTerminated(),ct.reset();let Nt={},Dt,Tt,qt,bt=[];for(;!(Dt=ct.check())&&(bt.length=0,Nt.args=bt,!!P.read(Nt));){H=a.state,V||(V=H.clone());let Pt=Nt.fn;switch(bt=Nt.args,0|Pt){case Ga:let le=bt[0].name,Kt=bt[1];if(H.font&&le===H.fontName&&Kt===H.fontSize)break;H.fontName=le,H.fontSize=Kt,pt(_(le,null));return;case k4:H.textRise=bt[0];break;case b4:H.textHScale=bt[0]/100;break;case w4:H.leading=bt[0];break;case q4:H.translateTextLineMatrix(bt[0],bt[1]),H.textMatrix=H.textLineMatrix.slice();break;case y4:H.leading=-bt[1],H.translateTextLineMatrix(bt[0],bt[1]),H.textMatrix=H.textLineMatrix.slice();break;case Zc:H.carriageReturn();break;case Ui:H.setTextMatrix(bt[0],bt[1],bt[2],bt[3],bt[4],bt[5]),H.setTextLineMatrix(bt[0],bt[1],bt[2],bt[3],bt[4],bt[5]),et();break;case z0:H.charSpacing=bt[0];break;case D0:H.wordSpacing=bt[0];break;case A1:H.textMatrix=an.slice(),H.textLineMatrix=an.slice(),b=g;break;case xl:b!==null&&(Ft(b),b=null);break;case I1:if(!a.state.font){I.ensureStateFont(a.state);continue}let j=(H.font.vertical?1:-1)*H.fontSize/1e3;for(let z of bt[0])if(typeof z=="string")D.push(z);else if(typeof z=="number"&&z!==0){let E=D.join("");D.length=0,G({chars:E,extraSpacing:z*j})}if(D.length>0){let z=D.join("");D.length=0,G({chars:z,extraSpacing:0})}break;case oa:if(!a.state.font){I.ensureStateFont(a.state);continue}G({chars:bt[0],extraSpacing:0});break;case C1:if(!a.state.font){I.ensureStateFont(a.state);continue}H.carriageReturn(),G({chars:bt[0],extraSpacing:0});break;case H1:if(!a.state.font){I.ensureStateFont(a.state);continue}H.wordSpacing=bt[0],H.charSpacing=bt[1],H.carriageReturn(),G({chars:bt[2],extraSpacing:0});break;case N0:if(kt(),W??(W=n.get("XObject")||R.empty),qt=bt[0]instanceof it,Tt=bt[0].name,qt&&L.getByName(Tt))break;pt(new Promise(function(z,E){if(!qt)throw new nt("XObject must be referred to by name.");let X=W.getRaw(Tt);if(X instanceof rt){if(L.getByRef(X)){z();return}if(I.globalImageCache.getData(X,I.pageIndex)){z();return}X=B.fetch(X)}if(!(X instanceof Et))throw new nt("XObject should be a stream");let{dict:$}=X,K=$.get("Subtype");if(!(K instanceof it))throw new nt("XObject should have a Name subtype");if(K.name!=="Form"){L.set(Tt,$.objId,!0),z();return}let wt=a.state.clone(),Rt=new Fr(wt),_t=la($.getArray("Matrix"),null);_t&&Rt.transform(_t);let zt=$.get("Resources");mt();let Mt=I6(o);I.getTextContent({stream:X,task:s,resources:zt instanceof R?zt:n,stateManager:Rt,includeMarkedContent:i,sink:Mt,seenStyles:r,viewBox:l,lang:f,disableNormalization:c,keepWhiteSpace:h,prevRefs:p}).then(function(){Mt.enqueueInvoked||L.set(Tt,$.objId,!0),z()},E)}).catch(function(z){if(!(z instanceof Ye)){if(!I.options.ignoreErrors)throw z;F(`getTextContent - ignoring XObject: "${z}".`)}}));return;case Wa:if(qt=bt[0]instanceof it,Tt=bt[0].name,qt&&ot.getByName(Tt))break;pt(new Promise(function(z,E){if(!qt)throw new nt("GState must be referred to by name.");let X=n.get("ExtGState");if(!(X instanceof R))throw new nt("ExtGState should be a dictionary.");let $=X.get(Tt);if(!($ instanceof R))throw new nt("GState should be a dictionary.");let K=$.get("Font");K?(kt(),H.fontName=null,H.fontSize=K[1],_(null,K[0]).then(z,E)):(ot.set(Tt,$.objId,!0),z())}).catch(function(z){if(!(z instanceof Ye)){if(!I.options.ignoreErrors)throw z;F(`getTextContent - ignoring ExtGState: "${z}".`)}}));return;case _0:kt(),i&&(g++,w.items.push({type:"beginMarkedContent",tag:bt[0]instanceof it?bt[0].name:null}));break;case Dn:if(kt(),i){g++;let z=bt[1]instanceof R?bt[1].get("MCID"):null;w.items.push({type:"beginMarkedContentProps",id:Number.isInteger(z)?`${I.idFactory.getPageObjId()}_mc${z}`:null,tag:bt[0]instanceof it?bt[0].name:null})}break;case Va:if(kt(),i){if(g===0)break;g--,w.items.push({type:"endMarkedContent"})}}if(w.items.length>=o.desiredSize){Dt=!0;break}}Dt?pt(R6):(kt(),Ft(),mt(),lt())}).catch(tt=>{if(!(tt instanceof Ye)){if(!this.options.ignoreErrors)throw tt;F(`getTextContent - ignoring errors during "${s.name}" task: "${tt}".`),kt(),Ft(),mt()}})}async extractDataStructures(t,s){let n=this.xref,a,i=this.readToUnicode(s.toUnicode);if(s.composite){let m=t.get("CIDSystemInfo");m instanceof R&&!s.cidSystemInfo&&(s.cidSystemInfo={registry:Jt(m.get("Registry")),ordering:Jt(m.get("Ordering")),supplement:m.get("Supplement")});try{let u=t.get("CIDToGIDMap");u instanceof Et&&(a=u.getBytes())}catch(u){if(!this.options.ignoreErrors)throw u;F(`extractDataStructures - ignoring CIDToGIDMap data: "${u}".`)}}let o=[],r,l=null;if(t.has("Encoding")){if(r=t.get("Encoding"),r instanceof R){if(l=r.get("BaseEncoding"),l=l instanceof it?l.name:null,r.has("Differences")){let m=r.get("Differences"),u=0;for(let d of m){let p=n.fetchIfRef(d);if(typeof p=="number")u=p;else{if(!(p instanceof it))throw new nt(`Invalid entry in \'Differences\' array: ${p}`);o[u++]=p.name}}}}else if(r instanceof it)l=r.name;else{let m="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new nt(m);F(m)}l!=="MacRomanEncoding"&&l!=="MacExpertEncoding"&&l!=="WinAnsiEncoding"&&(l=null)}let f=!s.file||s.isInternalFont,c=Lm()[s.name];if(l&&f&&c&&(l=null),l==="WinAnsiEncoding"&&f&&s.name?.charCodeAt(0)>=183){let m=s.name;if(["\\xCB\\xCE\\xCC\\xE5","\\xBA\\xDA\\xCC\\xE5","\\xBF\\xAC\\xCC\\xE5","\\xB7\\xC2\\xCB\\xCE","\\xBF\\xAC\\xCC\\xE5_GB2312","\\xB7\\xC2\\xCB\\xCE_GB2312","\\xC1\\xA5\\xCA\\xE9","\\xD0\\xC2\\xCB\\xCE","\\xB7\\xC2\\xCB\\xCE\\xCC\\xE5","\\xD0\\xA1\\xB1\\xEA\\xCB\\xCE"].includes(m)){l=null,s.defaultEncoding="Adobe-GB1-UCS2",s.composite=!0,s.cidEncoding=it.get("GBK-EUC-H");let u=await hi.create({encoding:s.cidEncoding,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});s.cMap=u,s.vertical=s.cMap.vertical,s.cidSystemInfo={registry:"Adobe",ordering:"GB1",supplement:0}}}if(l)s.defaultEncoding=Rl(l);else{let m=!!(s.flags&el),u=!!(s.flags&x3);s.type==="TrueType"&&m&&u&&o.length!==0&&(s.flags&=~el,m=!1),r=ma,s.type!=="TrueType"||u||(r=Tl),(m||c)&&(r=C5,f&&(/Symbol/i.test(s.name)?r=Mu:/Dingbats/i.test(s.name)?r=H5:/Wingdings/i.test(s.name)&&(r=Tl))),s.defaultEncoding=r}s.differences=o,s.baseEncodingName=l,s.hasEncoding=!!l||o.length>0,s.dict=t,s.toUnicode=await i;let h=await this.buildToUnicode(s);return s.toUnicode=h,a&&(s.cidToGidMap=this.readCidToGidMap(a,h)),s}_simpleFontToUnicode(t,s=!1){Ae(!t.composite,"Must be a simple font.");let n=[],a=t.defaultEncoding.slice(),i=t.baseEncodingName,o=t.differences;for(let l in o){let f=o[l];f!==".notdef"&&(a[l]=f)}let r=yn();for(let l in a){let f=a[l];if(f==="")continue;let c=r[f];if(c!==void 0){n[l]=String.fromCharCode(c);continue}let h=0;switch(f[0]){case"G":f.length===3&&(h=parseInt(f.substring(1),16));break;case"g":f.length===5&&(h=parseInt(f.substring(1),16));break;case"C":case"c":if(f.length>=3&&f.length<=4){let m=f.substring(1);if(s){h=parseInt(m,16);break}if(h=+m,Number.isNaN(h)&&Number.isInteger(parseInt(m,16)))return this._simpleFontToUnicode(t,!0)}break;case"u":c=ho(f,r),c!==-1&&(h=c);break;default:switch(f){case"f_h":case"f_t":case"T_h":n[l]=f.replaceAll("_","");continue}}if(h>0&&h<=1114111&&Number.isInteger(h)){if(i&&h===+l){let m=Rl(i);if(m&&(f=m[l])){n[l]=String.fromCharCode(r[f]);continue}}n[l]=String.fromCodePoint(h)}}return n}async buildToUnicode(t){if(t.hasIncludedToUnicodeMap=t.toUnicode?.length>0,t.hasIncludedToUnicodeMap)return!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t)),t.toUnicode;if(!t.composite)return new ki(this._simpleFontToUnicode(t));if(t.composite&&(t.cMap.builtInCMap&&!(t.cMap instanceof zi)||t.cidSystemInfo?.registry==="Adobe"&&(t.cidSystemInfo.ordering==="GB1"||t.cidSystemInfo.ordering==="CNS1"||t.cidSystemInfo.ordering==="Japan1"||t.cidSystemInfo.ordering==="Korea1"))){let{registry:s,ordering:n}=t.cidSystemInfo,a=it.get(`${s}-${n}-UCS2`),i=await hi.create({encoding:a,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),o=[],r=[];return t.cMap.forEach(function(l,f){if(f>65535)throw new nt("Max size of CID is 65,535");let c=i.lookup(f);if(c){r.length=0;for(let h=0,m=c.length;h<m;h+=2)r.push((c.charCodeAt(h)<<8)+c.charCodeAt(h+1));o[l]=String.fromCharCode(...r)}}),new ki(o)}return new Ds(t.firstChar,t.lastChar)}async readToUnicode(t){if(!t)return null;if(t instanceof it){let s=await hi.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return s instanceof zi?new Ds(0,65535):new ki(s.getMap())}if(t instanceof Et)try{let s=await hi.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(s instanceof zi)return new Ds(0,65535);let n=new Array(s.length);return s.forEach(function(a,i){if(typeof i=="number"){n[a]=String.fromCodePoint(i);return}i.length%2!=0&&(i="\\0"+i);let o=[];for(let r=0;r<i.length;r+=2){let l=i.charCodeAt(r)<<8|i.charCodeAt(r+1);if((63488&l)!=55296){o.push(l);continue}r+=2;let f=i.charCodeAt(r)<<8|i.charCodeAt(r+1);o.push(((1023&l)<<10)+(1023&f)+65536)}n[a]=String.fromCodePoint(...o)}),new ki(n)}catch(s){if(s instanceof Ye)return null;if(this.options.ignoreErrors)return F(`readToUnicode - ignoring ToUnicode data: "${s}".`),null;throw s}return null}readCidToGidMap(t,s){let n=[];for(let a=0,i=t.length;a<i;a++){let o=t[a++]<<8|t[a],r=a>>1;(o!==0||s.has(r))&&(n[r]=o)}return n}extractWidths(t,s,n){let a=this.xref,i=[],o=0,r=[],l;if(n.composite){let h=t.get("DW");o=typeof h=="number"?Math.ceil(h):1e3;let m=t.get("W");if(Array.isArray(m))for(let u=0,d=m.length;u<d;u++){let p=a.fetchIfRef(m[u++]);if(!Number.isInteger(p))break;let g=a.fetchIfRef(m[u]);if(Array.isArray(g))for(let b of g){let w=a.fetchIfRef(b);typeof w=="number"&&(i[p]=w),p++}else{if(!Number.isInteger(g))break;{let b=a.fetchIfRef(m[++u]);if(typeof b!="number")continue;for(let w=p;w<=g;w++)i[w]=b}}}if(n.vertical){let u=t.getArray("DW2"),d=Fe(u,2)?u:[880,-1e3];if(l=[d[1],.5*o,d[0]],d=t.get("W2"),Array.isArray(d))for(let p=0,g=d.length;p<g;p++){let b=a.fetchIfRef(d[p++]);if(!Number.isInteger(b))break;let w=a.fetchIfRef(d[p]);if(Array.isArray(w))for(let k=0,q=w.length;k<q;k++){let y=[a.fetchIfRef(w[k++]),a.fetchIfRef(w[k++]),a.fetchIfRef(w[k])];Fe(y,null)&&(r[b]=y),b++}else{if(!Number.isInteger(w))break;{let k=[a.fetchIfRef(d[++p]),a.fetchIfRef(d[++p]),a.fetchIfRef(d[++p])];if(!Fe(k,null))continue;for(let q=b;q<=w;q++)r[q]=k}}}}}else{let h=t.get("Widths");if(Array.isArray(h)){let m=n.firstChar;for(let d of h){let p=a.fetchIfRef(d);typeof p=="number"&&(i[m]=p),m++}let u=s.get("MissingWidth");o=typeof u=="number"?u:0}else{let m=t.get("BaseFont");if(m instanceof it){let u=this.getBaseFontMetrics(m.name);i=this.buildCharCodeToWidth(u.widths,n),o=u.defaultWidth}}}let f=!0,c=o;for(let h in i){let m=i[h];if(m)if(c){if(c!==m){f=!1;break}}else c=m}f?n.flags|=f1:n.flags&=~f1,n.defaultWidth=o,n.widths=i,n.defaultVMetrics=l,n.vmetrics=r}isSerifFont(t){let s=t.split("-",1)[0];return s in B5()||/serif/i.test(s)}getBaseFontMetrics(t){let s=0,n=Object.create(null),a=!1,i=Za(t);i=Nl()[i]||i;let o=Fq(),r=o[i]??o[this.isSerifFont(t)?"Times-Roman":"Helvetica"];return typeof r=="number"?(s=r,a=!0):n=r(),{defaultWidth:s,monospace:a,widths:n}}buildCharCodeToWidth(t,s){let n=Object.create(null),a=s.differences,i=s.defaultEncoding;for(let o=0;o<256;o++)o in a&&t[a[o]]?n[o]=t[a[o]]:o in i&&t[i[o]]&&(n[o]=t[i[o]]);return n}preEvaluateFont(t){let s=t,n=t.get("Subtype");if(!(n instanceof it))throw new nt("invalid font Subtype");let a,i=!1;if(n.name==="Type0"){let c=t.get("DescendantFonts");if(!c)throw new nt("Descendant fonts are not specified");if(!((t=Array.isArray(c)?this.xref.fetchIfRef(c[0]):c)instanceof R))throw new nt("Descendant font is not a dictionary.");if(n=t.get("Subtype"),!(n instanceof it))throw new nt("invalid font Subtype");i=!0}let o=t.get("FirstChar");Number.isInteger(o)||(o=0);let r=t.get("LastChar");Number.isInteger(r)||(r=i?65535:255);let l=t.get("FontDescriptor"),f=t.get("ToUnicode")||s.get("ToUnicode");if(l){a=new mh;let c=s.getRaw("Encoding");if(c instanceof it)a.update(c.name);else if(c instanceof rt)a.update(c.toString());else if(c instanceof R){for(let m of c.getRawValues())if(m instanceof it)a.update(m.name);else if(m instanceof rt)a.update(m.toString());else if(Array.isArray(m)){let u=m.length,d=new Array(u);for(let p=0;p<u;p++){let g=m[p];g instanceof it?d[p]=g.name:(typeof g=="number"||g instanceof rt)&&(d[p]=g.toString())}a.update(d.join())}}if(a.update(`${o}-${r}`),f instanceof Et){let m=f.stream||f,u=m.buffer?new Uint8Array(m.buffer.buffer,0,m.bufferLength):new Uint8Array(m.bytes.buffer,m.start,m.end-m.start);a.update(u)}else f instanceof it&&a.update(f.name);let h=t.get("Widths")||s.get("Widths");if(Array.isArray(h)){let m=[];for(let u of h)(typeof u=="number"||u instanceof rt)&&m.push(u.toString());a.update(m.join())}if(i){a.update("compositeFont");let m=t.get("W")||s.get("W");if(Array.isArray(m)){let d=[];for(let p of m)if(typeof p=="number"||p instanceof rt)d.push(p.toString());else if(Array.isArray(p)){let g=[];for(let b of p)(typeof b=="number"||b instanceof rt)&&g.push(b.toString());d.push(`[${g.join()}]`)}a.update(d.join())}let u=t.getRaw("CIDToGIDMap")||s.getRaw("CIDToGIDMap");u instanceof it?a.update(u.name):u instanceof rt?a.update(u.toString()):u instanceof Et&&a.update(u.peekBytes())}if(n.name==="Type3"){let m=s.get("CharProcs");if(m instanceof R)for(let[u,d]of m.getRawEntries())a.update(d instanceof rt?`${u}\\0${d}`:u)}}return{descriptor:l,dict:t,baseDict:s,composite:i,type:n.name,firstChar:o,lastChar:r,toUnicode:f,hash:a?a.hexdigest():""}}async translateFont({descriptor:t,dict:s,baseDict:n,composite:a,type:i,firstChar:o,lastChar:r,toUnicode:l,cssFontInfo:f}){let c=i==="Type3";if(!t)if(c)t=R.empty;else{if(!a){let M=s.get("BaseFont");if(!(M instanceof it))throw new nt("Base font is not specified");M=Za(M.name);let J=this.getBaseFontMetrics(M),et=M.split("-",1)[0],U=(this.isSerifFont(et)?h8:0)|(J.monospace?f1:0)|(Lm()[et]?el:x3),_={type:i,name:M,loadedName:n.loadedName,systemFontInfo:null,widths:J.widths,defaultWidth:J.defaultWidth,isSimulatedFlags:!0,flags:U,firstChar:o,lastChar:r,toUnicode:l,xHeight:0,capHeight:0,italicAngle:0,isType3Font:c},ht=s.get("Widths"),vt=a0(M),G=null;vt&&(G=await this.fetchStandardFontData(vt),_.isInternalFont=!!G),!_.isInternalFont&&this.options.useSystemFonts&&(_.systemFontInfo=u0(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,M,vt,i));let It=await this.extractDataStructures(s,_);if(Array.isArray(ht)){let jt=[],kt=o;for(let Ft of ht){let mt=this.xref.fetchIfRef(Ft);typeof mt=="number"&&(jt[kt]=mt),kt++}It.widths=jt}else It.widths=this.buildCharCodeToWidth(J.widths,It);return new ah(M,G,It,this.options)}t=R.empty}let h=t.get("FontName"),m=s.get("BaseFont");typeof h=="string"&&(h=it.get(h)),typeof m=="string"&&(m=it.get(m));let u=h?.name,d=m?.name;if(c?u||(h=it.get(i)):u!==d&&(ie(`The FontDescriptor\'s FontName is "${u}" but should be the same as the Font\'s BaseFont "${d}".`),u&&d&&(d.startsWith(u)||!A3(u)&&A3(d))&&(h=null),h||(h=m)),!(h instanceof it))throw new nt("invalid font name");let p,g,b,w,k,q;try{for(let M of["FontFile","FontFile2","FontFile3"])if(p=t.get(M),p){g=M;break}if(p){if(!(p instanceof Et))throw new nt("FontFile should be a stream");if(p.isAsync){let M=await p.asyncGetBytes();M&&(p=new ke(M,0,M.length,p.dict))}if(p.isEmpty)throw new nt("FontFile is empty")}}catch(M){if(!this.options.ignoreErrors)throw M;F(`translateFont - fetching "${h.name}" font file: "${M}".`),p=null}let y=!1,v=null,A=null;if(p){if(p.dict){let M=p.dict.get("Subtype");M instanceof it&&(b=M.name),w=p.dict.get("Length1"),k=p.dict.get("Length2"),q=p.dict.get("Length3")}}else if(f){let M=T5(h.name);M&&(f.fontFamily=`${f.fontFamily}-PdfJS-XFA`,f.metrics=M.metrics||null,v=M.factors||null,p=await this.fetchStandardFontData(M.name),y=!!p,n=s=w8(h.name),a=!0)}else if(!c){let M=a0(h.name);M&&(p=await this.fetchStandardFontData(M),y=!!p),!y&&this.options.useSystemFonts&&(A=u0(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,h.name,M,i))}let x=la(s.getArray("FontMatrix"),Ri),I=Wn(t.getArray("FontBBox")||s.getArray("FontBBox"),c?[0,0,0,0]:void 0),B=t.get("Ascent");typeof B!="number"&&(B=void 0);let D=t.get("Descent");typeof D!="number"&&(D=void 0);let W=t.get("XHeight");typeof W!="number"&&(W=0);let L=t.get("CapHeight");typeof L!="number"&&(L=0);let ot=t.get("Flags");Number.isInteger(ot)||(ot=0);let P=t.get("ItalicAngle");typeof P!="number"&&(P=0);let H={type:i,name:h.name,subtype:b,file:p,fontFileN:g,length1:w,length2:k,length3:q,isInternalFont:y,loadedName:n.loadedName,composite:a,fixedPitch:!1,fontMatrix:x,firstChar:o,lastChar:r,toUnicode:l,bbox:I,ascent:B,descent:D,xHeight:W,capHeight:L,flags:ot,italicAngle:P,isType3Font:c,cssFontInfo:f,scaleFactors:v,systemFontInfo:A};if(a){let M=n.get("Encoding");M instanceof it&&(H.cidEncoding=M.name);let J=await hi.create({encoding:M,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});H.cMap=J,H.vertical=H.cMap.vertical}let V=await this.extractDataStructures(s,H);this.extractWidths(s,t,V);let C=new ah(h.name,p,V,this.options);if(C.missingFile&&!C.systemFontInfo&&!c&&this.options.useSystemFonts){let M=a0(h.name),J=u0(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,h.name,M,i);J&&(J.guessFallback&&(J.guessFallback=!1,J.css+=`,${C.fallbackName}`),C.systemFontInfo=J)}return C}static buildFontPaths(t,s,n,a){function i(o){let r=`${t.loadedName}_path_${o}`;try{let l=t.renderer.getPath(o);if(!l)return;n.send("commonobj",[r,"FontPath",l],[l])}catch(l){if(a.ignoreErrors){F(`buildFontPaths - ignoring ${r} glyph: "${l}".`);return}throw l}}for(let o of s){i(o.fontChar);let r=o.accent;r?.fontChar&&i(r.fontChar)}}static get fallbackFontDict(){let t=new R;return t.set("BaseFont",it.get("Helvetica")),t.set("Type",it.get("FallbackType")),t.set("Subtype",it.get("FallbackType")),t.set("Encoding",it.get("WinAnsiEncoding")),yt(this,"fallbackFontDict",t)}};ec=new WeakSet,Sp=function(t){let s=this._pdfFunctionFactory.create(t),n=new Float32Array(1);return Uint8Array.from({length:256},(a,i)=>(n[0]=i/255,s(n,0,n,0),255*n[0]|0))};var Ul=du,sc,Ii,yo,B8,T8,fl=class{constructor({loadedName:t,font:s,dict:n}){at(this,yo);at(this,sc,!1);at(this,Ii,null);this.loadedName=t,this.font=s,this.dict=n,this.type3Dependencies=s.isType3Font?new Set:null}send(t){if(S(this,sc))return;Bt(this,sc,!0);let s=this.font.exportData(),n=s.buffer?[s.buffer]:null;t.send("commonobj",[this.loadedName,"Font",s],n)}fallback(t,s){this.font.data&&(this.font.disableFontFace=!0,Ul.buildFontPaths(this.font,this.font.glyphCacheValues,t,s))}async loadType3Data(t,s,n,a=null){if(S(this,Ii))return S(this,Ii);let{dict:i,font:o,type3Dependencies:r}=this;Ae(o.isType3Font,"Must be a Type3 font.");let{promise:l,resolve:f}=Promise.withResolvers();Bt(this,Ii,l);let c=t.clone({ignoreErrors:!1}),h=new re(t.type3FontRefs);i.objId&&h.put(i.objId),c.type3FontRefs=h;let m=i.get("CharProcs"),u=i.get("Resources")||s,d=new Map,[p,g,b,w]=o.bbox,k=Math.hypot(b-p,w-g);for(let q of m.getKeys())try{let y=new $s;switch(await c.getOperatorList({stream:m.get(q),task:n,resources:u,operatorList:y,prevRefs:a}),y.fnArray[0]){case O0:N(this,yo,B8).call(this,y,k);break;case v4:k||N(this,yo,T8).call(this,y)}d.set(q,y.getIR());for(let v of y.dependencies)r.add(v)}catch{F(`Type3 font resource "${q}" is not available.`),d.set(q,new $s().getIR())}return o.charProcOperatorList=d,this._bbox&&(o.isCharBBox=!0,o.bbox=this._bbox),f(),S(this,Ii)}};sc=new WeakMap,Ii=new WeakMap,yo=new WeakSet,B8=function(t,s=NaN){let n=ee.normalizeRect(t.argsArray[0].slice(2)),a=n[2]-n[0],i=n[3]-n[1],o=Math.hypot(a,i);a===0||i===0?(t.fnArray.splice(0,1),t.argsArray.splice(0,1)):(s===0||Math.round(o/s)>=10)&&(this._bbox??(this._bbox=Xa.slice()),ee.rectBoundingBox(...n,this._bbox));let r=0,l=t.length;for(;r<l;){switch(t.fnArray[r]){case O0:break;case k5:case Hu:case q5:case B1:case Bu:case T1:case y5:case Sc:case Ca:case zn:case v5:case Ac:case R1:case d4:t.fnArray.splice(r,1),t.argsArray.splice(r,1),l--;continue;case Wa:let[f]=t.argsArray[r],c=0,h=f.length;for(;c<h;){let[m]=f[c];switch(m){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":f.splice(c,1),h--;continue}c++}}r++}},T8=function(t){let s=1,n=t.length;for(;s<n;){if(t.fnArray[s]===Mi){let a=t.argsArray[s][2];this._bbox??(this._bbox=Xa.slice()),ee.rectBoundingBox(...a,this._bbox)}s++}};var Fr=class{constructor(t=new dh){this.state=t,this.stateStack=[]}save(){let t=this.state;this.stateStack.push(this.state),this.state=t.clone()}restore(){let t=this.stateStack.pop();t&&(this.state=t)}transform(t){this.state.ctm=ee.transform(this.state.ctm,t)}},Ap=class{constructor(){Y(this,"ctm",new Float32Array(an));Y(this,"fontName",null);Y(this,"fontSize",0);Y(this,"loadedName",null);Y(this,"font",null);Y(this,"fontMatrix",Ri);Y(this,"textMatrix",an.slice());Y(this,"textLineMatrix",an.slice());Y(this,"charSpacing",0);Y(this,"wordSpacing",0);Y(this,"leading",0);Y(this,"textHScale",1);Y(this,"textRise",0)}setTextMatrix(t,s,n,a,i,o){let r=this.textMatrix;r[0]=t,r[1]=s,r[2]=n,r[3]=a,r[4]=i,r[5]=o}setTextLineMatrix(t,s,n,a,i,o){let r=this.textLineMatrix;r[0]=t,r[1]=s,r[2]=n,r[3]=a,r[4]=i,r[5]=o}translateTextMatrix(t,s){let n=this.textMatrix;n[4]=n[0]*t+n[2]*s+n[4],n[5]=n[1]*t+n[3]*s+n[5]}translateTextLineMatrix(t,s){let n=this.textLineMatrix;n[4]=n[0]*t+n[2]*s+n[4],n[5]=n[1]*t+n[3]*s+n[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){let t=Object.assign(Object.create(this),this);return t.textMatrix=this.textMatrix.slice(),t.textLineMatrix=this.textLineMatrix.slice(),t.fontMatrix=this.fontMatrix.slice(),t}},dh=class{constructor(){Y(this,"ctm",new Float32Array(an));Y(this,"font",null);Y(this,"textRenderingMode",Oj);Y(this,"_fillColorSpace",ae.gray);Y(this,"_strokeColorSpace",ae.gray);Y(this,"patternFillColorSpace",null);Y(this,"patternStrokeColorSpace",null);Y(this,"currentPointX",0);Y(this,"currentPointY",0);Y(this,"pathMinMax",k1.slice());Y(this,"pathBuffer",[])}get fillColorSpace(){return this._fillColorSpace}set fillColorSpace(t){this._fillColorSpace=this.patternFillColorSpace=t}get strokeColorSpace(){return this._strokeColorSpace}set strokeColorSpace(t){this._strokeColorSpace=this.patternStrokeColorSpace=t}clone({newPath:t=!1}={}){let s=Object.create(this);return t&&(s.pathBuffer=[],s.pathMinMax=k1.slice()),s}},Cr=class Cr{static get opMap(){return yt(this,"opMap",Object.assign(Object.create(null),{w:{id:m4,numArgs:1,variableArgs:!1},J:{id:fk,numArgs:1,variableArgs:!1},j:{id:ck,numArgs:1,variableArgs:!1},M:{id:hk,numArgs:1,variableArgs:!1},d:{id:p4,numArgs:2,variableArgs:!1},ri:{id:d4,numArgs:1,variableArgs:!1},i:{id:uk,numArgs:1,variableArgs:!1},gs:{id:Wa,numArgs:1,variableArgs:!1},q:{id:Hn,numArgs:0,variableArgs:!1},Q:{id:Vs,numArgs:0,variableArgs:!1},cm:{id:wa,numArgs:6,variableArgs:!1},m:{id:y1,numArgs:2,variableArgs:!1},l:{id:I0,numArgs:2,variableArgs:!1},c:{id:C0,numArgs:6,variableArgs:!1},v:{id:H0,numArgs:4,variableArgs:!1},y:{id:B0,numArgs:4,variableArgs:!1},h:{id:T0,numArgs:0,variableArgs:!1},re:{id:R0,numArgs:4,variableArgs:!1},S:{id:b5,numArgs:0,variableArgs:!1},s:{id:v1,numArgs:0,variableArgs:!1},f:{id:F0,numArgs:0,variableArgs:!1},F:{id:F0,numArgs:0,variableArgs:!1},"f*":{id:g4,numArgs:0,variableArgs:!1},B:{id:w5,numArgs:0,variableArgs:!1},"B*":{id:j5,numArgs:0,variableArgs:!1},b:{id:x1,numArgs:0,variableArgs:!1},"b*":{id:S1,numArgs:0,variableArgs:!1},n:{id:M0,numArgs:0,variableArgs:!1},W:{id:mk,numArgs:0,variableArgs:!1},"W*":{id:pk,numArgs:0,variableArgs:!1},BT:{id:A1,numArgs:0,variableArgs:!1},ET:{id:xl,numArgs:0,variableArgs:!1},Tc:{id:z0,numArgs:1,variableArgs:!1},Tw:{id:D0,numArgs:1,variableArgs:!1},Tz:{id:b4,numArgs:1,variableArgs:!1},TL:{id:w4,numArgs:1,variableArgs:!1},Tf:{id:Ga,numArgs:2,variableArgs:!1},Tr:{id:j4,numArgs:1,variableArgs:!1},Ts:{id:k4,numArgs:1,variableArgs:!1},Td:{id:q4,numArgs:2,variableArgs:!1},TD:{id:y4,numArgs:2,variableArgs:!1},Tm:{id:Ui,numArgs:6,variableArgs:!1},"T*":{id:Zc,numArgs:0,variableArgs:!1},Tj:{id:oa,numArgs:1,variableArgs:!1},TJ:{id:I1,numArgs:1,variableArgs:!1},"\'":{id:C1,numArgs:1,variableArgs:!1},\'"\':{id:H1,numArgs:3,variableArgs:!1},d0:{id:v4,numArgs:2,variableArgs:!1},d1:{id:O0,numArgs:6,variableArgs:!1},CS:{id:k5,numArgs:1,variableArgs:!1},cs:{id:Hu,numArgs:1,variableArgs:!1},SC:{id:q5,numArgs:4,variableArgs:!0},SCN:{id:B1,numArgs:33,variableArgs:!0},sc:{id:Bu,numArgs:4,variableArgs:!0},scn:{id:T1,numArgs:33,variableArgs:!0},G:{id:y5,numArgs:1,variableArgs:!1},g:{id:Sc,numArgs:1,variableArgs:!1},RG:{id:Ca,numArgs:3,variableArgs:!1},rg:{id:zn,numArgs:3,variableArgs:!1},K:{id:v5,numArgs:4,variableArgs:!1},k:{id:Ac,numArgs:4,variableArgs:!1},sh:{id:R1,numArgs:1,variableArgs:!1},BI:{id:dk,numArgs:0,variableArgs:!1},ID:{id:gk,numArgs:0,variableArgs:!1},EI:{id:x4,numArgs:1,variableArgs:!1},Do:{id:N0,numArgs:1,variableArgs:!1},MP:{id:S4,numArgs:1,variableArgs:!1},DP:{id:A4,numArgs:2,variableArgs:!1},BMC:{id:_0,numArgs:1,variableArgs:!1},BDC:{id:Dn,numArgs:2,variableArgs:!1},EMC:{id:Va,numArgs:0,variableArgs:!1},BX:{id:I4,numArgs:0,variableArgs:!1},EX:{id:C4,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}constructor(t,s,n=new Fr){this.parser=new On({lexer:new Ls(t,Cr.opMap),xref:s}),this.stateManager=n,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let s=t.args;for(;;){let n=this.parser.getObj();if(n instanceof Ve){let a=n.cmd,i=Cr.opMap[a];if(!i){F(`Unknown command "${a}".`);continue}let o=i.id,r=i.numArgs,l=s!==null?s.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=o>=y1&&o<=M0,i.variableArgs)l>r&&ie(`Command ${a}: expected [0, ${r}] args, but received ${l} args.`);else{if(l!==r){let f=this.nonProcessedArgs;for(;l>r;)f.push(s.shift()),l--;for(;l<r&&f.length!==0;)s===null&&(s=[]),s.unshift(f.pop()),l++}if(l<r){let f=`command ${a}: expected ${r} args, but received ${l} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>Cr.MAX_INVALID_PATH_OPS)throw new nt(`Invalid ${f}`);F(`Skipping ${f}`),s!==null&&(s.length=0);continue}}return this.preprocessCommand(o,s),t.fn=o,t.args=s,!0}if(n===fs)return!1;if(n!==null&&(s===null&&(s=[]),s.push(n),s.length>33))throw new nt("Too many arguments")}}preprocessCommand(t,s){switch(0|t){case Hn:this.stateManager.save();break;case Vs:this.stateManager.restore();break;case wa:this.stateManager.transform(s)}}};Y(Cr,"MAX_INVALID_PATH_OPS",10);var po=Cr,Ip=class extends po{constructor(t){super(new ts(t))}parse(){let t={fn:0,args:[]},s={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;t.args.length=0,!!this.read(t);){if(this.savedStatesDepth!==0)continue;let{fn:n,args:a}=t;switch(0|n){case Ga:let[i,o]=a;i instanceof it&&(s.fontName=i.name),typeof o=="number"&&o>0&&(s.fontSize=o);break;case zn:ae.rgb.getRgbItem(a,0,s.fontColor,0);break;case Sc:ae.gray.getRgbItem(a,0,s.fontColor,0);break;case Ac:ae.cmyk.getRgbItem(a,0,s.fontColor,0)}}}catch(n){F(`parseDefaultAppearance - ignoring errors: "${n}".`)}return s}};function O5(e){return new Ip(e).parse()}var Cp=class extends po{constructor(t,s,n){super(t),this.stream=t,this.xref=s,this.globalColorSpaceCache=n,this.resources=t.dict?.get("Resources")}parse(){let t={fn:0,args:[]},s={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:ae.gray},n=!1,a=[];try{for(;t.args.length=0,!(n||!this.read(t));){let{fn:i,args:o}=t;switch(0|i){case Hn:a.push({scaleFactor:s.scaleFactor,fontSize:s.fontSize,fontName:s.fontName,fontColor:s.fontColor.slice(),fillColorSpace:s.fillColorSpace});break;case Vs:s=a.pop()||s;break;case Ui:let r=ee.transform(this.stateManager.state.ctm,o);s.scaleFactor*=Math.hypot(r[0],r[1]);break;case Ga:let[l,f]=o;l instanceof it&&(s.fontName=l.name),typeof f=="number"&&f>0&&(s.fontSize=f);break;case Hu:s.fillColorSpace=ae.parse({cs:o[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case Bu:s.fillColorSpace.getRgbItem(o,0,s.fontColor,0);break;case zn:ae.rgb.getRgbItem(o,0,s.fontColor,0);break;case Sc:ae.gray.getRgbItem(o,0,s.fontColor,0);break;case Ac:ae.cmyk.getRgbItem(o,0,s.fontColor,0);break;case oa:case I1:case C1:case H1:s.fontSize*=s.scaleFactor,n=!0}}}catch(i){F(`parseAppearanceStream - ignoring errors: "${i}".`)}return this.stream.reset(),delete s.scaleFactor,delete s.fillColorSpace,s}get _localColorSpaceCache(){return yt(this,"_localColorSpaceCache",new ch)}get _pdfFunctionFactory(){return yt(this,"_pdfFunctionFactory",new Pl({xref:this.xref}))}};function Ln(e,t){return e[0]===e[1]&&e[1]===e[2]?`${we(e[0]/255)} ${t?"g":"G"}`:Array.from(e,s=>we(s/255)).join(" ")+" "+(t?"rg":"RG")}var gu,di=class di{constructor(t,s){this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=s;let n=new OffscreenCanvas(1,1);this.ctxMeasure=n.getContext("2d",{willReadFrequently:!0}),this.fontName=it.get(`InvalidPDFjsFont_${s}_${pe(di,gu)._++}`)}get fontDescriptorRef(){if(!di._fontDescriptorRef){let t=new R(this.xref);t.setIfName("Type","FontDescriptor"),t.set("FontName",this.fontName),t.set("FontFamily","MyriadPro Regular"),t.set("FontBBox",[0,0,0,0]),t.setIfName("FontStretch","Normal"),t.set("FontWeight",400),t.set("ItalicAngle",0),di._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return di._fontDescriptorRef}get descendantFontRef(){let t=new R(this.xref);t.set("BaseFont",this.fontName),t.setIfName("Type","Font"),t.setIfName("Subtype","CIDFontType0"),t.setIfName("CIDToGIDMap","Identity"),t.set("FirstChar",this.firstChar),t.set("LastChar",this.lastChar),t.set("FontDescriptor",this.fontDescriptorRef),t.set("DW",1e3);let s=[],n=[...this.widths].sort(),a=null,i=null;for(let[r,l]of n)a?r===a+i.length?i.push(l):(s.push(a,i),a=r,i=[l]):(a=r,i=[l]);a&&s.push(a,i),t.set("W",s);let o=new R(this.xref);return o.set("Ordering","Identity"),o.set("Registry","Adobe"),o.set("Supplement",0),t.set("CIDSystemInfo",o),this.xref.getNewPersistentRef(t)}get baseFontRef(){let t=new R(this.xref);return t.set("BaseFont",this.fontName),t.setIfName("Type","Font"),t.setIfName("Subtype","Type0"),t.setIfName("Encoding","Identity-H"),t.set("DescendantFonts",[this.descendantFontRef]),t.setIfName("ToUnicode","Identity-H"),this.xref.getNewPersistentRef(t)}get resources(){let t=new R(this.xref),s=new R(this.xref);return s.set(this.fontName.name,this.baseFontRef),t.set("Font",s),t}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(t){let s=this._createContext();for(let n of t.split(/\\r\\n?|\\n/))for(let a of n.split("")){let i=a.charCodeAt(0);if(this.widths.has(i))continue;let o=s.measureText(a),r=Math.ceil(o.width);this.widths.set(i,r),this.firstChar=Math.min(i,this.firstChar),this.lastChar=Math.max(i,this.lastChar)}return this.resources}static getFirstPositionInfo(t,s,n){let[a,i,o,r]=t,l=o-a,f=r-i;s%180!=0&&([l,f]=[f,l]);let c=1.35*n;return{coords:[0,f+.35*n-c],bbox:[0,0,l,f],matrix:s!==0?O1(s,f,c):void 0}}createAppearance(t,s,n,a,i,o){let r=this._createContext(),l=[],f=-1/0;for(let D of t.split(/\\r\\n?|\\n/)){l.push(D);let W=r.measureText(D).width;f=Math.max(f,W);for(let L of zk(D)){let ot=String.fromCodePoint(L),P=this.widths.get(L);if(P===void 0){let H=r.measureText(ot);P=Math.ceil(H.width),this.widths.set(L,P),this.firstChar=Math.min(L,this.firstChar),this.lastChar=Math.max(L,this.lastChar)}}}f*=a/1e3;let[c,h,m,u]=s,d=m-c,p=u-h;n%180!=0&&([d,p]=[p,d]);let g=f>d?d/f:1,b=1,w=1.35*a,k=.35*a,q=w*l.length;q>p&&(b=p/q);let y=a*Math.min(g,b),v=["q",`0 0 ${we(d)} ${we(p)} re W n`,"BT",`1 0 0 1 0 ${we(p+k)} Tm 0 Tc ${Ln(i,!0)}`,`/${this.fontName.name} ${we(y)} Tf`],{resources:A}=this;if((o=typeof o=="number"&&o>=0&&o<=1?o:1)!==1){v.push("/R0 gs");let D=new R(this.xref),W=new R(this.xref);W.set("ca",o),W.set("CA",o),W.setIfName("Type","ExtGState"),D.set("R0",W),A.set("ExtGState",D)}let x=we(w);for(let D of l)v.push(`0 -${x} Td <${Tk(D)}> Tj`);v.push("ET","Q");let I=v.join(`\n`),B=new R(this.xref);if(B.setIfName("Subtype","Form"),B.setIfName("Type","XObject"),B.set("BBox",[0,0,d,p]),B.set("Length",I.length),B.set("Resources",A),n){let D=O1(n,d,p);B.set("Matrix",D)}return new ts(I,B)}};gu=new WeakMap,at(di,gu,1);var Ll=di,Yy=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],Jy=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"],gh=class{constructor(t,s,n){this.root=t,this.xref=s,this._type=n}getAll(t=!1){let s=new Map;if(!this.root)return s;let n=this.xref,a=new re;this.root instanceof rt&&a.put(this.root);let i=[this.root];for(let o of i){let r=n.fetchIfRef(o);if(!(r instanceof R))continue;if(r.has("Kids")){let f=r.get("Kids");if(!Array.isArray(f))continue;for(let c of f){if(c instanceof rt){if(a.has(c))throw new nt(`Duplicate entry in "${this._type}" tree.`);a.put(c)}i.push(c)}continue}let l=r.get(this._type);if(Array.isArray(l))for(let f=0,c=l.length;f<c;f+=2)s.set(t?l[f]:n.fetchIfRef(l[f]),t?l[f+1]:n.fetchIfRef(l[f+1]))}return s}getRaw(t){if(!this.root)return null;let s=this.xref,n=s.fetchIfRef(this.root),a=0;for(;n.has("Kids");){if(++a>10)return F(`Search depth limit reached for "${this._type}" tree.`),null;let o=n.get("Kids");if(!Array.isArray(o))return null;let r=0,l=o.length-1;for(;r<=l;){let f=r+l>>1,c=s.fetchIfRef(o[f]),h=c.get("Limits");if(t<s.fetchIfRef(h[0]))l=f-1;else{if(!(t>s.fetchIfRef(h[1]))){n=c;break}r=f+1}}if(r>l)return null}let i=n.get(this._type);if(Array.isArray(i)){let o=0,r=i.length-2;for(;o<=r;){let l=o+r>>1,f=l+(1&l),c=s.fetchIfRef(i[f]);if(t<c)r=f-2;else{if(!(t>c))return i[f+1];o=f+2}}}return null}get(t){return this.xref.fetchIfRef(this.getRaw(t))}},wn=class extends gh{constructor(t,s){super(t,s,"Names")}},Gi=class extends gh{constructor(t,s){super(t,s,"Nums")}};function N5(){(function(){qm?.clear()})(),(function(){e1=Object.create(null),s1=Object.create(null),hr=Object.create(null)})(),(function(){Om.clear()})(),co.cleanup()}var As=class e{constructor(t){t instanceof R&&(this.root=t,t.has("RF")&&F("Related file specifications are not supported"))}get filename(){let t=e.pickPlatformItem(this.root);return t&&typeof t=="string"?Jt(t,!0).replaceAll("\\\\\\\\","\\\\").replaceAll("\\\\/","/").replaceAll("\\\\","/"):""}get description(){let t=this.root?.get("Desc");return t&&typeof t=="string"?Jt(t):""}get serializable(){let{filename:t,description:s}=this;return{rawFilename:t,filename:(n=t,n.substring(n.lastIndexOf("/")+1)||"unnamed"),description:s};var n}static pickPlatformItem(t,s=!1){if(t instanceof R){for(let n of["UF","F","Unix","Mac","DOS"])if(t.has(n))return s?t.getRaw(n):t.get(n)}return null}static hasEmbeddedFile(t){return this.pickPlatformItem(t.get("EF"))instanceof Et}static readContent(t){if(!(t instanceof R))return null;let s=this.pickPlatformItem(t.get("EF"));return s instanceof Et?this.readStreamContent(s):(F("Embedded file specification points to non-existing/invalid content"),null)}static readStreamContent(t){if(t.dict?.xref?.encrypt?.encryptionKey===null)throw new Cn("No password given",L0);return t.getBytes()}},cl=0,Qy=-2,Zy=-3,F6=-4,tv=-5,M6=-6,z6=-9;function wr(e,t){let s=e[t];return s===" "||s===`\n`||s==="\\r"||s===" "}var bh=class e{static get _entityRegex(){return yt(this,"_entityRegex",/&(?:#x([^;&]+)|#([^;&]+)|([^;&]+));/g)}_resolveEntities(t){return t.replaceAll(e._entityRegex,(s,n,a,i)=>{if(n||a){let o=n?parseInt(n,16):parseInt(a,10);return o>=0&&o<=1114111?String.fromCodePoint(o):s}switch(i){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return\'"\';case"apos":return"\'"}return this.onResolveEntity(i)})}_parseContent(t,s){let n=[],a=s;function i(){for(;a<t.length&&wr(t,a);)++a}for(;a<t.length&&!wr(t,a)&&t[a]!==">"&&t[a]!=="/";)++a;let o=t.substring(s,a);for(i();a<t.length&&t[a]!==">"&&t[a]!=="/"&&t[a]!=="?";){i();let r="",l="";for(;a<t.length&&!wr(t,a)&&t[a]!=="=";)r+=t[a],++a;if(i(),t[a]!=="=")return null;++a,i();let f=t[a];if(f!==\'"\'&&f!=="\'")return null;let c=t.indexOf(f,++a);if(c<0)return null;l=t.substring(a,c),n.push({name:r,value:this._resolveEntities(l)}),a=c+1,i()}return{name:o,attributes:n,parsed:a-s}}_parseProcessingInstruction(t,s){let n=s;for(;n<t.length&&!wr(t,n)&&t[n]!==">"&&t[n]!=="?"&&t[n]!=="/";)++n;let a=t.substring(s,n);(function(){for(;n<t.length&&wr(t,n);)++n})();let i=n;for(;n<t.length&&(t[n]!=="?"||t[n+1]!==">");)++n;return{name:a,value:t.substring(i,n),parsed:n-s}}parseXml(t){let s=0;for(;s<t.length;){let n=s;if(t[s]==="<"){++n;let a;switch(t[n]){case"/":if(++n,a=t.indexOf(">",n),a<0){this.onError(z6);return}this.onEndElement(t.substring(n,a)),n=a+1;break;case"?":++n;let i=this._parseProcessingInstruction(t,n);if(t.substring(n+i.parsed,n+i.parsed+2)!=="?>"){this.onError(Zy);return}this.onPi(i.name,i.value),n+=i.parsed+2;break;case"!":if(t.substring(n+1,n+3)==="--"){if(a=t.indexOf("-->",n+3),a<0){this.onError(tv);return}this.onComment(t.substring(n+3,a)),n=a+3}else if(t.substring(n+1,n+8)==="[CDATA["){if(a=t.indexOf("]]>",n+8),a<0){this.onError(Qy);return}this.onCdata(t.substring(n+8,a)),n=a+3}else{if(t.substring(n+1,n+8)!=="DOCTYPE"){this.onError(M6);return}{let l=t.indexOf("[",n+8),f=!1;if(a=t.indexOf(">",n+8),a<0){this.onError(F6);return}if(l>0&&a>l){if(a=t.indexOf("]>",n+8),a<0){this.onError(F6);return}f=!0}let c=t.substring(n+8,a+(f?1:0));this.onDoctype(c),n=a+(f?2:1)}}break;default:let o=this._parseContent(t,n);if(o===null){this.onError(M6);return}let r=!1;if(t.substring(n+o.parsed,n+o.parsed+2)==="/>")r=!0;else if(t.substring(n+o.parsed,n+o.parsed+1)!==">"){this.onError(z6);return}this.onBeginElement(o.name,o.attributes,r),n+=o.parsed+(r?2:1)}}else{for(;n<t.length&&t[n]!=="<";)n++;let a=t.substring(s,n);this.onText(this._resolveEntities(a))}s=n}}onResolveEntity(t){return`&${t};`}onPi(t,s){}onComment(t){}onCdata(t){}onDoctype(t){}onText(t){}onBeginElement(t,s,n){}onEndElement(t){}onError(t){}},Di=class{constructor(t,s){this.nodeName=t,this.nodeValue=s,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){let t=this.parentNode.childNodes;if(!t)return;let s=t.indexOf(this);return s!==-1?t[s+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(t=>t.textContent).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(t,s){if(s>=t.length)return this;let n=t[s];if(n.name.startsWith("#")&&s<t.length-1)return this.searchNode(t,s+1);let a=[],i=this;for(;;){if(n.name===i.nodeName){if(n.pos!==0){if(a.length===0)return null;{let[o]=a.pop(),r=0;for(let l of o.childNodes)if(n.name===l.nodeName){if(r===n.pos)return l.searchNode(t,s+1);r++}return i.searchNode(t,s+1)}}{let o=i.searchNode(t,s+1);if(o!==null)return o}}if(i.childNodes?.length>0)a.push([i,0]),i=i.childNodes[0];else{if(a.length===0)return null;for(;a.length!==0;){let[o,r]=a.pop(),l=r+1;if(l<o.childNodes.length){a.push([o,l]),i=o.childNodes[l];break}}if(a.length===0)return null}}}dump(t){if(this.nodeName!=="#text"){if(t.push(`<${this.nodeName}`),this.attributes)for(let s of this.attributes)t.push(` ${s.name}="${Br(s.value)}"`);if(this.hasChildNodes()){t.push(">");for(let s of this.childNodes)s.dump(t);t.push(`</${this.nodeName}>`)}else this.nodeValue?t.push(`>${Br(this.nodeValue)}</${this.nodeName}>`):t.push("/>")}else t.push(Br(this.nodeValue))}},go=class extends bh{constructor({hasAttributes:t=!1,lowerCaseName:s=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=cl,this._hasAttributes=t,this._lowerCaseName=s}parseFromString(t){if(this._currentFragment=[],this._stack=[],this._errorCode=cl,this.parseXml(t),this._errorCode!==cl)return;let[s]=this._currentFragment;return s?{documentElement:s}:void 0}onText(t){if((function(a){for(let i=0,o=a.length;i<o;i++)if(!wr(a,i))return!1;return!0})(t))return;let s=new Di("#text",t);this._currentFragment.push(s)}onCdata(t){let s=new Di("#text",t);this._currentFragment.push(s)}onBeginElement(t,s,n){this._lowerCaseName&&(t=t.toLowerCase());let a=new Di(t);a.childNodes=[],this._hasAttributes&&(a.attributes=s),this._currentFragment.push(a),n||(this._stack.push(this._currentFragment),this._currentFragment=a.childNodes)}onEndElement(t){this._currentFragment=this._stack.pop()||[];let s=this._currentFragment.at(-1);if(!s)return null;for(let n of s.childNodes)n.parentNode=s;return s}onError(t){this._errorCode=t}},Hp=class{constructor(t){t=this._repair(t);let s=new go({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,s&&this._parse(s)}_repair(t){return t.replace(/^[^<]+/,"").replaceAll(/>\\\\376\\\\377([^<]+)/g,function(s,n){let a=n.replaceAll(/\\\\([0-3])([0-7])([0-7])/g,function(o,r,l,f){return String.fromCharCode(64*r+8*l+1*f)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(o,r){switch(r){case"amp":return"&";case"apos":return"\'";case"gt":return">";case"lt":return"<";case"quot":return\'"\'}throw new Error(`_repair: ${r} isn\'t defined.`)}),i=[">"];for(let o=0,r=a.length;o<r;o+=2){let l=256*a.charCodeAt(o)+a.charCodeAt(o+1);l>=32&&l<127&&l!==60&&l!==62&&l!==38?i.push(String.fromCharCode(l)):i.push("&#x"+(65536+l).toString(16).substring(1)+";")}return i.join("")})}_getSequence(t){let s=t.nodeName;return s!=="rdf:bag"&&s!=="rdf:seq"&&s!=="rdf:alt"?null:t.childNodes.filter(n=>n.nodeName==="rdf:li")}_parseArray(t){if(!t.hasChildNodes())return;let[s]=t.childNodes,n=this._getSequence(s)||[];this._metadataMap.set(t.nodeName,n.map(a=>a.textContent.trim()))}_parse(t){let s=t.documentElement;if(s.nodeName!=="rdf:rdf")for(s=s.firstChild;s&&s.nodeName!=="rdf:rdf";)s=s.nextSibling;if(s&&s.nodeName==="rdf:rdf"&&s.hasChildNodes()){for(let n of s.childNodes)if(n.nodeName==="rdf:description")for(let a of n.childNodes){let i=a.nodeName;switch(i){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(a);continue}this._metadataMap.set(i,a.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}};function R8(e){if(!e||e.has("CO"))return null;let t=e.get("R");if(!Number.isInteger(t)||t<=0)return null;let s=e.get("C")??1;if(!Number.isInteger(s)||s<1||s>2)return null;let n=e.get("B")??8;if(n!==8&&n!==16)return null;let a=e.get("E"),i="Raw";return a!==void 0&&(i=a instanceof it?a.name:null),i!=="Raw"&&i!=="Signed"?null:{channels:s,sampleRate:t,bitsPerSample:n,encoding:i}}var ev=[["RowSpan","rowSpan"],["ColSpan","colSpan"]],F8=1,M8=2,Bp=3,z8=4,u1=5,bu,D8,fn,Tp,Rp,O8,N8,gi=class gi{constructor(t,s,n){at(this,bu);Y(this,"kidRefToPosition");Y(this,"parentTree",null);Y(this,"roleMap",new Map);Y(this,"structParentIds",null);this.xref=t,this.dict=s,this.ref=n instanceof rt?n:null;let a=s.get("RoleMap");if(a instanceof R)for(let[o,r]of a)r instanceof it&&this.roleMap.set(o,r.name);let i=s.getRaw("ParentTree");i&&(this.parentTree=new Gi(i,t))}getKidPosition(t){if(this.kidRefToPosition===void 0){let s=this.dict.get("K");if(Array.isArray(s)){let n=this.kidRefToPosition=new Map;for(let a=0,i=s.length;a<i;a++){let o=s[a];o&&n.set(o.toString(),a)}}else this.kidRefToPosition=s instanceof R?new Map([[s.objId,0]]):s?null:new Map}return this.kidRefToPosition?this.kidRefToPosition.get(t)??NaN:-1}addAnnotationIdToPage(t,s,n){N(this,bu,D8).call(this,t,s,z8,n instanceof rt?n.toString():null)}static async canCreateStructureTree({catalogRef:t,pdfManager:s,newAnnotationsByPage:n}){if(!(t instanceof rt))return F("Cannot save the struct tree: no catalog reference."),!1;let a=0,i=!0;for(let[o,r]of n){let{ref:l}=await s.getPage(o);if(!(l instanceof rt)){F(`Cannot save the struct tree: page ${o} has no ref.`),i=!0;break}for(let f of r)f.accessibilityData?.type&&(f.parentTreeId=a++,i=!1)}if(i){for(let o of n.values())for(let r of o)delete r.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:t,xref:s,catalogRef:n,pdfManager:a,changes:i}){let o=await a.ensureCatalog("cloneDict"),r=new Pe;r.put(n,o);let l=s.getNewTemporaryRef();o.set("StructTreeRoot",l);let f=new R(s);f.set("Type",it.get("StructTreeRoot"));let c=s.getNewTemporaryRef();f.set("ParentTree",c);let h=[];f.set("K",h),r.put(l,f);let m=new R(s),u=[];m.set("Nums",u);let d=await N(this,fn,Tp).call(this,{newAnnotationsByPage:t,structTreeRootRef:l,structTreeRoot:null,kids:h,nums:u,xref:s,pdfManager:a,changes:i,cache:r});f.set("ParentTreeNextKey",d),r.put(c,m);for(let[p,g]of r.items())i.put(p,{data:g})}async canUpdateStructTree({pdfManager:t,newAnnotationsByPage:s}){var l;if(!this.ref)return F("Cannot update the struct tree: no root reference."),!1;let n=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(n)||n<0)return F("Cannot update the struct tree: invalid next key."),!1;let a=this.dict.get("ParentTree");if(!(a instanceof R))return F("Cannot update the struct tree: ParentTree isn\'t a dict."),!1;let i=a.get("Nums");if(!Array.isArray(i))return F("Cannot update the struct tree: nums isn\'t an array."),!1;let o=new Gi(a,this.xref);for(let f of s.keys()){let{pageDict:c}=await t.getPage(f);if(!c.has("StructParents"))continue;let h=c.get("StructParents");if(!Number.isInteger(h)||!Array.isArray(o.get(h)))return F(`Cannot save the struct tree: page ${f} has a wrong id.`),!1}let r=!0;for(let[f,c]of s){let{pageDict:h}=await t.getPage(f);N(l=gi,fn,O8).call(l,{elements:c,xref:this.xref,pageDict:h,numberTree:o});for(let m of c)m.accessibilityData?.type&&(m.accessibilityData.structParent>=0||(m.parentTreeId=n++),r=!1)}if(r){for(let f of s.values())for(let c of f)delete c.parentTreeId,delete c.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:t,pdfManager:s,changes:n}){var u;let{ref:a,xref:i}=this,o=this.dict.clone(),r=new Pe;r.put(a,o);let l,f=o.getRaw("ParentTree");f instanceof rt?l=i.fetch(f):(l=f,f=i.getNewTemporaryRef(),o.set("ParentTree",f)),l=l.clone(),r.put(f,l);let c=l.getRaw("Nums"),h=null;c instanceof rt&&(h=c,c=i.fetch(h)),c=c.slice(),h||l.set("Nums",c);let m=await N(u=gi,fn,Tp).call(u,{newAnnotationsByPage:t,structTreeRootRef:a,structTreeRoot:this,kids:null,nums:c,xref:i,pdfManager:s,changes:n,cache:r});if(m!==-1){o.set("ParentTreeNextKey",m),h&&r.put(h,c);for(let[d,p]of r.items())n.put(d,{data:p})}}};bu=new WeakSet,D8=function(t,s,n,a){t instanceof rt&&!(s<0)&&(this.structParentIds??(this.structParentIds=new Pe)).getOrPutComputed(t,Ya).push([s,n,a])},fn=new WeakSet,Tp=async function({newAnnotationsByPage:t,structTreeRootRef:s,structTreeRoot:n,kids:a,nums:i,xref:o,pdfManager:r,changes:l,cache:f}){var u,d;let c=it.get("OBJR"),h,m=-1;for(let[p,g]of t){let b=await r.getPage(p),{ref:w}=b,k=w instanceof rt;for(let{accessibilityData:q,ref:y,parentTreeId:v,structTreeParent:A}of g){if(!q?.type)continue;let{structParent:x}=q;if(n&&Number.isInteger(x)&&x>=0){let W=(h||(h=new Map)).get(p);W===void 0&&(W=new wh(n,b.pageDict).collectObjects(w),h.set(p,W));let L=W?.get(x);if(L){let ot=o.fetch(L).clone();N(u=gi,fn,Rp).call(u,ot,q),l.put(L,{data:ot});continue}}m=Math.max(m,v);let I=o.getNewTemporaryRef(),B=new R(o);N(d=gi,fn,Rp).call(d,B,q),await N(this,fn,N8).call(this,{structTreeParent:A,tagDict:B,newTagRef:I,structTreeRootRef:s,fallbackKids:a,xref:o,cache:f});let D=new R(o);B.set("K",D),D.set("Type",c),k&&D.set("Pg",w),D.set("Obj",y),f.put(I,B),i.push(v,I)}}return m+1},Rp=function(t,{type:s,title:n,lang:a,alt:i,expanded:o,actualText:r}){t.set("S",it.get(s)),n&&t.set("T",Ze(n)),a&&t.set("Lang",Ze(a)),i&&t.set("Alt",Ze(i)),o&&t.set("E",Ze(o)),r&&t.set("ActualText",Ze(r))},O8=function({elements:t,xref:s,pageDict:n,numberTree:a}){let i=new Map;for(let f of t)if(f.structTreeParentId){let c=parseInt(f.structTreeParentId.split("_mc")[1],10);i.getOrInsertComputed(c,Ya).push(f)}let o=n.get("StructParents");if(!Number.isInteger(o))return;let r=a.get(o),l=(f,c,h)=>{let m=i.get(f);if(m){let u=c.getRaw("P"),d=s.fetchIfRef(u);if(u instanceof rt&&d instanceof R){let p={ref:h,dict:c};for(let g of m)g.structTreeParent=p}return!0}return!1};for(let f of r){if(!(f instanceof rt))continue;let c=s.fetch(f),h=c.get("K");if(Number.isInteger(h))l(h,c,f);else if(Array.isArray(h))for(let m of h){if(m=s.fetchIfRef(m),Number.isInteger(m)&&l(m,c,f))break;if(!(m instanceof R))continue;if(!$t(m.get("Type"),"MCR"))break;let u=m.get("MCID");if(Number.isInteger(u)&&l(u,c,f))break}}},N8=async function({structTreeParent:t,tagDict:s,newTagRef:n,structTreeRootRef:a,fallbackKids:i,xref:o,cache:r}){let l,f=null;t?({ref:f}=t,l=t.dict.getRaw("P")||a):l=a,s.set("P",l);let c=o.fetchIfRef(l);if(!c){i.push(n);return}let h=r.getOrPutComputed(l,()=>c.clone()),m=h.getRaw("K"),u=m instanceof rt?r.get(m):null;if(!u){u=o.fetchIfRef(m),u=Array.isArray(u)?u.slice():[m];let p=o.getNewTemporaryRef();h.set("K",p),r.put(p,u)}let d=u.indexOf(f);u.splice(d>=0?d+1:u.length,0,n)},at(gi,fn);var El=gi,nc,Mp,Fp=class{constructor(t,s){at(this,nc);this.tree=t,this.xref=t.xref,this.dict=s,this.kids=[],this.parseKids()}get role(){let t=this.dict.get("S"),s=t instanceof it?t.name:"",{root:n}=this.tree;return n.roleMap.get(s)??s}get mathML(){let t=this.dict.get("AF")||[];Array.isArray(t)||(t=[t]);for(let s of t){if(s=this.xref.fetchIfRef(s),!ro(s,"Filespec")||!$t(s.get("AFRelationship"),"Supplement"))continue;let n=As.pickPlatformItem(s.get("EF"));if(n instanceof Et&&ro(n.dict,"EmbeddedFile")&&$t(n.dict.get("Subtype"),"application/mathml+xml"))return io(n.getString())}for(let s of this.attributes)if($t(s.get("O"),"MSFT_Office")){let n=s.get("MSFT_MathML");return n?Jt(n):null}return null}get attributes(){let t=[],s=this.dict.getArray("C");if(s!==void 0){let n=this.tree.rootDict?.get("ClassMap");if(n instanceof R)for(let a of Array.isArray(s)?s:[s])a instanceof it&&N(this,nc,Mp).call(this,n.getRaw(a.name),t)}return N(this,nc,Mp).call(this,this.dict.getRaw("A"),t),yt(this,"attributes",t)}get tableAttributes(){let{role:t}=this;if(t!=="Table"&&t!=="TH"&&t!=="TD")return null;let s=new Map;for(let n of this.attributes)if($t(n.get("O"),"Table")){if(t!=="Table"){for(let[a,i]of ev){if(!n.has(a))continue;let o=n.get(a);Number.isInteger(o)&&o>1?s.set(i,o):s.delete(i)}if(n.has("Headers")){s.delete("headers");let a=n.getArray("Headers");if(Array.isArray(a)){let i=a.filter(o=>typeof o=="string").map(Jt);i.length>0&&s.set("headers",i)}}if(t==="TH"&&n.has("Scope")){s.delete("scope");let a=n.get("Scope");a instanceof it&&["Row","Column","Both"].includes(a.name)&&s.set("scope",a.name)}if(t==="TH"&&n.has("Short")){s.delete("short");let a=n.get("Short");typeof a=="string"&&a&&s.set("short",Jt(a))}}else if(n.has("Summary")){let a=n.get("Summary");typeof a=="string"&&a?s.set("summary",Jt(a)):s.delete("summary")}}return s.size?s:null}parseKids(){let t=null,s=this.dict.getRaw("Pg");s instanceof rt&&(t=s.toString());let n=this.dict.get("K");if(Array.isArray(n))for(let a of n){let i=this.parseKid(t,this.xref.fetchIfRef(a));i&&this.kids.push(i)}else{let a=this.parseKid(t,n);a&&this.kids.push(a)}}parseKid(t,s){if(Number.isInteger(s))return this.tree.pageDict.objId!==t?null:new xr({type:F8,mcid:s,pageObjId:t});if(!(s instanceof R))return null;let n=s.getRaw("Pg");n instanceof rt&&(t=n.toString());let a=s.get("Type")instanceof it?s.get("Type").name:null;if(a==="MCR"){if(this.tree.pageDict.objId!==t)return null;let i=s.getRaw("Stm");return new xr({type:M8,refObjId:i instanceof rt?i.toString():null,pageObjId:t,mcid:s.get("MCID")})}if(a==="OBJR"){if(this.tree.pageDict.objId!==t)return null;let i=s.getRaw("Obj");return new xr({type:Bp,refObjId:i instanceof rt?i.toString():null,pageObjId:t})}return new xr({type:u1,dict:s})}};nc=new WeakSet,Mp=function(t,s){let n=[t],a=new re;for(;n.length>0;){if((t=n.pop())instanceof rt){if(a.has(t))continue;a.put(t),t=this.xref.fetch(t)}if(t instanceof Et&&(t=t.dict),t instanceof R)s.push(t);else if(Array.isArray(t))for(let i=t.length-1;i>=0;i--)Number.isInteger(t[i])||n.push(t[i])}};var xr=class{constructor({type:t,dict:s=null,mcid:n=null,pageObjId:a=null,refObjId:i=null}){this.type=t,this.dict=s,this.mcid=n,this.pageObjId=a,this.refObjId=i,this.parentNode=null}},wh=class{constructor(t,s){this.root=t,this.xref=t?.xref??null,this.rootDict=t?.dict??null,this.pageDict=s,this.nodes=[]}collectObjects(t){if(!(this.root&&this.rootDict&&t instanceof rt))return null;let s=this.rootDict.get("ParentTree");if(!s)return null;let n=this.root.structParentIds?.get(t);if(!n)return null;let a=new Map,i=new Gi(s,this.xref);for(let[o]of n){let r=i.getRaw(o);r instanceof rt&&a.set(o,r)}return a}parse(t){if(!(this.root&&this.rootDict&&t instanceof rt))return;let{parentTree:s}=this.root;if(!s)return;let n=this.pageDict.get("StructParents"),a=this.root.structParentIds?.get(t);if(!Number.isInteger(n)&&!a)return;let i=new Map;if(Number.isInteger(n)){let o=s.get(n);if(Array.isArray(o))for(let r of o)r instanceof rt&&this.addNode(this.xref.fetch(r),i)}if(a)for(let[o,r,l]of a){let f=s.get(o);if(!f)continue;let c=this.addNode(this.xref.fetchIfRef(f),i);if(c&&l)for(let h of c.kids)h.type===Bp&&h.refObjId===l&&(h.type=r)}}addNode(t,s,n=0){if(n>40)return F("StructTree MAX_DEPTH reached."),null;if(!(t instanceof R))return null;if(s.has(t))return s.get(t);let a=new Fp(this,t);switch(s.set(t,a),a.role){case"L":case"LBody":case"LI":case"Table":case"THead":case"TBody":case"TFoot":case"TR":for(let l of a.kids)l.type===u1&&this.addNode(l.dict,s,n-1)}let i=t.get("P");if(!(i instanceof R)||$t(i.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(t,a)||s.delete(t),a;let o=this.addNode(i,s,n+1);if(!o)return a;let r=!1;for(let l of o.kids)l.type===u1&&l.dict===t&&(l.parentNode=a,r=!0);return r||s.delete(t),a}addTopLevelNode(t,s){let n=this.root.getKidPosition(t.objId);return isNaN(n)?!1:(n!==-1&&(this.nodes[n]=s),!0)}get serializable(){function t(n,a,i=0){if(i>40){F("StructTree too deep to be fully serialized.");return}let o=Object.create(null);o.role=n.role,o.children=[],a.children.push(o);let r=n.dict.get("Alt");typeof r!="string"&&(r=n.dict.get("ActualText")),typeof r=="string"&&(o.alt=Jt(r));let l=n.dict.get("ID");if(o.role==="TH"&&typeof l=="string"&&l&&(o.structId=Jt(l)),n.tableAttributes?.forEach((m,u)=>{o[u]=m}),o.role==="Formula")try{let{mathML:m}=n;m&&(o.mathML=m)}catch(m){if(m instanceof de)throw m;F(`Ignoring mathML: "${m}".`)}let f=null,c=null;for(let m of n.attributes){f=Wn(m.getArray("BBox"),f);let u=m.get("Width"),d=m.get("Height");typeof u=="number"&&u>0&&typeof d=="number"&&d>0&&(c=[0,0,u,d])}(f||c)&&(o.bbox=f??c);let h=n.dict.get("Lang");typeof h=="string"&&(o.lang=Jt(h));for(let m of n.kids){let u=m.type===u1?m.parentNode:null;u?t(u,o,i+1):m.type===F8||m.type===M8?o.children.push({type:"content",id:`p${m.pageObjId}_mc${m.mcid}`}):m.type===Bp?o.children.push({type:"object",id:m.refObjId}):m.type===z8&&o.children.push({type:"annotation",id:`pdfjs_internal_id_${m.refObjId}`})}}let s=Object.create(null);s.children=[],s.role="Root";for(let n of this.nodes)n&&t(n,s);return s}},jh=function(t,s,n){if(!Array.isArray(n)||n.length<2)return!1;let[a,i,...o]=n;if(!t(a)&&!Number.isInteger(a)||!s(i))return!1;let r=o.length,l=!0;switch(i.name){case"XYZ":if(r<2||r>3)return!1;break;case"Fit":case"FitB":return r===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(r>1)return!1;break;case"FitR":if(r!==4)return!1;l=!1;break;default:return!1}for(let f of o)if(!(typeof f=="number"||l&&f===null))return!1;return!0}.bind(null,e=>e instanceof rt,$t);function p0(e){return e instanceof R&&(e=e.get("D")),jh(e)?e:null}function D6(e){let t=e.get("D");if(t){if(t instanceof it&&(t=t.name),typeof t=="string")return Jt(t,!0);if(jh(t))return JSON.stringify(t)}return null}var Vr,ac,$r,ic,ce,De,_8,P8,zp,U8,L8,E8,Dp,K8,W8,V8,wu,$8,Hr=class Hr{constructor(t,s){at(this,De);at(this,Vr,null);at(this,ac,new Pe);at(this,$r,new Map);at(this,ic,new Set);at(this,ce,null);Y(this,"builtInCMapCache",new Map);Y(this,"fontCache",new Pe);Y(this,"globalColorSpaceCache",new jp);Y(this,"globalImageCache",new kp);Y(this,"nonBlendModesSet",new re);Y(this,"pageDictCache",new Pe);Y(this,"pageIndexCache",new Pe);Y(this,"pageKidsCountCache",new Pe);Y(this,"standardFontDataCache",new Map);Y(this,"systemFontCache",new Map);if(this.pdfManager=t,this.xref=s,Bt(this,ce,s.getCatalogObj()),!(S(this,ce)instanceof R))throw new nt("Catalog object is not a dictionary.");this.toplevelPagesDict}cloneDict(){return S(this,ce).clone()}getAttachmentIdForAnnotation(t,s=!1){let n=S(this,ac).get(t);if(!n){let a=`attachmentRef:${t.toString()}`;n=a;let i=1;for(;S(this,$r).has(n)||this.attachments?.has(n);)n=`${a}-${i++}`;S(this,ac).put(t,n),S(this,$r).set(n,t)}return s&&S(this,ic).add(n),n}get version(){let t=S(this,ce).get("Version");if(t instanceof it){if(z4.test(t.name))return yt(this,"version",t.name);F(`Invalid PDF catalog version: ${t.name}`)}return yt(this,"version",null)}get lang(){let t=S(this,ce).get("Lang");return yt(this,"lang",t&&typeof t=="string"?Jt(t):null)}get needsRendering(){let t=S(this,ce).get("NeedsRendering");return yt(this,"needsRendering",typeof t=="boolean"&&t)}get collection(){let t=null;try{let s=S(this,ce).get("Collection");s instanceof R&&s.size>0&&(t=s)}catch(s){if(s instanceof de)throw s;ie("Cannot fetch Collection entry; assuming no collection is present.")}return yt(this,"collection",t)}get acroForm(){let t=null;try{let s=S(this,ce).get("AcroForm");s instanceof R&&s.size>0&&(t=s)}catch(s){if(s instanceof de)throw s;ie("Cannot fetch AcroForm entry; assuming no forms are present.")}return yt(this,"acroForm",t)}get acroFormRef(){let t=S(this,ce).getRaw("AcroForm");return yt(this,"acroFormRef",t instanceof rt?t:null)}get metadata(){let t=S(this,ce).getRaw("Metadata");if(!(t instanceof rt))return yt(this,"metadata",null);let s=null;try{let n=this.xref.fetch(t,!this.xref.encrypt?.encryptMetadata);if(n instanceof Et&&ro(n.dict,"Metadata")&&$t(n.dict.get("Subtype"),"XML")){let a=io(n.getString());a&&(s=new Hp(a).serializable)}}catch(n){if(n instanceof de)throw n;ie(`Skipping invalid Metadata: "${n}".`)}return yt(this,"metadata",s)}get markInfo(){let t=null;try{t=N(this,De,_8).call(this)}catch(s){if(s instanceof de)throw s;F("Unable to read mark info.")}return yt(this,"markInfo",t)}get hasStructTree(){return S(this,ce).has("StructTreeRoot")}get structTreeRoot(){let t=null;try{t=N(this,De,P8).call(this)}catch(s){if(s instanceof de)throw s;F("Unable read to structTreeRoot info.")}return yt(this,"structTreeRoot",t)}get toplevelPagesDict(){let t=S(this,ce).get("Pages");if(!(t instanceof R))throw new nt("Invalid top-level pages dictionary.");return yt(this,"toplevelPagesDict",t)}get documentOutline(){let t=null;try{t=N(this,De,zp).call(this)}catch(s){if(s instanceof de)throw s;F("Unable to read document outline.")}return yt(this,"documentOutline",t)}get documentOutlineForEditor(){let t=null;try{t=N(this,De,zp).call(this,{keepRawDict:!0})}catch(s){if(s instanceof de)throw s;F("Unable to read document outline.")}return yt(this,"documentOutlineForEditor",t)}get permissions(){let t=null;try{t=N(this,De,U8).call(this)}catch(s){if(s instanceof de)throw s;F("Unable to read permissions.")}return yt(this,"permissions",t)}get optionalContentConfig(){let t=null;try{let s=S(this,ce).get("OCProperties");if(!s)return yt(this,"optionalContentConfig",null);let n=s.get("D");if(!n)return yt(this,"optionalContentConfig",null);let a=s.get("OCGs");if(!Array.isArray(a))return yt(this,"optionalContentConfig",null);let i=new Pe;for(let o of a)o instanceof rt&&!i.has(o)&&i.put(o,N(this,De,L8).call(this,o));t=N(this,De,E8).call(this,n,i)}catch(s){if(s instanceof de)throw s;F(`Unable to read optional content config: ${s}`)}return yt(this,"optionalContentConfig",t)}setActualNumPages(t=null){Bt(this,Vr,t)}get hasActualNumPages(){return S(this,Vr)!==null}get _pagesCount(){let t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t))throw new nt("Page count in top-level pages dictionary is not an integer.");return yt(this,"_pagesCount",t)}get numPages(){return S(this,Vr)??this._pagesCount}get destinations(){let t=new Map;for(let s of N(this,De,Dp).call(this))if(s instanceof wn)for(let[n,a]of s.getAll()){let i=p0(a);i&&t.set(Jt(n,!0),i)}else if(s instanceof R)for(let[n,a]of s){let i=p0(a);i&&t.getOrInsert(Jt(n,!0),i)}return yt(this,"destinations",t)}getDestination(t){if(Object.hasOwn(this,"destinations"))return this.destinations.get(t)??null;for(let s of N(this,De,Dp).call(this))if(s instanceof wn||s instanceof R){let n=p0(s.get(t));if(n)return n}return this.destinations.get(t)??null}get rawPageLabels(){let t=S(this,ce).getRaw("PageLabels");return t?new Gi(t,this.xref).getAll():null}get pageLabels(){let t=null;try{t=N(this,De,K8).call(this)}catch(s){if(s instanceof de)throw s;F("Unable to read page labels.")}return yt(this,"pageLabels",t)}get pageLayout(){let t=S(this,ce).get("PageLayout"),s="";if(t instanceof it)switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":s=t.name}return yt(this,"pageLayout",s)}get pageMode(){let t=S(this,ce).get("PageMode"),s="UseNone";if(t instanceof it)switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":s=t.name}return yt(this,"pageMode",s)}get viewerPreferences(){let t=S(this,ce).get("ViewerPreferences");if(!(t instanceof R))return yt(this,"viewerPreferences",null);let s=null;for(let[n,a]of t){let i;switch(n){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof a=="boolean"&&(i=a);break;case"NonFullScreenPageMode":if(a instanceof it)switch(a.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":i=a.name;break;default:i="UseNone"}break;case"Direction":if(a instanceof it)switch(a.name){case"L2R":case"R2L":i=a.name;break;default:i="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(a instanceof it)switch(a.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":i=a.name;break;default:i="CropBox"}break;case"PrintScaling":if(a instanceof it)switch(a.name){case"None":case"AppDefault":i=a.name;break;default:i="AppDefault"}break;case"Duplex":if(a instanceof it)switch(a.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":i=a.name;break;default:i="None"}break;case"PrintPageRange":Array.isArray(a)&&a.length%2==0&&a.every((o,r,l)=>Number.isInteger(o)&&o>0&&(r===0||o>=l[r-1])&&o<=this.numPages)&&(i=a);break;case"NumCopies":Number.isInteger(a)&&a>0&&(i=a);break;default:F(`Ignoring non-standard key in ViewerPreferences: ${n}.`);continue}i!==void 0?(s??(s=new Map)).set(n,i):F(`Bad value, for key "${n}", in ViewerPreferences: ${a}.`)}return yt(this,"viewerPreferences",s)}get openAction(){let t=S(this,ce).get("OpenAction"),s=new Map;if(t instanceof R){let n=new R(this.xref);n.set("A",t);let a={url:null,dest:null,action:null};Hr.parseDestDictionary({destDict:n,resultObj:a}),Array.isArray(a.dest)?s.set("dest",a.dest):a.action&&s.set("action",a.action)}else jh(t)&&s.set("dest",t);return yt(this,"openAction",s.size?s:null)}get attachments(){let t=S(this,ce).get("Names"),s=null;if(t instanceof R&&t.has("EmbeddedFiles")){let n=new wn(t.getRaw("EmbeddedFiles"),this.xref);for(let[a,i]of n.getAll())(s??(s=new Map)).set(Jt(a,!0),new As(i).serializable)}return yt(this,"attachments",s)}attachmentContent(t){let s=N(this,De,W8).call(this,t);if(s!==void 0)return s;let n=S(this,$r).get(t);if(n){let a=this.xref.fetch(n);if(a instanceof Et){let i=As.readStreamContent(a);return S(this,ic).has(t)?(function(r,l){let f=R8(r.dict);if(!f)return null;let{channels:c,sampleRate:h,bitsPerSample:m,encoding:u}=f,d=c*(m>>3),p=l.length-l.length%d;if(p===0)return null;let g=new Uint8Array(44+p),b=new DataView(g.buffer);if(g.set(Ce("RIFF"),0),b.setUint32(4,36+p,!0),g.set(Ce("WAVE"),8),g.set(Ce("fmt "),12),b.setUint32(16,16,!0),b.setUint16(20,1,!0),b.setUint16(22,c,!0),b.setUint32(24,h,!0),b.setUint32(28,h*d,!0),b.setUint16(32,d,!0),b.setUint16(34,m,!0),g.set(Ce("data"),36),b.setUint32(40,p,!0),m===16){let w=u==="Signed";for(let k=0;k<p;k+=2){let q=l[k]<<8|l[k+1];w?q>=32768&&(q-=65536):q-=32768,b.setInt16(44+k,q,!0)}}else if(u==="Signed")for(let w=0;w<p;w++)g[44+w]=l[w]+128&255;else g.set(l.subarray(0,p),44);return g})(a,i)??i:i}return a instanceof R?As.readContent(a):null}return null}get rawEmbeddedFiles(){let t=S(this,ce).get("Names");return t instanceof R&&t.has("EmbeddedFiles")?new wn(t.getRaw("EmbeddedFiles"),this.xref).getAll(!0):null}get xfaImages(){let t=S(this,ce).get("Names"),s=null;if(t instanceof R&&t.has("XFAImages")){let n=new wn(t.getRaw("XFAImages"),this.xref);for(let[a,i]of n.getAll())i instanceof Et&&(s??(s=new Map),s.set(Jt(a,!0),i.getBytes()))}return yt(this,"xfaImages",s)}get jsActions(){let t=N(this,De,V8).call(this),s=Ru(this.xref,S(this,ce),rk);if(t){s??(s=new Map);for(let[n,a]of t)s.getOrInsertComputed(n,Ya).push(a)}return yt(this,"jsActions",s)}async cleanup(t=!1){N5(),this.globalColorSpaceCache.clear(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear();for(let{dict:s}of await Promise.all(this.fontCache))delete s.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(t){let s=[this.toplevelPagesDict],n=new re,a=S(this,ce).getRaw("Pages");a instanceof rt&&n.put(a);let i=this.xref,o=this.pageKidsCountCache,r=this.pageIndexCache,l=this.pageDictCache,f=0;for(;s.length;){let c=s.pop();if(c instanceof rt){let d=o.get(c);if(d>=0&&f+d<=t){f+=d;continue}if(n.has(c))throw new nt("Pages tree contains circular reference.");n.put(c);let p=await(l.get(c)||i.fetchAsync(c));if(p instanceof R){let g=p.getRaw("Type");if(g instanceof rt&&(g=await i.fetchAsync(g)),$t(g,"Page")||!p.has("Kids")){if(o.has(c)||o.put(c,1),r.has(c)||r.put(c,f),f===t)return[p,c];f++;continue}}s.push(p);continue}if(!(c instanceof R))throw new nt("Page dictionary kid reference points to wrong type of object.");let{objId:h}=c,m=c.getRaw("Count");if(m instanceof rt&&(m=await i.fetchAsync(m)),Number.isInteger(m)&&m>=0&&(h&&!o.has(h)&&o.put(h,m),f+m<=t)){f+=m;continue}let u=c.getRaw("Kids");if(u instanceof rt&&(u=await i.fetchAsync(u)),!Array.isArray(u)){let d=c.getRaw("Type");if(d instanceof rt&&(d=await i.fetchAsync(d)),$t(d,"Page")||!c.has("Kids")){if(f===t)return[c,null];f++;continue}throw new nt("Page dictionary kids object is not an array.")}for(let d=u.length-1;d>=0;d--){let p=u[d];s.push(p),c===this.toplevelPagesDict&&p instanceof rt&&!l.has(p)&&l.put(p,i.fetchAsync(p))}}throw new Error(`Page index ${t} not found.`)}async getAllPageDicts(t=!1){let{ignoreErrors:s}=this.pdfManager.evaluatorOptions,n=[{currentNode:this.toplevelPagesDict,posInKids:0}],a=new re,i=S(this,ce).getRaw("Pages");i instanceof rt&&a.put(i);let o=new Map,r=this.xref,l=this.pageIndexCache,f=0;function c(m,u){u&&!l.has(u)&&l.put(u,f),o.set(f++,[m,u])}function h(m){if(m instanceof Pn&&!t)throw m;t&&s&&f===0&&(F(`getAllPageDicts - Skipping invalid first page: "${m}".`),m=R.empty),o.set(f++,[m,null])}for(;n.length>0;){let m=n.at(-1),{currentNode:u,posInKids:d}=m,p=u.getRaw("Kids");if(p instanceof rt)try{p=await r.fetchAsync(p)}catch(k){h(k);break}if(!Array.isArray(p)){let k=u.getRaw("Type");if(k instanceof rt)try{k=await r.fetchAsync(k)}catch(q){h(q);break}if($t(k,"Page")||!u.has("Kids")){c(u,null);break}h(new nt("Page dictionary kids object is not an array."));break}if(d>=p.length){n.pop();continue}let g=p[d],b;if(g instanceof rt){if(a.has(g)){h(new nt("Pages tree contains circular reference."));break}a.put(g);try{b=await r.fetchAsync(g)}catch(k){h(k);break}}else b=g;if(!(b instanceof R)){h(new nt("Page dictionary kid reference points to wrong type of object."));break}let w=b.getRaw("Type");if(w instanceof rt)try{w=await r.fetchAsync(w)}catch(k){h(k);break}$t(w,"Page")||!b.has("Kids")?c(b,g instanceof rt?g:null):n.push({currentNode:b,posInKids:0}),m.posInKids++}return o}async getPageIndex(t){let s=this.pageIndexCache.get(t);if(s!==void 0)return s;let n=this.xref,a=0,i=t,o=new re;for(o.put(t);;){let r=await n.fetchAsync(i);if(oo(i,t)&&!ro(r,"Page")&&!(r instanceof R&&!r.has("Type")&&r.has("Contents")))throw new nt("The reference does not point to a /Page dictionary.");if(!r)break;if(!(r instanceof R))throw new nt("Node must be a dictionary.");let l=r.getRaw("Parent");if(l instanceof rt){if(o.has(l))throw new nt("Pages tree contains circular reference.");o.put(l)}let f=await r.getAsync("Parent");if(!f)break;if(!(f instanceof R))throw new nt("Parent must be a dictionary.");let c=await f.getAsync("Kids");if(!c)break;if(!Array.isArray(c))throw new nt("Kids must be an array.");let h=[],m=!1;for(let u of c){if(!(u instanceof rt))throw new nt("Kid must be a reference.");if(oo(u,i)){m=!0;break}h.push(n.fetchAsync(u).then(d=>{if(!(d instanceof R))throw new nt("Kid node must be a dictionary.");if(d.has("Count")){let p=d.get("Count");if(Number.isInteger(p)&&p>=0){a+=p;return}throw new nt("Count must be a (positive) integer.")}a++}))}if(!m)throw new nt("Kid reference not found in parent\'s kids.");await Promise.all(h),i=l}return this.pageIndexCache.put(t,a),a}get baseUrl(){let t=S(this,ce).get("URI");if(t instanceof R){let s=t.get("Base");if(typeof s=="string"){let n=M1(s,null,{tryConvertEncoding:!0});if(n)return yt(this,"baseUrl",n.href)}}return yt(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:t,resultObj:s,docBaseUrl:n=null,docAttachments:a=null}){var l;if(!(t instanceof R)){F("parseDestDictionary: `destDict` must be a dictionary.");return}let i,o,r=t.get("A");if(r instanceof R||(t.has("Dest")?r=t.get("Dest"):(r=t.get("AA"),r instanceof R&&(r.has("D")?r=r.get("D"):r.has("U")&&(r=r.get("U"))))),r instanceof R){let f=r.get("S");if(!(f instanceof it)){F("parseDestDictionary: Invalid type in Action dictionary.");return}let c=f.name;switch(c){case"ResetForm":let h=r.get("Flags"),m=!(1&(typeof h=="number"?h:0)),u=[],d=[];for(let D of r.get("Fields")||[])D instanceof rt?d.push(D.toString()):typeof D=="string"&&u.push(Jt(D));s.resetForm={fields:u,refs:d,include:m};break;case"URI":i=r.get("URI"),i instanceof it&&(i="/"+i.name);break;case"GoTo":o=r.get("D");break;case"Launch":case"GoToR":let p=r.get("F");if(p instanceof R)i=new As(p).filename;else{if(typeof p!="string")break;i=p}let g=D6(r);g&&(i=i.split("#",1)[0]+"#"+g);let b=r.get("NewWindow");typeof b=="boolean"&&(s.newWindow=b);break;case"GoToE":let w=r.get("T"),k=null;if(w instanceof R){let D=w.get("R"),W=w.get("N");$t(D,"C")&&typeof W=="string"&&(k=Jt(W,!0))}if(a&&k){s.attachmentId=k,s.attachment=a.get(k);let D=D6(r);D&&(s.attachmentDest=D)}else F(\'parseDestDictionary - unimplemented "GoToE" action.\');break;case"Named":let q=r.get("N");q instanceof it&&(s.action=q.name);break;case"SetOCGState":let y=r.get("State"),v=r.get("PreserveRB");if(!Array.isArray(y)||y.length===0)break;let A=[];for(let D of y)if(D instanceof it)switch(D.name){case"ON":case"OFF":case"Toggle":A.push(D.name)}else D instanceof rt&&A.push(D.toString());if(A.length!==y.length)break;s.setOCGState={state:A,preserveRB:typeof v!="boolean"||v};break;case"JavaScript":let x=r.get("JS"),I;x instanceof Et?I=x.getString():typeof x=="string"&&(I=x);let B=I&&N4(Jt(I,!0));if(B){i=B.url,s.newWindow=B.newWindow;break}default:if(c==="JavaScript"||c==="SubmitForm")break;F(`parseDestDictionary - unsupported action: "${c}".`)}}else t.has("Dest")&&(o=t.get("Dest"));if(typeof i=="string"){let f=M1(i,n,{addDefaultProtocol:!0,tryConvertEncoding:!0});f&&(s.url=f.href),s.unsafeUrl=i}if(o&&(o instanceof it&&(o=o.name),typeof o=="string"?s.dest=Jt(o,!0):jh(o)&&(s.dest=o)),!(s.dest||s.url||s.action||s.attachment||s.setOCGState||s.resetForm)){let f=t.getRaw("SE");if(f instanceof rt)try{let c=N(l=Hr,wu,$8).call(l,t.xref,f);c&&(s.dest=c)}catch(c){if(c instanceof de)throw c;ie("SE parsing failed.")}}}};Vr=new WeakMap,ac=new WeakMap,$r=new WeakMap,ic=new WeakMap,ce=new WeakMap,De=new WeakSet,_8=function(){let t=S(this,ce).get("MarkInfo");if(!(t instanceof R))return null;let s=new Map;for(let n of["Marked","UserProperties","Suspects"]){let a=t.get(n);s.set(n,typeof a=="boolean"&&a)}return s},P8=function(){let t=S(this,ce).getRaw("StructTreeRoot"),s=this.xref.fetchIfRef(t);return s instanceof R?new El(this.xref,s,t):null},zp=function(t={}){let s=S(this,ce).get("Outlines");if(!(s instanceof R)||(s=s.getRaw("First"),!(s instanceof rt)))return null;let n={items:[]},a=[{obj:s,parent:n}],i=new re;i.put(s);let o=this.xref,r=new Uint8ClampedArray(3);for(;a.length>0;){let l=a.shift(),f=o.fetchIfRef(l.obj);if(f===null)continue;f.has("Title")||F("Invalid outline item encountered.");let c={url:null,dest:null,action:null};Hr.parseDestDictionary({destDict:f,resultObj:c,docBaseUrl:this.baseUrl,docAttachments:this.attachments});let h=f.get("Title"),m=f.get("F")||0,u=f.getArray("C"),d=f.get("Count"),p=r;!Fe(u,3)||u[0]===0&&u[1]===0&&u[2]===0||(p=ae.rgb.getRgb(u,0));let g={action:c.action,attachmentId:c.attachmentId,attachment:c.attachment,dest:c.dest,url:c.url,unsafeUrl:c.unsafeUrl,newWindow:c.newWindow,setOCGState:c.setOCGState,title:typeof h=="string"?Jt(h):"",color:p,count:Number.isInteger(d)?d:void 0,bold:!!(2&m),italic:!!(1&m),items:[]};t.keepRawDict&&(g.rawDict=f),l.parent.items.push(g),s=f.getRaw("First"),s instanceof rt&&!i.has(s)&&(a.push({obj:s,parent:g}),i.put(s)),s=f.getRaw("Next"),s instanceof rt&&!i.has(s)&&(a.push({obj:s,parent:l.parent}),i.put(s))}return n.items.length>0?n.items:null},U8=function(){let t=this.xref.trailer.get("Encrypt");if(!(t instanceof R))return null;let s=t.get("P");if(typeof s!="number")return null;s+=2**32;let n=new Set;for(let a of Object.values(Dj))s&a&&n.add(a);return n},L8=function(t){let s=this.xref.fetch(t),n={id:t.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},a=s.get("Name");typeof a=="string"&&(n.name=Jt(a));let i=s.getArray("Intent");Array.isArray(i)||(i=[i]),i.every(c=>c instanceof it)&&(n.intent=i.map(c=>c.name));let o=s.get("Usage");if(!(o instanceof R))return n;let r=n.usage,l=o.get("Print");if(l instanceof R){let c=l.get("PrintState");if(c instanceof it)switch(c.name){case"ON":case"OFF":r.print={printState:c.name}}}let f=o.get("View");if(f instanceof R){let c=f.get("ViewState");if(c instanceof it)switch(c.name){case"ON":case"OFF":r.view={viewState:c.name}}}return n},E8=function(t,s){function n(f){let c=[];if(Array.isArray(f))for(let h of f)h instanceof rt&&s.has(h)&&c.push(h.toString());return c}function a(f,c=0){if(!Array.isArray(f))return null;let h=[];for(let u of f){if(u instanceof rt&&s.has(u)){r.put(u),h.push(u.toString());continue}let d=i(u,c);d&&h.push(d)}if(c>0)return h;let m=[];for(let[u]of s.items())r.has(u)||m.push(u.toString());return m.length&&h.push({name:null,order:m}),h}function i(f,c){if(++c>l)return F("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;let h=o.fetchIfRef(f);if(!Array.isArray(h))return null;let m=o.fetchIfRef(h[0]);if(typeof m!="string")return null;let u=a(h.slice(1),c);return u?.length?{name:Jt(m),order:u}:null}let o=this.xref,r=new re,l=10;return(function(c){if(Array.isArray(c))for(let h of c){let m=o.fetchIfRef(h);if(!Array.isArray(m)||!m.length)continue;let u=new Set;for(let d of m)d instanceof rt&&s.has(d)&&!u.has(d.toString())&&(u.add(d.toString()),s.get(d).rbGroups.push(u))}})(t.get("RBGroups")),{name:typeof t.get("Name")=="string"?Jt(t.get("Name")):null,creator:typeof t.get("Creator")=="string"?Jt(t.get("Creator")):null,baseState:t.get("BaseState")instanceof it?t.get("BaseState").name:null,on:n(t.get("ON")),off:n(t.get("OFF")),order:a(t.get("Order")),groups:[...s]}},Dp=function(){let t=S(this,ce).get("Names"),s=[];return t?.has("Dests")&&s.push(new wn(t.getRaw("Dests"),this.xref)),S(this,ce).has("Dests")&&s.push(S(this,ce).get("Dests")),s},K8=function(){let t=this.rawPageLabels;if(!t)return null;let s=new Array(this.numPages),n=null,a="",i="",o=1;for(let r=0,l=this.numPages;r<l;r++){let f=t.get(r);if(f!==void 0){if(!(f instanceof R))throw new nt("PageLabel is not a dictionary.");if(f.has("Type")&&!$t(f.get("Type"),"PageLabel"))throw new nt("Invalid type in PageLabel dictionary.");if(f.has("S")){let c=f.get("S");if(!(c instanceof it))throw new nt("Invalid style in PageLabel dictionary.");n=c.name}else n=null;if(f.has("P")){let c=f.get("P");if(typeof c!="string")throw new nt("Invalid prefix in PageLabel dictionary.");a=Jt(c)}else a="";if(f.has("St")){let c=f.get("St");if(!(Number.isInteger(c)&&c>=1))throw new nt("Invalid start in PageLabel dictionary.");o=c}else o=1}switch(n){case"D":i=o;break;case"R":case"r":i=Fk(o,n==="r");break;case"A":case"a":let c=26,h=o-1;i=String.fromCharCode(n.charCodeAt(0)+h%c).repeat(Math.floor(h/c)+1);break;default:if(n)throw new nt(`Invalid style "${n}" in PageLabel dictionary.`);i=""}s[r]=a+i,o++}return s},W8=function(t){let s=S(this,ce).get("Names");if(s instanceof R&&s.has("EmbeddedFiles")){let n=new wn(s.getRaw("EmbeddedFiles"),this.xref);for(let[a,i]of n.getAll())if(Jt(a,!0)===t)return As.readContent(i)}},V8=function(){let t=S(this,ce).get("Names"),s=null;function n(i,o){if(!(o instanceof R&&$t(o.get("S"),"JavaScript")))return;let r=o.get("JS");if(r instanceof Et)r=r.getString();else if(typeof r!="string")return;r=Jt(r,!0).replaceAll("\\0",""),r&&(s??(s=new Map)).set(i,r)}if(t instanceof R&&t.has("JavaScript")){let i=new wn(t.getRaw("JavaScript"),this.xref);for(let[o,r]of i.getAll())n(Jt(o,!0),r)}let a=S(this,ce).get("OpenAction");return a&&n("OpenAction",a),s},wu=new WeakSet,$8=function(t,s){let n=t.fetchIfRef(s);if(!(n instanceof R))return null;let a=null,i=n.getRaw("Pg");if(i instanceof rt&&(a=i),!a){let f=[n],c=new re;for(c.put(s);f.length>0&&!a;){let h,m=f.shift().getRaw("K");if(m instanceof rt){if(c.has(m))continue;c.put(m),m=t.fetch(m)}if(Array.isArray(m))h=m;else{if(!m)continue;h=[m]}for(let u of h){if(u instanceof rt){if(c.has(u))continue;c.put(u)}let d=t.fetchIfRef(u);if(!(d instanceof R))continue;let p=d.getRaw("Pg");if(p instanceof rt){a=p;break}f.push(d)}}}if(!a){let c=n;for(let h=0;h<40;h++){let m=c.getRaw("P");if(!(m instanceof rt))break;let u=t.fetch(m);if(!(u instanceof R)||$t(u.get("Type"),"StructTreeRoot"))break;let d=u.getRaw("Pg");if(d instanceof rt){a=d;break}c=u}}if(!a)return null;let o=null,r=null,l=n.get("A");if(l instanceof R){let f=Al(l.getArray("BBox"),null);f&&(o=f[0],r=f[3])}return[a,{name:"XYZ"},o,r,null]},at(Hr,wu);var Kl=Hr;function Vc(e,t,s,n){let a=new R(e);return a.set("Type",it.get("XObject")),a.set("Subtype",it.get("Image")),a.set("BitsPerComponent",8),a.setIfName("ColorSpace",n),a.set("Width",t),a.set("Height",s),a}function hl(e,t){return new ke(e,0,e.length,t)}function sv(e,t,s){let n=e+t-s,a=Math.abs(n-e),i=Math.abs(n-t),o=Math.abs(n-s);return a<=i&&a<=o?e:i<=o?t:s}async function O6(e,t,s,n){let a=e.length/(t*s),i;if(typeof CompressionStream=="function")try{let r=(function(f,c,h,m){let u=c*m,d=new Uint8Array(h*(u+1)),p=[new Uint8Array(u),new Uint8Array(u),new Uint8Array(u),new Uint8Array(u),new Uint8Array(u)];for(let g=0;g<h;g++){let b=g*u,w=b-u,k=[0,0,0,0,0];for(let v=0;v<u;v++){let A=b+v,x=f[A],I=v>=m?f[A-m]:0,B=g>0?f[w+v]:0,D=g>0&&v>=m?f[w+v-m]:0;p[0][v]=x,p[1][v]=x-I&255,p[2][v]=x-B&255,p[3][v]=x-(I+B>>1)&255,p[4][v]=x-sv(I,B,D)&255;for(let W=0;W<5;W++){let L=p[W][v];k[W]+=L<128?L:256-L}}let q=0;for(let v=1;v<5;v++)k[v]<k[q]&&(q=v);let y=g*(u+1);d[y]=q,d.set(p[q],y+1)}return d})(e,t,s,a);i=await(async function(f){let c=new CompressionStream("deflate"),h=c.writable.getWriter(),m=(async()=>{try{await h.ready,await h.write(f),await h.ready,await h.close()}catch(d){throw await h.abort(d).catch(()=>{}),d}})(),[u]=await Promise.all([new Response(c.readable).bytes(),m.then(()=>null)]);return u})(r)}catch{}if(!i)return hl(e,n);n.setIfName("Filter","FlateDecode");let o=new R(n.xref);return o.set("Predictor",15),o.set("Columns",t),o.set("Colors",a),o.set("BitsPerComponent",8),n.set("DecodeParms",o),hl(i,n)}async function G8(e,t,{closeBitmap:s=!1}={}){let{width:n,height:a}=e;if(!Number.isInteger(n)||!Number.isInteger(a)||n<=0||a<=0)throw s&&e.close?.(),new Error(`createImage: invalid bitmap dimensions ${n}x${a}`);let i=new OffscreenCanvas(n,a),o=i.getContext("2d",{alpha:!0,willReadFrequently:!0}),r;try{o.drawImage(e,0,0),r=o.getImageData(0,0,n,a).data}finally{s&&e.close?.()}let l=new Uint32Array(r.buffer,r.byteOffset,r.byteLength>>2),f=us.isLittleEndian,c=f?16777215:4294967040,h=new Set,m=!1,u=!0;for(let y of l){if((f?y>>>24:255&y)!=255){m=!0;break}u&&(h.add((y&c)>>>0),h.size>16384&&(u=!1,h.clear()))}m&&(u=!0);let d=Vc(t,n,a,"DeviceRGB"),p,g=null;if(u){let y=new Uint8Array(n*a*3);for(let v=0,A=0,x=r.length;v<x;v+=4,A+=3)y[A]=r[v],y[A+1]=r[v+1],y[A+2]=r[v+2];p=O6(y,n,a,d),g=hl(y,Vc(t,n,a,"DeviceRGB"))}else d.setIfName("Filter","DCTDecode"),p=i.convertToBlob({type:"image/jpeg",quality:1}).then(y=>y.bytes()).then(y=>hl(y,d));let b=Promise.resolve(null),w=null;if(m){let y=new Uint8Array(l.length);if(f)for(let x=0,I=l.length;x<I;x++)y[x]=l[x]>>>24;else for(let x=0,I=l.length;x<I;x++)y[x]=255&l[x];let v=Vc(t,n,a,"DeviceGray"),A=Vc(t,n,a,"DeviceGray");b=O6(y,n,a,v),w=hl(y,A)}let[k,q]=await Promise.all([p,b]);return{imageStream:k,imageRenderStream:g,smaskStream:q,smaskRenderStream:w,width:n,height:a}}function nv(e){return e instanceof rt||e instanceof R||e instanceof Et||Array.isArray(e)}function av(e,t){if(e instanceof R)e=e.getRawValues();else if(e instanceof Et)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(let s of e)nv(s)&&t.push(s)}var rc,Op,Y5=class Y5{constructor(t,s,n){at(this,rc);Y(this,"refSet",new re);this.dict=t,this.keys=s,this.xref=n}async load(){let{keys:t,dict:s}=this,n=[];for(let a of t){let i=s.getRaw(a);i!==void 0&&n.push(i)}await N(this,rc,Op).call(this,n),this.refSet=null}static async load(t,s,n){if(n.stream.isDataLoaded)return;await new Y5(t,s,n).load()}};rc=new WeakSet,Op=async function(t){let s=[],n=[];for(;t.length;){let a=t.pop();if(a instanceof rt){if(this.refSet.has(a))continue;try{this.refSet.put(a),a=this.xref.fetch(a)}catch(i){if(!(i instanceof de)){F(`ObjectLoader.#walk - requesting all data: "${i}".`),await this.xref.stream.manager.requestAllChunks();return}s.push(a),n.push({begin:i.begin,end:i.end})}}if(a instanceof Et){let i=a.getBaseStreams();if(i){let o=!1;for(let r of i)r.isDataLoaded||(o=!0,n.push({begin:r.start,end:r.end}));o&&s.push(a)}}av(a,t)}if(n.length){await this.xref.stream.manager.requestRanges(n);for(let a of s)a instanceof rt&&this.refSet.remove(a);await N(this,rc,Op).call(this,s)}};var bo=Y5,zu=Symbol(),Oi=Symbol(),ze=Symbol(),ti=Symbol(),ln=Symbol(),Sr=Symbol(),m1=Symbol(),An=Symbol(),Nn=Symbol(),ft=Symbol("content"),sn=Symbol("data"),wo=Symbol(),Q=Symbol("extra"),qe=Symbol(),Hc=Symbol(),Np=Symbol(),X8=Symbol(),Ni=Symbol(),Du=Symbol(),Wl=Symbol(),ul=Symbol(),_5=Symbol(),cs=Symbol(),ml=Symbol(),ks=Symbol(),jo=Symbol(),na=Symbol(),Le=Symbol(),Qt=Symbol(),_e=Symbol(),je=Symbol(),Vl=Symbol(),jr=Symbol(),_p=Symbol(),p1=Symbol(),P5=Symbol(),tr=Symbol(),Ar=Symbol(),Ra=Symbol(),pl=Symbol(),pa=Symbol(),ka=Symbol(),$l=Symbol(),Gl=Symbol(),iv=Symbol(),Ue=Symbol("namespaceId"),he=Symbol("nodeName"),fa=Symbol(),En=Symbol(),Pp=Symbol(),da=Symbol(),Vn=Symbol(),Os=Symbol(),vo=Symbol(),$a=Symbol(),Y8=Symbol("root"),Ko=Symbol(),ca=Symbol(),Up=Symbol(),J8=Symbol(),Ns=Symbol(),vn=Symbol(),Ge=Symbol(),Q8=Symbol(),Vt=Symbol(),dl=Symbol(),oe=Symbol(),ge=Symbol("uid"),Bn=Symbol(),Xe={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>e==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:e=>e==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>e==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>e==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:e=>e==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:e=>e==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:e=>e==="http://ns.adobe.com/xmpmeta/"}},rv={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},ov=/([+-]?\\d+\\.?\\d*)(.*)/;function Ou(e){return e.startsWith("\'")||e.startsWith(\'"\')?e.slice(1,-1):e}function Yt({data:e,defaultValue:t,validate:s}){if(!e)return t;e=e.trim();let n=parseInt(e,10);return!isNaN(n)&&s(n)?n:t}function kh({data:e,defaultValue:t,validate:s}){if(!e)return t;e=e.trim();let n=parseFloat(e);return!isNaN(n)&&s(n)?n:t}function Nu({data:e,defaultValue:t,validate:s}){return e&&s(e=e.trim())?e:t}function ut(e,t){return Nu({data:e,defaultValue:t[0],validate:s=>t.includes(s)})}function Ot(e,t="0"){if(t||(t="0"),!e)return Ot(t);let s=e.trim().match(ov);if(!s)return Ot(t);let[,n,a]=s,i=parseFloat(n);if(isNaN(i))return Ot(t);if(i===0)return 0;let o=rv[a];return o?o(i):i}function N6(e){if(!e)return{num:1,den:1};let t=e.split(":",2).map(a=>parseFloat(a.trim())).filter(a=>!isNaN(a));if(t.length===1&&t.push(1),t.length===0)return{num:1,den:1};let[s,n]=t;return{num:s,den:n}}function Tn(e){return e?e.trim().split(/\\s+/).map(t=>({excluded:t[0]==="-",viewname:t.substring(1)})):[]}var Ut=class e{static get FAILURE(){return yt(this,"FAILURE",new e(!1,null,null,null))}static get EMPTY(){return yt(this,"EMPTY",new e(!0,null,null,null))}constructor(t,s,n,a){this.success=t,this.html=s,this.bbox=n,this.breakNode=a}isBreak(){return!!this.breakNode}static breakNode(t){return new e(!1,null,null,t)}static success(t,s=null){return new e(!0,t,s,null)}},Lp=class{constructor(t){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}add(t,s=null){for(let a of t)this.addPdfFont(a);for(let a of this.fonts.values())a.regular||(a.regular=a.italic||a.bold||a.bolditalic);if(!s||s.size===0)return;let n=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(let a of s)this.fonts.set(a,n)}addPdfFont(t){let s=t.cssFontInfo,n=s.fontFamily,a=this.fonts.getOrInsertComputed(n,Hk);this.defaultFont??(this.defaultFont=a);let i="",o=parseFloat(s.fontWeight);parseFloat(s.italicAngle)!==0?i=o>=700?"bolditalic":"italic":o>=700&&(i="bold"),i||((t.name.includes("Bold")||t.psName?.includes("Bold"))&&(i="bold"),(t.name.includes("Italic")||t.name.endsWith("It")||t.psName?.includes("Italic")||t.psName?.endsWith("It"))&&(i+="italic")),i||(i="regular"),a[i]=t}getDefault(){return this.defaultFont}find(t,s=!0){let n=this.fonts.get(t)||this.cache.get(t);if(n)return n;let a=/[,\\-_ ]|bolditalic|bold|italic|regular|it/gi,i=t.replaceAll(a,"");if(n=this.fonts.get(i),n)return this.cache.set(t,n),n;i=i.toLowerCase();let o=[];for(let[r,l]of this.fonts)r.replaceAll(a,"").toLowerCase().startsWith(i)&&o.push(l);if(o.length===0)for(let r of this.fonts.values())r.regular.name?.replaceAll(a,"").toLowerCase().startsWith(i)&&o.push(r);if(o.length===0){i=i.replaceAll(/psmt|mt/gi,"");for(let[r,l]of this.fonts)r.replaceAll(a,"").toLowerCase().startsWith(i)&&o.push(l)}if(o.length===0)for(let r of this.fonts.values())r.regular.name?.replaceAll(a,"").toLowerCase().startsWith(i)&&o.push(r);return o.length>=1?(o.length!==1&&s&&F(`XFA - Too many choices to guess the correct font: ${t}`),this.cache.set(t,o[0]),o[0]):(s&&!this.warned.has(t)&&(this.warned.add(t),F(`XFA - Cannot find the font: ${t}`)),null)}};function U5(e,t){return e.posture==="italic"?e.weight==="bold"?t.bolditalic:t.italic:e.weight==="bold"?t.bold:t.regular}var qh=class{constructor(t,s,n,a){if(this.lineHeight=n,this.paraMargin=s||{top:0,bottom:0,left:0,right:0},!t){[this.pdfFont,this.xfaFont]=this.defaultFont(a);return}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};let i=a.find(t.typeface);i?(this.pdfFont=U5(t,i),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(a))):[this.pdfFont,this.xfaFont]=this.defaultFont(a)}defaultFont(t){let s=t.find("Helvetica",!1)||t.find("Myriad Pro",!1)||t.find("Arial",!1)||t.getDefault();if(s?.regular){let n=s.regular;return[n,{typeface:n.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}},Ep=class{constructor(t,s,n,a){this.fontFinder=a,this.stack=[new qh(t,s,n,a)]}pushData(t,s,n){let a=this.stack.at(-1);for(let o of["typeface","posture","weight","size","letterSpacing"])t[o]||(t[o]=a.xfaFont[o]);for(let o of["top","bottom","left","right"])isNaN(s[o])&&(s[o]=a.paraMargin[o]);let i=new qh(t,s,n||a.lineHeight,this.fontFinder);i.pdfFont||(i.pdfFont=a.pdfFont),this.stack.push(i)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}},Kp=class{constructor(t,s,n,a){this.glyphs=[],this.fontSelector=new Ep(t,s,n,a),this.extraHeight=0}pushData(t,s,n){this.fontSelector.pushData(t,s,n)}popFont(t){return this.fontSelector.popFont()}addPara(){let t=this.fontSelector.topFont();this.extraHeight+=t.paraMargin.top+t.paraMargin.bottom}addString(t){if(!t)return;let s=this.fontSelector.topFont(),n=s.xfaFont.size;if(s.pdfFont){let a=s.xfaFont.letterSpacing,i=s.pdfFont,o=i.lineHeight||1.2,r=s.lineHeight||Math.max(1.2,o)*n,l=o-(i.lineGap===void 0?.2:i.lineGap),f=Math.max(1,l)*n,c=n/1e3,h=i.defaultWidth||i.charsToGlyphs(" ")[0].width;for(let m of t.split(/[\\u2029\\n]/)){let u=i.encodeString(m).join(""),d=i.charsToGlyphs(u);for(let p of d){let g=p.width||h;this.glyphs.push([g*c+a,r,f,p.unicode,!1])}this.glyphs.push([0,0,0,`\n`,!0])}this.glyphs.pop();return}for(let a of t.split(/[\\u2029\\n]/)){for(let i of a.split(""))this.glyphs.push([n,1.2*n,n,i,!1]);this.glyphs.push([0,0,0,`\n`,!0])}this.glyphs.pop()}compute(t){let s=-1,n=0,a=0,i=0,o=0,r=0,l=!1,f=!0;for(let c=0,h=this.glyphs.length;c<h;c++){let[m,u,d,p,g]=this.glyphs[c],b=p===" ",w=f?d:u;g?(a=Math.max(a,o),o=0,i+=r,r=w,s=-1,n=0,f=!1):b?o+m>t?(a=Math.max(a,o),o=0,i+=r,r=w,s=-1,n=0,l=!0,f=!1):(r=Math.max(w,r),n=o,o+=m,s=c):o+m>t?(i+=r,r=w,s!==-1?(c=s,a=Math.max(a,n),o=0,s=-1,n=0):(a=Math.max(a,o),o=m),l=!0,f=!1):(o+=m,r=Math.max(w,r))}return a=Math.max(a,o),i+=r+this.extraHeight,{width:1.02*a,height:i,isBroken:l}}},_6=/^[^.[]+/,lv=/^[^\\]]+/,yh=0,vh=1,L5=2,fv=3,cv=4,Z8=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[ks]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),hv=new WeakMap;function uv(e){return(e=e.trim())==="*"?1/0:parseInt(e,10)||0}function t7(e,t,s=!0){let n=e.match(_6);if(!n)return null;let[a]=n,i=[{name:a,cacheName:"."+a,index:0,js:null,formCalc:null,operator:yh}],o=a.length;for(;o<e.length;){let r=o;if(e.charAt(o++)==="["){if(n=e.slice(o).match(lv),!n)return F("XFA - Invalid index in SOM expression"),null;i.at(-1).index=uv(n[0]),o+=n[0].length+1;continue}let l;switch(e.charAt(o)){case".":if(!t)return null;o++,l=vh;break;case"#":o++,l=L5;break;case"[":if(s)return F("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;l=fv;break;case"(":if(s)return F("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;l=cv;break;default:l=yh}if(n=e.slice(o).match(_6),!n)break;[a]=n,o+=a.length,i.push({name:a,cacheName:e.slice(r,o),operator:l,index:0,js:null,formCalc:null})}return i}function Ha(e,t,s,n=!0,a=!0){let i=t7(s,n);if(!i)return null;let o=Z8.get(i[0].name),r,l=0;o?(r=!0,e=[o(e,t)],l=1):(r=t===null,e=[t||e]);for(let f=i.length;l<f;l++){let{name:c,cacheName:h,operator:m,index:u}=i[l],d=[];for(let p of e){if(!p.isXFAObject)continue;let g,b;if(a&&(b=hv.getOrInsertComputed(p,Ck),g=b.get(h)),!g){switch(m){case yh:g=p[Wl](c,!1);break;case vh:g=p[Wl](c,!0);break;case L5:g=p[Du](c),g=g.isXFAObjectArray?g.children:[g]}a&&b.set(h,g)}g.length>0&&d.push(g)}if(d.length===0&&!r&&l===0){if(!(t=t[Qt]()))return null;l=-1,e=[t];continue}e=isFinite(u)?d.filter(p=>u<p.length).map(p=>p[u]):d.flat()}return e.length===0?null:e}function mv(e,t,s){let n=t7(s);if(!n||n.some(o=>o.operator===vh))return null;let a=Z8.get(n[0].name),i=0;a?(e=a(e,t),i=1):e=t||e;for(let o=n.length;i<o;i++){let{name:r,operator:l,index:f}=n[i];if(!isFinite(f))return n[i].index=0,e.createNodes(n.slice(i));let c;switch(l){case yh:c=e[Wl](r,!1);break;case vh:c=e[Wl](r,!0);break;case L5:c=e[Du](r),c=c.isXFAObjectArray?c.children:[c]}if(c.length===0)return e.createNodes(n.slice(i));if(!(f<c.length))return n[i].index=f-c.length,e.createNodes(n.slice(i));{let h=c[f];if(!h.isXFAObject)return F("XFA - Cannot create a node."),null;e=h}}return null}var $c=Symbol(),fi=Symbol(),cr=Symbol(),se=Symbol("_children"),d0=Symbol(),Aa=Symbol(),g0=Symbol(),P6=Symbol(),b0=Symbol(),U6=Symbol(),w0=Symbol(),Wo=Symbol(),Gc=Symbol(),en=Symbol("parent"),Do=Symbol(),Oo=Symbol(),j0=Symbol(),Wp=0,e7=Xe.datasets.id,st=class e{constructor(t,s,n=!1){this[Ue]=t,this[he]=s,this[w0]=n,this[en]=null,this[se]=[],this[ge]=`${s}${Wp++}`,this[je]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(t){let s=this,n=null;for(let{name:a,index:i}of t){for(let o=0,r=isFinite(i)?i:0;o<=r;o++){let l=s[Ue]===e7?-1:s[Ue];n=new ga(l,a),s[ze](n)}s=n}return n}[En](t){if(!this[w0]||!this[Pp](t))return!1;let s=t[he],n=this[s];if(!(n instanceof O))return n!==null&&this[$a](n),this[s]=t,this[ze](t),!0;if(n.push(t))return this[ze](t),!0;let a="";return this.id?a=` (id: ${this.id})`:this.name&&(a=` (name: ${this.name} ${this.h.value})`),F(`XFA - node "${this[he]}"${a} has already enough "${s}"!`),!1}[Pp](t){return Object.hasOwn(this,t[he])&&t[Ue]===this[Ue]}[pl](){return!1}[zu](){return!1}[P5](){return!1}[tr](){return!1}[Os](){this.para&&this[_e]()[Q].paraStack.pop()}[vo](){this[_e]()[Q].paraStack.push(this.para)}[Up](t){this.id&&this[Ue]===Xe.template.id&&t.set(this.id,this)}[_e](){return this[je].template}[pa](){return!1}[ka](){return!1}[ze](t){t[en]=this,this[se].push(t),!t[je]&&this[je]&&(t[je]=this[je])}[$a](t){let s=this[se].indexOf(t);this[se].splice(s,1)}[Vl](){return Object.hasOwn(this,"value")}[Ns](t){}[da](t){}[qe](){}[ln](t){delete this[w0],this[m1]&&(t.clean(this[m1]),delete this[m1])}[_p](t){return this[se].indexOf(t)}[p1](t,s){s[en]=this,this[se].splice(t,0,s),!s[je]&&this[je]&&(s[je]=this[je])}[$l](){return!this.name}[iv](){return""}[Ge](){return this[se].length===0?this[ft]:this[se].map(t=>t[Ge]()).join("")}get[cr](){let t=Object.getPrototypeOf(this);if(!t._attributes){let s=t._attributes=new Set;for(let n of Object.getOwnPropertyNames(this)){if(this[n]===null||this[n]instanceof e||this[n]instanceof O)break;s.add(n)}}return yt(this,cr,t._attributes)}[Ra](t){let s=this;for(;s;){if(s===t)return!0;s=s[Qt]()}return!1}[Qt](){return this[en]}[Le](){return this[Qt]()}[wo](){let t=Object.create(null);this[ft]&&(t.$content=this[ft]);for(let s of Object.getOwnPropertyNames(this)){let n=this[s];n!==null&&(n instanceof e?t[s]=n[wo]():n instanceof O?n.isEmpty()||(t[s]=n.dump()):t[s]=n)}return t}[oe](){return null}[Vt](){return Ut.EMPTY}*[jo](){for(let t of this[ks]())yield t}*[P6](t,s){for(let n of this[jo]())if(!t||s===t.has(n[he])){let a=this[Ni](),i=n[Vt](a);i.success||(this[Q].failingNode=n),yield i}}[Hc](){return null}[Oi](t,s){this[Q].children.push(t)}[Ni](){}[ti]({filter:t=null,include:s=!0}){if(this[Q].generator){let n=this[Ni](),a=this[Q].failingNode[Vt](n);if(!a.success)return a;a.html&&this[Oi](a.html,a.bbox),delete this[Q].failingNode}else this[Q].generator=this[P6](t,s);for(;;){let n=this[Q].generator.next();if(n.done)break;let a=n.value;if(!a.success)return a;a.html&&this[Oi](a.html,a.bbox)}return this[Q].generator=null,Ut.EMPTY}[J8](t){this[Oo]=new Set(Object.keys(t))}[U6](t){let s=this[cr],n=this[Oo];return t.keys().filter(a=>s.has(a)&&!n.has(a)).toArray()}[Ko](t,s=new Set){for(let n of this[se])n[Do](t,s)}[Do](t,s){let n=this[b0](t,s);n?this[$c](n,t,s):this[Ko](t,s)}[b0](t,s){let{use:n,usehref:a}=this;if(!n&&!a)return null;let i=null,o=null,r=null,l=n;if(a?(l=a,a.startsWith("#som(")&&a.endsWith(")")?o=a.slice(5,-1):a.startsWith(".#som(")&&a.endsWith(")")?o=a.slice(6,-1):a.startsWith("#")?r=a.slice(1):a.startsWith(".#")&&(r=a.slice(2))):n.startsWith("#")?r=n.slice(1):o=n,this.use=this.usehref="",r?i=t.get(r):(i=Ha(t.get(Y8),this,o,!0,!1),i&&(i=i[0])),!i)return F(`XFA - Invalid prototype reference: ${l}.`),null;if(i[he]!==this[he])return F(`XFA - Incompatible prototype: ${i[he]} !== ${this[he]}.`),null;if(s.has(i))return F("XFA - Cycle detected in prototypes use."),null;s.add(i);let f=i[b0](t,s);return f&&i[$c](f,t,s),i[Ko](t,s),s.delete(i),i}[$c](t,s,n){if(n.has(t)){F("XFA - Cycle detected in prototypes use.");return}!this[ft]&&t[ft]&&(this[ft]=t[ft]),new Set(n).add(t);for(let a of this[U6](t[Oo]))this[a]=t[a],this[Oo]&&this[Oo].add(a);for(let a of Object.getOwnPropertyNames(this)){if(this[cr].has(a))continue;let i=this[a],o=t[a];if(i instanceof O){for(let r of i[se])r[Do](s,n);for(let r=i[se].length,l=o[se].length;r<l;r++){let f=t[se][r][An]();if(!i.push(f))break;f[en]=this,this[se].push(f),f[Do](s,n)}}else if(i===null){if(o!==null){let r=o[An]();r[en]=this,this[a]=r,this[se].push(r),r[Do](s,n)}}else i[Ko](s,n),o&&i[$c](o,s,n)}}static[d0](t){return Array.isArray(t)?t.map(s=>e[d0](s)):typeof t=="object"&&t!==null?Object.assign({},t):t}[An](){let t=Object.create(Object.getPrototypeOf(this));for(let s of Object.getOwnPropertySymbols(this))try{t[s]=this[s]}catch{yt(t,s,this[s])}t[ge]=`${t[he]}${Wp++}`,t[se]=[];for(let s of Object.getOwnPropertyNames(this)){if(this[cr].has(s)){t[s]=e[d0](this[s]);continue}let n=this[s];t[s]=n instanceof O?new O(n[Wo]):null}for(let s of this[se]){let n=s[he],a=s[An]();t[se].push(a),a[en]=t,t[n]===null?t[n]=a:t[n][se].push(a)}return t}[ks](t=null){return t?this[se].filter(s=>s[he]===t):this[se]}[Du](t){return this[t]}[Wl](t,s,n=!0){return Array.from(this[ul](t,s,n))}*[ul](t,s,n=!0){if(t!=="parent"){for(let a of this[se])a[he]===t&&(yield a),a.name===t&&(yield a),(s||a[$l]())&&(yield*a[ul](t,s,!1));n&&this[cr].has(t)&&(yield new Xl(this,t,this[t]))}else yield this[en]}},O=class e{constructor(t=1/0){this[Wo]=t,this[se]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(t){return this[se].length<=this[Wo]?(this[se].push(t),!0):(F(`XFA - node "${t[he]}" accepts no more than ${this[Wo]} children`),!1)}isEmpty(){return this[se].length===0}dump(){return this[se].length===1?this[se][0][wo]():this[se].map(t=>t[wo]())}[An](){let t=new e(this[Wo]);return t[se]=this[se].map(s=>s[An]()),t}get children(){return this[se]}clear(){this[se].length=0}},Xl=class{constructor(t,s,n){this[en]=t,this[he]=s,this[ft]=n,this[Nn]=!1,this[ge]="attribute"+Wp++}[Qt](){return this[en]}[Ar](){return!0}[_5](){return this[ft].trim()}[Ns](t){t=t.value||"",this[ft]=t.toString()}[Ge](){return this[ft]}[Ra](t){return this[en]===t||this[en][Ra](t)}},ga=class e extends st{constructor(t,s,n={}){if(super(t,s),this[ft]="",this[Aa]=null,s!=="#text"){let a=new Map;this[fi]=a;for(let[i,o]of Object.entries(n))a.set(i,new Xl(this,i,o));if(Object.hasOwn(n,fa)){let i=n[fa].xfa.dataNode;i!==void 0&&(i==="dataGroup"?this[Aa]=!1:i==="dataValue"&&(this[Aa]=!0))}}this[Nn]=!1}[dl](t){let s=this[he];if(s==="#text"){t.push(Br(this[ft]));return}let n=K0(s),a=this[Ue]===e7?"xfa:":"";t.push(`<${a}${n}`);for(let[i,o]of this[fi]){let r=K0(i);t.push(` ${r}="${Br(o[ft])}"`)}if(this[Aa]!==null&&(this[Aa]?t.push(\' xfa:dataNode="dataValue"\'):t.push(\' xfa:dataNode="dataGroup"\')),this[ft]||this[se].length!==0){if(t.push(">"),this[ft])typeof this[ft]=="string"?t.push(Br(this[ft])):this[ft][dl](t);else for(let i of this[se])i[dl](t);t.push(`</${a}${n}>`)}else t.push("/>")}[En](t){if(this[ft]){let s=new e(this[Ue],"#text");this[ze](s),s[ft]=this[ft],this[ft]=""}return this[ze](t),!0}[da](t){this[ft]+=t}[qe](){if(this[ft]&&this[se].length>0){let t=new e(this[Ue],"#text");this[ze](t),t[ft]=this[ft],delete this[ft]}}[Vt](){return this[he]==="#text"?Ut.success({name:"#text",value:this[ft]}):Ut.EMPTY}[X8](){return this[fi]}[Du](t){let s=this[fi].get(t);return s!==void 0?s:this[ks](t)}*[ul](t,s){let n=this[fi].get(t);n&&(yield n);for(let a of this[se])a[he]===t&&(yield a),s&&(yield*a[ul](t,s))}*[Np](t,s){let n=this[fi].get(t);!n||s&&n[Nn]||(yield n);for(let a of this[se])yield*a[Np](t,s)}*[ml](t,s,n){for(let a of this[se])a[he]!==t||n&&a[Nn]||(yield a),s&&(yield*a[ml](t,s,n))}[Ar](){return this[Aa]===null?this[se].length===0||this[se][0][Ue]===Xe.xhtml.id:this[Aa]}[_5](){return this[Aa]===null?this[se].length===0?this[ft].trim():this[se][0][Ue]===Xe.xhtml.id?this[se][0][Ge]().trim():null:this[ft].trim()}[Ns](t){t=t.value||"",this[ft]=t.toString()}[wo](t=!1){let s=Object.create(null);t&&(s.$ns=this[Ue]),this[ft]&&(s.$content=this[ft]),s.$name=this[he],s.children=[];for(let n of this[se])s.children.push(n[wo](t));s.attributes=Object.create(null);for(let[n,a]of this[fi])s.attributes[n]=a[ft];return s}},Te=class extends st{constructor(t,s){super(t,s),this[ft]=""}[da](t){this[ft]+=t}[qe](){}},ue=class extends Te{constructor(t,s,n){super(t,s),this[Gc]=n}[qe](){this[ft]=Nu({data:this[ft],defaultValue:this[Gc][0],validate:t=>this[Gc].includes(t)})}[ln](t){super[ln](t),delete this[Gc]}},te=class extends Te{[qe](){this[ft]=this[ft].trim()}},Xs=class extends Te{constructor(t,s,n,a){super(t,s),this[g0]=n,this[j0]=a}[qe](){this[ft]=Yt({data:this[ft],defaultValue:this[g0],validate:this[j0]})}[ln](t){super[ln](t),delete this[g0],delete this[j0]}},Ee=class extends Xs{constructor(t,s){super(t,s,0,n=>n===1)}},xh=class extends Xs{constructor(t,s){super(t,s,1,n=>n===0)}};function Xt(e){return typeof e=="string"?"0px":Number.isInteger(e)?`${e}px`:`${e.toFixed(2)}px`}var L6={anchorType(e,t){let s=e[Le]();if(s&&(!s.layout||s.layout==="position"))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}},dimensions(e,t){let s=e[Le](),n=e.w,a=e.h;if(s.layout?.includes("row")){let i=s[Q],o=e.colSpan,r;o===-1?(r=Math.sumPrecise(i.columnWidths.slice(i.currentColumn)),i.currentColumn=0):(r=Math.sumPrecise(i.columnWidths.slice(i.currentColumn,i.currentColumn+o)),i.currentColumn=(i.currentColumn+e.colSpan)%i.columnWidths.length),isNaN(r)||(n=e.w=r)}t.width=n!==""?Xt(n):"auto",t.height=a!==""?Xt(a):"auto"},position(e,t){let s=e[Le]();(!s?.layout||s.layout==="position")&&(t.position="absolute",t.left=Xt(e.x),t.top=Xt(e.y))},rotate(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+=`rotate(-${e.rotate}deg)`,t.transformOrigin="top left")},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if(e[he]==="para")switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[oe]().margin)}};function s7(e,t){e[Le]().layout==="position"&&(e.minW>0&&(t.minWidth=Xt(e.minW)),e.maxW>0&&(t.maxWidth=Xt(e.maxW)),e.minH>0&&(t.minHeight=Xt(e.minH)),e.maxH>0&&(t.maxHeight=Xt(e.maxH)))}function E6(e,t,s,n,a,i){let o=new Kp(t,s,n,a);return typeof e=="string"?o.addString(e):e[Vn](o),o.compute(i)}function E5(e,t){let s=null,n=null,a=!1;if((!e.w||!e.h)&&e.value){let i=0,o=0;e.margin&&(i=e.margin.leftInset+e.margin.rightInset,o=e.margin.topInset+e.margin.bottomInset);let r=null,l=null;e.para&&(l=Object.create(null),r=e.para.lineHeight===""?null:e.para.lineHeight,l.top=e.para.spaceAbove===""?0:e.para.spaceAbove,l.bottom=e.para.spaceBelow===""?0:e.para.spaceBelow,l.left=e.para.marginLeft===""?0:e.para.marginLeft,l.right=e.para.marginRight===""?0:e.para.marginRight);let f=e.font;if(!f){let m=e[_e](),u=e[Qt]();for(;u&&u!==m;){if(u.font){f=u.font;break}u=u[Qt]()}}let c=(e.w||t.width)-i,h=e[je].fontFinder;if(e.value.exData&&e.value.exData[ft]&&e.value.exData.contentType==="text/html"){let m=E6(e.value.exData[ft],f,l,r,h,c);n=m.width,s=m.height,a=m.isBroken}else{let m=e.value[Ge]();if(m){let u=E6(m,f,l,r,h,c);n=u.width,s=u.height,a=u.isBroken}}n===null||e.w||(n+=i),s===null||e.h||(s+=o)}return{w:n,h:s,isBroken:a}}function n7(e,t,s){let n;if(e.w!==""&&e.h!=="")n=[e.x,e.y,e.w,e.h];else{if(!s)return null;let a=e.w;if(a===""){if(e.maxW===0){let o=e[Le]();a=o.layout==="position"&&o.w!==""?0:e.minW}else a=Math.min(e.maxW,s.width);t.attributes.style.width=Xt(a)}let i=e.h;if(i===""){if(e.maxH===0){let o=e[Le]();i=o.layout==="position"&&o.h!==""?0:e.minH}else i=Math.min(e.maxH,s.height);t.attributes.style.height=Xt(i)}n=[e.x,e.y,a,i]}return n}function _u(e){let t=e[Le]();if(t.layout?.includes("row")){let s=t[Q],n=e.colSpan,a;a=n===-1?Math.sumPrecise(s.columnWidths.slice(s.currentColumn)):Math.sumPrecise(s.columnWidths.slice(s.currentColumn,s.currentColumn+n)),isNaN(a)||(e.w=a)}t.layout&&t.layout!=="position"&&(e.x=e.y=0),e.layout==="table"&&e.w===""&&Array.isArray(e.columnWidths)&&(e.w=Math.sumPrecise(e.columnWidths))}function a7(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}}function Ts(e,...t){let s=Object.create(null);for(let n of t){let a=e[n];if(a!==null){if(Object.hasOwn(L6,n))L6[n](e,s);else if(a instanceof st){let i=a[oe]();i?Object.assign(s,i):F(`(DEBUG) - XFA - style for ${n} not implemented yet`)}}}return s}function _i(e,t){let{attributes:s}=t,{style:n}=s,a={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(s.class.push("xfaWrapped"),e.border){let{widths:i,insets:o}=e.border[Q],r,l,f=o[0],c=o[3],h=o[0]+o[2],m=o[1]+o[3];switch(e.border.hand){case"even":f-=i[0]/2,c-=i[3]/2,r=`calc(100% + ${(i[1]+i[3])/2-m}px)`,l=`calc(100% + ${(i[0]+i[2])/2-h}px)`;break;case"left":f-=i[0],c-=i[3],r=`calc(100% + ${i[1]+i[3]-m}px)`,l=`calc(100% + ${i[0]+i[2]-h}px)`;break;case"right":r=m?`calc(100% - ${m}px)`:"100%",l=h?`calc(100% - ${h}px)`:"100%"}let u=["xfaBorder"];xo(e.border)&&u.push("xfaPrintOnly");let d={name:"div",attributes:{class:u,style:{top:`${f}px`,left:`${c}px`,width:r,height:l}},children:[]};for(let p of["border","borderWidth","borderColor","borderRadius","borderStyle"])n[p]!==void 0&&(d.attributes.style[p]=n[p],delete n[p]);a.children.push(d,t)}else a.children.push(t);for(let i of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])n[i]!==void 0&&(a.attributes.style[i]=n[i],delete n[i]);return a.attributes.style.position=n.position==="absolute"?"absolute":"relative",delete n.position,n.alignSelf&&(a.attributes.style.alignSelf=n.alignSelf,delete n.alignSelf),a}function i7(e){let t=Ot(e.textIndent,"0px");if(t>=0)return;let s="padding"+((e.textAlign==="right"?"right":"left")=="left"?"Left":"Right"),n=Ot(e[s],"0px");e[s]=n-t+"px"}function K5(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}}function xo(e){return e.relevant.length>0&&!e.relevant[0].excluded&&e.relevant[0].viewname==="print"}function r7(e){let t=e[_e]()[Q].paraStack;return t.length?t.at(-1):null}function o7(e,t,s){if(s.attributes.class?.includes("xfaRich")){t&&(e.h===""&&(t.height="auto"),e.w===""&&(t.width="auto"));let n=r7(e);if(n){let a=s.attributes.style;switch(a.display="flex",a.flexDirection="column",n.vAlign){case"top":a.justifyContent="start";break;case"bottom":a.justifyContent="end";break;case"middle":a.justifyContent="center"}let i=n[oe]();for(let[o,r]of Object.entries(i))o in a||(a[o]=r)}}}function l7(e,t,s,n){if(!s){delete n.fontFamily;return}let a=Ou(e.typeface);n.fontFamily=g3(a);let i=s.find(a);if(i){let{fontFamily:o}=i.regular.cssFontInfo;o!==a&&(n.fontFamily=g3(o));let r=r7(t);if(r&&r.lineHeight!==""||n.lineHeight)return;let l=U5(e,i);l&&(n.lineHeight=Math.max(1.2,l.lineHeight))}}function f7(e){let t=M1(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null}function c7(e,t){return{name:"div",attributes:{class:[e.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:t}}function h7(e){if(!e[Q])return null;let t={name:"div",attributes:e[Q].attributes,children:e[Q].children};if(e[Q].failingNode){let s=e[Q].failingNode[Hc]();s&&(e.layout.endsWith("-tb")?t.children.push(c7(e,[s])):t.children.push(s))}return t.children.length===0?null:t}function u7(e,t,s){let n=e[Q],a=n.availableSpace,[i,o,r,l]=s;switch(e.layout){case"position":n.width=Math.max(n.width,i+r),n.height=Math.max(n.height,o+l),n.children.push(t);break;case"lr-tb":case"rl-tb":(!n.line||n.attempt===1)&&(n.line=c7(e,[]),n.children.push(n.line),n.numberInLine=0),n.numberInLine+=1,n.line.children.push(t),n.attempt===0?(n.currentWidth+=r,n.height=Math.max(n.height,n.prevHeight+l)):(n.currentWidth=r,n.prevHeight=n.height,n.height+=l,n.attempt=0),n.width=Math.max(n.width,n.currentWidth);break;case"rl-row":case"row":{n.children.push(t),n.width+=r,n.height=Math.max(n.height,l);let f=Xt(n.height);for(let c of n.children)c.attributes.style.height=f;break}case"table":case"tb":n.width=He(r,n.width,a.width),n.height+=l,n.children.push(t)}}function m7(e){let t=e[Q].availableSpace,s=e.margin?e.margin.topInset+e.margin.bottomInset:0,n=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return e[Q].attempt===0?{width:t.width-n-e[Q].currentWidth,height:t.height-s-e[Q].prevHeight}:{width:t.width-n,height:t.height-s-e[Q].height};case"rl-row":case"row":return{width:Math.sumPrecise(e[Q].columnWidths.slice(e[Q].currentColumn)),height:t.height-n};case"table":case"tb":return{width:t.width-n,height:t.height-s-e[Q].height};default:return t}}function Pu(e,t){if(e[_e]()[Q].firstUnsplittable===null||e.w===0||e.h===0)return!0;let s=e[Le](),n=s[Q]?.attempt||0,[,a,i,o]=(function(l){let f,c,h=l.w===""?NaN:l.w,m=l.h===""?NaN:l.h,[u,d]=[0,0];switch(l.anchorType||""){case"bottomCenter":[u,d]=[h/2,m];break;case"bottomLeft":[u,d]=[0,m];break;case"bottomRight":[u,d]=[h,m];break;case"middleCenter":[u,d]=[h/2,m/2];break;case"middleLeft":[u,d]=[0,m/2];break;case"middleRight":[u,d]=[h,m/2];break;case"topCenter":[u,d]=[h/2,0];break;case"topRight":[u,d]=[h,0]}switch(l.rotate||0){case 0:[f,c]=[-u,-d];break;case 90:[f,c]=[-d,u],[h,m]=[m,-h];break;case 180:[f,c]=[u,d],[h,m]=[-h,-m];break;case 270:[f,c]=[d,-u],[h,m]=[-m,h]}return[l.x+f+Math.min(0,h),l.y+c+Math.min(0,m),Math.abs(h),Math.abs(m)]})(e);switch(s.layout){case"lr-tb":case"rl-tb":return n===0?e[_e]()[Q].noLayoutFailure?e.w!==""?Math.round(i-t.width)<=2:t.width>2:!(e.h!==""&&Math.round(o-t.height)>2)&&(e.w!==""?Math.round(i-t.width)<=2||s[Q].numberInLine===0&&t.height>2:t.width>2):!!e[_e]()[Q].noLayoutFailure||!(e.h!==""&&Math.round(o-t.height)>2)&&(e.w===""||Math.round(i-t.width)<=2||!s[ka]())&&t.height>2;case"table":case"tb":return!!e[_e]()[Q].noLayoutFailure||(e.h===""||e[pa]()?(e.w===""||Math.round(i-t.width)<=2||!s[ka]())&&t.height>2:Math.round(o-t.height)<=2);case"position":return e[_e]()[Q].noLayoutFailure||e.h===""||Math.round(o+a-t.height)<=2?!0:o+a>e[_e]()[Q].currentContentArea.h;case"rl-row":case"row":return!!e[_e]()[Q].noLayoutFailure||e.h===""||Math.round(o-t.height)<=2;default:return!0}}var xt=Xe.template.id,pv=/^H(\\d+)$/,dv=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),gv=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function K6(e){if(!e||!e.border)return{w:0,h:0};let t=e.border[cs]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function W5(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function V5(e,t){if(!e.value){let s=new rf({});e[ze](s),e.value=s}e.value[Ns](t)}function*$5(e){for(let t of e[ks]())t instanceof sf?yield*t[jo]():yield t}function Bc(e){return e.validate?.nullTest==="error"}function Uu(e){for(;e;){if(!e.traversal){e[vn]=e[Qt]()[vn];return}if(e[vn])return;let t=null;for(let a of e.traversal[ks]())if(a.operation==="next"){t=a;break}if(!t||!t.ref){e[vn]=e[Qt]()[vn];return}let s=e[_e]();e[vn]=++s[vn];let n=s[ca](t.ref,e);if(!n)return;e=n[0]}}function Lu(e,t){let s=e.assist;if(s){let n=s[Vt]();n&&(t.title=n);let a=s.role.match(pv);if(a){let i="heading",o=a[1];t.role=i,t["aria-level"]=o}}if(e.layout==="table")t.role="table";else if(e.layout==="row")t.role="row";else{let n=e[Qt]();n.layout==="row"&&(t.role=n.assist?.role==="TH"?"columnheader":"cell")}}function Xi(e){if(!e.assist)return null;let t=e.assist;return t.speak&&t.speak[ft]!==""?t.speak[ft]:t.toolTip?t.toolTip[ft]:null}function ni(e){return Ut.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function Eu(e){let t=e[_e]();t[Q].firstUnsplittable===null&&(t[Q].firstUnsplittable=e,t[Q].noLayoutFailure=!0)}function Ku(e){let t=e[_e]();t[Q].firstUnsplittable===e&&(t[Q].noLayoutFailure=!1)}function W6(e){if(e[Q]||(e[Q]=Object.create(null),e.targetType==="auto"))return!1;let t=e[_e](),s=null;if(e.target){if(s=t[ca](e.target,e[Qt]()),!s)return!1;s=s[0]}let{currentPageArea:n,currentContentArea:a}=t[Q];if(e.targetType==="pageArea")return s instanceof ei||(s=null),e.startNew?(e[Q].target=s||n,!0):s&&s!==n?(e[Q].target=s,!0):!1;s instanceof Jl||(s=null);let i=s&&s[Qt](),o,r=i;if(e.startNew)if(s){let l=i.contentArea.children,f=l.indexOf(a),c=l.indexOf(s);f!==-1&&f<c&&(r=null),o=c-1}else o=n.contentArea.children.indexOf(a);else{if(!s||s===a)return!1;o=i.contentArea.children.indexOf(s)-1,r=i===n?null:i}return e[Q].target=r,e[Q].index=o,!0}function V6(e,t,s){let n=e[_e](),a=n[Q].noLayoutFailure,i=t[Le];t[Le]=()=>e,n[Q].noLayoutFailure=!0;let o=t[Vt](s);e[Oi](o.html,o.bbox),n[Q].noLayoutFailure=a,t[Le]=i}var Vp=class extends te{constructor(t){super(xt,"appearanceFilter"),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}},Sh=class extends st{constructor(t){super(xt,"arc",!0),this.circular=Yt({data:t.circular,defaultValue:0,validate:s=>s===1}),this.hand=ut(t.hand,["even","left","right"]),this.id=t.id||"",this.startAngle=kh({data:t.startAngle,defaultValue:0,validate:s=>!0}),this.sweepAngle=kh({data:t.sweepAngle,defaultValue:360,validate:s=>!0}),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null,this.fill=null}[Vt](){let t=this.edge||new Yi({}),s=t[oe](),n=Object.create(null);this.fill?.presence==="visible"?Object.assign(n,this.fill[oe]()):n.fill="transparent",n.strokeWidth=Xt(t.presence==="visible"?t.thickness:0),n.stroke=s.color;let a,i={xmlns:Fi,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)a={name:"ellipse",attributes:{xmlns:Fi,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:n}};else{let r=this.startAngle*Math.PI/180,l=this.sweepAngle*Math.PI/180,f=this.sweepAngle>180?1:0,[c,h,m,u]=[50*(1+Math.cos(r)),50*(1-Math.sin(r)),50*(1+Math.cos(r+l)),50*(1-Math.sin(r+l))];a={name:"path",attributes:{xmlns:Fi,d:`M ${c} ${h} A 50 50 0 ${f} 0 ${m} ${u}`,vectorEffect:"non-scaling-stroke",style:n}},Object.assign(i,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}let o={name:"svg",children:[a],attributes:i};return W5(this[Qt]()[Qt]())?Ut.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[o]}):(o.attributes.style.position="absolute",Ut.success(o))}},$p=class extends st{constructor(t){super(xt,"area",!0),this.colSpan=Yt({data:t.colSpan,defaultValue:1,validate:s=>s>=1||s===-1}),this.id=t.id||"",this.name=t.name||"",this.relevant=Tn(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.x=Ot(t.x,"0pt"),this.y=Ot(t.y,"0pt"),this.desc=null,this.extras=null,this.area=new O,this.draw=new O,this.exObject=new O,this.exclGroup=new O,this.field=new O,this.subform=new O,this.subformSet=new O}*[jo](){yield*$5(this)}[$l](){return!0}[tr](){return!0}[Oi](t,s){let[n,a,i,o]=s;this[Q].width=Math.max(this[Q].width,n+i),this[Q].height=Math.max(this[Q].height,a+o),this[Q].children.push(t)}[Ni](){return this[Q].availableSpace}[Vt](t){let s=Ts(this,"position"),n={style:s,id:this[ge],class:["xfaArea"]};xo(this)&&n.class.push("xfaPrintOnly"),this.name&&(n.xfaName=this.name);let a=[];this[Q]={children:a,width:0,height:0,availableSpace:t};let i=this[ti]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!i.success)return i.isBreak()?i:(delete this[Q],Ut.FAILURE);s.width=Xt(this[Q].width),s.height=Xt(this[Q].height);let o={name:"div",attributes:n,children:a},r=[this.x,this.y,this[Q].width,this[Q].height];return delete this[Q],Ut.success(o,r)}},Gp=class extends st{constructor(t){super(xt,"assist",!0),this.id=t.id||"",this.role=t.role||"",this.use=t.use||"",this.usehref=t.usehref||"",this.speak=null,this.toolTip=null}[Vt](){return this.toolTip?.[ft]||null}},Xp=class extends st{constructor(t){super(xt,"barcode",!0),this.charEncoding=Nu({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:s=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(s)||s.match(/iso-8859-\\d{2}/)}),this.checksum=ut(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=Yt({data:t.dataColumnCount,defaultValue:-1,validate:s=>s>=0}),this.dataLength=Yt({data:t.dataLength,defaultValue:-1,validate:s=>s>=0}),this.dataPrep=ut(t.dataPrep,["none","flateCompress"]),this.dataRowCount=Yt({data:t.dataRowCount,defaultValue:-1,validate:s=>s>=0}),this.endChar=t.endChar||"",this.errorCorrectionLevel=Yt({data:t.errorCorrectionLevel,defaultValue:-1,validate:s=>s>=0&&s<=8}),this.id=t.id||"",this.moduleHeight=Ot(t.moduleHeight,"5mm"),this.moduleWidth=Ot(t.moduleWidth,"0.25mm"),this.printCheckDigit=Yt({data:t.printCheckDigit,defaultValue:0,validate:s=>s===1}),this.rowColumnRatio=N6(t.rowColumnRatio),this.startChar=t.startChar||"",this.textLocation=ut(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=Yt({data:t.truncate,defaultValue:0,validate:s=>s===1}),this.type=ut(t.type?t.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),this.upsMode=ut(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=t.use||"",this.usehref=t.usehref||"",this.wideNarrowRatio=N6(t.wideNarrowRatio),this.encrypt=null,this.extras=null}},Yp=class extends st{constructor(t){super(xt,"bind",!0),this.match=ut(t.match,["once","dataRef","global","none"]),this.ref=t.ref||"",this.picture=null}},Yl=class extends st{constructor(t){super(xt,"bindItems"),this.connection=t.connection||"",this.labelRef=t.labelRef||"",this.ref=t.ref||"",this.valueRef=t.valueRef||""}},Jp=class extends st{constructor(t){super(xt,"bookend"),this.id=t.id||"",this.leader=t.leader||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}},Qp=class extends Ee{constructor(t){super(xt,"boolean"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Vt](t){return ni(this[ft]===1?"1":"0")}},Ah=class extends st{constructor(t){super(xt,"border",!0),this.break=ut(t.break,["close","open"]),this.hand=ut(t.hand,["even","left","right"]),this.id=t.id||"",this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Tn(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new O(4),this.edge=new O(4),this.extras=null,this.fill=null,this.margin=null}[cs](){if(!this[Q]){let t=this.edge.children.slice();if(t.length<4){let a=t.at(-1)||new Yi({});for(let i=t.length;i<4;i++)t.push(a)}let s=t.map(a=>a.thickness),n=[0,0,0,0];this.margin&&(n[0]=this.margin.topInset,n[1]=this.margin.rightInset,n[2]=this.margin.bottomInset,n[3]=this.margin.leftInset),this[Q]={widths:s,insets:n,edges:t}}return this[Q]}[oe](){let{edges:t}=this[cs](),s=t.map(a=>{let i=a[oe]();return i.color||(i.color="#000000"),i}),n=Object.create(null);if(this.margin&&Object.assign(n,this.margin[oe]()),this.fill?.presence==="visible"&&Object.assign(n,this.fill[oe]()),this.corner.children.some(a=>a.radius!==0)){let a=this.corner.children.map(i=>i[oe]());if(a.length===2||a.length===3){let i=a.at(-1);for(let o=a.length;o<4;o++)a.push(i)}n.borderRadius=a.map(i=>i.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":n.borderStyle="";break;case"inactive":n.borderStyle="none";break;default:n.borderStyle=s.map(a=>a.style).join(" ")}return n.borderWidth=s.map(a=>a.width).join(" "),n.borderColor=s.map(a=>a.color).join(" "),n}},Zp=class extends st{constructor(t){super(xt,"break",!0),this.after=ut(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=t.afterTarget||"",this.before=ut(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=t.beforeTarget||"",this.bookendLeader=t.bookendLeader||"",this.bookendTrailer=t.bookendTrailer||"",this.id=t.id||"",this.overflowLeader=t.overflowLeader||"",this.overflowTarget=t.overflowTarget||"",this.overflowTrailer=t.overflowTrailer||"",this.startNew=Yt({data:t.startNew,defaultValue:0,validate:s=>s===1}),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}},Ih=class extends st{constructor(t){super(xt,"breakAfter",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=Yt({data:t.startNew,defaultValue:0,validate:s=>s===1}),this.target=t.target||"",this.targetType=ut(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}},Ch=class extends st{constructor(t){super(xt,"breakBefore",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=Yt({data:t.startNew,defaultValue:0,validate:s=>s===1}),this.target=t.target||"",this.targetType=ut(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}[Vt](t){return this[Q]={},Ut.FAILURE}},td=class extends st{constructor(t){super(xt,"button",!0),this.highlight=ut(t.highlight,["inverted","none","outline","push"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[Vt](t){let s=this[Qt]()[Qt](),n={name:"button",attributes:{id:this[ge],class:["xfaButton"],style:{}},children:[]};for(let a of s.event.children){if(a.activity!=="click"||!a.script)continue;let i=N4(a.script[ft]);if(!i)continue;let o=f7(i.url);o&&n.children.push({name:"a",attributes:{id:"link"+this[ge],href:o,newWindow:i.newWindow,class:["xfaLink"],style:{}},children:[]})}return Ut.success(n)}},ed=class extends st{constructor(t){super(xt,"calculate",!0),this.id=t.id||"",this.override=ut(t.override,["disabled","error","ignore","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.script=null}},sd=class extends st{constructor(t){super(xt,"caption",!0),this.id=t.id||"",this.placement=ut(t.placement,["left","bottom","inline","right","top"]),this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil(Ot(t.reserve)),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[Ns](t){V5(this,t)}[cs](t){if(!this[Q]){let{width:s,height:n}=t;switch(this.placement){case"left":case"right":case"inline":s=this.reserve<=0?s:this.reserve;break;case"top":case"bottom":n=this.reserve<=0?n:this.reserve}this[Q]=E5(this,{width:s,height:n})}return this[Q]}[Vt](t){if(!this.value)return Ut.EMPTY;this[vo]();let s=this.value[Vt](t).html;if(!s)return this[Os](),Ut.EMPTY;let n=this.reserve;if(this.reserve<=0){let{w:o,h:r}=this[cs](t);switch(this.placement){case"left":case"right":case"inline":this.reserve=o;break;case"top":case"bottom":this.reserve=r}}let a=[];typeof s=="string"?a.push({name:"#text",value:s}):a.push(s);let i=Ts(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(i.width=Xt(this.reserve));break;case"top":case"bottom":this.reserve>0&&(i.height=Xt(this.reserve))}return o7(this,null,s),this[Os](),this.reserve=n,Ut.success({name:"div",attributes:{style:i,class:["xfaCaption"]},children:a})}},nd=class extends te{constructor(t){super(xt,"certificate"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},ad=class extends st{constructor(t){super(xt,"certificates",!0),this.credentialServerPolicy=ut(t.credentialServerPolicy,["optional","required"]),this.id=t.id||"",this.url=t.url||"",this.urlPolicy=t.urlPolicy||"",this.use=t.use||"",this.usehref=t.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}},Hh=class extends st{constructor(t){super(xt,"checkButton",!0),this.id=t.id||"",this.mark=ut(t.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=ut(t.shape,["square","round"]),this.size=Ot(t.size,"10pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[Vt](t){let s=Ts(this,"margin"),n=Xt(this.size);s.width=s.height=n;let a,i,o,r=this[Qt]()[Qt](),l=r.items.children.length&&r.items.children[0][Vt]().html||[],f={on:(l[0]!==void 0?l[0]:"on").toString(),off:(l[1]!==void 0?l[1]:"off").toString()},c=(r.value?.[Ge]()||"off")===f.on||void 0,h=r[Le](),m=r[ge],u;h instanceof Fh?(o=h[ge],a="radio",i="xfaRadio",u=h[sn]?.[ge]||h[ge]):(a="checkbox",i="xfaCheckbox",u=r[sn]?.[ge]||r[ge]);let d={name:"input",attributes:{class:[i],style:s,fieldId:m,dataId:u,type:a,checked:c,xfaOn:f.on,xfaOff:f.off,"aria-label":Xi(r),"aria-required":!1}};return o&&(d.attributes.name=o),Bc(r)&&(d.attributes["aria-required"]=!0,d.attributes.required=!0),Ut.success({name:"label",attributes:{class:["xfaLabel"]},children:[d]})}},Bh=class extends st{constructor(t){super(xt,"choiceList",!0),this.commitOn=ut(t.commitOn,["select","exit"]),this.id=t.id||"",this.open=ut(t.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=Yt({data:t.textEntry,defaultValue:0,validate:s=>s===1}),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[Vt](t){let s=Ts(this,"border","margin"),n=this[Qt]()[Qt](),a={fontSize:`calc(${n.font?.size||10}px * var(--total-scale-factor))`},i=[];if(n.items.children.length>0){let r=n.items,l=0,f=0;r.children.length===2&&(l=r.children[0].save,f=1-l);let c=r.children[l][Vt]().html,h=r.children[f][Vt]().html,m=!1,u=n.value?.[Ge]()||"";for(let d=0,p=c.length;d<p;d++){let g={name:"option",attributes:{value:h[d]||c[d],style:a},value:c[d]};h[d]===u&&(g.attributes.selected=m=!0),i.push(g)}m||i.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}let o={class:["xfaSelect"],fieldId:n[ge],dataId:n[sn]?.[ge]||n[ge],style:s,"aria-label":Xi(n),"aria-required":!1};return Bc(n)&&(o["aria-required"]=!0,o.required=!0),this.open==="multiSelect"&&(o.multiple=!0),Ut.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:i,attributes:o}]})}},id=class extends st{constructor(t){super(xt,"color",!0),this.cSpace=ut(t.cSpace,["SRGB"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.value=t.value?(function(n,a=[0,0,0]){let[i,o,r]=a;if(!n)return{r:i,g:o,b:r};let l=n.split(",",3).map(f=>(f=parseInt(f.trim(),10),isNaN(f)?0:He(f,0,255)));return l.length<3?{r:i,g:o,b:r}:([i,o,r]=l,{r:i,g:o,b:r})})(t.value):"",this.extras=null}[Vl](){return!1}[oe](){return this.value?ee.makeHexColor(this.value.r,this.value.g,this.value.b):null}},rd=class extends st{constructor(t){super(xt,"comb"),this.id=t.id||"",this.numberOfCells=Yt({data:t.numberOfCells,defaultValue:0,validate:s=>s>=0}),this.use=t.use||"",this.usehref=t.usehref||""}},od=class extends st{constructor(t){super(xt,"connect",!0),this.connection=t.connection||"",this.id=t.id||"",this.ref=t.ref||"",this.usage=ut(t.usage,["exportAndImport","exportOnly","importOnly"]),this.use=t.use||"",this.usehref=t.usehref||"",this.picture=null}},Jl=class extends st{constructor(t){super(xt,"contentArea",!0),this.h=Ot(t.h),this.id=t.id||"",this.name=t.name||"",this.relevant=Tn(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=Ot(t.w),this.x=Ot(t.x,"0pt"),this.y=Ot(t.y,"0pt"),this.desc=null,this.extras=null}[Vt](t){let s={left:Xt(this.x),top:Xt(this.y),width:Xt(this.w),height:Xt(this.h)},n=["xfaContentarea"];return xo(this)&&n.push("xfaPrintOnly"),Ut.success({name:"div",children:[],attributes:{style:s,class:n,id:this[ge]}})}},Th=class extends st{constructor(t){super(xt,"corner",!0),this.id=t.id||"",this.inverted=Yt({data:t.inverted,defaultValue:0,validate:s=>s===1}),this.join=ut(t.join,["square","round"]),this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.radius=Ot(t.radius),this.stroke=ut(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=Ot(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oe](){let t=Ts(this,"visibility");return t.radius=Xt(this.join==="square"?0:this.radius),t}},ld=class extends Te{constructor(t){super(xt,"date"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[qe](){let t=this[ft].trim();this[ft]=t?new Date(t):null}[Vt](t){return ni(this[ft]?this[ft].toString():"")}},fd=class extends Te{constructor(t){super(xt,"dateTime"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[qe](){let t=this[ft].trim();this[ft]=t?new Date(t):null}[Vt](t){return ni(this[ft]?this[ft].toString():"")}},cd=class extends st{constructor(t){super(xt,"dateTimeEdit",!0),this.hScrollPolicy=ut(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.picker=ut(t.picker,["host","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[Vt](t){let s=Ts(this,"border","font","margin"),n=this[Qt]()[Qt](),a={name:"input",attributes:{type:"text",fieldId:n[ge],dataId:n[sn]?.[ge]||n[ge],class:["xfaTextfield"],style:s,"aria-label":Xi(n),"aria-required":!1}};return Bc(n)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),Ut.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}},hd=class extends Te{constructor(t){super(xt,"decimal"),this.fracDigits=Yt({data:t.fracDigits,defaultValue:2,validate:s=>!0}),this.id=t.id||"",this.leadDigits=Yt({data:t.leadDigits,defaultValue:-1,validate:s=>!0}),this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[qe](){let t=parseFloat(this[ft].trim());this[ft]=isNaN(t)?null:t}[Vt](t){return ni(this[ft]!==null?this[ft].toString():"")}},ud=class extends st{constructor(t){super(xt,"defaultUi",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}},md=class extends st{constructor(t){super(xt,"desc",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new O,this.date=new O,this.dateTime=new O,this.decimal=new O,this.exData=new O,this.float=new O,this.image=new O,this.integer=new O,this.text=new O,this.time=new O}},pd=class extends ue{constructor(t){super(xt,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},dd=class extends st{constructor(t){super(xt,"digestMethods",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.digestMethod=new O}},Rh=class extends st{constructor(t){super(xt,"draw",!0),this.anchorType=ut(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Yt({data:t.colSpan,defaultValue:1,validate:s=>s>=1||s===-1}),this.h=t.h?Ot(t.h):"",this.hAlign=ut(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=Ot(t.maxH,"0pt"),this.maxW=Ot(t.maxW,"0pt"),this.minH=Ot(t.minH,"0pt"),this.minW=Ot(t.minW,"0pt"),this.name=t.name||"",this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Tn(t.relevant),this.rotate=Yt({data:t.rotate,defaultValue:0,validate:s=>s%90==0}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?Ot(t.w):"",this.x=Ot(t.x,"0pt"),this.y=Ot(t.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new O}[Ns](t){V5(this,t)}[Vt](t){if(Uu(this),this.presence==="hidden"||this.presence==="inactive")return Ut.EMPTY;_u(this),this[vo]();let s=this.w,n=this.h,{w:a,h:i,isBroken:o}=E5(this,t);if(a&&this.w===""){if(o&&this[Le]()[ka]())return this[Os](),Ut.FAILURE;this.w=a}if(i&&this.h===""&&(this.h=i),Eu(this),!Pu(this,t))return this.w=s,this.h=n,this[Os](),Ut.FAILURE;Ku(this);let r=Ts(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");s7(this,r),r.margin&&(r.padding=r.margin,delete r.margin);let l=["xfaDraw"];this.font&&l.push("xfaFont"),xo(this)&&l.push("xfaPrintOnly");let f={style:r,id:this[ge],class:l};this.name&&(f.xfaName=this.name);let c={name:"div",attributes:f,children:[]};Lu(this,f);let h=n7(this,c,t),m=this.value?this.value[Vt](t).html:null;return m===null?(this.w=s,this.h=n,this[Os](),Ut.success(_i(this,c),h)):(c.children.push(m),o7(this,r,m),this.w=s,this.h=n,this[Os](),Ut.success(_i(this,c),h))}},Yi=class extends st{constructor(t){super(xt,"edge",!0),this.cap=ut(t.cap,["square","butt","round"]),this.id=t.id||"",this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.stroke=ut(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=Ot(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oe](){let t=Ts(this,"visibility");if(Object.assign(t,{linecap:this.cap,width:Xt(this.thickness),color:this.color?this.color[oe]():"#000000",style:""}),this.presence!=="visible")t.style="none";else switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset"}return t}},gd=class extends ue{constructor(t){super(xt,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},bd=class extends st{constructor(t){super(xt,"encodings",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encoding=new O}},wd=class extends st{constructor(t){super(xt,"encrypt",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=null}},jd=class extends st{constructor(t){super(xt,"encryptData",!0),this.id=t.id||"",this.operation=ut(t.operation,["encrypt","decrypt"]),this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}},kd=class extends st{constructor(t){super(xt,"encryption",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new O}},qd=class extends ue{constructor(t){super(xt,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},yd=class extends st{constructor(t){super(xt,"encryptionMethods",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encryptionMethod=new O}},vd=class extends st{constructor(t){super(xt,"event",!0),this.activity=ut(t.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),this.id=t.id||"",this.listen=ut(t.listen,["refOnly","refAndDescendents"]),this.name=t.name||"",this.ref=t.ref||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}},xd=class extends Te{constructor(t){super(xt,"exData"),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.maxLength=Yt({data:t.maxLength,defaultValue:-1,validate:s=>s>=-1}),this.name=t.name||"",this.rid=t.rid||"",this.transferEncoding=ut(t.transferEncoding,["none","base64","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[P5](){return this.contentType==="text/html"}[En](t){return this.contentType==="text/html"&&t[Ue]===Xe.xhtml.id?(this[ft]=t,!0):this.contentType==="text/xml"?(this[ft]=t,!0):!1}[Vt](t){return this.contentType==="text/html"&&this[ft]?this[ft][Vt](t):Ut.EMPTY}},Sd=class extends st{constructor(t){super(xt,"exObject",!0),this.archive=t.archive||"",this.classId=t.classId||"",this.codeBase=t.codeBase||"",this.codeType=t.codeType||"",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.boolean=new O,this.date=new O,this.dateTime=new O,this.decimal=new O,this.exData=new O,this.exObject=new O,this.float=new O,this.image=new O,this.integer=new O,this.text=new O,this.time=new O}},Fh=class extends st{constructor(t){super(xt,"exclGroup",!0),this.access=ut(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=ut(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Yt({data:t.colSpan,defaultValue:1,validate:s=>s>=1||s===-1}),this.h=t.h?Ot(t.h):"",this.hAlign=ut(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=ut(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=Ot(t.maxH,"0pt"),this.maxW=Ot(t.maxW,"0pt"),this.minH=Ot(t.minH,"0pt"),this.minW=Ot(t.minW,"0pt"),this.name=t.name||"",this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Tn(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?Ot(t.w):"",this.x=Ot(t.x,"0pt"),this.y=Ot(t.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new O,this.event=new O,this.field=new O,this.setProperty=new O}[tr](){return!0}[Vl](){return!0}[Ns](t){for(let s of this.field.children){if(!s.value){let n=new rf({});s[ze](n),s.value=n}s.value[Ns](t)}}[ka](){return this.layout.endsWith("-tb")&&this[Q].attempt===0&&this[Q].numberInLine>0||this[Qt]()[ka]()}[pa](){let t=this[Le]();return t[pa]()?this[Q]._isSplittable!==void 0?this[Q]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[Q]._isSplittable=!1,!1):t.layout?.endsWith("-tb")&&t[Q].numberInLine!==0?!1:(this[Q]._isSplittable=!0,!0):!1}[Hc](){return h7(this)}[Oi](t,s){u7(this,t,s)}[Ni](){return m7(this)}[Vt](t){if(Uu(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return Ut.EMPTY;_u(this);let s=[],n={id:this[ge],class:[]};K5(this,n.class),this[Q]||(this[Q]=Object.create(null)),Object.assign(this[Q],{children:s,attributes:n,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});let a=this[pa]();if(a||Eu(this),!Pu(this,t))return Ut.FAILURE;let i=new Set(["field"]);if(this.layout.includes("row")){let b=this[Le]().columnWidths;Array.isArray(b)&&b.length>0&&(this[Q].columnWidths=b,this[Q].currentColumn=0)}let o=Ts(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),r=["xfaExclgroup"],l=a7(this);l&&r.push(l),xo(this)&&r.push("xfaPrintOnly"),n.style=o,n.class=r,this.name&&(n.xfaName=this.name),this[vo]();let f=this.layout==="lr-tb"||this.layout==="rl-tb",c=f?2:1;for(;this[Q].attempt<c;this[Q].attempt++){f&&this[Q].attempt===1&&(this[Q].numberInLine=0);let b=this[ti]({filter:i,include:!0});if(b.success)break;if(b.isBreak())return this[Os](),b;if(f&&this[Q].attempt===0&&this[Q].numberInLine===0&&!this[_e]()[Q].noLayoutFailure){this[Q].attempt=c;break}}if(this[Os](),a||Ku(this),this[Q].attempt===c)return a||delete this[Q],Ut.FAILURE;let h=0,m=0;this.margin&&(h=this.margin.leftInset+this.margin.rightInset,m=this.margin.topInset+this.margin.bottomInset);let u=Math.max(this[Q].width+h,this.w||0),d=Math.max(this[Q].height+m,this.h||0),p=[this.x,this.y,u,d];this.w===""&&(o.width=Xt(u)),this.h===""&&(o.height=Xt(d));let g={name:"div",attributes:n,children:s};return Lu(this,n),delete this[Q],Ut.success(_i(this,g),p)}},Ad=class extends st{constructor(t){super(xt,"execute"),this.connection=t.connection||"",this.executeType=ut(t.executeType,["import","remerge"]),this.id=t.id||"",this.runAt=ut(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}},Id=class extends st{constructor(t){super(xt,"extras",!0),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new O,this.date=new O,this.dateTime=new O,this.decimal=new O,this.exData=new O,this.extras=new O,this.float=new O,this.image=new O,this.integer=new O,this.text=new O,this.time=new O}},Ql=class extends st{constructor(t){super(xt,"field",!0),this.access=ut(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=ut(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Yt({data:t.colSpan,defaultValue:1,validate:s=>s>=1||s===-1}),this.h=t.h?Ot(t.h):"",this.hAlign=ut(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=Ot(t.maxH,"0pt"),this.maxW=Ot(t.maxW,"0pt"),this.minH=Ot(t.minH,"0pt"),this.minW=Ot(t.minW,"0pt"),this.name=t.name||"",this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Tn(t.relevant),this.rotate=Yt({data:t.rotate,defaultValue:0,validate:s=>s%90==0}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?Ot(t.w):"",this.x=Ot(t.x,"0pt"),this.y=Ot(t.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new O(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new O,this.connect=new O,this.event=new O,this.setProperty=new O}[tr](){return!0}[Ns](t){V5(this,t)}[Vt](t){var b,w;if(Uu(this),!this.ui){this.ui=new af({}),this.ui[je]=this[je],this[ze](this.ui);let k;switch(this.items.children.length){case 0:k=new _h({}),this.ui.textEdit=k;break;case 1:k=new Hh({}),this.ui.checkButton=k;break;case 2:k=new Bh({}),this.ui.choiceList=k}this.ui[ze](k)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return Ut.EMPTY;this.caption&&delete this.caption[Q],this[vo]();let s=this.caption?this.caption[Vt](t).html:null,n=this.w,a=this.h,i=0,o=0;this.margin&&(i=this.margin.leftInset+this.margin.rightInset,o=this.margin.topInset+this.margin.bottomInset);let r=null;if(this.w===""||this.h===""){let k=null,q=null,y=0,v=0;if(this.ui.checkButton)y=v=this.ui.checkButton.size;else{let{w:A,h:x}=E5(this,t);A!==null?(y=A,v=x):v=(function(B,D=!1){let W=null;if(B){let H=Ou(B.typeface),V=B[je].fontFinder.find(H);W=U5(B,V)}if(!W)return{lineHeight:12,lineGap:2,lineNoGap:10};let L=B.size||10,ot=W.lineHeight?Math.max(D?0:1.2,W.lineHeight):1.2,P=W.lineGap===void 0?.2:W.lineGap;return{lineHeight:ot*L,lineGap:P*L,lineNoGap:Math.max(1,ot-P)*L}})(this.font,!0).lineNoGap}if(r=K6(this.ui[cs]()),y+=r.w,v+=r.h,this.caption){let{w:A,h:x,isBroken:I}=this.caption[cs](t);if(I&&this[Le]()[ka]())return this[Os](),Ut.FAILURE;switch(k=A,q=x,this.caption.placement){case"left":case"right":case"inline":k+=y;break;case"top":case"bottom":q+=v}}else k=y,q=v;k&&this.w===""&&(k+=i,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<k?k:this.minW)),q&&this.h===""&&(q+=o,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<q?q:this.minH))}if(this[Os](),_u(this),Eu(this),!Pu(this,t))return this.w=n,this.h=a,this[Os](),Ut.FAILURE;Ku(this);let l=Ts(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");s7(this,l);let f=["xfaField"];this.font&&f.push("xfaFont"),xo(this)&&f.push("xfaPrintOnly");let c={style:l,id:this[ge],class:f};l.margin&&(l.padding=l.margin,delete l.margin),K5(this,f),this.name&&(c.xfaName=this.name);let h=[],m={name:"div",attributes:c,children:h};Lu(this,c);let u=this.border?this.border[oe]():null,d=n7(this,m,t),p=this.ui[Vt]().html;if(!p)return Object.assign(l,u),Ut.success(_i(this,m),d);this[vn]&&(p.children?.[0]?p.children[0].attributes.tabindex=this[vn]:p.attributes.tabindex=this[vn]),(b=p.attributes).style||(b.style=Object.create(null));let g=null;if(this.ui.button?(p.children.length===1&&([g]=p.children.splice(0,1)),Object.assign(p.attributes.style,u)):Object.assign(l,u),h.push(p),this.value){if(this.ui.imageEdit)p.children.push(this.value[Vt]().html);else if(!this.ui.button){let k="";if(this.value.exData)k=this.value.exData[Ge]();else if(this.value.text)k=this.value.text[cs]();else{let q=this.value[Vt]().html;q!==null&&(k=q.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(p.children[0].attributes.maxLength=this.value.text.maxChars),k&&(this.ui.numericEdit&&(k=parseFloat(k),k=isNaN(k)?"":k.toString()),p.children[0].name==="textarea"?p.children[0].attributes.textContent=k:p.children[0].attributes.value=k)}}if(!this.ui.imageEdit&&p.children?.[0]&&this.h){r||(r=K6(this.ui[cs]()));let k=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){k=this.caption.reserve,k<=0&&(k=this.caption[cs](t).h);let q=this.h-k-o-r.h;p.children[0].attributes.style.height=Xt(q)}else p.children[0].attributes.style.height="100%"}if(g&&p.children.push(g),!s)return p.attributes.class&&p.attributes.class.push("xfaLeft"),this.w=n,this.h=a,Ut.success(_i(this,m),d);if(this.ui.button)return l.padding&&delete l.padding,s.name==="div"&&(s.name="span"),p.children.push(s),Ut.success(m,d);switch(this.ui.checkButton&&(s.attributes.class[0]="xfaCaptionForCheckButton"),(w=p.attributes).class||(w.class=[]),p.children.splice(0,0,s),this.caption.placement){case"left":case"inline":p.attributes.class.push("xfaLeft");break;case"right":p.attributes.class.push("xfaRight");break;case"top":p.attributes.class.push("xfaTop");break;case"bottom":p.attributes.class.push("xfaBottom")}return this.w=n,this.h=a,Ut.success(_i(this,m),d)}},Cd=class extends st{constructor(t){super(xt,"fill",!0),this.id=t.id||"",this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[oe](){let t=this[Qt](),s=t[Qt]()[Qt](),n=Object.create(null),a="color",i=a;t instanceof Ah&&(a="background-color",i="background",s instanceof af&&(n.backgroundColor="white")),(t instanceof Dh||t instanceof Sh)&&(a=i="fill",n.fill="white");for(let o of Object.getOwnPropertyNames(this)){if(o==="extras"||o==="color")continue;let r=this[o];if(!(r instanceof st))continue;let l=r[oe](this.color);return l&&(n[l.startsWith("#")?a:i]=l),n}if(this.color?.value){let o=this.color[oe]();n[o.startsWith("#")?a:i]=o}return n}},Hd=class extends st{constructor(t){super(xt,"filter",!0),this.addRevocationInfo=ut(t.addRevocationInfo,["","required","optional","none"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.version=Yt({data:this.version,defaultValue:5,validate:s=>s>=1&&s<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}},Bd=class extends Te{constructor(t){super(xt,"float"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[qe](){let t=parseFloat(this[ft].trim());this[ft]=isNaN(t)?null:t}[Vt](t){return ni(this[ft]!==null?this[ft].toString():"")}},Td=class extends st{constructor(t){super(xt,"font",!0),this.baselineShift=Ot(t.baselineShift),this.fontHorizontalScale=kh({data:t.fontHorizontalScale,defaultValue:100,validate:s=>s>=0}),this.fontVerticalScale=kh({data:t.fontVerticalScale,defaultValue:100,validate:s=>s>=0}),this.id=t.id||"",this.kerningMode=ut(t.kerningMode,["none","pair"]),this.letterSpacing=Ot(t.letterSpacing,"0"),this.lineThrough=Yt({data:t.lineThrough,defaultValue:0,validate:s=>s===1||s===2}),this.lineThroughPeriod=ut(t.lineThroughPeriod,["all","word"]),this.overline=Yt({data:t.overline,defaultValue:0,validate:s=>s===1||s===2}),this.overlinePeriod=ut(t.overlinePeriod,["all","word"]),this.posture=ut(t.posture,["normal","italic"]),this.size=Ot(t.size,"10pt"),this.typeface=t.typeface||"Courier",this.underline=Yt({data:t.underline,defaultValue:0,validate:s=>s===1||s===2}),this.underlinePeriod=ut(t.underlinePeriod,["all","word"]),this.use=t.use||"",this.usehref=t.usehref||"",this.weight=ut(t.weight,["normal","bold"]),this.extras=null,this.fill=null}[ln](t){super[ln](t),this[je].usedTypefaces.add(this.typeface)}[oe](){let t=Ts(this,"fill"),s=t.color;return s&&(s==="#000000"?delete t.color:s.startsWith("#")||(t.background=s,t.backgroundClip="text",t.color="transparent")),this.baselineShift&&(t.verticalAlign=Xt(this.baselineShift)),t.fontKerning=this.kerningMode==="none"?"none":"normal",t.letterSpacing=Xt(this.letterSpacing),this.lineThrough!==0&&(t.textDecoration="line-through",this.lineThrough===2&&(t.textDecorationStyle="double")),this.overline!==0&&(t.textDecoration="overline",this.overline===2&&(t.textDecorationStyle="double")),t.fontStyle=this.posture,t.fontSize=Xt(.99*this.size),l7(this,this,this[je].fontFinder,t),this.underline!==0&&(t.textDecoration="underline",this.underline===2&&(t.textDecorationStyle="double")),t.fontWeight=this.weight,t}},Rd=class extends st{constructor(t){super(xt,"format",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.picture=null}},Fd=class extends te{constructor(t){super(xt,"handler"),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}},Md=class extends st{constructor(t){super(xt,"hyphenation"),this.excludeAllCaps=Yt({data:t.excludeAllCaps,defaultValue:0,validate:s=>s===1}),this.excludeInitialCap=Yt({data:t.excludeInitialCap,defaultValue:0,validate:s=>s===1}),this.hyphenate=Yt({data:t.hyphenate,defaultValue:0,validate:s=>s===1}),this.id=t.id||"",this.pushCharacterCount=Yt({data:t.pushCharacterCount,defaultValue:3,validate:s=>s>=0}),this.remainCharacterCount=Yt({data:t.remainCharacterCount,defaultValue:3,validate:s=>s>=0}),this.use=t.use||"",this.usehref=t.usehref||"",this.wordCharacterCount=Yt({data:t.wordCharacterCount,defaultValue:7,validate:s=>s>=0})}},Mh=class extends te{constructor(t){super(xt,"image"),this.aspect=ut(t.aspect,["fit","actual","height","none","width"]),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.name=t.name||"",this.transferEncoding=ut(t.transferEncoding,["base64","none","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[Vt](){if(this.contentType&&!dv.has(this.contentType.toLowerCase()))return Ut.EMPTY;let t=this[je].images?.get(this.href);if(!t&&(this.href||!this[ft])||(t||this.transferEncoding!=="base64"||(t=Uint8Array.fromBase64(this[ft])),!t))return Ut.EMPTY;if(!this.contentType){for(let[i,o]of gv)if(t.length>i.length&&i.every((r,l)=>r===t[l])){this.contentType=o;break}if(!this.contentType)return Ut.EMPTY}let s=new Blob([t],{type:this.contentType}),n;switch(this.aspect){case"fit":case"actual":break;case"height":n={height:"100%",objectFit:"fill"};break;case"none":n={width:"100%",height:"100%",objectFit:"fill"};break;case"width":n={width:"100%",objectFit:"fill"}}let a=this[Qt]();return Ut.success({name:"img",attributes:{class:["xfaImage"],style:n,src:URL.createObjectURL(s),alt:a?Xi(a[Qt]()):null}})}},zd=class extends st{constructor(t){super(xt,"imageEdit",!0),this.data=ut(t.data,["link","embed"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[Vt](t){return this.data==="embed"?Ut.success({name:"div",children:[],attributes:{}}):Ut.EMPTY}},Dd=class extends Te{constructor(t){super(xt,"integer"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[qe](){let t=parseInt(this[ft].trim(),10);this[ft]=isNaN(t)?null:t}[Vt](t){return ni(this[ft]!==null?this[ft].toString():"")}},Od=class extends st{constructor(t){super(xt,"issuers",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new O}},Zl=class extends st{constructor(t){super(xt,"items",!0),this.id=t.id||"",this.name=t.name||"",this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.ref=t.ref||"",this.save=Yt({data:t.save,defaultValue:0,validate:s=>s===1}),this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new O,this.date=new O,this.dateTime=new O,this.decimal=new O,this.exData=new O,this.float=new O,this.image=new O,this.integer=new O,this.text=new O,this.time=new O}[Vt](){let t=[];for(let s of this[ks]())t.push(s[Ge]());return Ut.success(t)}},Nd=class extends st{constructor(t){super(xt,"keep",!0),this.id=t.id||"";let s=["none","contentArea","pageArea"];this.intact=ut(t.intact,s),this.next=ut(t.next,s),this.previous=ut(t.previous,s),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}},_d=class extends st{constructor(t){super(xt,"keyUsage");let s=["","yes","no"];this.crlSign=ut(t.crlSign,s),this.dataEncipherment=ut(t.dataEncipherment,s),this.decipherOnly=ut(t.decipherOnly,s),this.digitalSignature=ut(t.digitalSignature,s),this.encipherOnly=ut(t.encipherOnly,s),this.id=t.id||"",this.keyAgreement=ut(t.keyAgreement,s),this.keyCertSign=ut(t.keyCertSign,s),this.keyEncipherment=ut(t.keyEncipherment,s),this.nonRepudiation=ut(t.nonRepudiation,s),this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}},Pd=class extends st{constructor(t){super(xt,"line",!0),this.hand=ut(t.hand,["even","left","right"]),this.id=t.id||"",this.slope=ut(t.slope,["\\\\","/"]),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null}[Vt](){let t=this[Qt]()[Qt](),s=this.edge||new Yi({}),n=s[oe](),a=Object.create(null),i=s.presence==="visible"?s.thickness:0;a.strokeWidth=Xt(i),a.stroke=n.color;let o,r,l,f,c="100%",h="100%";t.w<=i?([o,r,l,f]=["50%",0,"50%","100%"],c=a.strokeWidth):t.h<=i?([o,r,l,f]=[0,"50%","100%","50%"],h=a.strokeWidth):this.slope==="\\\\"?[o,r,l,f]=[0,0,"100%","100%"]:[o,r,l,f]=[0,"100%","100%",0];let m={name:"svg",children:[{name:"line",attributes:{xmlns:Fi,x1:o,y1:r,x2:l,y2:f,style:a}}],attributes:{xmlns:Fi,width:c,height:h,style:{overflow:"visible"}}};return W5(t)?Ut.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[m]}):(m.attributes.style.position="absolute",Ut.success(m))}},Ud=class extends st{constructor(t){super(xt,"linear",!0),this.id=t.id||"",this.type=ut(t.type,["toRight","toBottom","toLeft","toTop"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oe](t){return t=t?t[oe]():"#FFFFFF",`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${t}, ${this.color?this.color[oe]():"#000000"})`}},Ld=class extends Te{constructor(t){super(xt,"lockDocument"),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}[qe](){this[ft]=ut(this[ft],["auto","0","1"])}},Ed=class extends st{constructor(t){super(xt,"manifest",!0),this.action=ut(t.action,["include","all","exclude"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.ref=new O}},Kd=class extends st{constructor(t){super(xt,"margin",!0),this.bottomInset=Ot(t.bottomInset,"0"),this.id=t.id||"",this.leftInset=Ot(t.leftInset,"0"),this.rightInset=Ot(t.rightInset,"0"),this.topInset=Ot(t.topInset,"0"),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[oe](){return{margin:Xt(this.topInset)+" "+Xt(this.rightInset)+" "+Xt(this.bottomInset)+" "+Xt(this.leftInset)}}},Wd=class extends st{constructor(t){super(xt,"mdp"),this.id=t.id||"",this.permissions=Yt({data:t.permissions,defaultValue:2,validate:s=>s===1||s===3}),this.signatureType=ut(t.signatureType,["filler","author"]),this.use=t.use||"",this.usehref=t.usehref||""}},Vd=class extends st{constructor(t){super(xt,"medium"),this.id=t.id||"",this.imagingBBox=(function(n){if(!n)return{x:-1,y:-1,width:-1,height:-1};let i=n.split(",",4).map(c=>Ot(c.trim(),"-1"));if(i.length<4||i[2]<0||i[3]<0)return{x:-1,y:-1,width:-1,height:-1};let[o,r,l,f]=i;return{x:o,y:r,width:l,height:f}})(t.imagingBBox),this.long=Ot(t.long),this.orientation=ut(t.orientation,["portrait","landscape"]),this.short=Ot(t.short),this.stock=t.stock||"",this.trayIn=ut(t.trayIn,["auto","delegate","pageFront"]),this.trayOut=ut(t.trayOut,["auto","delegate"]),this.use=t.use||"",this.usehref=t.usehref||""}},$d=class extends st{constructor(t){super(xt,"message",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.text=new O}},Gd=class extends st{constructor(t){super(xt,"numericEdit",!0),this.hScrollPolicy=ut(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[Vt](t){let s=Ts(this,"border","font","margin"),n=this[Qt]()[Qt](),a={name:"input",attributes:{type:"text",fieldId:n[ge],dataId:n[sn]?.[ge]||n[ge],class:["xfaTextfield"],style:s,"aria-label":Xi(n),"aria-required":!1}};return Bc(n)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),Ut.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}},Xd=class extends st{constructor(t){super(xt,"occur",!0),this.id=t.id||"",this.initial=t.initial!==""?Yt({data:t.initial,defaultValue:"",validate:s=>!0}):"",this.max=t.max!==""?Yt({data:t.max,defaultValue:-1,validate:s=>!0}):"",this.min=t.min!==""?Yt({data:t.min,defaultValue:1,validate:s=>!0}):"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[ln](){let t=this[Qt](),s=this.min;this.min===""&&(this.min=t instanceof ei||t instanceof tf?0:1),this.max===""&&(this.max=s===""?t instanceof ei||t instanceof tf?-1:1:this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===""&&(this.initial=t instanceof nf?1:this.min)}},Yd=class extends te{constructor(t){super(xt,"oid"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},Jd=class extends st{constructor(t){super(xt,"oids",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.oid=new O}},zh=class extends st{constructor(t){super(xt,"overflow"),this.id=t.id||"",this.leader=t.leader||"",this.target=t.target||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}[cs](){if(!this[Q]){let t=this[Qt](),s=this[_e](),n=s[ca](this.target,t),a=s[ca](this.leader,t),i=s[ca](this.trailer,t);this[Q]={target:n?.[0]||null,leader:a?.[0]||null,trailer:i?.[0]||null,addLeader:!1,addTrailer:!1}}return this[Q]}},ei=class extends st{constructor(t){super(xt,"pageArea",!0),this.blankOrNotBlank=ut(t.blankOrNotBlank,["any","blank","notBlank"]),this.id=t.id||"",this.initialNumber=Yt({data:t.initialNumber,defaultValue:1,validate:s=>!0}),this.name=t.name||"",this.numbered=Yt({data:t.numbered,defaultValue:1,validate:s=>!0}),this.oddOrEven=ut(t.oddOrEven,["any","even","odd"]),this.pagePosition=ut(t.pagePosition,["any","first","last","only","rest"]),this.relevant=Tn(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new O,this.contentArea=new O,this.draw=new O,this.exclGroup=new O,this.field=new O,this.subform=new O}[Gl](){return this[Q]?!this.occur||this.occur.max===-1||this[Q].numberOfUse<this.occur.max:(this[Q]={numberOfUse:0},!0)}[Sr](){delete this[Q]}[na](){this[Q]||(this[Q]={numberOfUse:0});let t=this[Qt]();return t.relation==="orderedOccurrence"&&this[Gl]()?(this[Q].numberOfUse+=1,this):t[na]()}[Ni](){return this[Q].space||{width:0,height:0}}[Vt](){this[Q]||(this[Q]={numberOfUse:1});let t=[];this[Q].children=t;let s=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(s.width=Xt(this.medium.short),s.height=Xt(this.medium.long),this[Q].space={width:this.medium.short,height:this.medium.long},this.medium.orientation==="landscape"){let n=s.width;s.width=s.height,s.height=n,this[Q].space={width:this.medium.long,height:this.medium.short}}}else F("XFA - No medium specified in pageArea: please file a bug.");return this[ti]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[ti]({filter:new Set(["contentArea"]),include:!0}),Ut.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[ge],style:s,xfaName:this.name}})}},tf=class e extends st{constructor(t){super(xt,"pageSet",!0),this.duplexImposition=ut(t.duplexImposition,["longEdge","shortEdge"]),this.id=t.id||"",this.name=t.name||"",this.relation=ut(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=Tn(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.occur=null,this.pageArea=new O,this.pageSet=new O}[Sr](){for(let t of this.pageArea.children)t[Sr]();for(let t of this.pageSet.children)t[Sr]()}[Gl](){return!this.occur||this.occur.max===-1||this[Q].numberOfUse<this.occur.max}[na](){if(this[Q]||(this[Q]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),this.relation==="orderedOccurrence"){if(this[Q].pageIndex+1<this.pageArea.children.length)return this[Q].pageIndex+=1,this.pageArea.children[this[Q].pageIndex][na]();if(this[Q].pageSetIndex+1<this.pageSet.children.length)return this[Q].pageSetIndex+=1,this.pageSet.children[this[Q].pageSetIndex][na]();if(this[Gl]())return this[Q].numberOfUse+=1,this[Q].pageIndex=-1,this[Q].pageSetIndex=-1,this[na]();let i=this[Qt]();return i instanceof e?i[na]():(this[Sr](),this[na]())}let t=this[_e]()[Q].pageNumber,s=t%2==0?"even":"odd",n=t===0?"first":"rest",a=this.pageArea.children.find(i=>i.oddOrEven===s&&i.pagePosition===n);return a||(a=this.pageArea.children.find(i=>i.oddOrEven==="any"&&i.pagePosition===n),a)?a:(a=this.pageArea.children.find(i=>i.oddOrEven==="any"&&i.pagePosition==="any"),a||this.pageArea.children[0])}},Qd=class extends st{constructor(t){super(xt,"para",!0),this.hAlign=ut(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.lineHeight=t.lineHeight?Ot(t.lineHeight,"0pt"):"",this.marginLeft=t.marginLeft?Ot(t.marginLeft,"0pt"):"",this.marginRight=t.marginRight?Ot(t.marginRight,"0pt"):"",this.orphans=Yt({data:t.orphans,defaultValue:0,validate:s=>s>=0}),this.preserve=t.preserve||"",this.radixOffset=t.radixOffset?Ot(t.radixOffset,"0pt"):"",this.spaceAbove=t.spaceAbove?Ot(t.spaceAbove,"0pt"):"",this.spaceBelow=t.spaceBelow?Ot(t.spaceBelow,"0pt"):"",this.tabDefault=t.tabDefault?Ot(this.tabDefault):"",this.tabStops=(t.tabStops||"").trim().split(/\\s+/).map((s,n)=>n%2==1?Ot(s):s),this.textIndent=t.textIndent?Ot(t.textIndent,"0pt"):"",this.use=t.use||"",this.usehref=t.usehref||"",this.vAlign=ut(t.vAlign,["top","bottom","middle"]),this.widows=Yt({data:t.widows,defaultValue:0,validate:s=>s>=0}),this.hyphenation=null}[oe](){let t=Ts(this,"hAlign");return this.marginLeft!==""&&(t.paddingLeft=Xt(this.marginLeft)),this.marginRight!==""&&(t.paddingRight=Xt(this.marginRight)),this.spaceAbove!==""&&(t.paddingTop=Xt(this.spaceAbove)),this.spaceBelow!==""&&(t.paddingBottom=Xt(this.spaceBelow)),this.textIndent!==""&&(t.textIndent=Xt(this.textIndent),i7(t)),this.lineHeight>0&&(t.lineHeight=Xt(this.lineHeight)),this.tabDefault!==""&&(t.tabSize=Xt(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(t,this.hyphenatation[oe]()),t}},Zd=class extends st{constructor(t){super(xt,"passwordEdit",!0),this.hScrollPolicy=ut(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.passwordChar=t.passwordChar||"*",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}},tg=class extends st{constructor(t){super(xt,"pattern",!0),this.id=t.id||"",this.type=ut(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oe](t){t=t?t[oe]():"#FFFFFF";let s=this.color?this.color[oe]():"#000000",n="repeating-linear-gradient",a=`${t},${t} 5px,${s} 5px,${s} 10px`;switch(this.type){case"crossHatch":return`${n}(to top,${a}) ${n}(to right,${a})`;case"crossDiagonal":return`${n}(45deg,${a}) ${n}(-45deg,${a})`;case"diagonalLeft":return`${n}(45deg,${a})`;case"diagonalRight":return`${n}(-45deg,${a})`;case"horizontal":return`${n}(to top,${a})`;case"vertical":return`${n}(to right,${a})`}return""}},eg=class extends te{constructor(t){super(xt,"picture"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},sg=class extends st{constructor(t){super(xt,"proto",!0),this.appearanceFilter=new O,this.arc=new O,this.area=new O,this.assist=new O,this.barcode=new O,this.bindItems=new O,this.bookend=new O,this.boolean=new O,this.border=new O,this.break=new O,this.breakAfter=new O,this.breakBefore=new O,this.button=new O,this.calculate=new O,this.caption=new O,this.certificate=new O,this.certificates=new O,this.checkButton=new O,this.choiceList=new O,this.color=new O,this.comb=new O,this.connect=new O,this.contentArea=new O,this.corner=new O,this.date=new O,this.dateTime=new O,this.dateTimeEdit=new O,this.decimal=new O,this.defaultUi=new O,this.desc=new O,this.digestMethod=new O,this.digestMethods=new O,this.draw=new O,this.edge=new O,this.encoding=new O,this.encodings=new O,this.encrypt=new O,this.encryptData=new O,this.encryption=new O,this.encryptionMethod=new O,this.encryptionMethods=new O,this.event=new O,this.exData=new O,this.exObject=new O,this.exclGroup=new O,this.execute=new O,this.extras=new O,this.field=new O,this.fill=new O,this.filter=new O,this.float=new O,this.font=new O,this.format=new O,this.handler=new O,this.hyphenation=new O,this.image=new O,this.imageEdit=new O,this.integer=new O,this.issuers=new O,this.items=new O,this.keep=new O,this.keyUsage=new O,this.line=new O,this.linear=new O,this.lockDocument=new O,this.manifest=new O,this.margin=new O,this.mdp=new O,this.medium=new O,this.message=new O,this.numericEdit=new O,this.occur=new O,this.oid=new O,this.oids=new O,this.overflow=new O,this.pageArea=new O,this.pageSet=new O,this.para=new O,this.passwordEdit=new O,this.pattern=new O,this.picture=new O,this.radial=new O,this.reason=new O,this.reasons=new O,this.rectangle=new O,this.ref=new O,this.script=new O,this.setProperty=new O,this.signData=new O,this.signature=new O,this.signing=new O,this.solid=new O,this.speak=new O,this.stipple=new O,this.subform=new O,this.subformSet=new O,this.subjectDN=new O,this.subjectDNs=new O,this.submit=new O,this.text=new O,this.textEdit=new O,this.time=new O,this.timeStamp=new O,this.toolTip=new O,this.traversal=new O,this.traverse=new O,this.ui=new O,this.validate=new O,this.value=new O,this.variables=new O}},ng=class extends st{constructor(t){super(xt,"radial",!0),this.id=t.id||"",this.type=ut(t.type,["toEdge","toCenter"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oe](t){t=t?t[oe]():"#FFFFFF";let s=this.color?this.color[oe]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${t},${s}`:`${s},${t}`})`}},ag=class extends te{constructor(t){super(xt,"reason"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},ig=class extends st{constructor(t){super(xt,"reasons",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.reason=new O}},Dh=class extends st{constructor(t){super(xt,"rectangle",!0),this.hand=ut(t.hand,["even","left","right"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new O(4),this.edge=new O(4),this.fill=null}[Vt](){let t=this.edge.children.length?this.edge.children[0]:new Yi({}),s=t[oe](),n=Object.create(null);this.fill?.presence==="visible"?Object.assign(n,this.fill[oe]()):n.fill="transparent",n.strokeWidth=Xt(t.presence==="visible"?t.thickness:0),n.stroke=s.color;let a=(this.corner.children.length?this.corner.children[0]:new Th({}))[oe](),i={name:"svg",children:[{name:"rect",attributes:{xmlns:Fi,width:"100%",height:"100%",x:0,y:0,rx:a.radius,ry:a.radius,style:n}}],attributes:{xmlns:Fi,style:{overflow:"visible"},width:"100%",height:"100%"}};return W5(this[Qt]()[Qt]())?Ut.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[i]}):(i.attributes.style.position="absolute",Ut.success(i))}},rg=class extends te{constructor(t){super(xt,"ref"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}},og=class extends te{constructor(t){super(xt,"script"),this.binding=t.binding||"",this.contentType=t.contentType||"",this.id=t.id||"",this.name=t.name||"",this.runAt=ut(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}},ef=class extends st{constructor(t){super(xt,"setProperty"),this.connection=t.connection||"",this.ref=t.ref||"",this.target=t.target||""}},lg=class extends st{constructor(t){super(xt,"signData",!0),this.id=t.id||"",this.operation=ut(t.operation,["sign","clear","verify"]),this.ref=t.ref||"",this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}},fg=class extends st{constructor(t){super(xt,"signature",!0),this.id=t.id||"",this.type=ut(t.type,["PDF1.3","PDF1.6"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}},cg=class extends st{constructor(t){super(xt,"signing",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new O}},hg=class extends st{constructor(t){super(xt,"solid",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[oe](t){return t?t[oe]():"#FFFFFF"}},ug=class extends te{constructor(t){super(xt,"speak"),this.disable=Yt({data:t.disable,defaultValue:0,validate:s=>s===1}),this.id=t.id||"",this.priority=ut(t.priority,["custom","caption","name","toolTip"]),this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}},mg=class extends st{constructor(t){super(xt,"stipple",!0),this.id=t.id||"",this.rate=Yt({data:t.rate,defaultValue:50,validate:s=>s>=0&&s<=100}),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[oe](t){let s=this.rate/100;return ee.makeHexColor(Math.round(t.value.r*(1-s)+this.value.r*s),Math.round(t.value.g*(1-s)+this.value.g*s),Math.round(t.value.b*(1-s)+this.value.b*s))}},Oh=class extends st{constructor(t){super(xt,"subform",!0),this.access=ut(t.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=Yt({data:t.allowMacro,defaultValue:0,validate:s=>s===1}),this.anchorType=ut(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Yt({data:t.colSpan,defaultValue:1,validate:s=>s>=1||s===-1}),this.columnWidths=(t.columnWidths||"").trim().split(/\\s+/).map(s=>s==="-1"?-1:Ot(s)),this.h=t.h?Ot(t.h):"",this.hAlign=ut(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=ut(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=t.locale||"",this.maxH=Ot(t.maxH,"0pt"),this.maxW=Ot(t.maxW,"0pt"),this.mergeMode=ut(t.mergeMode,["consumeData","matchTemplate"]),this.minH=Ot(t.minH,"0pt"),this.minW=Ot(t.minW,"0pt"),this.name=t.name||"",this.presence=ut(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Tn(t.relevant),this.restoreState=ut(t.restoreState,["manual","auto"]),this.scope=ut(t.scope,["name","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?Ot(t.w):"",this.x=Ot(t.x,"0pt"),this.y=Ot(t.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new O,this.breakAfter=new O,this.breakBefore=new O,this.connect=new O,this.draw=new O,this.event=new O,this.exObject=new O,this.exclGroup=new O,this.field=new O,this.proto=new O,this.setProperty=new O,this.subform=new O,this.subformSet=new O}[Le](){let t=this[Qt]();return t instanceof sf?t[Le]():t}[tr](){return!0}[ka](){return this.layout.endsWith("-tb")&&this[Q].attempt===0&&this[Q].numberInLine>0||this[Qt]()[ka]()}*[jo](){yield*$5(this)}[Hc](){return h7(this)}[Oi](t,s){u7(this,t,s)}[Ni](){return m7(this)}[pa](){let t=this[Le]();return t[pa]()?this[Q]._isSplittable!==void 0?this[Q]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[Q]._isSplittable=!1,!1):this.keep&&this.keep.intact!=="none"?(this[Q]._isSplittable=!1,!1):t.layout?.endsWith("-tb")&&t[Q].numberInLine!==0?!1:(this[Q]._isSplittable=!0,!0):!1}[Vt](t){if(Uu(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){let q=new Ih({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});q[je]=this[je],this[ze](q),this.breakAfter.push(q)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){let q=new Ch({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});q[je]=this[je],this[ze](q),this.breakBefore.push(q)}if(this.break.overflowTarget!==""){let q=new zh({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});q[je]=this[je],this[ze](q),this.overflow.push(q)}this[$a](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return Ut.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&F("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){let q=this.breakBefore.children[0];if(W6(q))return Ut.breakNode(q)}if(this[Q]?.afterBreakAfter)return Ut.EMPTY;_u(this);let s=[],n={id:this[ge],class:[]};K5(this,n.class),this[Q]||(this[Q]=Object.create(null)),Object.assign(this[Q],{children:s,line:null,attributes:n,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});let a=this[_e](),i=a[Q].noLayoutFailure,o=this[pa]();if(o||Eu(this),!Pu(this,t))return Ut.FAILURE;let r=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){let q=this[Le]().columnWidths;Array.isArray(q)&&q.length>0&&(this[Q].columnWidths=q,this[Q].currentColumn=0)}let l=Ts(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),f=["xfaSubform"],c=a7(this);if(c&&f.push(c),n.style=l,n.class=f,this.name&&(n.xfaName=this.name),this.overflow){let q=this.overflow[cs]();q.addLeader&&(q.addLeader=!1,V6(this,q.leader,t))}this[vo]();let h=this.layout==="lr-tb"||this.layout==="rl-tb",m=h?2:1;for(;this[Q].attempt<m;this[Q].attempt++){h&&this[Q].attempt===1&&(this[Q].numberInLine=0);let q=this[ti]({filter:r,include:!0});if(q.success)break;if(q.isBreak())return this[Os](),q;if(h&&this[Q].attempt===0&&this[Q].numberInLine===0&&!a[Q].noLayoutFailure){this[Q].attempt=m;break}}if(this[Os](),o||Ku(this),a[Q].noLayoutFailure=i,this[Q].attempt===m)return this.overflow&&(this[_e]()[Q].overflowNode=this.overflow),o||delete this[Q],Ut.FAILURE;if(this.overflow){let q=this.overflow[cs]();q.addTrailer&&(q.addTrailer=!1,V6(this,q.trailer,t))}let u=0,d=0;this.margin&&(u=this.margin.leftInset+this.margin.rightInset,d=this.margin.topInset+this.margin.bottomInset);let p=Math.max(this[Q].width+u,this.w||0),g=Math.max(this[Q].height+d,this.h||0),b=[this.x,this.y,p,g];if(this.w===""&&(l.width=Xt(p)),this.h===""&&(l.height=Xt(g)),(l.width==="0px"||l.height==="0px")&&s.length===0)return Ut.EMPTY;let w={name:"div",attributes:n,children:s};Lu(this,n);let k=Ut.success(_i(this,w),b);if(this.breakAfter.children.length>=1){let q=this.breakAfter.children[0];if(W6(q))return this[Q].afterBreakAfter=k,Ut.breakNode(q)}return delete this[Q],k}},sf=class extends st{constructor(t){super(xt,"subformSet",!0),this.id=t.id||"",this.name=t.name||"",this.relation=ut(t.relation,["ordered","choice","unordered"]),this.relevant=Tn(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new O,this.breakBefore=new O,this.subform=new O,this.subformSet=new O}*[jo](){yield*$5(this)}[Le](){let t=this[Qt]();for(;!(t instanceof Oh);)t=t[Qt]();return t}[tr](){return!0}},pg=class extends Te{constructor(t){super(xt,"subjectDN"),this.delimiter=t.delimiter||",",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[qe](){this[ft]=new Map(this[ft].split(this.delimiter).map(t=>((t=t.split("=",2))[0]=t[0].trim(),t)))}},dg=class extends st{constructor(t){super(xt,"subjectDNs",!0),this.id=t.id||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.subjectDN=new O}},gg=class extends st{constructor(t){super(xt,"submit",!0),this.embedPDF=Yt({data:t.embedPDF,defaultValue:0,validate:s=>s===1}),this.format=ut(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=t.id||"",this.target=t.target||"",this.textEncoding=Nu({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:s=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(s)||s.match(/iso-8859-\\d{2}/)}),this.use=t.use||"",this.usehref=t.usehref||"",this.xdpContent=t.xdpContent||"",this.encrypt=null,this.encryptData=new O,this.signData=new O}},nf=class extends st{constructor(t){super(xt,"template",!0),this.baseProfile=ut(t.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new O}[qe](){this.subform.children.length===0&&F("XFA - No subforms in template node."),this.subform.children.length>=2&&F("XFA - Several subforms in template node: please file a bug."),this[vn]=5e3}[pa](){return!0}[ca](t,s){return t.startsWith("#")?[this[jr].get(t.slice(1))]:Ha(this,s,t,!0,!0)}*[Q8](){if(!this.subform.children.length)return Ut.success({name:"div",children:[]});this[Q]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};let t=this.subform.children[0];t.pageSet[Sr]();let s=t.pageSet.pageArea.children,n={name:"div",children:[]},a=null,i=null,o=null;if(t.breakBefore.children.length>=1?(i=t.breakBefore.children[0],o=i.target):t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1?(i=t.subform.children[0].breakBefore.children[0],o=i.target):t.break?.beforeTarget?(i=t.break,o=i.beforeTarget):t.subform.children.length>=1&&t.subform.children[0].break?.beforeTarget&&(i=t.subform.children[0].break,o=i.beforeTarget),i){let d=this[ca](o,i[Qt]());d instanceof ei&&(a=d,i[Q]={})}a||(a=s[0]),a[Q]={numberOfUse:1};let r=a[Qt]();r[Q]={numberOfUse:1,pageIndex:r.pageArea.children.indexOf(a),pageSetIndex:0};let l,f=null,c=null,h=!0,m=0,u=0;for(;;){if(h)m=0;else if(n.children.pop(),++m===3)return F("XFA - Something goes wrong: please file a bug."),n;l=null,this[Q].currentPageArea=a;let d=a[Vt]().html;n.children.push(d),f&&(this[Q].noLayoutFailure=!0,d.children.push(f[Vt](a[Q].space).html),f=null),c&&(this[Q].noLayoutFailure=!0,d.children.push(c[Vt](a[Q].space).html),c=null);let p=a.contentArea.children,g=d.children.filter(w=>w.attributes.class.includes("xfaContentarea"));h=!1,this[Q].firstUnsplittable=null,this[Q].noLayoutFailure=!1;let b=w=>{let k=t[Hc]();k&&(h||(h=k.children?.length>0),g[w].children.push(k))};for(let w=u,k=p.length;w<k;w++){let q=this[Q].currentContentArea=p[w],y={width:q.w,height:q.h};u=0,f&&(g[w].children.push(f[Vt](y).html),f=null),c&&(g[w].children.push(c[Vt](y).html),c=null);let v=t[Vt](y);if(v.success)return v.html?(h||(h=v.html.children?.length>0),g[w].children.push(v.html)):!h&&n.children.length>1&&n.children.pop(),n;if(v.isBreak()){let A=v.breakNode;if(b(w),A.targetType==="auto")continue;A.leader&&(f=this[ca](A.leader,A[Qt]()),f=f?f[0]:null),A.trailer&&(c=this[ca](A.trailer,A[Qt]()),c=c?c[0]:null),A.targetType==="pageArea"?(l=A[Q].target,w=1/0):A[Q].target?(l=A[Q].target,u=A[Q].index+1,w=1/0):w=A[Q].index;continue}if(this[Q].overflowNode){let A=this[Q].overflowNode;this[Q].overflowNode=null;let x=A[cs](),I=x.target;x.addLeader=x.leader!==null,x.addTrailer=x.trailer!==null,b(w);let B=w;if(w=1/0,I instanceof ei)l=I;else if(I instanceof Jl){let D=p.indexOf(I);D!==-1?D>B?w=D-1:u=D:(l=I[Qt](),u=l.contentArea.children.indexOf(I))}continue}b(w)}this[Q].pageNumber+=1,l&&(l[Gl]()?l[Q].numberOfUse+=1:l=null),a=l||a[na](),yield null}}},Nh=class extends Te{constructor(t){super(xt,"text"),this.id=t.id||"",this.maxChars=Yt({data:t.maxChars,defaultValue:0,validate:s=>s>=0}),this.name=t.name||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}[zu](){return!0}[En](t){return t[Ue]===Xe.xhtml.id?(this[ft]=t,!0):(F(`XFA - Invalid content in Text: ${t[he]}.`),!1)}[da](t){this[ft]instanceof st||super[da](t)}[qe](){typeof this[ft]=="string"&&(this[ft]=this[ft].replaceAll(`\\r\n`,`\n`))}[cs](){return typeof this[ft]=="string"?this[ft].split(/[\\u2029\\u2028\\n]/).filter(Boolean).join(`\n`):this[ft][Ge]()}[Vt](t){if(typeof this[ft]=="string"){let s=ni(this[ft]).html;return this[ft].includes("\\u2029")?(s.name="div",s.children=[],this[ft].split("\\u2029").map(n=>n.split(/[\\u2028\\n]/).flatMap(a=>[{name:"span",value:a},{name:"br"}])).forEach(n=>{s.children.push({name:"p",children:n})})):/[\\u2028\\n]/.test(this[ft])&&(s.name="div",s.children=[],this[ft].split(/[\\u2028\\n]/).forEach(n=>{s.children.push({name:"span",value:n},{name:"br"})})),Ut.success(s)}return this[ft][Vt](t)}},_h=class extends st{constructor(t){super(xt,"textEdit",!0),this.allowRichText=Yt({data:t.allowRichText,defaultValue:0,validate:s=>s===1}),this.hScrollPolicy=ut(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.multiLine=Yt({data:t.multiLine,defaultValue:"",validate:s=>s===0||s===1}),this.use=t.use||"",this.usehref=t.usehref||"",this.vScrollPolicy=ut(t.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[Vt](t){let s=Ts(this,"border","font","margin"),n,a=this[Qt]()[Qt]();return this.multiLine===""&&(this.multiLine=a instanceof Rh?1:0),n=this.multiLine===1?{name:"textarea",attributes:{dataId:a[sn]?.[ge]||a[ge],fieldId:a[ge],class:["xfaTextfield"],style:s,"aria-label":Xi(a),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:a[sn]?.[ge]||a[ge],fieldId:a[ge],class:["xfaTextfield"],style:s,"aria-label":Xi(a),"aria-required":!1}},Bc(a)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),Ut.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}},bg=class extends te{constructor(t){super(xt,"time"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[qe](){let t=this[ft].trim();this[ft]=t?new Date(t):null}[Vt](t){return ni(this[ft]?this[ft].toString():"")}},wg=class extends st{constructor(t){super(xt,"timeStamp"),this.id=t.id||"",this.server=t.server||"",this.type=ut(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}},jg=class extends te{constructor(t){super(xt,"toolTip"),this.id=t.id||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}},kg=class extends st{constructor(t){super(xt,"traversal",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.traverse=new O}},qg=class extends st{constructor(t){super(xt,"traverse",!0),this.id=t.id||"",this.operation=ut(t.operation,["next","back","down","first","left","right","up"]),this.ref=t.ref||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[$l](){return!1}},af=class extends st{constructor(t){super(xt,"ui",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[cs](){if(this[Q]===void 0){for(let t of Object.getOwnPropertyNames(this)){if(t==="extras"||t==="picture")continue;let s=this[t];if(s instanceof st)return this[Q]=s,s}this[Q]=null}return this[Q]}[Vt](t){let s=this[cs]();return s?s[Vt](t):Ut.EMPTY}},yg=class extends st{constructor(t){super(xt,"validate",!0),this.formatTest=ut(t.formatTest,["warning","disabled","error"]),this.id=t.id||"",this.nullTest=ut(t.nullTest,["disabled","error","warning"]),this.scriptTest=ut(t.scriptTest,["error","disabled","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}},rf=class extends st{constructor(t){super(xt,"value",!0),this.id=t.id||"",this.override=Yt({data:t.override,defaultValue:0,validate:s=>s===1}),this.relevant=Tn(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[Ns](t){let s=this[Qt]();if(s instanceof Ql&&s.ui?.imageEdit){this.image||(this.image=new Mh({}),this[ze](this.image)),this.image[ft]=t[ft];return}let n=t[he];if(this[n]===null){for(let a of Object.getOwnPropertyNames(this)){let i=this[a];i instanceof st&&(this[a]=null,this[$a](i))}this[t[he]]=t,this[ze](t)}else this[n][ft]=t[ft]}[Ge](){if(this.exData)return typeof this.exData[ft]=="string"?this.exData[ft].trim():this.exData[ft][Ge]().trim();for(let t of Object.getOwnPropertyNames(this)){if(t==="image")continue;let s=this[t];if(s instanceof st)return(s[ft]||"").toString().trim()}return null}[Vt](t){for(let s of Object.getOwnPropertyNames(this)){let n=this[s];if(n instanceof st)return n[Vt](t)}return Ut.EMPTY}},vg=class extends st{constructor(t){super(xt,"variables",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new O,this.date=new O,this.dateTime=new O,this.decimal=new O,this.exData=new O,this.float=new O,this.image=new O,this.integer=new O,this.manifest=new O,this.script=new O,this.text=new O,this.time=new O}[$l](){return!0}},xg=class e{static[Bn](t,s){if(Object.hasOwn(e,t)){let n=e[t](s);return n[J8](s),n}}static appearanceFilter(t){return new Vp(t)}static arc(t){return new Sh(t)}static area(t){return new $p(t)}static assist(t){return new Gp(t)}static barcode(t){return new Xp(t)}static bind(t){return new Yp(t)}static bindItems(t){return new Yl(t)}static bookend(t){return new Jp(t)}static boolean(t){return new Qp(t)}static border(t){return new Ah(t)}static break(t){return new Zp(t)}static breakAfter(t){return new Ih(t)}static breakBefore(t){return new Ch(t)}static button(t){return new td(t)}static calculate(t){return new ed(t)}static caption(t){return new sd(t)}static certificate(t){return new nd(t)}static certificates(t){return new ad(t)}static checkButton(t){return new Hh(t)}static choiceList(t){return new Bh(t)}static color(t){return new id(t)}static comb(t){return new rd(t)}static connect(t){return new od(t)}static contentArea(t){return new Jl(t)}static corner(t){return new Th(t)}static date(t){return new ld(t)}static dateTime(t){return new fd(t)}static dateTimeEdit(t){return new cd(t)}static decimal(t){return new hd(t)}static defaultUi(t){return new ud(t)}static desc(t){return new md(t)}static digestMethod(t){return new pd(t)}static digestMethods(t){return new dd(t)}static draw(t){return new Rh(t)}static edge(t){return new Yi(t)}static encoding(t){return new gd(t)}static encodings(t){return new bd(t)}static encrypt(t){return new wd(t)}static encryptData(t){return new jd(t)}static encryption(t){return new kd(t)}static encryptionMethod(t){return new qd(t)}static encryptionMethods(t){return new yd(t)}static event(t){return new vd(t)}static exData(t){return new xd(t)}static exObject(t){return new Sd(t)}static exclGroup(t){return new Fh(t)}static execute(t){return new Ad(t)}static extras(t){return new Id(t)}static field(t){return new Ql(t)}static fill(t){return new Cd(t)}static filter(t){return new Hd(t)}static float(t){return new Bd(t)}static font(t){return new Td(t)}static format(t){return new Rd(t)}static handler(t){return new Fd(t)}static hyphenation(t){return new Md(t)}static image(t){return new Mh(t)}static imageEdit(t){return new zd(t)}static integer(t){return new Dd(t)}static issuers(t){return new Od(t)}static items(t){return new Zl(t)}static keep(t){return new Nd(t)}static keyUsage(t){return new _d(t)}static line(t){return new Pd(t)}static linear(t){return new Ud(t)}static lockDocument(t){return new Ld(t)}static manifest(t){return new Ed(t)}static margin(t){return new Kd(t)}static mdp(t){return new Wd(t)}static medium(t){return new Vd(t)}static message(t){return new $d(t)}static numericEdit(t){return new Gd(t)}static occur(t){return new Xd(t)}static oid(t){return new Yd(t)}static oids(t){return new Jd(t)}static overflow(t){return new zh(t)}static pageArea(t){return new ei(t)}static pageSet(t){return new tf(t)}static para(t){return new Qd(t)}static passwordEdit(t){return new Zd(t)}static pattern(t){return new tg(t)}static picture(t){return new eg(t)}static proto(t){return new sg(t)}static radial(t){return new ng(t)}static reason(t){return new ag(t)}static reasons(t){return new ig(t)}static rectangle(t){return new Dh(t)}static ref(t){return new rg(t)}static script(t){return new og(t)}static setProperty(t){return new ef(t)}static signData(t){return new lg(t)}static signature(t){return new fg(t)}static signing(t){return new cg(t)}static solid(t){return new hg(t)}static speak(t){return new ug(t)}static stipple(t){return new mg(t)}static subform(t){return new Oh(t)}static subformSet(t){return new sf(t)}static subjectDN(t){return new pg(t)}static subjectDNs(t){return new dg(t)}static submit(t){return new gg(t)}static template(t){return new nf(t)}static text(t){return new Nh(t)}static textEdit(t){return new _h(t)}static time(t){return new bg(t)}static timeStamp(t){return new wg(t)}static toolTip(t){return new jg(t)}static traversal(t){return new kg(t)}static traverse(t){return new qg(t)}static ui(t){return new af(t)}static validate(t){return new yg(t)}static value(t){return new rf(t)}static variables(t){return new vg(t)}},Xc=Xe.datasets.id;function Yc(e){let t=new Nh({});return t[ft]=e,t}var Sg=class{constructor(t){this.root=t,this.datasets=t.datasets,this.data=t.datasets?.data||new ga(Xc,"data"),this.emptyMerge=this.data[ks]().length===0,this.root.form=this.form=t.template[An]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(t,s,n){if(t[sn]=s,t[Vl]())if(s[Ar]()){let a=s[_5]();t[Ns](Yc(a))}else if(t instanceof Ql&&t.ui?.choiceList?.open==="multiSelect"){let a=s[ks]().map(i=>i[ft].trim()).join(`\n`);t[Ns](Yc(a))}else this._isConsumeData()&&F("XFA - Nodes haven\'t the same type.");else!s[Ar]()||this._isMatchTemplate()?this._bindElement(t,s):F("XFA - Nodes haven\'t the same type.")}_findDataByNameToConsume(t,s,n,a){if(!t)return null;let i,o;for(let r=0;r<3;r++){for(i=n[ml](t,!1,!0);o=i.next().value,!!o;)if(s===o[Ar]())return o;if(n[Ue]===Xc&&n[he]==="data")break;n=n[Qt]()}return a?(i=this.data[ml](t,!0,!1),o=i.next().value,o||(i=this.data[Np](t,!0),o=i.next().value,o?.[Ar]()?o:null)):null}_setProperties(t,s){if(Object.hasOwn(t,"setProperty"))for(let{ref:n,target:a,connection:i}of t.setProperty.children){if(i||!n)continue;let o=Ha(this.root,s,n,!1,!1);if(!o){F(`XFA - Invalid reference: ${n}.`);continue}let[r]=o;if(!r[Ra](this.data)){F("XFA - Invalid node: must be a data node.");continue}let l=Ha(this.root,t,a,!1,!1);if(!l){F(`XFA - Invalid target: ${a}.`);continue}let[f]=l;if(!f[Ra](t)){F("XFA - Invalid target: must be a property or subproperty.");continue}let c=f[Qt]();if(f instanceof ef||c instanceof ef){F("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(f instanceof Yl||c instanceof Yl){F("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}let h=r[Ge](),m=f[he];if(f instanceof Xl){let u=Object.create(null);u[m]=h;let d=Reflect.construct(Object.getPrototypeOf(c).constructor,[u]);c[m]=d[m];continue}Object.hasOwn(f,ft)?(f[sn]=r,f[ft]=h,f[qe]()):F("XFA - Invalid node to use in setProperty")}}_bindItems(t,s){if(!Object.hasOwn(t,"items")||!Object.hasOwn(t,"bindItems")||t.bindItems.isEmpty())return;for(let i of t.items.children)t[$a](i);t.items.clear();let n=new Zl({}),a=new Zl({});t[ze](n),t.items.push(n),t[ze](a),t.items.push(a);for(let{ref:i,labelRef:o,valueRef:r,connection:l}of t.bindItems.children){if(l||!i)continue;let f=Ha(this.root,s,i,!1,!1);if(f)for(let c of f){if(!c[Ra](this.datasets)){F(`XFA - Invalid ref (${i}): must be a datasets child.`);continue}let h=Ha(this.root,c,o,!0,!1);if(!h){F(`XFA - Invalid label: ${o}.`);continue}let[m]=h;if(!m[Ra](this.datasets)){F("XFA - Invalid label: must be a datasets child.");continue}let u=Ha(this.root,c,r,!0,!1);if(!u){F(`XFA - Invalid value: ${r}.`);continue}let[d]=u;if(!d[Ra](this.datasets)){F("XFA - Invalid value: must be a datasets child.");continue}let p=Yc(m[Ge]()),g=Yc(d[Ge]());n[ze](p),n.text.push(p),a[ze](g),a.text.push(g)}else F(`XFA - Invalid reference: ${i}.`)}}_bindOccurrences(t,s,n){let a;if(s.length>1&&(a=t[An](),a[$a](a.occur),a.occur=null),this._bindValue(t,s[0],n),this._setProperties(t,s[0]),this._bindItems(t,s[0]),s.length===1)return;let i=t[Qt](),o=t[he],r=i[_p](t);for(let l=1,f=s.length;l<f;l++){let c=s[l],h=a[An]();i[o].push(h),i[p1](r+l,h),this._bindValue(h,c,n),this._setProperties(h,c),this._bindItems(h,c)}}_createOccurrences(t){if(!this.emptyMerge)return;let{occur:s}=t;if(!s||s.initial<=1)return;let n=t[Qt](),a=t[he];if(!(n[a]instanceof O))return;let i;i=t.name?n[a].children.filter(l=>l.name===t.name).length:n[a].children.length;let o=n[_p](t)+1,r=s.initial-i;if(r){let l=t[An]();l[$a](l.occur),l.occur=null,n[a].push(l),n[p1](o,l);for(let f=1;f<r;f++){let c=l[An]();n[a].push(c),n[p1](o+f,c)}}}_getOccurInfo(t){let{name:s,occur:n}=t;if(!n||!s)return[1,1];let a=n.max===-1?1/0:n.max;return[n.min,a]}_setAndBind(t,s){this._setProperties(t,s),this._bindItems(t,s),this._bindElement(t,s)}_bindElement(t,s){let n=[];this._createOccurrences(t);for(let a of t[ks]()){if(a[sn])continue;if(this._mergeMode===void 0&&a[he]==="subform"){this._mergeMode=a.mergeMode==="consumeData";let h=s[ks]();if(h.length>0)this._bindOccurrences(a,[h[0]],null);else if(this.emptyMerge){let m=s[Ue]===Xc?-1:s[Ue],u=a[sn]=new ga(m,a.name||"root");s[ze](u),this._bindElement(a,u)}continue}if(!a[tr]())continue;let i=!1,o=null,r=null,l=null;if(a.bind){switch(a.bind.match){case"none":this._setAndBind(a,s);continue;case"global":i=!0;break;case"dataRef":if(!a.bind.ref){F(`XFA - ref is empty in node ${a[he]}.`),this._setAndBind(a,s);continue}r=a.bind.ref}a.bind.picture&&(o=a.bind.picture[ft])}let[f,c]=this._getOccurInfo(a);if(r){if(l=Ha(this.root,s,r,!0,!1),l===null){if(l=mv(this.data,s,r),!l)continue;this._isConsumeData()&&(l[Nn]=!0),this._setAndBind(a,l);continue}this._isConsumeData()&&(l=l.filter(h=>!h[Nn])),l.length>c?l=l.slice(0,c):l.length===0&&(l=null),l&&this._isConsumeData()&&l.forEach(h=>{h[Nn]=!0})}else{if(!a.name){this._setAndBind(a,s);continue}if(this._isConsumeData()){let h=[];for(;h.length<c;){let m=this._findDataByNameToConsume(a.name,a[Vl](),s,i);if(!m)break;m[Nn]=!0,h.push(m)}l=h.length>0?h:null}else{if(l=s[ml](a.name,!1,this.emptyMerge).next().value,!l){if(f===0){n.push(a);continue}let h=s[Ue]===Xc?-1:s[Ue];l=a[sn]=new ga(h,a.name),this.emptyMerge&&(l[Nn]=!0),s[ze](l),this._setAndBind(a,l);continue}this.emptyMerge&&(l[Nn]=!0),l=[l]}}l?this._bindOccurrences(a,l,o):f>0?this._setAndBind(a,s):n.push(a)}n.forEach(a=>a[Qt]()[$a](a))}},Ag=class{constructor(t,s){this.data=s,this.dataset=t.datasets||null}serialize(t){let s=[[-1,this.data[ks]()]];for(;s.length>0;){let a=s.at(-1),[i,o]=a;if(i+1===o.length){s.pop();continue}let r=o[++a[0]],l=t.get(r[ge]);if(l)r[Ns](l);else{let c=r[X8]();for(let h of c.values()){let m=t.get(h[ge]);if(m){h[Ns](m);break}}}let f=r[ks]();f.length>0&&s.push([-1,f])}let n=[\'<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">\'];if(this.dataset)for(let a of this.dataset[ks]())a[he]!=="data"&&a[dl](n);return this.data[dl](n),n.push("</xfa:datasets>"),n.join("")}},gt=Xe.config.id,Ig=class extends st{constructor(t){super(gt,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new O}},Cg=class extends st{constructor(t){super(gt,"acrobat7",!0),this.dynamicRender=null}},Hg=class extends ue{constructor(t){super(gt,"ADBE_JSConsole",["delegate","Enable","Disable"])}},Bg=class extends ue{constructor(t){super(gt,"ADBE_JSDebugger",["delegate","Enable","Disable"])}},Tg=class extends Ee{constructor(t){super(gt,"addSilentPrint")}},Rg=class extends Ee{constructor(t){super(gt,"addViewerPreferences")}},Fg=class extends xh{constructor(t){super(gt,"adjustData")}},Mg=class extends Xs{constructor(t){super(gt,"adobeExtensionLevel",0,s=>s>=1&&s<=8)}},zg=class extends st{constructor(t){super(gt,"agent",!0),this.name=t.name?t.name.trim():"",this.common=new O}},Dg=class extends Te{constructor(t){super(gt,"alwaysEmbed")}},Og=class extends te{constructor(t){super(gt,"amd")}},Ng=class extends st{constructor(t){super(gt,"area"),this.level=Yt({data:t.level,defaultValue:0,validate:s=>s>=1&&s<=3}),this.name=ut(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}},_g=class extends ue{constructor(t){super(gt,"attributes",["preserve","delegate","ignore"])}},Pg=class extends ue{constructor(t){super(gt,"autoSave",["disabled","enabled"])}},Ug=class extends te{constructor(t){super(gt,"base")}},Lg=class extends st{constructor(t){super(gt,"batchOutput"),this.format=ut(t.format,["none","concat","zip","zipCompress"])}},Eg=class extends Te{constructor(t){super(gt,"behaviorOverride")}[qe](){this[ft]=new Map(this[ft].trim().split(/\\s+/).filter(t=>t.includes(":")).map(t=>t.split(":",2)))}},Kg=class extends st{constructor(t){super(gt,"cache",!0),this.templateCache=null}},Wg=class extends Ee{constructor(t){super(gt,"change")}},Vg=class extends st{constructor(t){super(gt,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new O}},$g=class extends st{constructor(t){super(gt,"compress"),this.scope=ut(t.scope,["imageOnly","document"])}},Gg=class extends Ee{constructor(t){super(gt,"compressLogicalStructure")}},Xg=class extends xh{constructor(t){super(gt,"compressObjectStream")}},Yg=class extends st{constructor(t){super(gt,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}},Jg=class extends st{constructor(t){super(gt,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new O}},Qg=class extends ue{constructor(t){super(gt,"conformance",["A","B"])}},Zg=class extends Ee{constructor(t){super(gt,"contentCopy")}},t2=class extends Xs{constructor(t){super(gt,"copies",1,s=>s>=1)}},e2=class extends te{constructor(t){super(gt,"creator")}},s2=class extends Xs{constructor(t){super(gt,"currentPage",0,s=>s>=0)}},n2=class extends st{constructor(t){super(gt,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new O,this.transform=new O}},a2=class extends st{constructor(t){super(gt,"debug",!0),this.uri=null}},i2=class extends Te{constructor(t){super(gt,"defaultTypeface"),this.writingScript=ut(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}},r2=class extends ue{constructor(t){super(gt,"destination",["pdf","pcl","ps","webClient","zpl"])}},o2=class extends Ee{constructor(t){super(gt,"documentAssembly")}},l2=class extends st{constructor(t){super(gt,"driver",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}},f2=class extends ue{constructor(t){super(gt,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}},c2=class extends ue{constructor(t){super(gt,"dynamicRender",["forbidden","required"])}},h2=class extends Ee{constructor(t){super(gt,"embed")}},u2=class extends Ee{constructor(t){super(gt,"encrypt")}},m2=class extends st{constructor(t){super(gt,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}},p2=class extends ue{constructor(t){super(gt,"encryptionLevel",["40bit","128bit"])}},d2=class extends te{constructor(t){super(gt,"enforce")}},g2=class extends st{constructor(t){super(gt,"equate"),this.force=Yt({data:t.force,defaultValue:1,validate:s=>s===0}),this.from=t.from||"",this.to=t.to||""}},b2=class extends st{constructor(t){super(gt,"equateRange"),this.from=t.from||"",this.to=t.to||"",this._unicodeRange=t.unicodeRange||""}get unicodeRange(){let t=[],s=/U\\+([0-9a-fA-F]+)/,n=this._unicodeRange;for(let a of n.split(",").map(i=>i.trim()).filter(Boolean))a=a.split("-",2).map(i=>{let o=i.match(s);return o?parseInt(o[1],16):0}),a.length===1&&a.push(a[0]),t.push(a);return yt(this,"unicodeRange",t)}},w2=class extends Te{constructor(t){super(gt,"exclude")}[qe](){this[ft]=this[ft].trim().split(/\\s+/).filter(t=>t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t))}},j2=class extends te{constructor(t){super(gt,"excludeNS")}},k2=class extends ue{constructor(t){super(gt,"flipLabel",["usePrinterSetting","on","off"])}},q2=class extends st{constructor(t){super(gt,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new O,this.defaultTypeface=new O,this.neverEmbed=new O}},y2=class extends Ee{constructor(t){super(gt,"formFieldFilling")}},v2=class extends te{constructor(t){super(gt,"groupParent")}},x2=class extends ue{constructor(t){super(gt,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}},S2=class extends te{constructor(t){super(gt,"includeXDPContent")}},A2=class extends ue{constructor(t){super(gt,"incrementalLoad",["none","forwardOnly"])}},I2=class extends Ee{constructor(t){super(gt,"incrementalMerge")}},C2=class extends Ee{constructor(t){super(gt,"interactive")}},H2=class extends ue{constructor(t){super(gt,"jog",["usePrinterSetting","none","pageSet"])}},B2=class extends st{constructor(t){super(gt,"labelPrinter",!0),this.name=ut(t.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}},T2=class extends ue{constructor(t){super(gt,"layout",["paginate","panel"])}},R2=class extends Xs{constructor(t){super(gt,"level",0,s=>s>0)}},F2=class extends Ee{constructor(t){super(gt,"linearized")}},M2=class extends te{constructor(t){super(gt,"locale")}},z2=class extends te{constructor(t){super(gt,"localeSet")}},D2=class extends st{constructor(t){super(gt,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}},O2=class extends st{constructor(t){super(gt,"map",!0),this.equate=new O,this.equateRange=new O}},N2=class extends st{constructor(t){super(gt,"mediumInfo",!0),this.map=null}},_2=class extends st{constructor(t){super(gt,"message",!0),this.msgId=null,this.severity=null}},P2=class extends st{constructor(t){super(gt,"messaging",!0),this.message=new O}},U2=class extends ue{constructor(t){super(gt,"mode",["append","overwrite"])}},L2=class extends Ee{constructor(t){super(gt,"modifyAnnots")}},E2=class extends Xs{constructor(t){super(gt,"msgId",1,s=>s>=1)}},K2=class extends te{constructor(t){super(gt,"nameAttr")}},W2=class extends Te{constructor(t){super(gt,"neverEmbed")}},V2=class extends Xs{constructor(t){super(gt,"numberOfCopies",null,s=>s>=2&&s<=5)}},$2=class extends st{constructor(t){super(gt,"openAction",!0),this.destination=null}},G2=class extends st{constructor(t){super(gt,"output",!0),this.to=null,this.type=null,this.uri=null}},X2=class extends te{constructor(t){super(gt,"outputBin")}},Y2=class extends st{constructor(t){super(gt,"outputXSL",!0),this.uri=null}},J2=class extends ue{constructor(t){super(gt,"overprint",["none","both","draw","field"])}},Q2=class extends te{constructor(t){super(gt,"packets")}[qe](){this[ft]!=="*"&&(this[ft]=this[ft].trim().split(/\\s+/).filter(t=>["config","datasets","template","xfdf","xslt"].includes(t)))}},Z2=class extends st{constructor(t){super(gt,"pageOffset"),this.x=Yt({data:t.x,defaultValue:"useXDCSetting",validate:s=>!0}),this.y=Yt({data:t.y,defaultValue:"useXDCSetting",validate:s=>!0})}},tb=class extends te{constructor(t){super(gt,"pageRange")}[qe](){let t=this[ft].trim().split(/\\s+/).map(n=>parseInt(n,10)),s=[];for(let n=0,a=t.length;n<a;n+=2)s.push(t.slice(n,n+2));this[ft]=s}},eb=class extends ue{constructor(t){super(gt,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}},sb=class extends ue{constructor(t){super(gt,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}},nb=class extends Xs{constructor(t){super(gt,"part",1,s=>!1)}},ab=class extends st{constructor(t){super(gt,"pcl",!0),this.name=t.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}},ib=class extends st{constructor(t){super(gt,"pdf",!0),this.name=t.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}},rb=class extends st{constructor(t){super(gt,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}},ob=class extends st{constructor(t){super(gt,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}},lb=class extends Ee{constructor(t){super(gt,"pickTrayByPDFSize")}},fb=class extends te{constructor(t){super(gt,"picture")}},cb=class extends Ee{constructor(t){super(gt,"plaintextMetadata")}},hb=class extends ue{constructor(t){super(gt,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}},ub=class extends st{constructor(t){super(gt,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new O,this.labelPrinter=new O,this.pcl=new O,this.pdf=new O,this.ps=new O,this.submitUrl=new O,this.webClient=new O,this.zpl=new O}},mb=class extends Ee{constructor(t){super(gt,"print")}},pb=class extends Ee{constructor(t){super(gt,"printHighQuality")}},db=class extends ue{constructor(t){super(gt,"printScaling",["appdefault","noScaling"])}},gb=class extends te{constructor(t){super(gt,"printerName")}},bb=class extends te{constructor(t){super(gt,"producer")}},wb=class extends st{constructor(t){super(gt,"ps",!0),this.name=t.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}},jb=class extends Te{constructor(t){super(gt,"range")}[qe](){this[ft]=this[ft].split(",",2).map(t=>t.split("-").map(s=>parseInt(s.trim(),10))).filter(t=>t.every(s=>!isNaN(s))).map(t=>(t.length===1&&t.push(t[0]),t))}},kb=class extends Te{constructor(t){super(gt,"record")}[qe](){this[ft]=this[ft].trim();let t=parseInt(this[ft],10);!isNaN(t)&&t>=0&&(this[ft]=t)}},qb=class extends Te{constructor(t){super(gt,"relevant")}[qe](){this[ft]=this[ft].trim().split(/\\s+/)}},yb=class extends Te{constructor(t){super(gt,"rename")}[qe](){this[ft]=this[ft].trim(),(this[ft].toLowerCase().startsWith("xml")||/[\\p{L}_][\\p{L}\\d._\\p{M}-]*/u.test(this[ft]))&&F("XFA - Rename: invalid XFA name")}},vb=class extends ue{constructor(t){super(gt,"renderPolicy",["server","client"])}},xb=class extends ue{constructor(t){super(gt,"runScripts",["both","client","none","server"])}},Sb=class extends st{constructor(t){super(gt,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}},Ab=class extends ue{constructor(t){super(gt,"scriptModel",["XFA","none"])}},Ib=class extends ue{constructor(t){super(gt,"severity",["ignore","error","information","trace","warning"])}},Cb=class extends st{constructor(t){super(gt,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}},Hb=class extends st{constructor(t){super(gt,"staple"),this.mode=ut(t.mode,["usePrinterSetting","on","off"])}},Bb=class extends te{constructor(t){super(gt,"startNode")}},Tb=class extends Xs{constructor(t){super(gt,"startPage",0,s=>!0)}},Rb=class extends ue{constructor(t){super(gt,"submitFormat",["html","delegate","fdf","xml","pdf"])}},Fb=class extends te{constructor(t){super(gt,"submitUrl")}},Mb=class extends Xs{constructor(t){super(gt,"subsetBelow",100,s=>s>=0&&s<=100)}},zb=class extends Ee{constructor(t){super(gt,"suppressBanner")}},Db=class extends Ee{constructor(t){super(gt,"tagged")}},Ob=class extends st{constructor(t){super(gt,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}},Nb=class extends ue{constructor(t){super(gt,"threshold",["trace","error","information","warning"])}},_b=class extends ue{constructor(t){super(gt,"to",["null","memory","stderr","stdout","system","uri"])}},Pb=class extends st{constructor(t){super(gt,"templateCache"),this.maxEntries=Yt({data:t.maxEntries,defaultValue:5,validate:s=>s>=0})}},Ub=class extends st{constructor(t){super(gt,"trace",!0),this.area=new O}},Lb=class extends st{constructor(t){super(gt,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}},Eb=class extends ue{constructor(t){super(gt,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}},Kb=class extends te{constructor(t){super(gt,"uri")}},Wb=class extends ue{constructor(t){super(gt,"validate",["preSubmit","prePrint","preExecute","preSave"])}},Vb=class extends Te{constructor(t){super(gt,"validateApprovalSignatures")}[qe](){this[ft]=this[ft].trim().split(/\\s+/).filter(t=>["docReady","postSign"].includes(t))}},$b=class extends ue{constructor(t){super(gt,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}},Gb=class extends ue{constructor(t){super(gt,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}},Xb=class extends st{constructor(t){super(gt,"VersionControl"),this.outputBelow=ut(t.outputBelow,["warn","error","update"]),this.sourceAbove=ut(t.sourceAbove,["warn","error"]),this.sourceBelow=ut(t.sourceBelow,["update","maintain"])}},Yb=class extends st{constructor(t){super(gt,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}},Jb=class extends st{constructor(t){super(gt,"webClient",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}},Qb=class extends ue{constructor(t){super(gt,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}},Zb=class extends Te{constructor(t){super(gt,"window")}[qe](){let t=this[ft].split(",",2).map(s=>parseInt(s.trim(),10));t.some(s=>isNaN(s))?this[ft]=[0,0]:(t.length===1&&t.push(t[0]),this[ft]=t)}},t9=class extends st{constructor(t){super(gt,"xdc",!0),this.uri=new O,this.xsl=new O}},e9=class extends st{constructor(t){super(gt,"xdp",!0),this.packets=null}},s9=class extends st{constructor(t){super(gt,"xsl",!0),this.debug=null,this.uri=null}},n9=class extends st{constructor(t){super(gt,"zpl",!0),this.name=t.name?t.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}},a9=class e{static[Bn](t,s){if(Object.hasOwn(e,t))return e[t](s)}static acrobat(t){return new Ig(t)}static acrobat7(t){return new Cg(t)}static ADBE_JSConsole(t){return new Hg(t)}static ADBE_JSDebugger(t){return new Bg(t)}static addSilentPrint(t){return new Tg(t)}static addViewerPreferences(t){return new Rg(t)}static adjustData(t){return new Fg(t)}static adobeExtensionLevel(t){return new Mg(t)}static agent(t){return new zg(t)}static alwaysEmbed(t){return new Dg(t)}static amd(t){return new Og(t)}static area(t){return new Ng(t)}static attributes(t){return new _g(t)}static autoSave(t){return new Pg(t)}static base(t){return new Ug(t)}static batchOutput(t){return new Lg(t)}static behaviorOverride(t){return new Eg(t)}static cache(t){return new Kg(t)}static change(t){return new Wg(t)}static common(t){return new Vg(t)}static compress(t){return new $g(t)}static compressLogicalStructure(t){return new Gg(t)}static compressObjectStream(t){return new Xg(t)}static compression(t){return new Yg(t)}static config(t){return new Jg(t)}static conformance(t){return new Qg(t)}static contentCopy(t){return new Zg(t)}static copies(t){return new t2(t)}static creator(t){return new e2(t)}static currentPage(t){return new s2(t)}static data(t){return new n2(t)}static debug(t){return new a2(t)}static defaultTypeface(t){return new i2(t)}static destination(t){return new r2(t)}static documentAssembly(t){return new o2(t)}static driver(t){return new l2(t)}static duplexOption(t){return new f2(t)}static dynamicRender(t){return new c2(t)}static embed(t){return new h2(t)}static encrypt(t){return new u2(t)}static encryption(t){return new m2(t)}static encryptionLevel(t){return new p2(t)}static enforce(t){return new d2(t)}static equate(t){return new g2(t)}static equateRange(t){return new b2(t)}static exclude(t){return new w2(t)}static excludeNS(t){return new j2(t)}static flipLabel(t){return new k2(t)}static fontInfo(t){return new q2(t)}static formFieldFilling(t){return new y2(t)}static groupParent(t){return new v2(t)}static ifEmpty(t){return new x2(t)}static includeXDPContent(t){return new S2(t)}static incrementalLoad(t){return new A2(t)}static incrementalMerge(t){return new I2(t)}static interactive(t){return new C2(t)}static jog(t){return new H2(t)}static labelPrinter(t){return new B2(t)}static layout(t){return new T2(t)}static level(t){return new R2(t)}static linearized(t){return new F2(t)}static locale(t){return new M2(t)}static localeSet(t){return new z2(t)}static log(t){return new D2(t)}static map(t){return new O2(t)}static mediumInfo(t){return new N2(t)}static message(t){return new _2(t)}static messaging(t){return new P2(t)}static mode(t){return new U2(t)}static modifyAnnots(t){return new L2(t)}static msgId(t){return new E2(t)}static nameAttr(t){return new K2(t)}static neverEmbed(t){return new W2(t)}static numberOfCopies(t){return new V2(t)}static openAction(t){return new $2(t)}static output(t){return new G2(t)}static outputBin(t){return new X2(t)}static outputXSL(t){return new Y2(t)}static overprint(t){return new J2(t)}static packets(t){return new Q2(t)}static pageOffset(t){return new Z2(t)}static pageRange(t){return new tb(t)}static pagination(t){return new eb(t)}static paginationOverride(t){return new sb(t)}static part(t){return new nb(t)}static pcl(t){return new ab(t)}static pdf(t){return new ib(t)}static pdfa(t){return new rb(t)}static permissions(t){return new ob(t)}static pickTrayByPDFSize(t){return new lb(t)}static picture(t){return new fb(t)}static plaintextMetadata(t){return new cb(t)}static presence(t){return new hb(t)}static present(t){return new ub(t)}static print(t){return new mb(t)}static printHighQuality(t){return new pb(t)}static printScaling(t){return new db(t)}static printerName(t){return new gb(t)}static producer(t){return new bb(t)}static ps(t){return new wb(t)}static range(t){return new jb(t)}static record(t){return new kb(t)}static relevant(t){return new qb(t)}static rename(t){return new yb(t)}static renderPolicy(t){return new vb(t)}static runScripts(t){return new xb(t)}static script(t){return new Sb(t)}static scriptModel(t){return new Ab(t)}static severity(t){return new Ib(t)}static silentPrint(t){return new Cb(t)}static staple(t){return new Hb(t)}static startNode(t){return new Bb(t)}static startPage(t){return new Tb(t)}static submitFormat(t){return new Rb(t)}static submitUrl(t){return new Fb(t)}static subsetBelow(t){return new Mb(t)}static suppressBanner(t){return new zb(t)}static tagged(t){return new Db(t)}static template(t){return new Ob(t)}static templateCache(t){return new Pb(t)}static threshold(t){return new Nb(t)}static to(t){return new _b(t)}static trace(t){return new Ub(t)}static transform(t){return new Lb(t)}static type(t){return new Eb(t)}static uri(t){return new Kb(t)}static validate(t){return new Wb(t)}static validateApprovalSignatures(t){return new Vb(t)}static validationMessaging(t){return new $b(t)}static version(t){return new Gb(t)}static versionControl(t){return new Xb(t)}static viewerPreferences(t){return new Yb(t)}static webClient(t){return new Jb(t)}static whitespace(t){return new Qb(t)}static window(t){return new Zb(t)}static xdc(t){return new t9(t)}static xdp(t){return new e9(t)}static xsl(t){return new s9(t)}static zpl(t){return new n9(t)}},cn=Xe.connectionSet.id,i9=class extends st{constructor(t){super(cn,"connectionSet",!0),this.wsdlConnection=new O,this.xmlConnection=new O,this.xsdConnection=new O}},r9=class extends st{constructor(t){super(cn,"effectiveInputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},o9=class extends st{constructor(t){super(cn,"effectiveOutputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},l9=class extends te{constructor(t){super(cn,"operation"),this.id=t.id||"",this.input=t.input||"",this.name=t.name||"",this.output=t.output||"",this.use=t.use||"",this.usehref=t.usehref||""}},f9=class extends te{constructor(t){super(cn,"rootElement"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},c9=class extends te{constructor(t){super(cn,"soapAction"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},h9=class extends te{constructor(t){super(cn,"soapAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},u9=class extends te{constructor(t){super(cn,"uri"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},m9=class extends te{constructor(t){super(cn,"wsdlAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}},p9=class extends st{constructor(t){super(cn,"wsdlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}},d9=class extends st{constructor(t){super(cn,"xmlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.uri=null}},g9=class extends st{constructor(t){super(cn,"xsdConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.rootElement=null,this.uri=null}},b9=class e{static[Bn](t,s){if(Object.hasOwn(e,t))return e[t](s)}static connectionSet(t){return new i9(t)}static effectiveInputPolicy(t){return new r9(t)}static effectiveOutputPolicy(t){return new o9(t)}static operation(t){return new l9(t)}static rootElement(t){return new f9(t)}static soapAction(t){return new c9(t)}static soapAddress(t){return new h9(t)}static uri(t){return new u9(t)}static wsdlAddress(t){return new m9(t)}static wsdlConnection(t){return new p9(t)}static xmlConnection(t){return new d9(t)}static xsdConnection(t){return new g9(t)}},w9=Xe.datasets.id,j9=class extends ga{constructor(t){super(w9,"data",t)}[pl](){return!0}},k9=class extends st{constructor(t){super(w9,"datasets",!0),this.data=null,this.Signature=null}[En](t){let s=t[he];(s==="data"&&t[Ue]===w9||s==="Signature"&&t[Ue]===Xe.signature.id)&&(this[s]=t),this[ze](t)}},q9=class e{static[Bn](t,s){if(Object.hasOwn(e,t))return e[t](s)}static datasets(t){return new k9(t)}static data(t){return new j9(t)}},Oe=Xe.localeSet.id,y9=class extends st{constructor(t){super(Oe,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new O(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new O(2)}},v9=class extends te{constructor(t){super(Oe,"currencySymbol"),this.name=ut(t.name,["symbol","isoname","decimal"])}},x9=class extends st{constructor(t){super(Oe,"currencySymbols",!0),this.currencySymbol=new O(3)}},S9=class extends te{constructor(t){super(Oe,"datePattern"),this.name=ut(t.name,["full","long","med","short"])}},A9=class extends st{constructor(t){super(Oe,"datePatterns",!0),this.datePattern=new O(4)}},I9=class extends Te{constructor(t){super(Oe,"dateTimeSymbols")}},C9=class extends te{constructor(t){super(Oe,"day")}},H9=class extends st{constructor(t){super(Oe,"dayNames",!0),this.abbr=Yt({data:t.abbr,defaultValue:0,validate:s=>s===1}),this.day=new O(7)}},B9=class extends te{constructor(t){super(Oe,"era")}},T9=class extends st{constructor(t){super(Oe,"eraNames",!0),this.era=new O(2)}},R9=class extends st{constructor(t){super(Oe,"locale",!0),this.desc=t.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}},F9=class extends st{constructor(t){super(Oe,"localeSet",!0),this.locale=new O}},M9=class extends te{constructor(t){super(Oe,"meridiem")}},z9=class extends st{constructor(t){super(Oe,"meridiemNames",!0),this.meridiem=new O(2)}},D9=class extends te{constructor(t){super(Oe,"month")}},O9=class extends st{constructor(t){super(Oe,"monthNames",!0),this.abbr=Yt({data:t.abbr,defaultValue:0,validate:s=>s===1}),this.month=new O(12)}},N9=class extends te{constructor(t){super(Oe,"numberPattern"),this.name=ut(t.name,["full","long","med","short"])}},_9=class extends st{constructor(t){super(Oe,"numberPatterns",!0),this.numberPattern=new O(4)}},P9=class extends te{constructor(t){super(Oe,"numberSymbol"),this.name=ut(t.name,["decimal","grouping","percent","minus","zero"])}},U9=class extends st{constructor(t){super(Oe,"numberSymbols",!0),this.numberSymbol=new O(5)}},L9=class extends te{constructor(t){super(Oe,"timePattern"),this.name=ut(t.name,["full","long","med","short"])}},E9=class extends st{constructor(t){super(Oe,"timePatterns",!0),this.timePattern=new O(4)}},K9=class extends st{constructor(t){super(Oe,"typeFace",!0),this.name=""|t.name}},W9=class extends st{constructor(t){super(Oe,"typeFaces",!0),this.typeFace=new O}},V9=class e{static[Bn](t,s){if(Object.hasOwn(e,t))return e[t](s)}static calendarSymbols(t){return new y9(t)}static currencySymbol(t){return new v9(t)}static currencySymbols(t){return new x9(t)}static datePattern(t){return new S9(t)}static datePatterns(t){return new A9(t)}static dateTimeSymbols(t){return new I9(t)}static day(t){return new C9(t)}static dayNames(t){return new H9(t)}static era(t){return new B9(t)}static eraNames(t){return new T9(t)}static locale(t){return new R9(t)}static localeSet(t){return new F9(t)}static meridiem(t){return new M9(t)}static meridiemNames(t){return new z9(t)}static month(t){return new D9(t)}static monthNames(t){return new O9(t)}static numberPattern(t){return new N9(t)}static numberPatterns(t){return new _9(t)}static numberSymbol(t){return new P9(t)}static numberSymbols(t){return new U9(t)}static timePattern(t){return new L9(t)}static timePatterns(t){return new E9(t)}static typeFace(t){return new K9(t)}static typeFaces(t){return new W9(t)}},bv=Xe.signature.id,$9=class extends st{constructor(t){super(bv,"signature",!0)}},G9=class e{static[Bn](t,s){if(Object.hasOwn(e,t))return e[t](s)}static signature(t){return new $9(t)}},wv=Xe.stylesheet.id,X9=class extends st{constructor(t){super(wv,"stylesheet",!0)}},Y9=class e{static[Bn](t,s){if(Object.hasOwn(e,t))return e[t](s)}static stylesheet(t){return new X9(t)}},jv=Xe.xdp.id,J9=class extends st{constructor(t){super(jv,"xdp",!0),this.uuid=t.uuid||"",this.timeStamp=t.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new O,this.template=null}[Pp](t){let s=Xe[t[he]];return s&&t[Ue]===s.id}},Q9=class e{static[Bn](t,s){if(Object.hasOwn(e,t))return e[t](s)}static xdp(t){return new J9(t)}},kv=Xe.xhtml.id,Jc=Symbol(),qv=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),yv=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>e==="none"?"none":"normal"],["xfa-font-horizontal-scale",e=>`scaleX(${Math.max(0,parseInt(e,10)/100).toFixed(2)})`],["xfa-font-vertical-scale",e=>`scaleY(${Math.max(0,parseInt(e,10)/100).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>Xt(.99*(e=t.fontSize=Math.abs(Ot(e))))],["letter-spacing",e=>Xt(Ot(e))],["line-height",e=>Xt(Ot(e))],["margin",e=>Xt(Ot(e))],["margin-bottom",e=>Xt(Ot(e))],["margin-left",e=>Xt(Ot(e))],["margin-right",e=>Xt(Ot(e))],["margin-top",e=>Xt(Ot(e))],["text-indent",e=>Xt(Ot(e))],["font-family",e=>e],["vertical-align",e=>Xt(Ot(e))]]),vv=/\\s+/g,xv=/[\\r\\n]+/g,Sv=/\\r\\n?/g;function Av(e,t,s){let n=Object.create(null);if(!e)return n;let a=Object.create(null);for(let[i,o]of e.split(";").map(r=>r.split(":",2))){let r=yv.get(i);if(r==="")continue;let l=o;r&&(l=typeof r=="string"?r:r(o,a)),i.endsWith("scale")?n.transform=n.transform?`${n[i]} ${l}`:l:n[i.replaceAll(/-([a-z])/gi,(f,c)=>c.toUpperCase())]=l}if(n.fontFamily&&l7({typeface:n.fontFamily,weight:n.fontWeight||"normal",posture:n.fontStyle||"normal",size:a.fontSize||0},t,t[je].fontFinder,n),s&&n.verticalAlign&&n.verticalAlign!=="0px"&&n.fontSize){let r=Ot(n.fontSize);n.fontSize=Xt(r*.583),n.verticalAlign=Xt(Math.sign(Ot(n.verticalAlign))*r*.333)}return s&&n.fontSize&&(n.fontSize=`calc(${n.fontSize} * var(--total-scale-factor))`),i7(n),n}var Iv=new Set(["body","html"]),Hs=class extends ga{constructor(t,s){super(kv,s),this[Jc]=!1,this.style=t.style||""}[ln](t){super[ln](t),this.style=(function(n){return n.style?n.style.split(";").filter(a=>!!a.trim()).map(a=>a.split(":",2).map(i=>i.trim())).filter(([a,i])=>(a==="font-family"&&n[je].usedTypefaces.add(i),qv.has(a))).map(a=>a.join(":")).join(";"):""})(this)}[zu](){return!Iv.has(this[he])}[da](t,s=!1){s?this[Jc]=!0:(t=t.replaceAll(xv,""),this.style.includes("xfa-spacerun:yes")||(t=t.replaceAll(vv," "))),t&&(this[ft]+=t)}[Vn](t,s=!0){let n=Object.create(null),a={top:NaN,bottom:NaN,left:NaN,right:NaN},i=null;for(let[o,r]of this.style.split(";").map(l=>l.split(":",2)))switch(o){case"font-family":n.typeface=Ou(r);break;case"font-size":n.size=Ot(r);break;case"font-weight":n.weight=r;break;case"font-style":n.posture=r;break;case"letter-spacing":n.letterSpacing=Ot(r);break;case"margin":let l=r.split(/ \\t/).map(Ot);switch(l.length){case 1:a.top=a.bottom=a.left=a.right=l[0];break;case 2:a.top=a.bottom=l[0],a.left=a.right=l[1];break;case 3:a.top=l[0],a.bottom=l[2],a.left=a.right=l[1];break;case 4:a.top=l[0],a.left=l[1],a.bottom=l[2],a.right=l[3]}break;case"margin-top":a.top=Ot(r);break;case"margin-bottom":a.bottom=Ot(r);break;case"margin-left":a.left=Ot(r);break;case"margin-right":a.right=Ot(r);break;case"line-height":i=Ot(r)}if(t.pushData(n,a,i),this[ft])t.addString(this[ft]);else for(let o of this[ks]())o[he]!=="#text"?o[Vn](t):t.addString(o[ft]);s&&t.popFont()}[Vt](t){let s=[];if(this[Q]={children:s},this[ti]({}),s.length===0&&!this[ft])return Ut.EMPTY;let n;return n=this[Jc]?this[ft]?this[ft].replaceAll(Sv,`\n`):void 0:this[ft]||void 0,Ut.success({name:this[he],attributes:{href:this.href,style:Av(this.style,this,this[Jc])},children:s,value:n})}},Z9=class extends Hs{constructor(t){super(t,"a"),this.href=f7(t.href)||""}},tw=class extends Hs{constructor(t){super(t,"b")}[Vn](t){t.pushFont({weight:"bold"}),super[Vn](t),t.popFont()}},ew=class extends Hs{constructor(t){super(t,"body")}[Vt](t){let s=super[Vt](t),{html:n}=s;return n?(n.name="div",n.attributes.class=["xfaRich"],s):Ut.EMPTY}},sw=class extends Hs{constructor(t){super(t,"br")}[Ge](){return`\n`}[Vn](t){t.addString(`\n`)}[Vt](t){return Ut.success({name:"br"})}},nw=class extends Hs{constructor(t){super(t,"html")}[Vt](t){let s=[];if(this[Q]={children:s},this[ti]({}),s.length===0)return Ut.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[ft]||""});if(s.length===1){let n=s[0];if(n.attributes?.class.includes("xfaRich"))return Ut.success(n)}return Ut.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:s})}},aw=class extends Hs{constructor(t){super(t,"i")}[Vn](t){t.pushFont({posture:"italic"}),super[Vn](t),t.popFont()}},iw=class extends Hs{constructor(t){super(t,"li")}},rw=class extends Hs{constructor(t){super(t,"ol")}},ow=class extends Hs{constructor(t){super(t,"p")}[Vn](t){super[Vn](t,!1),t.addString(`\n`),t.addPara(),t.popFont()}[Ge](){return this[Qt]()[ks]().at(-1)===this?super[Ge]():super[Ge]()+`\n`}},lw=class extends Hs{constructor(t){super(t,"span")}},fw=class extends Hs{constructor(t){super(t,"sub")}},cw=class extends Hs{constructor(t){super(t,"sup")}},hw=class extends Hs{constructor(t){super(t,"ul")}},of=class e{static[Bn](t,s){if(Object.hasOwn(e,t))return e[t](s)}static a(t){return new Z9(t)}static b(t){return new tw(t)}static body(t){return new ew(t)}static br(t){return new sw(t)}static html(t){return new nw(t)}static i(t){return new aw(t)}static li(t){return new iw(t)}static ol(t){return new rw(t)}static p(t){return new ow(t)}static span(t){return new lw(t)}static sub(t){return new fw(t)}static sup(t){return new cw(t)}static ul(t){return new hw(t)}},$6={config:a9,connection:b9,datasets:q9,localeSet:V9,signature:G9,stylesheet:Y9,template:xg,xdp:Q9,xhtml:of},Ph=class{constructor(t){this.namespaceId=t}[Bn](t,s){return new ga(this.namespaceId,t,s)}},uw=class extends st{constructor(t){super(-1,"root",Object.create(null)),this.element=null,this[jr]=t}[En](t){return this.element=t,!0}[qe](){super[qe](),this.element.template instanceof nf&&(this[jr].set(Y8,this.element),this.element.template[Ko](this[jr]),this.element.template[jr]=this[jr])}},mw=class extends st{constructor(){super(-1,"",Object.create(null))}[En](t){return!1}},pw=class{constructor(t=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(Xe).map(({id:s})=>s)),this._currentNamespace=t||new Ph(++this._nextNsId)}buildRoot(t){return new uw(t)}build({nsPrefix:t,name:s,attributes:n,namespace:a,prefixes:i}){let o=a!==null;if(o&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(a)),i&&this._addNamespacePrefix(i),Object.hasOwn(n,fa)){let f=$6.datasets,c=n[fa],h=null;for(let[m,u]of Object.entries(c))if(this._getNamespaceToUse(m)===f){h={xfa:u};break}h?n[fa]=h:delete n[fa]}let r=this._getNamespaceToUse(t),l=r?.[Bn](s,n)||new mw;return l[pl]()&&this._nsAgnosticLevel++,(o||i||l[pl]())&&(l[m1]={hasNamespace:o,prefixes:i,nsAgnostic:l[pl]()}),l}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(t){let s=this._namespaces.get(t);if(s)return s;for(let[n,{check:a}]of Object.entries(Xe))if(a(t)){if(s=$6[n],s)return this._namespaces.set(t,s),s;break}return s=new Ph(++this._nextNsId),this._namespaces.set(t,s),s}_addNamespacePrefix(t){for(let{prefix:s,value:n}of t){let a=this._searchNamespace(n);this._namespacePrefixes.getOrInsertComputed(s,Ya).push(a)}}_getNamespaceToUse(t){if(!t)return this._currentNamespace;let s=this._namespacePrefixes.get(t);return s?.length>0?s.at(-1):(F(`Unknown namespace prefix: ${t}.`),null)}clean(t){let{hasNamespace:s,prefixes:n,nsAgnostic:a}=t;s&&(this._currentNamespace=this._namespaceStack.pop()),n?.forEach(({prefix:i})=>{this._namespacePrefixes.get(i).pop()}),a&&this._nsAgnosticLevel--}},Uh=class e extends bh{constructor(t=null,s=!1){super(),this._builder=new pw(t),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=cl,this._whiteRegex=/^\\s+$/,this._nbsps=/\\xa0+/g,this._richText=s}parse(t){if(this.parseXml(t),this._errorCode===cl)return this._current[qe](),this._current.element}onText(t){t=t.replace(this._nbsps,s=>s.slice(1)+" "),this._richText||this._current[zu]()?this._current[da](t,this._richText):this._whiteRegex.test(t)||this._current[da](t.trim())}onCdata(t){this._current[da](t)}_mkAttributes(t,s){let n=null,a=null,i=Object.create({});for(let{name:o,value:r}of t)if(o==="xmlns")n?F(`XFA - multiple namespace definition in <${s}>`):n=r;else if(o.startsWith("xmlns:")){let l=o.substring(6);a??(a=[]),a.push({prefix:l,value:r})}else{let l=o.indexOf(":");if(l===-1)i[o]=r;else{let f=i[fa]??(i[fa]=Object.create(null)),[c,h]=[o.slice(0,l),o.slice(l+1)];(f[c]||(f[c]=Object.create(null)))[h]=r}}return[n,a,i]}_getNameAndPrefix(t,s){let n=t.indexOf(":");return n===-1?[t,null]:[t.substring(n+1),s?"":t.substring(0,n)]}onBeginElement(t,s,n){let[a,i,o]=this._mkAttributes(s,t),[r,l]=this._getNameAndPrefix(t,this._builder.isNsAgnostic()),f=this._builder.build({nsPrefix:l,name:r,attributes:o,namespace:a,prefixes:i});f[je]=this._globalData,n?(f[qe](),this._current[En](f)&&f[Up](this._ids),f[ln](this._builder)):(this._stack.push(this._current),this._current=f)}onEndElement(t){let s=this._current;if(s[P5]()&&typeof s[ft]=="string"){let n=new e;n._globalData=this._globalData;let a=n.parse(s[ft]);s[ft]=null,s[En](a)}s[qe](),this._current=this._stack.pop(),this._current[En](s)&&s[Up](this._ids),s[ln](this._builder)}onError(t){this._errorCode=t}},lf=class e{constructor(t){try{this.root=new Uh().parse(e._createDocument(t));let s=new Sg(this.root);this.form=s.bind(),this.dataHandler=new Ag(this.root,s.getData()),this.form[je].template=this.form}catch(s){F(`XFA - an error occurred during parsing and binding: ${s}`)}}isValid(){return!(!this.root||!this.form)}_createPagesHelper(){let t=this.form[Q8]();return new Promise((s,n)=>{let a=()=>{try{let i=t.next();i.done?s(i.value):setTimeout(a,0)}catch(i){n(i)}};setTimeout(a,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(t=>{let{width:s,height:n}=t.attributes.style;return[0,0,parseInt(s,10),parseInt(n,10)]})}catch(t){F(`XFA - an error occurred during layout: ${t}`)}}getBoundingBox(t){return this.dims[t]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(t){this.form[je].images=t}setFonts(t){this.form[je].fontFinder=new Lp(t);let s=[];for(let n of this.form[je].usedTypefaces)n=Ou(n),this.form[je].fontFinder.find(n)||s.push(n);return s.length>0?s:null}appendFonts(t,s){this.form[je].fontFinder.add(t,s)}async getPages(){this.pages||await this._createPages();let t=this.pages;return this.pages=null,t}serializeData(t){return this.dataHandler.serialize(t)}static _createDocument(t){return t.get("/xdp:xdp")?t.values().join(""):t.get("xdp:xdp")}static getRichTextAsHtml(t){if(!t||typeof t!="string")return null;try{let s=new Uh(of,!0).parse(t);if(!["body","xhtml"].includes(s[he])){let o=of.body({});o[ze](s),s=o}let n=s[Vt]();if(!n.success)return null;let{html:a}=n,{attributes:i}=a;return i&&(i.class&&(i.class=i.class.filter(o=>!o.startsWith("xfa"))),i.dir="auto"),{html:a,str:s[Ge]()}}catch(s){F(`XFA - an error occurred during parsing of rich text: ${s}`)}return null}},Es=class{static createGlobals(t){return Promise.all([t.ensureCatalog("acroForm"),t.ensureDoc("xfaDatasets"),t.ensureCatalog("structTreeRoot"),t.ensureCatalog("baseUrl"),t.ensureCatalog("attachments"),t.ensureCatalog("globalColorSpaceCache")]).then(([s,n,a,i,o,r])=>({pdfManager:t,catalog:t.pdfDocument.catalog,acroForm:s instanceof R?s:R.empty,xfaDatasets:n,structTreeRoot:a,baseUrl:i,attachments:o,globalColorSpaceCache:r}),s=>(F(`createGlobals: "${s}".`),null))}static async create(t,s,n,a,i,o,r,l){let f=i?await this._getPageIndex(t,s,n.pdfManager):null;return n.pdfManager.ensure(this,"_create",[t,s,n,a,i,o,r,f,l])}static _create(t,s,n,a,i=!1,o=null,r=null,l=null,f=null){let c=t.fetchIfRef(s);if(!(c instanceof R))return;let h=c.get("Subtype");if(h=h instanceof it?h.name:null,r&&!r.has(f4[h?.toUpperCase()]))return null;let{acroForm:m,pdfManager:u}=n,d=s instanceof rt?s.toString():`annot_${a.createObjId()}`,p={xref:t,ref:s,dict:c,subtype:h,id:d,annotationGlobals:n,collectFields:i,orphanFields:o,needAppearances:!i&&m.get("NeedAppearances")===!0,pageIndex:l,evaluatorOptions:u.evaluatorOptions,pageRef:f};switch(h){case"Link":return new yw(p);case"Text":return new qw(p);case"Widget":let g=rs({dict:c,key:"FT"});switch(g=g instanceof it?g.name:null,g){case"Tx":return new ww(p);case"Btn":return new jw(p);case"Ch":return new kw(p);case"Sig":return new Lh(p)}return F(`Unimplemented widget field type "${g}", falling back to base field type.`),new $n(p);case"Popup":return new ff(p);case"FreeText":return new gl(p);case"Line":return new vw(p);case"Square":return new xw(p);case"Circle":return new Sw(p);case"PolyLine":return new Eh(p);case"Polygon":return new Kh(p);case"Caret":return new Aw(p);case"Ink":return new pi(p);case"Highlight":return new bl(p);case"Underline":return new Iw(p);case"Squiggly":return new Cw(p);case"StrikeOut":return new Hw(p);case"Stamp":return new Fa(p);case"FileAttachment":return new Bw(p);case"RichMedia":return new Tw(p);case"Screen":return new Rw(p);case"Sound":return new zw(p);default:return i||F(h?`Unimplemented annotation type "${h}", falling back to base annotation.`:"Annotation is missing the required /Subtype."),new si(p)}}static async _getPageIndex(t,s,n){try{let a=await t.fetchIfRefAsync(s);if(!(a instanceof R))return-1;let i=a.getRaw("P");if(i instanceof rt)try{return await n.ensureCatalog("getPageIndex",[i])}catch(r){ie(`_getPageIndex -- not a valid page reference: "${r}".`)}if(a.has("Kids"))return-1;let o=await n.ensureDoc("numPages");for(let r=0;r<o;r++){let l=await n.getPage(r),f=await n.ensure(l,"annotations");for(let c of f)if(c instanceof rt&&oo(c,s))return r}}catch(a){F(`_getPageIndex: "${a}".`)}return-1}static generateImages(t,s,n){if(!n)return F("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;let a;for(let{bitmapId:i,bitmap:o}of t)o&&(a||(a=new Map),a.set(i,G8(o,s)));return a}static async saveNewAnnotations(t,s,n,a,i,o){let r,l=[],{isOffscreenCanvasSupported:f}=t.options;for(let c of a)if(!c.deleted)switch(c.annotationType){case l3:if(!r){let m=new R(s);m.setIfName("BaseFont","Helvetica"),m.setIfName("Type","Font"),m.setIfName("Subtype","Type1"),m.setIfName("Encoding","WinAnsiEncoding"),r=s.getNewTemporaryRef(),o.put(r,{data:m})}l.push(gl.createNewAnnotation(s,c,o,{evaluator:t,task:n,baseFontRef:r}));break;case f3:c.quadPoints?l.push(bl.createNewAnnotation(s,c,o)):l.push(pi.createNewAnnotation(s,c,o));break;case h3:l.push(pi.createNewAnnotation(s,c,o));break;case c3:let h=f?await i?.get(c.bitmapId):null;if(h?.imageStream){let{imageStream:m,smaskStream:u}=h;if(u){let p=s.getNewTemporaryRef();o.put(p,{data:u}),m.dict.set("SMask",p)}let d=h.imageRef=s.getNewTemporaryRef();o.put(d,{data:m}),h.imageStream=null,h.imageRenderStream=null,h.smaskStream=null,h.smaskRenderStream=null}l.push(Fa.createNewAnnotation(s,c,o,{image:h}));break;case u3:l.push(Fa.createNewAnnotation(s,c,o,{}))}return{annotations:(await Promise.all(l)).flat()}}static async printNewAnnotations(t,s,n,a,i){if(!a)return null;let{options:o,xref:r}=s,l=[];for(let f of a)if(!f.deleted)switch(f.annotationType){case l3:l.push(gl.createNewPrintAnnotation(t,r,f,{evaluator:s,task:n,evaluatorOptions:o}));break;case f3:f.quadPoints?l.push(bl.createNewPrintAnnotation(t,r,f,{evaluatorOptions:o})):l.push(pi.createNewPrintAnnotation(t,r,f,{evaluatorOptions:o}));break;case h3:l.push(pi.createNewPrintAnnotation(t,r,f,{evaluatorOptions:o}));break;case c3:let c=o.isOffscreenCanvasSupported?await i?.get(f.bitmapId):null;if(c?.imageStream){let{imageStream:h,imageRenderStream:m,smaskStream:u,smaskRenderStream:d}=c,p=m||new fo(h,h.length);(u||d)&&p.dict.set("SMask",d||u),c.imageRef=p,c.imageStream=null,c.imageRenderStream=null,c.smaskStream=null,c.smaskRenderStream=null}l.push(Fa.createNewPrintAnnotation(t,r,f,{image:c,evaluatorOptions:o}));break;case u3:l.push(Fa.createNewPrintAnnotation(t,r,f,{evaluatorOptions:o}))}return Promise.all(l)}};function Pi(e,t=new Uint8ClampedArray(3)){if(!Array.isArray(e))return t;let s=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return ae.gray.getRgbItem(e,0,s,0),s;case 3:return ae.rgb.getRgbItem(e,0,s,0),s;case 4:return ae.cmyk.getRgbItem(e,0,s,0),s;default:return t}}function ms(e,t=null){return e&&Array.from(e,s=>s/255)||t}function Tc(e,t){let s=e.getArray("QuadPoints");if(!Fe(s,null)||s.length===0||s.length%8>0)return null;let n=new Float32Array(s.length);for(let a=0,i=s.length;a<i;a+=8){let[o,r,l,f,c,h,m,u]=s.slice(a,a+8),d=Math.min(o,l,c,m),p=Math.max(o,l,c,m),g=Math.min(r,f,h,u),b=Math.max(r,f,h,u);if(t!==null&&(d<t[0]||p>t[2]||g<t[1]||b>t[3]))return null;n.set([d,b,p,b,d,g,p,g],a)}return n}function dw(e,t,s){let n=k1.slice();ee.axialAlignedBoundingBox(t,s,n);let[a,i,o,r]=n;if(a===o||i===r)return[1,0,0,1,e[0],e[1]];let l=(e[2]-e[0])/(o-a),f=(e[3]-e[1])/(r-i);return[l,0,0,f,e[0]-a*l,e[1]-i*f]}function gw(e,t,s=!1){t.push(`${we(e[4])} ${we(e[5])} m`);for(let n=6,a=e.length;n<a;n+=6)if(isNaN(e[n]))t.push(`${we(e[n+4])} ${we(e[n+5])} l`);else{let i=e.slice(n,n+6);t.push(`${i.map(we).join(" ")} c`)}s&&e.length===6&&t.push(`${we(e[4])} ${we(e[5])} l`)}var ju,p7,si=class{constructor(t){at(this,ju);Y(this,"appearance",null);Y(this,"_oc");let{annotationGlobals:s,dict:n,orphanFields:a,ref:i,subtype:o,xref:r}=t,l=a?.get(i);l&&n.set("Parent",l),this.setTitle(n.get("T")),this.setContents(n.get("Contents")),this.setModificationDate(n.get("M")),this.setFlags(n.get("F")),this.setRectangle(n.getArray("Rect")),this.setColor(n.getArray("C")),this.setBorderStyle(n),this.setAppearance(n),N(this,ju,p7).call(this,r,n);let f=n.get("MK");this.setBorderAndBackgroundColors(f),this.setRotation(f,n),this.ref=t.ref instanceof rt?t.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);let c=!!(this.flags&Ej),h=!!(this.flags&Kj);if(this.data={annotationType:f4[o?.toUpperCase()],annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,oc:this._oc,rect:this.rectangle,subtype:o,hasOwnCanvas:!1,noRotate:!!(this.flags&Lj),noHTML:c&&h,isEditable:!1,structParent:-1},s.structTreeRoot){let u=n.get("StructParent");this.data.structParent=u=Number.isInteger(u)&&u>=0?u:-1,s.structTreeRoot.addAnnotationIdToPage(t.pageRef,u,this.ref)}if(t.collectFields){let u=n.get("Kids");if(Array.isArray(u)){let d=[];for(let p of u)p instanceof rt&&d.push(p.toString());d.length!==0&&(this.data.kidIds=d)}this.data.actions=Ru(r,n,h4),this.data.fieldName=this._constructFieldName(n),this.data.pageIndex=t.pageIndex}let m=n.get("IT");m instanceof it&&(this.data.it=m.name),this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_getOperatorListNoAppearance(){return{opList:new $s,separateForm:!1,separateCanvas:!1}}_hasFlag(t,s){return!!(t&s)}_buildFlags(t,s){let{flags:n}=this;return t===void 0?s===void 0?void 0:s?n&~sr:n&~Ia|sr:t?(n|=sr,s?n&~qr|Ia:n&~Ia|qr):(n&=~(Ia|qr),s?n&~sr:n|sr)}_isViewable(t){return!this._hasFlag(t,zc)&&!this._hasFlag(t,qr)}_isPrintable(t){return this._hasFlag(t,sr)&&!this._hasFlag(t,Ia)&&!this._hasFlag(t,zc)}mustBeViewed(t,s){let n=t?.get(this.data.id)?.noView;return n!==void 0?!n:this.viewable&&!this._hasFlag(this.flags,Ia)}mustBePrinted(t){let s=t?.get(this.data.id)?.noPrint;return s!==void 0?!s:this.printable}mustBeViewedWhenEditing(t,s=null){return t?!this.data.isEditable:!s?.has(this.data.id)}get viewable(){return this.data.quadPoints!==null&&(this.flags===0||this._isViewable(this.flags))}get printable(){return this.data.quadPoints!==null&&this.flags!==0&&this._isPrintable(this.flags)}_parseStringHelper(t){let s=typeof t=="string"?Jt(t):"";return{str:s,dir:s&&D5(s).dir==="rtl"?"rtl":"ltr"}}setDefaultAppearance(t){let{dict:s,annotationGlobals:n}=t,a=rs({dict:s,key:"DA"})||n.acroForm.get("DA");this._defaultAppearance=typeof a=="string"?a:"",this.data.defaultAppearanceData=O5(this._defaultAppearance)}setTitle(t){this._title=this._parseStringHelper(t)}setContents(t){this._contents=this._parseStringHelper(t)}setModificationDate(t){this.modificationDate=typeof t=="string"?t:null}setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0,this.flags&zc&&this.constructor.name!=="Annotation"&&(this.flags^=zc)}hasFlag(t){return this._hasFlag(this.flags,t)}setRectangle(t){this.rectangle=Wn(t,[0,0,0,0])}setColor(t){this.color=Pi(t)}setLineEndings(t){if(this.lineEndings=["None","None"],Array.isArray(t)&&t.length===2)for(let s=0;s<2;s++){let n=t[s];if(n instanceof it)switch(n.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[s]=n.name;continue}F(`Ignoring invalid lineEnding: ${n}`)}}setRotation(t,s){this.rotation=0;let n=t instanceof R?t.get("R")||0:s.get("Rotate")||0;Number.isInteger(n)&&n!==0&&(n%=360,n<0&&(n+=360),n%90==0&&(this.rotation=n))}setBorderAndBackgroundColors(t){t instanceof R?(this.borderColor=Pi(t.getArray("BC"),null),this.backgroundColor=Pi(t.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(t){if(this.borderStyle=new bw,t instanceof R)if(t.has("BS")){let s=t.get("BS");if(s instanceof R){let n=s.get("Type");(!n||$t(n,"Border"))&&(this.borderStyle.setWidth(s.get("W"),this.rectangle),this.borderStyle.setStyle(s.get("S")),this.borderStyle.setDashArray(s.getArray("D")))}}else if(t.has("Border")){let s=t.getArray("Border");Array.isArray(s)&&(s.length>=3?(this.borderStyle.setHorizontalCornerRadius(s[0]),this.borderStyle.setVerticalCornerRadius(s[1]),this.borderStyle.setWidth(s[2],this.rectangle),s.length===4&&this.borderStyle.setDashArray(s[3],!0)):s.length===0&&this.borderStyle.setWidth(0))}else this.borderStyle.setWidth(0)}setAppearance(t){let s=t.get("AP");if(!(s instanceof R))return;let n=s.get("N");if(n instanceof Et){this.appearance=n;return}if(!(n instanceof R))return;let a=t.get("AS");if(!(a instanceof it))return;let i=n.get(a.name);i instanceof Et&&(this.appearance=i)}async loadResources(t,s){let n=await s.dict.getAsync("Resources");return n&&await bo.load(n,t,n.xref),n}get _ownCanvasRequiresForms(){return!1}async getOperatorList(t,s,n,a){let{hasOwnCanvas:i,id:o,rect:r}=this.data,l=this.appearance,f=!!(i&&n&yl&&(!this._ownCanvasRequiresForms||n&Cu));if(f&&(this.width===0||this.height===0))return this.data.hasOwnCanvas=!1,this._getOperatorListNoAppearance();if(!l){if(!f)return this._getOperatorListNoAppearance();l=new ts("",new R)}let c=l.dict,h=await this.loadResources(V0,l),m=Al(c.getArray("BBox"),[0,0,this.width,this.height]),u=la(c.getArray("Matrix"),an),d=dw(r,m,u),p=new $s,g=this._oc;return g!==void 0&&p.addOp(Dn,["OC",g]),p.addOp(x5,[o,r,d,u,f]),await t.getOperatorList({stream:l,task:s,resources:h,operatorList:p,fallbackFontDict:this._fallbackFontDict}),p.addOp(B4,[]),g!==void 0&&p.addOp(Va,[]),this.reset(),{opList:p,separateForm:!1,separateCanvas:f}}async save(t,s,n,a){return null}get overlaysTextContent(){return!1}get hasTextContent(){return!1}async extractTextContent(t,s,n){if(!this.appearance)return;let a=await this.loadResources($0,this.appearance),i=[],o=[],r=1/0,l=1/0,f=null,c={desiredSize:Math.Infinity,ready:!0,enqueue(h,m){for(let u of h.items)u.str!==void 0&&(r=Math.min(r,u.transform[4]),l=Math.min(l,u.transform[5]),o.push(u.str),u.hasEOL&&(i.push(o.join("").trimEnd()),o.length=0))}};if(await t.getTextContent({stream:this.appearance,task:s,resources:a,includeMarkedContent:!0,keepWhiteSpace:!0,sink:c,viewBox:n}),this.reset(),r!==1/0&&(f=[r,l]),o.length&&i.push(o.join("").trimEnd()),i.length>1||i[0]){let h=this.appearance.dict,m=Al(h.getArray("BBox"),null),u=la(h.getArray("Matrix"),null);this.data.textPosition=this._transformPoint(f,m,u),this.data.textContent=i}}_transformPoint(t,s,n){let{rect:a}=this.data;s||(s=[0,0,1,1]),n||(n=[1,0,0,1,0,0]);let i=dw(a,s,n);i[4]-=a[0],i[5]-=a[1];let o=t.slice();return ee.applyTransform(o,i),ee.applyTransform(o,n),o}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(let t of this._streams)t.reset()}_constructFieldName(t){if(!t.has("T")&&!t.has("Parent"))return F("Unknown field name, falling back to empty field name."),"";if(!t.has("Parent"))return Jt(t.get("T"));let s=[];t.has("T")&&s.unshift(Jt(t.get("T")));let n=t,a=new re;for(t.objId&&a.put(t.objId);n.has("Parent")&&(n=n.get("Parent"),!(!(n instanceof R)||n.objId&&a.has(n.objId)));)n.objId&&a.put(n.objId),n.has("T")&&s.unshift(Jt(n.get("T")));return s.join(".")}_getAttachmentId(t,s,n,a=!1){if(t instanceof R)return s instanceof rt||(s=As.pickPlatformItem(t.get("EF"),!0)),s instanceof rt?n.catalog.getAttachmentIdForAnnotation(s,a):void 0}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}};ju=new WeakSet,p7=function(t,s){if(s.has("OC"))try{this._oc=C8(t,s.get("OC"),null)}catch(n){if(n instanceof de)throw n;F(`#setOptionalContent: ${n}`)}};var bw=class{constructor(){Y(this,"width",1);Y(this,"rawWidth",1);Y(this,"style",m3);Y(this,"dashArray",[3]);Y(this,"horizontalCornerRadius",0);Y(this,"verticalCornerRadius",0)}setWidth(t,s=[0,0,0,0]){if(t instanceof it)this.width=0;else if(typeof t=="number"){if(t>0){this.rawWidth=t;let n=(s[2]-s[0])/2,a=(s[3]-s[1])/2;n>0&&a>0&&(t>n||t>a)&&(F(`AnnotationBorderStyle.setWidth - ignoring width: ${t}`),t=1)}this.width=t}}setStyle(t){if(t instanceof it)switch(t.name){case"S":this.style=m3;break;case"D":this.style=sk;break;case"B":this.style=nk;break;case"I":this.style=ak;break;case"U":this.style=ik}}setDashArray(t,s=!1){if(Array.isArray(t)){let n=!0,a=!0;for(let i of t){if(!(+i>=0)){n=!1;break}i>0&&(a=!1)}t.length===0||n&&!a?(this.dashArray=t,s&&this.setStyle(it.get("D"))):this.width=0}else t&&(this.width=0)}setHorizontalCornerRadius(t){Number.isInteger(t)&&(this.horizontalCornerRadius=t)}setVerticalCornerRadius(t){Number.isInteger(t)&&(this.verticalCornerRadius=t)}},qs=class extends si{constructor(t){super(t);let{dict:s}=t;if(s.has("IRT")){let a=s.getRaw("IRT");this.data.inReplyTo=a instanceof rt?a.toString():null;let i=s.get("RT");this.data.replyType=i instanceof it?i.name:_j}let n=null;if(this.data.replyType===c4){let a=s.get("IRT");this.setTitle(a.get("T")),this.data.titleObj=this._title,this.setContents(a.get("Contents")),this.data.contentsObj=this._contents,a.has("CreationDate")?(this.setCreationDate(a.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,a.has("M")?(this.setModificationDate(a.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,n=a.getRaw("Popup"),a.has("C")?(this.setColor(a.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(s.get("CreationDate")),this.data.creationDate=this.creationDate,n=s.getRaw("Popup"),s.has("C")||(this.data.color=null);this.data.popupRef=n instanceof rt?n.toString():null,s.has("RC")&&(this.data.richText=lf.getRichTextAsHtml(s.get("RC")))}setCreationDate(t){this.creationDate=typeof t=="string"?t:null}_setDefaultAppearance({xref:t,extra:s,strokeColor:n,fillColor:a,blendMode:i,strokeAlpha:o,fillAlpha:r,pointsCallback:l}){let f=this.data.rect=Xa.slice(),c=["q"];s&&c.push(s),n&&c.push(`${n[0]} ${n[1]} ${n[2]} RG`),a&&c.push(`${a[0]} ${a[1]} ${a[2]} rg`);let h=this.data.quadPoints||Float32Array.from([this.rectangle[0],this.rectangle[3],this.rectangle[2],this.rectangle[3],this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[1]]);for(let k=0,q=h.length;k<q;k+=8){let y=l(c,h.subarray(k,k+8));ee.rectBoundingBox(...y,f)}c.push("Q");let m=new R(t),u=new R(t);u.setIfName("Subtype","Form");let d=new ts(c.join(" "),u);m.set("Fm0",d);let p=new R(t);i&&p.setIfName("BM",i),p.setIfNumber("CA",o),p.setIfNumber("ca",r);let g=new R(t);g.set("GS0",p);let b=new R(t);b.set("ExtGState",g),b.set("XObject",m);let w=new R(t);w.set("Resources",b),w.set("BBox",f),this.appearance=new ts("/GS0 gs /Fm0 Do",w),this._streams.push(this.appearance,d)}static async createNewAnnotation(t,s,n,a){let i=s.ref||(s.ref=t.getNewTemporaryRef()),o=await this.createNewAppearanceStream(s,t,a),r;if(o){let c=t.getNewTemporaryRef();r=this.createNewDict(s,t,{apRef:c}),n.put(c,{data:o})}else r=this.createNewDict(s,t,{});Number.isInteger(s.parentTreeId)&&r.set("StructParent",s.parentTreeId),n.put(i,{data:r});let l={ref:i},{popup:f}=s;if(f){if(f.deleted)return r.delete("Popup"),r.delete("Contents"),r.delete("RC"),l;let c=f.ref||(f.ref=t.getNewTemporaryRef());f.parent=i;let h=ff.createNewDict(f,t);return n.put(c,{data:h}),r.setIfDefined("Contents",Ze(f.contents)),r.set("Popup",c),[l,{ref:c}]}return l}static async createNewPrintAnnotation(t,s,n,a){let i=await this.createNewAppearanceStream(n,s,a),o=this.createNewDict(n,s,i?{ap:i}:{}),r=new this.prototype.constructor({dict:o,xref:s,annotationGlobals:t,evaluatorOptions:a.evaluatorOptions});return n.ref&&(r.ref=r.refToReplace=n.ref),r}},$n=class e extends si{constructor(t){super(t);let{dict:s,xref:n,annotationGlobals:a}=t,i=this.data;this._needAppearances=t.needAppearances,i.fieldName===void 0&&(i.fieldName=this._constructFieldName(s)),i.actions===void 0&&(i.actions=Ru(n,s,h4));let o=rs({dict:s,key:"V",getArray:!0});i.fieldValue=this._decodeFormValue(o);let r=rs({dict:s,key:"DV",getArray:!0});if(i.defaultFieldValue=this._decodeFormValue(r),o===void 0&&a.xfaDatasets){let m=this._title.str;m&&(this._hasValueFromXFA=!0,i.fieldValue=o=a.xfaDatasets.getValue(m))}o===void 0&&i.defaultFieldValue!==null&&(i.fieldValue=i.defaultFieldValue),i.alternativeText=Jt(s.get("TU")||""),this.setDefaultAppearance(t),i.hasAppearance||(i.hasAppearance=this._needAppearances&&i.fieldValue!==void 0&&i.fieldValue!==null);let l=rs({dict:s,key:"FT"});i.fieldType=l instanceof it?l.name:null;let f=rs({dict:s,key:"DR"}),c=a.acroForm.get("DR"),h=this.appearance?.dict.get("Resources");this._fieldResources={localResources:f,acroFormResources:c,appearanceResources:h,mergedResources:R.merge({xref:n,dictArray:[f,h,c],mergeSubDicts:!0})},i.fieldFlags=rs({dict:s,key:"Ff"}),(!Number.isInteger(i.fieldFlags)||i.fieldFlags<0)&&(i.fieldFlags=0),i.password=this.hasFieldFlag(Gj),i.readOnly=this.hasFieldFlag(Wj),i.required=this.hasFieldFlag(Vj),i.hidden=this._hasFlag(i.annotationFlags,Ia)||this._hasFlag(i.annotationFlags,qr)}_decodeFormValue(t){if(Array.isArray(t)){let s=t.map(n=>this._decodeFormValue(n)).filter(n=>n!==null);return s.length>0?s:null}return t instanceof it?t.name:typeof t=="string"?Jt(t):null}hasFieldFlag(t){return!!(this.data.fieldFlags&t)}_isViewable(t){return!0}mustBeViewed(t,s){return s?this.viewable:super.mustBeViewed(t,s)&&!this._hasFlag(this.flags,qr)}getRotationMatrix(t){let s=t?.get(this.data.id)?.rotation;return s===void 0&&(s=this.rotation),s===0?an:O1(s,this.width,this.height)}getBorderAndBackgroundAppearances(t){let s=t?.get(this.data.id)?.rotation;if(s===void 0&&(s=this.rotation),!this.backgroundColor&&!this.borderColor)return"";let n=s===0||s===180?`0 0 ${this.width} ${this.height} re`:`0 0 ${this.height} ${this.width} re`,a="";return this.backgroundColor&&(a=`${Ln(this.backgroundColor,!0)} ${n} f `),this.borderColor&&(a+=`${this.borderStyle.width||1} w ${Ln(this.borderColor,!1)} ${n} S `),a}async getOperatorList(t,s,n,a){if(n&Cu&&!(this instanceof Lh)&&!this.data.noHTML&&!this.data.hasOwnCanvas){let m=this._getOperatorListNoAppearance();return m.separateForm=!0,m}if(!this._hasText)return super.getOperatorList(t,s,n,a);let i=await this._getAppearance(t,s,n,a);if(this.appearance&&i===null)return super.getOperatorList(t,s,n,a);let o=new $s;if(!this._defaultAppearance||i===null)return{opList:o,separateForm:!1,separateCanvas:!1};let r=!!(this.data.hasOwnCanvas&&n&yl),l=[0,0,this.width,this.height],f=dw(this.data.rect,l,[1,0,0,1,0,0]),c=this._oc;c!==void 0&&o.addOp(Dn,["OC",c]),o.addOp(x5,[this.data.id,this.data.rect,f,this.getRotationMatrix(a),r]);let h=new ts(i);return await t.getOperatorList({stream:h,task:s,resources:this._fieldResources.mergedResources,operatorList:o}),o.addOp(B4,[]),c!==void 0&&o.addOp(Va,[]),{opList:o,separateForm:!1,separateCanvas:r}}_getMKDict(t){let s=new R(null);return t&&s.set("R",t),s.setIfArray("BC",ms(this.borderColor)),s.setIfArray("BG",ms(this.backgroundColor)),s.size>0?s:null}amendSavedDict(t,s){}setValue(t,s,n,a){let{dict:i,ref:o}=(function(l,f,c){let h=new re,m=l,u={dict:null,ref:null};for(;l instanceof R&&!h.has(f)&&(h.put(f),!l.has("T"));){if(!((f=l.getRaw("Parent"))instanceof rt))return u;l=c.fetch(f)}return l instanceof R&&l!==m&&(u.dict=l,u.ref=f),u})(t,this.ref,n);if(i){if(!a.has(o)){let r=i.clone();return r.set("V",s),a.put(o,{data:r}),r}}else t.set("V",s);return null}async save(t,s,n,a){let i=n?.get(this.data.id),o=this._buildFlags(i?.noView,i?.noPrint),r=i?.value,l=i?.rotation;if(r===this.data.fieldValue||r===void 0){if(!this._hasValueFromXFA&&l===void 0&&o===void 0)return;r||(r=this.data.fieldValue)}if(l===void 0&&!this._hasValueFromXFA&&Array.isArray(r)&&Array.isArray(this.data.fieldValue)&&Ei(r,this.data.fieldValue)&&o===void 0)return;l===void 0&&(l=this.rotation);let f=null;if(!this._needAppearances&&(f=await this._getAppearance(t,s,o3,n),f===null&&o===void 0))return;let c=!1;f?.needAppearances&&(c=!0,f=null);let{xref:h}=t,m=h.fetchIfRef(this.ref);if(!(m instanceof R))return;let u=new R(h);for(let[b,w]of m.getRawEntries())b!=="AP"&&u.set(b,w);if(o!==void 0&&(u.set("F",o),f===null&&!c)){let b=m.getRaw("AP");b&&u.set("AP",b)}let d={path:this.data.fieldName,value:r},p=this.setValue(u,Array.isArray(r)?r.map(Ze):Ze(r),h,a);this.amendSavedDict(n,p||u);let g=this._getMKDict(l);if(g&&u.set("MK",g),a.put(this.ref,{data:u,xfa:d,needAppearances:c}),f!==null){let b=h.getNewTemporaryRef(),w=new R(h);u.set("AP",w),w.set("N",b);let k=this._getSaveFieldResources(h),q=new R(h);q.setIfName("Subtype","Form"),q.set("Resources",k);let y=l%180==0?[0,0,this.width,this.height]:[0,0,this.height,this.width];q.set("BBox",y);let v=new ts(f,q),A=this.getRotationMatrix(n);A!==an&&q.set("Matrix",A),a.put(b,{data:v,xfa:null,needAppearances:!1})}u.set("M",`D:${Ja()}`)}async _getAppearance(t,s,n,a){if(this.data.password)return null;let i=a?.get(this.data.id),o,r;if(i&&(o=i.formattedValue||i.value,r=i.rotation),r===void 0&&o===void 0&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;let l=this.getBorderAndBackgroundAppearances(a);if(o===void 0&&(o=this.data.fieldValue,!o))return`/Tx BMC q ${l}Q EMC`;if(Array.isArray(o)&&o.length===1&&(o=o[0]),Ae(typeof o=="string","Expected `value` to be a string."),o=o.trimEnd(),this.data.combo&&(o=this.data.options.find(({exportValue:D})=>o===D)?.displayValue||o),o==="")return`/Tx BMC q ${l}Q EMC`;r===void 0&&(r=this.rotation);let f,c=-1;this.data.multiLine?(f=o.split(/\\r\\n?|\\n/).map(B=>B.normalize("NFC")),c=f.length):f=[o.replace(/\\r\\n?|\\n/,"").normalize("NFC")];let{width:h,height:m}=this;r!==90&&r!==270||([h,m]=[m,h]),this._defaultAppearance||(this.data.defaultAppearanceData=O5(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let u,d,p,g=await e._getFontData(t,s,this.data.defaultAppearanceData,this._fieldResources.mergedResources),b=[],w=!1;for(let B of f){let D=g.encodeString(B);D.length>1&&(w=!0),b.push(D.join(""))}if(w&&n&o3)return{needAppearances:!0};if(w&&this._isOffscreenCanvasSupported){let B=this.data.comb?"monospace":"sans-serif",D=new Ll(t.xref,B),W=D.createFontResources(f.join("")),L=W.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){let H=this._fieldResources.mergedResources.get("Font");for(let[V,C]of L.getRawEntries())H.set(V,C)}else this._fieldResources.mergedResources.set("Font",L);let ot=D.fontName.name;g=await e._getFontData(t,s,{fontName:ot,fontSize:0},W);for(let H=0,V=b.length;H<V;H++)b[H]=M4(f[H]);let P=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=ot,[u,d,p]=this._computeFontSize(m-2,h-4,o,g,c),this.data.defaultAppearanceData=P}else this._isOffscreenCanvasSupported||F("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[u,d,p]=this._computeFontSize(m-2,h-4,o,g,c);let k=g.descent;k=isNaN(k)?a3*p:Math.max(a3*p,Math.abs(k)*d);let q=Math.min(Math.floor((m-d)/2),1),y=this.data.textAlignment,{ascent:v,descent:A}=g;isNaN(v)||isNaN(A)||!v&&!A?(v=1,A=.35):A=Math.abs(A);let x=(m-(v+A)*d)/2+A*d;if(this.data.multiLine)return this._getMultilineAppearance(u,b,g,d,h,m,y,2,q,k,p,a);if(this.data.comb)return this._getCombAppearance(u,g,b[0],d,h,x,y,D5(f[0]).dir==="rtl",a);let I=x;return y===0||y>2?`/Tx BMC q ${l}BT `+u+` 1 0 0 1 ${we(2)} ${we(I)} Tm (${lo(b[0])}) Tj ET Q EMC`:`/Tx BMC q ${l}BT `+u+` 1 0 0 1 0 0 Tm ${this._renderText(b[0],g,d,h,y,{shift:0},2,I)} ET Q EMC`}static async _getFontData(t,s,n,a){let i=new $s,o={font:null,clone(){return this}},{fontName:r,fontSize:l}=n;return await t.handleSetFont(a,[r&&it.get(r),l],null,i,s,o,null),o.font}_getTextWidth(t,s){return Math.sumPrecise(s.charsToGlyphs(t).map(n=>n.width))/1e3}_computeFontSize(t,s,n,a,i){let{fontSize:o}=this.data.defaultAppearanceData,r=1.35*(o||12),l=Math.round(t/r);if(!o){let f=m=>Math.floor(100*m)/100;if(i===-1){let m=this._getTextWidth(n,a);o=f(Math.min(t/1.35,s/m)),l=1}else{let m=n.split(/\\r\\n?|\\n/),u=[];for(let p of m){let g=a.encodeString(p).join(""),b=a.charsToGlyphs(g),w=a.getCharPositions(g);u.push({line:g,glyphs:b,positions:w})}let d=p=>{let g=0;for(let b of u)if(g+=this._splitLine(null,a,p,s,b).length*p,g>t)return!0;return!1};for(l=Math.max(l,i);r=t/l,o=f(r/1.35),!!d(o);)l++}let{fontName:c,fontColor:h}=this.data.defaultAppearanceData;this._defaultAppearance=(function({fontSize:u,fontName:d,fontColor:p}){return`/${S5(d)} ${u} Tf ${Ln(p,!0)}`})({fontSize:o,fontName:c,fontColor:h})}return[this._defaultAppearance,o,t/l]}_renderText(t,s,n,a,i,o,r,l){let f;i===1?f=(a-this._getTextWidth(t,s)*n)/2:i===2?f=a-this._getTextWidth(t,s)*n-r:f=r;let c=we(f-o.shift);return o.shift=f,`${c} ${l=we(l)} Td (${lo(t)}) Tj`}_getSaveFieldResources(t){let{localResources:s,appearanceResources:n,acroFormResources:a}=this._fieldResources,i=this.data.defaultAppearanceData?.fontName;if(!i)return s||R.empty;for(let o of[s,n])if(o instanceof R){let r=o.get("Font");if(r instanceof R&&r.has(i))return o}if(a instanceof R){let o=a.get("Font");if(o instanceof R&&o.has(i)){let r=new R(t);r.set(i,o.getRaw(i));let l=new R(t);return l.set("Font",r),R.merge({xref:t,dictArray:[l,s],mergeSubDicts:!0})}}return s||R.empty}getFieldObject(){return null}},ww=class extends $n{constructor(t){super(t);let{dict:s}=t;s.has("PMD")&&(this.flags|=Ia,this.data.hidden=!0,F("Barcodes are not supported")),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0,typeof this.data.fieldValue!="string"&&(this.data.fieldValue="");let n=rs({dict:s,key:"Q"});(!Number.isInteger(n)||n<0||n>2)&&(n=null),this.data.textAlignment=n;let a=rs({dict:s,key:"MaxLen"});(!Number.isInteger(a)||a<0)&&(a=0),this.data.maxLen=a,this.data.multiLine=this.hasFieldFlag($j),this.data.comb=this.hasFieldFlag(ek)&&!this.data.multiLine&&!this.data.password&&!this.hasFieldFlag(Qj)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(tk);let{actions:i}=this.data;if(!i)return;let o=/^AF(Date|Time)_(?:Keystroke|Format)(?:Ex)?\\([\'"]?([^\'"]+)[\'"]?\\);$/,r=!1,l=i.get("Format"),f=i.get("Keystroke");(l?.length===1&&f?.length===1&&o.test(l[0])&&o.test(f[0])||l?.length===0&&f?.length===1&&o.test(f[0])||f?.length===0&&l?.length===1&&o.test(l[0]))&&(r=!0);let c=[];l&&c.push(...l),f&&c.push(...f),r&&(i.delete("Keystroke"),i.set("Format",c));for(let h of c){let m=h.match(o);if(!m)continue;let u=m[1]==="Date",d=m[2],p=parseInt(d,10);if(isNaN(p)||Math.floor(Math.log10(p))+1!==m[2].length||(d=(u?Yy:Jy)[p]??d),this.data.datetimeFormat=d,!r)break;if(u){/HH|MM|ss|h/.test(d)?(this.data.datetimeType="datetime-local",this.data.timeStep=/ss/.test(d)?1:60):this.data.datetimeType="date";break}this.data.datetimeType="time",this.data.timeStep=/ss/.test(d)?1:60;break}}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(t,s,n,a,i,o,r,l,f){let c=i/this.data.maxLen,h=this.getBorderAndBackgroundAppearances(f),m=s.getCharPositions(n).map(([w,k])=>{let q=n.substring(w,k);return{glyph:q,width:this._getTextWidth(q,s)*a}});l&&m.reverse();let u=c*m.length,d=0;r===1?d+=Math.floor((i-u)/(2*c))*c:r===2&&(d+=i-u);let p=[],g=0;for(let w=0,k=m.length;w<k;w++){let{glyph:q,width:y}=m[w],v=w===0?(c-y)/2:c+(g-y)/2;p.push(`${we(v)} 0 Td (${lo(q)}) Tj`),g=y}let b=p.join(" ");return`/Tx BMC q ${h}BT `+t+` 1 0 0 1 ${we(d)} ${we(o)} Tm ${b} ET Q EMC`}_getMultilineAppearance(t,s,n,a,i,o,r,l,f,c,h,m){let u=[],d=i-2*l,p={shift:0};for(let w=0,k=s.length;w<k;w++){let q=s[w],y=this._splitLine(q,n,a,d);for(let v=0,A=y.length;v<A;v++){let x=y[v],I=w===0&&v===0?-f-(h-c):-h;u.push(this._renderText(x,n,a,i,r,p,l,I))}}let g=this.getBorderAndBackgroundAppearances(m),b=u.join(`\n`);return`/Tx BMC q ${g}BT `+t+` 1 0 0 1 0 ${we(o)} Tm ${b} ET Q EMC`}_splitLine(t,s,n,a,i={}){t=i.line||t;let o=i.glyphs||s.charsToGlyphs(t);if(o.length<=1)return[t];let r=i.positions||s.getCharPositions(t),l=n/1e3,f=[],c=-1,h=-1,m=-1,u=0,d=0;for(let p=0,g=o.length;p<g;p++){let[b,w]=r[p],k=o[p],q=k.width*l;k.unicode===" "?d+q>a?(f.push(t.substring(u,b)),u=b,d=q,c=-1,m=-1):(d+=q,c=b,h=w,m=p):d+q>a?c!==-1?(f.push(t.substring(u,h)),u=h,p=m+1,c=-1,d=0):(f.push(t.substring(u,b)),u=b,d=q):d+=q}return u<t.length&&f.push(t.substring(u)),f}async extractTextContent(t,s,n){await super.extractTextContent(t,s,n);let a=this.data.textContent;if(!a)return;let i=a.join(`\n`);if(i===this.data.fieldValue)return;let o=i.replaceAll(/([.*+?^${}()|[\\]\\\\])|(\\s+)/g,(r,l)=>l?`\\\\${l}`:"\\\\s+");new RegExp(`^\\\\s*${o}\\\\s*$`).test(this.data.fieldValue)&&(this.data.textContent=this.data.fieldValue.split(`\n`))}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.data.password,charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,datetimeFormat:this.data.datetimeFormat,hasDatetimeHTML:!!this.data.datetimeType,type:"text"}}},Gr,d1,J5=class J5 extends $n{constructor(s){super(s);at(this,Gr);this.checkedAppearance=null,this.uncheckedAppearance=null;let n=this.hasFieldFlag(Xj),a=this.hasFieldFlag(Yj);this.data.checkBox=!n&&!a,this.data.radioButton=n&&!a,this.data.pushButton=a,this.data.isTooltipOnly=!1,this.data.hasOwnCanvas=!0,this.data.noHTML=!1,this.data.checkBox?this._processCheckBox(s):this.data.radioButton?this._processRadioButton(s):this.data.pushButton?this._processPushButton(s):F("Invalid field flags for button widget annotation")}get _ownCanvasRequiresForms(){return this.data.checkBox||this.data.radioButton}async getOperatorList(s,n,a,i){if(this.data.pushButton)return super.getOperatorList(s,n,a,!1,i);if(a&yl&&a&Cu&&(this.data.checkBox||this.data.radioButton)){let l=(h,m)=>{let u=h.fnArray.indexOf(x5);u!==-1&&h.argsArray[u].push(m)},f=await N(this,Gr,d1).call(this,s,n,a,i,null,this.checkedAppearance);l(f.opList,"checked");let c=await N(this,Gr,d1).call(this,s,n,a,i,null,this.uncheckedAppearance);return l(c.opList,"unchecked"),f.opList.addOpList(c.opList),f.separateForm||(f.separateForm=c.separateForm),f.separateCanvas||(f.separateCanvas=c.separateCanvas),f}let o=null,r=null;if(i){let l=i.get(this.data.id);o=l?l.value:null,r=l?l.rotation:null}return o===null&&this.appearance?super.getOperatorList(s,n,a,i):(o??(o=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue),N(this,Gr,d1).call(this,s,n,a,i,r,o?this.checkedAppearance:this.uncheckedAppearance))}async save(s,n,a,i){this.data.checkBox?this._saveCheckbox(s,n,a,i):this.data.radioButton&&this._saveRadioButton(s,n,a,i)}async _saveCheckbox(s,n,a,i){if(!a)return;let o=a.get(this.data.id),r=this._buildFlags(o?.noView,o?.noPrint),l=o?.rotation,f=o?.value;if(l===void 0&&r===void 0&&(f===void 0||this.data.fieldValue===this.data.exportValue===f))return;let c=s.xref.fetchIfRef(this.ref);if(!(c instanceof R))return;c=c.clone(),l===void 0&&(l=this.rotation),f===void 0&&(f=this.data.fieldValue===this.data.exportValue);let h={path:this.data.fieldName,value:f?this.data.exportValue:""},m=it.get(f?this._onStateName:"Off");this.setValue(c,m,s.xref,i),c.set("AS",m),c.set("M",`D:${Ja()}`),r!==void 0&&c.set("F",r);let u=this._getMKDict(l);u&&c.set("MK",u),i.put(this.ref,{data:c,xfa:h,needAppearances:!1})}async _saveRadioButton(s,n,a,i){if(!a)return;let o=a.get(this.data.id),r=this._buildFlags(o?.noView,o?.noPrint),l=o?.rotation,f=o?.value;if(l===void 0&&r===void 0&&(f===void 0||this.data.fieldValue===this.data.buttonValue===f))return;let c=s.xref.fetchIfRef(this.ref);if(!(c instanceof R))return;c=c.clone(),f===void 0&&(f=this.data.fieldValue===this.data.buttonValue),l===void 0&&(l=this.rotation);let h={path:this.data.fieldName,value:f?this.data.buttonValue:""},m=it.get(f?this._onStateName:"Off");f&&this.setValue(c,m,s.xref,i),c.set("AS",m),c.set("M",`D:${Ja()}`),r!==void 0&&c.set("F",r);let u=this._getMKDict(l);u&&c.set("MK",u),i.put(this.ref,{data:c,xfa:h,needAppearances:!1})}_getDefaultCheckedAppearance(s,n){let{width:a,height:i}=this,o=[0,0,a,i],r=.8*Math.min(a,i),l,f;n==="check"?(l={width:.755*r,height:.705*r},f="3"):n==="disc"?(l={width:.791*r,height:.705*r},f="l"):Zt(`_getDefaultCheckedAppearance - unsupported type: ${n}`);let c=`q BT /PdfJsZaDb ${r} Tf 0 g ${we((a-l.width)/2)} ${we((i-l.height)/2)} Td (${f}) Tj ET Q`,h=new R(s.xref);h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",o),h.set("Matrix",[1,0,0,1,0,0]),h.set("Length",c.length);let m=new R(s.xref),u=new R(s.xref);u.set("PdfJsZaDb",this.fallbackFontDict),m.set("Font",u),h.set("Resources",m),this.checkedAppearance=new ts(c,h),this._streams.push(this.checkedAppearance)}_getOnStateName(s){let n=s.get("AP");if(!(n instanceof R))return null;let a=n.get("N");if(!(a instanceof R))return null;for(let i of a.getKeys())if(i!=="Off")return i;return null}_getExportValueForOptIndex(s,n,a){if(Number.isInteger(s)&&s>=0&&s<n.length){let i=this._decodeFormValue(a.fetchIfRef(n[s]));if(typeof i=="string")return i}return null}_getOptInfo(s,n,a,i){if(!Array.isArray(a))return null;let o=new Map,r=null,l=s.get("Parent"),f=l instanceof R?l.get("Kids"):null;if(Array.isArray(f))for(let c=0,h=Math.min(f.length,a.length);c<h;c++){let m=f[c];m instanceof rt&&oo(m,this.ref)&&(r=c);let u=i.fetchIfRef(m);if(!(u instanceof R))continue;u===s&&(r=c);let d=this._getOnStateName(u);typeof d!="string"||o.has(d)||o.set(d,c)}else a.length===1&&typeof n=="string"&&(r=0,o.set(n,0));return{currentIndex:r,opt:a,stateToIndex:o}}_getExportValue(s,n,a){if(!n||typeof s!="string"||s==="Off")return s;if(s===this._onStateName){let o=this._getExportValueForOptIndex(n.currentIndex,n.opt,a);if(o!==null)return o}if(n.stateToIndex.has(s)){let o=this._getExportValueForOptIndex(n.stateToIndex.get(s),n.opt,a);if(o!==null)return o}let i=parseInt(s,10);return Number.isInteger(i)&&String(i)===s&&this._getExportValueForOptIndex(i,n.opt,a)||s}_processCheckBox(s){let n=s.dict.get("AP"),a=n instanceof R?n.get("N"):null;a instanceof R||(a=null);let i=this._decodeFormValue(s.dict.get("AS"));typeof i=="string"&&(this.data.fieldValue=i);let o=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes",r=a?[...a.getKeys()]:[];if(r.length===0)r.push("Off",o);else if(r.length===1)r[0]==="Off"?r.push(o):r.unshift("Off");else if(r.includes(o))r.length=0,r.push("Off",o);else{let u=r.find(d=>d!=="Off");r.length=0,r.push("Off",u)}let l=r[1];this._onStateName=l;let f=rs({dict:s.dict,key:"Opt"}),c=this._getOptInfo(s.dict,l,f,s.xref);this.data.exportValue=this._getExportValue(l,c,s.xref),r.includes(this.data.fieldValue)||this.data.fieldValue===this.data.exportValue||(this.data.fieldValue="Off"),this.data.fieldValue=this._getExportValue(this.data.fieldValue,c,s.xref),this.data.defaultFieldValue=this._getExportValue(this.data.defaultFieldValue,c,s.xref);let h=a?.get(l);this.checkedAppearance=h instanceof Et?h:null;let m=a?.get("Off");this.uncheckedAppearance=m instanceof Et?m:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(s,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processRadioButton(s){this.data.buttonValue=null;let n=s.dict.get("Parent");if(n instanceof R){this.parent=s.dict.getRaw("Parent");let h=n.get("V");h instanceof it&&(this.data.fieldValue=this._decodeFormValue(h))}let a=s.dict.get("AP");if(!(a instanceof R))return;let i=a.get("N");if(!(i instanceof R))return;let o=null;for(let h of i.getKeys())if(h!=="Off"){o=h;break}this._onStateName=o;let r=rs({dict:s.dict,key:"Opt"}),l=this._getOptInfo(s.dict,o,r,s.xref);this.data.buttonValue=this._getExportValue(o,l,s.xref),this.data.fieldValue=this._getExportValue(this.data.fieldValue,l,s.xref),this.data.defaultFieldValue=this._getExportValue(this.data.defaultFieldValue,l,s.xref);let f=i.get(o);this.checkedAppearance=f instanceof Et?f:null;let c=i.get("Off");this.uncheckedAppearance=c instanceof Et?c:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(s,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processPushButton(s){let{dict:n,annotationGlobals:a}=s;n.has("A")||n.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!n.has("A")&&!n.has("AA"),Kl.parseDestDictionary({destDict:n,resultObj:this.data,docBaseUrl:a.baseUrl,docAttachments:a.attachments})):F("Push buttons without action dictionaries are not supported")}getFieldObject(){let s,n="button";return this.data.checkBox?(n="checkbox",s=this.data.exportValue):this.data.radioButton&&(n="radiobutton",s=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:s,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:n}}get fallbackFontDict(){let s=new R;return s.setIfName("BaseFont","ZapfDingbats"),s.setIfName("Type","FallbackType"),s.setIfName("Subtype","FallbackType"),s.setIfName("Encoding","ZapfDingbatsEncoding"),yt(this,"fallbackFontDict",s)}};Gr=new WeakSet,d1=function(s,n,a,i,o,r){if(!r)return this._getOperatorListNoAppearance();let l=this.appearance,f=la(r.dict.getArray("Matrix"),an);o&&r.dict.set("Matrix",this.getRotationMatrix(i)),this.appearance=r;let c=n3(J5.prototype,this,"getOperatorList").call(this,s,n,a,i);return this.appearance=l,r.dict.set("Matrix",f),c};var jw=J5,kw=class extends $n{constructor(t){var i;super(t);let{dict:s,xref:n}=t;this.indices=s.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];let a=rs({dict:s,key:"Opt"});if(Array.isArray(a))for(let o=0,r=a.length;o<r;o++){let l=n.fetchIfRef(a[o]),f=Array.isArray(l);this.data.options[o]={exportValue:this._decodeFormValue(f?n.fetchIfRef(l[0]):l),displayValue:this._decodeFormValue(f?n.fetchIfRef(l[1]):l)}}if(this.hasIndices){this.data.fieldValue=[];let o=this.data.options.length;for(let r of this.indices)Number.isInteger(r)&&r>=0&&r<o&&this.data.fieldValue.push(this.data.options[r].exportValue)}else typeof this.data.fieldValue=="string"?this.data.fieldValue=[this.data.fieldValue]:(i=this.data).fieldValue||(i.fieldValue=[]);this.data.options.length===0&&this.data.fieldValue.length>0&&(this.data.options=this.data.fieldValue.map(o=>({exportValue:o,displayValue:o}))),this.data.combo=this.hasFieldFlag(Jj),this.data.multiSelect=this.hasFieldFlag(Zj),this._hasText=!0}getFieldObject(){let t=this.data.combo?"combobox":"listbox",s=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:s,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}amendSavedDict(t,s){if(!this.hasIndices)return;let n=t?.get(this.data.id)?.value;Array.isArray(n)||(n=[n]);let a=[],{options:i}=this.data;for(let o=0,r=0,l=i.length;o<l;o++)i[o].exportValue===n[r]&&(a.push(o),r+=1);s.set("I",a)}async _getAppearance(t,s,n,a){if(this.data.combo)return super._getAppearance(t,s,n,a);let i,o,r=a?.get(this.data.id);if(r&&(o=r.rotation,i=r.value),o===void 0&&i===void 0&&!this._needAppearances)return null;i===void 0?i=this.data.fieldValue:Array.isArray(i)||(i=[i]);let{width:l,height:f}=this;o!==90&&o!==270||([l,f]=[f,l]);let c=this.data.options.length,h=[];for(let v=0;v<c;v++){let{exportValue:A}=this.data.options[v];i.includes(A)&&h.push(v)}this._defaultAppearance||(this.data.defaultAppearanceData=O5(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let m=await $n._getFontData(t,s,this.data.defaultAppearanceData,this._fieldResources.mergedResources),u,{fontSize:d}=this.data.defaultAppearanceData;if(d)u=this._defaultAppearance;else{let v=(f-1)/c,A,x=-1;for(let{displayValue:I}of this.data.options){let B=this._getTextWidth(I,m);B>x&&(x=B,A=I)}[u,d]=this._computeFontSize(v,l-4,A,m,-1)}let p=1.35*d,g=(p-d)/2,b=Math.floor(f/p),w=0;if(h.length>0){let v=Math.min(...h);w=He(Math.max(...h)-b+1,0,v)}let k=Math.min(w+b+1,c),q=["/Tx BMC q",`1 1 ${l} ${f} re W n`];if(h.length){q.push("0.600006 0.756866 0.854904 rg");for(let v of h)w<=v&&v<k&&q.push(`1 ${f-(v-w+1)*p} ${l} ${p} re f`)}q.push("BT",u,`1 0 0 1 0 ${f} Tm`);let y={shift:0};for(let v=w;v<k;v++){let{displayValue:A}=this.data.options[v],x=v===w?g:0;q.push(this._renderText(A,m,d,l,0,y,2,-p+x))}return q.push("ET Q EMC"),q.join(`\n`)}},Lh=class extends $n{constructor(s){super(s);Y(this,"_hasValueFromXFA",!1);this.data.fieldValue=null,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!this.data.hasOwnCanvas}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}},qw=class extends qs{constructor(t){super(t),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:s}=t;this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=s.has("Name")?s.get("Name").name:"Note"),s.has("State")?(this.data.state=s.get("State")||null,this.data.stateModel=s.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}},yw=class extends si{constructor(t){var i;super(t);let{dict:s,annotationGlobals:n}=t;this.data.noHTML=!1;let a=Tc(s,this.rectangle);a&&(this.data.quadPoints=a),(i=this.data).borderColor||(i.borderColor=this.data.color),Kl.parseDestDictionary({destDict:s,resultObj:this.data,docBaseUrl:n.baseUrl,docAttachments:n.attachments})}get overlaysTextContent(){return!0}},ff=class extends si{constructor(t){super(t);let{dict:s}=t;this.data.noHTML=!1,this.width!==0&&this.height!==0||(this.data.rect=null);let n=s.get("Parent");if(!n){F("Popup annotation has a missing or invalid parent annotation.");return}if(this.data.parentRect=Wn(n.getArray("Rect"),null),this.data.creationDate=n.get("CreationDate")||"",$t(n.get("RT"),c4)&&(n=n.get("IRT")),n.has("M")?(this.setModificationDate(n.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,n.has("C")?(this.setColor(n.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){let a=n.get("F");this._isViewable(a)&&this.setFlags(a)}this.setTitle(n.get("T")),this.data.titleObj=this._title,this.setContents(n.get("Contents")),this.data.contentsObj=this._contents,n.has("RC")&&(this.data.richText=lf.getRichTextAsHtml(n.get("RC"))),this.data.open=!!s.get("Open")}static createNewDict(t,s,n){let{oldAnnotation:a,rect:i,parent:o}=t,r=a||new R(s);return r.setIfNotExists("Type",it.get("Annot")),r.setIfNotExists("Subtype",it.get("Popup")),r.setIfNotExists("Open",!1),r.setIfArray("Rect",i),r.set("Parent",o),r}static async createNewAppearanceStream(t,s,n){return null}},gl=class extends qs{constructor(t){var a;super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1;let{annotationGlobals:s,xref:n}=t;if(this.setDefaultAppearance(t),this._hasAppearance=!!this.appearance,this._hasAppearance){let{fontColor:i,fontSize:o}=(function(l,f,c){return new Cp(l,f,c).parse()})(this.appearance,n,s.globalColorSpaceCache);this.data.defaultAppearanceData.fontColor=i,this.data.defaultAppearanceData.fontSize=o||10}else{(a=this.data.defaultAppearanceData).fontSize||(a.fontSize=10);let{fontColor:i,fontSize:o}=this.data.defaultAppearanceData;if(this._contents.str){this.data.textContent=this._contents.str.split(/\\r\\n?|\\n/).map(c=>c.trimEnd());let{coords:r,bbox:l,matrix:f}=Ll.getFirstPositionInfo(this.rectangle,this.rotation,o);this.data.textPosition=this._transformPoint(r,l,f)}if(this._isOffscreenCanvasSupported){let r=t.dict.get("CA"),l=new Ll(n,"sans-serif");this.appearance=l.createAppearance(this._contents.str,this.rectangle,this.rotation,o,i,r),this._streams.push(this.appearance)}else F("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}}get hasTextContent(){return this._hasAppearance}static createNewDict(t,s,{apRef:n,ap:a}){let{color:i,date:o,fontSize:r,oldAnnotation:l,rect:f,rotation:c,user:h,value:m}=t,u=l||new R(s);u.setIfNotExists("Type",it.get("Annot")),u.setIfNotExists("Subtype",it.get("FreeText")),u.set(l?"M":"CreationDate",`D:${Ja(o)}`),l&&u.delete("RC"),u.setIfArray("Rect",f);let d=`/Helv ${r} Tf ${Ln(i,!0)}`;if(u.set("DA",d),u.setIfDefined("Contents",Ze(m)),u.setIfNotExists("F",4),u.setIfNotExists("Border",[0,0,0]),u.setIfNumber("Rotate",c),u.setIfDefined("T",Ze(h)),n||a){let p=new R(s);u.set("AP",p),p.set("N",n||a)}return u}static async createNewAppearanceStream(t,s,n){let{baseFontRef:a,evaluator:i,task:o}=n,{color:r,fontSize:l,rect:f,rotation:c,value:h}=t;if(!r)return null;let m=new R(s),u=new R(s);if(a)u.set("Helv",a);else{let U=new R(s);U.setIfName("BaseFont","Helvetica"),U.setIfName("Type","Font"),U.setIfName("Subtype","Type1"),U.setIfName("Encoding","WinAnsiEncoding"),u.set("Helv",U)}m.set("Font",u);let d=await $n._getFontData(i,o,{fontName:"Helv",fontSize:l},m),[p,g,b,w]=f,k=b-p,q=w-g;c%180!=0&&([k,q]=[q,k]);let y=h.split(`\n`),v=l/1e3,A=-1/0,x=[];for(let U of y){let _=d.encodeString(U);if(_.length>1)return null;U=_.join(""),x.push(U);let ht=0,vt=d.charsToGlyphs(U);for(let G of vt)ht+=G.width*v;A=Math.max(A,ht)}let I=A>k?k/A:1,B=1,D=1.35*l,W=1*l,L=D*y.length;L>q&&(B=q/L);let ot=l*Math.min(I,B),P,H,V;switch(c){case 0:V=[1,0,0,1],H=[f[0],f[1],k,q],P=[f[0],f[3]-W];break;case 90:V=[0,1,-1,0],H=[f[1],-f[2],k,q],P=[f[1],-f[0]-W];break;case 180:V=[-1,0,0,-1],H=[-f[2],-f[3],k,q],P=[-f[2],-f[1]-W];break;case 270:V=[0,-1,1,0],H=[-f[3],f[0],k,q],P=[-f[3],f[2]-W]}let C=["q",`${V.join(" ")} 0 0 cm`,`${H.join(" ")} re W n`,"BT",`${Ln(r,!0)}`,`0 Tc /Helv ${we(ot)} Tf`];C.push(`${P.join(" ")} Td (${lo(x[0])}) Tj`);let M=we(D);for(let U=1,_=x.length;U<_;U++){let ht=x[U];C.push(`0 -${M} Td (${lo(ht)}) Tj`)}C.push("ET","Q");let J=C.join(`\n`),et=new R(s);return et.set("FormType",1),et.setIfName("Subtype","Form"),et.setIfName("Type","XObject"),et.set("BBox",f),et.set("Resources",m),et.set("Matrix",[1,0,0,1,-f[0],-f[1]]),new ts(J,et)}},vw=class extends qs{constructor(t){super(t);let{dict:s,xref:n}=t;this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let a=Al(s.getArray("L"),[0,0,0,0]);if(this.data.lineCoordinates=ee.normalizeRect(a),this.setLineEndings(s.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){let i=ms(this.color,[0,0,0]),o=s.get("CA"),r=ms(Pi(s.getArray("IC"),null)),l=r?o:null,f=this.borderStyle.width||1,c=2*f,h=[this.data.lineCoordinates[0]-c,this.data.lineCoordinates[1]-c,this.data.lineCoordinates[2]+c,this.data.lineCoordinates[3]+c];ee.intersect(this.rectangle,h)||(this.rectangle=h),this._setDefaultAppearance({xref:n,extra:`${f} w`,strokeColor:i,fillColor:r,strokeAlpha:o,fillAlpha:l,pointsCallback:(m,u)=>(m.push(`${a[0]} ${a[1]} m`,`${a[2]} ${a[3]} l`,"S"),[u[0]-f,u[7]-f,u[2]+f,u[3]+f])})}}},xw=class extends qs{constructor(t){super(t);let{dict:s,xref:n}=t;if(this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,!this.appearance){let a=ms(this.color,[0,0,0]),i=s.get("CA"),o=ms(Pi(s.getArray("IC"),null)),r=o?i:null;if(this.borderStyle.width===0&&!o)return;this._setDefaultAppearance({xref:n,extra:`${this.borderStyle.width} w`,strokeColor:a,fillColor:o,strokeAlpha:i,fillAlpha:r,pointsCallback:(l,f)=>{let c=f[4]+this.borderStyle.width/2,h=f[5]+this.borderStyle.width/2,m=f[6]-f[4]-this.borderStyle.width,u=f[3]-f[7]-this.borderStyle.width;return l.push(`${c} ${h} ${m} ${u} re`),o?l.push("B"):l.push("S"),[f[0],f[7],f[2],f[3]]}})}}},Sw=class extends qs{constructor(t){super(t);let{dict:s,xref:n}=t;if(!this.appearance){let a=ms(this.color,[0,0,0]),i=s.get("CA"),o=ms(Pi(s.getArray("IC"),null)),r=o?i:null;if(this.borderStyle.width===0&&!o)return;let l=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:n,extra:`${this.borderStyle.width} w`,strokeColor:a,fillColor:o,strokeAlpha:i,fillAlpha:r,pointsCallback:(f,c)=>{let h=c[0]+this.borderStyle.width/2,m=c[1]-this.borderStyle.width/2,u=c[6]-this.borderStyle.width/2,d=c[7]+this.borderStyle.width/2,p=h+(u-h)/2,g=m+(d-m)/2,b=(u-h)/2*l,w=(d-m)/2*l;return f.push(`${p} ${d} m`,`${p+b} ${d} ${u} ${g+w} ${u} ${g} c`,`${u} ${g-w} ${p+b} ${m} ${p} ${m} c`,`${p-b} ${m} ${h} ${g-w} ${h} ${g} c`,`${h} ${g+w} ${p-b} ${d} ${p} ${d} c`,"h"),o?f.push("B"):f.push("S"),[c[0],c[7],c[2],c[3]]}})}}},Eh=class extends qs{constructor(t){super(t);let{dict:s,xref:n}=t;this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.vertices=null,this instanceof Kh||(this.setLineEndings(s.getArray("LE")),this.data.lineEndings=this.lineEndings);let a=s.getArray("Vertices");if(!Fe(a,null))return;let i=this.data.vertices=Float32Array.from(a);if(!this.appearance){let o=ms(this.color,[0,0,0]),r=s.get("CA"),l,f=Pi(s.getArray("IC"),null);f&&(f=ms(f)),l=f?this.color?f.every((u,d)=>u===o[d])?"f":"B":"f":"S";let c=this.borderStyle.width||1,h=2*c,m=Xa.slice();for(let u=0,d=i.length;u<d;u+=2)ee.rectBoundingBox(i[u]-h,i[u+1]-h,i[u]+h,i[u+1]+h,m);ee.intersect(this.rectangle,m)||(this.rectangle=m),this._setDefaultAppearance({xref:n,extra:`${c} w`,strokeColor:o,strokeAlpha:r,fillColor:f,fillAlpha:f?r:null,pointsCallback:(u,d)=>{for(let p=0,g=i.length;p<g;p+=2)u.push(`${i[p]} ${i[p+1]} ${p===0?"m":"l"}`);return u.push(l),[d[0],d[7],d[2],d[3]]}})}}},Kh=class extends Eh{},Aw=class extends qs{},pi=class extends qs{constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:s,xref:n}=t;this.data.inkLists=[],this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=s.get("CA")||1;let a=s.getArray("InkList");if(Array.isArray(a)){for(let i of a){if(!Array.isArray(i))continue;let o=new Float32Array(i.length);this.data.inkLists.push(o);for(let r=0,l=i.length;r<l;r+=2){let f=n.fetchIfRef(i[r]),c=n.fetchIfRef(i[r+1]);typeof f=="number"&&typeof c=="number"&&(o[r]=f,o[r+1]=c)}}if(!this.appearance){let i=ms(this.color,[0,0,0]),o=s.get("CA"),r=this.borderStyle.width||1,l=2*r,f=Xa.slice();for(let c of this.data.inkLists)for(let h=0,m=c.length;h<m;h+=2)ee.rectBoundingBox(c[h]-l,c[h+1]-l,c[h]+l,c[h+1]+l,f);ee.intersect(this.rectangle,f)||(this.rectangle=f),this._setDefaultAppearance({xref:n,extra:`${r} w`,strokeColor:i,strokeAlpha:o,pointsCallback:(c,h)=>{for(let m of this.data.inkLists){for(let u=0,d=m.length;u<d;u+=2)c.push(`${m[u]} ${m[u+1]} ${u===0?"m":"l"}`);c.push("S")}return[h[0],h[7],h[2],h[3]]}})}}}static createNewDict(t,s,{apRef:n,ap:a}){let{oldAnnotation:i,color:o,date:r,opacity:l,paths:f,outlines:c,rect:h,rotation:m,thickness:u,user:d}=t,p=i||new R(s);if(p.setIfNotExists("Type",it.get("Annot")),p.setIfNotExists("Subtype",it.get("Ink")),p.set(i?"M":"CreationDate",`D:${Ja(r)}`),p.setIfArray("Rect",h),p.setIfArray("InkList",c?.points||f?.points),p.setIfNotExists("F",4),p.setIfNumber("Rotate",m),p.setIfDefined("T",Ze(d)),c&&p.setIfName("IT","InkHighlight"),u>0){let g=new R(s);p.set("BS",g),g.set("W",u)}if(p.setIfArray("C",ms(o)),p.setIfNumber("CA",l),a||n){let g=new R(s);p.set("AP",g),g.set("N",n||a)}return p}static async createNewAppearanceStream(t,s,n){if(t.outlines)return this.createNewAppearanceStreamForHighlight(t,s,n);let{color:a,rect:i,paths:o,thickness:r,opacity:l}=t;if(!a)return null;let f=[`${r} w 1 J 1 j`,`${Ln(a,!1)}`];l!==1&&f.push("/R0 gs");for(let m of o.lines)gw(m,f,!0);f.push("S");let c=f.join(`\n`),h=new R(s);if(h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",i),h.set("Length",c.length),l!==1){let m=new R(s),u=new R(s),d=new R(s);d.set("CA",l),d.setIfName("Type","ExtGState"),u.set("R0",d),m.set("ExtGState",u),h.set("Resources",m)}return new ts(c,h)}static async createNewAppearanceStreamForHighlight(t,s,n){let{color:a,rect:i,outlines:{outline:o},opacity:r}=t;if(!a)return null;let l=[`${Ln(a,!0)}`,"/R0 gs"];gw(o,l),l.push("h f");let f=l.join(`\n`),c=new R(s);c.set("FormType",1),c.setIfName("Subtype","Form"),c.setIfName("Type","XObject"),c.set("BBox",i),c.set("Length",f.length);let h=new R(s),m=new R(s);h.set("ExtGState",m),c.set("Resources",h);let u=new R(s);return m.set("R0",u),u.setIfName("BM","Multiply"),r!==1&&(u.set("ca",r),u.setIfName("Type","ExtGState")),new ts(f,c)}},bl=class extends qs{constructor(t){super(t);let{dict:s,xref:n}=t;if(this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=s.get("CA")||1,this.data.quadPoints=Tc(s,null)){if(!this.appearance){let a=ms(this.color,[1,1,0]),i=s.get("CA");this._setDefaultAppearance({xref:n,fillColor:a,blendMode:"Multiply",fillAlpha:i,pointsCallback:(o,r)=>(o.push(`${r[0]} ${r[1]} m`,`${r[2]} ${r[3]} l`,`${r[6]} ${r[7]} l`,`${r[4]} ${r[5]} l`,"f"),[r[0],r[7],r[2],r[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}static createNewDict(t,s,{apRef:n,ap:a}){let{color:i,date:o,oldAnnotation:r,opacity:l,rect:f,rotation:c,user:h,quadPoints:m}=t,u=r||new R(s);if(u.setIfNotExists("Type",it.get("Annot")),u.setIfNotExists("Subtype",it.get("Highlight")),u.set(r?"M":"CreationDate",`D:${Ja(o)}`),u.setIfArray("Rect",f),u.setIfNotExists("F",4),u.setIfNotExists("Border",[0,0,0]),u.setIfNumber("Rotate",c),u.setIfArray("QuadPoints",m),u.setIfArray("C",ms(i)),u.setIfNumber("CA",l),u.setIfDefined("T",Ze(h)),n||a){let d=new R(s);u.set("AP",d),d.set("N",n||a)}return u}static async createNewAppearanceStream(t,s,n){let{color:a,rect:i,outlines:o,opacity:r}=t;if(!a)return null;let l=[`${Ln(a,!0)}`,"/R0 gs"],f=[];for(let p of o){f.length=0,f.push(`${we(p[0])} ${we(p[1])} m`);for(let g=2,b=p.length;g<b;g+=2)f.push(`${we(p[g])} ${we(p[g+1])} l`);f.push("h"),l.push(f.join(`\n`))}l.push("f*");let c=l.join(`\n`),h=new R(s);h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",i),h.set("Length",c.length);let m=new R(s),u=new R(s);m.set("ExtGState",u),h.set("Resources",m);let d=new R(s);return u.set("R0",d),d.setIfName("BM","Multiply"),r!==1&&(d.set("ca",r),d.setIfName("Type","ExtGState")),new ts(c,h)}},Iw=class extends qs{constructor(t){super(t);let{dict:s,xref:n}=t;if(this.data.quadPoints=Tc(s,null)){if(!this.appearance){let a=ms(this.color,[0,0,0]),i=s.get("CA");this._setDefaultAppearance({xref:n,extra:"[] 0 d 0.571 w",strokeColor:a,strokeAlpha:i,pointsCallback:(o,r)=>(o.push(`${r[4]} ${r[5]+1.3} m`,`${r[6]} ${r[7]+1.3} l`,"S"),[r[0],r[7],r[2],r[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},Cw=class extends qs{constructor(t){super(t);let{dict:s,xref:n}=t;if(this.data.quadPoints=Tc(s,null)){if(!this.appearance){let a=ms(this.color,[0,0,0]),i=s.get("CA");this._setDefaultAppearance({xref:n,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:i,pointsCallback:(o,r)=>{let l=(r[1]-r[5])/6,f=l,c=r[4],h=r[5],m=r[6];o.push(`${c} ${h+f} m`);do c+=2,f=f===0?l:0,o.push(`${c} ${h+f} l`);while(c<m);return o.push("S"),[r[4],h-2*l,m,h+2*l]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},Hw=class extends qs{constructor(t){super(t);let{dict:s,xref:n}=t;if(this.data.quadPoints=Tc(s,null)){if(!this.appearance){let a=ms(this.color,[0,0,0]),i=s.get("CA");this._setDefaultAppearance({xref:n,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:i,pointsCallback:(o,r)=>(o.push((r[0]+r[4])/2+" "+(r[1]+r[5])/2+" m",(r[2]+r[6])/2+" "+(r[3]+r[7])/2+" l","S"),[r[0],r[7],r[2],r[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}},Ci,ku,d7,Fa=class extends qs{constructor(s){super(s);at(this,Ci,null);this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1}mustBeViewedWhenEditing(s,n=null){return s?(this.data.isEditable&&(S(this,Ci)??Bt(this,Ci,this.data.hasOwnCanvas),this.data.hasOwnCanvas=!0),!0):(S(this,Ci)!==null&&(this.data.hasOwnCanvas=S(this,Ci),Bt(this,Ci,null)),!n?.has(this.data.id))}static createNewDict(s,n,{apRef:a,ap:i}){let{date:o,oldAnnotation:r,rect:l,rotation:f,user:c}=s,h=r||new R(n);if(h.setIfNotExists("Type",it.get("Annot")),h.setIfNotExists("Subtype",it.get("Stamp")),h.set(r?"M":"CreationDate",`D:${Ja(o)}`),h.setIfArray("Rect",l),h.setIfNotExists("F",4),h.setIfNotExists("Border",[0,0,0]),h.setIfNumber("Rotate",f),h.setIfDefined("T",Ze(c)),a||i){let m=new R(n);h.set("AP",m),m.set("N",a||i)}return h}static async createNewAppearanceStream(s,n,a){if(s.oldAnnotation)return null;if(s.isSignature)return N(this,ku,d7).call(this,s,n);let{rotation:i}=s,{imageRef:o,width:r,height:l}=a.image,f=new R(n),c=new R(n);f.set("XObject",c),c.set("Im0",o);let h=`q ${r} 0 0 ${l} 0 0 cm /Im0 Do Q`,m=new R(n);if(m.set("FormType",1),m.setIfName("Subtype","Form"),m.setIfName("Type","XObject"),m.set("BBox",[0,0,r,l]),m.set("Resources",f),i){let u=O1(i,r,l);m.set("Matrix",u)}return new ts(h,m)}};Ci=new WeakMap,ku=new WeakSet,d7=async function(s,n){let{areContours:a,color:i,rect:o,lines:r,thickness:l}=s;if(!i)return null;let f=[`${l} w 1 J 1 j`,`${Ln(i,a)}`];for(let m of r)gw(m,f,!0);f.push(a?"F":"S");let c=f.join(`\n`),h=new R(n);return h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",o),h.set("Length",c.length),new ts(c,h)},at(Fa,ku);var Bw=class extends qs{constructor(t){super(t);let{annotationGlobals:s,dict:n}=t,a=n.get("FS");this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.fileId=this._getAttachmentId(a,n.getRaw("FS"),s),this.data.file=new As(a).serializable;let i=n.get("Name");this.data.name=i instanceof it?Jt(i.name):"PushPin";let o=n.get("ca");this.data.fillAlpha=typeof o=="number"&&o>=0&&o<=1?o:null}},oc,ql=class ql extends si{constructor(t){super(t),this.data.noHTML=!0}_setMediaData({assetRef:t,assetDict:s,filename:n,contentType:a,wrapSound:i=!1},o){this.data.noHTML=!1,this.data.richMedia={fileId:this._getAttachmentId(s,t,o,i),filename:n,contentType:a}}static _getContentType(t,s,n=null){if(typeof n=="string"&&S(ql,oc).test(n))return n;let a=As.pickPlatformItem(t.get("EF")),i=a instanceof Et?a.dict?.get("Subtype"):null;if(i instanceof it&&S(ql,oc).test(i.name))return i.name;switch(s.split(".").at(-1)?.toLowerCase()){case"mp4":case"m4v":return"video/mp4";case"webm":return"video/webm";case"ogv":return"video/ogg";case"mov":return"video/quicktime";case"mp3":return"audio/mpeg";case"m4a":return"audio/mp4";case"wav":return"audio/wav";case"oga":case"ogg":return"audio/ogg";default:return null}}};oc=new WeakMap,at(ql,oc,/^(?:video|audio)\\//);var Ji=ql,qu,g7,yu=class yu extends Ji{constructor(t){var r;super(t);let{dict:s,xref:n,annotationGlobals:a}=t,i=s.get("RichMediaContent");if(!(i instanceof R))return;let o=N(r=yu,qu,g7).call(r,i,n);o?this._setMediaData(o,a):F("RichMedia annotation has no playable asset.")}};qu=new WeakSet,g7=function(t,s){let n=t.get("Configurations");if(!Array.isArray(n))return null;for(let a of n){let i=s.fetchIfRef(a);if(!(i instanceof R))continue;let o=i.get("Instances");if(Array.isArray(o))for(let r of o){let l=s.fetchIfRef(r);if(!(l instanceof R)||$t(l.get("Subtype"),"Flash"))continue;let f=l.getRaw("Asset"),c=s.fetchIfRef(f);if(!(c instanceof R)||!As.hasEmbeddedFile(c))continue;let{filename:h}=new As(c).serializable,m=Ji._getContentType(c,h);if(m)return{assetRef:f instanceof rt?f:null,assetDict:c,filename:h,contentType:m}}}return null},at(yu,qu);var Tw=yu,_s,b7,w7,Fw,Mw,j7,vu=class vu extends Ji{constructor(t){var o;super(t);let{dict:s,xref:n,annotationGlobals:a}=t,i=N(o=vu,_s,b7).call(o,s,n);i&&this._setMediaData(i,a)}};_s=new WeakSet,b7=function(t,s){for(let n of N(this,_s,w7).call(this,t)){let a=N(this,_s,Mw).call(this,n.get("R"),s,new re);if(a)return a}return null},w7=function*(t){let s=t.get("A");s instanceof R&&$t(s.get("S"),"Rendition")&&N(this,_s,Fw).call(this,s)&&(yield s);let n=t.get("AA");if(n instanceof R)for(let[,a]of n)a instanceof R&&$t(a.get("S"),"Rendition")&&N(this,_s,Fw).call(this,a)&&(yield a)},Fw=function(t){let s=t.get("OP");return s===void 0||s===Pj||s===Uj},Mw=function(t,s,n){if(!(t instanceof R))return null;let a=t.get("S");if($t(a,"MR"))return N(this,_s,j7).call(this,t.get("C"),s);if($t(a,"SR")){let i=t.get("R");if(Array.isArray(i))for(let o of i){if(o instanceof rt){if(n.has(o))continue;n.put(o)}let r=N(this,_s,Mw).call(this,s.fetchIfRef(o),s,n);if(r)return r}}return null},j7=function(t,s){if(!(t instanceof R&&$t(t.get("S"),"MCD")))return null;let n=t.getRaw("D"),a=s.fetchIfRef(n),i=t.get("CT"),o,r,l=typeof i=="string"?i:null;if(a instanceof Et){o=a.dict;let c=t.get("N");if(r=typeof c=="string"?Jt(c):"",!l){let h=a.dict.get("Subtype");h instanceof it&&(l=h.name)}}else{if(!(a instanceof R)||!As.hasEmbeddedFile(a))return null;o=a,{filename:r}=new As(a).serializable}let f=Ji._getContentType(o,r,l);return f?{assetRef:n instanceof rt?n:null,assetDict:o,filename:r,contentType:f}:null},at(vu,_s);var Rw=vu,zw=class extends Ji{constructor(t){super(t);let{dict:s,xref:n,annotationGlobals:a}=t,i=s.getRaw("Sound");if(!(i instanceof rt))return;let o;try{o=n.fetch(i)}catch(r){if(r instanceof de)throw r;F(`SoundAnnotation: "${r}".`);return}o instanceof Et&&R8(o.dict)&&this._setMediaData({assetRef:i,assetDict:o.dict,filename:"sound.wav",contentType:"audio/wav",wrapSound:!0},a)}},Cv={get r(){return yt(this,"r",new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]))},get k(){return yt(this,"k",new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]))}};function Ba(e,t,s){let n=1732584193,a=-271733879,i=-1732584194,o=271733878,r=s+72&-64,l=new Uint8Array(r),f,c;for(f=0;f<s;++f)l[f]=e[t++];l[f++]=128;let h=r-8;f<h&&(f=h),l[f++]=s<<3&255,l[f++]=s>>5&255,l[f++]=s>>13&255,l[f++]=s>>21&255,l[f++]=s>>>29&255,f+=3;let m=new Int32Array(16),{k:u,r:d}=Cv;for(f=0;f<r;){for(c=0;c<16;++c,f+=4)m[c]=l[f]|l[f+1]<<8|l[f+2]<<16|l[f+3]<<24;let p,g,b=n,w=a,k=i,q=o;for(c=0;c<64;++c){c<16?(p=w&k|~w&q,g=c):c<32?(p=q&w|~q&k,g=5*c+1&15):c<48?(p=w^k^q,g=3*c+5&15):(p=k^(w|~q),g=7*c&15);let y=q,v=b+p+u[c]+m[g]|0,A=d[c];q=k,k=w,w=w+(v<<A|v>>>32-A)|0,b=y}n=n+b|0,a=a+w|0,i=i+k|0,o=o+q|0}return new Uint8Array([255&n,n>>8&255,n>>16&255,n>>>24&255,255&a,a>>8&255,a>>16&255,a>>>24&255,255&i,i>>8&255,i>>16&255,i>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255])}function G6(e){try{return io(e)}catch(t){return F(`UTF-8 decoding failed: "${t}".`),e}}var Dw=class extends go{constructor(){super(...arguments);Y(this,"node",null)}onEndElement(s){let n=super.onEndElement(s);if(n&&s==="xfa:datasets")throw this.node=n,new Error("Aborting DatasetXMLParser.")}},Ow=class{constructor(t){if(t.datasets)this.node=new go({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{let s=new Dw({hasAttributes:!0});try{s.parseFromString(t["xdp:xdp"])}catch{}this.node=s.node}}getValue(t){if(!this.node||!t)return"";let s=this.node.searchNode(O4(t),0);return s?s.firstChild?.nodeName==="value"?s.children.map(a=>G6(a.textContent)):G6(s.textContent):""}},lc,fc,Xr,_a,Hi,Bi,xu,k7,Nw=class{constructor(t){at(this,xu);at(this,lc);Y(this,"minX",1/0);Y(this,"minY",1/0);Y(this,"maxX",-1/0);Y(this,"maxY",-1/0);at(this,fc,null);at(this,Xr,[]);at(this,_a,[]);at(this,Hi,-1);at(this,Bi,!1);Bt(this,lc,t);let s=t.data.quadPoints;if(s){for(let n=0,a=s.length;n<a;n+=8)this.minX=Math.min(this.minX,s[n]),this.maxX=Math.max(this.maxX,s[n+2]),this.minY=Math.min(this.minY,s[n+5]),this.maxY=Math.max(this.maxY,s[n+1]);s.length>8&&Bt(this,fc,s)}else[this.minX,this.minY,this.maxX,this.maxY]=t.data.rect}addGlyph(t,s,n){return N(this,xu,k7).call(this,t,s)?(S(this,_a).length>0&&(S(this,Xr).push(S(this,_a).join("")),S(this,_a).length=0),S(this,Xr).push(n),Bt(this,Bi,!0),!0):(this.disableExtraChars(),!1)}addExtraChar(t){S(this,Bi)&&S(this,_a).push(t)}disableExtraChars(){S(this,Bi)&&(Bt(this,Bi,!1),S(this,_a).length=0)}setText(){S(this,lc).data.overlaidText=S(this,Xr).join("")}};lc=new WeakMap,fc=new WeakMap,Xr=new WeakMap,_a=new WeakMap,Hi=new WeakMap,Bi=new WeakMap,xu=new WeakSet,k7=function(t,s){if(this.minX>=t||this.maxX<=t||this.minY>=s||this.maxY<=s)return!1;let n=S(this,fc);if(!n)return!0;if(S(this,Hi)>=0){let a=S(this,Hi);if(!(n[a]>=t||n[a+2]<=t||n[a+5]>=s||n[a+1]<=s))return!0;Bt(this,Hi,-1)}for(let a=0,i=n.length;a<i;a+=8)if(!(n[a]>=t||n[a+2]<=t||n[a+5]>=s||n[a+1]<=s))return Bt(this,Hi,a),!0;return!1};var No=64,Yr,cc,Jr,hc,Qr,uc,mc,pc,Zr,g1,_w=class{constructor(t){at(this,Zr);at(this,Yr,[]);at(this,cc,[]);at(this,Jr);at(this,hc);at(this,Qr);at(this,uc);at(this,mc);at(this,pc);var r,l;let s=1/0,n=1/0,a=-1/0,i=-1/0,o=S(this,Yr);for(let f of t){if(!f.data.quadPoints&&!f.data.rect)continue;let c=new Nw(f);o.push(c),s=Math.min(s,c.minX),n=Math.min(n,c.minY),a=Math.max(a,c.maxX),i=Math.max(i,c.maxY)}Bt(this,Jr,s),Bt(this,Qr,n),Bt(this,hc,a),Bt(this,uc,i),Bt(this,mc,63/(a-s)),Bt(this,pc,63/(i-n));for(let f of o){let c=N(this,Zr,g1).call(this,f.minX,f.minY),h=N(this,Zr,g1).call(this,f.maxX,f.maxY),m=(h-c)%No,u=Math.floor((h-c)/No);for(let d=c;d<=c+u*No;d+=No)for(let p=0;p<=m;p++)((r=S(this,cc))[l=d+p]??(r[l]=[])).push(f)}}addGlyph(t,s,n,a){let i=t[4]+s/2,o=t[5]+n/2;if(i<S(this,Jr)||o<S(this,Qr)||i>S(this,hc)||o>S(this,uc))return;let r=S(this,cc)[N(this,Zr,g1).call(this,i,o)];if(r)for(let l of r)l.addGlyph(i,o,a)}addExtraChar(t){for(let s of S(this,Yr))s.addExtraChar(t)}setText(){for(let t of S(this,Yr))t.setText()}};Yr=new WeakMap,cc=new WeakMap,Jr=new WeakMap,hc=new WeakMap,Qr=new WeakMap,uc=new WeakMap,mc=new WeakMap,pc=new WeakMap,Zr=new WeakSet,g1=function(t,s){return Math.floor((t-S(this,Jr))*S(this,mc))+Math.floor((s-S(this,Qr))*S(this,pc))*No};var At=class{constructor(t,s){this.high=0|t,this.low=0|s}and(t){this.high&=t.high,this.low&=t.low}xor(t){this.high^=t.high,this.low^=t.low}shiftRight(t){this.low=this.low>>>t|this.high<<32-t,this.high=this.high>>>t|0}rotateRight(t){let s,n;32&t?(n=this.low,s=this.high):(s=this.low,n=this.high),t&=31,this.low=s>>>t|n<<32-t,this.high=n>>>t|s<<32-t}not(){this.high=~this.high,this.low=~this.low}add(t){let s=(this.low>>>0)+(t.low>>>0),n=(this.high>>>0)+(t.high>>>0);s>4294967295&&(n+=1),this.low=0|s,this.high=0|n}copyTo(t,s){t[s]=this.high>>>24&255,t[s+1]=this.high>>16&255,t[s+2]=this.high>>8&255,t[s+3]=255&this.high,t[s+4]=this.low>>>24&255,t[s+5]=this.low>>16&255,t[s+6]=this.low>>8&255,t[s+7]=255&this.low}assign(t){this.high=t.high,this.low=t.low}},Hv={get k(){return yt(this,"k",[new At(1116352408,3609767458),new At(1899447441,602891725),new At(3049323471,3964484399),new At(3921009573,2173295548),new At(961987163,4081628472),new At(1508970993,3053834265),new At(2453635748,2937671579),new At(2870763221,3664609560),new At(3624381080,2734883394),new At(310598401,1164996542),new At(607225278,1323610764),new At(1426881987,3590304994),new At(1925078388,4068182383),new At(2162078206,991336113),new At(2614888103,633803317),new At(3248222580,3479774868),new At(3835390401,2666613458),new At(4022224774,944711139),new At(264347078,2341262773),new At(604807628,2007800933),new At(770255983,1495990901),new At(1249150122,1856431235),new At(1555081692,3175218132),new At(1996064986,2198950837),new At(2554220882,3999719339),new At(2821834349,766784016),new At(2952996808,2566594879),new At(3210313671,3203337956),new At(3336571891,1034457026),new At(3584528711,2466948901),new At(113926993,3758326383),new At(338241895,168717936),new At(666307205,1188179964),new At(773529912,1546045734),new At(1294757372,1522805485),new At(1396182291,2643833823),new At(1695183700,2343527390),new At(1986661051,1014477480),new At(2177026350,1206759142),new At(2456956037,344077627),new At(2730485921,1290863460),new At(2820302411,3158454273),new At(3259730800,3505952657),new At(3345764771,106217008),new At(3516065817,3606008344),new At(3600352804,1432725776),new At(4094571909,1467031594),new At(275423344,851169720),new At(430227734,3100823752),new At(506948616,1363258195),new At(659060556,3750685593),new At(883997877,3785050280),new At(958139571,3318307427),new At(1322822218,3812723403),new At(1537002063,2003034995),new At(1747873779,3602036899),new At(1955562222,1575990012),new At(2024104815,1125592928),new At(2227730452,2716904306),new At(2361852424,442776044),new At(2428436474,593698344),new At(2756734187,3733110249),new At(3204031479,2999351573),new At(3329325298,3815920427),new At(3391569614,3928383900),new At(3515267271,566280711),new At(3940187606,3454069534),new At(4118630271,4000239992),new At(116418474,1914138554),new At(174292421,2731055270),new At(289380356,3203993006),new At(460393269,320620315),new At(685471733,587496836),new At(852142971,1086792851),new At(1017036298,365543100),new At(1126000580,2618297676),new At(1288033470,3409855158),new At(1501505948,4234509866),new At(1607167915,987167468),new At(1816402316,1246189591)])}};function Bv(e,t,s,n,a){e.assign(t),e.and(s),a.assign(t),a.not(),a.and(n),e.xor(a)}function Tv(e,t,s,n,a){e.assign(t),e.and(s),a.assign(t),a.and(n),e.xor(a),a.assign(s),a.and(n),e.xor(a)}function Rv(e,t,s){e.assign(t),e.rotateRight(28),s.assign(t),s.rotateRight(34),e.xor(s),s.assign(t),s.rotateRight(39),e.xor(s)}function Fv(e,t,s){e.assign(t),e.rotateRight(14),s.assign(t),s.rotateRight(18),e.xor(s),s.assign(t),s.rotateRight(41),e.xor(s)}function Mv(e,t,s){e.assign(t),e.rotateRight(1),s.assign(t),s.rotateRight(8),e.xor(s),s.assign(t),s.shiftRight(7),e.xor(s)}function zv(e,t,s){e.assign(t),e.rotateRight(19),s.assign(t),s.rotateRight(61),e.xor(s),s.assign(t),s.shiftRight(6),e.xor(s)}function q7(e,t,s,n=!1){let a,i,o,r,l,f,c,h;n?(a=new At(3418070365,3238371032),i=new At(1654270250,914150663),o=new At(2438529370,812702999),r=new At(355462360,4144912697),l=new At(1731405415,4290775857),f=new At(2394180231,1750603025),c=new At(3675008525,1694076839),h=new At(1203062813,3204075428)):(a=new At(1779033703,4089235720),i=new At(3144134277,2227873595),o=new At(1013904242,4271175723),r=new At(2773480762,1595750129),l=new At(1359893119,2917565137),f=new At(2600822924,725511199),c=new At(528734635,4215389547),h=new At(1541459225,327033209));let m=128*Math.ceil((s+17)/128),u=new Uint8Array(m),d,p;for(d=0;d<s;++d)u[d]=e[t++];u[d++]=128;let g=m-16;d<g&&(d=g),d+=11,u[d++]=s>>>29&255,u[d++]=s>>21&255,u[d++]=s>>13&255,u[d++]=s>>5&255,u[d++]=s<<3&255;let b=new Array(80);for(d=0;d<80;d++)b[d]=new At(0,0);let{k:w}=Hv,k=new At(0,0),q=new At(0,0),y=new At(0,0),v=new At(0,0),A=new At(0,0),x=new At(0,0),I=new At(0,0),B=new At(0,0),D=new At(0,0),W=new At(0,0),L=new At(0,0),ot=new At(0,0),P,H;for(d=0;d<m;){for(p=0;p<16;++p)b[p].high=u[d]<<24|u[d+1]<<16|u[d+2]<<8|u[d+3],b[p].low=u[d+4]<<24|u[d+5]<<16|u[d+6]<<8|u[d+7],d+=8;for(p=16;p<80;++p)P=b[p],zv(P,b[p-2],ot),P.add(b[p-7]),Mv(L,b[p-15],ot),P.add(L),P.add(b[p-16]);for(k.assign(a),q.assign(i),y.assign(o),v.assign(r),A.assign(l),x.assign(f),I.assign(c),B.assign(h),p=0;p<80;++p)D.assign(B),Fv(L,A,ot),D.add(L),Bv(L,A,x,I,ot),D.add(L),D.add(w[p]),D.add(b[p]),Rv(W,k,ot),Tv(L,k,q,y,ot),W.add(L),P=B,B=I,I=x,x=A,v.add(D),A=v,v=y,y=q,q=k,P.assign(D),P.add(W),k=P;a.add(k),i.add(q),o.add(y),r.add(v),l.add(A),f.add(x),c.add(I),h.add(B)}return n?(H=new Uint8Array(48),a.copyTo(H,0),i.copyTo(H,8),o.copyTo(H,16),r.copyTo(H,24),l.copyTo(H,32),f.copyTo(H,40)):(H=new Uint8Array(64),a.copyTo(H,0),i.copyTo(H,8),o.copyTo(H,16),r.copyTo(H,24),l.copyTo(H,32),f.copyTo(H,40),c.copyTo(H,48),h.copyTo(H,56)),H}function Dv(e,t,s){return q7(e,t,s,!0)}var Ov={get k(){return yt(this,"k",[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])}};function Kn(e,t){return e>>>t|e<<32-t}function Nv(e,t,s){return e&t^~e&s}function _v(e,t,s){return e&t^e&s^t&s}function Pv(e){return Kn(e,2)^Kn(e,13)^Kn(e,22)}function Uv(e){return Kn(e,6)^Kn(e,11)^Kn(e,25)}function Lv(e){return Kn(e,7)^Kn(e,18)^e>>>3}function Ev(e){return Kn(e,17)^Kn(e,19)^e>>>10}function Pw(e,t,s){let n=1779033703,a=3144134277,i=1013904242,o=2773480762,r=1359893119,l=2600822924,f=528734635,c=1541459225,h=64*Math.ceil((s+9)/64),m=new Uint8Array(h),u,d;for(u=0;u<s;++u)m[u]=e[t++];m[u++]=128;let p=h-8;u<p&&(u=p),u+=3,m[u++]=s>>>29&255,m[u++]=s>>21&255,m[u++]=s>>13&255,m[u++]=s>>5&255,m[u++]=s<<3&255;let g=new Uint32Array(64),{k:b}=Ov;for(u=0;u<h;){for(d=0;d<16;++d)g[d]=m[u]<<24|m[u+1]<<16|m[u+2]<<8|m[u+3],u+=4;for(d=16;d<64;++d)g[d]=Ev(g[d-2])+g[d-7]+Lv(g[d-15])+g[d-16]|0;let w,k,q=n,y=a,v=i,A=o,x=r,I=l,B=f,D=c;for(d=0;d<64;++d)w=D+Uv(x)+Nv(x,I,B)+b[d]+g[d],k=Pv(q)+_v(q,y,v),D=B,B=I,I=x,x=A+w|0,A=v,v=y,y=q,q=w+k|0;n=n+q|0,a=a+y|0,i=i+v|0,o=o+A|0,r=r+x|0,l=l+I|0,f=f+B|0,c=c+D|0}return new Uint8Array([n>>24&255,n>>16&255,n>>8&255,255&n,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r,l>>24&255,l>>16&255,l>>8&255,255&l,f>>24&255,f>>16&255,f>>8&255,255&f,c>>24&255,c>>16&255,c>>8&255,255&c])}var to,Uw=class extends os{constructor(s,n,a){super(n);at(this,to,null);this.stream=s,this.dict=s.dict,this.decrypt=a}readBlock(){let s=S(this,to)??this.stream.getBytes(512);if(!s.length){this.eof=!0;return}Bt(this,to,this.stream.getBytes(512));let n=S(this,to).length>0;s=(0,this.decrypt)(s,!n);let a=this.bufferLength,i=a+s.length;this.ensureBuffer(i).set(s,a),this.bufferLength=i}getOriginalStream(){return this}};to=new WeakMap;var Kv=new Set([160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8239,8287,12288]),Wv=new Set([173,847,6150,6155,6156,6157,8203,8204,8205,8288,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279]),Qn=class{constructor(t){Y(this,"a",0);Y(this,"b",0);let s=new Uint8Array(256),n=t.length;for(let a=0;a<256;++a)s[a]=a;for(let a=0,i=0;a<256;++a){let o=s[a];i=i+o+t[a%n]&255,s[a]=s[i],s[i]=o}this.s=s}encryptBlock(t){let s=this.a,n=this.b,a=this.s,i=t.length,o=new Uint8Array(i);for(let r=0;r<i;++r){s=s+1&255;let l=a[s];n=n+l&255;let f=a[n];a[s]=f,a[n]=l,o[r]=t[r]^a[l+f&255]}return this.a=s,this.b=n,o}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}},Lw=class{decryptBlock(t){return t}encrypt(t){return t}},cf=class{constructor(){Y(this,"_s",new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]));Y(this,"_inv_s",new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]));Y(this,"_mix",new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]));Y(this,"_mixCol",Uint8Array.from({length:256},(t,s)=>s<128?s<<1:s<<1^27));this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(t){Zt("Cannot call `_expandKey` on the base class")}_decrypt(t,s){let n,a,i,o=new Uint8Array(16);o.set(t);for(let r=0,l=this._keySize;r<16;++r,++l)o[r]^=s[l];for(let r=this._cyclesOfRepetition-1;r>=1;--r){n=o[13],o[13]=o[9],o[9]=o[5],o[5]=o[1],o[1]=n,n=o[14],a=o[10],o[14]=o[6],o[10]=o[2],o[6]=n,o[2]=a,n=o[15],a=o[11],i=o[7],o[15]=o[3],o[11]=n,o[7]=a,o[3]=i;for(let l=0;l<16;++l)o[l]=this._inv_s[o[l]];for(let l=0,f=16*r;l<16;++l,++f)o[l]^=s[f];for(let l=0;l<16;l+=4){let f=this._mix[o[l]],c=this._mix[o[l+1]],h=this._mix[o[l+2]],m=this._mix[o[l+3]];n=f^c>>>8^c<<24^h>>>16^h<<16^m>>>24^m<<8,o[l]=n>>>24&255,o[l+1]=n>>16&255,o[l+2]=n>>8&255,o[l+3]=255&n}}n=o[13],o[13]=o[9],o[9]=o[5],o[5]=o[1],o[1]=n,n=o[14],a=o[10],o[14]=o[6],o[10]=o[2],o[6]=n,o[2]=a,n=o[15],a=o[11],i=o[7],o[15]=o[3],o[11]=n,o[7]=a,o[3]=i;for(let r=0;r<16;++r)o[r]=this._inv_s[o[r]],o[r]^=s[r];return o}_encrypt(t,s){let n=this._s,a,i,o,r=new Uint8Array(16);r.set(t);for(let l=0;l<16;++l)r[l]^=s[l];for(let l=1;l<this._cyclesOfRepetition;l++){for(let f=0;f<16;++f)r[f]=n[r[f]];o=r[1],r[1]=r[5],r[5]=r[9],r[9]=r[13],r[13]=o,o=r[2],i=r[6],r[2]=r[10],r[6]=r[14],r[10]=o,r[14]=i,o=r[3],i=r[7],a=r[11],r[3]=r[15],r[7]=o,r[11]=i,r[15]=a;for(let f=0;f<16;f+=4){let c=r[f],h=r[f+1],m=r[f+2],u=r[f+3];a=c^h^m^u,r[f]^=a^this._mixCol[c^h],r[f+1]^=a^this._mixCol[h^m],r[f+2]^=a^this._mixCol[m^u],r[f+3]^=a^this._mixCol[u^c]}for(let f=0,c=16*l;f<16;++f,++c)r[f]^=s[c]}for(let l=0;l<16;++l)r[l]=n[r[l]];o=r[1],r[1]=r[5],r[5]=r[9],r[9]=r[13],r[13]=o,o=r[2],i=r[6],r[2]=r[10],r[6]=r[14],r[10]=o,r[14]=i,o=r[3],i=r[7],a=r[11],r[3]=r[15],r[7]=o,r[11]=i,r[15]=a;for(let l=0,f=this._keySize;l<16;++l,++f)r[l]^=s[f];return r}_decryptBlock2(t,s){let n=t.length,a=this.buffer,i=this.bufferPosition,o=[],r=this.iv;for(let c=0;c<n;++c){if(a[i]=t[c],++i,i<16)continue;let h=this._decrypt(a,this._key);for(let m=0;m<16;++m)h[m]^=r[m];r=a,o.push(h),a=new Uint8Array(16),i=0}if(this.buffer=a,this.bufferLength=i,this.iv=r,o.length===0)return new Uint8Array(0);let l=16*o.length;if(s){let c=o.at(-1),h=c[15];if(h<=16){for(let m=15,u=16-h;m>=u;--m)if(c[m]!==h){h=0;break}l-=h,o[o.length-1]=c.subarray(0,16-h)}}let f=new Uint8Array(l);for(let c=0,h=0,m=o.length;c<m;++c,h+=16)f.set(o[c],h);return f}decryptBlock(t,s,n=null){let a=t.length,i=this.buffer,o=this.bufferPosition;if(n)this.iv=n;else{for(let r=0;o<16&&r<a;++r,++o)i[o]=t[r];if(o<16)return this.bufferLength=o,new Uint8Array(0);this.iv=i,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,s)}encrypt(t,s){let n=t.length,a=this.buffer,i=this.bufferPosition,o=[];s||(s=new Uint8Array(16));for(let f=0;f<n;++f){if(a[i]=t[f],++i,i<16)continue;for(let h=0;h<16;++h)a[h]^=s[h];let c=this._encrypt(a,this._key);s=c,o.push(c),a=new Uint8Array(16),i=0}if(this.buffer=a,this.bufferLength=i,this.iv=s,o.length===0)return new Uint8Array(0);let r=16*o.length,l=new Uint8Array(r);for(let f=0,c=0,h=o.length;f<h;++f,c+=16)l.set(o[f],c);return l}},Wh=class extends cf{constructor(s){super();Y(this,"_rcon",new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]));this._cyclesOfRepetition=10,this._keySize=160,this._key=this._expandKey(s)}_expandKey(s){let n=this._s,a=this._rcon,i=new Uint8Array(176);i.set(s);for(let o=16,r=1;o<176;++r){let l=i[o-3],f=i[o-2],c=i[o-1],h=i[o-4];l=n[l],f=n[f],c=n[c],h=n[h],l^=a[r];for(let m=0;m<4;++m)i[o]=l^=i[o-16],o++,i[o]=f^=i[o-16],o++,i[o]=c^=i[o-16],o++,i[o]=h^=i[o-16],o++}return i}},hf=class extends cf{constructor(t){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(t)}_expandKey(t){let s=this._s,n=new Uint8Array(240);n.set(t);let a,i,o,r,l=1;for(let f=32,c=1;f<240;++c){f%32==16?(a=s[a],i=s[i],o=s[o],r=s[r]):f%32==0&&(a=n[f-3],i=n[f-2],o=n[f-1],r=n[f-4],a=s[a],i=s[i],o=s[o],r=s[r],a^=l,(l<<=1)>=256&&(l=255&(27^l)));for(let h=0;h<4;++h)n[f]=a^=n[f-32],f++,n[f]=i^=n[f-32],f++,n[f]=o^=n[f-32],f++,n[f]=r^=n[f-32],f++}return n}},Vh=class{_hash(t,s,n){Zt("Abstract method `_hash` called")}checkOwnerPassword(t,s,n,a){let i=new Uint8Array(t.length+56);return i.set(t,0),i.set(s,t.length),i.set(n,t.length+s.length),Ei(this._hash(t,i,n),a)}checkUserPassword(t,s,n){let a=new Uint8Array(t.length+8);return a.set(t,0),a.set(s,t.length),Ei(this._hash(t,a,[]),n)}getOwnerKey(t,s,n,a){let i=new Uint8Array(t.length+56);i.set(t,0),i.set(s,t.length),i.set(n,t.length+s.length);let o=this._hash(t,i,n);return new hf(o).decryptBlock(a,!1,new Uint8Array(16))}getUserKey(t,s,n){let a=new Uint8Array(t.length+8);a.set(t,0),a.set(s,t.length);let i=this._hash(t,a,[]);return new hf(i).decryptBlock(n,!1,new Uint8Array(16))}},Ew=class extends Vh{_hash(t,s,n){return Pw(s,0,s.length)}},Kw=class extends Vh{_hash(t,s,n){let a=Pw(s,0,s.length).subarray(0,32),i=[0],o=0;for(;o<64||i.at(-1)>o-32;){let r=t.length+a.length+n.length,l=new Uint8Array(r),f=0;l.set(t,f),f+=t.length,l.set(a,f),f+=a.length,l.set(n,f);let c=new Uint8Array(64*r);for(let m=0,u=0;m<64;m++,u+=r)c.set(l,u);i=new Wh(a.subarray(0,16)).encrypt(c,a.subarray(16,32));let h=Math.sumPrecise(i.slice(0,16))%3;h===0?a=Pw(i,0,i.length):h===1?a=Dv(i,0,i.length):h===2&&(a=q7(i,0,i.length)),o++}return a.subarray(0,32)}},Su,eo,b1,$h=class{constructor(t,s=null,n=null){at(this,eo);at(this,Su,new Map);Y(this,"embeddedFilterName",null);this.resolveCipher=t,this.streamFilterName=n,this.stringFilterName=s}createStream(t,s,n=null){let a=this.embeddedFilterName&&ro(t.dict,"EmbeddedFile")?this.embeddedFilterName:this.streamFilterName,i=new(N(this,eo,b1).call(this,n||a));return new Uw(t,s,function(r,l){return i.decryptBlock(r,l)})}decryptString(t){let s=new(N(this,eo,b1).call(this,this.stringFilterName)),n=Ce(t);return n=s.decryptBlock(n,!0),Cs(n)}encryptString(t){let s=new(N(this,eo,b1).call(this,this.stringFilterName));if(s instanceof cf){let a=16-t.length%16;t+=String.fromCharCode(a).repeat(a);let i=new Uint8Array(16);crypto.getRandomValues(i);let o=Ce(t);o=s.encrypt(o,i);let r=new Uint8Array(16+o.length);return r.set(i),r.set(o,16),Cs(r)}let n=Ce(t);return n=s.encrypt(n),Cs(n)}};Su=new WeakMap,eo=new WeakSet,b1=function(t=null){let s=t instanceof it?t.name:"__default__";return S(this,Su).getOrInsertComputed(s,()=>this.resolveCipher(t))};function k0(e){try{e=K0(e)}catch{F("CipherTransformFactory: Unable to convert UTF8 encoded password.")}return Ce(e)}var dc,Ws,y7,Vw,v7,w1,bi=class bi{constructor(t,s,n){at(this,Ws);at(this,dc);let a=t.get("Filter");if(!$t(a,"Standard"))throw new nt("unknown encryption method");this.filterName=a.name,this.dict=t,Bt(this,dc,s);let i=t.get("V");if(!Number.isInteger(i)||i!==1&&i!==2&&i!==4&&i!==5)throw new nt("unsupported encryption algorithm");this.algorithm=i;let o=t.get("Length");if(!o)if(i<=3)o=40;else{let v=t.get("CF"),A=t.get("StmF");v instanceof R&&A instanceof it&&(v.suppressEncryption=!0,o=v.get(A.name)?.get("Length")||128,o<40&&(o<<=3))}if(!Number.isInteger(o)||o<40||o%8!=0)throw new nt("invalid key length");let r=null,l=it.get("Identity"),f=it.get("Identity"),c=l;i>=4&&(r=t.get("CF"),r instanceof R&&(r.suppressEncryption=!0),l=t.get("StmF")||it.get("Identity"),f=t.get("StrF")||it.get("Identity"),c=t.get("EFF")||l),this.cf=r,this.stmf=l,this.strf=f,this.eff=c;let h=Ce(t.get("O")),m=Ce(t.get("U")),u=h.subarray(0,32),d=m.subarray(0,32),p=t.get("P"),g=t.get("R"),b=(i===4||i===5)&&t.get("EncryptMetadata")!==!1;this.encryptMetadata=b;let w=Ce(s),k,q,y;if(n)if(g===6){let v=(function(x){let I="";for(let B of x){let D=B.codePointAt(0);Kv.has(D)?I+=" ":Wv.has(D)||(I+=B)}return I.normalize("NFKC")})(n);k=k0(v),v!==n&&(q=k0(n))}else k=i===5?k0(n):Ce(n);if(i!==5)y=N(this,Ws,Vw).call(this,w,k,u,d,p,g,o,b);else{let v=h.subarray(32,40),A=h.subarray(40,48),x=m.subarray(0,48),I=m.subarray(32,40),B=m.subarray(40,48),D=Ce(t.get("OE")),W=Ce(t.get("UE")),L=Ce(t.get("Perms"));for(let ot of q?[k,q]:[k])if(y=N(this,Ws,y7).call(this,g,ot,u,v,A,x,d,I,B,D,W,L),y)break}if(!y){if(!n){if(this.algorithm>=4&&$t(this.stmf,"Identity")&&$t(this.strf,"Identity")){let A=this.cf?.get(this.eff.name),x=A?.get("AuthEvent");if($t(x,"EFOpen")){this.encryptionKey=null;return}}throw new Cn("No password given",L0)}let v=N(this,Ws,v7).call(this,k,u,g,o);y=N(this,Ws,Vw).call(this,w,v,u,d,p,g,o,b)}if(!y)throw new Cn("Incorrect Password",Ak);i===4&&y.length<16?(this.encryptionKey=new Uint8Array(16),this.encryptionKey.set(y)):this.encryptionKey=y}static get _defaultPasswordBytes(){return yt(this,"_defaultPasswordBytes",new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]))}setPassword(t){let s=new bi(this.dict,S(this,dc),t);this.encryptionKey=s.encryptionKey}createCipherTransform(t,s){if(this.algorithm===4||this.algorithm===5){let n=new $h(a=>{if(!(a instanceof it))throw new nt("Invalid crypt filter name.");let i=this.cf.get(a.name),o=i?.get("CFM");if(!o||o.name==="None")return Lw;if(!this.encryptionKey)throw new Cn("No password given",L0);if(this.algorithm===5||o.name==="AESV3")return hf.bind(null,this.encryptionKey);if(o.name==="V2")return Qn.bind(null,N(this,Ws,w1).call(this,t,s,this.encryptionKey,!1));if(o.name==="AESV2")return Wh.bind(null,N(this,Ws,w1).call(this,t,s,this.encryptionKey,!0));throw new nt("Unknown crypto method")},this.strf,this.stmf);return n.embeddedFilterName=this.eff,n}return new $h(()=>Qn.bind(null,N(this,Ws,w1).call(this,t,s,this.encryptionKey,!1)))}};dc=new WeakMap,Ws=new WeakSet,y7=function(t,s,n,a,i,o,r,l,f,c,h,m){if(s){let d=Math.min(127,s.length);s=s.subarray(0,d)}else s=[];let u=t===6?new Kw:new Ew;return u.checkUserPassword(s,l,r)?u.getUserKey(s,f,h):s.length&&u.checkOwnerPassword(s,a,o,n)?u.getOwnerKey(s,i,o,c):null},Vw=function(t,s,n,a,i,o,r,l){let f=40+n.length+t.length,c=new Uint8Array(f),h,m,u=0;if(s)for(m=Math.min(32,s.length);u<m;++u)c[u]=s[u];for(h=0;u<32;)c[u++]=bi._defaultPasswordBytes[h++];c.set(n,u),u+=n.length,c[u++]=255&i,c[u++]=i>>8&255,c[u++]=i>>16&255,c[u++]=i>>>24&255,c.set(t,u),u+=t.length,o>=4&&!l&&(c.fill(255,u,u+4),u+=4);let d=Ba(c,0,u),p=r>>3;if(o>=3)for(h=0;h<50;++h)d=Ba(d,0,p);let g=d.subarray(0,p),b,w;if(o>=3){u=0,c.set(bi._defaultPasswordBytes,u),u+=32,c.set(t,u),u+=t.length,b=new Qn(g),w=b.encryptBlock(Ba(c,0,u)),m=g.length;let k=new Uint8Array(m);for(h=1;h<=19;++h){for(let q=0;q<m;++q)k[q]=g[q]^h;b=new Qn(k),w=b.encryptBlock(w)}}else b=new Qn(g),w=b.encryptBlock(bi._defaultPasswordBytes);return w.every((k,q)=>a[q]===k)?g:null},v7=function(t,s,n,a){let i=new Uint8Array(32),o=0,r=Math.min(32,t.length);for(;o<r;++o)i[o]=t[o];let l=0;for(;o<32;)i[o++]=bi._defaultPasswordBytes[l++];let f=Ba(i,0,o),c=a>>3;if(n>=3)for(l=0;l<50;++l)f=Ba(f,0,f.length);let h,m;if(n>=3){m=s;let u=new Uint8Array(c);for(l=19;l>=0;l--){for(let d=0;d<c;++d)u[d]=f[d]^l;h=new Qn(u),m=h.encryptBlock(m)}}else h=new Qn(f.subarray(0,c)),m=h.encryptBlock(s);return m},w1=function(t,s,n,a=!1){let i=n.length,o=new Uint8Array(i+9);o.set(n);let r=i;return o[r++]=255&t,o[r++]=t>>8&255,o[r++]=t>>16&255,o[r++]=255&s,o[r++]=s>>8&255,a&&(o[r++]=115,o[r++]=65,o[r++]=108,o[r++]=84),Ba(o,0,r).subarray(0,Math.min(i+5,16))};var Ww=bi,qn,ls,Pa,Ua,gc,La,Ea,bc,wc,Ti,$w=class{constructor(t,s){at(this,qn,new Map);at(this,ls,[]);at(this,Pa,null);at(this,Ua,null);at(this,gc,!1);at(this,La,new re);at(this,Ea,null);at(this,bc,new Set);at(this,wc,!0);at(this,Ti,new Set);this.stream=t,this.pdfManager=s}getNewPersistentRef(t){S(this,Pa)===null&&Bt(this,Pa,S(this,ls).length||1);let s=pe(this,Pa)._++;return S(this,qn).set(s,t),rt.get(s,0)}getNewTemporaryRef(){if(S(this,Ua)===null&&(Bt(this,Ua,S(this,ls).length||1),S(this,Pa))){Bt(this,Ea,new Map);for(let t=S(this,Ua);t<S(this,Pa);t++)S(this,Ea).set(t,S(this,qn).get(t)),S(this,qn).delete(t)}return rt.get(pe(this,Ua)._++,0)}resetNewTemporaryRef(){if(Bt(this,Ua,null),S(this,Ea))for(let[t,s]of S(this,Ea))S(this,qn).set(t,s);Bt(this,Ea,null)}setStartXRef(t){this.startXRefQueue=[t]}parse(t=!1){Bt(this,gc,t);let s,n,a;t?(F("Indexing all PDF objects"),s=this.indexObjects()):s=this.readXRef(),s.assignXref(this),this.trailer=s;try{n=s.get("Encrypt")}catch(i){if(i instanceof de)throw i;F(`XRef.parse - Invalid "Encrypt" reference: "${i}".`)}if(n instanceof R){let i=s.get("ID"),o=i?.length?i[0]:"";n.suppressEncryption=!0,this.encrypt=new Ww(n,o,this.pdfManager.password)}try{a=s.get("Root")}catch(i){if(i instanceof de)throw i;F(`XRef.parse - Invalid "Root" reference: "${i}".`)}if(a instanceof R)try{if(a.get("Pages")instanceof R){this.root=a;return}}catch(i){if(i instanceof de)throw i;F(`XRef.parse - Invalid "Pages" reference: "${i}".`)}throw t?new Li("Invalid Root reference."):new ha}processXRefTable(t){if(this._tableState??(this._tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2}),!Qe(this.readXRefTable(t),"trailer"))throw new nt("Invalid XRef table: could not find trailer dictionary");let s=t.getObj();if(s instanceof Et&&(s=s.dict),!(s instanceof R))throw new nt("Invalid XRef table: could not parse trailer dictionary");return delete this._tableState,s}readXRefTable(t){var i,o;let s=t.lexer.stream,n=this._tableState;s.pos=n.streamPos,t.buf1=n.parserBuf1,t.buf2=n.parserBuf2;let a;for(;;){if(!("firstEntryNum"in n)||!("entryCount"in n)){if(Qe(a=t.getObj(),"trailer"))break;n.firstEntryNum=a,n.entryCount=t.getObj()}let r=n.firstEntryNum,l=n.entryCount;if(!Number.isInteger(r)||!Number.isInteger(l))throw new nt("Invalid XRef table: wrong types in subsection header");for(let f=n.entryNum;f<l;f++){n.streamPos=s.pos,n.entryNum=f,n.parserBuf1=t.buf1,n.parserBuf2=t.buf2;let c={offset:t.getObj(),gen:t.getObj(),free:!1,uncompressed:!1},h=t.getObj();if(h instanceof Ve)switch(h.cmd){case"f":c.free=!0;break;case"n":c.uncompressed=!0}if(!Number.isInteger(c.offset)||!Number.isInteger(c.gen)||!c.free&&!c.uncompressed)throw new nt(`Invalid entry in XRef subsection: ${r}, ${l}`);f===0&&c.free&&r===1&&(r=0),(i=S(this,ls))[o=r+f]??(i[o]=c)}n.entryNum=0,n.streamPos=s.pos,n.parserBuf1=t.buf1,n.parserBuf2=t.buf2,delete n.firstEntryNum,delete n.entryCount}if(S(this,ls)[0]&&!S(this,ls)[0].free)throw new nt("Invalid XRef table: unexpected first object");return a}processXRefStream(t){if(!("streamState"in this)){let{dict:s,pos:n}=t,a=s.get("W"),i=s.get("Index")||[0,s.get("Size")];this.streamState={entryRanges:i,byteWidths:a,entryNum:0,streamPos:n}}return this.readXRefStream(t),delete this.streamState,t.dict}readXRefStream(t){var r,l;let s=this.streamState;t.pos=s.streamPos;let[n,a,i]=s.byteWidths,o=s.entryRanges;for(;o.length>0;){let[f,c]=o;if(!Number.isInteger(f)||!Number.isInteger(c))throw new nt(`Invalid XRef range fields: ${f}, ${c}`);if(!Number.isInteger(n)||!Number.isInteger(a)||!Number.isInteger(i))throw new nt(`Invalid XRef entry fields length: ${f}, ${c}`);for(let h=s.entryNum;h<c;++h){s.entryNum=h,s.streamPos=t.pos;let m=0,u=0,d=0;for(let g=0;g<n;++g){let b=t.getByte();if(b===-1)throw new nt("Invalid XRef byteWidths \'type\'.");m=m<<8|b}n===0&&(m=1);for(let g=0;g<a;++g){let b=t.getByte();if(b===-1)throw new nt("Invalid XRef byteWidths \'offset\'.");u=u<<8|b}for(let g=0;g<i;++g){let b=t.getByte();if(b===-1)throw new nt("Invalid XRef byteWidths \'generation\'.");d=d<<8|b}let p={offset:u,gen:d,free:!1,uncompressed:!1};switch(m){case 0:p.free=!0;break;case 1:p.uncompressed=!0;break;case 2:break;default:throw new nt(`Invalid XRef entry type: ${m}`)}(r=S(this,ls))[l=f+h]??(r[l]=p)}s.entryNum=0,s.streamPos=t.pos,o.splice(0,2)}}indexObjects(){function t(q,y){let v="",A=q[y];for(;A!==10&&A!==13&&A!==60&&!(++y>=q.length);)v+=String.fromCharCode(A),A=q[y];return v}function s(q,y,v){let A=v.length,x=q.length,I=0;for(;y<x;){let B=0;for(;B<A&&q[y+B]===v[B];)++B;if(B>=A)break;y++,I++}return I}let n=/\\b(endobj|\\d+\\s+\\d+\\s+obj|xref|trailer\\s*<<)\\b/g,a=/\\b(startxref|\\d+\\s+\\d+\\s+obj)\\b/g,i=/^(\\d+)\\s+(\\d+)\\s+obj\\b/,o=new Uint8Array([116,114,97,105,108,101,114]),r=new Uint8Array([115,116,97,114,116,120,114,101,102]),l=new Uint8Array([47,88,82,101,102]);S(this,ls).length=0,S(this,qn).clear();let f=this.stream;f.pos=0;let c=f.getBytes(),h=Cs(c),m=c.length,u=f.start,d=[],p=[];for(;u<m;){let q=c[u];if(q===9||q===10||q===13||q===32){++u;continue}if(q===37){do{if(++u,u>=m)break;q=c[u]}while(q!==10&&q!==13);continue}let y=t(c,u),v;if(y.startsWith("xref")&&(y.length===4||/\\s/.test(y[4])))u+=s(c,u,o),d.push(u),u+=s(c,u,r);else if(v=i.exec(y)){let A=0|v[1],x=0|v[2],I=u+y.length,B,D=!1;if(S(this,ls)[A]){if(S(this,ls)[A].gen===x)try{new On({lexer:new Ls(f.makeSubStream(I))}).getObj(),D=!0}catch(P){P instanceof Sl?F(`indexObjects -- checking object (${y}): "${P}".`):D=!0}}else D=!0;D&&(S(this,ls)[A]={offset:u-f.start,gen:x,free:!1,uncompressed:!0}),n.lastIndex=I;let W=n.exec(h);W?(B=n.lastIndex+1-u,W[1]!=="endobj"&&(F(`indexObjects: Found "${W[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),B-=W[1].length+1)):B=m-u;let L=c.subarray(u,u+B),ot=s(L,0,l);ot<B&&L[ot+5]<64&&(p.push(u-f.start),S(this,Ti).add(u-f.start)),u+=B}else if(y.startsWith("trailer")&&(y.length===7||/\\s/.test(y[7]))){d.push(u);let A=u+y.length,x;a.lastIndex=A;let I=a.exec(h);I?(x=a.lastIndex+1-u,I[1]!=="startxref"&&(F(`indexObjects: Found "${I[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),x-=I[1].length+1)):x=m-u,u+=x}else u+=y.length+1}for(let q of p)this.startXRefQueue.push(q),this.readXRef(!0);let g=[],b,w,k=!1;for(let q of d){f.pos=q;let y=new On({lexer:new Ls(f),xref:this,allowStreams:!0,recoveryMode:!0});if(!Qe(y.getObj(),"trailer"))continue;let v=y.getObj();v instanceof R&&(g.push(v),v.has("Encrypt")&&(k=!0))}for(let q of[...g,"genFallback",...g]){if(q==="genFallback"){if(!w)break;this._generationFallback=!0;continue}let y=!1;try{let v=q.get("Root");if(!(v instanceof R))continue;let A=v.get("Pages");if(!(A instanceof R))continue;let x=A.get("Count");Number.isInteger(x)&&(y=!0)}catch(v){w=v;continue}if(y&&(!k||q.has("Encrypt"))&&q.has("ID"))return q;b=q}if(b)return b;if(this.topDict)return this.topDict;if(!g.length)for(let q in S(this,ls)){let y=S(this,ls)[q];if(!y)continue;let v=rt.get(parseInt(q,10),y.gen),A;try{A=this.fetch(v)}catch{continue}if(A instanceof Et&&(A=A.dict),A instanceof R&&A.has("Root"))return A}throw new Li("Invalid PDF structure.")}readXRef(t=!1){let s=this.stream,n=new Set;for(;this.startXRefQueue.length;){try{let a=this.startXRefQueue[0];if(n.has(a)){F("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}n.add(a),s.pos=a+s.start;let i=new On({lexer:new Ls(s),xref:this,allowStreams:!0}),o,r=i.getObj();if(Qe(r,"xref"))o=this.processXRefTable(i),this.topDict||(this.topDict=o),r=o.get("XRefStm"),Number.isInteger(r)&&!S(this,Ti).has(r)&&(S(this,Ti).add(r),this.startXRefQueue.push(r));else{if(!Number.isInteger(r))throw new nt("Invalid XRef stream header");if(!(Number.isInteger(i.getObj())&&Qe(i.getObj(),"obj")&&(r=i.getObj())instanceof Et))throw new nt("Invalid XRef stream");if(o=this.processXRefStream(r),this.topDict||(this.topDict=o),!o)throw new nt("Failed to read XRef stream")}S(this,bc).add(a),r=o.get("Prev"),Number.isInteger(r)?this.startXRefQueue.push(r):r instanceof rt&&this.startXRefQueue.push(r.num)}catch(a){if(a instanceof de)throw a;Bt(this,wc,!1),ie("(while reading XRef): "+a)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!t)throw new ha}countUpdatesAfter(t){if(S(this,gc)||!S(this,wc))return null;let s=t-this.stream.start,n=0;for(let a of S(this,bc))a>=s&&!S(this,Ti).has(a)&&n++;return n}getEntry(t){let s=S(this,ls)[t];return s&&!s.free&&s.offset?s:null}fetchIfRef(t,s=!1){return t instanceof rt?this.fetch(t,s):t}fetch(t,s=!1){if(!(t instanceof rt))throw new Error("ref object is not a reference");let n=t.num,a=S(this,qn).get(n);if(a!==void 0)return a instanceof R&&!a.objId&&(a.objId=t.toString()),a;let i=this.getEntry(n);if(i===null)return i;if(S(this,La).has(t))return S(this,La).remove(t),F(`Ignoring circular reference: ${t}.`),Bk;S(this,La).put(t);try{i=i.uncompressed?this.fetchUncompressed(t,i,s):this.fetchCompressed(t,i,s),S(this,La).remove(t)}catch(o){throw S(this,La).remove(t),o}return i instanceof R?i.objId=t.toString():i instanceof Et&&(i.dict.objId=t.toString()),i}fetchUncompressed(t,s,n=!1){let a=t.gen,i=t.num;if(s.gen!==a){let h=`Inconsistent generation in XRef: ${t}`;if(this._generationFallback&&s.gen<a)return F(h),this.fetchUncompressed(rt.get(i,s.gen),s,n);throw new Pn(h)}let o=this.stream.makeSubStream(s.offset+this.stream.start),r=new On({lexer:new Ls(o),xref:this,allowStreams:!0}),l=r.getObj(),f=r.getObj(),c=r.getObj();if(l!==i||f!==a||!(c instanceof Ve))throw new Pn(`Bad (uncompressed) XRef entry: ${t}`);if(c.cmd!=="obj"){if(c.cmd.startsWith("obj")&&(i=parseInt(c.cmd.substring(3),10),!Number.isNaN(i)))return i;throw new Pn(`Bad (uncompressed) XRef entry: ${t}`)}return(s=this.encrypt&&!n?r.getObj(this.encrypt.createCipherTransform(i,a)):r.getObj())instanceof Et||S(this,qn).set(i,s),s}fetchCompressed(t,s,n=!1){let a=s.offset,i=this.fetch(rt.get(a,0));if(!(i instanceof Et))throw new nt("bad ObjStm stream");let o=i.dict.get("First"),r=i.dict.get("N");if(!Number.isInteger(o)||!Number.isInteger(r))throw new nt("invalid first and n parameters for ObjStm stream");let l=new On({lexer:new Ls(i),xref:this,allowStreams:!0}),f=new Array(r),c=new Array(r);for(let u=0;u<r;++u){let d=l.getObj();if(!Number.isInteger(d))throw new nt(`invalid object number in the ObjStm stream: ${d}`);let p=l.getObj();if(!Number.isInteger(p))throw new nt(`invalid object offset in the ObjStm stream: ${p}`);f[u]=d;let g=this.getEntry(d);g?.offset===a&&g.gen!==u&&(g.gen=u),c[u]=p}let h=(i.start||0)+o,m=new Array(r);for(let u=0;u<r;++u){let d=u<r-1?c[u+1]-c[u]:void 0;if(d<0)throw new nt("Invalid offset in the ObjStm stream.");l=new On({lexer:new Ls(i.makeSubStream(h+c[u],d,i.dict)),xref:this,allowStreams:!0});let p=l.getObj();if(m[u]=p,p instanceof Et)continue;let g=f[u],b=S(this,ls)[g];b&&b.offset===a&&b.gen===u&&S(this,qn).set(g,p)}if((s=m[s.gen])===void 0)throw new Pn(`Bad (compressed) XRef entry: ${t}`);return s}async fetchIfRefAsync(t,s){return t instanceof rt?this.fetchAsync(t,s):t}async fetchAsync(t,s){try{return this.fetch(t,s)}catch(n){if(!(n instanceof de))throw n;return await this.pdfManager.requestRange(n.begin,n.end),this.fetchAsync(t,s)}}getCatalogObj(){return this.root}};qn=new WeakMap,ls=new WeakMap,Pa=new WeakMap,Ua=new WeakMap,gc=new WeakMap,La=new WeakMap,Ea=new WeakMap,bc=new WeakMap,wc=new WeakMap,Ti=new WeakMap;var x7=[0,0,612,792],Au,Is,Vo,S7,Gw,Xw,Gh=class{constructor({pdfManager:t,xref:s,pageIndex:n,pageDict:a,ref:i,globalIdFactory:o,fontCache:r,builtInCMapCache:l,standardFontDataCache:f,globalColorSpaceCache:c,globalImageCache:h,systemFontCache:m,nonBlendModesSet:u,xfaFactory:d}){at(this,Is);at(this,Au,null);this.pdfManager=t,this.pageIndex=n,this.pageDict=a,this.xref=s,this.ref=i,this.fontCache=r,this.builtInCMapCache=l,this.standardFontDataCache=f,this.globalColorSpaceCache=c,this.globalImageCache=h,this.systemFontCache=m,this.nonBlendModesSet=u,this.evaluatorOptions=t.evaluatorOptions,this.xfaFactory=d;let p={obj:0};this._localIdFactory=class extends o{static createObjId(){return`p${n}_${++p.obj}`}static getPageObjId(){return`p${i.toString()}`}}}_createPartialEvaluator(t,s=this.pageIndex){return new Ul({xref:this.xref,handler:t,pageIndex:s,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})}get content(){return this.pageDict.getArray("Contents")}get resources(){let t=N(this,Is,Vo).call(this,"Resources");return yt(this,"resources",t instanceof R?t:R.empty)}getBoundingBox(t){if(this.xfaData)return this.xfaData.bbox;let s=Wn(N(this,Is,Vo).call(this,t,!0),null);if(s){if(s[2]-s[0]>0&&s[3]-s[1]>0)return s;F(`Empty, or invalid, /${t} entry.`)}return null}get mediaBox(){return yt(this,"mediaBox",this.getBoundingBox("MediaBox")||x7)}get cropBox(){return yt(this,"cropBox",this.getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let t=this.pageDict.get("UserUnit");return yt(this,"userUnit",typeof t=="number"&&t>0?t:1)}get view(){let{cropBox:t,mediaBox:s}=this;if(t!==s&&!Ei(t,s)){let n=ee.intersect(t,s);if(n&&n[2]-n[0]>0&&n[3]-n[1]>0)return yt(this,"view",n);F("Empty /CropBox and /MediaBox intersection.")}return yt(this,"view",s)}get rotate(){let t=N(this,Is,Vo).call(this,"Rotate")||0;return t%90!=0?t=0:t>=360?t%=360:t<0&&(t=(t%360+360)%360),yt(this,"rotate",t)}async getContentStream(){let t=await this.pdfManager.ensure(this,"content");if(t instanceof Et&&!t.isImageStream){if(t.isAsync){let s=await t.asyncGetBytes();if(s)return new ke(s,0,s.length,t.dict)}return t}if(Array.isArray(t)){let s=[];for(let n=0,a=t.length;n<a;n++){let i=t[n];i instanceof Et&&i.isAsync&&s.push(i.asyncGetBytes().then(o=>{o&&(t[n]=new ke(o,0,o.length,i.dict))}))}return s.length>0&&await Promise.all(s),new um(t,N(this,Is,S7).bind(this))}return new Cl}get xfaData(){return yt(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(t,s,n,a,i){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");let o=this._createPartialEvaluator(t),r=new re,l=new re;await N(this,Is,Gw).call(this,n,r,l);let f=this.pageDict,c=this.annotations.filter(u=>!(u instanceof rt&&r.has(u))),h=await Es.saveNewAnnotations(o,this.xref,s,n,a,i);for(let{ref:u}of h.annotations)u instanceof rt&&!l.has(u)&&c.push(u);let m=f.clone();m.set("Annots",c),i.put(this.ref,{data:m});for(let u of r)i.put(u,{data:null})}async save(t,s,n,a){let i=this._createPartialEvaluator(t),o=await this._parsedAnnotations,r=[];for(let l of o)r.push(l.save(i,s,n,a).catch(function(f){return F(`save - ignoring annotation data during "${s.name}" task: "${f}".`),null}));return Promise.all(r)}async loadResources(t){await(S(this,Au)??Bt(this,Au,this.pdfManager.ensure(this,"resources"))),await bo.load(this.resources,t,this.xref)}async getOperatorList({handler:t,sink:s,task:n,intent:a,cacheKey:i,pageIndex:o=this.pageIndex,annotationStorage:r=null,modifiedIds:l=null}){let f=this.getContentStream(),c=this.loadResources(V0),h=this._createPartialEvaluator(t,o),m=this.xfaFactory?null:A5(r),u=m?.get(this.pageIndex),d=Promise.resolve(null),p=null;if(u){let L=this.pdfManager.ensureDoc("annotationGlobals"),ot,P=new Set;for(let{bitmapId:V,bitmap:C}of u)!V||C||P.has(V)||P.add(V);let{isOffscreenCanvasSupported:H}=this.evaluatorOptions;if(P.size>0){let V=u.slice();for(let[C,M]of r)C.startsWith(l4)&&M.bitmap&&P.has(M.bitmapId)&&V.push(M);ot=Es.generateImages(V,this.xref,H)}else ot=Es.generateImages(u,this.xref,H);p=new re,d=Promise.all([L,N(this,Is,Gw).call(this,u,p,null)]).then(([V])=>V?Es.printNewAnnotations(V,h,n,u,ot):null)}let g=Promise.all([f,c]).then(async([L])=>{let ot=await N(this,Is,Xw).call(this,L.dict,V0),P=new $s(a,s);return t.send("StartRenderPage",{transparency:h.hasBlendModes(ot,this.nonBlendModesSet),pageIndex:o,cacheKey:i}),await h.getOperatorList({stream:L,task:n,resources:ot,operatorList:P}),P}),[b,w,k]=await Promise.all([g,this._parsedAnnotations,d]);if(k){w=w.filter(L=>!(L.ref&&p.has(L.ref)));for(let L=0,ot=k.length;L<ot;L++){let P=k[L];if(P.refToReplace){let H=w.findIndex(V=>V.ref&&oo(V.ref,P.refToReplace));H>=0&&(w.splice(H,1,P),k.splice(L--,1),ot--)}}w=w.concat(k)}if(w.length===0||a&Fj)return b.flush(!0),{length:b.totalLength};let q=!!(a&Cu),y=!!(a&Mj),v=!!(a&i3),A=!!(a&yl),x=!!(a&r3),I=[];for(let L of w)(v||A&&L.mustBeViewed(r,q)&&L.mustBeViewedWhenEditing(y,l)||x&&L.mustBePrinted(r))&&I.push(L.getOperatorList(h,n,a,r).catch(function(ot){return F(`getOperatorList - ignoring annotation data during "${n.name}" task: "${ot}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));let B=await Promise.all(I),D=!1,W=!1;for(let{opList:L,separateForm:ot,separateCanvas:P}of B)b.addOpList(L),D||(D=ot),W||(W=P);return b.flush(!0,{form:D,canvas:W}),{length:b.totalLength}}async extractTextContent({handler:t,task:s,includeMarkedContent:n,disableNormalization:a,sink:i,intersector:o=null}){let r=this.getContentStream(),l=this.loadResources($0),f=this.pdfManager.ensureCatalog("lang"),[c,,h]=await Promise.all([r,l,f]),m=await N(this,Is,Xw).call(this,c.dict,$0);return this._createPartialEvaluator(t).getTextContent({stream:c,task:s,resources:m,includeMarkedContent:n,disableNormalization:a,sink:i,viewBox:this.view,lang:h,intersector:o})}async getStructTree(){let t=await this.pdfManager.ensureCatalog("structTreeRoot");if(!t)return null;await this._parsedAnnotations;try{let s=await this.pdfManager.ensure(this,"_parseStructTree",[t]);return await this.pdfManager.ensure(s,"serializable")}catch(s){return F(`getStructTree: "${s}".`),null}}_parseStructTree(t){let s=new wh(t,this.pageDict);return s.parse(this.ref),s}async getAnnotationsData(t,s,n){let a=await this._parsedAnnotations;if(a.length===0)return a;let i=[],o=[],r,l=!!(n&i3),f=!!(n&yl),c=!!(n&r3),h=[];for(let m of a){let u=l||f&&m.viewable;(u||c&&m.printable)&&i.push(m.data),m.hasTextContent&&u?(r??(r=this._createPartialEvaluator(t)),o.push(m.extractTextContent(r,s,[-1/0,-1/0,1/0,1/0]).catch(function(d){F(`getAnnotationsData - ignoring textContent during "${s.name}" task: "${d}".`)}))):m.overlaysTextContent&&u&&h.push(m)}if(h.length>0){let m=new _w(h);o.push(this.extractTextContent({handler:t,task:s,includeMarkedContent:!1,disableNormalization:!1,sink:null,intersector:m}).then(()=>{m.setText()}))}return await Promise.all(o),i}get annotations(){let t=N(this,Is,Vo).call(this,"Annots");return yt(this,"annotations",Array.isArray(t)?t:[])}get _parsedAnnotations(){return yt(this,"_parsedAnnotations",this.pdfManager.ensure(this,"annotations").then(async t=>{if(t.length===0)return t;let[s,n]=await Promise.all([this.pdfManager.ensureDoc("annotationGlobals"),this.pdfManager.ensureDoc("fieldObjects")]);if(!s)return[];let a=n?.orphanFields,i=[];for(let f of t)i.push(Es.create(this.xref,f,s,this._localIdFactory,!1,a,null,this.ref).catch(function(c){return F(`_parsedAnnotations: "${c}".`),null}));let o=[],r,l;for(let f of await Promise.all(i))f&&(f instanceof $n?(l||(l=[])).push(f):f instanceof ff?(r||(r=[])).push(f):o.push(f));return l&&o.push(...l),r&&o.push(...r),o}))}get jsActions(){return yt(this,"jsActions",Ru(this.xref,this.pageDict,ok))}async collectAnnotationsByType(t,s,n,a,i){let{pageIndex:o}=this;if(Object.hasOwn(this,"_parsedAnnotations")){let f=await this._parsedAnnotations;for(let{data:c}of f)(!n||n.has(c.annotationType))&&(c.pageIndex=o,a.push(Promise.resolve(c)));return}let r=await this.pdfManager.ensure(this,"annotations"),l;for(let f of r)a.push(Es.create(this.xref,f,i,this._localIdFactory,!1,null,n,this.ref).then(async c=>c?(c.data.pageIndex=o,c.hasTextContent&&c.viewable&&(l??(l=this._createPartialEvaluator(t)),await c.extractTextContent(l,s,[-1/0,-1/0,1/0,1/0])),c.data):null).catch(function(c){return F(`collectAnnotationsByType: "${c}".`),null}))}};Au=new WeakMap,Is=new WeakSet,Vo=function(t,s=!1){let n=rs({dict:this.pageDict,key:t,getArray:s,stopWhenFound:!1});return Array.isArray(n)?n.length!==1&&n[0]instanceof R?R.merge({xref:this.xref,dictArray:n}):n[0]:n},S7=function(t,s){if(!this.evaluatorOptions.ignoreErrors)throw t;F(`getContentStream - ignoring sub-stream (${s}): "${t}".`)},Gw=async function(t,s,n){let a=[];for(let i of t){if(!i.id)continue;let o=rt.fromString(i.id);if(o)if(i.deleted){if(s.put(o),i.popupRef){let r=rt.fromString(i.popupRef);r&&s.put(r)}}else{if(i.popup?.deleted){let r=rt.fromString(i.popupRef);r&&s.put(r)}n?.put(o),i.ref=o,a.push(this.xref.fetchAsync(o).then(r=>{r instanceof R&&(i.oldAnnotation=r.clone())},()=>{F(`Cannot fetch \\`oldAnnotation\\` for: ${o}.`)})),delete i.id}else F(`A non-linked annotation cannot be modified: ${i.id}`)}await Promise.all(a)},Xw=async function(t,s){let n=t?.get("Resources");return n instanceof R&&n.size?(await bo.load(n,s,this.xref),R.merge({xref:this.xref,dictArray:[n,this.resources],mergeSubDicts:!0})):this.resources};var X6=new Uint8Array([37,80,68,70,45]),Y6=new Uint8Array([115,116,97,114,116,120,114,101,102]),Vv=new Uint8Array([101,110,100,111,98,106]);function q0(e,t,s=1024,n=!1){let a=t.length,i=e.peekBytes(s),o=i.length-a;if(o<=0)return!1;if(n){let r=a-1,l=i.length-1;for(;l>=r;){let f=0;for(;f<a&&i[l-f]===t[r-f];)f++;if(f>=a)return e.pos+=l-r,!0;l--}}else{let r=0;for(;r<=o;){let l=0;for(;l<a&&i[r+l]===t[l];)l++;if(l>=a)return e.pos+=r,!0;r++}}return!1}var Ka,jc,kc,Be,Yw,A7,I7,C7,Jw,Qw,$o,H7,B7,Xh=class{constructor(t,s){at(this,Be);at(this,Ka,new Map);at(this,jc,null);at(this,kc,null);if(s.length<=0)throw new Li("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=s,this.xref=new $w(s,t);let n={font:0};this._globalIdFactory=class{static getDocId(){return`g_${t.docId}`}static createFontId(){return"f"+ ++n.font}static createObjId(){Zt("Abstract method `createObjId` called.")}static getPageObjId(){Zt("Abstract method `getPageObjId` called.")}}}parse(t){this.xref.parse(t),this.catalog=new Kl(this.pdfManager,this.xref)}get linearization(){let t=null;try{t=zm.create(this.stream)}catch(s){if(s instanceof de)throw s;ie(s)}return yt(this,"linearization",t)}get startXRef(){let t=this.stream,s=0;if(this.linearization){if(t.reset(),q0(t,Vv)){t.skip(6);let n=t.peekByte();for(;rn(n);)t.pos++,n=t.peekByte();s=t.pos-t.start}}else{let a=Y6.length,i=!1,o=t.end;for(;!i&&o>0;)o-=1024-a,o<0&&(o=0),t.pos=o,i=q0(t,Y6,1024,!0);if(i){t.skip(9);let r;do r=t.getByte();while(rn(r));let l="";for(;r>=32&&r<=57;)l+=String.fromCharCode(r),r=t.getByte();s=parseInt(l,10),isNaN(s)&&(s=0)}}return yt(this,"startXRef",s)}checkHeader(){let t=this.stream;if(t.reset(),!q0(t,X6))return;t.moveStart(),t.skip(X6.length);let s,n="";for(;(s=t.getByte())>32&&n.length<7;)n+=String.fromCharCode(s);z4.test(n)?Bt(this,kc,n):F(`Invalid PDF header version: ${n}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let t=0;return t=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,yt(this,"numPages",t)}get _xfaStreams(){let{acroForm:t}=this.catalog;if(!t)return null;let s=t.get("XFA"),n=new Map(["xdp:xdp","template","datasets","config","connectionSet","localeSet","stylesheet","/xdp:xdp"].map(a=>[a,null]));if(s instanceof Et&&!s.isEmpty)return n.set("xdp:xdp",s),n;if(!Array.isArray(s)||s.length===0)return null;for(let a=0,i=s.length;a<i;a+=2){let o;if(o=a===0?"xdp:xdp":a===i-2?"/xdp:xdp":s[a],!n.has(o))continue;let r=this.xref.fetchIfRef(s[a+1]);r instanceof Et&&!r.isEmpty&&n.set(o,r)}return n}get xfaDatasets(){let t=this._xfaStreams;if(!t)return yt(this,"xfaDatasets",null);for(let s of["datasets","xdp:xdp"]){let n=t.get(s);if(n)try{let a=io(n.getString());return yt(this,"xfaDatasets",new Ow({[s]:a}))}catch{F("XFA - Invalid utf-8 string.");break}}return yt(this,"xfaDatasets",null)}get xfaData(){let t=this._xfaStreams;if(!t)return null;let s=new Map;for(let[n,a]of t)if(a)try{s.set(n,io(a.getString()))}catch{return F("XFA - Invalid utf-8 string."),null}return s}get xfaFactory(){let t;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(t=this.xfaData),yt(this,"xfaFactory",t?new lf(t):null)}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}loadXfaResources(t,s){return Promise.all([N(this,Be,I7).call(this,t,s).catch(()=>{}),N(this,Be,A7).call(this)])}serializeXfaData(t){return this.xfaFactory?this.xfaFactory.serializeData(t):null}get version(){return this.catalog.version||S(this,kc)}get formInfo(){let t={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},{acroForm:s}=this.catalog;if(!s)return yt(this,"formInfo",t);try{let n=s.get("Fields"),a=Array.isArray(n)&&n.length>0;t.hasFields=a;let i=s.get("XFA");t.hasXfa=Array.isArray(i)&&i.length>0||i instanceof Et&&!i.isEmpty;let o=!!(1&s.get("SigFlags")),r=o&&N(this,Be,Yw).call(this,n);t.hasAcroForm=a&&!r,t.hasSignatures=o}catch(n){if(n instanceof de)throw n;F(`Cannot fetch form information: "${n}".`)}return yt(this,"formInfo",t)}get documentInfo(){let{catalog:t,formInfo:s,xref:n}=this,a={PDFFormatVersion:this.version,Language:t.lang,EncryptFilterName:n.encrypt?.filterName??null,IsLinearized:!!this.linearization,IsAcroFormPresent:s.hasAcroForm,IsXFAPresent:s.hasXfa,IsCollectionPresent:!!t.collection,IsSignaturesPresent:s.hasSignatures},i;try{i=n.trailer.get("Info")}catch(o){if(o instanceof de)throw o;ie("The document information dictionary is invalid.")}if(!(i instanceof R))return yt(this,"documentInfo",a);for(let[o,r]of i){switch(o){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof r=="string"){a[o]=Jt(r);continue}break;case"Trapped":if(r instanceof it){a[o]=r;continue}break;default:let l;switch(typeof r){case"string":l=Jt(r);break;case"number":case"boolean":l=r;break;default:if(r instanceof it){l=r;break}F(`Bad value, for custom key "${o}", in Info: ${r}.`);continue}(a.Custom??(a.Custom=new Map)).set(o,l);continue}F(`Bad value, for key "${o}", in Info: ${r}.`)}return yt(this,"documentInfo",a)}get fingerprints(){let t="\\0".repeat(16);function s(o){return typeof o=="string"&&o.length===16&&o!==t}let n=this.xref.trailer.get("ID"),a,i;return Array.isArray(n)&&s(n[0])?(a=Ce(n[0]),n[1]!==n[0]&&s(n[1])&&(i=Ce(n[1]))):a=Ba(this.stream.getByteRange(0,1024),0,1024),yt(this,"fingerprints",[a.toHex(),i?.toHex()??null])}getPage(t){let s=S(this,Ka).get(t);if(s)return s;let{catalog:n,linearization:a,xfaFactory:i}=this,o;return o=i?Promise.resolve([R.empty,null]):a?.pageFirst===t?N(this,Be,C7).call(this,t):n.getPageDict(t),o=o.then(([r,l])=>new Gh({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:r,ref:l,globalIdFactory:this._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,standardFontDataCache:n.standardFontDataCache,globalColorSpaceCache:n.globalColorSpaceCache,globalImageCache:n.globalImageCache,systemFontCache:n.systemFontCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:i})),S(this,Ka).set(t,o),o}async checkFirstPage(t=!1){if(!t)try{await this.getPage(0)}catch(s){if(s instanceof Pn)throw S(this,Ka).delete(0),await this.cleanup(),new ha}}async checkLastPage(t=!1){let{catalog:s,pdfManager:n}=this;s.setActualNumPages();let a;try{if(await Promise.all([n.ensureDoc("xfaFactory"),n.ensureDoc("linearization"),n.ensureCatalog("numPages")]),this.xfaFactory)return;if(a=this.linearization?this.linearization.numPages:s.numPages,!Number.isInteger(a))throw new nt("Page count is not an integer.");if(a<=1)return;await this.getPage(a-1)}catch(i){if(S(this,Ka).delete(a-1),await this.cleanup(),i instanceof Pn&&!t)throw new ha;F(`checkLastPage - invalid /Pages tree /Count: ${a}.`);let o;try{o=await s.getAllPageDicts(t)}catch(r){if(r instanceof Pn&&!t)throw new ha;s.setActualNumPages(1);return}for(let[r,[l,f]]of o){let c;l instanceof Error?(c=Promise.reject(l),c.catch(()=>{})):c=Promise.resolve(new Gh({pdfManager:n,xref:this.xref,pageIndex:r,pageDict:l,ref:f,globalIdFactory:this._globalIdFactory,fontCache:s.fontCache,builtInCMapCache:s.builtInCMapCache,standardFontDataCache:s.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:s.globalImageCache,systemFontCache:s.systemFontCache,nonBlendModesSet:s.nonBlendModesSet,xfaFactory:null})),S(this,Ka).set(r,c)}s.setActualNumPages(o.size)}}async fontFallback(t,s){let{catalog:n,pdfManager:a}=this;for(let i of await Promise.all(n.fontCache))if(i.loadedName===t){i.fallback(s,a.evaluatorOptions);return}}async cleanup(t=!1){return this.catalog?this.catalog.cleanup(t):N5()}get fieldObjects(){return yt(this,"fieldObjects",this.pdfManager.ensureDoc("formInfo").then(async t=>{if(!t.hasFields)return null;let s=await this.annotationGlobals;if(!s)return null;let{acroForm:n}=s,a=new re,i=new Map,o=new Map,r=new Pe;for(let f of n.get("Fields"))await N(this,Be,Jw).call(this,"",null,f,o,s,a,r);let l=[];for(let[f,c]of o)l.push(Promise.all(c).then(h=>{(h=h.filter(Boolean)).length>0&&i.set(f,h)}));return await Promise.all(l),{allFields:i.size?i:null,orphanFields:r}}))}get signatures(){return yt(this,"signatures",this.pdfManager.ensureDoc("formInfo").then(async t=>{if(!t.hasSignatures||!t.hasFields)return null;let s=await this.annotationGlobals;if(!s)return null;let n=s.acroForm.get("Fields"),a=[];await N(this,Be,Qw).call(this,n,a,new re),await Promise.all(a.map(async r=>{let l=r.byteRange[2]+r.byteRange[3];r.modificationsAfterSignature=this.xref.countUpdatesAfter(l),r.coversWholeDocument=await N(this,Be,H7).call(this,l,r.modificationsAfterSignature)})),a.sort((r,l)=>l.byteRange[2]+l.byteRange[3]-(r.byteRange[2]+r.byteRange[3]));for(let r=0,l=a.length;r<l;r++){let f=a[r];f.revisionIndex=r;for(let c=r-1;c>=0;c--){let h=a[c];if(h.byteRange[2]+h.byteRange[3]>f.byteRange[2]+f.byteRange[3]){f.parentId=h.id;break}}}let i=new Map,o=a.map(r=>{let{pkcs7:l,...f}=r;return i.set(r.id,{byteRange:r.byteRange,pkcs7:l}),f});return Bt(this,jc,i),o.length?o:null}))}async getSignatureData(t){await this.signatures;let s=S(this,jc)?.get(t);if(!s)return null;let{byteRange:n,pkcs7:a}=s,[i,o,r,l]=n;return{data:await Promise.all([N(this,Be,$o).call(this,i,i+o),N(this,Be,$o).call(this,r,r+l)]),pkcs7:a}}get hasJSActions(){return yt(this,"hasJSActions",Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]).then(([t,s])=>!!t||!!s?.allFields&&s.allFields.values().some(n=>n.some(a=>a.actions!==null))))}get calculationOrderIds(){let t=this.catalog.acroForm?.get("CO");if(!Array.isArray(t)||t.length===0)return yt(this,"calculationOrderIds",null);let s=[];for(let n of t)n instanceof rt&&s.push(n.toString());return yt(this,"calculationOrderIds",s.length?s:null)}get annotationGlobals(){return yt(this,"annotationGlobals",Es.createGlobals(this.pdfManager))}async toJSObject(t,s=!0){throw new Error("Not implemented: toJSObject")}};Ka=new WeakMap,jc=new WeakMap,kc=new WeakMap,Be=new WeakSet,Yw=function(t,s=0){return!!Array.isArray(t)&&t.every(n=>{if(!((n=this.xref.fetchIfRef(n))instanceof R))return!1;if(n.has("Kids"))return++s>10?(F("#hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):N(this,Be,Yw).call(this,n.get("Kids"),s);let a=$t(rs({dict:n,key:"FT"}),"Sig"),i=n.get("Rect"),o=Array.isArray(i)&&i.every(r=>r===0);return a&&o})},A7=async function(){let t=await this.pdfManager.ensureCatalog("xfaImages");t&&this.xfaFactory.setImages(t)},I7=async function(t,s){let n=await this.pdfManager.ensureCatalog("acroForm");if(!n)return;let a=await n.getAsync("DR");if(!(a instanceof R))return;await bo.load(a,["Font"],this.xref);let i=a.get("Font");if(!(i instanceof R))return;let o=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions,{useSystemFonts:!1}),{builtInCMapCache:r,fontCache:l,standardFontDataCache:f}=this.catalog,c=new Ul({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:l,builtInCMapCache:r,standardFontDataCache:f,options:o}),h=new $s,m=[],u={get font(){return m.at(-1)},set font(w){m.push(w)},clone(){return this}},d=(w,k,q)=>c.handleSetFont(a,[it.get(w),1],null,h,s,u,k,q).catch(y=>(F(`loadXfaFonts: "${y}".`),null)),p=[];for(let[w,k]of i){let q=k.get("FontDescriptor");if(!(q instanceof R))continue;let y={fontFamily:Dk(q.get("FontFamily")),fontWeight:q.get("FontWeight"),italicAngle:-q.get("ItalicAngle")};Ok(y)&&p.push(d(w,null,y))}await Promise.all(p);let g=this.xfaFactory.setFonts(m);if(!g)return;o.ignoreErrors=!0,p.length=0,m.length=0;let b=new Set;for(let w of g)T5(`${w}-Regular`)||b.add(w);b.size&&g.push("PdfJS-Fallback");for(let w of g)if(!b.has(w))for(let k of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){let q=`${w}-${k.name}`;p.push(d(q,w8(q),{fontFamily:w,fontWeight:k.fontWeight,italicAngle:k.italicAngle}))}await Promise.all(p),this.xfaFactory.appendFonts(m,b)},C7=async function(t){let{catalog:s,linearization:n,xref:a}=this,i=rt.get(n.objectNumberFirst,0);try{let o=await a.fetchAsync(i);if(o instanceof R){let r=o.getRaw("Type");if(r instanceof rt&&(r=await a.fetchAsync(r)),$t(r,"Page")||!o.has("Type")&&!o.has("Kids")&&o.has("Contents"))return s.pageKidsCountCache.has(i)||s.pageKidsCountCache.put(i,1),s.pageIndexCache.has(i)||s.pageIndexCache.put(i,0),[o,i]}throw new nt("The Linearization dictionary doesn\'t point to a valid Page dictionary.")}catch(o){return F(`_getLinearizationPage: "${o.message}".`),s.getPageDict(t)}},Jw=async function(t,s,n,a,i,o,r){let{xref:l}=this;if(!(n instanceof rt)||o.has(n))return;o.put(n);let f=await l.fetchAsync(n);if(!(f instanceof R))return;let c=await f.getAsync("Subtype");if(c=c instanceof it?c.name:null,c==="Link")return;if(f.has("T")){let m=Jt(await f.getAsync("T"));t=t===""?m:`${t}.${m}`}else{let m=f,u=new re;for(;;){if(m=m.getRaw("Parent")||s,m instanceof rt){if(o.has(m)||u.has(m))break;u.put(m),m=await l.fetchAsync(m)}if(!(m instanceof R))break;if(m.has("T")){let d=Jt(await m.getAsync("T"));t=t===""?d:`${t}.${d}`;break}}}if(s&&!f.has("Parent")&&$t(f.get("Subtype"),"Widget")&&r.put(n,s),a.getOrInsertComputed(t,Ya).push(Es.create(l,n,i,null,!0,r,null,null).then(m=>m?.getFieldObject()).catch(function(m){return F(`#collectFieldObjects: "${m}".`),null})),!f.has("Kids"))return;let h=await f.getAsync("Kids");if(Array.isArray(h))for(let m of h)await N(this,Be,Jw).call(this,t,n,m,a,i,o,r)},Qw=async function(t,s,n){if(Array.isArray(t))for(let a of t){if(a instanceof rt){if(n.has(a))continue;n.put(a)}let i=await this.xref.fetchIfRefAsync(a);if(i instanceof R){if($t(await i.getAsync("FT"),"Sig")){let o=await i.getAsync("V");if(o instanceof R){let r=await N(this,Be,B7).call(this,i,o,a);r&&s.push(r)}}i.has("Kids")&&await N(this,Be,Qw).call(this,await i.getAsync("Kids"),s,n)}}},$o=async function(t,s){try{return this.stream.getByteRange(t,s)}catch(n){if(!(n instanceof de))throw n;return await this.pdfManager.requestRange(t,s),N(this,Be,$o).call(this,t,s)}},H7=async function(t,s){if(s>0)return!1;let n=this.stream.end;for(let a=t;a<n;a+=65536){let i=Math.min(a+65536,n),o=await N(this,Be,$o).call(this,a,i);for(let r of o)if(r!==0&&r!==9&&r!==10&&r!==12&&r!==13&&r!==32)return!1}return!0},B7=async function(t,s,n){let a=await s.getAsync("ByteRange");if(!Array.isArray(a)||a.length!==4||a.some(v=>!Number.isInteger(v)||v<0))return null;let[i,o,r,l]=a,f=this.stream.end||0;if(i!==0||o<=0||i+o>r||r+l>f||f===0)return null;let c=await s.getAsync("Contents");if(typeof c!="string"||c.length===0)return null;let[h,m,u,d,p,g,b,w]=await Promise.all([s.getAsync("Filter"),s.getAsync("SubFilter"),t.getAsync("T"),s.getAsync("Name"),s.getAsync("Reason"),s.getAsync("Location"),s.getAsync("ContactInfo"),s.getAsync("M")]),k=h instanceof it?h.name:null,q=m instanceof it?m.name:null,y=null;return q==="adbe.pkcs7.detached"?y=0:q==="adbe.pkcs7.sha1"&&(y=1),{id:`${n instanceof rt?n.toString():"inline"}:${i}-${o}-${r}-${l}`,fieldName:typeof u=="string"?Jt(u):"",signerName:typeof d=="string"?Jt(d):null,reason:typeof p=="string"?Jt(p):null,location:typeof g=="string"?Jt(g):null,contactInfo:typeof b=="string"?Jt(b):null,signingTime:typeof w=="string"?w:null,filter:k,subFilter:q,signatureType:y,byteRange:a,pkcs7:Ce(c),revisionIndex:0,parentId:null}};var Yh=class{constructor({docBaseUrl:t,docId:s,enableXfa:n,evaluatorOptions:a,handler:i,password:o}){this._docBaseUrl=(function(f){if(f){let c=M1(f);if(c)return c.href;F(`Invalid absolute docBaseUrl: "${f}".`)}return null})(t),this._docId=s,this._password=o,this.enableXfa=n,a.isOffscreenCanvasSupported&&(a.isOffscreenCanvasSupported=us.isOffscreenCanvasSupported),a.isImageDecoderSupported&&(a.isImageDecoderSupported=us.isImageDecoderSupported),this.evaluatorOptions=Object.freeze(a),tn.setOptions(a),fo.setOptions(a),$s.setOptions(a);let r={...a,handler:i};Ki.setOptions(r),Il.setOptions(r),Pl.setOptions(r),tl.setOptions(r),co.setOptions(r)}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}ensureDoc(t,s){return this.ensure(this.pdfDocument,t,s)}ensureCatalog(t,s){return this.ensure(this.pdfDocument.catalog,t,s)}async initDocument(t){await this.ensureDoc("checkHeader"),await this.ensureDoc("parseStartXRef"),await this.ensureDoc("parse",[t]),await this.ensureDoc("checkFirstPage",[t]),await this.ensureDoc("checkLastPage",[t])}getPage(t){return this.pdfDocument.getPage(t)}fontFallback(t,s){return this.pdfDocument.fontFallback(t,s)}cleanup(t=!1){return this.pdfDocument.cleanup(t)}async ensure(t,s,n){Zt("Abstract method `ensure` called")}requestRange(t,s){Zt("Abstract method `requestRange` called")}requestLoadedStream(t=!1){Zt("Abstract method `requestLoadedStream` called")}sendProgressiveData(t){Zt("Abstract method `sendProgressiveData` called")}updatePassword(t){this._password=t,this.pdfDocument.xref.encrypt?.setPassword(t)}terminate(t){Zt("Abstract method `terminate` called")}},wl=class extends Yh{constructor(t){super(t);let s=new ke(t.source);this.pdfDocument=new Xh(this,s),this._loadedStreamPromise=Promise.resolve(s)}async ensure(t,s,n){let a=t[s];return typeof a=="function"?a.apply(t,n):a}requestLoadedStream(t=!1){return this._loadedStreamPromise}terminate(t){}},Zw=class extends Yh{constructor(t){super(t),this.streamManager=new cm(t.source,{msgHandler:t.handler,length:t.length,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize}),this.pdfDocument=new Xh(this,this.streamManager.getStream())}async ensure(t,s,n){try{let a=t[s];return typeof a=="function"?await a.apply(t,n):a}catch(a){if(!(a instanceof de))throw a;return await this.requestRange(a.begin,a.end),this.ensure(t,s,n)}}requestRange(t,s){return this.streamManager.requestRange(t,s)}requestLoadedStream(t=!1){return this.streamManager.requestAllChunks(t)}sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}terminate(t){this.streamManager.abort(t)}},J6=1,Q6=2,Z6=1,y0=2,t4=3,e4=4,s4=5,n4=6,Qc=7,v0=8;function a4(){}function Us(e){if(e instanceof Ye||e instanceof Li||e instanceof Cn||e instanceof z1||e instanceof Qo)return e;switch(e instanceof Error||typeof e=="object"&&e!==null||Zt(\'wrapReason: Expected "reason" to be a (possibly cloned) Error.\'),e.name){case"AbortException":return new Ye(e.message);case"InvalidPDFException":return new Li(e.message);case"PasswordException":return new Cn(e.message,e.code);case"ResponseException":return new z1(e.message,e.status,e.missing);case"UnknownErrorException":return new Qo(e.message,e.details)}return new Qo(e.message,e.toString())}var so,on,T7,R7,F7,j1,Jh=class{constructor(t,s,n){at(this,on);at(this,so,new AbortController);this.sourceName=t,this.targetName=s,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),n.addEventListener("message",N(this,on,T7).bind(this),{signal:S(this,so).signal})}on(t,s){let n=this.actionHandler;if(n[t])throw new Error(`There is already an actionName called "${t}"`);n[t]=s}send(t,s,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:s},n)}sendWithPromise(t,s,n){let a=this.callbackId++,i=Promise.withResolvers();this.callbackCapabilities[a]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:a,data:s},n)}catch(o){i.reject(o)}return i.promise}sendWithStream(t,s,n,a){let i=this.streamId++,o=this.sourceName,r=this.targetName,l=this.comObj;return new ReadableStream({start:f=>{let c=Promise.withResolvers();return this.streamControllers[i]={controller:f,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:o,targetName:r,action:t,streamId:i,data:s,desiredSize:f.desiredSize},a),c.promise},pull:f=>{let c=Promise.withResolvers();return this.streamControllers[i].pullCall=c,l.postMessage({sourceName:o,targetName:r,stream:n4,streamId:i,desiredSize:f.desiredSize}),c.promise},cancel:f=>{Ae(f instanceof Error,"cancel must have a valid reason");let c=Promise.withResolvers();return this.streamControllers[i].cancelCall=c,this.streamControllers[i].isClosed=!0,l.postMessage({sourceName:o,targetName:r,stream:Z6,streamId:i,reason:Us(f)}),c.promise}},n)}destroy(){S(this,so)?.abort(),Bt(this,so,null)}};so=new WeakMap,on=new WeakSet,T7=function({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){N(this,on,F7).call(this,t);return}if(t.callback){let n=t.callbackId,a=this.callbackCapabilities[n];if(!a)throw new Error(`Cannot resolve callback ${n}`);if(delete this.callbackCapabilities[n],t.callback===J6)a.resolve(t.data);else{if(t.callback!==Q6)throw new Error("Unexpected callback case");a.reject(Us(t.reason))}return}let s=this.actionHandler[t.action];if(!s)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let n=this.sourceName,a=t.sourceName,i=this.comObj;Promise.try(s,t.data).then(function(o){i.postMessage({sourceName:n,targetName:a,callback:J6,callbackId:t.callbackId,data:o})},function(o){i.postMessage({sourceName:n,targetName:a,callback:Q6,callbackId:t.callbackId,reason:Us(o)})});return}t.streamId?N(this,on,R7).call(this,t):s(t.data)},R7=function(t){let s=t.streamId,n=this.sourceName,a=t.sourceName,i=this.comObj,o=this,r=this.actionHandler[t.action],l={enqueue(f,c=1,h){if(this.isCancelled)return;let m=this.desiredSize;this.desiredSize-=c,m>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:a,stream:e4,streamId:s,chunk:f},h)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:t4,streamId:s}),delete o.streamSinks[s])},error(f){Ae(f instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:s4,streamId:s,reason:Us(f)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[s]=l,Promise.try(r,t.data,l).then(function(){i.postMessage({sourceName:n,targetName:a,stream:v0,streamId:s,success:!0})},function(f){i.postMessage({sourceName:n,targetName:a,stream:v0,streamId:s,reason:Us(f)})})},F7=function(t){let s=t.streamId,n=this.sourceName,a=t.sourceName,i=this.comObj,o=this.streamControllers[s],r=this.streamSinks[s];switch(t.stream){case v0:t.success?o.startCall.resolve():o.startCall.reject(Us(t.reason));break;case Qc:t.success?o.pullCall.resolve():o.pullCall.reject(Us(t.reason));break;case n4:if(!r){i.postMessage({sourceName:n,targetName:a,stream:Qc,streamId:s,success:!0});break}r.desiredSize<=0&&t.desiredSize>0&&r.sinkCapability.resolve(),r.desiredSize=t.desiredSize,Promise.try(r.onPull||a4).then(function(){i.postMessage({sourceName:n,targetName:a,stream:Qc,streamId:s,success:!0})},function(f){i.postMessage({sourceName:n,targetName:a,stream:Qc,streamId:s,reason:Us(f)})});break;case e4:if(Ae(o,"enqueue should have stream controller"),o.isClosed)break;o.controller.enqueue(t.chunk);break;case t4:if(Ae(o,"close should have stream controller"),o.isClosed)break;o.isClosed=!0,o.controller.close(),N(this,on,j1).call(this,o,s);break;case s4:Ae(o,"error should have stream controller"),o.controller.error(Us(t.reason)),N(this,on,j1).call(this,o,s);break;case y0:t.success?o.cancelCall.resolve():o.cancelCall.reject(Us(t.reason)),N(this,on,j1).call(this,o,s);break;case Z6:if(!r)break;let l=Us(t.reason);Promise.try(r.onCancel||a4,l).then(function(){i.postMessage({sourceName:n,targetName:a,stream:y0,streamId:s,success:!0})},function(f){i.postMessage({sourceName:n,targetName:a,stream:y0,streamId:s,reason:Us(f)})}),r.sinkCapability.reject(l),r.isCancelled=!0,delete this.streamSinks[s];break;default:throw new Error("Unexpected stream case")}},j1=async function(t,s){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[s]};async function i4(e,t,s,{encrypt:n=null,encryptRef:a=null}){let i=n&&a!==e?n.createCipherTransform(e.num,e.gen):null;s.push(`${e.num} ${e.gen} obj\n`),await uf(t,s,i),s.push(`\nendobj\n`)}async function t5(e,t,s){t.push("<<");for(let[n,a]of e.getRawEntries())t.push(` /${S5(n)} `),await uf(a,t,s);t.push(">>")}async function uf(e,t,s){e instanceof it?t.push(`/${S5(e.name)}`):e instanceof rt?t.push(`${e.num} ${e.gen} R`):Array.isArray(e)||ArrayBuffer.isView(e)?await(async function(a,i,o){i.push("[");for(let r=0,l=a.length;r<l;r++)await uf(a[r],i,o),r<l-1&&i.push(" ");i.push("]")})(e,t,s):typeof e=="string"?(s&&(e=s.encryptString(e)),t.push(`(${lo(e)})`)):typeof e=="number"?t.push((function(a){if(Number.isInteger(a)&&Math.abs(a)>=1e21)return BigInt(a).toString();let i=a.toFixed(10),o=i.length;for(;i[o-1]==="0";)o--;return i[o-1]==="."&&o--,i.slice(0,o)})(e)):typeof e=="boolean"?t.push(e.toString()):e instanceof R?await t5(e,t,s):e instanceof Et?await(async function(a,i,o){(a=a.getOriginalStream()).reset();let r=a.getBytes(),{dict:l}=a,[f,c]=await Promise.all([l.getAsync("Filter"),l.getAsync("DecodeParms")]),h=Array.isArray(f)?await l.xref.fetchIfRefAsync(f[0]):f,m=$t(h,"FlateDecode"),u=$t(h,"DCTDecode")||$t(h,"JPXDecode")||$t(h,"JBIG2Decode")||$t(h,"CCITTFaxDecode")||$t(h,"LZWDecode");if(!(m||u||$t(h,"BrotliDecode"))&&r.length>=256)try{let p=new CompressionStream("deflate"),g=p.writable.getWriter();await g.ready,g.write(r).then(async()=>{await g.ready,await g.close()}).catch(()=>{}),r=await new Response(p.readable).bytes();let b,w;f?m||(b=Array.isArray(f)?[it.get("FlateDecode"),...f]:[it.get("FlateDecode"),f],c&&(w=Array.isArray(c)?[null,...c]:[null,c])):b=it.get("FlateDecode"),b&&l.set("Filter",b),w&&l.set("DecodeParms",w)}catch(p){ie(`writeStream - cannot compress data: "${p}".`)}let d=Cs(r);o&&(d=o.encryptString(d)),l.set("Length",d.length),await t5(l,i,o),i.push(` stream\n`,d,`\nendstream`)})(e,t,s):e===null?t.push("null"):F(`Unhandled value in writer: ${typeof e}, please file a bug.`)}function x0(e,t,s,n){for(let a=t+s-1;a>s-1;a--)n[a]=255&e,e>>=8;return s+t}function M7(e,t,s){let n=e.length;for(let a=0;a<n;a++)s[t+a]=255&e.charCodeAt(a);return t+n}function $v({xfaData:e,xfaDatasetsRef:t,changes:s,xref:n}){e===null&&(e=(function(o,r){let l=new go({hasAttributes:!0}).parseFromString(o);for(let{xfa:c}of r){if(!c)continue;let{path:h,value:m}=c;if(!h||m===null)continue;let u=O4(h),d=l.documentElement.searchNode(u,0);!d&&u.length>1&&(d=l.documentElement.searchNode([u.at(-1)],0)),d?d.childNodes=Array.isArray(m)?m.map(p=>new Di("value",p)):[new Di("#text",m)]:F(`Node not found for path: ${h}`)}let f=[];return l.documentElement.dump(f),f.join("")})(n.fetchIfRef(t).getString(),s));let a=new ts(e,new R(n));a.dict.setIfName("Type","EmbeddedFile"),s.put(t,{data:a})}function r4(e){let t=[];for(let{ref:s}of e)s.num===t.at(-2)+t.at(-1)?t[t.length-1]+=1:t.push(s.num,1);return t}function o4(e,t,s){if(Array.isArray(t.fileIds)&&t.fileIds.length>0){let n=(function(i,o){let r=Math.floor(Date.now()/1e3),l=o.filename||"",f=[r.toString(),l,i.toString(),...o.infoMap.values()],c=Math.sumPrecise(f.map(u=>u.length)),h=new Uint8Array(c),m=0;for(let u of f)m=M7(u,m,h);return Cs(Ba(h,0,h.length))})(e,t);s.set("ID",[t.fileIds[0]||n,n])}}async function z7({originalData:e,xrefInfo:t,changes:s,xref:n=null,hasXfa:a=!1,xfaDatasetsRef:i=null,hasXfaDatasetsEntry:o=!1,needAppearances:r,acroFormRef:l=null,acroForm:f=null,xfaData:c=null,useXrefStream:h=!1}){await(async function({xref:y,acroForm:v,acroFormRef:A,hasXfa:x,hasXfaDatasetsEntry:I,xfaDatasetsRef:B,needAppearances:D,changes:W}){if(!x||I||B||F("XFA - Cannot save it"),!D&&(!x||!B||I))return;let L=v.clone();if(x&&!I){let ot=v.get("XFA").slice();ot.splice(2,0,"datasets"),ot.splice(3,0,B),L.set("XFA",ot)}D&&L.set("NeedAppearances",!0),W.put(A,{data:L})})({xref:n,acroForm:f,acroFormRef:l,hasXfa:a,hasXfaDatasetsEntry:o,xfaDatasetsRef:i,needAppearances:r,changes:s}),a&&$v({xfaData:c,xfaDatasetsRef:i,changes:s,xref:n});let m=(function(y,v,A){let x=new R(null);x.setIfDefined("Prev",y?.startXRef);let I=y.newRef;return A?(v.put(I,{data:""}),x.set("Size",I.num+1),x.setIfName("Type","XRef")):x.set("Size",I.num),x.setIfDefined("Root",y?.rootRef),x.setIfDefined("Info",y?.infoRef),x.setIfDefined("Encrypt",y?.encryptRef),x})(t,s,h),u=[],d=await(async function(y,v,A=[]){let x=[];for(let[I,{data:B,objStreamRef:D,index:W}]of y.items())D?x.push({ref:I,data:B,objStreamRef:D,index:W}):B!==null&&typeof B!="string"?(await i4(I,B,A,v),x.push({ref:I,data:A.join("")}),A.length=0):x.push({ref:I,data:B});return x.sort((I,B)=>I.ref.num-B.ref.num)})(s,n,u),p=e.length,g=e.at(-1);g!==10&&g!==13&&(u.push(`\n`),p+=1);for(let{data:q}of d)q!==null&&u.push(q);await(h?(async function(y,v,A,x,I){let B=[],D=0,W=0;for(let{ref:C,data:M,objStreamRef:J,index:et}of A){let U;D=Math.max(D,v),J?(U=et,B.push([2,J.num,U])):M!==null?(U=Math.min(C.gen,65535),B.push([1,v,U]),v+=M.length):(U=Math.min(C.gen+1,65535),B.push([0,0,U])),W=Math.max(W,U)}x.set("Index",r4(A));let L=[1,w3(D),w3(W)];x.set("W",L),o4(v,y,x);let ot=Math.sumPrecise(L),P=new Uint8Array(ot*B.length),H=new ke(P);H.dict=x;let V=0;for(let[C,M,J]of B)V=x0(C,L[0],V,P),V=x0(M,L[1],V,P),V=x0(J,L[2],V,P);await i4(y.newRef,H,I,{}),I.push(`startxref\n`,v.toString(),`\n%%EOF\n`)})(t,p,d,m,u):(async function(y,v,A,x,I){I.push(`xref\n`);let B=r4(A),D=0;for(let{ref:W,data:L}of A)W.num===B[D]&&(I.push(`${B[D]} ${B[D+1]}\n`),D+=2),L!==null?(I.push(`${v.toString().padStart(10,"0")} ${Math.min(W.gen,65535).toString().padStart(5,"0")} n\\r\n`),v+=L.length):I.push(`0000000000 ${Math.min(W.gen+1,65535).toString().padStart(5,"0")} f\\r\n`);o4(v,y,x),I.push(`trailer\n`),await t5(x,I,null),I.push(`\nstartxref\n`,v.toString(),`\n%%EOF\n`)})(t,p,d,m,u));let b=e.length+Math.sumPrecise(u.map(q=>q.length)),w=new Uint8Array(b);w.set(e);let k=e.length;for(let q of u)k=M7(q,k,w);return w}var e5=class{constructor(t,s){this.page=t,this.documentData=s,this.annotations=null,this.pointingNamedDestinations=null,this.copyLevel=0,s.pagesMap.put(t.ref,this)}},s5=class{constructor(t){this.document=t,this.destinations=null,this.pageLabels=null,this.pagesMap=new Pe,this.oldRefMapping=new Pe,this.dedupNamedDestinations=new Map,this.usedNamedDestinations=new Set,this.postponedRefCopies=new Pe,this.resourceStreamPromises=new Map,this.usedStructParents=new Set,this.oldStructParentMapping=new Map,this.structTreeRoot=null,this.parentTree=null,this.idTree=null,this.roleMap=null,this.classMap=null,this.namespaces=null,this.structTreeAF=null,this.structTreePronunciationLexicon=[],this.acroForm=null,this.acroFormDefaultAppearance="",this.acroFormDefaultResources=null,this.acroFormQ=0,this.hasSignatureAnnotations=!1,this.fieldToParent=new Pe,this.outline=null,this.embeddedFiles=null}},n5=class{constructor(t,s){this.entries=t,this._getNewRef=s}getNewTemporaryRef(){return this._getNewRef()}countUpdatesAfter(t){return null}fetchIfRef(t){return t instanceof rt?this.fetch(t):t}fetch(t){if(!(t instanceof rt))throw new Error("ref object is not a reference");return this.entries[t.num]}async fetchIfRefAsync(t){return t instanceof rt?this.fetchAsync(t):t}async fetchAsync(t){return this.fetch(t)}},no,qc,Iu,dt,Go,We,D7,i5,O7,N7,_7,P7,r5,o5,l5,U7,L7,E7,K7,W7,Xo,V7,$7,G7,X7,Y7,J7,f5,Q7,Z7,tj,ej,sj,nj,aj,ij,rj,oj,lj,fj,cj,hj,uj,mj,kr,pj,dj,gj,bj,wj,jj,kj,qj,yj,vj,xj,a5=class{constructor({useObjectStreams:t=!0,title:s="",author:n=""}={}){at(this,dt);Y(this,"isSingleFile",!1);at(this,no,null);at(this,qc,null);at(this,Iu,new Map);Y(this,"currentDocument",null);Y(this,"oldPages",[]);Y(this,"newPages",[]);Y(this,"xref",[null]);Y(this,"xrefWrapper",new n5(this.xref,()=>this.newRef));Y(this,"newRefCount",1);Y(this,"namesDict",null);Y(this,"version","1.7");Y(this,"pageLabels",null);Y(this,"namedDestinations",new Map);Y(this,"parentTree",new Map);Y(this,"structTreeKids",[]);Y(this,"idTree",new Map);Y(this,"classMap",new R);Y(this,"roleMap",new R);Y(this,"namespaces",new Map);Y(this,"structTreeAF",[]);Y(this,"structTreePronunciationLexicon",[]);Y(this,"fields",[]);Y(this,"acroFormDefaultAppearance","");Y(this,"acroFormDefaultResources",null);Y(this,"acroFormNeedAppearances",!1);Y(this,"acroFormSigFlags",0);Y(this,"acroFormCalculationOrder",null);Y(this,"acroFormQ",0);Y(this,"outlineItems",null);Y(this,"embeddedFiles",new Map);[this.rootRef,this.rootDict]=this.newDict,[this.infoRef,this.infoDict]=this.newDict,[this.pagesRef,this.pagesDict]=this.newDict,this.useObjectStreams=t,this.objStreamRefs=t?new Set:null,this.title=s,this.author=n}get newRef(){return rt.get(this.newRefCount++,0)}get newDict(){let t=this.newRef;return[t,this.xref[t.num]=new R]}cloneDict(t){let s=t.clone();return s.xref=this.xrefWrapper,s}async extractPages(t,s,n,a,i){Bt(this,qc,n),t=N(this,dt,U7).call(this,t);let o=[],r=0,l=p=>{if(!Number.isInteger(p)||p<0)throw new Error("extractPages: invalid page index.");if(this.oldPages[p]!==void 0)throw new Error("extractPages: overlapping pageIndices.");this.oldPages[p]=null},f=[];s&&Bt(this,no,{handler:a,task:i,newAnnotationsByPage:A5(s),imagesPromises:Es.generateImages(s.values(),this.xrefWrapper,!0)});let c=[];for(let p of t){let{document:g,image:b,includePages:w,excludePages:k,pageIndices:q}=p;if(b){if(q&&(r=-1,q.length>1))throw new Error("extractPages: too many pageIndices.");let x;if(q?.length)x=q[0];else if(r!==-1)x=r++;else for(x=0;this.oldPages[x]!==void 0;x++);l(x),c.push({image:b,slot:x});continue}if(!g)continue;q&&(r=-1);let y=N(this,dt,l5).call(this,{document:g,includePages:w,excludePages:k});if(q&&q.length>y.length)throw new Error("extractPages: too many pageIndices.");let v=new s5(g);f.push(v),o.push(N(this,dt,L7).call(this,v));let A=0;for(let x of y){let I;if(q&&(I=q[A++]),I===void 0)if(r!==-1)I=r++;else for(I=0;this.oldPages[I]!==void 0;I++);l(I),o.push(g.getPage(x).then(B=>{this.oldPages[I]=new e5(B,v)}))}}if(await Promise.all(o),this.oldPages.length===0)throw new Error("extractPages: nothing to extract.");let h=new Map,m=new Set;for(let p=0,g=this.oldPages.length;p<g;p++){let b=this.oldPages[p];if(b===void 0)throw new Error("extractPages: sparse pageIndices.");if(b){let{page:w}=b,k=h.get(w)??0;h.set(w,k+1),b.copyLevel=k,m.add(b.documentData.document)}}this.isSingleFile=m.size===1,o.length=0,N(this,dt,$7).call(this,f),N(this,dt,Y7).call(this,f),N(this,dt,fj).call(this);for(let p of this.oldPages)p&&o.push(N(this,dt,E7).call(this,p));await Promise.all(o),N(this,dt,G7).call(this),N(this,dt,K7).call(this,f);let u=new Map;for(let p of c)u.set(p.slot,p);let d=u.size>0?N(this,dt,hj).call(this):null;for(let p=0,g=this.oldPages.length;p<g;p++){let b=u.get(p);this.newPages[p]=b?await N(this,dt,uj).call(this,b.image,d):await N(this,dt,cj).call(this,p,null)}return N(this,dt,W7).call(this,f),await N(this,dt,V7).call(this,f),await N(this,dt,ej).call(this,f),N(this,dt,Q7).call(this,f),await N(this,dt,dj).call(this,f),this.writePDF()}async writePDF(){await N(this,dt,kj).call(this);let t=N(this,dt,qj).call(this),[s,n,a]=await N(this,dt,yj).call(this),[i,o]=await N(this,dt,vj).call(this);return z7({originalData:Ce(`%PDF-${this.version}\n%\\xFA\\xDE\\xFA\\xCE`),changes:i,xrefInfo:{startXRef:null,rootRef:this.rootRef,infoRef:this.infoRef,encryptRef:s,newRef:o,fileIds:a||[null,null],infoMap:t},useXrefStream:this.useObjectStreams,xref:{encrypt:n,encryptRef:s}})}};no=new WeakMap,qc=new WeakMap,Iu=new WeakMap,dt=new WeakSet,Go=async function(t,s){let n=this.newRef;return this.xref[n.num]=await N(this,dt,We).call(this,t,!0,s),n},We=async function(t,s,n,a=new re){if(t instanceof rt){let{currentDocument:{fieldToParent:l,oldRefMapping:f}}=this,c=f.get(t);if(c)return c;let h=t;t=await n.fetchAsync(h);let m=f.get(h);if(m)return m;if(typeof t=="number")return t;if(t instanceof Et&&N(this,dt,D7).call(this,t.dict))return N(this,dt,_7).call(this,h,t,n,a);let u=this.newRef;f.put(h,u);let d=!0;return l.has(h)&&t instanceof R&&((t=this.cloneDict(t)).delete("Parent"),d=!1),this.xref[u.num]=await N(this,dt,We).call(this,t,d,n,a),u}let i=[],{currentDocument:{postponedRefCopies:o}}=this;if(Array.isArray(t)){s&&(t=t.slice());for(let l=0,f=t.length;l<f;l++){let c=t[l]instanceof rt&&o.get(t[l]);c?c.push(h=>t[l]=h):i.push(N(this,dt,We).call(this,t[l],!0,n,a).then(h=>t[l]=h))}return await Promise.all(i),t}let r;if(t instanceof Et?({dict:r}=t=t.getOriginalStream().clone(),r.xref=this.xrefWrapper):t instanceof R&&(s&&((t=t.clone()).xref=this.xrefWrapper),r=t),r){for(let[l,f]of r.getRawEntries()){let c=f instanceof rt&&o.get(f);c?c.push(h=>r.set(l,h)):i.push(N(this,dt,We).call(this,f,!0,n,a).then(h=>r.set(l,h)))}await Promise.all(i)}return t},D7=function(t){let s=t.get("Subtype");return $t(s,"Image")||t.has("Length1")||$t(s,"Type1C")||$t(s,"CIDFontType0C")||$t(s,"OpenType")},i5=function(t){let s=t.getOriginalStream();return s.reset(),s.getBytes()},O7=async function(t){let s=[];return await uf(t,s,null),s.join("")},N7=function(t,s){let{length:a}=s,i=new mh;if(i.update(t),i.update(`#${a}`),a<=1024)i.update(s);else{let o=Math.floor((a-256)/3);for(let r=0;r<4;r++){let l=Math.min(r*o,a-256);i.update(s.subarray(l,l+256))}}return i.hexdigest()},_7=async function(t,s,n,a){let{currentDocument:{oldRefMapping:i,resourceStreamPromises:o}}=this;if(a.has(t))return i.getOrPutComputed(t,()=>this.newRef);let r=t.toString(),l=o.get(r);if(l)return l;let f=new re(a);f.put(t);let c=Promise.resolve().then(async()=>{let h=await N(this,dt,We).call(this,s,!0,n,f),m=i.get(t);if(m)return this.xref[m.num]=h,m;let u=await N(this,dt,P7).call(this,h);return i.put(t,u),u});o.set(r,c);try{return await c}finally{o.get(r)===c&&o.delete(r)}},P7=async function(t){let s=await N(this,dt,O7).call(this,t.dict),n=N(this,dt,i5).call(this,t),a=N(this,dt,N7).call(this,s,n),i=S(this,Iu).getOrInsertComputed(a,Ya);for(let r of i)if(r.dictStr===s&&Ei(N(this,dt,i5).call(this,r.stream),n))return r.ref;let o=this.newRef;return this.xref[o.num]=t,i.push({ref:o,dictStr:s,stream:t}),o},r5=async function(t,s){if(t instanceof rt){let n=await s.fetchAsync(t);return Array.isArray(n)?n:[t]}return Array.isArray(t)?t:[t]},o5=async function(t,s,n,a,i,o,r,l=new re){let{currentDocument:{pagesMap:f,oldRefMapping:c}}=this,h=s.getRaw("Pg");if(h instanceof rt&&!f.has(h))return null;let m=s.getRaw("K");if(m instanceof rt&&l.has(m))return null;let u=await N(this,dt,r5).call(this,m,n),d=[],p=[];for(let v of u){let A=v instanceof rt?v:null;if(A){if(l.has(A))continue;l.put(A),v=await n.fetchAsync(A)}if(typeof v=="number"){d.push(v);continue}if(!(v instanceof R))continue;let x=v.getRaw("Pg");if(x instanceof rt&&!f.has(x))continue;let I=v.get("Type");if(!I||$t(I,"StructElem")){let B=!1;if(A&&a.has(A)){if(!$t(v.get("S"),"Link"))continue;B=!0}let D=await N(this,dt,o5).call(this,A,v,n,a,i,o,r,l);D&&(p.push(d.length),d.push(D),A&&c.put(A,D),B&&this.xref[D.num].setIfName("S","Span"));continue}if($t(I,"OBJR")){if(!A)continue;let B=v.getRaw("Obj");if(B instanceof rt&&!c.get(B))continue;let D=c.get(A)||await N(this,dt,We).call(this,A,!0,n),W=this.xref[D.num].getRaw("Obj");if(W instanceof rt){let L=this.xref[W.num];if(L instanceof R&&!L.has("StructParent")&&t){let ot=this.parentTree.size;this.parentTree.set(ot,[c,t]),L.set("StructParent",ot)}}d.push(D);continue}if($t(I,"MCR")){let B=await N(this,dt,We).call(this,A||v,!0,n);d.push(B);continue}if(A){let B=await N(this,dt,We).call(this,A,!0,n);d.push(B)}}if(u.length!==0&&d.length===0)return null;let g=this.newRef,b=this.xref[g.num]=this.cloneDict(s);b.delete("ID"),b.delete("C"),b.delete("K"),b.delete("P"),b.delete("S"),await N(this,dt,We).call(this,b,!1,n);let w=s.get("C");if(w instanceof it){let v=o.get(w.name);b.set("C",v?it.get(v):w)}else if(Array.isArray(w)){let v=[];for(let A of w)if(A instanceof it){let x=o.get(A.name);v.push(x?it.get(x):A)}b.set("C",v)}let k=s.get("S");if(k instanceof it){let v=r.get(k.name);b.set("S",v?it.get(v):k)}let q=s.get("ID");if(typeof q=="string"){let v=Jt(q,!1),A=i.get(v);b.set("ID",A?Ze(A):q)}let y=b.get("A");if(y){Array.isArray(y)||(y=[y]);for(let v of y)if(v=this.xrefWrapper.fetchIfRef(v),v instanceof R&&$t(v.get("O"),"Table")&&v.has("Headers")){let A=this.xrefWrapper.fetchIfRef(v.getRaw("Headers"));if(Array.isArray(A))for(let x=0,I=A.length;x<I;x++){let B=this.xrefWrapper.fetchIfRef(A[x]);if(typeof B!="string")continue;let D=i.get(Jt(B,!1));D&&(A[x]=D)}}}for(let v of p){let A=d[v];this.xref[A.num].set("P",g)}return d.length===1?b.set("K",d[0]):d.length>1&&b.set("K",d),g},l5=function({document:t,includePages:s,excludePages:n}){if(!t)return[];let a=f=>{if(!f?.length)return null;let c=new Set,h=[];for(let m of f)Array.isArray(m)?h.push(m):c.add(m);return{indices:c,ranges:h}},i=(f,{indices:c,ranges:h})=>c.has(f)||h.some(([m,u])=>f>=m&&f<=u),o=a(s),r=a(n),l=[];for(let f=0,c=t.numPages;f<c;f++)r&&i(f,r)||o&&!i(f,o)||l.push(f);return l},U7=function(t){let s=new Array(t.length),n=[],a=[];for(let l=0;l<t.length;l++){let f=t[l],c;if(f.image)c=s[l]=1;else{if(!f.document){s[l]=0;continue}c=s[l]=N(this,dt,l5).call(this,f).length}if(!f.pageIndices)if(f.insertAfter===void 0)for(let h=0;h<c;h++)n.push(l);else a.push({i:l,insertAfter:f.insertAfter,count:c})}if(a.length===0)return t;let i=l=>!(!l.document&&!l.image);for(let l=0;l<t.length;l++){let f=t[l];if(i(f)&&f.pageIndices&&f.pageIndices.length<s[l])throw new Error("extractPages: partial pageIndices cannot be combined with insertAfter entries.")}if(a.sort((l,f)=>l.insertAfter-f.insertAfter||l.i-f.i),n.length===0&&t.some(l=>i(l)&&l.pageIndices)){let l=t.slice(),f=-1;for(let h of t)if(i(h)&&h.pageIndices)for(let m of h.pageIndices)m>f&&(f=m);let c=0;for(let{i:h,insertAfter:m,count:u}of a){let d=Math.min(Math.max(m,-1)+c,f);for(let b=0;b<l.length;b++){let w=l[b];i(w)&&w.pageIndices&&!w.pageIndices.every(k=>k<=d)&&(l[b]={...w,pageIndices:w.pageIndices.map(k=>k>d?k+u:k)})}let p=[];for(let b=0;b<u;b++)p.push(d+1+b);let g={...l[h],pageIndices:p};delete g.insertAfter,l[h]=g,c+=u,f+=u}return l}let o=0;for(let{i:l,insertAfter:f,count:c}of a){let h=Math.max(f,-1)+1+o;n.splice(h,0,...new Array(c).fill(l)),o+=c}let r=new Array(t.length);for(let l=0;l<n.length;l++){let f=n[l];(r[f]||(r[f]=[])).push(l)}return t.map((l,f)=>{if(!i(l)||l.pageIndices)return l;let c={...l,pageIndices:r[f]||[]};return delete c.insertAfter,c})},L7=async function(t){let{document:{pdfManager:s,xref:n}}=t;await Promise.all([s.ensureCatalog("destinations").then(i=>t.destinations=i),s.ensureCatalog("rawPageLabels").then(i=>t.pageLabels=i),s.ensureCatalog("structTreeRoot").then(i=>t.structTreeRoot=i),s.ensureCatalog("acroForm").then(i=>t.acroForm=i),s.ensureCatalog("documentOutlineForEditor").then(i=>t.outline=i),s.ensureCatalog("rawEmbeddedFiles").then(i=>t.embeddedFiles=i)]);let a=t.structTreeRoot;if(a){let i=a.dict,o=i.get("ParentTree");if(o){let f=new Gi(o,n);t.parentTree=f.getAll(!0)}let r=i.get("IDTree");if(r){let f=new wn(r,n);t.idTree=f.getAll(!0)}t.roleMap=i.get("RoleMap")||null,t.classMap=i.get("ClassMap")||null;let l=i.get("Namespaces")||null;l&&!Array.isArray(l)&&(l=[l]),t.namespaces=l,t.structTreeAF=i.get("AF")||null,t.structTreePronunciationLexicon=i.get("PronunciationLexicon")||null}},E7=async function(t){var m;let{page:{xref:s,annotations:n},documentData:{pagesMap:a,destinations:i,usedNamedDestinations:o,fieldToParent:r}}=t;if(!n)return;let l=[],f=[],c=0,{hasSignatureAnnotations:h}=t.documentData;for(let u of n){let d=c++;l.push(s.fetchIfRefAsync(u).then(async p=>{if(!$t(p.get("Subtype"),"Link")){if($t(p.get("Subtype"),"Widget")){h||(h=$t(rs({dict:p,key:"FT"}),"Sig"));let w=p.getRaw("Parent")||null;r.put(u,w)}f[d]=u;return}let g=p.get("A");if(g instanceof R&&!$t(g.get("S"),"GoTo")){f[d]=u;return}let b=g instanceof R?g.get("D"):p.get("Dest");if(b&&(!Array.isArray(b)||b[0]instanceof rt&&!a.has(b[0]))){if(b instanceof it||typeof b=="string"){let w=Jt(b instanceof it?b.name:b,!0);i.has(w)&&(f[d]=u,o.add(w))}}else f[d]=u}))}await Promise.all(l),f=f.filter(Boolean),t.annotations=f.length>0?f:null,(m=t.documentData).hasSignatureAnnotations||(m.hasSignatureAnnotations=h)},K7=function(t){for(let{postponedRefCopies:s,pagesMap:n}of t)for(let a of n.keys())s.put(a,[])},W7=function(t){for(let{postponedRefCopies:s,oldRefMapping:n}of t){for(let[a,i]of s.items()){let o=n.get(a);for(let r of i)r(o)}s.clear()}},Xo=function(t,s,n=new re){if(t instanceof rt){n.has(t)||(n.put(t),N(this,dt,Xo).call(this,this.xref[t.num],s,n));return}if(Array.isArray(t)){for(let i of t)N(this,dt,Xo).call(this,i,s,n);return}let a;if(t instanceof Et?{dict:a}=t:t instanceof R&&(a=t),a){s(a);for(let i of a.getRawValues())N(this,dt,Xo).call(this,i,s,n)}},V7=async function(t){let s=0,{parentTree:n}=this;for(let h=0,m=this.newPages.length;h<m;h++){if(!this.oldPages[h])continue;let{documentData:{parentTree:u,oldRefMapping:d,oldStructParentMapping:p,usedStructParents:g,document:{xref:b}}}=this.oldPages[h];if(!u)continue;let w=this.newPages[h],k=this.xref[w.num],q=new re;q.put(w),N(this,dt,Xo).call(this,k,y=>{let v=y.get("StructParent")??y.get("StructParents");if(typeof v!="number")return;g.add(v);let A=u.get(v),x=A instanceof rt?A:null;if(x){let B=b.fetch(x);Array.isArray(B)&&(A=B)}if(Array.isArray(A)&&A.every(B=>B===null)&&(A=null),!A){y.has("StructParent")?y.delete("StructParent"):y.delete("StructParents");return}let I=p.get(v);I===void 0&&(I=s++,p.set(v,I),n.set(I,[d,A])),y.has("StructParent")?y.set("StructParent",I):y.set("StructParents",I)},q)}let{structTreeKids:a,idTree:i,classMap:o,roleMap:r,namespaces:l,structTreeAF:f,structTreePronunciationLexicon:c}=this;for(let h of t){let{document:{xref:m},oldRefMapping:u,parentTree:d,usedStructParents:p,structTreeRoot:g,idTree:b,classMap:w,roleMap:k,namespaces:q,structTreeAF:y,structTreePronunciationLexicon:v}=h;if(!g)continue;this.currentDocument=h;let A=new re;for(let[L,ot]of d||[])!p.has(L)&&ot instanceof rt&&A.put(ot);let x=new Map;for(let[L,ot]of b||[]){let P=L;if(i.has(L))for(let H=1;;H++){let V=`${L}_${H}`;if(!i.has(V)){x.set(L,V),P=V;break}}i.set(P,ot)}let I=new Map;if(w?.size>0)for(let[L,ot]of w){if(ot=await N(this,dt,We).call(this,ot,!0,m),o.has(L))for(let P=1;;P++){let H=`${L}_${P}`;if(!o.has(H)){I.set(L,H),L=H;break}}o.set(L,ot)}let B=new Map;if(k?.size>0)for(let[L,ot]of k){let P=r.get(L);if(P){if(P!==ot)for(let H=1;;H++){let V=`${L}_${H}`;if(!r.has(V)){B.set(L,V),r.set(V,ot);break}}}else r.set(L,ot)}if(q?.length>0)for(let L of q){let ot=await m.fetchIfRefAsync(L),P=ot.get("NS");if(!P||l.has(P))continue;P=Jt(P,!1);let H=await N(this,dt,We).call(this,ot,!0,m);l.set(P,H)}if(y)for(let L of y)f.push(await N(this,dt,We).call(this,L,!0,m));if(v)for(let L of v)c.push(await N(this,dt,We).call(this,L,!0,m));let D=g.dict.getRaw("K");if(!D)continue;let W=await N(this,dt,r5).call(this,D,m);for(let L of W){let ot=L instanceof rt?L:null;if(L=await m.fetchIfRefAsync(L),!(L instanceof R))continue;let P=!1;if(ot&&A.has(ot)){if(!$t(L.get("S"),"Link"))continue;P=!0}let H=await N(this,dt,o5).call(this,ot,L,m,A,x,I,B);H&&(a.push(H),ot&&u.put(ot,H),P&&this.xref[H.num].setIfName("S","Span"))}for(let[L,ot]of b||[]){let P=ot instanceof rt&&u.get(ot),H=x.get(L)||L;P?i.set(H,P):i.delete(H)}}for(let[h,[m,u]]of n){if(!u){n.delete(h);continue}if(!Array.isArray(u)){let p=m.get(u);p===void 0?n.delete(h):n.set(h,p);continue}let d=u.map(p=>p instanceof rt&&m.get(p)||null);d.length===0||d.every(p=>p===null)?n.delete(h):n.set(h,d)}this.currentDocument=null},$7=function(t){for(let s of t){if(!s.destinations)continue;let{destinations:n,pagesMap:a}=s,i=s.destinations=new Map;for(let[o,r]of n){let l=r[0],f=l instanceof rt&&a.get(l);f&&((f.pointingNamedDestinations||(f.pointingNamedDestinations=new Set)).add(o),i.set(o,r))}}},G7=function(){let{namedDestinations:t}=this,s=n=>{if(!t.has(n))return n;for(let a=1;;a++){let i=`${n}_${a}`;if(!t.has(i))return i}};for(let n=0,a=this.oldPages.length;n<a;n++){let i=this.oldPages[n];if(!i)continue;let{documentData:{destinations:o,dedupNamedDestinations:r,usedNamedDestinations:l}}=i,{pointingNamedDestinations:f}=i;if(f){i.pointingNamedDestinations=f=f.intersection(l);for(let c of f){if(!l.has(c))continue;let h=o.get(c).slice();if(!t.has(c)){t.set(c,h);continue}let m=s(`${c}_p${n+1}`);r.set(c,m),t.set(m,h)}}}},X7=function(t,s){if(s.size===0)return;let n=(a,i,o)=>{typeof o=="string"&&a.set(i,s.get(Jt(o,!0))||o)};for(let a of t){let i=this.xref[a.num];if(!$t(i.get("Subtype"),"Link"))continue;let o=i.get("A");if(o instanceof R&&o.has("D")){let l=o.get("D");n(o,"D",l);continue}let r=i.get("Dest");n(i,"Dest",r)}},Y7=function(t){let s=(n,a,i)=>{for(let o of n)typeof o.dest=="string"&&a?.has(o.dest)&&i.add(o.dest),o.items.length>0&&s(o.items,a,i)};for(let n of t){let{outline:a,destinations:i,usedNamedDestinations:o}=n;a?.length&&s(a,i,o)}},J7=function(t,s){let{dest:n,action:a,url:i,unsafeUrl:o,attachment:r,setOCGState:l}=t;if(a||i||o||r||l)return!0;if(!n)return!1;if(typeof n=="string"){let f=s.dedupNamedDestinations.get(n)||n;return this.namedDestinations.has(f)}return!!(Array.isArray(n)&&n[0]instanceof rt)&&!!s.oldRefMapping.get(n[0])},f5=function(t,s){let n=[];for(let a of t){let i=N(this,dt,f5).call(this,a.items,s),o=N(this,dt,J7).call(this,a,s);(o||i.length>0)&&n.push({...a,dest:o?a.dest:null,rawDict:o?a.rawDict:null,items:i,_documentData:s})}return n},Q7=function(t){let s=[];for(let n of t){let{outline:a}=n;a?.length&&s.push(...N(this,dt,f5).call(this,a,n))}this.outlineItems=s.length>0?s:null},Z7=async function(t,s){let{dest:n,rawDict:a}=s,i=s._documentData;if(n){if(typeof n=="string"){let r=i.dedupNamedDestinations.get(n)||n;t.set("Dest",Ze(r))}else if(Array.isArray(n)){let r=n.slice();r[0]instanceof rt&&(r[0]=i.oldRefMapping.get(r[0])||r[0]),t.set("Dest",r)}return}let o=a?.get("A");if(o instanceof R){this.currentDocument=i;let r=await N(this,dt,Go).call(this,o,i.document.xref);this.currentDocument=null,t.set("A",r)}},tj=async function(){let{outlineItems:t}=this;if(!t?.length)return;let[s,n]=this.newDict;n.setIfName("Type","Outlines");let a=r=>{for(let l of r)[l._ref]=this.newDict,l.items.length>0&&a(l.items)};a(t);let i=async(r,l)=>{let f=0;for(let c=0;c<r.length;c++){let h=r[c],m=this.xref[h._ref.num];if(m.set("Title",Ze(h.title)),m.set("Parent",l),c>0&&m.set("Prev",r[c-1]._ref),c<r.length-1&&m.set("Next",r[c+1]._ref),h.items.length>0){m.set("First",h.items[0]._ref),m.set("Last",h.items.at(-1)._ref);let d=await i(h.items,h._ref);h.count!==void 0&&m.set("Count",h.count<0?-d:d),f+=h.count!==void 0&&h.count<0?1:d+1}else f+=1;await N(this,dt,Z7).call(this,m,h);let u=(h.bold?2:0)|(h.italic?1:0);u!==0&&m.set("F",u),!h.color||h.color[0]===0&&h.color[1]===0&&h.color[2]===0||m.set("C",[h.color[0]/255,h.color[1]/255,h.color[2]/255])}return f},o=await i(t,s);n.set("First",t[0]._ref),n.set("Last",t.at(-1)._ref),n.set("Count",o),this.rootDict.set("Outlines",s)},ej=async function(t){N(this,dt,nj).call(this,t),N(this,dt,ij).call(this,t),N(this,dt,sj).call(this,t),await N(this,dt,rj).call(this,t);let s=this.fields;for(let n of t){let a=n.acroForm?.get("Fields")||null;!a&&n.fieldToParent.size>0&&(a=N(this,dt,oj).call(this,n.fieldToParent,n.document.xref)),Array.isArray(a)&&a.length>0&&(this.currentDocument=n,await N(this,dt,lj).call(this,s,a),this.currentDocument=null)}N(this,dt,aj).call(this,t)},sj=function(t){let s=0,n=null;for(let a of t){let i=a.acroForm?.get("Q");typeof i=="number"&&i!==0&&(n?.acroFormQ>0?a.acroFormQ=i:s!==0?i!==s&&(n.acroFormQ||(n.acroFormQ=s),a.acroFormQ=i,s=0):(s=i,n=a))}s>0&&(this.acroFormQ=s)},nj=function(t){let s=0,n=!1;for(let a of t){if(!a.acroForm)continue;let i=a.acroForm.get("SigFlags");typeof i=="number"&&a.hasSignatureAnnotations&&(s|=i),a.acroForm.get("NeedAppearances")===!0&&(n=!0)}this.acroFormSigFlags=s,this.acroFormNeedAppearances=n},aj=function(t){let s=[];for(let n of t){let a=n.acroForm?.get("CO")||null;if(!Array.isArray(a))continue;let{oldRefMapping:i}=n;for(let o of a){let r=o instanceof rt&&i.get(o);r&&s.push(r)}}this.acroFormCalculationOrder=s.length>0?s:null},ij=function(t){let s=null,n=null;for(let a of t){let i=a.acroForm?.get("DA")||null;i&&typeof i=="string"&&(n?.acroFormDefaultAppearance?a.acroFormDefaultAppearance=i:s?i!==s&&(n.acroFormDefaultAppearance||(n.acroFormDefaultAppearance=s),a.acroFormDefaultAppearance=i,s=null):(s=i,n=a))}s&&(this.acroFormDefaultAppearance=s)},rj=async function(t){let s=null,n=null,a=null;for(let i of t){let o=i.acroForm?.get("DR")||null;o&&o instanceof R&&(a?.acroFormDefaultResources?i.acroFormDefaultResources=o:s?X0(s,o)||(a.acroFormDefaultResources||(a.acroFormDefaultResources=s),i.acroFormDefaultResources=o,s=null,n=null):(s=o,n=i.acroForm.getRaw("DR"),a=i))}s&&(this.currentDocument=a,this.acroFormDefaultResources=await N(this,dt,We).call(this,n,!0,a.document.xref),this.currentDocument=null)},oj=function(t,s){let n=[],a=new re;for(let[i,o]of t.items()){if(!o){n.push(i);continue}let r=o,l=o,f=new re;for(;;){if(r instanceof rt){if(f.has(r))break;f.put(r)}let c=s.fetchIfRef(r);if(!(c instanceof R)||(r=c.getRaw("Parent")||null,!r))break;l=r}l instanceof rt&&!a.has(l)&&(n.push(l),a.put(l))}return n},lj=async function(t,s){let n=new re,a=[{kids:s,newKids:t,pos:0,oldParentRef:null,parentRef:null,parent:null}],{document:{xref:i},oldRefMapping:o,fieldToParent:r,acroFormDefaultAppearance:l,acroFormDefaultResources:f,acroFormQ:c}=this.currentDocument,h=[],m=[];for(;a.length>0;){let p=a.at(-1),{kids:g,newKids:b,parent:w,pos:k}=p;if(k===g.length){if(a.pop(),b.length===0||!w)continue;let x=this.xref[p.parentRef.num]=this.cloneDict(w);if(x.delete("Parent"),x.delete("Kids"),await N(this,dt,We).call(this,x,!1,i),x.set("Kids",b),a.length>0){let I=a.at(-1);if(!I.parentRef&&I.oldParentRef){let B=I.parentRef=this.newRef;x.set("Parent",B),o.put(I.oldParentRef,B)}I.newKids.push(p.parentRef)}continue}let q=g[p.pos++];if(!(q instanceof rt)||n.has(q))continue;n.put(q);let y=i.fetchIfRef(q);if(!(y instanceof R))continue;if(y.has("Kids")){let x=y.get("Kids");if(!Array.isArray(x))continue;a.push({kids:x,newKids:[],pos:0,oldParentRef:q,parentRef:null,parent:y});continue}if(!r.has(q))continue;let v=o.get(q);if(!v)continue;b.push(v),!p.parentRef&&p.oldParentRef&&(p.parentRef=this.newRef,o.put(p.oldParentRef,p.parentRef));let A=this.xref[v.num];p.parentRef&&A.set("Parent",p.parentRef),l&&!A.has("DA")&&h.push(A),f&&!A.has("Kids")&&A.get("AP")instanceof R&&m.push(A),c&&!A.has("Q")&&A.set("Q",c)}for(let p of h)$t(rs({dict:p,key:"FT"}),"Tx")&&(rs({dict:p,key:"DA"})||p.set("DA",l));let u=new Map,d=async p=>{let g=p.dict.getRaw("Resources");if(g&&(g=this.xrefWrapper.fetchIfRef(g)),!(g instanceof R)){let b=await u.getOrInsertComputed(f,()=>N(this,dt,Go).call(this,f,i));p.dict.set("Resources",b);return}for(let[b,w]of f.getRawEntries()){if(g.has(b))continue;let k=w;w instanceof rt?k=await N(this,dt,We).call(this,w,!0,i):(w instanceof R||w instanceof Et||Array.isArray(w))&&(k=await u.getOrInsertComputed(w,()=>N(this,dt,Go).call(this,w,i))),g.set(b,k)}};for(let p of m){let g=p.get("AP");for(let[,b]of g)if(b instanceof Et)await d(b);else if(b instanceof R)for(let[,w]of b)w instanceof Et&&await d(w)}},fj=async function(){if(!this.isSingleFile)return;let t=this.oldPages.find(h=>!!h);if(!t)return;let{documentData:{document:s,pageLabels:n}}=t;if(!n)return;let a=s.numPages,i=new Map,o=new Set(this.oldPages.filter(Boolean).map(({page:{pageIndex:h}})=>h)),r=null,l=-1;for(let h=0;h<a;h++){let m=n.get(h);if(m&&(r=m,l=r.has("St")?h:-1),o.has(h)){if(l!==-1){let u=r.get("St");r=this.cloneDict(r),r.set("St",u+(h-l)),l=-1}i.set(h,r)}}let f=h=>{let m=new R;return m.setIfName("S","D"),m.set("St",h+1),m};r=null;let c=this.pageLabels=[];for(let h=0,m=this.oldPages.length;h<m;h++){let u=this.oldPages[h],d=u&&i.get(u.page.pageIndex)||f(h);d!==r&&(r=d,c.push([h,r]))}},cj=async function(t){let{page:s,documentData:n,annotations:a,pointingNamedDestinations:i,copyLevel:o}=this.oldPages[t];this.currentDocument=n;let{dedupNamedDestinations:r,oldRefMapping:l}=n,{xref:f,rotate:c,mediaBox:h,resources:m,ref:u}=s,d=this.newRef,p=this.xref[d.num]=this.cloneDict(s.pageDict);if(l.put(u,d),i)for(let q of i){let y=r.get(q)||q;this.namedDestinations.get(y)[0]=d}for(let q of["Rotate","MediaBox","CropBox","BleedBox","TrimBox","ArtBox","Resources","Annots","Parent","UserUnit"])p.delete(q);let g=this.newRefCount;await N(this,dt,We).call(this,p,!1,f),p.set("Rotate",c),p.set("MediaBox",h);for(let q of["CropBox","BleedBox","TrimBox","ArtBox"]){let y=s.getBoundingBox(q);y?.some((v,A)=>v!==h[A])&&p.set(q,y)}let b=s.userUnit;b!==1&&p.set("UserUnit",b),p.setIfDict("Resources",await N(this,dt,We).call(this,m,!0,f));let w=null;if(a){let q=await N(this,dt,We).call(this,a,!0,f);N(this,dt,X7).call(this,q,r),Array.isArray(q)&&q.length>0&&(w=q)}let k=n.document===S(this,qc)?S(this,no)?.newAnnotationsByPage?.get(s.pageIndex)?.filter(({copyLevel:q})=>(q??0)===o):null;if(k?.length){let{handler:q,task:y,imagesPromises:v}=S(this,no),A=new Pe,x=await Es.saveNewAnnotations(s._createPartialEvaluator(q),this.xrefWrapper,y,k,v,A);for(let[I,{data:B}]of A.items())this.xref[I.num]=B;w||(w=[]);for(let{ref:I}of x.annotations)w.push(I)}if(p.setIfArray("Annots",w),this.useObjectStreams){let q=this.newRefCount,y=[];for(let v=g;v<q;v++)this.xref[v]instanceof Et||y.push(rt.get(v,0));for(let v=0;v<y.length;v+=65535){let A=this.newRef;this.objStreamRefs.add(A.num),this.xref[A.num]=y.slice(v,v+65535)}}return this.currentDocument=null,d},hj=function(){let t=new Map;for(let n of this.oldPages){if(!n)continue;let{page:a}=n,[i,o,r,l]=a.view,f=r-i,c=l-o;if(f<=0||c<=0)continue;a.rotate%180!=0&&([f,c]=[c,f]);let h=`${f}x${c}`,m=t.get(h);m?m.count++:t.set(h,{width:f,height:c,count:1})}if(t.size===0){let[,,n,a]=x7;return{width:n,height:a}}let s=null;for(let n of t.values())(!s||n.count>s.count||n.count===s.count&&n.width*n.height>s.width*s.height)&&(s=n);return{width:s.width,height:s.height}},uj=async function(t,s){let{width:n,height:a}=s,i=.1*n,o=Math.max(1,n-2*i),r=Math.max(1,a-2*i),l=this.newRefCount,{imageStream:f,smaskStream:c,width:h,height:m}=await G8(t,this.xrefWrapper,{closeBitmap:!0}),u=Math.min(o/h,r/m),d=h*u,p=m*u,g=(n-d)/2,b=(a-p)/2;if(c){let B=this.newRef;this.xref[B.num]=c,f.dict.set("SMask",B)}let w=this.newRef;this.xref[w.num]=f;let k=new R(this.xrefWrapper);k.set("Im0",w);let q=new R(this.xrefWrapper);q.set("XObject",k),q.set("ProcSet",[it.get("PDF"),it.get("ImageC")]);let y=`q ${we(d)} 0 0 ${we(p)} ${we(g)} ${we(b)} cm /Im0 Do Q`,v=new ts(y,new R(this.xrefWrapper)),A=this.newRef;this.xref[A.num]=v;let x=this.newRef,I=this.xref[x.num]=new R(this.xrefWrapper);if(I.setIfName("Type","Page"),I.set("MediaBox",[0,0,n,a]),I.set("Resources",q),I.set("Contents",A),this.useObjectStreams){let B=this.newRefCount,D=[];for(let W=l;W<B;W++)this.xref[W]instanceof Et||D.push(rt.get(W,0));for(let W=0;W<D.length;W+=65535){let L=this.newRef;this.objStreamRefs.add(L.num),this.xref[L.num]=D.slice(W,W+65535)}}return x},mj=function(){let{newPages:t,rootDict:s,pagesRef:n,pagesDict:a}=this;s.set("Pages",n),a.setIfName("Type","Pages"),a.set("Count",t.length);let i=[{dict:a,kids:t,parentRef:n}];for(;i.length>0;){let{dict:o,kids:r,parentRef:l}=i.pop();if(r.length<=16){o.set("Kids",r);for(let m of r)this.xref[m.num].set("Parent",l);continue}let f=Math.max(16,Math.ceil(r.length/16)),c=[];for(let m=0;m<r.length;m+=f)c.push(r.slice(m,m+f));let h=[];o.set("Kids",h);for(let m of c){let[u,d]=this.newDict;h.push(u),d.setIfName("Type","Pages"),d.set("Parent",l),d.set("Count",m.length),i.push({dict:d,kids:m,parentRef:u})}}},kr=function(t,s){let n=t.sort(s?([l],[f])=>l<f?-1:l>f?1:0:([l],[f])=>l-f),[a,i]=this.newDict,o=[{dict:i,entries:n,isRoot:!0}],r=s?"Names":"Nums";for(;o.length>0;){let{dict:l,entries:f,isRoot:c}=o.pop();if(f.length<=64){c||l.set("Limits",[f[0][0],f.at(-1)[0]]),l.set(r,f.flat());continue}let h=[],m=Math.max(64,Math.ceil(f.length/64));for(let d=0;d<f.length;d+=m)h.push(f.slice(d,d+m));let u=[];l.set("Kids",u);for(let d of h){let[p,g]=this.newDict;u.push(p),g.set("Limits",[d[0][0],d.at(-1)[0]]),o.push({dict:g,entries:d})}}return a},pj=function(){let{pageLabels:t}=this;if(!t?.length)return;let{rootDict:s}=this,n=N(this,dt,kr).call(this,this.pageLabels,!1);s.set("PageLabels",n)},dj=async function(t){let{embeddedFiles:s}=this;for(let n of t){let{embeddedFiles:a,document:{xref:i}}=n;if(a?.size){this.currentDocument=n;for(let[o,r]of a){let l=o;if(s.has(l)){let f=Jt(o,!0);for(let c=1;;c++){let h=Ze(`${f}_${c}`);if(!s.has(h)){l=h;break}}}s.set(l,await N(this,dt,We).call(this,r,!0,i))}this.currentDocument=null}}},gj=function(){let{embeddedFiles:t}=this;t.size!==0&&(this.namesDict||([this.namesRef,this.namesDict]=this.newDict,this.rootDict.set("Names",this.namesRef)),this.namesDict.set("EmbeddedFiles",N(this,dt,kr).call(this,Array.from(t.entries()),!0)))},bj=function(){let{namedDestinations:t}=this;t.size!==0&&(this.namesDict||([this.namesRef,this.namesDict]=this.newDict,this.rootDict.set("Names",this.namesRef)),this.namesDict.set("Dests",N(this,dt,kr).call(this,Array.from(t,([s,n])=>[Ze(s),n]),!0)))},wj=function(){let{structTreeKids:t}=this;if(!t?.length)return;let{rootDict:s}=this,n=this.newRef,a=this.xref[n.num]=new R;a.setIfName("Type","StructTreeRoot"),a.setIfArray("K",t);for(let i of t){let o=this.xref[i.num],r=o.get("Type");r&&!$t(r,"StructElem")||o.set("P",n)}if(this.parentTree.size>0){let i=N(this,dt,kr).call(this,Array.from(this.parentTree.entries()),!1);this.xref[i.num].setIfName("Type","ParentTree"),a.set("ParentTree",i);let o=0;for(let r of this.parentTree.keys())o=Math.max(o,r+1);a.set("ParentTreeNextKey",o)}if(this.idTree.size>0){let i=N(this,dt,kr).call(this,Array.from(this.idTree.entries()),!0);this.xref[i.num].setIfName("Type","IDTree"),a.set("IDTree",i)}if(this.classMap.size>0){let i=this.newRef;this.xref[i.num]=this.classMap,a.set("ClassMap",i)}if(this.roleMap.size>0){let i=this.newRef;this.xref[i.num]=this.roleMap,a.set("RoleMap",i)}if(this.namespaces.size>0){let i=this.newRef;this.xref[i.num]=Array.from(this.namespaces.values()),a.set("Namespaces",i)}if(this.structTreeAF.length>0){let i=this.newRef;this.xref[i.num]=this.structTreeAF,a.set("AF",i)}if(this.structTreePronunciationLexicon.length>0){let i=this.newRef;this.xref[i.num]=this.structTreePronunciationLexicon,a.set("PronunciationLexicon",i)}s.set("StructTreeRoot",n)},jj=function(){if(this.fields.length===0)return;let{rootDict:t}=this,s=this.newRef,n=this.xref[s.num]=new R;t.set("AcroForm",s),n.set("Fields",this.fields),this.acroFormNeedAppearances&&n.set("NeedAppearances",!0),this.acroFormSigFlags>0&&n.set("SigFlags",this.acroFormSigFlags),n.setIfArray("CO",this.acroFormCalculationOrder),n.setIfDefined("DR",this.acroFormDefaultResources),this.acroFormDefaultAppearance&&n.set("DA",this.acroFormDefaultAppearance),this.acroFormQ>0&&n.set("Q",this.acroFormQ)},kj=async function(){let{rootDict:t}=this;t.setIfName("Type","Catalog"),t.setIfName("Version",this.version),N(this,dt,jj).call(this),N(this,dt,mj).call(this),N(this,dt,pj).call(this),N(this,dt,gj).call(this),N(this,dt,bj).call(this),N(this,dt,wj).call(this),await N(this,dt,tj).call(this)},qj=function(){let t=new Map;if(this.isSingleFile){let s=this.oldPages.find(i=>!!i),{xref:{trailer:n}}=s.documentData.document,a=n.get("Info");for(let[i,o]of a||[])typeof o=="string"&&t.set(i,Jt(o))}t.delete("ModDate"),t.set("CreationDate",Ja()),t.set("Creator","PDF.js"),t.set("Producer","Firefox"),this.author&&t.set("Author",this.author),this.title&&t.set("Title",this.title);for(let[s,n]of t)this.infoDict.set(s,Ze(n));return t},yj=async function(){if(!this.isSingleFile)return[null,null,null];let t=this.oldPages.find(r=>!!r),{documentData:s}=t,{document:{xref:{trailer:n,encrypt:a}}}=s;if(!n.has("Encrypt"))return[null,null,null];let i=n.get("Encrypt");if(!(i instanceof R))return[null,null,null];this.currentDocument=s;let o=[await N(this,dt,Go).call(this,i,n.xref),a,n.get("ID")];return this.currentDocument=null,o},vj=async function(){let t=new Pe;t.put(rt.get(0,65535),{data:null});for(let s=1,n=this.xref.length;s<n;s++)this.objStreamRefs?.has(s)?await N(this,dt,xj).call(this,rt.get(s,0),this.xref[s],t):t.put(rt.get(s,0),{data:this.xref[s]});return[t,this.newRef]},xj=async function(t,s,n){let a=[""],i=[],o=0,r=[];for(let c=0,h=s.length;c<h;c++){let m=s[c];n.put(m,{data:null,objStreamRef:t,index:c}),i.push(`${m.num} ${o}`);let u=this.xref[m.num];await uf(u,r,null);let d=r.join("");r.length=0,a.push(d),o+=d.length+1}a[0]=i.join(`\n`);let l=new R;l.setIfName("Type","ObjStm"),l.set("N",s.length),l.set("First",a[0].length+1);let f=new ts(a.join(`\n`),l);n.put(t,{data:f})};var yc,vc,c5=class{constructor(t,s,n){at(this,yc,null);at(this,vc,null);Y(this,"_fullReader",null);Y(this,"_rangeReaders",new Set);Y(this,"_source",null);this._source=t,Bt(this,yc,s),Bt(this,vc,n)}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return Ae(!this._fullReader,"BasePDFStream.getFullReader can only be called once."),this._fullReader=new(S(this,yc))(this)}getRangeReader(t,s){if(s<=this._progressiveDataLength)return null;let n=new(S(this,vc))(this,t,s);return this._rangeReaders.add(n),n}cancelAllRequests(t){this._fullReader?.cancel(t);for(let s of new Set(this._rangeReaders))s.cancel(t)}};yc=new WeakMap,vc=new WeakMap;var h5=class{constructor(t){Y(this,"onProgress",null);Y(this,"_contentLength",0);Y(this,"_filename",null);Y(this,"_headersCapability",Promise.withResolvers());Y(this,"_isRangeSupported",!1);Y(this,"_isStreamingSupported",!1);Y(this,"_loaded",0);Y(this,"_stream",null);this._stream=t}_callOnProgress(){this.onProgress?.({loaded:this._loaded,total:this._contentLength})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){Zt("Abstract method `read` called")}cancel(t){Zt("Abstract method `cancel` called")}},u5=class{constructor(t,s,n){Y(this,"_stream",null);this._stream=t}async read(){Zt("Abstract method `read` called")}cancel(t){Zt("Abstract method `cancel` called")}},m5=class extends c5{constructor(t){super(t,p5,d5)}},p5=class extends h5{constructor(s){super(s);Y(this,"_reader",null);let{msgHandler:n}=s._source,a=n.sendWithStream("GetReader");this._reader=a.getReader(),n.sendWithPromise("ReaderHeadersReady").then(i=>{this._contentLength=i.contentLength,this._isStreamingSupported=i.isStreamingSupported,this._isRangeSupported=i.isRangeSupported,this._headersCapability.resolve()},this._headersCapability.reject)}async read(){let{value:s,done:n}=await this._reader.read();return n?{value:void 0,done:!0}:{value:s.buffer,done:!1}}cancel(s){this._reader.cancel(s)}},d5=class extends u5{constructor(s,n,a){super(s,n,a);Y(this,"_reader",null);let{msgHandler:i}=s._source,o=i.sendWithStream("GetRangeReader",{begin:n,end:a});this._reader=o.getReader()}async read(){let{value:s,done:n}=await this._reader.read();return n?{value:void 0,done:!0}:{value:s.buffer,done:!1}}cancel(s){this._reader.cancel(s)}},xc,pn=class{constructor(t){at(this,xc,Promise.withResolvers());Y(this,"terminated",!1);this.name=t}get finished(){return S(this,xc).promise}finish(){S(this,xc).resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}};xc=new WeakMap;var Q5=class Q5{static setup(t,s){let n=!1;t.on("test",a=>{n||(n=!0,t.send("test",a instanceof Uint8Array))}),t.on("configure",a=>{(function(o){Number.isInteger(o)&&(Tu=o)})(a.verbosity)}),t.on("GetDocRequest",a=>this.createDocumentHandler(a,s))}static createDocumentHandler(t,s){let n,a=!1,i=null,o=new Set,r=Ik(),{docId:l,apiVersion:f}=t,c="6.3.289";if(f!==c)throw new Error(`The API version "${f}" does not match the Worker version "${c}".`);let h=(q,y)=>`The \\`${q}.prototype\\` contains unexpected enumerable property "${y}", thus breaking e.g. \\`for...in\\` iteration of ${q}s.`;for(let q in{})throw new Error(h("Object",q));for(let q in[])throw new Error(h("Array",q));let m=l+"_worker",u=new Jh(m,l,s);function d(){if(a)throw new Error("Worker was terminated")}function p(q){o.add(q)}function g(q){q.finish(),o.delete(q)}async function b(q){await n.initDocument(q);let y=await n.ensureDoc("isPureXfa");if(y){let x=new pn("loadXfaResources");p(x),await n.ensureDoc("loadXfaResources",[u,x]),g(x)}let[v,A]=await Promise.all([n.ensureDoc("numPages"),n.ensureDoc("fingerprints")]);return{numPages:v,fingerprints:A,htmlForXfa:y?await n.ensureDoc("htmlForXfa"):null}}async function w(q){let y=new pn(`PasswordException: response ${q.code}`);p(y);try{return(await u.sendWithPromise("PasswordRequest",q)).password}finally{Promise.resolve().then(()=>{g(y)})}}function k(q){function y(x){d(),u.send("GetDoc",{pdfInfo:x})}function v(x){a||(x instanceof Cn?w(x).then(I=>{n.updatePassword(I),A()}).catch(()=>{u.send("DocException",x)}):u.send("DocException",Us(x)))}function A(){d(),b(!1).then(y,function(x){d(),x instanceof ha?n.requestLoadedStream().then(function(){d(),b(!0).then(y,v)},v):v(x)})}d(),(async function({data:I,password:B,disableAutoFetch:D,rangeChunkSize:W,docBaseUrl:L,enableXfa:ot,evaluatorOptions:P}){let H={source:null,disableAutoFetch:D,docBaseUrl:L,docId:l,enableXfa:ot,evaluatorOptions:P,handler:u,length:0,password:B,rangeChunkSize:W};if(I)return H.source=I,new wl(H);let V=new m5({msgHandler:u}),C=V.getFullReader(),{promise:M,resolve:J,reject:et}=Promise.withResolvers(),U,_=[];return i=ht=>V.cancelAllRequests(ht),C.headersReady.then(()=>{if(C.isRangeSupported){H.source=V,H.length=C.contentLength,H.disableAutoFetch||(H.disableAutoFetch=C.isStreamingSupported),U=new Zw(H);for(let ht of _)U.sendProgressiveData(ht);_=null,J(U),i=null}}).catch(ht=>{et(ht),i=null}),(async function(){let vt=0;for(;;){let{value:G,done:It}=await C.read();if(d(),It)break;vt+=G.byteLength,C.isStreamingSupported||u.send("DocProgress",{loaded:vt,total:C.contentLength}),U?U.sendProgressiveData(G):_.push(G)}U||(H.source=D4(_),_=null,U=new wl(H),J(U)),i=null})().catch(ht=>{et(ht),i=null}),M})(q).then(function(x){if(a)throw x.terminate(new Ye("Worker was terminated.")),new Error("Worker was terminated");n=x,n.requestLoadedStream(!0).then(I=>{u.send("DataLoaded",{length:I.bytes.byteLength})},()=>{})}).then(A,v)}return u.on("GetPage",async function({pageIndex:q}){let y=await n.getPage(q),[v,A,x,I]=await Promise.all([n.ensure(y,"rotate"),n.ensure(y,"ref"),n.ensure(y,"userUnit"),n.ensure(y,"view")]);return{rotate:v,ref:A,refStr:A?.toString()??null,userUnit:x,view:I}}),u.on("GetPageIndex",function({num:q,gen:y}){return n.ensureCatalog("getPageIndex",[rt.get(q,y)])}),u.on("GetDestinations",function(){return n.ensureCatalog("destinations")}),u.on("GetDestination",function({id:q}){return n.ensureCatalog("getDestination",[q])}),u.on("GetPageLabels",function(){return n.ensureCatalog("pageLabels")}),u.on("GetPageLayout",function(){return n.ensureCatalog("pageLayout")}),u.on("GetPageMode",function(){return n.ensureCatalog("pageMode")}),u.on("GetViewerPreferences",function(){return n.ensureCatalog("viewerPreferences")}),u.on("GetOpenAction",function(){return n.ensureCatalog("openAction")}),u.on("GetAttachments",function(){return n.ensureCatalog("attachments")}),u.on("GetAttachmentContent",async function(q){let y;for(;;){let v=y?await w(y):null;try{return v&&n.updatePassword(v),await n.ensureCatalog("attachmentContent",[q])}catch(A){if(A instanceof Cn){y=A;continue}throw A}}}),u.on("GetDocJSActions",function(){return n.ensureCatalog("jsActions")}),u.on("GetPageJSActions",async function({pageIndex:q}){let y=await n.getPage(q);return n.ensure(y,"jsActions")}),u.on("GetAnnotationsByType",async function({types:q,pageIndexesToSkip:y}){let[v,A]=await Promise.all([n.ensureDoc("numPages"),n.ensureDoc("annotationGlobals")]);if(!A)return null;let x=[],I=[],B=null;try{for(let D=0,W=v;D<W;D++)y?.has(D)||(B||(B=new pn("GetAnnotationsByType"),p(B)),x.push(n.getPage(D).then(L=>L.collectAnnotationsByType(u,B,q,I,A))));return await Promise.all(x),(await Promise.all(I)).filter(Boolean)}finally{B&&g(B)}}),u.on("GetOutline",function(){return n.ensureCatalog("documentOutline")}),u.on("GetOptionalContentConfig",function(){return n.ensureCatalog("optionalContentConfig")}),u.on("GetPermissions",function(){return n.ensureCatalog("permissions")}),u.on("GetMetadata",function(){return Promise.all([n.ensureDoc("documentInfo"),n.ensureCatalog("metadata"),n.ensureCatalog("hasStructTree")])}),u.on("GetMarkInfo",function(){return n.ensureCatalog("markInfo")}),u.on("GetData",async function(){return(await n.requestLoadedStream()).bytes}),u.on("GetAnnotations",async function({pageIndex:q,intent:y}){let v=await n.getPage(q),A=new pn(`GetAnnotations: page ${q}`);p(A);try{return await v.getAnnotationsData(u,A,y)}finally{g(A)}}),u.on("GetFieldObjects",async function(){return(await n.ensureDoc("fieldObjects"))?.allFields||null}),u.on("GetSignatures",function(){return n.ensureDoc("signatures")}),u.on("GetSignatureData",function(q){return n.ensureDoc("getSignatureData",[q])}),u.on("HasJSActions",function(){return n.ensureDoc("hasJSActions")}),u.on("GetCalculationOrderIds",function(){return n.ensureDoc("calculationOrderIds")}),u.on("ExtractPages",async function({pageInfos:q,annotationStorage:y}){if(!q)return F("extractPages: nothing to extract."),null;Array.isArray(q)||(q=[q]);let v,A=0;for(let x of q)if(!x.image)if(x.document===null)x.document=n.pdfDocument;else if(ArrayBuffer.isView(x.document)){let I=new wl({source:x.document,docId:`${l}_extractPages_${A++}`,handler:u,password:x.password??null,evaluatorOptions:Object.assign({},n.evaluatorOptions)}),B=!1,D=!0;for(;;)try{await I.requestLoadedStream(),await I.initDocument(B);break}catch(W){if(W instanceof ha){if(B===!1){B=!0;continue}D=!1,F("extractPages: XRefParseException.")}else if(W instanceof Cn)try{let L=await w(W);I.updatePassword(L)}catch{D=!1,F("extractPages: invalid password.")}else D=!1,F("extractPages: invalid document.");if(!D)break}D||(x.document=null),await I.ensureDoc("isPureXfa")?(x.document=null,F("extractPages does not support pure XFA documents.")):x.document=I.pdfDocument}else F("extractPages: invalid document.");try{let x=new a5;return v=new pn(`ExtractPages: ${q.length} page(s)`),p(v),await x.extractPages(q,y,n.pdfDocument,u,v)}catch(x){return F(`extractPages: "${x}".`),null}finally{v&&g(v)}}),u.on("SaveDocument",async function({isPureXfa:q,numPages:y,annotationStorage:v,filename:A}){let x=[n.requestLoadedStream(),n.ensureCatalog("acroForm"),n.ensureCatalog("acroFormRef"),n.ensureDoc("startXRef"),n.ensureDoc("xref"),n.ensureCatalog("structTreeRoot")],I=new Pe,B=[],D=q?null:A5(v),[W,L,ot,P,H,V]=await Promise.all(x),C=H.trailer.getRaw("Root")||null,M;if(D){V?await V.canUpdateStructTree({pdfManager:n,newAnnotationsByPage:D})&&(M=V):await El.canCreateStructureTree({catalogRef:C,pdfManager:n,newAnnotationsByPage:D})&&(M=null);let It=Es.generateImages(v.values(),H,n.evaluatorOptions.isOffscreenCanvasSupported),jt=M===void 0?B:[];for(let[kt,Ft]of D)jt.push(n.getPage(kt).then(mt=>{let ct=new pn(`Save (editor): page ${kt}`);return p(ct),mt.saveNewAnnotations(u,ct,Ft,It,I).finally(()=>{g(ct)})}));M===null?B.push(Promise.all(jt).then(async()=>{await El.createStructureTree({newAnnotationsByPage:D,xref:H,catalogRef:C,pdfManager:n,changes:I})})):M&&B.push(Promise.all(jt).then(async()=>{await M.updateStructureTree({newAnnotationsByPage:D,pdfManager:n,changes:I})}))}if(q)B.push(n.ensureDoc("serializeXfaData",[v]));else for(let It=0;It<y;It++)B.push(n.getPage(It).then(function(jt){let kt=new pn(`Save: page ${It}`);return p(kt),jt.save(u,kt,v,I).finally(()=>{g(kt)})}));let J=await Promise.all(B),et=null;if(q){if(et=J[0],!et)return W.bytes}else if(I.size===0)return W.bytes;let U=ot&&L instanceof R&&I.values().some(It=>It.needAppearances),_=L instanceof R&&L.get("XFA")||null,ht=null,vt=!1;if(Array.isArray(_)){for(let It=0,jt=_.length;It<jt;It+=2)_[It]==="datasets"&&(ht=_[It+1],vt=!0);ht===null&&(ht=H.getNewTemporaryRef())}else _&&F("Unsupported XFA type.");let G=Object.create(null);if(H.trailer){let It=new Map,jt=H.trailer.get("Info")||null;if(jt instanceof R)for(let[kt,Ft]of jt)typeof Ft=="string"&&It.set(kt,Jt(Ft));G={rootRef:C,encryptRef:H.trailer.getRaw("Encrypt")||null,newRef:H.getNewTemporaryRef(),infoRef:H.trailer.getRaw("Info")||null,infoMap:It,fileIds:H.trailer.get("ID")||null,startXRef:P,filename:A}}return z7({originalData:W.bytes,xrefInfo:G,changes:I,xref:H,hasXfa:!!_,xfaDatasetsRef:ht,hasXfaDatasetsEntry:vt,needAppearances:U,acroFormRef:ot,acroForm:L,xfaData:et,useXrefStream:ro(H.topDict,"XRef")}).finally(()=>{H.resetNewTemporaryRef()})}),u.on("GetOperatorList",function({pageId:q,pageIndex:y,intent:v,cacheKey:A,annotationStorage:x,modifiedIds:I},B){n.getPage(q).then(function(D){let W=new pn(`GetOperatorList: page ${y}`);p(W);let L=r>=A0?Date.now():0;D.getOperatorList({handler:u,sink:B,task:W,intent:v,cacheKey:A,annotationStorage:x,modifiedIds:I,pageIndex:y}).then(ot=>{L&&ie(`${W.name}; time=${Date.now()-L}ms, len=${ot.length}`),B.close()},ot=>{W.terminated||B.error(ot)}).finally(()=>{g(W)})})}),u.on("GetTextContent",function({pageId:q,pageIndex:y,includeMarkedContent:v,disableNormalization:A},x){n.getPage(q).then(function(I){let B=new pn("GetTextContent: page "+y);p(B);let D=r>=A0?Date.now():0;I.extractTextContent({handler:u,task:B,sink:x,includeMarkedContent:v,disableNormalization:A}).then(()=>{D&&ie(`${B.name}; time=${Date.now()-D}ms`),x.close()},W=>{B.terminated||x.error(W)}).finally(()=>{g(B)})})}),u.on("GetStructTree",async function({pageIndex:q}){let y=await n.getPage(q);return n.ensure(y,"getStructTree")}),u.on("FontFallback",function({id:q}){return n.fontFallback(q,u)}),u.on("Cleanup",function(){return n.cleanup(!0)}),u.on("Terminate",async function(){a=!0;let q=[];if(n){n.terminate(new Ye("Worker was terminated."));let y=n.cleanup();q.push(y),n=null}else N5();i?.(new Ye("Worker was terminated."));for(let y of o)q.push(y.finished),y.terminate();await Promise.all(q),u.destroy(),u=null}),u.on("Ready",function(){k(t),t=null}),m}static initializeFromPort(t){let s=new Jh("worker","main",t);this.setup(s,t),s.send("ready",null)}};typeof window>"u"&&!Rj&&typeof self<"u"&&typeof self.postMessage=="function"&&"onmessage"in self&&Q5.initializeFromPort(self);var g5=Q5;globalThis.pdfjsWorker={WorkerMessageHandler:g5};})();\n'],{type:"text/javascript"});qu.GlobalWorkerOptions.workerSrc=URL.createObjectURL(h),Kw=!0}catch{}return qu}var zy=["yellow","green","blue","pink"],Ku=96/72;function jx(h,t){let e=t.getBoundingClientRect(),s=Array.from(h.getClientRects()).filter(r=>r.width>1&&r.height>1),n=[];for(let r of s)n.push({left:(r.left-e.left)/e.width,top:(r.top-e.top)/e.height,width:r.width/e.width,height:r.height/e.height});return n}async function Vx(h,t){let e=Qw(),s={destroyed:!1,doc:null,pages:[],scale:1,mode:"fit-width",pageEls:new Map,rendered:new Set,observer:null,outline:[],textIndex:[],annotations:t.annotations??[],listeners:{}},n=(v,w)=>{s.listeners[v]?.forEach(A=>A(w))};s.on=(v,w)=>(s.listeners[v]=s.listeners[v]??new Set,s.listeners[v].add(w),()=>s.listeners[v].delete(w));let r=e.getDocument({url:t.pdfUrl,withCredentials:!1,isEvalSupported:!1});if(s.loadingTask=r,s.doc=await r.promise,s.destroyed)return s;let a=s.doc.numPages;s.pages=new Array(a).fill(null);let o=document.createDocumentFragment();for(let v=1;v<=a;v+=1){let w=document.createElement("div");w.className="zt-page",w.dataset.page=String(v),o.appendChild(w),s.pageEls.set(v,w)}h.appendChild(o);try{s.outline=await s.doc.getOutline()??[]}catch{s.outline=[]}let l=async v=>{if(s.rendered.has(v)||s.destroyed)return;s.rendered.add(v);let w=s.pageEls.get(v);if(w)try{let A=await s.doc.getPage(v),x=A.getViewport({scale:s.scale*Ku});w.style.setProperty("--zt-total-scale",String(x.scale));let S=w.querySelector("canvas");if(!S){S=document.createElement("canvas"),w.appendChild(S);let k=document.createElement("div");k.className="textLayer",w.appendChild(k)}let E=Math.min(window.devicePixelRatio||1,2);S.width=Math.floor(x.width*E),S.height=Math.floor(x.height*E),S.style.width=`${x.width}px`,S.style.height=`${x.height}px`,w.style.width=`${x.width}px`,w.style.height=`${x.height}px`;let C=S.getContext("2d");if(C.setTransform(E,0,0,E,0,0),await A.render({canvasContext:C,viewport:x}).promise,s.destroyed)return;let _=w.querySelector(".textLayer");if(_){let k=await A.getTextContent(),P=e.TextLayer;await new P({textContentSource:k,container:_,viewport:x}).render()}b(v,w),n("pagerendered",{page:v})}catch(A){if(A?.name==="RenderingCancelledException"){s.rendered.delete(v);return}w.textContent=`\u9875\u9762 ${v} \u6E32\u67D3\u5931\u8D25: ${A?.message??A}`}},c=()=>{for(let[,v]of s.pageEls){let w=v.querySelector("canvas");w&&w.remove();let A=v.querySelector(".textLayer");A&&A.remove()}s.rendered.clear()};s.observer=new IntersectionObserver(v=>{for(let w of v)if(w.isIntersecting){let A=Number(w.target.dataset.page);Number.isFinite(A)&&l(A)}},{root:h,rootMargin:"600px 0px"});for(let[,v]of s.pageEls)s.observer.observe(v);let d=(v,w)=>{s.mode=v??s.mode,w&&(s.scale=w);let A=h.querySelector(".zt-page"),x=h.clientWidth-24;if(s.mode==="fit-width"){let S=(s.doc.getPage(1).then,null);s.doc.getPage(1).then(E=>{let C=E.getViewport({scale:1});s.scale=Math.max(.2,x/C.width/Ku),u()}).catch(()=>{});return}if(s.mode==="fit-page"){s.doc.getPage(1).then(S=>{let E=S.getViewport({scale:1}),C=Math.max(200,h.clientHeight-24);s.scale=Math.max(.2,Math.min(x/E.width,C/E.height)/Ku),u()}).catch(()=>{});return}u()},u=()=>{c(),s.doc.getPage(1).then(v=>{let w=v.getViewport({scale:s.scale*Ku});for(let[,A]of s.pageEls)A.style.width=`${w.width}px`,A.style.height=`${w.height}px`;for(let[,A]of s.pageEls)s.observer.observe(A);n("scale",{scale:s.scale})}).catch(()=>{})};s.setScale=v=>{s.mode="custom",d("custom",Math.min(6,Math.max(.25,s.scale*v)))},s.setFit=v=>d(v),s.getScale=()=>s.scale,s.getMode=()=>s.mode,s.goToPage=v=>{let w=s.pageEls.get(v);w&&w.scrollIntoView({block:"start",behavior:"smooth"})},s.currentPage=()=>{let v=h.scrollTop+h.clientHeight/2,w=1;for(let[A,x]of s.pageEls)x.offsetTop<=v&&(w=A);return w},s.numPages=()=>a,s.outline=s.outline,s.goToDest=async v=>{try{let w=typeof v=="string"?await s.doc.getDestination(v):v;if(!w)return;let A=w[0],x=typeof A=="object"?await s.doc.getPageIndex(A):A;s.goToPage(x+1)}catch{}};let p=async()=>{if(s.textIndex.length)return s.textIndex;let v=[];for(let w=1;w<=a;w+=1)try{let S=(await(await s.doc.getPage(w)).getTextContent()).items.map(E=>E.str).join(" ");v.push({page:w,text:S.replace(/\s+/g," ").trim()})}catch{v.push({page:w,text:""})}return s.textIndex=v,v};s.search=async v=>{let w=String(v??"").trim();if(!w)return[];let A=await p(),x=w.toLowerCase(),S=[];for(let E of A){let C=E.text.toLowerCase(),_=C.indexOf(x);for(;_!==-1&&S.length<200;)S.push({page:E.page,preview:E.text.slice(Math.max(0,_-30),_+x.length+40).trim()}),_=C.indexOf(x,_+x.length)}return S},s.highlightMatches=v=>{let w=String(v??"").trim().toLowerCase();for(let[,A]of s.pageEls){let x=A.querySelectorAll(".textLayer span");for(let S of x){let E=(S.textContent??"").toLowerCase();w&&E.includes(w)?S.style.backgroundColor="rgba(250, 204, 21, .45)":S.style.backgroundColor=""}}};function b(v,w){w.querySelectorAll(".zt-highlight").forEach(A=>A.remove());for(let A of s.annotations)if(A.pageIndex===v-1)for(let x of A.rects??[]){let S=document.createElement("div");S.className="zt-highlight",S.dataset.color=A.color??"yellow",S.dataset.annotationId=A.id??"",S.style.left=`${x.left*100}%`,S.style.top=`${x.top*100}%`,S.style.width=`${x.width*100}%`,S.style.height=`${x.height*100}%`,S.title=A.note??A.text??"",w.appendChild(S)}}s.setAnnotations=v=>{s.annotations=v??[];for(let[w,A]of s.pageEls)b(w,A)};let y=v=>{let w=window.getSelection();if(!w||w.isCollapsed)return;let A=w.anchorNode?.parentElement?.closest(".zt-page");if(!A||!A.contains(w.anchorNode))return;let x=w.getRangeAt(0),S=jx(x,A),E=w.toString().trim();if(!E||!S.length)return;let C={id:`an_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,pageIndex:Number(A.dataset.page)-1,rects:S,text:E,color:zy[s.annotations.length%zy.length],note:"",createdAt:Date.now()};s.annotations.push(C),b(C.pageIndex+1,A),w.removeAllRanges(),n("annotation",C)};return h.addEventListener("mouseup",y),s.destroy=()=>{s.destroyed=!0,h.removeEventListener("mouseup",y),s.observer?.disconnect();for(let[,v]of s.pageEls)v.remove();s.pageEls.clear(),s.loadingTask?.destroy?.().catch(()=>{})},d(t.mode??"fit-width"),s}Jw.exports={createViewer:Vx,loadPdfjs:Qw,COLORS:zy,PDF_TO_CSS_UNITS:Ku}});var Uy=sn((HS,eA)=>{var tA=require("react"),nt=tA.createElement,{useState:fg,useSyncExternalStore:Wx,useEffect:Xx}=tA,pg=ll(),{t:Nt}=ol(),{Button:Hy,Spinner:Yx}=rf();function qx(){return Wx(pg.subscribe,pg.getSnapshot)}function la({label:h,hint:t,children:e}){return nt("div",{className:"zt-field"},nt("label",null,h),e,t?nt("div",{className:"zt-hint"},t):null)}function Kx({close:h}){let t=qx(),e=t.config??{},[s,n]=fg(null),[r,a]=fg(!1),[o,l]=fg(!1),[c,d]=fg("");if(Xx(()=>{s==null&&e.saveMode&&n({...e})},[e]),!s)return nt("div",{className:"zt-settings"},nt("div",{className:"zt-empty"},nt(Yx,{size:18})));let u=y=>n({...s,...y}),p=async()=>{await pg.saveConfig(s),a(!0),setTimeout(()=>a(!1),1500)},b=async()=>{l(!0),d("");try{let{zotero:y}=await pg.refresh();d(y?.running?Nt("settings.testOk"):Nt("settings.testFail"))}catch{d(Nt("settings.testFail"))}finally{l(!1)}};return nt("div",{className:"zt-settings"},nt("div",{className:"zt-row",style:{marginBottom:16,justifyContent:"space-between"}},nt("span",{style:{fontSize:14,fontWeight:500}},Nt("settings.title")),nt("div",{className:"zt-row"},nt(Hy,{variant:"primary",onClick:p},Nt("settings.saved")),h?nt(Hy,{variant:"ghost",onClick:h},Nt("back")):null)),nt(la,{label:Nt("settings.saveMode")},nt("select",{value:s.saveMode,onChange:y=>u({saveMode:y.target.value})},nt("option",{value:"zotero"},Nt("settings.saveModeZotero")),nt("option",{value:"dir"},Nt("settings.saveModeDir")))),s.saveMode==="dir"?nt(la,{label:Nt("settings.dirPath"),hint:Nt("settings.dirPathHint")},nt("input",{type:"text",value:s.dirPath??"",placeholder:"D:\\Papers",onChange:y=>u({dirPath:y.target.value})})):null,nt(la,{label:Nt("settings.naming"),hint:Nt("settings.namingHint")},nt("input",{type:"text",value:s.naming??"",onChange:y=>u({naming:y.target.value})})),nt(la,{label:Nt("settings.tags"),hint:Nt("settings.tagsHint")},nt("input",{type:"text",value:(s.preferredTags??[]).join(", "),onChange:y=>u({preferredTags:y.target.value.split(/[,,]/).map(v=>v.trim()).filter(Boolean)})})),nt(la,{label:Nt("settings.unpaywallEmail"),hint:Nt("settings.unpaywallEmailHint")},nt("input",{type:"text",value:s.unpaywallEmail??"",placeholder:"you@example.com",onChange:y=>u({unpaywallEmail:y.target.value})})),nt(la,{label:Nt("settings.autoScan"),hint:Nt("settings.autoScanHint")},nt("label",{className:"zt-row",style:{cursor:"pointer",gap:8}},nt("input",{type:"checkbox",checked:!!s.autoScanSession,onChange:y=>u({autoScanSession:y.target.checked})}),Nt("settings.autoScan"))),nt(la,{label:Nt("settings.zoteroPort")},nt("input",{type:"number",value:s.zoteroPort??23119,onChange:y=>u({zoteroPort:Number(y.target.value)||23119})})),nt(la,{label:Nt("settings.dataDir"),hint:Nt("settings.dataDirHint")},nt("input",{type:"text",value:s.dataDirOverride??t.zotero?.dataDir??"",placeholder:t.zotero?.dataDir??"",onChange:y=>u({dataDirOverride:y.target.value})})),nt("div",{className:"zt-row",style:{marginTop:8}},nt(Hy,{onClick:b,loading:o},Nt("settings.test")),c?nt("span",{className:"zt-hint"},c):null))}eA.exports={SettingsPage:Kx}});var nA=sn((US,iA)=>{var sA=require("react"),xt=sA.createElement,$y=ll(),{t:ca}=ol(),{Button:gg,Spinner:Qx}=rf();function Jx(h,t,e){return xt("tr",{key:h},xt("th",null,h),xt("td",{className:"del"},t||"\u2014"),xt("td",{className:"add"},e||"\u2014"))}function Zx({item:h,conflict:t}){let[e,s]=sA.useState(!1);if(t?.error)return xt("div",{className:"zt-diff"},xt("div",{className:"zt-error"},t.error));if(!t)return xt("div",{className:"zt-diff"},xt("div",{className:"zt-empty"},xt(Qx,{size:18}),xt("p",null,ca("diff.title"))));let n=t.diff??[],r=async a=>{s(!0);try{a==="replace"&&await $y.saveItem(h.key,{}),$y.setView("list")}finally{s(!1)}};return xt("div",{className:"zt-diff"},xt("div",{style:{fontSize:14,fontWeight:500,marginBottom:4}},ca("diff.title")),xt("div",{className:"zt-hint",style:{marginBottom:12}},ca("diff.subtitle")),xt("div",{className:"zt-card-id",style:{marginBottom:12}},t.key),n.length?xt("table",null,xt("thead",null,xt("tr",null,xt("th",null,"\u5B57\u6BB5"),xt("th",null,"\u5E93\u4E2D"),xt("th",null,"\u65B0\u6761\u76EE"))),xt("tbody",null,...n.map(a=>Jx(a.field,a.before,a.after)))):xt("div",{className:"zt-hint",style:{marginBottom:12}},ca("diff.noDiff")),xt("div",{className:"zt-actions",style:{marginTop:16}},xt(gg,{variant:"primary",onClick:()=>r("keep"),disabled:e},ca("action.keep")),xt(gg,{onClick:()=>r("replace"),disabled:e},ca("action.replace")),xt(gg,{variant:"ghost",onClick:()=>r("merge"),disabled:e},ca("action.merge")),xt(gg,{variant:"ghost",onClick:()=>$y.setView("list"),disabled:e},ca("action.cancel"))))}iA.exports={ConflictDiff:Zx}});var cA=sn(($S,lA)=>{var oA=require("react"),M=oA.createElement,{useState:Ps,useEffect:tS,useRef:bg,useSyncExternalStore:eS,useCallback:sS}=oA,Gt=ll(),{t:Z}=ol(),{Icon:en,Spinner:iS,Badge:lh,Button:rs,IconButton:Zn,EmptyState:nS,ProgressBar:rS}=rf(),{api:mg}=Cg(),{createViewer:aS}=Zw(),{SettingsPage:oS}=Uy(),{ConflictDiff:lS}=nA();function Qu(){return eS(Gt.subscribe,Gt.getSnapshot)}var cS={discovered:"info",resolving:"info",resolved:"info",fetching:"info",fetched:"success",saving:"info",saved:"success",save_failed:"error",fetch_failed:"error",resolve_failed:"error",duplicate:"warn"};function hS(h){let t=[],e=h.record?.authors??h.authors??[];if(e.length){let r=e.map(a=>[a.lastName,a.firstName].filter(Boolean).join(" ")).filter(Boolean);t.push(r.length>3?`${r.slice(0,3).join("\u3001")} \u7B49`:r.join("\u3001"))}let s=h.record?.year??h.year;s&&t.push(String(s));let n=h.record?.container??"";return n&&t.push(n),t.join(" \xB7 ")}function dS(h){let t=[];return h.doi&&t.push(h.doi),h.arxiv&&t.push(`arXiv:${h.arxiv}`),h.isbn&&t.push(`ISBN:${h.isbn}`),h.pmid&&t.push(`PMID:${h.pmid}`),!t.length&&h.rawValue&&t.push(h.rawValue),t.join(" ")}function uS({item:h}){let t=Gt.isBusy(h.key),e=Gt.getSnapshot().tasks[h.key],s=h.error?.message??(h.state.endsWith("_failed")?Z("state."+h.state):""),n=cS[h.state]??"info",r=[];h.state==="discovered"||h.state==="resolve_failed"?r.push(M(rs,{key:"resolve",variant:"primary",onClick:()=>Gt.resolveItem(h.key),loading:t},Z("action.retry"))):h.state==="resolved"&&!h.pdf?r.push(M(rs,{key:"fetch",variant:"primary",onClick:()=>Gt.fetchPdf(h.key),loading:t},Z("action.download"))):h.state==="fetch_failed"?(r.push(M(rs,{key:"fetch",variant:"primary",onClick:()=>Gt.retryItem(h.key),loading:t},Z("action.retry"))),h.error?.code==="paywalled"&&r.push(M(rs,{key:"open",onClick:()=>window.open(h.record?.url||`https://doi.org/${h.doi}`,"_blank")},Z("action.openSource")))):h.state==="fetched"?(r.push(M(rs,{key:"read",variant:"primary",onClick:()=>Gt.selectItem(h.key,"reader")},Z("action.read"))),r.push(M(rs,{key:"save",onClick:()=>Gt.saveItem(h.key)},Z("action.save"))),h.saveMode==="dir"&&r.push(M(rs,{key:"savedir",onClick:()=>Gt.saveItem(h.key,{mode:"zotero"})},Z("action.save")))):h.state==="save_failed"?r.push(M(rs,{key:"retry",variant:"primary",onClick:()=>Gt.retryItem(h.key),loading:t},Z("action.retry"))):h.state==="saved"&&(r.push(M(rs,{key:"read",variant:"primary",onClick:()=>Gt.selectItem(h.key,"reader")},Z("action.read"))),h.zotero?.key&&r.push(M(rs,{key:"zotero",onClick:()=>window.open(`zotero://select/library/items/${h.zotero.key}`,"_blank")},Z("action.openInZotero")))),(h.state==="resolved"||h.state==="fetched"||h.state==="save_failed")&&r.push(M(rs,{key:"diff",onClick:()=>Gt.showDiff(h.key)},Z("action.diff"))),r.push(M(rs,{key:"discard",variant:"ghost",onClick:()=>Gt.discardItem(h.key)},Z("action.discard")));let a=h.record?.title||h.title||h.display||h.rawValue||"Untitled";return M("div",{className:"zt-card","data-state":h.state,onClick:()=>h.pdf?.path&&Gt.selectItem(h.key,"reader")},M("div",{className:"zt-row",style:{justifyContent:"space-between",marginBottom:4}},M("div",{className:"zt-row",style:{minWidth:0}},M(lh,{tone:n},Z("state."+h.state)),h.state==="duplicate"?M(lh,{tone:"warn"},Z("state.duplicate")):null),h.state==="saved"&&h.saveMode==="zotero"?M(lh,{tone:"success"},"\u672C\u5730\u5E93"):h.state==="saved"?M(lh,{tone:"success"},"Dir"):null),M("h4",{className:"zt-card-title"},a),M("p",{className:"zt-card-meta"},hS(h)),M("div",{className:"zt-card-id"},dS(h)),e?M(rS,{value:e.progress}):null,s?M("div",{className:"zt-error"},s):null,M("div",{className:"zt-actions"},...r))}function rA(){let h=Qu();return h.loaded?h.items.length===0?M("div",{className:"zt-list"},M(nS,{key:"empty"})):M("div",{className:"zt-list"},...h.items.map(t=>M(uS,{key:t.key,item:t}))):M("div",{className:"zt-list"},M("div",{className:"zt-skeleton"}),M("div",{className:"zt-skeleton"}),M("div",{className:"zt-skeleton"}))}function fS(){let[h,t]=Ps(""),[e,s]=Ps(!1),n=async()=>{if(h.trim()){s(!0);try{await Gt.scanText(h),t("")}finally{s(!1)}}};return M("div",{className:"zt-toolbar"},M("input",{className:"zt-input",placeholder:Z("empty.placeholder"),value:h,onChange:r=>t(r.target.value),onKeyDown:r=>{r.key==="Enter"&&n()}}),M(rs,{onClick:n,loading:e,disabled:!h.trim()},Z("empty.add")))}function pS({onClose:h}){let t=Qu(),e=bg(null),s=t.zotero?.running===!0,n=a=>{if(a.target.closest("button"))return;let o=a.clientX,l=a.clientY,c=t.geometry,d=c.x??null,u=c.y??null,p=e.current?.getBoundingClientRect(),b=d??p?.left??window.innerWidth-(c.width||380)-16,y=u??p?.top??12,v=A=>{Gt.setGeometry({x:Math.max(0,b+A.clientX-o),y:Math.max(0,y+A.clientY-l)})},w=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",w)},r={};return t.geometry.x!=null&&(r.left=t.geometry.x),t.geometry.y!=null&&(r.top=t.geometry.y),t.geometry.x==null&&t.geometry.y==null&&(r.right=8),M("div",{className:"zt-header",ref:e,style:r,onMouseDown:n},M("div",{className:"zt-row",style:{gap:4}},s?M(lh,{tone:"success"},Z("status.running")):M(lh,{tone:"warn"},Z("status.down"))),M("span",{className:"zt-title",title:Z("panelTitle")},Z("panelTitle")),M(Zn,{title:Z("settingsTooltip"),onClick:()=>Gt.setView(t.view==="settings"?"list":"settings")},M(en.Settings,{size:16})),M(Zn,{title:Z("close"),onClick:h},M(en.Close,{size:16})))}function aA({edge:h}){return M("div",{className:h==="left"?"zt-handle-l":"zt-handle-br",onMouseDown:e=>{e.preventDefault();let s=Gt.getSnapshot().geometry,n=e.clientX,r=s.width??380,a=l=>{let c=r;h==="left"&&(c=r-(l.clientX-n)),h==="br"&&(c=r+(l.clientX-n)),Gt.setGeometry({width:Math.min(720,Math.max(300,c))})},o=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",o)}})}function gS({item:h}){let t=bg(null),e=bg(null),s=bg(null),[n,r]=Ps(!1),[a,o]=Ps(""),[l,c]=Ps(1),[d,u]=Ps(0),[p,b]=Ps(1),[y,v]=Ps("fit-width"),[w,A]=Ps(!1),[x,S]=Ps([]),[E,C]=Ps(""),[_,k]=Ps([]),[P,I]=Ps([]),F=h.pdf?.path?mg.pdfUrl(h.key):h.zotero?.key?mg.zoteroPdfUrl(h.zotero.key):null;tS(()=>{if(!F)return;let L,X=!1;return(async()=>{try{let ct=await mg.annotations(h.key).catch(()=>({annotations:[]}));if(X)return;if(I(ct.annotations??[]),L=await aS(e.current,{pdfUrl:F,docId:h.key,annotations:ct.annotations??[],mode:"fit-width"}),X){L.destroy();return}s.current=L,r(!0),u(L.numPages()),S(L.outline??[]),b(L.getScale()),L.on("scale",({scale:U})=>{b(U),v(L.getMode())}),L.on("annotation",U=>{mg.addAnnotation(h.key,U).catch(()=>{})})}catch(ct){o(ct?.message??String(ct))}})(),()=>{X=!0,L?.destroy(),s.current=null}},[F,h.key]);let B=sS(()=>{s.current&&c(s.current.currentPage())},[]),H=async()=>{let L=E.trim();if(!L||!s.current)return;let X=await s.current.search(L);k(X),X.length&&(s.current.goToPage(X[0].page),s.current.highlightMatches(L))};return F?M("div",{className:"zt-reader"},M("div",{className:"zt-toolbar"},M(Zn,{title:Z("back"),onClick:()=>Gt.setView("list")},M(en.Back,{size:16})),M(Zn,{title:Z("reader.prev"),disabled:l<=1,onClick:()=>s.current?.goToPage(l-1)},M(en.ChevronLeft,{size:16})),M("span",{style:{fontSize:12,color:"var(--dsw-alias-label-secondary, #666)",whiteSpace:"nowrap"}},`${l}${Z("reader.of")}${d||"\u2013"}`),M(Zn,{title:Z("reader.next"),disabled:l>=d,onClick:()=>s.current?.goToPage(l+1)},M(en.ChevronRight,{size:16})),M("span",{style:{flex:1}}),M(Zn,{title:Z("reader.zoomOut"),onClick:()=>s.current?.setScale(1/1.2)},M(en.Minus,{size:16})),M("span",{style:{fontSize:12,color:"var(--dsw-alias-label-tertiary, #8a8a8a)"}},`${Math.round(p*100)}%`),M(Zn,{title:Z("reader.zoomIn"),onClick:()=>s.current?.setScale(1.2)},M(en.Plus,{size:16})),M(Zn,{title:Z("reader.toc"),onClick:()=>A(L=>!L)},M(en.Toc,{size:16})),M(Zn,{title:Z("reader.search"),onClick:H},M(en.Search,{size:16}))),w&&x.length?M("div",{className:"zt-toc"},...x.map((L,X)=>M("button",{key:`${L.title}-${X}`,"data-depth":Math.min(3,L.depth??0),onClick:()=>s.current?.goToDest(L.dest)},L.title))):null,w&&!x.length?M("div",{className:"zt-toc"},M("div",{className:"zt-hint"},"\uFF08\u65E0\u76EE\u5F55\uFF09")):null,E?M("div",{className:"zt-toc"},M("div",{className:"zt-row"},M("input",{className:"zt-input",placeholder:Z("reader.search"),value:E,onChange:L=>C(L.target.value),onKeyDown:L=>L.key==="Enter"&&H()}),M(rs,{onClick:H},Z("reader.search"))),_.length?_.slice(0,20).map((L,X)=>M("button",{key:X,onClick:()=>s.current?.goToPage(L.page)},`p.${L.page} ${L.preview}`)):M("div",{className:"zt-hint"},"0 \u7ED3\u679C")):null,a?M("div",{className:"zt-error",style:{padding:16}},a):null,!n&&!a?M("div",{className:"zt-empty"},M(iS,{size:20}),M("p",null,Z("reader.loading"))):null,M("div",{className:"zt-reader-scroll",ref:e,onScroll:B}),P.length?M("div",{className:"zt-toc",style:{maxHeight:"25%"}},M("div",{style:{fontSize:12,fontWeight:500,color:"var(--dsw-alias-label-secondary, #666)",padding:"0 8px 4px"}},`${Z("reader.notes")} (${P.length})`),...P.map(L=>M("button",{key:L.id,onClick:()=>s.current?.goToPage(L.pageIndex+1)},`p.${L.pageIndex+1} ${L.text.slice(0,60)}${L.note?" \xB7 "+L.note:""}`))):null):M("div",{className:"zt-empty"},M("h4",null,Z("reader.notDownloaded")),M("p",null,Z("action.download")))}function mS(){let h=Qu();if(h.view==="settings")return M(oS,{key:"settings"});if(h.view==="diff"){let t=h.items.find(e=>e.key===h.selectedKey);return M(lS,{key:"diff",item:t,conflict:h.conflict})}if(h.view==="reader"){let t=h.items.find(e=>e.key===h.selectedKey);return t?M(gS,{key:t.key,item:t}):M(rA,{key:"list"})}return M(rA,{key:"list"})}function bS({onClose:h}){let t=Qu();if(!t.open)return null;let e=t.zotero?.running===!0;return M("div",{className:"zt-panel",style:{width:t.geometry.width}},M(pS,{onClose:h}),!t.loaded&&t.loadError?M("div",{className:"zt-banner"},Z("banner.offline")):null,e?null:M("div",{className:"zt-banner"},Z("banner.zoteroDown")),M("div",{className:"zt-body"},t.view==="list"?M(fS,{key:"search"}):null,M(mS,{key:"body"})),M(aA,{edge:"left"}),M(aA,{edge:"br"}))}function yS({wide:h}){let t=Qu();return M("button",{className:"zt-iconbtn",style:{width:36,height:36,borderRadius:12},title:Z("open"),"aria-label":Z("open"),onClick:()=>t.open?Gt.closePanel():Gt.openPanel()},M(en.Panel,{size:h?16:18}),h?M("span",{style:{marginLeft:4,fontSize:13}},Z("entry")):null)}lA.exports={Panel:bS,SidebarButton:yS}});var vS=require("react"),Gy=vS.createElement,{NS:yg,zh:wS,en:AS,t:xS,setLocale:SS,detectLocale:ES}=ol(),{ensureStyle:CS,removeStyle:_S}=Qy(),jy=ll(),{Panel:TS,SidebarButton:kS}=cA(),{SettingsPage:MS}=Uy();function PS(h){h.effect(()=>(CS(),()=>_S()),"dsh-literature: styles"),h.effect(()=>h.locale.register(yg,{zh:wS,en:AS}),"dsh-literature: dictionaries");let t=h.slots;if(!t){console.warn("[dsh-literature] slots service unavailable \u2014 side panel disabled");return}let e=()=>SS(ES(h)||"zh");e(),h.on("locale/change",e),h.effect(()=>t.inject("sidebar.footer.action",()=>t.register({name:"sidebar.footer.action",id:"dsh-literature",order:6,label:xS("entry"),locale:yg},n=>Gy(kS,{wide:n&&n.wide}))),"dsh-literature: sidebar entry"),h.effect(()=>t.inject("shell.overlay",()=>t.register({name:"shell.overlay",id:"dsh-literature",order:7,locale:yg},()=>Gy(TS,{onClose:()=>jy.closePanel()}))),"dsh-literature: overlay panel"),h.effect(()=>t.inject("settings.section",()=>t.register({name:"settings.section",id:"dsh-literature",order:30,label:"Zotero",locale:yg},n=>Gy(MS,{close:n&&n.close}))),"dsh-literature: settings page");let s=jy.attachEvents();h.effect(()=>s,"dsh-literature: sse"),jy.refresh().catch(n=>console.warn("[dsh-literature] initial state load failed",n?.message)),console.log("[dsh-literature] client ready")}exports.inject=["slots","locale"];exports.apply=PS;
327
+
328
+ return module.exports;
329
+ }
330
+ });
331
+