@elizaos/plugin-pdf 2.0.0-alpha.5 → 2.0.0-alpha.537

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.
@@ -1,6 +1,112 @@
1
- import{logger as x,Service as C,ServiceType as h}from"@elizaos/core";import w from"pdfjs-dist";var{getDocument:m}=w;function l(e){return"str"in e}class f extends C{static serviceType=h.PDF;capabilityDescription="The agent is able to convert PDF files to text";static async start(e){return new f(e)}static async stop(e){let t=e.getService(h.PDF);if(t)await t.stop()}async stop(){}async convertPdfToText(e){try{let t=new Uint8Array(e),a=await m({data:t}).promise,s=a.numPages,n=[];for(let i=1;i<=s;i++){let o=(await(await a.getPage(i)).getTextContent()).items.filter(l).map((g)=>g.str).join(" ");n.push(o)}let r=n.join(`
2
- `);return this.cleanUpContent(r)}catch(t){throw x.error(`PdfService: Failed to convert PDF to text - error: ${t}, bufferSize: ${e.length}`),t}}async convertPdfToTextWithOptions(e,t={}){try{let a=new Uint8Array(e),s=await m({data:a}).promise,n=s.numPages,r=Math.max(1,t.startPage||1),i=Math.min(n,t.endPage||n),d=[];for(let o=r;o<=i;o++){let P=(await(await s.getPage(o)).getTextContent()).items.filter(l).map((p)=>p.str).join(t.preserveWhitespace?"":" ");d.push(P)}let c=d.join(`
3
- `);if(t.cleanContent!==!1)c=this.cleanUpContent(c);return{success:!0,text:c,pageCount:n}}catch(a){return{success:!1,error:a instanceof Error?a.message:String(a)}}}async getDocumentInfo(e){let t=new Uint8Array(e),a=await m({data:t}).promise,s=a.numPages,r=(await a.getMetadata()).info,i={title:r.Title,author:r.Author,subject:r.Subject,keywords:r.Keywords,creator:r.Creator,producer:r.Producer,creationDate:r.CreationDate?new Date(r.CreationDate):void 0,modificationDate:r.ModDate?new Date(r.ModDate):void 0},d=[],c=[];for(let o=1;o<=s;o++){let g=await a.getPage(o),u=g.getViewport({scale:1}),p=(await g.getTextContent()).items.filter(l).map((y)=>y.str).join(" ");d.push({pageNumber:o,width:u.width,height:u.height,text:this.cleanUpContent(p)}),c.push(p)}return{pageCount:s,metadata:i,text:this.cleanUpContent(c.join(`
4
- `)),pages:d}}cleanUpContent(e){try{return e.split("").filter((s)=>{let n=s.charCodeAt(0);return!(n===0||n>=1&&n<=8||n>=11&&n<=12||n>=14&&n<=31||n===127)}).join("").replace(/[^\S\r\n]+/g," ").replace(/[ \t]+(\r?\n)/g,"$1").trim()}catch(t){return x.error(`PdfService: Failed to clean up content - error: ${t}, contentLength: ${e.length}`),e}}}var T={name:"pdf",description:"Plugin for PDF reading and text extraction",services:[f],actions:[]},v=T;export{T as pdfPlugin,v as default,f as PdfService};
1
+ var O7=Object.defineProperty;var N7=(t)=>t;function L7(t,e){this[t]=N7.bind(null,e)}var z7=(t,e)=>{for(var s in e)O7(t,s,{get:e[s],enumerable:!0,configurable:!0,set:L7.bind(e,s)})};var U7=(t,e)=>()=>(t&&(e=t(t=0)),e);var B7={};z7(B7,{version:()=>c7,updateUrlHash:()=>yf,stopEvent:()=>He,shadow:()=>se,setLayerDimensions:()=>_n,renderRichText:()=>xf,normalizeUnicode:()=>r0,noContextMenu:()=>oi,makeObj:()=>Th,makeMap:()=>kf,makeArr:()=>vf,isValidExplicitDest:()=>k8,isPdfFile:()=>Vl,isDataScheme:()=>Yr,getXfaPageViewport:()=>c0,getUuid:()=>jf,getRGB:()=>Va,getPdfFilenameFromUrl:()=>l0,getFilenameFromUrl:()=>o0,getDocument:()=>M0,findContrastColor:()=>u0,fetchData:()=>Ul,createValidAbsoluteUrl:()=>wf,build:()=>h7,applyOpacity:()=>f0,XfaLayer:()=>qf,VerbosityLevel:()=>Nl,Util:()=>xt,TouchManager:()=>Wl,TextLayerImages:()=>vl,TextLayer:()=>ti,SupportedImageMimeTypes:()=>Fh,SignatureExtractor:()=>Zn,ResponseException:()=>Lr,RenderingCancelledException:()=>$l,PixelsPerInch:()=>da,PermissionFlag:()=>U4,PasswordResponses:()=>G4,PDFWorker:()=>ps,PDFDateString:()=>wl,PDFDataRangeTransport:()=>Cf,OutputScale:()=>Ki,OPS:()=>Nr,MathClamp:()=>rs,InvalidPDFException:()=>gl,ImageKind:()=>zo,GlobalWorkerOptions:()=>Ra,FeatureTest:()=>es,DrawLayer:()=>ds,DOMSVGFactory:()=>zr,ColorPicker:()=>di,CSSConstants:()=>h0,AnnotationType:()=>Xe,AnnotationMode:()=>kn,AnnotationLayer:()=>Ff,AnnotationEditorUIManager:()=>On,AnnotationEditorType:()=>Zt,AnnotationEditorParamsType:()=>ge,AnnotationEditorLayer:()=>en,AbortException:()=>hn});function Q0(){typeof globalThis.DOMMatrix<"u"||(globalThis.DOMMatrix=class{static{d(this,"DOMMatrix")}constructor(t){Ka(this,"a"),Ka(this,"b"),Ka(this,"c"),Ka(this,"d"),Ka(this,"e"),Ka(this,"f"),Array.isArray(t)&&t.length===6?(this.a=t[0],this.b=t[1],this.c=t[2],this.d=t[3],this.e=t[4],this.f=t[5]):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}translateSelf(t,e=0){return this.e=this.a*t+this.c*e+this.e,this.f=this.b*t+this.d*e+this.f,this}scaleSelf(t,e=t){return this.a*=t,this.b*=t,this.c*=e,this.d*=e,this}})}function im(t){Number.isInteger(t)&&(_h=t)}function nm(){return _h}function Wt(t){_h>=$o.INFOS&&console.info(`Info: ${t}`)}function T(t){_h>=$o.WARNINGS&&console.warn(`Warning: ${t}`)}function Yt(t){throw Error(t)}function Fe(t,e){t||Yt(e)}function am(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Vo(t,e=null,s=null){if(!t)return null;if(s&&typeof t=="string"&&(s.addDefaultProtocol&&t.startsWith("www.")&&t.match(/\./g)?.length>=2&&(t=`http://${t}`),s.tryConvertEncoding))try{t=Ha(t)}catch{}let i=e?URL.parse(t,e):URL.parse(t);return am(i)?i:null}function rm(t){return t.substring(t.lastIndexOf("/")+1)}function lt(t,e,s,i=!1){return Object.defineProperty(t,e,{value:s,enumerable:!i,configurable:!0,writable:!1}),s}function Us(t){(typeof t!="object"||t?.length===void 0)&&Yt("Invalid argument for bytesToString");let e=t.length,s=8192;if(e<s)return String.fromCharCode.apply(null,t);let i=[];for(let n=0;n<e;n+=s){let a=Math.min(n+s,e),r=t.subarray(n,a);i.push(String.fromCharCode.apply(null,r))}return i.join("")}function Fs(t){typeof t!="string"&&Yt("Invalid argument for stringToBytes");let e=t.length,s=new Uint8Array(e);for(let i=0;i<e;++i)s[i]=t.charCodeAt(i)&255;return s}function gs(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,t&255)}function Oh(t){return Object.keys(t).length}function om(){let t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}function lm(){try{return Function(""),!0}catch{return!1}}function Xt(t,e=!1){if(t[0]>="ï"){let i;if(t[0]==="þ"&&t[1]==="ÿ"?(i="utf-16be",t.length%2===1&&(t=t.slice(0,-1))):t[0]==="ÿ"&&t[1]==="þ"?(i="utf-16le",t.length%2===1&&(t=t.slice(0,-1))):t[0]==="ï"&&t[1]==="»"&&t[2]==="¿"&&(i="utf-8"),i)try{let n=new TextDecoder(i,{fatal:!0}),a=Fs(t),r=n.decode(a);return e||!r.includes("\x1B")?r:r.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g,"")}catch(n){T(`stringToPDFString: "${n}".`)}}let s=[];for(let i=0,n=t.length;i<n;i++){let a=t.charCodeAt(i);if(!e&&a===27){for(;++i<n&&t.charCodeAt(i)!==27;);continue}let r=X7[a];s.push(r?String.fromCharCode(r):t.charAt(i))}return s.join("")}function Ha(t){return decodeURIComponent(escape(t))}function Xc(t){return unescape(encodeURIComponent(t))}function Er(t,e){if(t.length!==e.length)return!1;for(let s=0,i=t.length;s<i;s++)if(t[s]!==e[s])return!1;return!0}function Pn(t=new Date){return t instanceof Date||(t=new Date(t)),[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")].join("")}function cm(t){return Rf||(Rf=/([\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,sp=new Map([["ſt","ſt"]])),t.replaceAll(Rf,(e,s,i)=>s?s.normalize("NFKC"):sp.get(i))}function hm(t,e,s){if(!Array.isArray(s)||s.length<2)return!1;let[i,n,...a]=s;if(!t(i)&&!Number.isInteger(i)||!e(n))return!1;let r=a.length,o=!0;switch(n.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;o=!1;break;default:return!1}for(let l of a)if(!(typeof l=="number"||o&&l===null))return!1;return!0}function Ze(t,e,s){return Math.min(Math.max(t,e),s)}function dm(){fm=Object.create(null),um=Object.create(null),Ac=Object.create(null)}function re(t,e){return t instanceof tt&&(e===void 0||t.name===e)}function os(t,e){return t instanceof Je&&(e===void 0||t.cmd===e)}function S1(t,e){return t instanceof B&&(e===void 0||re(t.get("Type"),e))}function Ko(t,e){return t.num===e.num&&t.gen===e.gen}function Pe(t){let e;return function(){return t&&(e=Object.create(null),t(e),t=null),e}}function C1(t){let e=t.length;if(e===0)return new Uint8Array(0);if(e===1)return new Uint8Array(t[0]);let s=0;for(let a=0;a<e;a++)s+=t[a].byteLength;let i=new Uint8Array(s),n=0;for(let a=0;a<e;a++){let r=new Uint8Array(t[a]);i.set(r,n),n+=r.byteLength}return i}async function iu(t){let e=await fetch(t);if(!e.ok)throw Error(`Failed to fetch file "${t}" with "${e.statusText}".`);return e.bytes()}function ii({dict:t,key:e,getArray:s=!1,stopWhenFound:i=!0}){let n,a=new Me;for(;t instanceof B&&!(t.objId&&a.has(t.objId));){t.objId&&a.put(t.objId);let r=s?t.getArray(e):t.get(e);if(r!==void 0){if(i)return r;(n||=[]).push(r)}t=t.get("Parent")}return n}function gm(t,e,s){let i=new Me,n=t,a={dict:null,ref:null};for(;t instanceof B&&!i.has(e)&&(i.put(e),!t.has("T"));){if(e=t.getRaw("Parent"),!(e instanceof nt))return a;t=s.fetch(e)}return t instanceof B&&t!==n&&(a.dict=t,a.ref=e),a}function Jc(t,e){if(t===e)return!0;if(t instanceof B&&e instanceof B){if(t.size!==e.size)return!1;for(let[s,i]of t.getRawEntries()){let n=e.getRaw(s);if(n===void 0||!Jc(i,n))return!1}return!0}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let s=0,i=t.length;s<i;s++)if(!Jc(t[s],e[s]))return!1;return!0}return!1}function bm(t,e=!1){Fe(Number.isInteger(t)&&t>0,"The number should be a positive integer.");let s="M".repeat(t/1000|0)+Hf[t%1000/100|0]+Hf[10+(t%100/10|0)]+Hf[20+t%10];return e?s.toLowerCase():s}function Lh(t){return t>0?Math.ceil(Math.log2(t)):0}function _i(t,e){return t[e]<<24>>24}function nn(t,e){return(t[e]<<24|t[e+1]<<16)>>16}function te(t,e){return t[e]<<8|t[e+1]}function we(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function ai(t){return t===32||t===9||t===13||t===10}function wm(t,e){return Array.isArray(t)&&t.length===e&&t.every((s)=>typeof s=="boolean")}function _s(t,e){return Array.isArray(t)?(e===null||t.length===e)&&t.every((s)=>typeof s=="number"):ArrayBuffer.isView(t)&&!(t instanceof BigInt64Array||t instanceof BigUint64Array)&&(e===null||t.length===e)}function xn(t,e){return _s(t,6)?t:e}function Yo(t,e){return _s(t,4)?t:e}function ln(t,e){return _s(t,4)?de.normalizeRect(t):e}function I1(t){let e=/(.+)\[(\d+)\]$/;return t.split(".").map((s)=>{let i=s.match(e);return i?{name:i[1],pos:parseInt(i[2],10)}:{name:s,pos:0}})}function zh(t){let e=[],s=0;for(let i=0,n=t.length;i<n;i++){let a=t.charCodeAt(i);(a<33||a>126||a===35||a===40||a===41||a===60||a===62||a===91||a===93||a===123||a===125||a===47||a===37)&&(s<i&&e.push(t.substring(s,i)),e.push(`#${a.toString(16)}`),s=i+1)}return e.length===0?t:(s<t.length&&e.push(t.substring(s,t.length)),e.join(""))}function _a(t){return t.replaceAll(/([()\\\n\r])/g,(e)=>e===`
2
+ `?"\\n":e==="\r"?"\\r":`\\${e}`)}function Xo(t,e,s,i){if(!t)return;let n=null;if(t instanceof nt){if(i.has(t))return;n=t,i.put(n),t=e.fetch(t)}if(Array.isArray(t))for(let a of t)Xo(a,e,s,i);else if(t instanceof B){if(re(t.get("S"),"JavaScript")){let a=t.get("JS"),r;a instanceof Lt?r=a.getString():typeof a=="string"&&(r=a),r&&=Xt(r,!0).replaceAll("\x00",""),r&&s.push(r.trim())}Xo(t.getRaw("Next"),e,s,i)}n&&i.remove(n)}function kl(t,e,s){let i=Object.create(null),n=ii({dict:e,key:"AA",stopWhenFound:!1});if(n)for(let a=n.length-1;a>=0;a--){let r=n[a];if(r instanceof B)for(let[o,l]of r.getRawEntries()){let c=s[o];if(!c)continue;let h=new Me,f=[];Xo(l,t,f,h),f.length>0&&(i[c]=f)}}if(e.has("A")){let a=e.get("A"),r=new Me,o=[];Xo(a,t,o,r),o.length>0&&(i.Action=o)}return Oh(i)>0?i:null}function*ym(t){for(let e=0,s=t.length;e<s;e++){let i=t.codePointAt(e);i>55295&&(i<57344||i>65533)&&e++,yield i}}function Ea(t){let e=[],s=0;for(let i=0,n=t.length;i<n;i++){let a=t.codePointAt(i);if(32<=a&&a<=126){let r=sy[a];r&&(s<i&&e.push(t.substring(s,i)),e.push(r),s=i+1)}else s<i&&e.push(t.substring(s,i)),e.push(`&#x${a.toString(16).toUpperCase()};`),a>55295&&(a<57344||a>65533)&&i++,s=i+1}return e.length===0?t:(s<t.length&&e.push(t.substring(s,t.length)),e.join(""))}function Zc(t,e=!1){let s=/^("|').*("|')$/.exec(t);if(s&&s[1]===s[2]){if(new RegExp(`[^\\\\]${s[1]}`).test(t.slice(1,-1)))return e&&T(`FontFamily contains unescaped ${s[1]}: ${t}.`),!1}else for(let i of t.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(i)||!/^[\w-\\]+$/.test(i))return e&&T(`FontFamily contains invalid <custom-ident>: ${t}.`),!1;return!0}function jm(t){let e=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:s,fontWeight:i,italicAngle:n}=t;if(!Zc(s,!0))return!1;let a=i?i.toString():"";t.fontWeight=e.has(a)?a:"400";let r=parseFloat(n);return t.italicAngle=isNaN(r)||r<-90||r>90?"14":n.toString(),!0}function T1(t){let e=["app.launchURL","window.open","xfa.host.gotoURL"],s=new RegExp("^\\s*("+e.join("|").replaceAll(".","\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec(t);return s?.[2]?{url:s[2],newWindow:s[1]==="app.launchURL"&&s[3]==="true"}:null}function ie(t){if(Number.isInteger(t))return t.toString();let e=Math.round(t*100);return e%100===0?(e/100).toString():e%10===0?t.toFixed(1):t.toFixed(2)}function Uh(t){if(!t)return null;let e=new Map;for(let[s,i]of t)s.startsWith(Zp)&&e.getOrInsertComputed(i.pageIndex,Nh).push(i);return e.size>0?e:null}function ws(t){return t==null||vm(t)?t:F1(t,!0)}function vm(t){return typeof t!="string"?!1:!t||/^[\x00-\x7F]*$/.test(t)}function km(t){let e=[];for(let s=0,i=t.length;s<i;s++){let n=t.charCodeAt(s);e.push(Bo[n>>8&255],Bo[n&255])}return e.join("")}function F1(t,e=!1){let s=[];e&&s.push("þÿ");for(let i=0,n=t.length;i<n;i++){let a=t.charCodeAt(i);s.push(String.fromCharCode(a>>8&255),String.fromCharCode(a&255))}return s.join("")}function Qo(t,e,s){switch(t){case 90:return[0,1,-1,0,e,0];case 180:return[-1,0,0,-1,e,s];case 270:return[0,-1,1,0,0,s];default:throw Error("Invalid rotation")}}function nu(t){return Math.ceil(Math.ceil(Math.log2(1+t))/8)}function qm(t,e){let{_mustAddAlpha:s,_destBuffer:i,_destOffset:n,_destLength:a,_memoryArray:r}=hs;if(e===a){i.set(r.subarray(t,t+e),n);return}if(s)for(let o=t,l=t+e,c=n;o<l;o+=3,c+=4)i[c]=r[o],i[c+1]=r[o+1],i[c+2]=r[o+2],i[c+3]=255;else for(let o=t,l=t+e,c=n;o<l;o+=3,c+=4)i[c]=r[o],i[c+1]=r[o+1],i[c+2]=r[o+2]}function xm(t){let{_destBuffer:e,_destOffset:s,_memoryArray:i}=hs;e[s]=i[t],e[s+1]=i[t+1],e[s+2]=i[t+2]}function Am(t){let{_memoryArray:e}=hs;hs._cssColor=hs._makeHexColor(e[t],e[t+1],e[t+2])}function E1(){return(yo===null||yo.byteLength===0)&&(yo=new Uint8Array(Gs.memory.buffer)),yo}function Cm(t,e){return t=t>>>0,Sm.decode(E1().subarray(t,t+e))}function B1(t,e){let s=e(t.length*1,1)>>>0;return E1().set(t,s/1),M1=t.length,s}function Im(t,e){let s=B1(e,Gs.__wbindgen_malloc),i=M1;Gs.qcms_convert_array(t,s,i)}function Tm(t,e,s){Gs.qcms_convert_one(t,e,s)}function Fm(t,e,s,i,n){Gs.qcms_convert_three(t,e,s,i,n)}function Em(t,e,s,i,n,a){Gs.qcms_convert_four(t,e,s,i,n,a)}function Mm(t,e,s){let i=B1(t,Gs.__wbindgen_malloc),n=M1;return Gs.qcms_transformer_from_memory(i,n,e,s)>>>0}function Bm(t){Gs.qcms_drop_transformer(t)}function Pm(){let t={};return t.wbg={},t.wbg.__wbg_copyresult_b08ee7d273f295dd=function(e,s){qm(e>>>0,s>>>0)},t.wbg.__wbg_copyrgb_d60ce17bb05d9b67=function(e){xm(e>>>0)},t.wbg.__wbg_makecssRGB_893bf0cd9fdb302d=function(e){Am(e>>>0)},t.wbg.__wbindgen_init_externref_table=function(){let e=Gs.__wbindgen_export_0,s=e.grow(4);e.set(0,void 0),e.set(s+0,void 0),e.set(s+1,null),e.set(s+2,!0),e.set(s+3,!1)},t.wbg.__wbindgen_throw=function(e,s){throw Error(Cm(e,s))},t}function Dm(t,e){return Gs=t.exports,yo=null,Gs.__wbindgen_start(),Gs}function Rm(t){if(Gs!==void 0)return Gs;typeof t<"u"&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=Pm();t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t));let s=new WebAssembly.Instance(t,e);return Dm(s)}function Hm(t,e,s,i,n,a,r){r=r!==1?0:r;let o=s/n,l=i/a,c=0,h,f=new Uint16Array(n),u=s*3;for(let p=0;p<n;p++)f[p]=Math.floor(p*o)*3;for(let p=0;p<a;p++){let m=Math.floor(p*l)*u;for(let g=0;g<n;g++)h=m+f[g],e[c++]=t[h++],e[c++]=t[h++],e[c++]=t[h++],c+=r}}function _m(t,e,s,i,n,a,r){let o=s/n,l=i/a,c=0,h=new Uint16Array(n);if(r===1){for(let m=0;m<n;m++)h[m]=Math.floor(m*o);let f=new Uint32Array(t.buffer),u=new Uint32Array(e.buffer),p=Ms.isLittleEndian?16777215:4294967040;for(let m=0;m<a;m++){let g=f.subarray(Math.floor(m*l)*s);for(let w=0;w<n;w++)u[c++]|=g[h[w]]&p}}else{let f=s*4;for(let u=0;u<n;u++)h[u]=Math.floor(u*o)*4;for(let u=0;u<a;u++){let p=t.subarray(Math.floor(u*l)*f);for(let m=0;m<n;m++){let g=h[m];e[c++]=p[g],e[c++]=p[g+1],e[c++]=p[g+2]}}}}function Om(t,e,s){if(s===1){let i=new Uint32Array(t.buffer),n=new Uint32Array(e.buffer),a=Ms.isLittleEndian?16777215:4294967040;for(let r=0,o=i.length;r<o;r++)n[r]|=i[r]&a}else{let i=0;for(let n=0,a=t.length;n<a;n+=4)e[i++]=t[n],e[i++]=t[n+1],e[i++]=t[n+2]}}function P1(t,e){if(!Array.isArray(t))return!0;let s=t.length;return s<e?(T("Decode map length is too short."),!0):(s>e&&(Wt("Truncating too long decode map."),t.length=e),!1)}function R1(t){let e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),e.response}function H1(t){switch(t.kind){case ms.GRAYSCALE_1BPP:return eh(t);case ms.RGB_24BPP:return Ym(t)}return null}function eh({src:t,srcPos:e=0,dest:s,width:i,height:n,nonBlackColor:a=4294967295,inverseDecode:r=!1}){let o=Ms.isLittleEndian?4278190080:255,[l,c]=r?[a,o]:[o,a],h=i>>3,f=i&7,u=l^c,p=t.length;s=new Uint32Array(s.buffer);let m=0;for(let g=0;g<n;++g){for(let b=e+h;e<b;++e,m+=8){let j=t[e];s[m]=l^-(j>>7&1)&u,s[m+1]=l^-(j>>6&1)&u,s[m+2]=l^-(j>>5&1)&u,s[m+3]=l^-(j>>4&1)&u,s[m+4]=l^-(j>>3&1)&u,s[m+5]=l^-(j>>2&1)&u,s[m+6]=l^-(j>>1&1)&u,s[m+7]=l^-(j&1)&u}if(f===0)continue;let w=e<p?t[e++]:255;for(let b=0;b<f;++b,++m)s[m]=l^-(w>>7-b&1)&u}return{srcPos:e,destPos:m}}function Ym({src:t,srcPos:e=0,dest:s,destPos:i=0,width:n,height:a}){let r=0,o=n*a*3,l=o>>2,c=new Uint32Array(t.buffer,e,l),h=Ms.isLittleEndian?4278190080:255;if(Ms.isLittleEndian){for(;r<l-2;r+=3,i+=4){let f=c[r],u=c[r+1],p=c[r+2];s[i]=f|h,s[i+1]=f>>>24|u<<8|h,s[i+2]=u>>>16|p<<16|h,s[i+3]=p>>>8|h}for(let f=r*4,u=e+o;f<u;f+=3)s[i++]=t[f]|t[f+1]<<8|t[f+2]<<16|h}else{for(;r<l-2;r+=3,i+=4){let f=c[r],u=c[r+1],p=c[r+2];s[i]=f|h,s[i+1]=f<<24|u>>>8|h,s[i+2]=u<<16|p>>>16|h,s[i+3]=p<<8|h}for(let f=r*4,u=e+o;f<u;f+=3)s[i++]=t[f]<<24|t[f+1]<<16|t[f+2]<<8|h}return{srcPos:e+o,destPos:i}}function Xm(t,e){if(Ms.isLittleEndian)for(let s=0,i=t.length;s<i;s++)e[s]=t[s]*65793|4278190080;else for(let s=0,i=t.length;s<i;s++)e[s]=t[s]*16843008|255}function Is(t,e,s){let i=t.getContexts(e),n=1;function a(c){let h=0;for(let f=0;f<c;f++){let u=s.readBit(i,n);n=n<256?n<<1|u:(n<<1|u)&511|256,h=h<<1|u}return h>>>0}d(a,"readBits");let r=a(1),o=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2),l;return r===0?l=o:o>0&&(l=-o),l>=ey&&l<=tu?l:null}function O1(t,e,s){let i=t.getContexts("IAID"),n=1;for(let a=0;a<s;a++){let r=e.readBit(i,n);n=n<<1|r}return s<31?n&(1<<s)-1:n&2147483647}function eg(t,e,s){let i=s.decoder,n=s.contextCache.getContexts("GB"),a=[],r,o,l,c,h,f,u,p=31735;for(o=0;o<e;o++)for(h=a[o]=new Uint8Array(t),f=o<1?h:a[o-1],u=o<2?h:a[o-2],r=u[0]<<13|u[1]<<12|u[2]<<11|f[0]<<7|f[1]<<6|f[2]<<5|f[3]<<4,l=0;l<t;l++)h[l]=c=i.readBit(n,r),r=(r&31735)<<1|(l+3<t?u[l+3]<<11:0)|(l+4<t?f[l+4]<<4:0)|c;return a}function ql(t,e,s,i,n,a,r,o){if(t){let qt=new Mr(o.data,o.start,o.end);return Gh(qt,e,s,!1)}if(i===0&&!n&&r.length===4&&r[0].x===3&&r[0].y===-1&&r[1].x===-3&&r[1].y===-1&&r[2].x===2&&r[2].y===-2&&r[3].x===-2&&r[3].y===-2)return eg(e,s,o);let l=ry[i].concat(r);l.sort((qt,R)=>qt.y-R.y||qt.x-R.x);let c=l.length,h=new Int8Array(c),f=new Int8Array(c),u=[],p=0,m=0,g=0,w=0,b,j;for(j=0;j<c;j++)h[j]=l[j].x,f[j]=l[j].y,m=Math.min(m,l[j].x),g=Math.max(g,l[j].x),w=Math.min(w,l[j].y),j<c-1&&l[j].y===l[j+1].y&&l[j].x===l[j+1].x-1?p|=1<<c-1-j:u.push(j);let v=u.length,q=new Int8Array(v),x=new Int8Array(v),k=new Uint16Array(v);for(b=0;b<v;b++)j=u[b],q[b]=l[j].x,x[b]=l[j].y,k[b]=1<<c-1-j;let A=-m,S=-w,I=e-g,E=oy[i],D=new Uint8Array(e),O=[],$=o.decoder,it=o.contextCache.getContexts("GB"),W=0,H,L,rt,yt=0,X,St;for(let qt=0;qt<s;qt++){if(n){let R=$.readBit(it,E);if(W^=R,W){O.push(D);continue}}for(D=new Uint8Array(D),O.push(D),H=0;H<e;H++){if(H>=A&&H<I&&qt>=S)for(yt=yt<<1&p,j=0;j<v;j++)L=qt+x[j],rt=H+q[j],X=O[L][rt],X&&(X=k[j],yt|=X);else for(yt=0,St=c-1,j=0;j<c;j++,St--)rt=H+h[j],rt>=0&&rt<e&&(L=qt+f[j],L>=0&&(X=O[L][rt],X&&(yt|=X<<St)));let R=$.readBit(it,yt);D[H]=R}}return O}function N1(t,e,s,i,n,a,r,o,l){let c=up[s].coding;s===0&&(c=c.concat([o[0]]));let h=c.length,f=new Int32Array(h),u=new Int32Array(h),p;for(p=0;p<h;p++)f[p]=c[p].x,u[p]=c[p].y;let m=up[s].reference;s===0&&(m=m.concat([o[1]]));let g=m.length,w=new Int32Array(g),b=new Int32Array(g);for(p=0;p<g;p++)w[p]=m[p].x,b[p]=m[p].y;let j=i[0].length,v=i.length,q=[],x=l.decoder,k=l.contextCache.getContexts("GR");for(let A=0;A<e;A++){let S=new Uint8Array(t);q.push(S);for(let I=0;I<t;I++){let E,D,O=0;for(p=0;p<h;p++)E=A+u[p],D=I+f[p],E<0||D<0||D>=t?O<<=1:O=O<<1|q[E][D];for(p=0;p<g;p++)E=A+b[p]-a,D=I+w[p]-n,E<0||E>=v||D<0||D>=j?O<<=1:O=O<<1|i[E][D];let $=x.readBit(k,O);S[I]=$}}return q}function sg(t,e,s,i,n,a,r,o,l,c,h,f){if(t&&e)throw new Be("symbol refinement with Huffman is not supported");let u=[],p=0,m=Lh(s.length+i),g=h.decoder,w=h.contextCache,b,j;for(t&&(b=Sn(1),j=[],m=Math.max(m,1));u.length<i;){let I=t?a.tableDeltaHeight.decode(f):Is(w,"IADH",g);p+=I;let E=0,D=0,O=t?j.length:0;for(;;){let $=t?a.tableDeltaWidth.decode(f):Is(w,"IADW",g);if($===null)break;E+=$,D+=E;let it;if(e){let W=Is(w,"IAAI",g);if(W>1)it=L1(t,e,E,p,0,W,1,s.concat(u),m,0,0,1,0,a,l,c,h,0,f);else{let H=O1(w,g,m),L=Is(w,"IARDX",g),rt=Is(w,"IARDY",g),yt=H<s.length?s[H]:u[H-s.length];it=N1(E,p,l,yt,L,rt,!1,c,h)}u.push(it)}else t?j.push(E):(it=ql(!1,E,p,r,!1,null,o,h),u.push(it))}if(t&&!e){let $=a.tableBitmapSize.decode(f);f.byteAlign();let it;if($===0)it=pg(f,D,p);else{let H=f.end,L=f.position+$;f.end=L,it=Gh(f,D,p,!1),f.end=H,f.position=L}let W=j.length;if(O===W-1)u.push(it);else{let H,L,rt=0,yt,X,St;for(H=O;H<W;H++){for(X=j[H],yt=rt+X,St=[],L=0;L<p;L++)St.push(it[L].subarray(rt,yt));u.push(St),rt=yt}}}}let v=[],q=[],x=!1,k,A,S=s.length+i;for(;q.length<S;){let I=t?b.decode(f):Is(w,"IAEX",g);for(;I--;)q.push(x);x=!x}for(k=0,A=s.length;k<A;k++)q[k]&&v.push(s[k]);for(let I=0;I<i;k++,I++)q[k]&&v.push(u[I]);return v}function L1(t,e,s,i,n,a,r,o,l,c,h,f,u,p,m,g,w,b,j){if(t&&e)throw new Be("refinement with Huffman is not supported");let v=[],q,x;for(q=0;q<i;q++)x=new Uint8Array(s),n&&x.fill(n),v.push(x);let{decoder:k,contextCache:A}=w,S=t?-p.tableDeltaT.decode(j):-Is(A,"IADT",k),I=0;for(q=0;q<a;){let E=t?p.tableDeltaT.decode(j):Is(A,"IADT",k);S+=E;let D=t?p.tableFirstS.decode(j):Is(A,"IAFS",k);I+=D;let O=I;do{let $=0;r>1&&($=t?j.readBits(b):Is(A,"IAIT",k));let it=r*S+$,W=t?p.symbolIDTable.decode(j):O1(A,k,l),H=e&&(t?j.readBit():Is(A,"IARI",k)),L=o[W],rt=L[0].length,yt=L.length;if(H){let U=Is(A,"IARDW",k),ot=Is(A,"IARDH",k),ft=Is(A,"IARDX",k),J=Is(A,"IARDY",k);rt+=U,yt+=ot,L=N1(rt,yt,m,L,(U>>1)+ft,(ot>>1)+J,!1,g,w)}let X=0;c?f&1?X=yt-1:O+=yt-1:f>1?O+=rt-1:X=rt-1;let St=it-(f&1?0:yt-1),qt=O-(f&2?rt-1:0),R,V,N;if(c)for(R=0;R<yt;R++){if(x=v[qt+R],!x)continue;N=L[R];let U=Math.min(s-St,rt);switch(u){case 0:for(V=0;V<U;V++)x[St+V]|=N[V];break;case 2:for(V=0;V<U;V++)x[St+V]^=N[V];break;default:throw new Be(`operator ${u} is not supported`)}}else for(V=0;V<yt;V++)if(x=v[St+V],!!x)switch(N=L[V],u){case 0:for(R=0;R<rt;R++)x[qt+R]|=N[R];break;case 2:for(R=0;R<rt;R++)x[qt+R]^=N[R];break;default:throw new Be(`operator ${u} is not supported`)}q++;let _=t?p.tableDeltaS.decode(j):Is(A,"IADS",k);if(_===null)break;O+=X+_+h}while(!0)}return v}function ig(t,e,s,i,n,a){let r=[];t||(r.push({x:-e,y:0}),n===0&&r.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let o=(i+1)*e,l=ql(t,o,s,n,!1,null,r,a),c=[];for(let h=0;h<=i;h++){let f=[],u=e*h,p=u+e;for(let m=0;m<s;m++)f.push(l[m].subarray(u,p));c.push(f)}return c}function ng(t,e,s,i,n,a,r,o,l,c,h,f,u,p,m){if(r)throw new Be("skip is not supported");if(o!==0)throw new Be(`operator "${o}" is not supported in halftone region`);let g=[],w,b,j;for(w=0;w<n;w++)j=new Uint8Array(i),a&&j.fill(a),g.push(j);let v=e.length,q=e[0],x=q[0].length,k=q.length,A=Lh(v),S=[];t||(S.push({x:s<=1?3:2,y:-1}),s===0&&S.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let I=[],E,D;for(t&&(E=new Mr(m.data,m.start,m.end)),w=A-1;w>=0;w--)t?D=Gh(E,l,c,!0):D=ql(!1,l,c,s,!1,null,S,m),I[w]=D;let O,$,it,W,H,L,rt,yt,X;for(O=0;O<c;O++)for($=0;$<l;$++){for(it=0,W=0,b=A-1;b>=0;b--)it^=I[b][O][$],W|=it<<b;if(H=e[W],L=h+O*p+$*u>>8,rt=f+O*u-$*p>>8,L>=0&&L+x<=i&&rt>=0&&rt+k<=n)for(w=0;w<k;w++)for(X=g[rt+w],yt=H[w],b=0;b<x;b++)X[L+b]|=yt[b];else{let St,qt;for(w=0;w<k;w++)if(qt=rt+w,!(qt<0||qt>=n))for(X=g[qt],yt=H[w],b=0;b<x;b++)St=L+b,St>=0&&St<i&&(X[St]|=yt[b])}}return g}function ag(t,e){let s={};s.number=we(t,e);let i=t[e+4],n=i&63;if(!fp[n])throw new Be("invalid segment type: "+n);s.type=n,s.typeName=fp[n],s.deferredNonRetain=!!(i&128);let a=!!(i&64),r=t[e+5],o=r>>5&7,l=[r&31],c=e+6;if(o===7){o=we(t,c-1)&536870911,c+=3;let m=o+8>>3;for(l[0]=t[c++];--m>0;)l.push(t[c++])}else if(o===5||o===6)throw new Be("invalid referred-to flags");s.retainBits=l;let h=4;s.number<=256?h=1:s.number<=65536&&(h=2);let f=[],u,p;for(u=0;u<o;u++){let m;h===1?m=t[c]:h===2?m=te(t,c):m=we(t,c),f.push(m),c+=h}if(s.referredTo=f,a?(s.pageAssociation=we(t,c),c+=4):s.pageAssociation=t[c++],s.length=we(t,c),c+=4,s.length===4294967295)if(n===38){let m=Po(t,c),g=!!(t[c+Sc]&1),b=new Uint8Array(6);for(g||(b[0]=255,b[1]=172),b[2]=m.height>>>24&255,b[3]=m.height>>16&255,b[4]=m.height>>8&255,b[5]=m.height&255,u=c,p=t.length;u<p;u++){let j=0;for(;j<6&&b[j]===t[u+j];)j++;if(j===6){s.length=u+6;break}}if(s.length===4294967295)throw new Be("segment end was not found")}else throw new Be("invalid unknown segment length");return s.headerEnd=c,s}function rg(t,e,s,i){let n=[],a=s;for(;a<i;){let r=ag(e,a);a=r.headerEnd;let o={header:r,data:e};if(t.randomAccess||(o.start=a,a+=r.length,o.end=a),n.push(o),r.type===51)break}if(t.randomAccess)for(let r=0,o=n.length;r<o;r++)n[r].start=a,a+=n[r].header.length,n[r].end=a;return n}function Po(t,e){return{width:we(t,e),height:we(t,e+4),x:we(t,e+8),y:we(t,e+12),combinationOperator:t[e+16]&7}}function og(t,e){let{header:s,data:i,end:n,start:a}=t,r,o,l,c;switch(s.type){case 0:let f={},u=te(i,a);if(f.huffman=!!(u&1),f.refinement=!!(u&2),f.huffmanDHSelector=u>>2&3,f.huffmanDWSelector=u>>4&3,f.bitmapSizeSelector=u>>6&1,f.aggregationInstancesSelector=u>>7&1,f.bitmapCodingContextUsed=!!(u&256),f.bitmapCodingContextRetained=!!(u&512),f.template=u>>10&3,f.refinementTemplate=u>>12&1,a+=2,!f.huffman){for(c=f.template===0?4:1,o=[],l=0;l<c;l++)o.push({x:_i(i,a),y:_i(i,a+1)}),a+=2;f.at=o}if(f.refinement&&!f.refinementTemplate){for(o=[],l=0;l<2;l++)o.push({x:_i(i,a),y:_i(i,a+1)}),a+=2;f.refinementAt=o}f.numberOfExportedSymbols=we(i,a),a+=4,f.numberOfNewSymbols=we(i,a),a+=4,r=[f,s.number,s.referredTo,i,a,n];break;case 6:case 7:let p={};p.info=Po(i,a),a+=Sc;let m=te(i,a);if(a+=2,p.huffman=!!(m&1),p.refinement=!!(m&2),p.logStripSize=m>>2&3,p.stripSize=1<<p.logStripSize,p.referenceCorner=m>>4&3,p.transposed=!!(m&64),p.combinationOperator=m>>7&3,p.defaultPixelValue=m>>9&1,p.dsOffset=m<<17>>27,p.refinementTemplate=m>>15&1,p.huffman){let A=te(i,a);a+=2,p.huffmanFS=A&3,p.huffmanDS=A>>2&3,p.huffmanDT=A>>4&3,p.huffmanRefinementDW=A>>6&3,p.huffmanRefinementDH=A>>8&3,p.huffmanRefinementDX=A>>10&3,p.huffmanRefinementDY=A>>12&3,p.huffmanRefinementSizeSelector=!!(A&16384)}if(p.refinement&&!p.refinementTemplate){for(o=[],l=0;l<2;l++)o.push({x:_i(i,a),y:_i(i,a+1)}),a+=2;p.refinementAt=o}p.numberOfSymbolInstances=we(i,a),a+=4,r=[p,s.referredTo,i,a,n];break;case 16:let g={},w=i[a++];g.mmr=!!(w&1),g.template=w>>1&3,g.patternWidth=i[a++],g.patternHeight=i[a++],g.maxPatternIndex=we(i,a),a+=4,r=[g,s.number,i,a,n];break;case 22:case 23:let b={};b.info=Po(i,a),a+=Sc;let j=i[a++];b.mmr=!!(j&1),b.template=j>>1&3,b.enableSkip=!!(j&8),b.combinationOperator=j>>4&7,b.defaultPixelValue=j>>7&1,b.gridWidth=we(i,a),a+=4,b.gridHeight=we(i,a),a+=4,b.gridOffsetX=we(i,a)&4294967295,a+=4,b.gridOffsetY=we(i,a)&4294967295,a+=4,b.gridVectorX=te(i,a),a+=2,b.gridVectorY=te(i,a),a+=2,r=[b,s.referredTo,i,a,n];break;case 38:case 39:let v={};v.info=Po(i,a),a+=Sc;let q=i[a++];if(v.mmr=!!(q&1),v.template=q>>1&3,v.prediction=!!(q&8),!v.mmr){for(c=v.template===0?4:1,o=[],l=0;l<c;l++)o.push({x:_i(i,a),y:_i(i,a+1)}),a+=2;v.at=o}r=[v,i,a,n];break;case 48:let x={width:we(i,a),height:we(i,a+4),resolutionX:we(i,a+8),resolutionY:we(i,a+12)};x.height===4294967295&&delete x.height;let k=i[a+16];te(i,a+17),x.lossless=!!(k&1),x.refinement=!!(k&2),x.defaultPixelValue=k>>2&1,x.combinationOperator=k>>3&3,x.requiresBuffer=!!(k&32),x.combinationOperatorOverride=!!(k&64),r=[x];break;case 49:break;case 50:break;case 51:break;case 53:r=[s.number,i,a,n];break;case 62:break;default:throw new Be(`segment type ${s.typeName}(${s.type}) is not implemented`)}let h="on"+s.typeName;h in e&&e[h].apply(e,r)}function lg(t,e){for(let s=0,i=t.length;s<i;s++)og(t[s],e)}function cg(t){let e=new hg;for(let s=0,i=t.length;s<i;s++){let n=t[s],a=rg({},n.data,n.start,n.end);lg(a,e)}return e.buffer}function fg(t,e,s){let i=t[e],n=we(t,e+1)&4294967295,a=we(t,e+5)&4294967295,r=new Mr(t,e+9,s),o=(i>>1&7)+1,l=(i>>4&7)+1,c=[],h,f,u=n;do h=r.readBits(o),f=r.readBits(l),c.push(new An([u,h,f,0])),u+=1<<f;while(u<a);return h=r.readBits(o),c.push(new An([n-1,h,32,0,"lower"])),h=r.readBits(o),c.push(new An([a,h,32,0])),i&1&&(h=r.readBits(o),c.push(new An([h,0]))),new Zo(c,!1)}function Sn(t){let e=dp[t];if(e)return e;let s;switch(t){case 1:s=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:s=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:s=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:s=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:s=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:s=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:s=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:s=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:s=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:s=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:s=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:s=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:s=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:s=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:s=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new Be(`standard table B.${t} does not exist`)}for(let i=0,n=s.length;i<n;i++)s[i]=new An(s[i]);return e=new Zo(s,!0),dp[t]=e,e}function ta(t,e,s){let i=0;for(let n=0,a=e.length;n<a;n++){let r=s[e[n]];if(r){if(t===i)return r;i++}}throw new Be("can't find custom Huffman table")}function ug(t,e,s,i,n){let a=[];for(let u=0;u<=34;u++){let p=n.readBits(4);a.push(new An([u,p,0,0]))}let r=new Zo(a,!1);a.length=0;for(let u=0;u<i;){let p=r.decode(n);if(p>=32){let m,g,w;switch(p){case 32:if(u===0)throw new Be("no previous value in symbol ID table");g=n.readBits(2)+3,m=a[u-1].prefixLength;break;case 33:g=n.readBits(3)+3,m=0;break;case 34:g=n.readBits(7)+11,m=0;break;default:throw new Be("invalid code length in symbol ID table")}for(w=0;w<g;w++)a.push(new An([u,m,0,0])),u++}else a.push(new An([u,p,0,0])),u++}n.byteAlign();let o=new Zo(a,!1),l=0,c,h,f;switch(t.huffmanFS){case 0:case 1:c=Sn(t.huffmanFS+6);break;case 3:c=ta(l,e,s),l++;break;default:throw new Be("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:h=Sn(t.huffmanDS+8);break;case 3:h=ta(l,e,s),l++;break;default:throw new Be("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:f=Sn(t.huffmanDT+11);break;case 3:f=ta(l,e,s),l++;break;default:throw new Be("invalid Huffman DT selector")}if(t.refinement)throw new Be("refinement with Huffman is not supported");return{symbolIDTable:o,tableFirstS:c,tableDeltaS:h,tableDeltaT:f}}function dg(t,e,s){let i=0,n,a;switch(t.huffmanDHSelector){case 0:case 1:n=Sn(t.huffmanDHSelector+4);break;case 3:n=ta(i,e,s),i++;break;default:throw new Be("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:a=Sn(t.huffmanDWSelector+2);break;case 3:a=ta(i,e,s),i++;break;default:throw new Be("invalid Huffman DW selector")}let r,o;return t.bitmapSizeSelector?(r=ta(i,e,s),i++):r=Sn(1),t.aggregationInstancesSelector?o=ta(i,e,s):o=Sn(1),{tableDeltaHeight:n,tableDeltaWidth:a,tableBitmapSize:r,tableAggregateInstances:o}}function pg(t,e,s){let i=[];for(let n=0;n<s;n++){let a=new Uint8Array(e);i.push(a);for(let r=0;r<e;r++)a[r]=t.readBit();t.byteAlign()}return i}function Gh(t,e,s,i){let n={K:-1,Columns:e,Rows:s,BlackIs1:!0,EndOfBlock:i},a=new _1(t,n),r=[],o,l=!1;for(let c=0;c<s;c++){let h=new Uint8Array(e);r.push(h);let f=-1;for(let u=0;u<e;u++)f<0&&(o=a.readNextChar(),o===-1&&(o=0,l=!0),f=7),h[u]=o>>f&1,f--}if(i&&!l)for(let c=0;c<5&&a.readNextChar()!==-1;c++);return r}function bg(t,e){let s=0,i,n,a=16;for(;a>0&&!t[a-1];)a--;let r=[{children:[],index:0}],o=r[0],l;for(i=0;i<a;i++){for(n=0;n<t[i];n++){for(o=r.pop(),o.children[o.index]=e[s];o.index>0;)o=r.pop();for(o.index++,r.push(o);r.length<=i;)r.push(l={children:[],index:0}),o.children[o.index]=l.children,o=l;s++}i+1<a&&(r.push(l={children:[],index:0}),o.children[o.index]=l.children,o=l)}return r[0].children}function nh(t,e,s){return 64*((t.blocksPerLine+1)*e+s)}function wg(t,e,s,i,n,a,r,o,l,c=!1){let{mcusPerLine:h,progressive:f}=s,u=e,p=0,m=0;function g(){if(m>0)return m--,p>>m&1;if(p=t[e++],p===255){let _=t[e++];if(_){if(_===220&&c){e+=2;let U=te(t,e);if(e+=2,U>0&&U!==s.scanLines)throw new ih("Found DNL marker (0xFFDC) while parsing scan data",U)}else if(_===217){if(c){let U=D*(s.precision===8?8:0);if(U>0&&Math.round(s.scanLines/U)>=5)throw new ih("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",U)}throw new z1("Found EOI marker (0xFFD9) while parsing scan data")}throw new pi(`unexpected marker ${(p<<8|_).toString(16)}`)}}return m=7,p>>>7}d(g,"readBit");function w(_){let U=_;for(;;){switch(U=U[g()],typeof U){case"number":return U;case"object":continue}throw new pi("invalid huffman sequence")}}d(w,"decodeHuffman");function b(_){let U=0;for(;_>0;)U=U<<1|g(),_--;return U}d(b,"receive");function j(_){if(_===1)return g()===1?1:-1;let U=b(_);return U>=1<<_-1?U:U+(-1<<_)+1}d(j,"receiveAndExtend");function v(_,U){let ot=w(_.huffmanTableDC),ft=ot===0?0:j(ot);_.blockData[U]=_.pred+=ft;let J=1;for(;J<64;){let Ct=w(_.huffmanTableAC),It=Ct&15,Et=Ct>>4;if(It===0){if(Et<15)break;J+=16;continue}J+=Et;let Ft=Do[J];_.blockData[U+Ft]=j(It),J++}}d(v,"decodeBaseline");function q(_,U){let ot=w(_.huffmanTableDC),ft=ot===0?0:j(ot)<<l;_.blockData[U]=_.pred+=ft}d(q,"decodeDCFirst");function x(_,U){_.blockData[U]|=g()<<l}d(x,"decodeDCSuccessive");let k=0;function A(_,U){if(k>0){k--;return}let ot=a,ft=r;for(;ot<=ft;){let J=w(_.huffmanTableAC),Ct=J&15,It=J>>4;if(Ct===0){if(It<15){k=b(It)+(1<<It)-1;break}ot+=16;continue}ot+=It;let Et=Do[ot];_.blockData[U+Et]=j(Ct)*(1<<l),ot++}}d(A,"decodeACFirst");let S=0,I;function E(_,U){let ot=a,ft=r,J=0,Ct,It;for(;ot<=ft;){let Et=U+Do[ot],Ft=_.blockData[Et]<0?-1:1;switch(S){case 0:if(It=w(_.huffmanTableAC),Ct=It&15,J=It>>4,Ct===0)J<15?(k=b(J)+(1<<J),S=4):(J=16,S=1);else{if(Ct!==1)throw new pi("invalid ACn encoding");I=j(Ct),S=J?2:3}continue;case 1:case 2:_.blockData[Et]?_.blockData[Et]+=Ft*(g()<<l):(J--,J===0&&(S=S===2?3:0));break;case 3:_.blockData[Et]?_.blockData[Et]+=Ft*(g()<<l):(_.blockData[Et]=I<<l,S=0);break;case 4:_.blockData[Et]&&(_.blockData[Et]+=Ft*(g()<<l));break}ot++}S===4&&(k--,k===0&&(S=0))}d(E,"decodeACSuccessive");let D=0;function O(_,U,ot,ft,J){let Ct=ot/h|0,It=ot%h;D=Ct*_.v+ft;let Et=It*_.h+J,Ft=nh(_,D,Et);U(_,Ft)}d(O,"decodeMcu");function $(_,U,ot){D=ot/_.blocksPerLine|0;let ft=ot%_.blocksPerLine,J=nh(_,D,ft);U(_,J)}d($,"decodeBlock");let it=i.length,W,H,L,rt,yt,X;f?a===0?X=o===0?q:x:X=o===0?A:E:X=v;let St=0,qt,R=it===1?i[0].blocksPerLine*i[0].blocksPerColumn:h*s.mcusPerColumn,V,N;for(;St<=R;){let _=n?Math.min(R-St,n):R;if(_>0){for(H=0;H<it;H++)i[H].pred=0;if(k=0,it===1)for(W=i[0],yt=0;yt<_;yt++)$(W,X,St),St++;else for(yt=0;yt<_;yt++){for(H=0;H<it;H++)for(W=i[H],V=W.h,N=W.v,L=0;L<N;L++)for(rt=0;rt<V;rt++)O(W,X,St,L,rt);St++}}if(m=0,qt=Al(t,e),!qt)break;if(qt.invalid){let U=_>0?"unexpected":"excessive";T(`decodeScan - ${U} MCU data, current marker is: ${qt.invalid}`),e=qt.offset}if(qt.marker>=65488&&qt.marker<=65495)e+=2;else break}return e-u}function yg(t,e,s){let{quantizationTable:i,blockData:n}=t,a,r,o,l,c,h,f,u,p,m,g,w,b,j,v,q,x;if(!i)throw new pi("missing required Quantization Table.");for(let k=0;k<64;k+=8){if(p=n[e+k],m=n[e+k+1],g=n[e+k+2],w=n[e+k+3],b=n[e+k+4],j=n[e+k+5],v=n[e+k+6],q=n[e+k+7],p*=i[k],(m|g|w|b|j|v|q)===0){x=Qa*p+512>>10,s[k]=x,s[k+1]=x,s[k+2]=x,s[k+3]=x,s[k+4]=x,s[k+5]=x,s[k+6]=x,s[k+7]=x;continue}m*=i[k+1],g*=i[k+2],w*=i[k+3],b*=i[k+4],j*=i[k+5],v*=i[k+6],q*=i[k+7],a=Qa*p+128>>8,r=Qa*b+128>>8,o=g,l=v,c=dc*(m-q)+128>>8,u=dc*(m+q)+128>>8,h=w<<4,f=j<<4,a=a+r+1>>1,r=a-r,x=o*uc+l*fc+128>>8,o=o*fc-l*uc+128>>8,l=x,c=c+f+1>>1,f=c-f,u=u+h+1>>1,h=u-h,a=a+l+1>>1,l=a-l,r=r+o+1>>1,o=r-o,x=c*hc+u*cc+2048>>12,c=c*cc-u*hc+2048>>12,u=x,x=h*lc+f*oc+2048>>12,h=h*oc-f*lc+2048>>12,f=x,s[k]=a+u,s[k+7]=a-u,s[k+1]=r+f,s[k+6]=r-f,s[k+2]=o+h,s[k+5]=o-h,s[k+3]=l+c,s[k+4]=l-c}for(let k=0;k<8;++k){if(p=s[k],m=s[k+8],g=s[k+16],w=s[k+24],b=s[k+32],j=s[k+40],v=s[k+48],q=s[k+56],(m|g|w|b|j|v|q)===0){x=Qa*p+8192>>14,x<-2040?x=0:x>=2024?x=255:x=x+2056>>4,n[e+k]=x,n[e+k+8]=x,n[e+k+16]=x,n[e+k+24]=x,n[e+k+32]=x,n[e+k+40]=x,n[e+k+48]=x,n[e+k+56]=x;continue}a=Qa*p+2048>>12,r=Qa*b+2048>>12,o=g,l=v,c=dc*(m-q)+2048>>12,u=dc*(m+q)+2048>>12,h=w,f=j,a=(a+r+1>>1)+4112,r=a-r,x=o*uc+l*fc+2048>>12,o=o*fc-l*uc+2048>>12,l=x,c=c+f+1>>1,f=c-f,u=u+h+1>>1,h=u-h,a=a+l+1>>1,l=a-l,r=r+o+1>>1,o=r-o,x=c*hc+u*cc+2048>>12,c=c*cc-u*hc+2048>>12,u=x,x=h*lc+f*oc+2048>>12,h=h*oc-f*lc+2048>>12,f=x,p=a+u,q=a-u,m=r+f,v=r-f,g=o+h,j=o-h,w=l+c,b=l-c,p<16?p=0:p>=4080?p=255:p>>=4,m<16?m=0:m>=4080?m=255:m>>=4,g<16?g=0:g>=4080?g=255:g>>=4,w<16?w=0:w>=4080?w=255:w>>=4,b<16?b=0:b>=4080?b=255:b>>=4,j<16?j=0:j>=4080?j=255:j>>=4,v<16?v=0:v>=4080?v=255:v>>=4,q<16?q=0:q>=4080?q=255:q>>=4,n[e+k]=p,n[e+k+8]=m,n[e+k+16]=g,n[e+k+24]=w,n[e+k+32]=b,n[e+k+40]=j,n[e+k+48]=v,n[e+k+56]=q}}function jg(t,e){let{blocksPerLine:s,blocksPerColumn:i}=e,n=new Int16Array(64);for(let a=0;a<i;a++)for(let r=0;r<s;r++){let o=nh(e,a,r);yg(e,o,n)}return e.blockData}function Al(t,e,s=e){let i=t.length-1,n=s<e?s:e;if(e>=i)return null;let a=te(t,e);if(a>=65472&&a<=65534)return{invalid:null,marker:a,offset:e};let r=te(t,n);for(;!(r>=65472&&r<=65534);){if(++n>=i)return null;r=te(t,n)}return{invalid:a.toString(16),marker:r,offset:n}}function vg(t){let e=Math.ceil(t.samplesPerLine/8/t.maxH),s=Math.ceil(t.scanLines/8/t.maxV);for(let i of t.components){let n=Math.ceil(Math.ceil(t.samplesPerLine/8)*i.h/t.maxH),a=Math.ceil(Math.ceil(t.scanLines/8)*i.v/t.maxV),r=e*i.h,o=64*(s*i.v)*(r+1);i.blockData=new Int16Array(o),i.blocksPerLine=n,i.blocksPerColumn=a}t.mcusPerLine=e,t.mcusPerColumn=s}function cu(t,e){let s=te(t,e);e+=2;let i=e+s-2,n=Al(t,i,e);n?.invalid&&(T("readDataBlock - incorrect length, current marker is: "+n.invalid),i=n.offset);let a=t.subarray(e,i);return{appData:a,oldOffset:e,newOffset:e+a.length}}function kg(t,e){let s=te(t,e);e+=2;let i=e+s-2,n=Al(t,i,e);return n?.invalid?n.offset:i}function nr(t,e,s,i,n){let a=t;for(let r=0,o=e.length-1;r<o;r++){let l=e[r];a=a[l]||=[]}a[e.at(-1)]={checkFn:s,iterateFn:i,processFn:n}}function Ss(t,e){let s=0;for(let i=0;i<=e;i++)s=s<<8|t[i];return s>>>0}function vo(t,e){return e===1?String.fromCharCode(t[0],t[1]):e===3?String.fromCharCode(t[0],t[1],t[2],t[3]):String.fromCharCode(...t.subarray(0,e+1))}function Ds(t,e,s){let i=0;for(let n=s;n>=0;n--)i+=t[n]+e[n],t[n]=i&255,i>>=8}function Vn(t,e){let s=1;for(let i=e;i>=0&&s>0;i--)s+=t[i],t[i]=s&255,s>>=8}function Bg(t){let e=[],s=t.length,i=0;for(;i<s-1;)e.push(t[i++]<<8|t[i++]);return i<s&&e.push(t[i]),s+"_"+String.fromCharCode.apply(null,e)}function Cc(t){return t>=48&&t<=57?t&15:t>=65&&t<=70||t>=97&&t<=102?(t&15)+9:-1}function Dn(t){let e=0;for(let s=0;s<t.length;s++)e=e<<8|t.charCodeAt(s);return e>>>0}function ha(t){if(typeof t!="string")throw new Q("Malformed CMap: expected string.")}function G1(t){if(!Number.isInteger(t))throw new Q("Malformed CMap: expected int.")}function Dg(t,e){for(;;){let s=e.getObj();if(s===bs)break;if(os(s,"endbfchar"))return;ha(s);let i=Dn(s);s=e.getObj(),ha(s);let n=s;t.mapOne(i,n)}}function Rg(t,e){for(;;){let s=e.getObj();if(s===bs)break;if(os(s,"endbfrange"))return;ha(s);let i=Dn(s);s=e.getObj(),ha(s);let n=Dn(s);if(s=e.getObj(),Number.isInteger(s)||typeof s=="string"){let a=Number.isInteger(s)?String.fromCharCode(s):s;t.mapBfRange(i,n,a)}else if(os(s,"[")){s=e.getObj();let a=[];for(;!os(s,"]")&&s!==bs;)a.push(s),s=e.getObj();t.mapBfRangeToArray(i,n,a)}else break}throw new Q("Invalid bf range.")}function Hg(t,e){for(;;){let s=e.getObj();if(s===bs)break;if(os(s,"endcidchar"))return;ha(s);let i=Dn(s);s=e.getObj(),G1(s);let n=s;t.mapOne(i,n)}}function _g(t,e){for(;;){let s=e.getObj();if(s===bs)break;if(os(s,"endcidrange"))return;ha(s);let i=Dn(s);s=e.getObj(),ha(s);let n=Dn(s);s=e.getObj(),G1(s);let a=s;t.mapCidRange(i,n,a)}}function Og(t,e){for(;;){let s=e.getObj();if(s===bs)break;if(os(s,"endcodespacerange"))return;if(typeof s!="string")break;let i=Dn(s);if(s=e.getObj(),typeof s!="string")break;let n=Dn(s);t.addCodespaceRange(s.length,i,n)}throw new Q("Invalid codespace range.")}function Ng(t,e){let s=e.getObj();Number.isInteger(s)&&(t.vertical=!!s)}function Lg(t,e){let s=e.getObj();s instanceof tt&&(t.name=s.name)}async function $1(t,e,s,i){let n,a;t:for(;;)try{let r=e.getObj();if(r===bs)break;if(r instanceof tt)r.name==="WMode"?Ng(t,e):r.name==="CMapName"&&Lg(t,e),n=r;else if(r instanceof Je)switch(r.cmd){case"endcmap":break t;case"usecmap":n instanceof tt&&(a=n.name);break;case"begincodespacerange":Og(t,e);break;case"beginbfchar":Dg(t,e);break;case"begincidchar":Hg(t,e);break;case"beginbfrange":Rg(t,e);break;case"begincidrange":_g(t,e);break}}catch(r){if(r instanceof Ce)throw r;T("Invalid cMap data: "+r);continue}return!i&&a&&(i=a),i?V1(t,s,i):t}async function V1(t,e,s){if(t.useCMap=await ah(s,e),t.numCodespaceRanges===0){let i=t.useCMap.codespaceRanges;for(let n=0;n<i.length;n++)t.codespaceRanges[n]=i[n].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}return t.useCMap.forEach(function(i,n){t.contains(i)||t.mapOne(i,n)}),t}async function ah(t,e){if(t==="Identity-H")return new xr(!1,2);if(t==="Identity-V")return new xr(!0,2);if(!by.includes(t))throw Error("Unknown CMap name: "+t);if(!e)throw Error("Built-in CMap parameters are not provided.");let{cMapData:s,isCompressed:i}=await e(t),n=new $h(!0);if(i)return new Ag().process(s,n,(r)=>V1(n,e,r));let a=new Ci(new je(s));return $1(n,a,e,null)}function zg(t){let e=new TextEncoder,s={},i=0;for(let l of mp.strings){let c=e.encode(t[l]);s[l]=c,i+=4+c.length}let n=new ArrayBuffer(i),a=new Uint8Array(n),r=new DataView(n),o=0;for(let l of mp.strings){let c=s[l],h=c.length;r.setUint32(o,h),a.set(c,o+4),o+=4+h}return Fe(o===n.byteLength,"compileCssFontInfo: Buffer overflow"),n}function Ug(t){let e=new TextEncoder,s={},i=0;for(let f of gp.strings){let u=e.encode(t[f]);s[f]=u,i+=4+u.length}i+=4;let n,a,r=1+i;t.style&&(n=e.encode(t.style.style),a=e.encode(t.style.weight),r+=4+n.length+4+a.length);let o=new ArrayBuffer(r),l=new Uint8Array(o),c=new DataView(o),h=0;c.setUint8(h++,t.guessFallback?1:0),c.setUint32(h,0),h+=4,i=0;for(let f of gp.strings){let u=s[f],p=u.length;i+=4+p,c.setUint32(h,p),l.set(u,h+4),h+=4+p}return c.setUint32(h-i-4,i),t.style&&(c.setUint32(h,n.length),l.set(n,h+4),h+=4+n.length,c.setUint32(h,a.length),l.set(a,h+4),h+=4+a.length),Fe(h<=o.byteLength,"compileSystemFontInfo: Buffer overflow"),o.transferToFixedLength(h)}function Gg(t){let e=t.systemFontInfo?Ug(t.systemFontInfo):null,s=t.cssFontInfo?zg(t.cssFontInfo):null,i=new TextEncoder,n={},a=0;for(let m of Ys.strings)n[m]=i.encode(t[m]),a+=4+n[m].length;let r=Ys.OFFSET_STRINGS+4+a+4+(e?.byteLength??0)+4+(s?.byteLength??0)+4+(t.data?.length??0),o=new ArrayBuffer(r),l=new Uint8Array(o),c=new DataView(o),h=0,f=Ys.bools.length,u=0,p=0;for(let m=0;m<f;m++){let g=t[Ys.bools[m]];u|=(g===void 0?0:g?2:1)<<p,p+=2,(p===8||m===f-1)&&(c.setUint8(h++,u),u=0,p=0)}Fe(h===Ys.OFFSET_NUMBERS,"compileFontInfo: Boolean properties offset mismatch");for(let m of Ys.numbers)c.setFloat64(h,t[m]),h+=8;if(Fe(h===Ys.OFFSET_BBOX,"compileFontInfo: Number properties offset mismatch"),t.bbox){c.setUint8(h++,4);for(let m of t.bbox)c.setInt16(h,m,!0),h+=2}else c.setUint8(h++,0),h+=8;if(Fe(h===Ys.OFFSET_FONT_MATRIX,"compileFontInfo: BBox properties offset mismatch"),t.fontMatrix){c.setUint8(h++,6);for(let m of t.fontMatrix)c.setFloat64(h,m,!0),h+=8}else c.setUint8(h++,0),h+=48;if(Fe(h===Ys.OFFSET_DEFAULT_VMETRICS,"compileFontInfo: FontMatrix properties offset mismatch"),t.defaultVMetrics){c.setUint8(h++,3);for(let m of t.defaultVMetrics)c.setInt16(h,m,!0),h+=2}else c.setUint8(h++,0),h+=6;Fe(h===Ys.OFFSET_STRINGS,"compileFontInfo: DefaultVMetrics properties offset mismatch"),c.setUint32(Ys.OFFSET_STRINGS,0),h+=4;for(let m of Ys.strings){let g=n[m],w=g.length;c.setUint32(h,w),l.set(g,h+4),h+=4+w}if(c.setUint32(Ys.OFFSET_STRINGS,h-Ys.OFFSET_STRINGS-4),!e)c.setUint32(h,0),h+=4;else{let m=e.byteLength;c.setUint32(h,m),Fe(h+4+m<=o.byteLength,"compileFontInfo: Buffer overflow at systemFontInfo"),l.set(new Uint8Array(e),h+4),h+=4+m}if(!s)c.setUint32(h,0),h+=4;else{let m=s.byteLength;c.setUint32(h,m),Fe(h+4+m<=o.byteLength,"compileFontInfo: Buffer overflow at cssFontInfo"),l.set(new Uint8Array(s),h+4),h+=4+m}return t.data===void 0?(c.setUint32(h,0),h+=4):(c.setUint32(h,t.data.length),l.set(t.data,h+4),h+=4+t.data.length),Fe(h<=o.byteLength,"compileFontInfo: Buffer overflow"),o.transferToFixedLength(h)}function $g(t){let e,s=null,i=[],n=[],a=[],r=[],o=null,l=null;switch(t[0]){case"RadialAxial":e=t[1]==="axial"?1:2,s=t[2],a=t[3],e===1?i.push(...t[4],...t[5]):i.push(t[4][0],t[4][1],t[6],t[5][0],t[5][1],t[7]);break;case"Mesh":e=3,o=t[1],i=t[2],n=t[3],r=t[4]||[],s=t[6],l=t[7];break;default:throw Error(`Unsupported pattern type: ${t[0]}`)}let c=Math.floor(i.length/2),h=Math.floor(n.length/3),f=a.length,u=r.length,p=0;for(let v of r)p+=1,p=Math.ceil(p/4)*4,p+=4+v.coords.length*4,p+=4+v.colors.length*4,v.verticesPerRow!==void 0&&(p+=4);let m=20+c*8+h*3+f*8+(s?16:0)+(l?3:0)+p,g=new ArrayBuffer(m),w=new DataView(g),b=new Uint8Array(g);w.setUint8(Un.KIND,e),w.setUint8(Un.HAS_BBOX,s?1:0),w.setUint8(Un.HAS_BACKGROUND,l?1:0),w.setUint8(Un.SHADING_TYPE,o),w.setUint32(Un.N_COORD,c,!0),w.setUint32(Un.N_COLOR,h,!0),w.setUint32(Un.N_STOP,f,!0),w.setUint32(Un.N_FIGURES,u,!0);let j=20;new Float32Array(g,j,c*2).set(i),j+=c*8,b.set(n,j),j+=h*3;for(let[v,q]of a)w.setFloat32(j,v,!0),j+=4,w.setUint32(j,parseInt(q.slice(1),16),!0),j+=4;if(s)for(let v of s)w.setFloat32(j,v,!0),j+=4;l&&(b.set(l,j),j+=3);for(let v=0;v<r.length;v++){let q=r[v];w.setUint8(j,q.type),j+=1,j=Math.ceil(j/4)*4,w.setUint32(j,q.coords.length,!0),j+=4,new Int32Array(g,j,q.coords.length).set(q.coords),j+=q.coords.length*4,w.setUint32(j,q.colors.length,!0),j+=4,new Int32Array(g,j,q.colors.length).set(q.colors),j+=q.colors.length*4,q.verticesPerRow!==void 0&&(w.setUint32(j,q.verticesPerRow,!0),j+=4)}return g}function Vg(t){return t.slice().buffer}function Br(t){switch(t){case"WinAnsiEncoding":return tl;case"StandardEncoding":return En;case"MacRomanEncoding":return W1;case"SymbolSetEncoding":return K1;case"ZapfDingbatsEncoding":return Y1;case"ExpertEncoding":return Wg;case"MacExpertEncoding":return wy;default:return null}}function Kg(t){return t>=65520&&t<=65535?0:t>=62976&&t<=63743?jy()[t]||t:t===173?45:t}function Oa(t,e){let s=e[t];if(s!==void 0)return s;if(!t)return-1;if(t[0]==="u"){let i=t.length,n;if(i===7&&t[1]==="n"&&t[2]==="i")n=t.substring(3);else if(i>=5&&i<=7)n=t.substring(1);else return-1;if(n===n.toUpperCase()&&(s=parseInt(n,16),s>=0))return s}return-1}function Yg(t,e=-1){if(e!==-1){let s=Nf[e];for(let i=0,n=s.length;i<n;i+=2)if(t>=s[i]&&t<=s[i+1])return e}for(let s=0,i=Nf.length;s<i;s++){let n=Nf[s];for(let a=0,r=n.length;a<r;a+=2)if(t>=n[a]&&t<=n[a+1])return s}return-1}function Xg(t){let e=pu.get(t);if(e)return e;let s=t.match(vy),i={isWhitespace:!!s?.[1],isZeroWidthDiacritic:!!s?.[2],isInvisibleFormatMark:!!s?.[3]};return pu.set(t,i),i}function Qg(){pu.clear()}function X1(t,e){if(e[t]!==void 0)return t;let s=Oa(t,e);if(s!==-1){for(let i in e)if(e[i]===s)return i}return Wt("Unable to recover a standard glyph name for: "+t),t}function Q1(t,e,s){let i=Object.create(null),n,a,r,o=!!(t.flags&Ni.Symbolic);if(t.isInternalFont)for(r=e,a=0;a<r.length;a++)n=s.indexOf(r[a]),i[a]=n>=0?n:0;else if(t.baseEncodingName)for(r=Br(t.baseEncodingName),a=0;a<r.length;a++)n=s.indexOf(r[a]),i[a]=n>=0?n:0;else if(o)for(a in e)i[a]=e[a];else for(r=En,a=0;a<r.length;a++)n=s.indexOf(r[a]),i[a]=n>=0?n:0;let l=t.differences,c;if(l)for(a in l){let h=l[a];if(n=s.indexOf(h),n===-1){c||(c=an());let f=X1(h,c);f!==h&&(n=s.indexOf(f))}i[a]=n>=0?n:0}return i}function Rn(t){return t.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}function Jg({data:t,width:e,height:s}){if(e>wp||s>wp)return null;let i=1000,n=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),a=e+1,r=new Uint8Array(a*(s+1)),o,l,c,h=e+7&-8,f=new Uint8Array(h*s),u=0;for(let k of t){let A=128;for(;A>0;)f[u++]=k&A?0:255,A>>=1}let p=0;for(u=0,f[u]!==0&&(r[0]=1,++p),l=1;l<e;l++)f[u]!==f[u+1]&&(r[l]=f[u]?2:1,++p),u++;for(f[u]!==0&&(r[l]=2,++p),o=1;o<s;o++){u=o*h,c=o*a,f[u-h]!==f[u]&&(r[c]=f[u]?1:8,++p);let k=(f[u]?4:0)+(f[u-h]?8:0);for(l=1;l<e;l++)k=(k>>2)+(f[u+1]?4:0)+(f[u-h+1]?8:0),n[k]&&(r[c+l]=n[k],++p),u++;if(f[u-h]!==f[u]&&(r[c+l]=f[u]?2:4,++p),p>i)return null}for(u=h*(s-1),c=o*a,f[u]!==0&&(r[c]=8,++p),l=1;l<e;l++)f[u]!==f[u+1]&&(r[c+l]=f[u]?4:8,++p),u++;if(f[u]!==0&&(r[c+l]=4,++p),p>i)return null;let m=new Int32Array([0,a,-1,0,-a,0,0,0,1]),g=[],{a:w,b,c:j,d:v,e:q,f:x}=new DOMMatrix().scaleSelf(1/e,-1/s).translateSelf(0,-s);for(o=0;p&&o<=s;o++){let k=o*a,A=k+e;for(;k<A&&!r[k];)k++;if(k===A)continue;let S=k%a,I=o;g.push(Te.moveTo,w*S+j*I+q,b*S+v*I+x);let E=k,D=r[k];do{let O=m[D];do k+=O;while(!r[k]);let $=r[k];$!==5&&$!==10?(D=$,r[k]=0):(D=$&51*D>>4,r[k]&=D>>2|D<<2),S=k%a,I=k/a|0,g.push(Te.lineTo,w*S+j*I+q,b*S+v*I+x),r[k]||--p}while(E!==k);--o}return[C.rawFillPath,[new Float32Array(g)],new Float32Array([0,0,e,s])]}function wu(t){let e=Rn(t);return il()[e]}function yu(t){let e=Rn(t);return!!(il()[e]||gu()[e]||ed()[e]||bu()[e])}function Wn(t,e){return nn(t,e)/16384}function rh(t){let e=t.length,s=32768;return e<1240?s=107:e<33900&&(s=1131),s}function eb(t,e,s){let i=te(t,e+2)===1?we(t,e+8):we(t,e+16),n=te(t,e+i),a,r,o;if(n===4){te(t,e+i+2);let l=te(t,e+i+6)>>1;for(r=e+i+14,a=[],o=0;o<l;o++,r+=2)a[o]={end:te(t,r)};for(r+=2,o=0;o<l;o++,r+=2)a[o].start=te(t,r);for(o=0;o<l;o++,r+=2)a[o].idDelta=te(t,r);for(o=0;o<l;o++,r+=2){let c=te(t,r);if(c!==0){a[o].ids=[];for(let h=0,f=a[o].end-a[o].start+1;h<f;h++)a[o].ids[h]=te(t,r+c),c+=2}}return a}else if(n===12){let l=we(t,e+i+12);for(r=e+i+16,a=[],o=0;o<l;o++)e=we(t,r),a.push({start:e,end:we(t,r+4),idDelta:we(t,r+8)-e}),r+=12;return a}throw new Q(`unsupported cmap: ${n}`)}function sb(t,e,s,i){let n={},a=new Vh(new je(t,e,s-e),n,i).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 ib(t,e,s){let i,n;s?(i=4,n=we):(i=2,n=d((o,l)=>2*te(o,l),"itemDecode"));let a=[],r=n(e,0);for(let o=i;o<e.length;o+=i){let l=n(e,o);a.push(t.subarray(r,l)),r=l}return a}function nl(t,e){let s=e.codePointAt(0),i=0,n=0,a=t.length-1;for(;n<a;){let r=n+a+1>>1;s<t[r].start?a=r-1:n=r}return t[n].start<=s&&s<=t[n].end&&(i=t[n].idDelta+(t[n].ids?t[n].ids[s-t[n].start]:s)&65535),{charCode:s,glyphId:i}}function sd(t,e,s){function i(u,p){c&&e.add(Te.lineTo,c),c=[u,p],e.add(Te.moveTo,[u,p])}d(i,"moveTo");function n(u,p){e.add(Te.lineTo,[u,p])}d(n,"lineTo");function a(u,p,m,g){e.add(Te.quadraticCurveTo,[u,p,m,g])}d(a,"quadraticCurveTo");let r=0,o=nn(t,r),l,c=null,h=0,f=0;if(r+=10,o<0)do{l=te(t,r);let u=te(t,r+2);r+=4;let p,m;l&1?(l&2?(p=nn(t,r),m=nn(t,r+2)):(p=te(t,r),m=te(t,r+2)),r+=4):l&2?(p=_i(t,r++),m=_i(t,r++)):(p=t[r++],m=t[r++]),l&2?(h=p,f=m):(h=0,f=0);let g=1,w=1,b=0,j=0;l&8?(g=w=Wn(t,r),r+=2):l&64?(g=Wn(t,r),w=Wn(t,r+2),r+=4):l&128&&(g=Wn(t,r),b=Wn(t,r+2),j=Wn(t,r+4),w=Wn(t,r+6),r+=8);let v=s.glyphs[u];v&&(e.save(),e.transform([g,b,j,w,h,f]),sd(v,e,s),e.restore())}while(l&32);else{let u=[],p,m;for(p=0;p<o;p++)u.push(te(t,r)),r+=2;let g=te(t,r);r+=2+g;let w=u.at(-1)+1,b=[];for(;b.length<w;){l=t[r++];let v=1;for(l&8&&(v+=t[r++]);v-- >0;)b.push({flags:l})}for(p=0;p<w;p++){switch(b[p].flags&18){case 0:h+=nn(t,r),r+=2;break;case 2:h-=t[r++];break;case 18:h+=t[r++];break}b[p].x=h}for(p=0;p<w;p++){switch(b[p].flags&36){case 0:f+=nn(t,r),r+=2;break;case 4:f-=t[r++];break;case 36:f+=t[r++];break}b[p].y=f}let j=0;for(r=0;r<o;r++){let v=u[r],q=b.slice(j,v+1);if(q[0].flags&1)q.push(q[0]);else if(q.at(-1).flags&1)q.unshift(q.at(-1));else{let x={flags:1,x:(q[0].x+q.at(-1).x)/2,y:(q[0].y+q.at(-1).y)/2};q.unshift(x),q.push(x)}for(i(q[0].x,q[0].y),p=1,m=q.length;p<m;p++)q[p].flags&1?n(q[p].x,q[p].y):q[p+1].flags&1?(a(q[p].x,q[p].y,q[p+1].x,q[p+1].y),p++):a(q[p].x,q[p].y,(q[p].x+q[p+1].x)/2,(q[p].y+q[p+1].y)/2);j=v+1}}}function oh(t,e,s,i){function n(p,m){f&&e.add(Te.lineTo,f),f=[p,m],e.add(Te.moveTo,[p,m])}d(n,"moveTo");function a(p,m){e.add(Te.lineTo,[p,m])}d(a,"lineTo");function r(p,m,g,w,b,j){e.add(Te.curveTo,[p,m,g,w,b,j])}d(r,"bezierCurveTo");let o=[],l=0,c=0,h=0,f=null;function u(p){let m=0;for(;m<p.length;){let g=!1,w=p[m++],b,j,v,q,x,k,A,S,I;switch(w){case 1:h+=o.length>>1,g=!0;break;case 3:h+=o.length>>1,g=!0;break;case 4:c+=o.pop(),n(l,c),g=!0;break;case 5:for(;o.length>0;)l+=o.shift(),c+=o.shift(),a(l,c);break;case 6:for(;o.length>0&&(l+=o.shift(),a(l,c),o.length!==0);)c+=o.shift(),a(l,c);break;case 7:for(;o.length>0&&(c+=o.shift(),a(l,c),o.length!==0);)l+=o.shift(),a(l,c);break;case 8:for(;o.length>0;)b=l+o.shift(),v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q+o.shift(),r(b,v,j,q,l,c);break;case 10:if(S=o.pop(),I=null,s.isCFFCIDFont){let E=s.fdSelect.getFDIndex(i);if(E>=0&&E<s.fdArray.length){let D=s.fdArray[E],O;D.privateDict?.subrsIndex&&(O=D.privateDict.subrsIndex.objects),O&&(S+=rh(O),I=O[S])}else T("Invalid fd index for glyph index.")}else I=s.subrs[S+s.subrsBias];I&&u(I);break;case 11:return;case 12:switch(w=p[m++],w){case 34:b=l+o.shift(),j=b+o.shift(),x=c+o.shift(),l=j+o.shift(),r(b,c,j,x,l,x),b=l+o.shift(),j=b+o.shift(),l=j+o.shift(),r(b,x,j,c,l,c);break;case 35:b=l+o.shift(),v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q+o.shift(),r(b,v,j,q,l,c),b=l+o.shift(),v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q+o.shift(),r(b,v,j,q,l,c),o.pop();break;case 36:b=l+o.shift(),x=c+o.shift(),j=b+o.shift(),k=x+o.shift(),l=j+o.shift(),r(b,x,j,k,l,k),b=l+o.shift(),j=b+o.shift(),A=k+o.shift(),l=j+o.shift(),r(b,k,j,A,l,c);break;case 37:let E=l,D=c;b=l+o.shift(),v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q+o.shift(),r(b,v,j,q,l,c),b=l+o.shift(),v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j,c=q,Math.abs(l-E)>Math.abs(c-D)?l+=o.shift():c+=o.shift(),r(b,v,j,q,l,c);break;default:throw new Q(`unknown operator: 12 ${w}`)}break;case 14:if(o.length>=4){let E=o.pop(),D=o.pop();c=o.pop(),l=o.pop(),e.save(),e.translate(l,c);let O=nl(s.cmap,String.fromCharCode(s.glyphNameMap[En[E]]));oh(s.glyphs[O.glyphId],e,s,O.glyphId),e.restore(),O=nl(s.cmap,String.fromCharCode(s.glyphNameMap[En[D]])),oh(s.glyphs[O.glyphId],e,s,O.glyphId)}return;case 18:h+=o.length>>1,g=!0;break;case 19:h+=o.length>>1,m+=h+7>>3,g=!0;break;case 20:h+=o.length>>1,m+=h+7>>3,g=!0;break;case 21:c+=o.pop(),l+=o.pop(),n(l,c),g=!0;break;case 22:l+=o.pop(),n(l,c),g=!0;break;case 23:h+=o.length>>1,g=!0;break;case 24:for(;o.length>2;)b=l+o.shift(),v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q+o.shift(),r(b,v,j,q,l,c);l+=o.shift(),c+=o.shift(),a(l,c);break;case 25:for(;o.length>6;)l+=o.shift(),c+=o.shift(),a(l,c);b=l+o.shift(),v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q+o.shift(),r(b,v,j,q,l,c);break;case 26:for(o.length%2&&(l+=o.shift());o.length>0;)b=l,v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j,c=q+o.shift(),r(b,v,j,q,l,c);break;case 27:for(o.length%2&&(c+=o.shift());o.length>0;)b=l+o.shift(),v=c,j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q,r(b,v,j,q,l,c);break;case 28:o.push(nn(p,m)),m+=2;break;case 29:S=o.pop()+s.gsubrsBias,I=s.gsubrs[S],I&&u(I);break;case 30:for(;o.length>0&&(b=l,v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q+(o.length===1?o.shift():0),r(b,v,j,q,l,c),o.length!==0);)b=l+o.shift(),v=c,j=b+o.shift(),q=v+o.shift(),c=q+o.shift(),l=j+(o.length===1?o.shift():0),r(b,v,j,q,l,c);break;case 31:for(;o.length>0&&(b=l+o.shift(),v=c,j=b+o.shift(),q=v+o.shift(),c=q+o.shift(),l=j+(o.length===1?o.shift():0),r(b,v,j,q,l,c),o.length!==0);)b=l,v=c+o.shift(),j=b+o.shift(),q=v+o.shift(),l=j+o.shift(),c=q+(o.length===1?o.shift():0),r(b,v,j,q,l,c);break;default:if(w<32)throw new Q(`unknown operator: ${w}`);w<247?o.push(w-139):w<251?o.push((w-247)*256+p[m++]+108):w<255?o.push(-(w-251)*256-p[m++]-108):(o.push((p[m]<<24|p[m+1]<<16|p[m+2]<<8|p[m+3])/65536),m+=4);break}g&&(o.length=0)}}d(u,"parse"),u(t)}function ko(t,e,s){t[e]=s>>8&255,t[e+1]=s&255}function Fc(t,e,s){t[e]=s>>24&255,t[e+1]=s>>16&255,t[e+2]=s>>8&255,t[e+3]=s&255}function hb(t,e,s){if(s instanceof Uint8Array)t.set(s,e);else if(typeof s=="string")for(let i=0,n=s.length;i<n;i++)t[e++]=s.charCodeAt(i)&255;else for(let i of s)t[e++]=i&255}function Oi(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ju(t,e,s){if(s>=t.length)return new Uint8Array(0);let i=52845,n=22719,a=e|0,r,o;for(r=0;r<s;r++)a=(t[r]+a)*i+n&65535;let l=t.length-s,c=new Uint8Array(l);for(r=s,o=0;o<l;r++,o++){let h=t[r];c[o]=h^a>>8,a=(h+a)*i+n&65535}return c}function ub(t,e,s){let i=e|0,n=t.length,a=n>>>1,r=new Uint8Array(a),o,l;for(o=0,l=0;o<n;o++){let c=t[o];if(!Oi(c))continue;o++;let h;for(;o<n&&!Oi(h=t[o]);)o++;if(o<n){let f=parseInt(String.fromCharCode(c,h),16);r[l++]=f^i>>8,i=(f+i)*52845+22719&65535}}return r.slice(s,l)}function vu(t){return t===47||t===91||t===93||t===123||t===125||t===40||t===41}function qu(t,e,s){let i=t.length,n=e.length,a=i-n,r=s,o=!1;for(;r<a;){let l=0;for(;l<n&&t[r+l]===e[l];)l++;if(l>=n){for(r+=l;r<i&&ai(t[r]);)r++;o=!0;break}r++}return{found:o,length:r}}function db(t,e){let s=[101,101,120,101,99],i=t.pos,n,a,r;try{n=t.getBytes(e),a=n.length}catch{}if(a===e&&(r=qu(n,s,e-2*s.length),r.found&&r.length===e))return{stream:new je(n),length:e};T('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=i;let o=2048,l;for(;;){let c=t.peekBytes(o);if(r=qu(c,s,0),r.length===0)break;if(t.pos+=r.length,r.found){l=t.pos-i;break}}return t.pos=i,l?{stream:new je(t.getBytes(l)),length:l}:(T('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new je(t.getBytes(e)),length:e})}function pb(t,e){let s=t.getBytes();if(s.length===0)throw new Q("getEexecBlock - no font program found.");return{stream:new je(s),length:s.length}}function xu(t){if(!t.fontMatrix||t.fontMatrix[0]===Fa[0])return;let e=0.001/t.fontMatrix[0],s=t.widths;for(let i in s)s[i]*=e;t.defaultWidth*=e}function gb(t,e,s){if(t.isInternalFont||t.hasIncludedToUnicodeMap||t.hasEncoding||t.toUnicode instanceof bi||!e||s.length===0||t.defaultEncoding===tl)return;for(let r of s)if(!od(r))return;let i=tl,n=[],a=an();for(let r in i){let o=i[r];if(o==="")continue;let l=a[o];l!==void 0&&(n[r]=String.fromCharCode(l))}n.length>0&&t.toUnicode.amend(n)}function bb(t,e){if(t.isInternalFont||t.hasIncludedToUnicodeMap||e===t.defaultEncoding||t.toUnicode instanceof bi)return;let s=[],i=an();for(let n in e){if(t.hasEncoding&&(t.baseEncodingName||t.differences[n]!==void 0))continue;let a=e[n],r=Oa(a,i);r!==-1&&(s[n]=String.fromCharCode(r))}s.length>0&&t.toUnicode.amend(s)}function Au(t){if(!t.fallbackToUnicode||t.toUnicode instanceof bi)return;let e=[];for(let s in t.fallbackToUnicode)t.toUnicode.has(s)||(e[s]=t.fallbackToUnicode[s]);e.length>0&&t.toUnicode.amend(e)}function ja(t,e){return(t<<8)+e}function rr(t,e,s){t[e+1]=s,t[e]=s>>>8}function Xs(t,e){let s=(t<<8)+e;return s&32768?s-65536:s}function yb(t,e,s){t[e+3]=s&255,t[e+2]=s>>>8,t[e+1]=s>>>16,t[e]=s>>>24}function jb(t,e,s,i){return(t<<24)+(e<<16)+(s<<8)+i}function me(t){return String.fromCharCode(t>>8&255,t&255)}function Kn(t){return t>32767?t=32767:t<-32768&&(t=-32768),String.fromCharCode(t>>8&255,t&255)}function vb(t){let e=t.peekBytes(4);return we(e,0)===65536||Us(e)==="true"}function rd(t){let e=t.peekBytes(4);return Us(e)==="ttcf"}function kb(t){let e=t.peekBytes(4);return Us(e)==="OTTO"}function qb(t){let e=t.peekBytes(2);return e[0]===37&&e[1]===33||e[0]===128&&e[1]===1}function xb(t){let e=t.peekBytes(4);return e[0]>=1&&e[3]>=1&&e[3]<=4}function Ab(t,{type:e,subtype:s,composite:i}){let n,a;return vb(t)||rd(t)?n=i?"CIDFontType2":"TrueType":kb(t)?n=i?"CIDFontType2":"OpenType":qb(t)?i?n="CIDFontType0":n=e==="MMType1"?"MMType1":"Type1":xb(t)?i?(n="CIDFontType0",a="CIDFontType0C"):(n=e==="MMType1"?"MMType1":"Type1",a="Type1C"):(T("getFontFileType: Unable to detect correct font file Type/Subtype."),n=e,a=s),[n,a]}function qo(t,e){for(let s in e)t[+s]=e[s]}function Ec(t,e,s){let i=[],n;for(let a=0,r=t.length;a<r;a++)n=Oa(t[a],e),n!==-1&&(i[a]=n);for(let a in s)n=Oa(s[a],e),n!==-1&&(i[+a]=n);return i}function Sb(t){return t.platform===1&&t.encoding===0&&t.language===0}function od(t){return t.platform===3&&t.encoding===1&&t.language===1033}function Mc(t,e,s=!1){switch(e.length){case 1:return e.charCodeAt(0);case 2:return e.charCodeAt(0)<<8|e.charCodeAt(1)}let i=`Unsupported CID string (charCode ${t}): "${e}".`;if(s)throw new Q(i);return T(i),e}function Su(t,e,s,i){let n=Object.create(null),a=new Map,r=[],o=new Set,l=0,c=pn[l][0],h=pn[l][1],f=d((p)=>pn[0][0]<=p&&p<=pn[0][1]||pn[1][0]<=p&&p<=pn[1][1],"isInPrivateArea"),u=null;for(let p in t){let m=t[p];if(!e(m))continue;if(c>h){if(l++,l>=pn.length){T("Ran out of space in font private use area.");break}c=pn[l][0],h=pn[l][1]}let g=c++;m===0&&(m=s);let w=i.get(p);if(typeof w=="string")if(w.length===1)w=w.codePointAt(0);else{if(!u){u=new Map;for(let b=64256;b<=64335;b++){let j=String.fromCharCode(b).normalize("NFKD");j.length>1&&u.set(j,b)}}w=u.get(w)||w.codePointAt(0)}w&&!f(w)&&!o.has(m)&&(a.set(w,m),o.add(m)),n[g]=m,r[p]=g}return{toFontChar:r,charCodeToGlyphId:n,toUnicodeExtraMap:a,nextAvailableFontCharCode:c}}function Cb(t,e,s){let i=[];for(let r in t)t[r]>=s||i.push({fontCharCode:r|0,glyphId:t[r]});if(e)for(let[r,o]of e)o>=s||i.push({fontCharCode:r,glyphId:o});i.length===0&&i.push({fontCharCode:0,glyphId:0}),i.sort((r,o)=>r.fontCharCode-o.fontCharCode);let n=[],a=i.length;for(let r=0;r<a;){let o=i[r].fontCharCode,l=[i[r].glyphId];++r;let c=o;for(;r<a&&c+1===i[r].fontCharCode&&(l.push(i[r].glyphId),++c,++r,c!==65535););n.push([o,c,l])}return n}function Cu(t,e,s){let i=Cb(t,e,s),n=i.at(-1)[1]>65535?2:1,a="\x00\x00"+me(n)+"\x00\x03\x00\x01"+gs(4+n*8),r,o,l,c;for(r=i.length-1;r>=0&&!(i[r][0]<=65535);--r);let h=r+1;i[r][0]<65535&&i[r][1]===65535&&(i[r][1]=65534);let f=i[r][1]<65535?1:0,u=h+f,p=ol.getSearchParams(u,2),m="",g="",w="",b="",j="",v=0,q,x,k,A;for(r=0,o=h;r<o;r++){q=i[r],x=q[0],k=q[1],m+=me(x),g+=me(k),A=q[2];let D=!0;for(l=1,c=A.length;l<c;++l)if(A[l]!==A[l-1]+1){D=!1;break}if(D){let O=A[0];w+=me(O-x&65535),b+=me(0)}else{let O=(u-r)*2+v*2;for(v+=k-x+1,w+=me(0),b+=me(O),l=0,c=A.length;l<c;++l)j+=me(A[l])}}f>0&&(g+="ÿÿ",m+="ÿÿ",w+="\x00\x01",b+="\x00\x00");let S="\x00\x00"+me(2*u)+me(p.range)+me(p.entry)+me(p.rangeShift)+g+"\x00\x00"+m+w+b+j,I="",E="";if(n>1){for(a+=`\x00\x03\x00
3
+ `+gs(4+n*8+4+S.length),I="",r=0,o=i.length;r<o;r++){q=i[r],x=q[0],A=q[2];let D=A[0];for(l=1,c=A.length;l<c;++l)A[l]!==A[l-1]+1&&(k=q[0]+l-1,I+=gs(x)+gs(k)+gs(D),x=k+1,D=A[l]);I+=gs(x)+gs(q[1])+gs(D)}E="\x00\f\x00\x00"+gs(I.length+16)+"\x00\x00\x00\x00"+gs(I.length/12)}return a+"\x00\x04"+me(S.length+4)+S+E+I}function Ib(t,e){e.pos=(e.start||0)+t.offset;let s=e.getUint16();e.skip(60);let i=e.getUint16();if(s<4&&i&768)return!1;let n=e.getUint16(),a=e.getUint16();return n>a||(e.skip(6),e.getUint16()===0)?!1:(t.data[8]=t.data[9]=0,!0)}function Iu(t,e,s){s||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let i=0,n=0,a=0,r=0,o=null,l=0,c=-1;if(e){for(let b in e)if(b|=0,(o>b||!o)&&(o=b),l<b&&(l=b),c=Yg(b,c),c<32)i|=1<<c;else if(c<64)n|=1<<c-32;else if(c<96)a|=1<<c-64;else if(c<123)r|=1<<c-96;else throw new Q("Unicode ranges Bits > 123 are reserved for internal usage");l>65535&&(l=65535)}else o=0,l=255;let h=t.bbox||[0,0,0,0],f=s.unitsPerEm||(t.fontMatrix?1/Math.max(...t.fontMatrix.slice(0,4).map(Math.abs)):1000),u=t.ascentScaled?1:f/ya,p=s.ascent||Math.round(u*(t.ascent||h[3])),m=s.descent||Math.round(u*(t.descent||h[1]));m>0&&t.descent>0&&h[1]<0&&(m=-m);let g=s.yMax||p,w=-s.yMin||-m;return"\x00\x03\x02$\x01ô\x00\x05\x00\x00\x02Š\x02»\x00\x00\x00Œ\x02Š\x02»\x00\x00\x01ß\x001\x01\x02\x00\x00\x00\x00\x06"+String.fromCharCode(t.fixedPitch?9:0)+"\x00\x00\x00\x00\x00\x00"+gs(i)+gs(n)+gs(a)+gs(r)+"*21*"+me(t.italicAngle?1:0)+me(o||t.firstChar)+me(l||t.lastChar)+me(p)+me(m)+"\x00d"+me(g)+me(w)+"\x00\x00\x00\x00\x00\x00\x00\x00"+me(t.xHeight)+me(t.capHeight)+me(0)+me(o||t.firstChar)+"\x00\x03"}function Tu(t){let e=Math.floor(t.italicAngle*65536);return"\x00\x03\x00\x00"+gs(e)+"\x00\x00\x00\x00"+gs(t.fixedPitch?1:0)+"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}function Tb(t){return t.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function Bc(t,e){e||(e=[[],[]]);let s=[e[0][0]||"Original licence",e[0][1]||t,e[0][2]||"Unknown",e[0][3]||"uniqueID",e[0][4]||t,e[0][5]||"Version 0.11",e[0][6]||Tb(t),e[0][7]||"Unknown",e[0][8]||"Unknown",e[0][9]||"Unknown"],i=[],n,a,r,o,l;for(n=0,a=s.length;n<a;n++){l=e[1][n]||s[n];let w=[];for(r=0,o=l.length;r<o;r++)w.push(me(l.charCodeAt(r)));i.push(w.join(""))}let c=[s,i],h=["\x00\x01","\x00\x03"],f=["\x00\x00","\x00\x01"],u=["\x00\x00","\x04\t"],p=s.length*h.length,m="\x00\x00"+me(p)+me(p*12+6),g=0;for(n=0,a=h.length;n<a;n++){let w=c[n];for(r=0,o=w.length;r<o;r++){l=w[r];let b=h[n]+f[n]+u[n]+me(r)+me(l.length)+me(g);m+=b,g+=l.length}}return m+=s.join("")+i.join(""),m}function Pb(t){let e=[];for(let s=0;s<=t;s++){let i=s/t,n=1-i;e.push(new Float32Array([n**3,3*i*n**2,3*i**2*n,i**3]))}return e}function Mu(t){return Bb[t]||=Pb(t)}function Db(){Bb=Object.create(null)}function Bu(t,e,s){let i=xn(e.getArray("Matrix"),Gi),n=ln(e.getArray("BBox"),null);if(!n||n[2]-n[0]===0||n[3]-n[1]===0)throw new Q("Invalid getTilingPatternIR /BBox array.");let a=e.get("XStep");if(typeof a!="number")throw new Q("Invalid getTilingPatternIR /XStep value.");let r=e.get("YStep");if(typeof r!="number")throw new Q("Invalid getTilingPatternIR /YStep value.");let o=e.get("PaintType");if(!Number.isInteger(o))throw new Q("Invalid getTilingPatternIR /PaintType value.");let l=e.get("TilingType");if(!Number.isInteger(l))throw new Q("Invalid getTilingPatternIR /TilingType value.");return["TilingPattern",s,t,i,n,a,r,o,l]}function Kh(t){let e=Rn(t);return kj()[e]}function Hb(t){let e=Kh(t);if(!e)return null;let{baseWidths:s,baseMapping:i,factors:n}=e,a=n?s.map((c,h)=>c*n[h]):s,r=-2,o,l=[];for(let[c,h]of i.map((f,u)=>[f,u]).sort(([f],[u])=>f-u))c!==-1&&(c===r+1?(o.push(a[h]),r+=1):(r=c,o=[a[h]],l.push(c,o)));return l}function ld(t){let e=Hb(t),s=new B(null);s.set("BaseFont",tt.get(t)),s.set("Type",tt.get("Font")),s.set("Subtype",tt.get("CIDFontType2")),s.set("Encoding",tt.get("Identity-H")),s.set("CIDToGIDMap",tt.get("Identity")),s.set("W",e),s.set("FirstChar",e[0]),s.set("LastChar",e.at(-2)+e.at(-1).length-1);let i=new B(null);s.set("FontDescriptor",i);let n=new B(null);return n.set("Ordering","Identity"),n.set("Registry","Adobe"),n.set("Supplement",0),s.set("CIDSystemInfo",n),s}function fi(t){return Array.isArray(t)?_s(t,null)?t:t.map((e)=>+e):null}function Pc(t){let e;if(t instanceof B)e=t;else if(t instanceof Lt)e=t.dict;else return!1;return e.has("FunctionType")}function Wb(t,e){return e.type==="literal"&&e.number===0?t:t.type==="literal"&&t.number===0?e:e.type==="literal"&&t.type==="literal"?new ra(t.number+e.number):new Yh("+",t,e,t.min+e.min,t.max+e.max)}function Kb(t,e){if(e.type==="literal"){if(e.number===0)return new ra(0);if(e.number===1)return t;if(t.type==="literal")return new ra(t.number*e.number)}if(t.type==="literal"){if(t.number===0)return new ra(0);if(t.number===1)return e}let s=Math.min(t.min*e.min,t.min*e.max,t.max*e.min,t.max*e.max),i=Math.max(t.min*e.min,t.min*e.max,t.max*e.min,t.max*e.max);return new Yh("*",t,e,s,i)}function Yb(t,e){if(e.type==="literal"){if(e.number===0)return t;if(t.type==="literal")return new ra(t.number-e.number)}return e.type==="binary"&&e.op==="-"&&t.type==="literal"&&t.number===1&&e.arg1.type==="literal"&&e.arg1.number===1?e.arg2:new Yh("-",t,e,t.min-e.max,t.max-e.min)}function Xb(t,e){return t.min>=e?new ra(e):t.max<=e?t:new Vb(t,e)}function Nu(t){return(t&1)!==0}function Jb(t){return(t&1)===0}function Zb(t,e,s){let i,n;for(i=e,n=t.length;i<n;++i)if(t[i]!==s)return i;return i}function Lu(t,e,s){for(let i=e,n=s-1;i<n;++i,--n){let a=t[i];t[i]=t[n],t[n]=a}}function Dc(t,e,s=!1){let i="ltr";return s?i="ttb":e||(i="rtl"),{str:t,dir:i}}function fd(t,e=-1,s=!1){let i=!0,n=t.length;if(n===0||s)return Dc(t,i,s);Gn.length=n,ue.length=n;let a=0,r,o;for(r=0;r<n;++r){Gn[r]=t.charAt(r);let b=t.charCodeAt(r),j="L";b<=255?j=qj[b]:1424<=b&&b<=1524?j="R":1536<=b&&b<=1791?(j=xj[b&255],j||T("Bidi: invalid Unicode character "+b.toString(16))):(1792<=b&&b<=2220||64336<=b&&b<=65023||65136<=b&&b<=65279)&&(j="AL"),(j==="R"||j==="AL"||j==="AN")&&a++,ue[r]=j}if(a===0)return i=!0,Dc(t,i);e===-1&&(a/n<0.3&&n>4?(i=!0,e=0):(i=!1,e=1));let l=[];for(r=0;r<n;++r)l[r]=e;let c=Nu(e)?"R":"L",h=c,f=h,u=h;for(r=0;r<n;++r)ue[r]==="NSM"?ue[r]=u:u=ue[r];u=h;let p;for(r=0;r<n;++r)p=ue[r],p==="EN"?ue[r]=u==="AL"?"AN":"EN":(p==="R"||p==="L"||p==="AL")&&(u=p);for(r=0;r<n;++r)p=ue[r],p==="AL"&&(ue[r]="R");for(r=1;r<n-1;++r)ue[r]==="ES"&&ue[r-1]==="EN"&&ue[r+1]==="EN"&&(ue[r]="EN"),ue[r]==="CS"&&(ue[r-1]==="EN"||ue[r-1]==="AN")&&ue[r+1]===ue[r-1]&&(ue[r]=ue[r-1]);for(r=0;r<n;++r)if(ue[r]==="EN"){for(let b=r-1;b>=0&&ue[b]==="ET";--b)ue[b]="EN";for(let b=r+1;b<n&&ue[b]==="ET";++b)ue[b]="EN"}for(r=0;r<n;++r)p=ue[r],(p==="WS"||p==="ES"||p==="ET"||p==="CS")&&(ue[r]="ON");for(u=h,r=0;r<n;++r)p=ue[r],p==="EN"?ue[r]=u==="L"?"L":"EN":(p==="R"||p==="L")&&(u=p);for(r=0;r<n;++r)if(ue[r]==="ON"){let b=Zb(ue,r+1,"ON"),j=h;for(let q=r-1;q>=0;q--){let x=ue[q];if(x==="L"){j="L";break}if(x==="R"||x==="EN"||x==="AN"){j="R";break}}let v=f;for(let q=b;q<n;q++){let x=ue[q];if(x==="L"){v="L";break}if(x==="R"||x==="EN"||x==="AN"){v="R";break}}j===v&&ue.fill(j,r,b),r=b-1}for(r=0;r<n;++r)ue[r]==="ON"&&(ue[r]=c);for(r=0;r<n;++r)p=ue[r],Jb(l[r])?p==="R"?l[r]+=1:(p==="AN"||p==="EN")&&(l[r]+=2):(p==="L"||p==="AN"||p==="EN")&&(l[r]+=1);let m=-1,g=99,w;for(r=0,o=l.length;r<o;++r)w=l[r],m<w&&(m=w),g>w&&Nu(w)&&(g=w);for(w=m;w>=g;--w){let b=-1;for(r=0,o=l.length;r<o;++r)l[r]<w?b>=0&&(Lu(Gn,b,r),b=-1):b<0&&(b=r);b>=0&&Lu(Gn,b,l.length)}for(r=0,o=Gn.length;r<o;++r){let b=Gn[r];(b==="<"||b===">")&&(Gn[r]="")}return Dc(Gn.join(""),i)}function t2(t){switch(t){case qa:return"Bold";case xa:return"Italic";case Aa:return"Bold Italic";default:if(t?.weight==="bold")return"Bold";if(t?.style==="italic")return"Italic"}return""}function zu(t){let e=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 t.split(/[- ,+]+/g).filter((s)=>!e.has(s.toLowerCase())).join(" ")}function ch({alias:t,local:e,path:s,fallback:i,style:n,ultimate:a},r,o,l=!0,c=!0,h=""){let f={style:null,ultimate:null};if(e){let u=h?` ${h}`:"";for(let p of e)r.push(`local(${p}${u})`)}if(t){let u=Ro.get(t),p=h||t2(n);Object.assign(f,ch(u,r,o,l&&!i,c&&!s,p))}if(n&&(f.style=n),a&&(f.ultimate=a),l&&i){let u=Ro.get(i),{ultimate:p}=ch(u,r,o,l,c&&!s,h);f.ultimate||=p}return c&&s&&o&&r.push(`url(${o}${s})`),f}function Uu(t,e,s,i,n,a){if(i.startsWith("InvalidPDFjsFont_"))return null;(a==="TrueType"||a==="Type1")&&/^[A-Z]{6}\+/.test(i)&&(i=i.slice(7)),i=Rn(i);let r=i,o=t.get(r);if(o)return o;let l=Ro.get(i);if(!l){for(let[w,b]of Aj)if(i.startsWith(w)){i=`${b}${i.substring(w.length)}`,l=Ro.get(i);break}}let c=!1;l||(l=Ro.get(n),c=!0);let h=`${e.getDocId()}_s${e.createFontId()}`;if(!l){if(!Zc(i))return T(`Cannot substitute the font because of its name: ${i}`),t.set(r,null),null;let w=/bold/gi.test(i),b=/oblique|italic/gi.test(i),j=w&&b&&Aa||w&&qa||b&&xa||qi;return o={css:`"${zu(i)}",${h}`,guessFallback:!0,loadedName:h,baseFontName:i,src:`local(${i})`,style:j},t.set(r,o),o}let f=[];c&&Zc(i)&&f.push(`local(${i})`);let{style:u,ultimate:p}=ch(l,f,s),m=p===null,g=m?"":`,${p}`;return o={css:`"${zu(i)}",${h}${g}`,guessFallback:m,loadedName:h,baseFontName:i,src:f.join(","),style:u},t.set(r,o),o}function ud(t,e=!1){if(Array.isArray(t)){for(let s of t){let i=ud(s,!0);if(i)return i}return T(`Unsupported blend mode Array: ${t}`),"source-over"}if(!(t instanceof tt))return e?null:"source-over";switch(t.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"}return e?null:(T(`Unsupported blend mode: ${t.name}`),"source-over")}function Rc(t,{objId:e,fn:s,args:i,optionalContent:n,hasMask:a}){e&&t.addDependency(e),t.addImageOps(s,i,n,a),s===C.paintImageMaskXObject&&i[0]?.count>0&&i[0].count++}function Xh(t){return new s2(t).parse()}function n2(t,e,s,i){return new i2(t,e,s,i).parse()}function Vi(t,e){if(t[0]===t[1]&&t[1]===t[2]){let s=t[0]/255;return`${ie(s)} ${e?"g":"G"}`}return Array.from(t,(s)=>ie(s/255)).join(" ")+` ${e?"rg":"RG"}`}function a2({fontSize:t,fontName:e,fontColor:s}){return`/${zh(e)} ${t} Tf ${Vi(s,!0)}`}function Qh(){Db(),dm(),Qg(),xl.cleanup(),Sl.cleanup()}function Gu(t){if(t instanceof B){for(let e of["UF","F","Unix","Mac","DOS"])if(t.has(e))return t.get(e)}return null}function Sa(t,e){let s=t[e];return s===" "||s===`
4
+ `||s==="\r"||s==="\t"}function r2(t){for(let e=0,s=t.length;e<s;e++)if(!Sa(t,e))return!1;return!0}function _c(t){return t instanceof B&&(t=t.get("D")),fh(t)?t:null}function $u(t){let e=t.get("D");if(e){if(e instanceof tt&&(e=e.name),typeof e=="string")return Xt(e,!0);if(fh(e))return JSON.stringify(e)}return null}function c2(t){return t instanceof nt||t instanceof B||t instanceof Lt||Array.isArray(t)}function h2(t,e){if(t instanceof B)t=t.getRawValues();else if(t instanceof Lt)t=t.dict.getRawValues();else if(!Array.isArray(t))return;for(let s of t)c2(s)&&e.push(s)}function Fl(t){return t.startsWith("'")||t.startsWith('"')?t.slice(1,-1):t}function Ot({data:t,defaultValue:e,validate:s}){if(!t)return e;t=t.trim();let i=parseInt(t,10);return!isNaN(i)&&s(i)?i:e}function dl({data:t,defaultValue:e,validate:s}){if(!t)return e;t=t.trim();let i=parseFloat(t);return!isNaN(i)&&s(i)?i:e}function El({data:t,defaultValue:e,validate:s}){return t?(t=t.trim(),s(t)?t:e):e}function et(t,e){return El({data:t,defaultValue:e[0],validate:d((s)=>e.includes(s),"validate")})}function vt(t,e="0"){if(e||="0",!t)return vt(e);let s=t.trim().match(Pj);if(!s)return vt(e);let[,i,n]=s,a=parseFloat(i);if(isNaN(a))return vt(e);if(a===0)return 0;let r=Bj[n];return r?r(a):a}function Xu(t){if(!t)return{num:1,den:1};let e=t.split(":",2).map((n)=>parseFloat(n.trim())).filter((n)=>!isNaN(n));if(e.length===1&&e.push(1),e.length===0)return{num:1,den:1};let[s,i]=e;return{num:s,den:i}}function Ei(t){return t?t.trim().split(/\s+/).map((e)=>({excluded:e[0]==="-",viewname:e.substring(1)})):[]}function m2(t,e=[0,0,0]){let[s,i,n]=e;if(!t)return{r:s,g:i,b:n};let a=t.split(",",3).map((r)=>Ze(parseInt(r.trim(),10),0,255)).map((r)=>isNaN(r)?0:r);return a.length<3?{r:s,g:i,b:n}:([s,i,n]=a,{r:s,g:i,b:n})}function g2(t){if(!t)return{x:-1,y:-1,width:-1,height:-1};let e=t.split(",",4).map((r)=>vt(r.trim(),"-1"));if(e.length<4||e[2]<0||e[3]<0)return{x:-1,y:-1,width:-1,height:-1};let[s,i,n,a]=e;return{x:s,y:i,width:n,height:a}}function tf(t,e){return t.posture==="italic"?t.weight==="bold"?e.bolditalic:e.italic:t.weight==="bold"?e.bold:e.regular}function w2(t,e=!1){let s=null;if(t){let r=Fl(t.typeface),o=t[ve].fontFinder.find(r);s=tf(t,o)}if(!s)return{lineHeight:12,lineGap:2,lineNoGap:10};let i=t.size||10,n=s.lineHeight?Math.max(e?0:1.2,s.lineHeight):1.2,a=s.lineGap===void 0?0.2:s.lineGap;return{lineHeight:n*i,lineGap:a*i,lineNoGap:Math.max(1,n-a)*i}}function k2(t){return t=t.trim(),t==="*"?1/0:parseInt(t,10)||0}function yd(t,e,s=!0){let i=t.match(Tp);if(!i)return null;let[n]=i,a=[{name:n,cacheName:"."+n,index:0,js:null,formCalc:null,operator:yi.dot}],r=n.length;for(;r<t.length;){let o=r;if(t.charAt(r++)==="["){if(i=t.slice(r).match(Rj),!i)return T("XFA - Invalid index in SOM expression"),null;a.at(-1).index=k2(i[0]),r+=i[0].length+1;continue}let l;switch(t.charAt(r)){case".":if(!e)return null;r++,l=yi.dotDot;break;case"#":r++,l=yi.dotHash;break;case"[":if(s)return T("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;l=yi.dotBracket;break;case"(":if(s)return T("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;l=yi.dotParen;break;default:l=yi.dot;break}if(i=t.slice(r).match(Tp),!i)break;[n]=i,r+=n.length,a.push({name:n,cacheName:t.slice(o,r),operator:l,index:0,js:null,formCalc:null})}return a}function jn(t,e,s,i=!0,n=!0){let a=yd(s,i);if(!a)return null;let r=v2.get(a[0].name),o=0,l;r?(l=!0,t=[r(t,e)],o=1):(l=e===null,t=[e||t]);for(let c=a.length;o<c;o++){let{name:h,cacheName:f,operator:u,index:p}=a[o],m=[];for(let g of t){if(!g.isXFAObject)continue;let w,b;if(n&&(b=Hj.getOrInsertComputed(g,J7),w=b.get(f)),!w){switch(u){case yi.dot:w=g[cl](h,!1);break;case yi.dotDot:w=g[cl](h,!0);break;case yi.dotHash:w=g[Zh](h),w=w.isXFAObjectArray?w.children:[w];break}n&&b.set(f,w)}w.length>0&&m.push(w)}if(m.length===0&&!l&&o===0){if(e=e[zt](),!e)return null;o=-1,t=[e];continue}t=isFinite(p)?m.filter((g)=>p<g.length).map((g)=>g[p]):m.flat()}return t.length===0?null:t}function q2(t,e,s){let i=yd(s);if(!i||i.some((r)=>r.operator===yi.dotDot))return null;let n=v2.get(i[0].name),a=0;n?(t=n(t,e),a=1):t=e||t;for(let r=i.length;a<r;a++){let{name:o,operator:l,index:c}=i[a];if(!isFinite(c))return i[a].index=0,t.createNodes(i.slice(a));let h;switch(l){case yi.dot:h=t[cl](o,!1);break;case yi.dotDot:h=t[cl](o,!0);break;case yi.dotHash:h=t[Zh](o),h=h.isXFAObjectArray?h.children:[h];break}if(h.length===0)return t.createNodes(i.slice(a));if(c<h.length){let f=h[c];if(!f.isXFAObject)return T("XFA - Cannot create a node."),null;t=f}else return i[a].index=c-h.length,t.createNodes(i.slice(a))}return null}function _t(t){return typeof t=="string"?"0px":Number.isInteger(t)?`${t}px`:`${t.toFixed(2)}px`}function vd(t,e){t[Ve]().layout==="position"&&(t.minW>0&&(e.minWidth=_t(t.minW)),t.maxW>0&&(e.maxWidth=_t(t.maxW)),t.minH>0&&(e.minHeight=_t(t.minH)),t.maxH>0&&(e.maxHeight=_t(t.maxH)))}function Ju(t,e,s,i,n,a){let r=new j2(e,s,i,n);return typeof t=="string"?r.addString(t):t[cn](r),r.compute(a)}function sf(t,e){let s=null,i=null,n=!1;if((!t.w||!t.h)&&t.value){let a=0,r=0;t.margin&&(a=t.margin.leftInset+t.margin.rightInset,r=t.margin.topInset+t.margin.bottomInset);let o=null,l=null;t.para&&(l=Object.create(null),o=t.para.lineHeight===""?null:t.para.lineHeight,l.top=t.para.spaceAbove===""?0:t.para.spaceAbove,l.bottom=t.para.spaceBelow===""?0:t.para.spaceBelow,l.left=t.para.marginLeft===""?0:t.para.marginLeft,l.right=t.para.marginRight===""?0:t.para.marginRight);let c=t.font;if(!c){let u=t[Ge](),p=t[zt]();for(;p&&p!==u;){if(p.font){c=p.font;break}p=p[zt]()}}let h=(t.w||e.width)-a,f=t[ve].fontFinder;if(t.value.exData&&t.value.exData[Z]&&t.value.exData.contentType==="text/html"){let u=Ju(t.value.exData[Z],c,l,o,f,h);i=u.width,s=u.height,n=u.isBroken}else{let u=t.value[ls]();if(u){let p=Ju(u,c,l,o,f,h);i=p.width,s=p.height,n=p.isBroken}}i!==null&&!t.w&&(i+=a),s!==null&&!t.h&&(s+=r)}return{w:i,h:s,isBroken:n}}function kd(t,e,s){let i;if(t.w!==""&&t.h!=="")i=[t.x,t.y,t.w,t.h];else{if(!s)return null;let n=t.w;if(n===""){if(t.maxW===0){let r=t[Ve]();n=r.layout==="position"&&r.w!==""?0:t.minW}else n=Math.min(t.maxW,s.width);e.attributes.style.width=_t(n)}let a=t.h;if(a===""){if(t.maxH===0){let r=t[Ve]();a=r.layout==="position"&&r.h!==""?0:t.minH}else a=Math.min(t.maxH,s.height);e.attributes.style.height=_t(a)}i=[t.x,t.y,n,a]}return i}function Ml(t){let e=t[Ve]();if(e.layout?.includes("row")){let s=e[K],i=t.colSpan,n;i===-1?n=Math.sumPrecise(s.columnWidths.slice(s.currentColumn)):n=Math.sumPrecise(s.columnWidths.slice(s.currentColumn,s.currentColumn+i)),isNaN(n)||(t.w=n)}e.layout&&e.layout!=="position"&&(t.x=t.y=0),t.layout==="table"&&t.w===""&&Array.isArray(t.columnWidths)&&(t.w=Math.sumPrecise(t.columnWidths))}function qd(t){switch(t.layout){case"position":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";default:return"xfaPosition"}}function Os(t,...e){let s=Object.create(null);for(let i of e){let n=t[i];if(n!==null){if(Mp.hasOwnProperty(i)){Mp[i](t,s);continue}if(n instanceof Y){let a=n[ce]();a?Object.assign(s,a):T(`(DEBUG) - XFA - style for ${i} not implemented yet`)}}}return s}function la(t,e){let{attributes:s}=e,{style:i}=s,n={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(s.class.push("xfaWrapped"),t.border){let{widths:a,insets:r}=t.border[K],o,l,c=r[0],h=r[3],f=r[0]+r[2],u=r[1]+r[3];switch(t.border.hand){case"even":c-=a[0]/2,h-=a[3]/2,o=`calc(100% + ${(a[1]+a[3])/2-u}px)`,l=`calc(100% + ${(a[0]+a[2])/2-f}px)`;break;case"left":c-=a[0],h-=a[3],o=`calc(100% + ${a[1]+a[3]-u}px)`,l=`calc(100% + ${a[0]+a[2]-f}px)`;break;case"right":o=u?`calc(100% - ${u}px)`:"100%",l=f?`calc(100% - ${f}px)`:"100%";break}let p=["xfaBorder"];Ga(t.border)&&p.push("xfaPrintOnly");let m={name:"div",attributes:{class:p,style:{top:`${c}px`,left:`${h}px`,width:o,height:l}},children:[]};for(let g of["border","borderWidth","borderColor","borderRadius","borderStyle"])i[g]!==void 0&&(m.attributes.style[g]=i[g],delete i[g]);n.children.push(m,e)}else n.children.push(e);for(let a of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])i[a]!==void 0&&(n.attributes.style[a]=i[a],delete i[a]);return n.attributes.style.position=i.position==="absolute"?"absolute":"relative",delete i.position,i.alignSelf&&(n.attributes.style.alignSelf=i.alignSelf,delete i.alignSelf),n}function xd(t){let e=vt(t.textIndent,"0px");if(e>=0)return;let s="padding"+((t.textAlign==="right"?"right":"left")==="left"?"Left":"Right"),i=vt(t[s],"0px");t[s]=`${i-e}px`}function nf(t,e){switch(t.access){case"nonInteractive":e.push("xfaNonInteractive");break;case"readOnly":e.push("xfaReadOnly");break;case"protected":e.push("xfaDisabled");break}}function Ga(t){return t.relevant.length>0&&!t.relevant[0].excluded&&t.relevant[0].viewname==="print"}function Ad(t){let e=t[Ge]()[K].paraStack;return e.length?e.at(-1):null}function Sd(t,e,s){if(s.attributes.class?.includes("xfaRich")){e&&(t.h===""&&(e.height="auto"),t.w===""&&(e.width="auto"));let i=Ad(t);if(i){let n=s.attributes.style;switch(n.display="flex",n.flexDirection="column",i.vAlign){case"top":n.justifyContent="start";break;case"bottom":n.justifyContent="end";break;case"middle":n.justifyContent="center";break}let a=i[ce]();for(let[r,o]of Object.entries(a))r in n||(n[r]=o)}}}function Cd(t,e,s,i){if(!s){delete i.fontFamily;return}let n=Fl(t.typeface);i.fontFamily=`"${n}"`;let a=s.find(n);if(a){let{fontFamily:r}=a.regular.cssFontInfo;r!==n&&(i.fontFamily=`"${r}"`);let o=Ad(e);if(o&&o.lineHeight!==""||i.lineHeight)return;let l=tf(t,a);l&&(i.lineHeight=Math.max(1.2,l.lineHeight))}}function Id(t){let e=Vo(t,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return e?e.href:null}function Td(t,e){return{name:"div",attributes:{class:[t.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:e}}function Fd(t){if(!t[K])return null;let e={name:"div",attributes:t[K].attributes,children:t[K].children};if(t[K].failingNode){let s=t[K].failingNode[Tl]();s&&(t.layout.endsWith("-tb")?e.children.push(Td(t,[s])):e.children.push(s))}return e.children.length===0?null:e}function Ed(t,e,s){let i=t[K],n=i.availableSpace,[a,r,o,l]=s;switch(t.layout){case"position":{i.width=Math.max(i.width,a+o),i.height=Math.max(i.height,r+l),i.children.push(e);break}case"lr-tb":case"rl-tb":(!i.line||i.attempt===1)&&(i.line=Td(t,[]),i.children.push(i.line),i.numberInLine=0),i.numberInLine+=1,i.line.children.push(e),i.attempt===0?(i.currentWidth+=o,i.height=Math.max(i.height,i.prevHeight+l)):(i.currentWidth=o,i.prevHeight=i.height,i.height+=l,i.attempt=0),i.width=Math.max(i.width,i.currentWidth);break;case"rl-row":case"row":{i.children.push(e),i.width+=o,i.height=Math.max(i.height,l);let c=_t(i.height);for(let h of i.children)h.attributes.style.height=c;break}case"table":{i.width=Ze(o,i.width,n.width),i.height+=l,i.children.push(e);break}case"tb":{i.width=Ze(o,i.width,n.width),i.height+=l,i.children.push(e);break}}}function Md(t){let e=t[K].availableSpace,s=t.margin?t.margin.topInset+t.margin.bottomInset:0,i=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":return t[K].attempt===0?{width:e.width-i-t[K].currentWidth,height:e.height-s-t[K].prevHeight}:{width:e.width-i,height:e.height-s-t[K].height};case"rl-row":case"row":return{width:Math.sumPrecise(t[K].columnWidths.slice(t[K].currentColumn)),height:e.height-i};case"table":case"tb":return{width:e.width-i,height:e.height-s-t[K].height};default:return e}}function A2(t){let e=t.w===""?NaN:t.w,s=t.h===""?NaN:t.h,[i,n]=[0,0];switch(t.anchorType||""){case"bottomCenter":[i,n]=[e/2,s];break;case"bottomLeft":[i,n]=[0,s];break;case"bottomRight":[i,n]=[e,s];break;case"middleCenter":[i,n]=[e/2,s/2];break;case"middleLeft":[i,n]=[0,s/2];break;case"middleRight":[i,n]=[e,s/2];break;case"topCenter":[i,n]=[e/2,0];break;case"topRight":[i,n]=[e,0];break}let a,r;switch(t.rotate||0){case 0:[a,r]=[-i,-n];break;case 90:[a,r]=[-n,i],[e,s]=[s,-e];break;case 180:[a,r]=[i,n],[e,s]=[-e,-s];break;case 270:[a,r]=[n,-i],[e,s]=[-s,e];break}return[t.x+a+Math.min(0,e),t.y+r+Math.min(0,s),Math.abs(e),Math.abs(s)]}function Bl(t,e){if(t[Ge]()[K].firstUnsplittable===null||t.w===0||t.h===0)return!0;let s=2,i=t[Ve](),n=i[K]?.attempt||0,[,a,r,o]=A2(t);switch(i.layout){case"lr-tb":case"rl-tb":return n===0?t[Ge]()[K].noLayoutFailure?t.w!==""?Math.round(r-e.width)<=s:e.width>s:t.h!==""&&Math.round(o-e.height)>s?!1:t.w!==""?Math.round(r-e.width)<=s?!0:i[K].numberInLine===0?e.height>s:!1:e.width>s:t[Ge]()[K].noLayoutFailure?!0:t.h!==""&&Math.round(o-e.height)>s?!1:t.w===""||Math.round(r-e.width)<=s?e.height>s:i[Hn]()?!1:e.height>s;case"table":case"tb":return t[Ge]()[K].noLayoutFailure?!0:t.h!==""&&!t[Mn]()?Math.round(o-e.height)<=s:t.w===""||Math.round(r-e.width)<=s?e.height>s:i[Hn]()?!1:e.height>s;case"position":if(t[Ge]()[K].noLayoutFailure||t.h===""||Math.round(o+a-e.height)<=s)return!0;let l=t[Ge]()[K].currentContentArea;return o+a>l.h;case"rl-row":case"row":return t[Ge]()[K].noLayoutFailure?!0:t.h!==""?Math.round(o-e.height)<=s:!0;default:return!0}}function Zu(t){if(!t||!t.border)return{w:0,h:0};let e=t.border[Es]();return e?{w:e.widths[0]+e.widths[2]+e.insets[0]+e.insets[2],h:e.widths[1]+e.widths[3]+e.insets[1]+e.insets[3]}:{w:0,h:0}}function af(t){return t.margin&&(t.margin.topInset||t.margin.rightInset||t.margin.bottomInset||t.margin.leftInset)}function rf(t,e){if(!t.value){let s=new df({});t[_e](s),t.value=s}t.value[ri](e)}function*of(t){for(let e of t[ys]()){if(e instanceof hf){yield*e[_r]();continue}yield e}}function $r(t){return t.validate?.nullTest==="error"}function Pl(t){for(;t;){if(!t.traversal){t[Li]=t[zt]()[Li];return}if(t[Li])return;let e=null;for(let n of t.traversal[ys]())if(n.operation==="next"){e=n;break}if(!e||!e.ref){t[Li]=t[zt]()[Li];return}let s=t[Ge]();t[Li]=++s[Li];let i=s[In](e.ref,t);if(!i)return;t=i[0]}}function Dl(t,e){let s=t.assist;if(s){let i=s[Dt]();i&&(e.title=i);let n=s.role.match(Nj);if(n){let r=n[1];e.role="heading",e["aria-level"]=r}}if(t.layout==="table")e.role="table";else if(t.layout==="row")e.role="row";else{let i=t[zt]();i.layout==="row"&&(e.role=i.assist?.role==="TH"?"columnheader":"cell")}}function ua(t){if(!t.assist)return null;let e=t.assist;return e.speak&&e.speak[Z]!==""?e.speak[Z]:e.toolTip?e.toolTip[Z]:null}function Nn(t){return Tt.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:t}]})}function Rl(t){let e=t[Ge]();e[K].firstUnsplittable===null&&(e[K].firstUnsplittable=t,e[K].noLayoutFailure=!0)}function Hl(t){let e=t[Ge]();e[K].firstUnsplittable===t&&(e[K].noLayoutFailure=!1)}function t1(t){if(t[K]||(t[K]=Object.create(null),t.targetType==="auto"))return!1;let e=t[Ge](),s=null;if(t.target){if(s=e[In](t.target,t[zt]()),!s)return!1;s=s[0]}let{currentPageArea:i,currentContentArea:n}=e[K];if(t.targetType==="pageArea")return s instanceof Na||(s=null),t.startNew?(t[K].target=s||i,!0):s&&s!==i?(t[K].target=s,!0):!1;s instanceof lf||(s=null);let a=s&&s[zt](),r,o=a;if(t.startNew)if(s){let l=a.contentArea.children,c=l.indexOf(n),h=l.indexOf(s);c!==-1&&c<h&&(o=null),r=h-1}else r=i.contentArea.children.indexOf(n);else if(s&&s!==n)r=a.contentArea.children.indexOf(s)-1,o=a===i?null:a;else return!1;return t[K].target=o,t[K].index=r,!0}function e1(t,e,s){let i=t[Ge](),n=i[K].noLayoutFailure,a=e[Ve];e[Ve]=()=>t,i[K].noLayoutFailure=!0;let r=e[Dt](s);t[Ba](r.html,r.bbox),i[K].noLayoutFailure=n,e[Ve]=a}function Co(t){let e=new $d({});return e[Z]=t,e}function q6(t,e,s){let i=Object.create(null);if(!t)return i;let n=Object.create(null);for(let[a,r]of t.split(";").map((o)=>o.split(":",2))){let o=Xj.get(a);if(o==="")continue;let l=r;o&&(l=typeof o=="string"?o:o(r,n)),a.endsWith("scale")?i.transform=i.transform?`${i[a]} ${l}`:l:i[a.replaceAll(/-([a-zA-Z])/g,(c,h)=>h.toUpperCase())]=l}if(i.fontFamily&&Cd({typeface:i.fontFamily,weight:i.fontWeight||"normal",posture:i.fontStyle||"normal",size:n.fontSize||0},e,e[ve].fontFinder,i),s&&i.verticalAlign&&i.verticalAlign!=="0px"&&i.fontSize){let a=vt(i.fontSize);i.fontSize=_t(a*0.583),i.verticalAlign=_t(Math.sign(vt(i.verticalAlign))*a*0.333)}return s&&i.fontSize&&(i.fontSize=`calc(${i.fontSize} * var(--total-scale-factor))`),xd(i),i}function x6(t){return t.style?t.style.split(";").filter((e)=>!!e.trim()).map((e)=>e.split(":",2).map((s)=>s.trim())).filter(([e,s])=>(e==="font-family"&&t[ve].usedTypefaces.add(s),Yj.has(e))).map((e)=>e.join(":")).join(";"):""}function ca(t,e=new Uint8ClampedArray(3)){if(!Array.isArray(t))return e;let s=e||new Uint8ClampedArray(3);switch(t.length){case 0:return null;case 1:return le.gray.getRgbItem(t,0,s,0),s;case 3:return le.rgb.getRgbItem(t,0,s,0),s;case 4:return le.cmyk.getRgbItem(t,0,s,0),s;default:return e}}function ks(t,e=null){return t&&Array.from(t,(s)=>s/255)||e}function Wr(t,e){let s=t.getArray("QuadPoints");if(!_s(s,null)||s.length===0||s.length%8>0)return null;let i=new Float32Array(s.length);for(let n=0,a=s.length;n<a;n+=8){let[r,o,l,c,h,f,u,p]=s.slice(n,n+8),m=Math.min(r,l,h,u),g=Math.max(r,l,h,u),w=Math.min(o,c,f,p),b=Math.max(o,c,f,p);if(e!==null&&(m<e[0]||g>e[2]||w<e[1]||b>e[3]))return null;i.set([m,b,g,b,m,w,g,w],n)}return i}function Ah(t,e,s){let i=new Float32Array([1/0,1/0,-1/0,-1/0]);de.axialAlignedBoundingBox(e,s,i);let[n,a,r,o]=i;if(n===r||a===o)return[1,0,0,1,t[0],t[1]];let l=(t[2]-t[0])/(r-n),c=(t[3]-t[1])/(o-a);return[l,0,0,c,t[0]-n*l,t[1]-a*c]}function vn(t,e,s){let i=1732584193,n=-271733879,a=-1732584194,r=271733878,o=s+72&-64,l=new Uint8Array(o),c,h;for(c=0;c<s;++c)l[c]=t[e++];l[c++]=128;let f=o-8;c<f&&(c=f),l[c++]=s<<3&255,l[c++]=s>>5&255,l[c++]=s>>13&255,l[c++]=s>>21&255,l[c++]=s>>>29&255,c+=3;let u=new Int32Array(16),{k:p,r:m}=ev;for(c=0;c<o;){for(h=0;h<16;++h,c+=4)u[h]=l[c]|l[c+1]<<8|l[c+2]<<16|l[c+3]<<24;let g=i,w=n,b=a,j=r,v,q;for(h=0;h<64;++h){h<16?(v=w&b|~w&j,q=h):h<32?(v=j&w|~j&b,q=5*h+1&15):h<48?(v=w^b^j,q=3*h+5&15):(v=b^(w|~j),q=7*h&15);let x=j,k=g+v+p[h]+u[q]|0,A=m[h];j=b,b=w,w=w+(k<<A|k>>>32-A)|0,g=x}i=i+g|0,n=n+w|0,a=a+b|0,r=r+j|0}return new Uint8Array([i&255,i>>8&255,i>>16&255,i>>>24&255,n&255,n>>8&255,n>>16&255,n>>>24&255,a&255,a>>8&255,a>>16&255,a>>>24&255,r&255,r>>8&255,r>>16&255,r>>>24&255])}function n1(t){try{return Ha(t)}catch(e){return T(`UTF-8 decoding failed: "${e}".`),t}}function a4(t,e,s,i,n){t.assign(e),t.and(s),n.assign(e),n.not(),n.and(i),t.xor(n)}function r4(t,e,s,i,n){t.assign(e),t.and(s),n.assign(e),n.and(i),t.xor(n),n.assign(s),n.and(i),t.xor(n)}function o4(t,e,s){t.assign(e),t.rotateRight(28),s.assign(e),s.rotateRight(34),t.xor(s),s.assign(e),s.rotateRight(39),t.xor(s)}function l4(t,e,s){t.assign(e),t.rotateRight(14),s.assign(e),s.rotateRight(18),t.xor(s),s.assign(e),s.rotateRight(41),t.xor(s)}function c4(t,e,s){t.assign(e),t.rotateRight(1),s.assign(e),s.rotateRight(8),t.xor(s),s.assign(e),s.shiftRight(7),t.xor(s)}function h4(t,e,s){t.assign(e),t.rotateRight(19),s.assign(e),s.rotateRight(61),t.xor(s),s.assign(e),s.shiftRight(6),t.xor(s)}function Xd(t,e,s,i=!1){let n,a,r,o,l,c,h,f;i?(n=new ut(3418070365,3238371032),a=new ut(1654270250,914150663),r=new ut(2438529370,812702999),o=new ut(355462360,4144912697),l=new ut(1731405415,4290775857),c=new ut(2394180231,1750603025),h=new ut(3675008525,1694076839),f=new ut(1203062813,3204075428)):(n=new ut(1779033703,4089235720),a=new ut(3144134277,2227873595),r=new ut(1013904242,4271175723),o=new ut(2773480762,1595750129),l=new ut(1359893119,2917565137),c=new ut(2600822924,725511199),h=new ut(528734635,4215389547),f=new ut(1541459225,327033209));let u=Math.ceil((s+17)/128)*128,p=new Uint8Array(u),m,g;for(m=0;m<s;++m)p[m]=t[e++];p[m++]=128;let w=u-16;m<w&&(m=w),m+=11,p[m++]=s>>>29&255,p[m++]=s>>21&255,p[m++]=s>>13&255,p[m++]=s>>5&255,p[m++]=s<<3&255;let b=Array(80);for(m=0;m<80;m++)b[m]=new ut(0,0);let{k:j}=sv,v=new ut(0,0),q=new ut(0,0),x=new ut(0,0),k=new ut(0,0),A=new ut(0,0),S=new ut(0,0),I=new ut(0,0),E=new ut(0,0),D=new ut(0,0),O=new ut(0,0),$=new ut(0,0),it=new ut(0,0),W;for(m=0;m<u;){for(g=0;g<16;++g)b[g].high=p[m]<<24|p[m+1]<<16|p[m+2]<<8|p[m+3],b[g].low=p[m+4]<<24|p[m+5]<<16|p[m+6]<<8|p[m+7],m+=8;for(g=16;g<80;++g)W=b[g],h4(W,b[g-2],it),W.add(b[g-7]),c4($,b[g-15],it),W.add($),W.add(b[g-16]);for(v.assign(n),q.assign(a),x.assign(r),k.assign(o),A.assign(l),S.assign(c),I.assign(h),E.assign(f),g=0;g<80;++g)D.assign(E),l4($,A,it),D.add($),a4($,A,S,I,it),D.add($),D.add(j[g]),D.add(b[g]),o4(O,v,it),r4($,v,q,x,it),O.add($),W=E,E=I,I=S,S=A,k.add(D),A=k,k=x,x=q,q=v,W.assign(D),W.add(O),v=W;n.add(v),a.add(q),r.add(x),o.add(k),l.add(A),c.add(S),h.add(I),f.add(E)}let H;return i?(H=new Uint8Array(48),n.copyTo(H,0),a.copyTo(H,8),r.copyTo(H,16),o.copyTo(H,24),l.copyTo(H,32),c.copyTo(H,40)):(H=new Uint8Array(64),n.copyTo(H,0),a.copyTo(H,8),r.copyTo(H,16),o.copyTo(H,24),l.copyTo(H,32),c.copyTo(H,40),h.copyTo(H,48),f.copyTo(H,56)),H}function f4(t,e,s){return Xd(t,e,s,!0)}function $i(t,e){return t>>>e|t<<32-e}function u4(t,e,s){return t&e^~t&s}function d4(t,e,s){return t&e^t&s^e&s}function p4(t){return $i(t,2)^$i(t,13)^$i(t,22)}function m4(t){return $i(t,6)^$i(t,11)^$i(t,25)}function g4(t){return $i(t,7)^$i(t,18)^t>>>3}function b4(t){return $i(t,17)^$i(t,19)^t>>>10}function Sh(t,e,s){let i=1779033703,n=3144134277,a=1013904242,r=2773480762,o=1359893119,l=2600822924,c=528734635,h=1541459225,f=Math.ceil((s+9)/64)*64,u=new Uint8Array(f),p,m;for(p=0;p<s;++p)u[p]=t[e++];u[p++]=128;let g=f-8;p<g&&(p=g),p+=3,u[p++]=s>>>29&255,u[p++]=s>>21&255,u[p++]=s>>13&255,u[p++]=s>>5&255,u[p++]=s<<3&255;let w=new Uint32Array(64),{k:b}=iv;for(p=0;p<f;){for(m=0;m<16;++m)w[m]=u[p]<<24|u[p+1]<<16|u[p+2]<<8|u[p+3],p+=4;for(m=16;m<64;++m)w[m]=b4(w[m-2])+w[m-7]+g4(w[m-15])+w[m-16]|0;let j=i,v=n,q=a,x=r,k=o,A=l,S=c,I=h,E,D;for(m=0;m<64;++m)E=I+m4(k)+u4(k,A,S)+b[m]+w[m],D=p4(j)+d4(j,v,q),I=S,S=A,A=k,k=x+E|0,x=q,q=v,v=j,j=E+D|0;i=i+j|0,n=n+v|0,a=a+q|0,r=r+x|0,o=o+k|0,l=l+A|0,c=c+S|0,h=h+I|0}return new Uint8Array([i>>24&255,i>>16&255,i>>8&255,i&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,o>>24&255,o>>16&255,o>>8&255,o&255,l>>24&255,l>>16&255,l>>8&255,l&255,c>>24&255,c>>16&255,c>>8&255,c&255,h>>24&255,h>>16&255,h>>8&255,h&255])}function Uc(t,e,s=1024,i=!1){let n=e.length,a=t.peekBytes(s),r=a.length-n;if(r<=0)return!1;if(i){let o=n-1,l=a.length-1;for(;l>=o;){let c=0;for(;c<n&&a[l-c]===e[o-c];)c++;if(c>=n)return t.pos+=l-o,!0;l--}}else{let o=0;for(;o<=r;){let l=0;for(;l<n&&a[o+l]===e[l];)l++;if(l>=n)return t.pos+=o,!0;o++}}return!1}function q4(t){if(t){let e=Vo(t);if(e)return e.href;T(`Invalid absolute docBaseUrl: "${t}".`)}return null}function o1(){}function Qs(t){if(t instanceof Cs||t instanceof Wo||t instanceof Fr||t instanceof ep||t instanceof Df)return t;switch(t instanceof Error||typeof t=="object"&&t!==null||Yt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new Cs(t.message);case"InvalidPDFException":return new Wo(t.message);case"PasswordException":return new Fr(t.message,t.code);case"ResponseException":return new ep(t.message,t.status,t.missing);case"UnknownErrorException":return new Df(t.message,t.details)}return new Df(t.message,t.toString())}async function e0(t,e,s,{encrypt:i=null,encryptRef:n=null}){let a=i&&n!==t?i.createCipherTransform(t.num,t.gen):null;s.push(`${t.num} ${t.gen} obj
5
+ `),await Ol(e,s,a),s.push(`
6
+ endobj
7
+ `)}async function gf(t,e,s){e.push("<<");for(let[i,n]of t.getRawEntries())e.push(` /${zh(i)} `),await Ol(n,e,s);e.push(">>")}async function A4(t,e,s){t=t.getOriginalStream(),t.reset();let i=t.getBytes(),{dict:n}=t,[a,r]=await Promise.all([n.getAsync("Filter"),n.getAsync("DecodeParms")]),o=Array.isArray(a)?await n.xref.fetchIfRefAsync(a[0]):a,l=re(o,"FlateDecode");if(i.length>=256&&!l)try{let h=new CompressionStream("deflate"),f=h.writable.getWriter();await f.ready,f.write(i).then(async()=>{await f.ready,await f.close()}).catch(()=>{}),i=await new Response(h.readable).bytes();let u,p;a?l||(u=Array.isArray(a)?[tt.get("FlateDecode"),...a]:[tt.get("FlateDecode"),a],r&&(p=Array.isArray(r)?[null,...r]:[null,r])):u=tt.get("FlateDecode"),u&&n.set("Filter",u),p&&n.set("DecodeParms",p)}catch(h){Wt(`writeStream - cannot compress data: "${h}".`)}let c=Us(i);s&&(c=s.encryptString(c)),n.set("Length",c.length),await gf(n,e,s),e.push(` stream
8
+ `,c,`
9
+ endstream`)}async function S4(t,e,s){e.push("[");for(let i=0,n=t.length;i<n;i++)await Ol(t[i],e,s),i<n-1&&e.push(" ");e.push("]")}async function Ol(t,e,s){t instanceof tt?e.push(`/${zh(t.name)}`):t instanceof nt?e.push(`${t.num} ${t.gen} R`):Array.isArray(t)||ArrayBuffer.isView(t)?await S4(t,e,s):typeof t=="string"?(s&&(t=s.encryptString(t)),e.push(`(${_a(t)})`)):typeof t=="number"||typeof t=="boolean"?e.push(t.toString()):t instanceof B?await gf(t,e,s):t instanceof Lt?await A4(t,e,s):t===null?e.push("null"):T(`Unhandled value in writer: ${typeof t}, please file a bug.`)}function $c(t,e,s,i){for(let n=e+s-1;n>s-1;n--)i[n]=t&255,t>>=8;return s+e}function s0(t,e,s){let i=t.length;for(let n=0;n<i;n++)s[e+n]=t.charCodeAt(n)&255;return e+i}function C4(t,e){let s=Math.floor(Date.now()/1000),i=e.filename||"",n=[s.toString(),i,t.toString(),...e.infoMap.values()],a=Math.sumPrecise(n.map((l)=>l.length)),r=new Uint8Array(a),o=0;for(let l of n)o=s0(l,o,r);return Us(vn(r,0,r.length))}function I4(t,e){let s=new Il({hasAttributes:!0}).parseFromString(t);for(let{xfa:n}of e){if(!n)continue;let{path:a,value:r}=n;if(!a)continue;let o=I1(a),l=s.documentElement.searchNode(o,0);!l&&o.length>1&&(l=s.documentElement.searchNode([o.at(-1)],0)),l?l.childNodes=Array.isArray(r)?r.map((c)=>new Cr("value",c)):[new Cr("#text",r)]:T(`Node not found for path: ${a}`)}let i=[];return s.documentElement.dump(i),i.join("")}async function T4({xref:t,acroForm:e,acroFormRef:s,hasXfa:i,hasXfaDatasetsEntry:n,xfaDatasetsRef:a,needAppearances:r,changes:o}){if(i&&!n&&!a&&T("XFA - Cannot save it"),!r&&(!i||!a||n))return;let l=e.clone();if(i&&!n){let c=e.get("XFA").slice();c.splice(2,0,"datasets"),c.splice(3,0,a),l.set("XFA",c)}r&&l.set("NeedAppearances",!0),o.put(s,{data:l})}function F4({xfaData:t,xfaDatasetsRef:e,changes:s,xref:i}){if(t===null){let a=i.fetchIfRef(e);t=I4(a.getString(),s)}let n=new Bs(t);n.dict=new B(i),n.dict.setIfName("Type","EmbeddedFile"),s.put(e,{data:n})}async function E4(t,e,s,i,n){n.push(`xref
10
+ `);let a=i0(s),r=0;for(let{ref:o,data:l}of s)o.num===a[r]&&(n.push(`${a[r]} ${a[r+1]}
11
+ `),r+=2),l!==null?(n.push(`${e.toString().padStart(10,"0")} ${Math.min(o.gen,65535).toString().padStart(5,"0")} n\r
12
+ `),e+=l.length):n.push(`0000000000 ${Math.min(o.gen+1,65535).toString().padStart(5,"0")} f\r
13
+ `);n0(e,t,i),n.push(`trailer
14
+ `),await gf(i,n,null),n.push(`
15
+ startxref
16
+ `,e.toString(),`
17
+ %%EOF
18
+ `)}function i0(t){let e=[];for(let{ref:s}of t)s.num===e.at(-2)+e.at(-1)?e[e.length-1]+=1:e.push(s.num,1);return e}async function M4(t,e,s,i,n){let a=[],r=0,o=0;for(let{ref:g,data:w,objStreamRef:b,index:j}of s){let v;r=Math.max(r,e),b?(v=j,a.push([2,b.num,v])):w!==null?(v=Math.min(g.gen,65535),a.push([1,e,v]),e+=w.length):(v=Math.min(g.gen+1,65535),a.push([0,0,v])),o=Math.max(o,v)}i.set("Index",i0(s));let l=nu(r),c=nu(o),h=[1,l,c];i.set("W",h),n0(e,t,i);let f=Math.sumPrecise(h),u=new Uint8Array(f*a.length),p=new je(u);p.dict=i;let m=0;for(let[g,w,b]of a)m=$c(g,h[0],m,u),m=$c(w,h[1],m,u),m=$c(b,h[2],m,u);await e0(t.newRef,p,n,{}),n.push(`startxref
19
+ `,e.toString(),`
20
+ %%EOF
21
+ `)}function n0(t,e,s){if(Array.isArray(e.fileIds)&&e.fileIds.length>0){let i=C4(t,e);s.set("ID",[e.fileIds[0]||i,i])}}function B4(t,e,s){let i=new B(null);i.setIfDefined("Prev",t?.startXRef);let n=t.newRef;return s?(e.put(n,{data:""}),i.set("Size",n.num+1),i.setIfName("Type","XRef")):i.set("Size",n.num),i.setIfDefined("Root",t?.rootRef),i.setIfDefined("Info",t?.infoRef),i.setIfDefined("Encrypt",t?.encryptRef),i}async function P4(t,e,s=[]){let i=[];for(let[n,{data:a,objStreamRef:r,index:o}]of t.items()){if(r){i.push({ref:n,data:a,objStreamRef:r,index:o});continue}if(a===null||typeof a=="string"){i.push({ref:n,data:a});continue}await e0(n,a,s,e),i.push({ref:n,data:s.join("")}),s.length=0}return i.sort((n,a)=>n.ref.num-a.ref.num)}async function a0({originalData:t,xrefInfo:e,changes:s,xref:i=null,hasXfa:n=!1,xfaDatasetsRef:a=null,hasXfaDatasetsEntry:r=!1,needAppearances:o,acroFormRef:l=null,acroForm:c=null,xfaData:h=null,useXrefStream:f=!1}){await T4({xref:i,acroForm:c,acroFormRef:l,hasXfa:n,hasXfaDatasetsEntry:r,xfaDatasetsRef:a,needAppearances:o,changes:s}),n&&F4({xfaData:h,xfaDatasetsRef:a,changes:s,xref:i});let u=B4(e,s,f),p=[],m=await P4(s,i,p),g=t.length,w=t.at(-1);w!==10&&w!==13&&(p.push(`
22
+ `),g+=1);for(let{data:q}of m)q!==null&&p.push(q);await(f?M4(e,g,m,u,p):E4(e,g,m,u,p));let b=t.length+Math.sumPrecise(p.map((q)=>q.length)),j=new Uint8Array(b);j.set(t);let v=t.length;for(let q of p)v=s0(q,v,j);return j}function $4(t){Number.isInteger(t)&&(bf=t)}function V4(){return bf}function Ll(t){bf>=Nl.INFOS&&console.info(`Info: ${t}`)}function ne(t){bf>=Nl.WARNINGS&&console.warn(`Warning: ${t}`)}function Se(t){throw Error(t)}function Oe(t,e){t||Se(e)}function W4(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function wf(t,e=null,s=null){if(!t)return null;if(s&&typeof t=="string"&&(s.addDefaultProtocol&&t.startsWith("www.")&&t.match(/\./g)?.length>=2&&(t=`http://${t}`),s.tryConvertEncoding))try{t=Z4(t)}catch{}let i=e?URL.parse(t,e):URL.parse(t);return W4(i)?i:null}function yf(t,e,s=!1){let i=URL.parse(t);return i?(i.hash=e,i.href):s&&wf(t,"http://example.com")?t.split("#",1)[0]+`${e?`#${e}`:""}`:""}function Ih(t){return t.substring(t.lastIndexOf("/")+1)}function se(t,e,s,i=!1){return Object.defineProperty(t,e,{value:s,enumerable:!i,configurable:!0,writable:!1}),s}function Y4(t){(typeof t!="object"||t?.length===void 0)&&Se("Invalid argument for bytesToString");let e=t.length,s=8192;if(e<s)return String.fromCharCode.apply(null,t);let i=[];for(let n=0;n<e;n+=s){let a=Math.min(n+s,e),r=t.subarray(n,a);i.push(String.fromCharCode.apply(null,r))}return i.join("")}function zl(t){typeof t!="string"&&Se("Invalid argument for stringToBytes");let e=t.length,s=new Uint8Array(e);for(let i=0;i<e;++i)s[i]=t.charCodeAt(i)&255;return s}function X4(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,t&255)}function Q4(){let t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}function J4(){try{return Function(""),!0}catch{return!1}}function Z4(t){return decodeURIComponent(escape(t))}function r0(t){return Xf||(Xf=/([\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,Op=new Map([["ſt","ſt"]])),t.replaceAll(Xf,(e,s,i)=>s?s.normalize("NFKC"):Op.get(i))}function jf(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();let t=new Uint8Array(32);return crypto.getRandomValues(t),Y4(t)}function t8(t,e,s){if(!Array.isArray(s)||s.length<2)return!1;let[i,n,...a]=s;if(!t(i)&&!Number.isInteger(i)||!e(n))return!1;let r=a.length,o=!0;switch(n.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;o=!1;break;default:return!1}for(let l of a)if(!(typeof l=="number"||o&&l===null))return!1;return!0}function rs(t,e,s){return Math.min(Math.max(t,e),s)}async function Ul(t,e="text"){if(Ir(t,document.baseURI)){let s=await fetch(t);if(!s.ok)throw Error(s.statusText);switch(e){case"blob":return s.blob();case"bytes":return s.bytes();case"json":return s.json()}return s.text()}return new Promise((s,i)=>{let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=e==="bytes"?"arraybuffer":e,n.onreadystatechange=()=>{if(n.readyState===XMLHttpRequest.DONE){if(n.status===200||n.status===0){switch(e){case"bytes":s(new Uint8Array(n.response));return;case"blob":case"json":s(n.response);return}s(n.responseText);return}i(Error(n.statusText))}},n.send(null)})}function Yr(t){let e=t.length,s=0;for(;s<e&&t[s].trim()==="";)s++;return t.substring(s,s+5).toLowerCase()==="data:"}function Vl(t){return typeof t=="string"&&/\.pdf$/i.test(t)}function o0(t){return[t]=t.split(/[#?]/,1),Ih(t)}function l0(t,e="document.pdf"){if(typeof t!="string")return e;if(Yr(t))return ne('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;let s=d((r)=>{try{return new URL(r)}catch{try{return new URL(decodeURIComponent(r))}catch{try{return new URL(r,"https://foo.bar")}catch{try{return new URL(decodeURIComponent(r),"https://foo.bar")}catch{return null}}}}},"getURL")(t);if(!s)return e;let i=d((r)=>{try{let o=decodeURIComponent(r);return o.includes("/")&&(o=Ih(o),/^\.pdf$/i.test(o))?r:o}catch{return r}},"decode"),n=/\.pdf$/i,a=Ih(s.pathname);if(n.test(a))return i(a);if(s.searchParams.size>0){let r=d((l)=>[...l].findLast((c)=>n.test(c)),"getLast"),o=r(s.searchParams.values())??r(s.searchParams.keys());if(o)return i(o)}if(s.hash){let r=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(s.hash);if(r)return i(r[0])}return e}function Ir(t,e){let s=e?URL.parse(t,e):URL.parse(t);return/https?:/.test(s?.protocol??"")}function oi(t){t.preventDefault()}function He(t){t.preventDefault(),t.stopPropagation()}function e8(t){console.log("Deprecated API usage: "+t)}function c0(t,{scale:e=1,rotation:s=0}){let{width:i,height:n}=t.attributes.style,a=[0,0,parseInt(i),parseInt(n)];return new Gl({viewBox:a,userUnit:1,scale:e,rotation:s})}function Va(t){if(t.startsWith("#")){let e=parseInt(t.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map((e)=>parseInt(e)):t.startsWith("rgba(")?t.slice(5,-1).split(",",3).map((e)=>parseInt(e)):(ne(`Not a valid color format: "${t}"`),[0,0,0])}function s8(t){let e=document.createElement("span");e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e);for(let s of t.keys()){e.style.color=s;let i=window.getComputedStyle(e).color;t.set(s,Va(i))}e.remove()}function Re(t){let{a:e,b:s,c:i,d:n,e:a,f:r}=t.getTransform();return[e,s,i,n,a,r]}function Hi(t){let{a:e,b:s,c:i,d:n,e:a,f:r}=t.getTransform().invertSelf();return[e,s,i,n,a,r]}function _n(t,e,s=!1,i=!0){if(e instanceof Gl){let{pageWidth:n,pageHeight:a}=e.rawDims,{style:r}=t,o=es.isCSSRoundSupported,l=`var(--total-scale-factor) * ${n}px`,c=`var(--total-scale-factor) * ${a}px`,h=o?`round(down, ${l}, var(--scale-round-x))`:`calc(${l})`,f=o?`round(down, ${c}, var(--scale-round-y))`:`calc(${c})`;!s||e.rotation%180===0?(r.width=h,r.height=f):(r.width=f,r.height=h)}i&&t.setAttribute("data-main-rotation",e.rotation)}function f0(t,e){e=rs(e??1,0,1);let s=255*(1-e);return t.map((i)=>Math.round(i*e+s))}function f1(t,e){let s=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.max(s,i,n),r=Math.min(s,i,n),o=(a+r)/2;if(a===r)e[0]=e[1]=0;else{let l=a-r;switch(e[1]=o<0.5?l/(a+r):l/(2-a-r),a){case s:e[0]=((i-n)/l+(i<n?6:0))*60;break;case i:e[0]=((n-s)/l+2)*60;break;case n:e[0]=((s-i)/l+4)*60;break}}e[2]=o}function Eh(t,e){let s=t[0],i=t[1],n=t[2],a=(1-Math.abs(2*n-1))*i,r=a*(1-Math.abs(s/60%2-1)),o=n-a/2;switch(Math.floor(s/60)){case 0:e[0]=a+o,e[1]=r+o,e[2]=o;break;case 1:e[0]=r+o,e[1]=a+o,e[2]=o;break;case 2:e[0]=o,e[1]=a+o,e[2]=r+o;break;case 3:e[0]=o,e[1]=r+o,e[2]=a+o;break;case 4:e[0]=r+o,e[1]=o,e[2]=a+o;break;case 5:case 6:e[0]=a+o,e[1]=o,e[2]=r+o;break}}function u1(t){return t<=0.03928?t/12.92:((t+0.055)/1.055)**2.4}function d1(t,e,s){Eh(t,s),s.map(u1);let i=0.2126*s[0]+0.7152*s[1]+0.0722*s[2];Eh(e,s),s.map(u1);let n=0.2126*s[0]+0.7152*s[1]+0.0722*s[2];return i>n?(i+0.05)/(n+0.05):(n+0.05)/(i+0.05)}function u0(t,e){let s=t[0]+t[1]*256+t[2]*65536+e[0]*16777216+e[1]*4294967296+e[2]*1099511627776,i=Np.get(s);if(i)return i;let n=new Float32Array(9),a=n.subarray(0,3),r=n.subarray(3,6);f1(t,r);let o=n.subarray(6,9);f1(e,o);let l=o[2]<0.5,c=l?12:4.5;if(r[2]=l?Math.sqrt(r[2]):1-Math.sqrt(1-r[2]),d1(r,o,a)<c){let h,f;l?(h=r[2],f=1):(h=0,f=r[2]);let u=0.005;for(;f-h>u;){let p=r[2]=(h+f)/2;l===d1(r,o,a)<c?h=p:f=p}r[2]=l?f:h}return Eh(r,a),i=xt.makeHexColor(Math.round(a[0]*255),Math.round(a[1]*255),Math.round(a[2]*255)),Np.set(s,i),i}function xf({html:t,dir:e,className:s},i){let n=document.createDocumentFragment();if(typeof t=="string"){let a=document.createElement("p");a.dir=e||"auto";let r=t.split(/(?:\r\n?|\n)/);for(let o=0,l=r.length;o<l;++o){let c=r[o];a.append(document.createTextNode(c)),o<l-1&&a.append(document.createElement("br"))}n.append(a)}else qf.render({xfaHtml:t,div:n,intent:"richText"});n.firstElementChild.classList.add("richText",s),i.append(n)}function d0(t){let e=new Path2D;if(!t)return e;for(let s=0,i=t.length;s<i;)switch(t[s++]){case bo.moveTo:e.moveTo(t[s++],t[s++]);break;case bo.lineTo:e.lineTo(t[s++],t[s++]);break;case bo.curveTo:e.bezierCurveTo(t[s++],t[s++],t[s++],t[s++],t[s++],t[s++]);break;case bo.quadraticCurveTo:e.quadraticCurveTo(t[s++],t[s++],t[s++],t[s++]);break;case bo.closePath:e.closePath();break;default:ne(`Unrecognized drawing path operator: ${t[s-1]}`);break}return e}function p0(t,e,s){for(let i of s)e.addEventListener(i,t[i].bind(t))}function p1(t,e,s,i,n,a){t[e*4+0]=Math.min(t[e*4+0],s),t[e*4+1]=Math.min(t[e*4+1],i),t[e*4+2]=Math.max(t[e*4+2],n),t[e*4+3]=Math.max(t[e*4+3],a)}function j8(t){if(t instanceof URL)return t;if(typeof t=="string"){if(Si){if(/^[a-z][a-z0-9\-+.]+:/i.test(t))return new URL(t);let s=process.getBuiltinModule("url");return new URL(s.pathToFileURL(t))}let e=URL.parse(t,window.location);if(e)return e}throw Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function v8(t){if(Si&&typeof Buffer<"u"&&t instanceof Buffer)throw Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if(typeof t=="string")return zl(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||typeof t=="object"&&!isNaN(t?.length))return new Uint8Array(t);throw Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function To(t){if(typeof t!="string")return null;if(t.endsWith("/"))return t;throw Error(`Invalid factory url: "${t}" must include trailing slash.`)}function b1(){}function Ls(t){if(t instanceof hn||t instanceof gl||t instanceof c1||t instanceof Lr||t instanceof Vc)return t;switch(t instanceof Error||typeof t=="object"&&t!==null||Se('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new hn(t.message);case"InvalidPDFException":return new gl(t.message);case"PasswordException":return new c1(t.message,t.code);case"ResponseException":return new Lr(t.message,t.status,t.missing);case"UnknownErrorException":return new Vc(t.message,t.details)}return new Vc(t.message,t.toString())}async function S8(t){let e=await process.getBuiltinModule("fs").promises.readFile(t);return new Uint8Array(e)}function E8(){k0.init()}function M8(){return k0.isReady}function B8(t,e,s,i,n,a){return k0.draw(t,e,s,i,n,a)}function Go(t,e){if(!e)return;let s=e[2]-e[0],i=e[3]-e[1],n=new Path2D;n.rect(e[0],e[1],s,i),t.clip(n)}function Wc(t,e,s,i,n,a,r,o){let{coords:l,colors:c}=e,h=t.data,f=t.width*4,u;l[s*2+1]>l[i*2+1]&&(u=s,s=i,i=u,u=a,a=r,r=u),l[i*2+1]>l[n*2+1]&&(u=i,i=n,n=u,u=r,r=o,o=u),l[s*2+1]>l[i*2+1]&&(u=s,s=i,i=u,u=a,a=r,r=u);let p=(l[s*2]+e.offsetX)*e.scaleX,m=(l[s*2+1]+e.offsetY)*e.scaleY,g=(l[i*2]+e.offsetX)*e.scaleX,w=(l[i*2+1]+e.offsetY)*e.scaleY,b=(l[n*2]+e.offsetX)*e.scaleX,j=(l[n*2+1]+e.offsetY)*e.scaleY;if(m>=j)return;let v=c[a*4],q=c[a*4+1],x=c[a*4+2],k=c[r*4],A=c[r*4+1],S=c[r*4+2],I=c[o*4],E=c[o*4+1],D=c[o*4+2],O=Math.round(m),$=Math.round(j),it,W,H,L,rt,yt,X,St;for(let qt=O;qt<=$;qt++){if(qt<w){let U=qt<m?0:(m-qt)/(m-w);it=p-(p-g)*U,W=v-(v-k)*U,H=q-(q-A)*U,L=x-(x-S)*U}else{let U;qt>j?U=1:w===j?U=0:U=(w-qt)/(w-j),it=g-(g-b)*U,W=k-(k-I)*U,H=A-(A-E)*U,L=S-(S-D)*U}let R;qt<m?R=0:qt>j?R=1:R=(m-qt)/(m-j),rt=p-(p-b)*R,yt=v-(v-I)*R,X=q-(q-E)*R,St=x-(x-D)*R;let V=Math.round(Math.min(it,rt)),N=Math.round(Math.max(it,rt)),_=f*qt+V*4;for(let U=V;U<=N;U++)R=(it-U)/(it-rt),R<0?R=0:R>1&&(R=1),h[_++]=W-(W-yt)*R|0,h[_++]=H-(H-X)*R|0,h[_++]=L-(L-St)*R|0,h[_++]=255}}function D8(t,e,s){let{coords:i,colors:n}=e,a,r;switch(e.type){case Ia.LATTICE:let o=e.verticesPerRow,l=Math.floor(i.length/o)-1,c=o-1;for(a=0;a<l;a++){let h=a*o;for(let f=0;f<c;f++,h++)Wc(t,s,i[h],i[h+1],i[h+o],n[h],n[h+1],n[h+o]),Wc(t,s,i[h+o+1],i[h+1],i[h+o],n[h+o+1],n[h+1],n[h+o])}break;case Ia.TRIANGLES:for(a=0,r=i.length;a<r;a+=3)Wc(t,s,i[a],i[a+1],i[a+2],n[a],n[a+1],n[a+2]);break;default:throw Error("illegal figure")}}function _8(t){switch(t[0]){case"RadialAxial":return new P8(t);case"Mesh":return new R8(t);case"Dummy":return new H8}throw Error(`Unknown IR type: ${t[0]}`)}function O8({src:t,srcPos:e=0,dest:s,width:i,height:n,nonBlackColor:a=4294967295,inverseDecode:r=!1}){let o=es.isLittleEndian?4278190080:255,[l,c]=r?[a,o]:[o,a],h=i>>3,f=i&7,u=l^c,p=t.length;s=new Uint32Array(s.buffer);let m=0;for(let g=0;g<n;++g){for(let b=e+h;e<b;++e,m+=8){let j=t[e];s[m]=l^-(j>>7&1)&u,s[m+1]=l^-(j>>6&1)&u,s[m+2]=l^-(j>>5&1)&u,s[m+3]=l^-(j>>4&1)&u,s[m+4]=l^-(j>>3&1)&u,s[m+5]=l^-(j>>2&1)&u,s[m+6]=l^-(j>>1&1)&u,s[m+7]=l^-(j&1)&u}if(f===0)continue;let w=e<p?t[e++]:255;for(let b=0;b<f;++b,++m)s[m]=l^-(w>>7-b&1)&u}return{srcPos:e,destPos:m}}function N8(t,e){if(t._removeMirroring)throw Error("Context is already forwarding operations.");t.__originalSave=t.save,t.__originalRestore=t.restore,t.__originalRotate=t.rotate,t.__originalScale=t.scale,t.__originalTranslate=t.translate,t.__originalTransform=t.transform,t.__originalSetTransform=t.setTransform,t.__originalResetTransform=t.resetTransform,t.__originalClip=t.clip,t.__originalMoveTo=t.moveTo,t.__originalLineTo=t.lineTo,t.__originalBezierCurveTo=t.bezierCurveTo,t.__originalRect=t.rect,t.__originalClosePath=t.closePath,t.__originalBeginPath=t.beginPath,t._removeMirroring=()=>{t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){e.save(),this.__originalSave()},t.restore=function(){e.restore(),this.__originalRestore()},t.translate=function(s,i){e.translate(s,i),this.__originalTranslate(s,i)},t.scale=function(s,i){e.scale(s,i),this.__originalScale(s,i)},t.transform=function(s,i,n,a,r,o){e.transform(s,i,n,a,r,o),this.__originalTransform(s,i,n,a,r,o)},t.setTransform=function(s,i,n,a,r,o){e.setTransform(s,i,n,a,r,o),this.__originalSetTransform(s,i,n,a,r,o)},t.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},t.rotate=function(s){e.rotate(s),this.__originalRotate(s)},t.clip=function(s){e.clip(s),this.__originalClip(s)},t.moveTo=function(s,i){e.moveTo(s,i),this.__originalMoveTo(s,i)},t.lineTo=function(s,i){e.lineTo(s,i),this.__originalLineTo(s,i)},t.bezierCurveTo=function(s,i,n,a,r,o){e.bezierCurveTo(s,i,n,a,r,o),this.__originalBezierCurveTo(s,i,n,a,r,o)},t.rect=function(s,i,n,a){e.rect(s,i,n,a),this.__originalRect(s,i,n,a)},t.closePath=function(){e.closePath(),this.__originalClosePath()},t.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}function Fo(t,e,s,i,n,a,r,o,l,c){let[h,f,u,p,m,g]=Re(t);if(f===0&&u===0){let j=r*h+m,v=Math.round(j),q=o*p+g,x=Math.round(q),k=(r+l)*h+m,A=Math.abs(Math.round(k)-v)||1,S=(o+c)*p+g,I=Math.abs(Math.round(S)-x)||1;return t.setTransform(Math.sign(h),0,0,Math.sign(p),v,x),t.drawImage(e,s,i,n,a,0,0,A,I),t.setTransform(h,f,u,p,m,g),[A,I]}if(h===0&&p===0){let j=o*u+m,v=Math.round(j),q=r*f+g,x=Math.round(q),k=(o+c)*u+m,A=Math.abs(Math.round(k)-v)||1,S=(r+l)*f+g,I=Math.abs(Math.round(S)-x)||1;return t.setTransform(0,Math.sign(f),Math.sign(u),0,v,x),t.drawImage(e,s,i,n,a,0,0,I,A),t.setTransform(h,f,u,p,m,g),[I,A]}t.drawImage(e,s,i,n,a,r,o,l,c);let w=Math.hypot(h,f),b=Math.hypot(u,p);return[w*l,b*c]}function j1(t,e){if(e instanceof ImageData){t.putImageData(e,0,0);return}let{height:s,width:i}=e,n=s%Zs,a=(s-n)/Zs,r=n===0?a:a+1,o=t.createImageData(i,Zs),l=0,c,h=e.data,f=o.data,u,p,m,g;if(e.kind===zo.GRAYSCALE_1BPP){let w=h.byteLength,b=new Uint32Array(f.buffer,0,f.byteLength>>2),j=b.length,v=i+7>>3,x=es.isLittleEndian?4278190080:255;for(u=0;u<r;u++){for(m=u<a?Zs:n,c=0,p=0;p<m;p++){let k=w-l,A=0,S=k>v?i:k*8-7,I=S&-8,E=0,D=0;for(;A<I;A+=8)D=h[l++],b[c++]=D&128?4294967295:x,b[c++]=D&64?4294967295:x,b[c++]=D&32?4294967295:x,b[c++]=D&16?4294967295:x,b[c++]=D&8?4294967295:x,b[c++]=D&4?4294967295:x,b[c++]=D&2?4294967295:x,b[c++]=D&1?4294967295:x;for(;A<S;A++)E===0&&(D=h[l++],E=128),b[c++]=D&E?4294967295:x,E>>=1}for(;c<j;)b[c++]=0;t.putImageData(o,0,u*Zs)}}else if(e.kind===zo.RGBA_32BPP){for(p=0,g=i*Zs*4,u=0;u<a;u++)f.set(h.subarray(l,l+g)),l+=g,t.putImageData(o,0,p),p+=Zs;u<r&&(g=i*n*4,f.set(h.subarray(l,l+g)),t.putImageData(o,0,p))}else if(e.kind===zo.RGB_24BPP)for(m=Zs,g=i*m,u=0;u<r;u++){for(u>=a&&(m=n,g=i*m),c=0,p=g;p--;)f[c++]=h[l++],f[c++]=h[l++],f[c++]=h[l++],f[c++]=255;t.putImageData(o,0,u*Zs)}else throw Error(`bad image kind: ${e.kind}`)}function v1(t,e){if(e.bitmap){t.drawImage(e.bitmap,0,0);return}let{height:s,width:i}=e,n=s%Zs,a=(s-n)/Zs,r=n===0?a:a+1,o=t.createImageData(i,Zs),l=0,c=e.data,h=o.data;for(let f=0;f<r;f++){let u=f<a?Zs:n;({srcPos:l}=O8({src:c,srcPos:l,dest:h,width:i,height:u,nonBlackColor:0})),t.putImageData(o,0,f*Zs)}}function hr(t,e){let s=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(let i of s)t[i]!==void 0&&(e[i]=t[i]);t.setLineDash!==void 0&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function Eo(t){t.strokeStyle=t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",t.setLineDash!==void 0&&(t.setLineDash([]),t.lineDashOffset=0);let{filter:e}=t;e!=="none"&&e!==""&&(t.filter="none")}function k1(t,e){if(e)return!0;xt.singularValueDecompose2dScale(t,gi);let s=Math.fround(Ki.pixelRatio*da.PDF_TO_CSS_UNITS);return gi[0]<=s&&gi[1]<=s}function L8(t){let e=!0,s=i("filename\\*","i").exec(t);if(s){s=s[1];let h=o(s);return h=unescape(h),h=l(h),h=c(h),a(h)}if(s=r(t),s){let h=c(s);return a(h)}if(s=i("filename","i").exec(t),s){s=s[1];let h=o(s);return h=c(h),a(h)}function i(h,f){return new RegExp("(?:^|;)\\s*"+h+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',f)}d(i,"toParamRegExp");function n(h,f){if(h){if(!/^[\x00-\xFF]+$/.test(f))return f;try{let u=new TextDecoder(h,{fatal:!0}),p=zl(f);f=u.decode(p),e=!1}catch{}}return f}d(n,"textdecode");function a(h){return e&&/[\x80-\xff]/.test(h)&&(h=n("utf-8",h),e&&(h=n("iso-8859-1",h))),h}d(a,"fixupEncoding");function r(h){let f=[],u,p=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(u=p.exec(h))!==null;){let[,g,w,b]=u;if(g=parseInt(g,10),g in f){if(g===0)break;continue}f[g]=[w,b]}let m=[];for(let g=0;g<f.length&&g in f;++g){let[w,b]=f[g];b=o(b),w&&(b=unescape(b),g===0&&(b=l(b))),m.push(b)}return m.join("")}d(r,"rfc2231getparam");function o(h){if(h.startsWith('"')){let f=h.slice(1).split("\\\"");for(let u=0;u<f.length;++u){let p=f[u].indexOf('"');p!==-1&&(f[u]=f[u].slice(0,p),f.length=u+1),f[u]=f[u].replaceAll(/\\(.)/g,"$1")}h=f.join('"')}return h}d(o,"rfc2616unquote");function l(h){let f=h.indexOf("'");if(f===-1)return h;let u=h.slice(0,f),p=h.slice(f+1).replace(/^[^']*'/,"");return n(u,p)}d(l,"rfc5987decode");function c(h){return!h.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(h)?h:h.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(f,u,p,m){if(p==="q"||p==="Q")return m=m.replaceAll("_"," "),m=m.replaceAll(/=([0-9a-fA-F]{2})/g,function(g,w){return String.fromCharCode(parseInt(w,16))}),n(u,m);try{m=atob(m)}catch{}return n(u,m)})}return d(c,"rfc2047decode"),""}function x0(t,e){let s=new Headers;if(!t||!e||typeof e!="object")return s;for(let i in e){let n=e[i];n!==void 0&&s.append(i,n)}return s}function Ql(t){return URL.parse(t)?.origin??null}function A0({responseHeaders:t,isHttp:e,rangeChunkSize:s,disableRange:i}){let n={contentLength:0,isRangeSupported:!1},a=parseInt(t.get("Content-Length"),10);return!Number.isInteger(a)||(n.contentLength=a,a<=2*s)||i||!e||t.get("Accept-Ranges")!=="bytes"||(t.get("Content-Encoding")||"identity")==="identity"&&(n.isRangeSupported=!0),n}function S0(t){let e=t.get("Content-Disposition");if(e){let s=L8(e);if(s.includes("%"))try{s=decodeURIComponent(s)}catch{}if(Vl(s))return s}return null}function Jl(t,e){return new Lr(`Unexpected server response (${t}) while retrieving PDF "${e.href}".`,t,t===404||t===0&&e.protocol==="file:")}function C0(t,e){if(t!==e)throw Error(`Expected range response-origin "${t}" to match "${e}".`)}function I0(t,e,s,i){return fetch(t,{method:"GET",headers:e,signal:i.signal,mode:"cors",credentials:s?"include":"same-origin",redirect:"follow"})}function T0(t,e){if(t!==200&&t!==206)throw Jl(t,e)}function Zl(t){if(t instanceof Uint8Array)return t.buffer;if(t instanceof ArrayBuffer)return t;throw Error(`getArrayBuffer - unexpected data: ${t}`)}function q1(t){return t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer}function tc(){for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}function K8(t){return typeof t!="string"?t:zl(t).buffer}function F0(t){let{Readable:e}=process.getBuiltinModule("stream");return typeof e.toWeb=="function"?e.toWeb(t):process.getBuiltinModule("module").createRequire(import.meta.url)("node-readable-to-web-readable-stream").makeDefaultReadableStreamFromNodeReadable(t)}function e7(t){return Ir(t)?z8:Si?J8:Y8}function M0(t={}){typeof t=="string"||t instanceof URL?t={url:t}:(t instanceof ArrayBuffer||ArrayBuffer.isView(t))&&(t={data:t});let e=new B0,{docId:s}=e,i=t.url?j8(t.url):null,n=t.data?v8(t.data):null,a=t.httpHeaders||null,r=t.withCredentials===!0,o=t.password??null,l=t.range instanceof Cf?t.range:null,c=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:65536,h=t.worker instanceof ps?t.worker:null,f=t.verbosity,u=typeof t.docBaseUrl=="string"&&!Yr(t.docBaseUrl)?t.docBaseUrl:null,p=To(t.cMapUrl),m=t.cMapPacked!==!1,g=To(t.iccUrl),w=To(t.standardFontDataUrl),b=To(t.wasmUrl),j=t.stopAtErrors!==!0,v=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,q=t.isEvalSupported!==!1,x=typeof t.isOffscreenCanvasSupported=="boolean"?t.isOffscreenCanvasSupported:!Si,k=typeof t.isImageDecoderSupported=="boolean"?t.isImageDecoderSupported:!Si&&(es.platform.isFirefox||!globalThis.chrome),A=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,S=typeof t.disableFontFace=="boolean"?t.disableFontFace:Si,I=t.fontExtraProperties===!0,E=t.enableXfa===!0,D=t.ownerDocument||globalThis.document,O=t.disableRange===!0,$=t.disableStream===!0,it=t.disableAutoFetch===!0,W=t.pdfBug===!0,H=t.CanvasFactory||(Si?I8:x8),L=t.FilterFactory||(Si?C8:A8),rt=t.BinaryDataFactory||(Si?T8:w1),yt=t.enableHWA===!0,X=t.enableWebGPU===!0,St=t.useWasm!==!1,qt=t.pagesMapper||new a7,R=typeof t.useSystemFonts=="boolean"?t.useSystemFonts:!Si&&!S,V=typeof t.useWorkerFetch=="boolean"?t.useWorkerFetch:!!(rt===w1&&p&&m&&w&&b&&Ir(p,document.baseURI)&&Ir(w,document.baseURI)&&Ir(b,document.baseURI)),N=null;$4(f);let _={canvasFactory:new H({ownerDocument:D,enableHWA:yt}),filterFactory:new L({docId:s,ownerDocument:D}),binaryDataFactory:V?null:new rt({cMapUrl:p,standardFontDataUrl:w,wasmUrl:b})};h||(h=ps.create({verbosity:f,port:Ra.workerPort}),e._worker=h);let U={docId:s,apiVersion:"5.6.205",data:n,password:o,disableAutoFetch:it,rangeChunkSize:c,docBaseUrl:u,enableXfa:E,evaluatorOptions:{maxImageSize:v,disableFontFace:S,ignoreErrors:j,isEvalSupported:q,isOffscreenCanvasSupported:x,isImageDecoderSupported:k,canvasMaxAreaInBytes:A,fontExtraProperties:I,useSystemFonts:R,useWasm:St,useWorkerFetch:V,cMapUrl:p,cMapPacked:m,iccUrl:g,standardFontDataUrl:w,wasmUrl:b,enableWebGPU:X}},ot={ownerDocument:D,pdfBug:W,styleElement:N,enableHWA:yt,loadingParams:{disableAutoFetch:it,enableXfa:E}};return h.promise.then(function(){if(e.destroyed)throw Error("Loading aborted");if(h.destroyed)throw Error("Worker was destroyed");let ft=h.messageHandler.sendWithPromise("GetDocRequest",U,n?[n.buffer]:null),J;if(!n)if(l)J=new $8({pdfDataRangeTransport:l,disableRange:O,disableStream:$});else if(i)J=new(e7(i))({url:i,httpHeaders:a,withCredentials:r,rangeChunkSize:c,disableRange:O,disableStream:$});else throw Error("getDocument - expected either `data`, `range`, or `url` parameter.");return ft.then((Ct)=>{if(e.destroyed)throw Error("Loading aborted");if(h.destroyed)throw Error("Worker was destroyed");let It=new vr(s,Ct,h.port),Et=new o7(It,e,J,ot,_,qt);e._transport=Et,It.send("Ready",null)})}).catch(e._capability.reject),e}function x1(t){return Math.floor(Math.max(0,Math.min(1,t))*255).toString(16).padStart(2,"0")}function dr(t){return Math.max(0,Math.min(255,255*t))}function Mo(t){return`${(t*100).toFixed(2)}%`}var G7,d=(t,e)=>G7(t,"name",{value:e,configurable:!0}),$7,V7,Ka,W7,Fa,Tn=1.35,Yc=0.35,J0,zs,Zp="pdfjs_internal_editor_",Xi,Z0,Ya,tm,ms,em,Zf,as,Ui,Xa,sm,K7,Y7,$o,C,Te,tp,_h,$s,Fr,Df,Wo,ep,Q,Cs,Ms,Bo,de,X7,Rf=null,sp=null,Q7="pdfjs_internal_id_",Nh,J7,Z7,ty,bs,fm,um,Ac,tt,Je,pm,B,nt,Me,ts,Lt,mm,tu=2147483647,ey=-2147483648,Gi,eu,su,Ce,Qc,qn,aa,Hf,sy,hs,Gs,Sm,yo=null,M1=0,_f,iy,js,Nm,au,Lm,zm,Um,Gm,D1,$m,Rs,Vm,Fn,Jo,je,Bs,th,Wm,Km,ip=2048,ny=32768,np=128,ei,ay,Qm,ru=-2,dn=-1,mn=0,qs=1,Pt=2,xs=3,As=4,ou=5,lu=6,Jm=7,Zm=8,ap,rp,op,lp,cp,hp,_1,Be,tg,ir,fp,ry,up,oy,Sc=17,hg,An,sh,Zo,dp,Mr,mg,xl,ly,Ps,gg,le,pi,ih,z1,Do,oc=4017,lc=799,cc=3406,hc=2276,fc=1567,uc=3784,Qa=5793,dc=2896,hu,Ur,jo,Sl,ka,U1,qg,vs,Ja=16,cy=19,xg,Ag,Sg,Cg,hy,fy,Ig,Tg,pp,uy,dy,py,my,fu,Fg,Eg,uu,du,Mg,gy=1000,wn,Za,Ci,Pg,by,Of=16777215,$h,xr,ar,mp,gp,Ys,Un,Wg,wy,W1,En,tl,K1,Y1,an,yy,jy,Nf,vy,pu,Ar=!0,Ni,bp,ky,wp=1000,qy,xy,Ay,Sy=10,Ic,pc=391,tr,Cy,Vh,J1,Z1,Wh,Cn,td,Iy,el,Ty,sl,Lf,pr,Zg,tb,mu,Cl,il,Fy,gu,ed,bu,yp,Ey,My,mr,bi,Tc,nb,al,ab,rb,ob,By,Py,Dy=1,mc=2,gc=4,jp=8,io=16,no=32,Ry=64,ao=1,bc=2,Hy=8,_y=32,Oy=64,Ny=128,zf=256,lb,rl,id,cb,nd,ad,vp=12,kp=16,ol,Ns,fb,qp=55665,Ly=4330,ku,mb,pn,ya=1000,zy,Uy,wb,Fu,Eu,si,Fb,Sr,Eb,Mb,Bb,Xn,Rb,Gy,$y,Vy,Wy,Ky,Yy,Xy,Qy,Jy,Zy,tj,ej,sj,ij,nj,aj,ro,oo,lo,co,ho,fo,uo,po,rj,oj,lj,cj,hj,fj,uj,dj,pj,mj,gj,bj,wj,yj,jj,vj,kj,_b,Hs,wi,Ob,pa,Pu,cd,Nb,Du,Lb,zb,Ub,gr,hd,Ru,lh,Gb,za,$b,ra,Yh,Vb,Hu,_u,Ou,Qb,qj,xj,Gn,ue,qi,qa,xa,Aa,Ro,Aj,xp=3285377520,ji=4294901760,Qi=65535,Sj,ea,Cj,Ap,Ij=10,Sp,ll,Pr,Hc,Ho,e2,dd,oa,s2,i2,sa,Tj,Fj,pd,Qn,Dr,hh,Js,md,Cr,Il,o2,Cp=40,mi,ia,l2,xo,gd,Ej,fh,Ma,Rr,Jh,Ba,_e,fa,Fi,br,Oc,zi,sn,Z,Ti,Hr,K,ke,Tl,Vu,f2,Pa,Zh,cl,_o,bd,Es,Oo,ys,_r,yn,Ve,zt,Ge,ve,hl,or,Wu,Nc,wd,Ua,wr,Jn,No,Mn,Hn,fl,ul,Mj,$e,fe,Ca,rn,Ku,Bn,cn,ni,Gr,na,u2,Ao,In,Yu,d2,ri,Li,ls,p2,Dt,Lo,ce,ye,Yi,We,Bj,Pj,Tt,b2,Dj=1.02,Ip,y2,j2,Tp,Rj,yi,v2,Hj,wc,ba,er,Kt,Uf,$n,Gf,Fp,$f,Ep,Vf,So,yc,Ai,mo,go,Wf,Qu=0,x2,Y,F,ef,on,De,be,Qt,Mi,ss,jd,Mp,ht,Da="http://www.w3.org/2000/svg",uh=2,_j=3,Oj=5000,Nj,Lj,zj,S2,Bd,C2,I2,T2,F2,dh,E2,M2,Pd,B2,Dd,Rd,P2,D2,R2,H2,_2,Hd,_d,O2,N2,L2,lf,Od,z2,U2,G2,$2,V2,W2,K2,Y2,Nd,Vr,X2,Q2,J2,Z2,tw,ew,sw,Uj,iw,nw,Ld,aw,rw,cf,ow,lw,cw,hw,fw,uw,dw,pw,mw,gw,bw,ph,ww,yw,jw,vw,kw,qw,xw,Aw,Sw,Cw,Iw,Tw,Fw,Ew,zd,Na,pl,Mw,Bw,Pw,Dw,Rw,Hw,_w,Ow,Ud,Nw,Lw,mh,zw,Uw,Gw,$w,Vw,Ww,Gd,hf,Kw,Yw,Xw,ff,$d,Vd,Qw,Jw,Zw,t9,e9,uf,s9,df,i9,gh,Bp,n9,a9,at,r9,o9,l9,c9,h9,f9,u9,d9,p9,m9,g9,b9,w9,y9,j9,v9,k9,q9,x9,A9,S9,C9,I9,T9,F9,E9,M9,B9,P9,D9,R9,H9,_9,O9,N9,L9,z9,U9,G9,$9,V9,W9,K9,Y9,X9,Q9,J9,Z9,t5,e5,s5,i5,n5,a5,r5,o5,l5,c5,h5,f5,u5,d5,p5,m5,g5,b5,w5,y5,j5,v5,k5,q5,x5,A5,S5,C5,I5,T5,F5,E5,M5,B5,P5,D5,R5,H5,_5,O5,N5,L5,z5,U5,G5,$5,V5,W5,K5,Y5,X5,Q5,Gj,J5,Z5,t3,e3,s3,i3,n3,a3,r3,o3,l3,c3,h3,f3,u3,d3,p3,m3,g3,b3,w3,y3,j3,v3,k3,q3,x3,A3,S3,C3,I3,T3,F3,E3,M3,B3,P3,D3,bh,Bi,R3,H3,_3,O3,N3,L3,z3,U3,G3,$3,V3,W3,wh,s1,K3,Y3,yh,Ne,X3,Q3,J3,Z3,t6,e6,s6,i6,n6,a6,r6,o6,l6,c6,h6,f6,u6,d6,p6,m6,g6,b6,w6,y6,jh,$j,j6,vh,Vj,v6,kh,Wj,k6,qh,Kj,jc,Yj,Xj,Qj,Jj,Zj,tv,li,A6,S6,C6,I6,T6,F6,E6,M6,B6,P6,D6,R6,H6,Or,Pp,i1,_6,O6,N6,xh,_l,Ii,Kr,L6,Vs,Wi,z6,U6,G6,Wd,$6,V6,pf,Lc,W6,K6,Y6,Kd,Yd,X6,lr,zc,Q6,J6,Z6,va,t4,ev,e4,s4,i4,wa=64,n4,ut,sv,iv,Dp=512,w4,Yn,y4,mf,Qd,Ch,Jd,j4,v4,a1,yr,k4,nv,r1,Rp,Hp,av,Zd,t0,Gc,x4,vc,is,_p,rv=16,ov=64,D4,R4,H4,_4,lv,cv,hv,O4,N4,L4,Ri,z4,Si,l1,Kf=1.35,ui,kn,ml="pdfjs_internal_editor_",Zt,ge,U4,Ia,cs,zo,Xe,cr,Nl,Nr,bo,G4,bf,$a,c1,Vc,gl,Lr,K4,hn,es,Yf,xt,Xf=null,Op=null,jr="pdfjs_internal_id_",vf,kf,Th,bl,qf,gn="http://www.w3.org/2000/svg",da,Gl,$l,h1,wl,Ki,Fh,i8,h0,Np,Uo,n8,Ae,a8,m0,r8,Xr,g0,On,tn,Io,Wl,Ut,o8,Lp=3285377520,vi=4294901760,Ji=65535,b0,yl,Af,w0,sr="__forcedDependency",zp,Up,m1,l8,Gp,c8,h8,Mh,ki,Bh,f8,u8,d8,p8,xi,bn,m8,g8,b8,w8,y8,g1,fv,k8,q8,kc,ns,vr,y0,w1,j0,x8,v0,A8,C8,I8,T8,uv=`
23
+ struct Uniforms {
24
+ offsetX : f32,
25
+ offsetY : f32,
26
+ scaleX : f32,
27
+ scaleY : f32,
28
+ paddedWidth : f32,
29
+ paddedHeight : f32,
30
+ borderSize : f32,
31
+ _pad : f32,
32
+ };
5
33
 
6
- //# debugId=C0CE41DC4C7986B264756E2164756E21
34
+ @group(0) @binding(0) var<uniform> u : Uniforms;
35
+
36
+ struct VertexInput {
37
+ @location(0) position : vec2<f32>,
38
+ @location(1) color : vec4<f32>,
39
+ };
40
+
41
+ struct VertexOutput {
42
+ @builtin(position) position : vec4<f32>,
43
+ @location(0) color : vec3<f32>,
44
+ };
45
+
46
+ @vertex
47
+ fn vs_main(in : VertexInput) -> VertexOutput {
48
+ var out : VertexOutput;
49
+ let cx = (in.position.x + u.offsetX) * u.scaleX;
50
+ let cy = (in.position.y + u.offsetY) * u.scaleY;
51
+ out.position = vec4<f32>(
52
+ ((cx + u.borderSize) / u.paddedWidth) * 2.0 - 1.0,
53
+ 1.0 - ((cy + u.borderSize) / u.paddedHeight) * 2.0,
54
+ 0.0,
55
+ 1.0
56
+ );
57
+ out.color = in.color.rgb;
58
+ return out;
59
+ }
60
+
61
+ @fragment
62
+ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
63
+ return vec4<f32>(in.color, 1.0);
64
+ }
65
+ `,F8,k0,Ts,Sf,P8,R8,H8,$p,q0,Vp=16,Wp=100,dv=15,Kp=10,Zs=16,Qf,gi,kr,y1,pv,mv,gv,Yp,Tr,Kl,Yl,Xl,z8,U8,G8,$8,V8,W8,Jf=200,Xp=206,Y8,X8,Q8,J8,Z8,t7,Ra,s7,fr,i7,n7,a7,ur,Qp,E0,bv=1e5,Jp=30,ti,wv=100,B0,Cf,r7,P0,ps,o7,l7,qr,c7="5.6.205",h7="ada343803",di,jl,A1,f7,zr,yv=9,La,jv,Kc,Le,u7,If,d7,ma,p7,m7,g7,D0,b7,w7,Ph,y7,R0,j7,v7,k7,H0,q7,x7,Tf,_0,A7,S7,C7,O0,I7,Ff,qc,us,Bt,Ta,N0,Dh,T7,Rh,F7,Qe,L0,xe,E7,Qr,Ef,z0,Hh,xc=8,wo=3,Zn,U0,G0,Zi,M7,en,ds,vl;var P7=U7(()=>{G7=Object.defineProperty,$7=Object.defineProperty,V7=d((t,e,s)=>(e in t)?$7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,"__defNormalProp"),Ka=d((t,e,s)=>V7(t,typeof e!="symbol"?e+"":e,s),"__publicField");d(Q0,"polyfillDOMMatrix"),Q0(),typeof globalThis.FinalizationRegistry>"u"&&(globalThis.FinalizationRegistry=class{static{d(this,"FinalizationRegistry")}register(){}unregister(){}}),globalThis.navigator??={},globalThis.navigator.platform??="",globalThis.navigator.userAgent??="",typeof Promise.withResolvers>"u"&&(Promise.withResolvers=function(){let t,e;return{promise:new Promise((s,i)=>{t=s,e=i}),resolve:t,reject:e}}),typeof Map.prototype.getOrInsertComputed>"u"&&Object.defineProperty(Map.prototype,"getOrInsertComputed",{value(t,e){if(this.has(t))return this.get(t);let s=e(t);return this.set(t,s),s},writable:!0,configurable:!0}),typeof Uint8Array.prototype.toHex>"u"&&Object.defineProperty(Uint8Array.prototype,"toHex",{value(){let t="";for(let e=0;e<this.length;e++)t+=this[e].toString(16).padStart(2,"0");return t},writable:!0,configurable:!0});W7=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Fa=[0.001,0,0,0.001,0,0],J0=Yc/Tn,zs={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},Xi={FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,SIGNATURE:101},Z0={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Ya={TRIANGLES:1,LATTICE:2,PATCH:3},tm={FILL:0,ADD_TO_PATH_FLAG:4},ms={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},em={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},Zf={GROUP:"Group",REPLY:"R"},as={INVISIBLE:1,HIDDEN:2,PRINT:4,NOROTATE:16,NOVIEW:32,LOCKED:128,LOCKEDCONTENTS:512},Ui={READONLY:1,REQUIRED:2,MULTILINE:4096,PASSWORD:8192,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,FILESELECT:1048576,MULTISELECT:2097152,DONOTSCROLL:8388608,COMB:16777216},Xa={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},sm={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"},K7={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},Y7={O:"PageOpen",C:"PageClose"},$o={WARNINGS:1,INFOS:5},C={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},Te={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},tp={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},_h=$o.WARNINGS;d(im,"setVerbosityLevel$1");d(nm,"getVerbosityLevel$1");d(Wt,"info$1");d(T,"warn$1");d(Yt,"unreachable$1");d(Fe,"assert$1");d(am,"_isValidProtocol$1");d(Vo,"createValidAbsoluteUrl$1");d(rm,"stripPath$1");d(lt,"shadow$1");$s=d(function(){function t(e,s){this.message=e,this.name=s}return d(t,"BaseException"),t.prototype=Error(),t.constructor=t,t},"BaseExceptionClosure")(),Fr=class extends $s{static{d(this,"PasswordException")}constructor(t,e){super(t,"PasswordException"),this.code=e}},Df=class extends $s{static{d(this,"UnknownErrorException")}constructor(t,e){super(t,"UnknownErrorException"),this.details=e}},Wo=class extends $s{static{d(this,"InvalidPDFException")}constructor(t){super(t,"InvalidPDFException")}},ep=class extends $s{static{d(this,"ResponseException")}constructor(t,e,s){super(t,"ResponseException"),this.status=e,this.missing=s}},Q=class extends $s{static{d(this,"FormatError")}constructor(t){super(t,"FormatError")}},Cs=class extends $s{static{d(this,"AbortException")}constructor(t){super(t,"AbortException")}};d(Us,"bytesToString$1");d(Fs,"stringToBytes$1");d(gs,"string32$1");d(Oh,"objectSize");d(om,"isLittleEndian$1");d(lm,"isEvalSupported$1");Ms=class{static{d(this,"FeatureTest")}static get isLittleEndian(){return lt(this,"isLittleEndian",om())}static get isEvalSupported(){return lt(this,"isEvalSupported",lm())}static get isOffscreenCanvasSupported(){return lt(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return lt(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get isFloat16ArraySupported(){return lt(this,"isFloat16ArraySupported",typeof Float16Array<"u")}static get isSanitizerSupported(){return lt(this,"isSanitizerSupported",typeof Sanitizer<"u")}static get platform(){let{platform:t,userAgent:e}=navigator;return lt(this,"platform",{isAndroid:e.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:e.includes("Firefox")})}static get isCSSRoundSupported(){return lt(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}},Bo=Array.from(Array(256).keys(),(t)=>t.toString(16).padStart(2,"0")),de=class{static{d(this,"Util")}static makeHexColor(t,e,s){return`#${Bo[t]}${Bo[e]}${Bo[s]}`}static domMatrixToTransform(t){return[t.a,t.b,t.c,t.d,t.e,t.f]}static scaleMinMax(t,e){let s;t[0]?(t[0]<0&&(s=e[0],e[0]=e[2],e[2]=s),e[0]*=t[0],e[2]*=t[0],t[3]<0&&(s=e[1],e[1]=e[3],e[3]=s),e[1]*=t[3],e[3]*=t[3]):(s=e[0],e[0]=e[1],e[1]=s,s=e[2],e[2]=e[3],e[3]=s,t[1]<0&&(s=e[1],e[1]=e[3],e[3]=s),e[1]*=t[1],e[3]*=t[1],t[2]<0&&(s=e[0],e[0]=e[2],e[2]=s),e[0]*=t[2],e[2]*=t[2]),e[0]+=t[4],e[1]+=t[5],e[2]+=t[4],e[3]+=t[5]}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 i=t[s],n=t[s+1];t[s]=i*e[0]+n*e[2]+e[4],t[s+1]=i*e[1]+n*e[3]+e[5]}static applyTransformToBezier(t,e,s=0){let i=e[0],n=e[1],a=e[2],r=e[3],o=e[4],l=e[5];for(let c=0;c<6;c+=2){let h=t[s+c],f=t[s+c+1];t[s+c]=h*i+f*a+o,t[s+c+1]=h*n+f*r+l}}static applyInverseTransform(t,e){let s=t[0],i=t[1],n=e[0]*e[3]-e[1]*e[2];t[0]=(s*e[3]-i*e[2]+e[2]*e[5]-e[4]*e[3])/n,t[1]=(-s*e[1]+i*e[0]+e[4]*e[1]-e[5]*e[0])/n}static axialAlignedBoundingBox(t,e,s){let i=e[0],n=e[1],a=e[2],r=e[3],o=e[4],l=e[5],c=t[0],h=t[1],f=t[2],u=t[3],p=i*c+o,m=p,g=i*f+o,w=g,b=r*h+l,j=b,v=r*u+l,q=v;if(n!==0||a!==0){let x=n*c,k=n*f,A=a*h,S=a*u;p+=A,w+=A,g+=S,m+=S,b+=x,q+=x,v+=k,j+=k}s[0]=Math.min(s[0],p,g,m,w),s[1]=Math.min(s[1],b,v,j,q),s[2]=Math.max(s[2],p,g,m,w),s[3]=Math.max(s[3],b,v,j,q)}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],i=t[1],n=t[2],a=t[3],r=s**2+i**2,o=s*n+i*a,l=n**2+a**2,c=(r+l)/2,h=Math.sqrt(c**2-(r*l-o**2));e[0]=Math.sqrt(c+h||1),e[1]=Math.sqrt(c-h||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])),i=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(s>i)return null;let n=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 n>a?null:[s,n,i,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,i,n){n[0]=Math.min(n[0],t,s),n[1]=Math.min(n[1],e,i),n[2]=Math.max(n[2],t,s),n[3]=Math.max(n[3],e,i)}static#t(t,e,s,i,n,a,r,o,l,c){if(l<=0||l>=1)return;let h=1-l,f=l*l,u=f*l,p=h*(h*(h*t+3*l*e)+3*f*s)+u*i,m=h*(h*(h*n+3*l*a)+3*f*r)+u*o;c[0]=Math.min(c[0],p),c[1]=Math.min(c[1],m),c[2]=Math.max(c[2],p),c[3]=Math.max(c[3],m)}static#e(t,e,s,i,n,a,r,o,l,c,h,f){if(Math.abs(l)<0.000000000001){Math.abs(c)>=0.000000000001&&this.#t(t,e,s,i,n,a,r,o,-h/c,f);return}let u=c**2-4*h*l;if(u<0)return;let p=Math.sqrt(u),m=2*l;this.#t(t,e,s,i,n,a,r,o,(-c+p)/m,f),this.#t(t,e,s,i,n,a,r,o,(-c-p)/m,f)}static bezierBoundingBox(t,e,s,i,n,a,r,o,l){l[0]=Math.min(l[0],t,r),l[1]=Math.min(l[1],e,o),l[2]=Math.max(l[2],t,r),l[3]=Math.max(l[3],e,o),this.#e(t,s,n,r,e,i,a,o,3*(-t+3*(s-n)+r),6*(t-2*s+n),3*(s-t),l),this.#e(t,s,n,r,e,i,a,o,3*(-e+3*(i-a)+o),6*(e-2*i+a),3*(i-e),l)}},X7=[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];d(Xt,"stringToPDFString");d(Ha,"stringToUTF8String$1");d(Xc,"utf8StringToString");d(Er,"isArrayEqual");d(Pn,"getModificationDate");d(cm,"normalizeUnicode$1");d(hm,"_isValidExplicitDest$1");Nh=d(()=>[],"makeArr$1"),J7=d(()=>new Map,"makeMap$1"),Z7=d(()=>Object.create(null),"makeObj$1");d(Ze,"MathClamp$1"),typeof Math.sumPrecise!="function"&&(Math.sumPrecise=function(t){return t.reduce((e,s)=>e+s,0)});ty=Symbol("CIRCULAR_REF"),bs=Symbol("EOF"),fm=Object.create(null),um=Object.create(null),Ac=Object.create(null);d(dm,"clearPrimitiveCaches");tt=class tt{static{d(this,"Name")}constructor(t){this.name=t}static get(t){return um[t]||=new tt(t)}};Je=class Je{static{d(this,"Cmd")}constructor(t){this.cmd=t}static get(t){return fm[t]||=new Je(t)}};pm=d(function(){return pm},"nonSerializableClosure");B=class B{static{d(this,"Dict")}__nonSerializable__=pm;#t=new Map;objId=null;suppressEncryption=!1;xref;constructor(t=null){this.xref=t}assignXref(t){this.xref=t}get size(){return this.#t.size}#e(t,e,s,i){let n=this.#t.get(e);return n===void 0&&s!==void 0&&(n=this.#t.get(s),n===void 0&&i!==void 0&&(n=this.#t.get(i))),n instanceof nt&&this.xref?t?this.xref.fetchAsync(n,this.suppressEncryption):this.xref.fetch(n,this.suppressEncryption):n}get(t,e,s){return this.#e(!1,t,e,s)}async getAsync(t,e,s){return this.#e(!0,t,e,s)}getArray(t,e,s){let i=this.#e(!1,t,e,s);if(Array.isArray(i)){i=i.slice();for(let n=0,a=i.length;n<a;n++)i[n]instanceof nt&&this.xref&&(i[n]=this.xref.fetch(i[n],this.suppressEncryption))}return i}getRaw(t){return this.#t.get(t)}getKeys(){return this.#t.keys()}getRawValues(){return this.#t.values()}getRawEntries(){return this.#t.entries()}set(t,e){this.#t.set(t,e)}setIfNotExists(t,e){this.has(t)||this.set(t,e)}setIfNumber(t,e){typeof e=="number"&&this.set(t,e)}setIfArray(t,e){(Array.isArray(e)||ArrayBuffer.isView(e))&&this.set(t,e)}setIfDefined(t,e){e!=null&&this.set(t,e)}setIfName(t,e){typeof e=="string"?this.set(t,tt.get(e)):e instanceof tt&&this.set(t,e)}setIfDict(t,e){e instanceof B&&this.set(t,e)}has(t){return this.#t.has(t)}*[Symbol.iterator](){for(let[t,e]of this.#t)yield[t,e instanceof nt&&this.xref?this.xref.fetch(e,this.suppressEncryption):e]}static get empty(){let t=new B(null);return t.set=(e,s)=>{Yt("Should not call `set` on the empty dictionary.")},lt(this,"empty",t)}static merge({xref:t,dictArray:e,mergeSubDicts:s=!1}){let i=new B(t),n=new Map;for(let a of e)if(a instanceof B)for(let[r,o]of a.getRawEntries()){let l=n.get(r);if(l===void 0)l=[],n.set(r,l);else if(!s||!(o instanceof B))continue;l.push(o)}for(let[a,r]of n){if(r.length===1||!(r[0]instanceof B)){i.set(a,r[0]);continue}let o=new B(t);for(let l of r)for(let[c,h]of l.getRawEntries())o.setIfNotExists(c,h);o.size>0&&i.set(a,o)}return n.clear(),i.size>0?i:B.empty}clone(){let t=new B(this.xref);for(let[e,s]of this.#t)t.set(e,s);return t}delete(t){this.#t.delete(t)}};nt=class nt{static{d(this,"Ref")}constructor(t,e){this.num=t,this.gen=e}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(t){let e=Ac[t];if(e)return e;let s=/^(\d+)R(\d*)$/.exec(t);return!s||s[1]==="0"?null:Ac[t]=new nt(parseInt(s[1]),s[2]?parseInt(s[2]):0)}static get(t,e){let s=e===0?`${t}R`:`${t}R${e}`;return Ac[s]||=new nt(t,e)}};Me=class Me{static{d(this,"RefSet")}constructor(t=null){this._set=new Set(t?._set)}has(t){return this._set.has(t.toString())}put(t){this._set.add(t.toString())}remove(t){this._set.delete(t.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}};ts=class ts{static{d(this,"RefSetCache")}_map=new Map;get size(){return this._map.size}get(t){return this._map.get(t.toString())}has(t){return this._map.has(t.toString())}put(t,e){this._map.set(t.toString(),e)}putAlias(t,e){this._map.set(t.toString(),this.get(e))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}*values(){yield*this._map.values()}*items(){for(let[t,e]of this._map)yield[nt.fromString(t),e]}*keys(){for(let t of this._map.keys())yield nt.fromString(t)}};d(re,"isName");d(os,"isCmd");d(S1,"isDict");d(Ko,"isRefsEqual");Lt=class Lt{static{d(this,"BaseStream")}get length(){Yt("Abstract getter `length` accessed")}get isEmpty(){Yt("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return lt(this,"isDataLoaded",!0)}getByte(){Yt("Abstract method `getByte` called")}getBytes(t){Yt("Abstract method `getBytes` called")}async getImageData(t,e){return this.getBytes(t,e)}async asyncGetBytes(){Yt("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get isImageStream(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(){return null}peekByte(){let t=this.getByte();return t!==-1&&this.pos--,t}peekBytes(t){let e=this.getBytes(t);return this.pos-=e.length,e}getUint16(){let t=this.getByte(),e=this.getByte();return t===-1||e===-1?-1:(t<<8)+e}getInt32(){let t=this.getByte(),e=this.getByte(),s=this.getByte(),i=this.getByte();return(t<<24)+(e<<16)+(s<<8)+i}getByteRange(t,e){Yt("Abstract method `getByteRange` called")}getString(t){return Us(this.getBytes(t))}skip(t){this.pos+=t||1}reset(){Yt("Abstract method `reset` called")}moveStart(){Yt("Abstract method `moveStart` called")}makeSubStream(t,e,s=null){Yt("Abstract method `makeSubStream` called")}getBaseStreams(){return null}getOriginalStream(){return this.stream?.getOriginalStream()||this}};mm=/^[1-9]\.\d$/,Gi=[1,0,0,1,0,0],eu=["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"],su=["ExtGState","Font","Properties","XObject"];d(Pe,"getLookupTableFactory");Ce=class Ce extends $s{static{d(this,"MissingDataException")}constructor(t,e){super(`Missing data [${t}, ${e})`,"MissingDataException"),this.begin=t,this.end=e}};Qc=class Qc extends $s{static{d(this,"ParserEOFException")}constructor(t){super(t,"ParserEOFException")}};qn=class qn extends $s{static{d(this,"XRefEntryException")}constructor(t){super(t,"XRefEntryException")}};aa=class aa extends $s{static{d(this,"XRefParseException")}constructor(t){super(t,"XRefParseException")}};d(C1,"arrayBuffersToBytes");d(iu,"fetchBinaryData");d(ii,"getInheritableProperty");d(gm,"getParentToUpdate");d(Jc,"deepCompare");Hf=["","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"];d(bm,"toRomanNumerals");d(Lh,"log2");d(_i,"readInt8");d(nn,"readInt16");d(te,"readUint16");d(we,"readUint32");d(ai,"isWhiteSpace");d(wm,"isBooleanArray");d(_s,"isNumberArray");d(xn,"lookupMatrix");d(Yo,"lookupRect");d(ln,"lookupNormalRect");d(I1,"parseXFAPath");d(zh,"escapePDFName");d(_a,"escapeString");d(Xo,"_collectJS");d(kl,"collectActions");sy={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};d(ym,"codePointIter");d(Ea,"encodeToXmlString");d(Zc,"validateFontName");d(jm,"validateCSSFont");d(T1,"recoverJsURL");d(ie,"numberToString");d(Uh,"getNewAnnotationsMap");d(ws,"stringToAsciiOrUTF16BE");d(vm,"isAscii");d(km,"stringToUTF16HexString");d(F1,"stringToUTF16String");d(Qo,"getRotationMatrix");d(nu,"getSizeInBytes");hs=class hs{static{d(this,"QCMS")}static#t=null;static _memory=null;static _mustAddAlpha=!1;static _destBuffer=null;static _destOffset=0;static _destLength=0;static _cssColor="";static _makeHexColor=null;static get _memoryArray(){let t=this.#t;return t?.byteLength?t:this.#t=new Uint8Array(this._memory.buffer)}};d(qm,"copy_result");d(xm,"copy_rgb");d(Am,"make_cssRGB");Sm=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:d(()=>{throw Error("TextDecoder not available")},"decode")};typeof TextDecoder<"u"&&Sm.decode();d(E1,"getUint8ArrayMemory0");d(Cm,"getStringFromWasm0");d(B1,"passArray8ToWasm0");d(Im,"qcms_convert_array");d(Tm,"qcms_convert_one");d(Fm,"qcms_convert_three");d(Em,"qcms_convert_four");d(Mm,"qcms_transformer_from_memory");d(Bm,"qcms_drop_transformer");_f=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"}),iy=Object.freeze({Perceptual:0,0:"Perceptual",RelativeColorimetric:1,1:"RelativeColorimetric",Saturation:2,2:"Saturation",AbsoluteColorimetric:3,3:"AbsoluteColorimetric"});d(Pm,"__wbg_get_imports");d(Dm,"__wbg_finalize_init");d(Rm,"initSync");d(Hm,"resizeRgbImage");d(_m,"resizeRgbaImage");d(Om,"copyRgbaImage");d(P1,"isDefaultDecodeHelper");js=class js{static{d(this,"ColorSpace")}static#t=new Uint8ClampedArray(3);constructor(t,e){this.name=t,this.numComps=e}getRgb(t,e,s=new Uint8ClampedArray(3)){return this.getRgbItem(t,e,s,0),s}getRgbHex(t,e){let s=this.getRgb(t,e,js.#t);return de.makeHexColor(s[0],s[1],s[2])}getRgbItem(t,e,s,i){Yt("Should not call ColorSpace.getRgbItem")}getRgbBuffer(t,e,s,i,n,a,r){Yt("Should not call ColorSpace.getRgbBuffer")}getOutputLength(t,e){Yt("Should not call ColorSpace.getOutputLength")}isPassthrough(t){return!1}isDefaultDecode(t,e){return js.isDefaultDecode(t,this.numComps)}fillRgb(t,e,s,i,n,a,r,o,l){let c=e*s,h=null,f=1<<r,u=s!==n||e!==i;if(this.isPassthrough(r))h=o;else if(this.numComps===1&&c>f&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){let p=r<=8?new Uint8Array(f):new Uint16Array(f);for(let g=0;g<f;g++)p[g]=g;let m=new Uint8ClampedArray(f*3);if(this.getRgbBuffer(p,0,f,m,0,r,0),u){h=new Uint8Array(c*3);let g=0;for(let w=0;w<c;++w){let b=o[w]*3;h[g++]=m[b],h[g++]=m[b+1],h[g++]=m[b+2]}}else{let g=0;for(let w=0;w<c;++w){let b=o[w]*3;t[g++]=m[b],t[g++]=m[b+1],t[g++]=m[b+2],g+=l}}}else u?(h=new Uint8ClampedArray(c*3),this.getRgbBuffer(o,0,c,h,0,r,0)):this.getRgbBuffer(o,0,i*a,t,0,r,l);if(h)if(u)Hm(h,t,e,s,i,n,l);else{let p=0,m=0;for(let g=0,w=i*a;g<w;g++)t[p++]=h[m++],t[p++]=h[m++],t[p++]=h[m++],p+=l}}get usesZeroToOneRange(){return lt(this,"usesZeroToOneRange",!0)}static isDefaultDecode(t,e){if(P1(t,e*2))return!0;for(let s=0,i=t.length;s<i;s+=2)if(t[s]!==0||t[s+1]!==1)return!1;return!0}};Nm=class Nm extends js{static{d(this,"AlternateCS")}constructor(t,e,s){super("Alternate",t),this.base=e,this.tintFn=s,this.tmpBuf=new Float32Array(e.numComps)}getRgbItem(t,e,s,i){let n=this.tmpBuf;this.tintFn(t,e,n,0),this.base.getRgbItem(n,0,s,i)}getRgbBuffer(t,e,s,i,n,a,r){let o=this.tintFn,l=this.base,c=1/((1<<a)-1),h=l.numComps,f=l.usesZeroToOneRange,u=(l.isPassthrough(8)||!f)&&r===0,p=u?n:0,m=u?i:new Uint8ClampedArray(h*s),g=this.numComps,w=new Float32Array(g),b=new Float32Array(h),j,v;for(j=0;j<s;j++){for(v=0;v<g;v++)w[v]=t[e++]*c;if(o(w,0,b,0),f)for(v=0;v<h;v++)m[p++]=b[v]*255;else l.getRgbItem(b,0,m,p),p+=h}u||l.getRgbBuffer(m,0,s,i,n,8,r)}getOutputLength(t,e){return this.base.getOutputLength(t*this.base.numComps/this.numComps,e)}};au=class au extends js{static{d(this,"PatternCS")}constructor(t){super("Pattern",null),this.base=t}isDefaultDecode(t,e){Yt("Should not call PatternCS.isDefaultDecode")}};Lm=class Lm extends js{static{d(this,"IndexedCS")}constructor(t,e,s){super("Indexed",1),this.base=t,this.highVal=e;let i=t.numComps*(e+1);if(this.lookup=new Uint8Array(i),s instanceof Lt){let n=s.getBytes(i);this.lookup.set(n)}else if(typeof s=="string")for(let n=0;n<i;++n)this.lookup[n]=s.charCodeAt(n)&255;else throw new Q(`IndexedCS - unrecognized lookup table: ${s}`)}getRgbItem(t,e,s,i){let{base:n,highVal:a,lookup:r}=this,o=Ze(Math.round(t[e]),0,a)*n.numComps;n.getRgbBuffer(r,o,1,s,i,8,0)}getRgbBuffer(t,e,s,i,n,a,r){let{base:o,highVal:l,lookup:c}=this,{numComps:h}=o,f=o.getOutputLength(h,r);for(let u=0;u<s;++u){let p=Ze(Math.round(t[e++]),0,l)*h;o.getRgbBuffer(c,p,1,i,n,8,r),n+=f}}getOutputLength(t,e){return this.base.getOutputLength(t*this.base.numComps,e)}isDefaultDecode(t,e){return P1(t,2)?!0:!Number.isInteger(e)||e<1?(T("Bits per component is not correct"),!0):t[0]===0&&t[1]===(1<<e)-1}};zm=class zm extends js{static{d(this,"DeviceGrayCS")}constructor(){super("DeviceGray",1)}getRgbItem(t,e,s,i){let n=t[e]*255;s[i]=s[i+1]=s[i+2]=n}getRgbBuffer(t,e,s,i,n,a,r){let o=255/((1<<a)-1),l=e,c=n;for(let h=0;h<s;++h){let f=o*t[l++];i[c++]=f,i[c++]=f,i[c++]=f,c+=r}}getOutputLength(t,e){return t*(3+e)}};Um=class Um extends js{static{d(this,"DeviceRgbCS")}constructor(){super("DeviceRGB",3)}getRgbItem(t,e,s,i){s[i]=t[e]*255,s[i+1]=t[e+1]*255,s[i+2]=t[e+2]*255}getRgbBuffer(t,e,s,i,n,a,r){if(a===8&&r===0){i.set(t.subarray(e,e+s*3),n);return}let o=255/((1<<a)-1),l=e,c=n;for(let h=0;h<s;++h)i[c++]=o*t[l++],i[c++]=o*t[l++],i[c++]=o*t[l++],c+=r}getOutputLength(t,e){return t*(3+e)/3|0}isPassthrough(t){return t===8}};Gm=class Gm extends js{static{d(this,"DeviceRgbaCS")}constructor(){super("DeviceRGBA",4)}getOutputLength(t,e){return t*4}isPassthrough(t){return t===8}fillRgb(t,e,s,i,n,a,r,o,l){s!==n||e!==i?_m(o,t,e,s,i,n,l):Om(o,t,l)}};D1=class D1 extends js{static{d(this,"DeviceCmykCS")}constructor(){super("DeviceCMYK",4)}#t(t,e,s,i,n){let a=t[e]*s,r=t[e+1]*s,o=t[e+2]*s,l=t[e+3]*s;i[n]=255+a*(-4.387332384609988*a+54.48615194189176*r+18.82290502165302*o+212.25662451639585*l+-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*o+-17.873870861415444*l-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*l+17.5119270841813)+l*(-21.86122147463605*l-189.48180835922747),i[n+1]=255+a*(8.841041422036149*a+60.118027045597366*r+6.871425592049007*o+31.159100130055922*l+-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*o+131.35250912493976*l-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*l-24.86741582555878)+l*(-20.737325471181034*l-187.80453709719578),i[n+2]=255+a*(0.8842522430003296*a+8.078677503112928*r+30.89978309703729*o-0.23883238689178934*l+-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*o+50.606957656360734*l-112.23884253719248)+o*(0.03296041114873217*o+115.60384449646641*l+-193.58209356861505)+l*(-22.33816807309886*l-180.12613974708367)}getRgbItem(t,e,s,i){this.#t(t,e,1,s,i)}getRgbBuffer(t,e,s,i,n,a,r){let o=1/((1<<a)-1);for(let l=0;l<s;l++)this.#t(t,e,o,i,n),e+=4,n+=3+r}getOutputLength(t,e){return t/4*(3+e)|0}};$m=class $m extends js{static{d(this,"CalGrayCS")}constructor(t,e,s){if(super("CalGray",1),!t)throw new Q("WhitePoint missing - required for color space CalGray");if([this.XW,this.YW,this.ZW]=t,[this.XB,this.YB,this.ZB]=e||[0,0,0],this.G=s||1,this.XW<0||this.ZW<0||this.YW!==1)throw new Q(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(Wt(`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)&&T(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&(Wt(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#t(t,e,s,i,n){let a=(t[e]*n)**this.G,r=this.YW*a,o=Math.max(295.8*r**0.3333333333333333-40.8,0);s[i]=o,s[i+1]=o,s[i+2]=o}getRgbItem(t,e,s,i){this.#t(t,e,s,i,1)}getRgbBuffer(t,e,s,i,n,a,r){let o=1/((1<<a)-1);for(let l=0;l<s;++l)this.#t(t,e,i,n,o),e+=1,n+=3+r}getOutputLength(t,e){return t*(3+e)}};Rs=class Rs extends js{static{d(this,"CalRGBCS")}static#t=new Float32Array([0.8951,0.2664,-0.1614,-0.7502,1.7135,0.0367,0.0389,-0.0685,1.0296]);static#e=new Float32Array([0.9869929,-0.1470543,0.1599627,0.4323053,0.5183603,0.0492912,-0.0085287,0.0400428,0.9684867]);static#s=new Float32Array([3.2404542,-1.5371385,-0.4985314,-0.969266,1.8760108,0.041556,0.0556434,-0.2040259,1.0572252]);static#i=new Float32Array([1,1,1]);static#n=new Float32Array(3);static#a=new Float32Array(3);static#r=new Float32Array(3);static#o=0.0011070564598794539;constructor(t,e,s,i){if(super("CalRGB",3),!t)throw new Q("WhitePoint missing - required for color space CalRGB");let[n,a,r]=this.whitePoint=t,[o,l,c]=this.blackPoint=e||new Float32Array(3);if([this.GR,this.GG,this.GB]=s||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]),n<0||r<0||a!==1)throw new Q(`Invalid WhitePoint components for ${this.name}, no fallback available`);(o<0||l<0||c<0)&&(Wt(`Invalid BlackPoint for ${this.name} [${o}, ${l}, ${c}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&(Wt(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#l(t,e,s){s[0]=t[0]*e[0]+t[1]*e[1]+t[2]*e[2],s[1]=t[3]*e[0]+t[4]*e[1]+t[5]*e[2],s[2]=t[6]*e[0]+t[7]*e[1]+t[8]*e[2]}#c(t,e,s){s[0]=e[0]*1/t[0],s[1]=e[1]*1/t[1],s[2]=e[2]*1/t[2]}#u(t,e,s){s[0]=e[0]*0.95047/t[0],s[1]=e[1]*1/t[1],s[2]=e[2]*1.08883/t[2]}#h(t){return t<=0.0031308?Ze(12.92*t,0,1):t>=0.99554525?1:Ze(1.055*t**0.4166666666666667-0.055,0,1)}#d(t){return t<0?-this.#d(-t):t>8?((t+16)/116)**3:t*Rs.#o}#g(t,e,s){if(t[0]===0&&t[1]===0&&t[2]===0){s[0]=e[0],s[1]=e[1],s[2]=e[2];return}let i=this.#d(0),n=i,a=this.#d(t[0]),r=i,o=this.#d(t[1]),l=i,c=this.#d(t[2]),h=(1-n)/(1-a),f=1-h,u=(1-r)/(1-o),p=1-u,m=(1-l)/(1-c),g=1-m;s[0]=e[0]*h+f,s[1]=e[1]*u+p,s[2]=e[2]*m+g}#m(t,e,s){if(t[0]===1&&t[2]===1){s[0]=e[0],s[1]=e[1],s[2]=e[2];return}let i=s;this.#l(Rs.#t,e,i);let n=Rs.#n;this.#c(t,i,n),this.#l(Rs.#e,n,s)}#f(t,e,s){let i=s;this.#l(Rs.#t,e,i);let n=Rs.#n;this.#u(t,i,n),this.#l(Rs.#e,n,s)}#p(t,e,s,i,n){let a=Ze(t[e]*n,0,1),r=Ze(t[e+1]*n,0,1),o=Ze(t[e+2]*n,0,1),l=a===1?1:a**this.GR,c=r===1?1:r**this.GG,h=o===1?1:o**this.GB,f=this.MXA*l+this.MXB*c+this.MXC*h,u=this.MYA*l+this.MYB*c+this.MYC*h,p=this.MZA*l+this.MZB*c+this.MZC*h,m=Rs.#a;m[0]=f,m[1]=u,m[2]=p;let g=Rs.#r;this.#m(this.whitePoint,m,g);let w=Rs.#a;this.#g(this.blackPoint,g,w);let b=Rs.#r;this.#f(Rs.#i,w,b);let j=Rs.#a;this.#l(Rs.#s,b,j),s[i]=this.#h(j[0])*255,s[i+1]=this.#h(j[1])*255,s[i+2]=this.#h(j[2])*255}getRgbItem(t,e,s,i){this.#p(t,e,s,i,1)}getRgbBuffer(t,e,s,i,n,a,r){let o=1/((1<<a)-1);for(let l=0;l<s;++l)this.#p(t,e,i,n,o),e+=3,n+=3+r}getOutputLength(t,e){return t*(3+e)/3|0}};Vm=class Vm extends js{static{d(this,"LabCS")}constructor(t,e,s){if(super("Lab",3),!t)throw new Q("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=t,[this.amin,this.amax,this.bmin,this.bmax]=s||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=e||[0,0,0],this.XW<0||this.ZW<0||this.YW!==1)throw new Q("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&(Wt("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(Wt("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#t(t){return t>=0.20689655172413793?t**3:0.12841854934601665*(t-0.13793103448275862)}#e(t,e,s,i){return s+t*(i-s)/e}#s(t,e,s,i,n){let a=t[e],r=t[e+1],o=t[e+2];s!==!1&&(a=this.#e(a,s,0,100),r=this.#e(r,s,this.amin,this.amax),o=this.#e(o,s,this.bmin,this.bmax)),r>this.amax?r=this.amax:r<this.amin&&(r=this.amin),o>this.bmax?o=this.bmax:o<this.bmin&&(o=this.bmin);let l=(a+16)/116,c=l+r/500,h=l-o/200,f=this.XW*this.#t(c),u=this.YW*this.#t(l),p=this.ZW*this.#t(h),m,g,w;this.ZW<1?(m=f*3.1339+u*-1.617+p*-0.4906,g=f*-0.9785+u*1.916+p*0.0333,w=f*0.072+u*-0.229+p*1.4057):(m=f*3.2406+u*-1.5372+p*-0.4986,g=f*-0.9689+u*1.8758+p*0.0415,w=f*0.0557+u*-0.204+p*1.057),i[n]=Math.sqrt(m)*255,i[n+1]=Math.sqrt(g)*255,i[n+2]=Math.sqrt(w)*255}getRgbItem(t,e,s,i){this.#s(t,e,!1,s,i)}getRgbBuffer(t,e,s,i,n,a,r){let o=(1<<a)-1;for(let l=0;l<s;l++)this.#s(t,e,o,i,n),e+=3,n+=3+r}getOutputLength(t,e){return t*(3+e)/3|0}isDefaultDecode(t,e){return!0}get usesZeroToOneRange(){return lt(this,"usesZeroToOneRange",!1)}};d(R1,"fetchSync");Fn=class Fn extends js{static{d(this,"IccColorSpace")}#t;#e;static#s=!0;static#i=null;static#n=null;constructor(t,e,s){if(!Fn.isUsable)throw Error("No ICC color space support");super(e,s);let i;switch(s){case 1:i=_f.Gray8,this.#e=(n,a,r)=>Tm(this.#t,n[a]*255,r);break;case 3:i=_f.RGB8,this.#e=(n,a,r)=>Fm(this.#t,n[a]*255,n[a+1]*255,n[a+2]*255,r);break;case 4:i=_f.CMYK,this.#e=(n,a,r)=>Em(this.#t,n[a]*255,n[a+1]*255,n[a+2]*255,n[a+3]*255,r);break;default:throw Error(`Unsupported number of components: ${s}`)}if(this.#t=Mm(t,i,iy.Perceptual),!this.#t)throw Error("Failed to create ICC color space");Fn.#n||=new FinalizationRegistry((n)=>{Bm(n)}),Fn.#n.register(this,this.#t)}getRgbHex(t,e){return this.#e(t,e,!0),hs._cssColor}getRgbItem(t,e,s,i){hs._destBuffer=s,hs._destOffset=i,hs._destLength=3,this.#e(t,e,!1),hs._destBuffer=null}getRgbBuffer(t,e,s,i,n,a,r){if(t=t.subarray(e,e+s*this.numComps),a!==8){let o=255/((1<<a)-1);for(let l=0,c=t.length;l<c;l++)t[l]*=o}hs._mustAddAlpha=r&&i.buffer===t.buffer,hs._destBuffer=i,hs._destOffset=n,hs._destLength=s*(3+r),Im(this.#t,t),hs._mustAddAlpha=!1,hs._destBuffer=null}getOutputLength(t,e){return t/this.numComps*(3+e)|0}static setOptions({useWasm:t,useWorkerFetch:e,wasmUrl:s}){if(!e){this.#s=!1;return}this.#s=t,this.#i=s}static get isUsable(){let t=!1;if(this.#s)if(this.#i)try{this._module=Rm({module:R1(`${this.#i}qcms_bg.wasm`)}),t=!!this._module,hs._memory=this._module.memory,hs._makeHexColor=de.makeHexColor}catch(e){T(`ICCBased color space: "${e}".`)}else T("No ICC color space support due to missing `wasmUrl` API option");return lt(this,"isUsable",t)}};Jo=class Jo extends Fn{static{d(this,"CmykICCBasedCS")}static#t;constructor(){let t=new Uint8Array(R1(`${Jo.#t}CGATS001Compat-v2-micro.icc`));super(t,"DeviceCMYK",4)}static setOptions({iccUrl:t}){this.#t=t}static get isUsable(){let t=!1;return Fn.isUsable&&(this.#t?t=!0:T("No CMYK ICC profile support due to missing `iccUrl` API option")),lt(this,"isUsable",t)}};je=class je extends Lt{static{d(this,"Stream")}constructor(t,e,s,i){super(),this.bytes=t instanceof Uint8Array?t:new Uint8Array(t),this.start=e||0,this.pos=this.start,this.end=e+s||this.bytes.length,this.dict=i}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 e=this.bytes,s=this.pos,i=this.end;if(!t)return this.pos=i,e.subarray(s,i);let n=s+t;return n>i&&(n=i),this.pos=n,e.subarray(s,n)}getByteRange(t,e){return t<0&&(t=0),e>this.end&&(e=this.end),this.bytes.subarray(t,e)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,e,s=null){return new je(this.bytes.buffer,t,e,s)}clone(){return new je(this.bytes.buffer,this.start,this.end-this.start,this.dict.clone())}};Bs=class Bs extends je{static{d(this,"StringStream")}constructor(t){super(Fs(t))}};th=class th extends je{static{d(this,"NullStream")}constructor(){super(new Uint8Array(0))}};Wm=class Wm extends je{static{d(this,"ChunkedStream")}progressiveDataLength=0;_lastSuccessfulEnsureByteChunk=-1;_loadedChunks=new Set;constructor(t,e,s){super(new Uint8Array(t),0,t,null),this.chunkSize=e,this.numChunks=Math.ceil(t/e),this.manager=s}getMissingChunks(){let t=[];for(let e=0,s=this.numChunks;e<s;++e)this._loadedChunks.has(e)||t.push(e);return t}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(t,e){let s=this.chunkSize;if(t%s!==0)throw Error(`Bad begin offset: ${t}`);let i=t+e.byteLength;if(i%s!==0&&i!==this.bytes.length)throw Error(`Bad end offset: ${i}`);this.bytes.set(new Uint8Array(e),t);let n=Math.floor(t/s),a=Math.floor((i-1)/s)+1;for(let r=n;r<a;++r)this._loadedChunks.add(r)}onReceiveProgressiveData(t){let e=this.progressiveDataLength,s=Math.floor(e/this.chunkSize);this.bytes.set(new Uint8Array(t),e),e+=t.byteLength,this.progressiveDataLength=e;let i=e>=this.end?this.numChunks:Math.floor(e/this.chunkSize);for(let n=s;n<i;++n)this._loadedChunks.add(n)}ensureByte(t){if(t<this.progressiveDataLength)return;let e=Math.floor(t/this.chunkSize);if(!(e>this.numChunks)&&e!==this._lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(e))throw new Ce(t,t+1);this._lastSuccessfulEnsureByteChunk=e}}ensureRange(t,e){if(t>=e||e<=this.progressiveDataLength)return;let s=Math.floor(t/this.chunkSize);if(s>this.numChunks)return;let i=Math.min(Math.floor((e-1)/this.chunkSize)+1,this.numChunks);for(let n=s;n<i;++n)if(!this._loadedChunks.has(n))throw new Ce(t,e)}nextEmptyChunk(t){let e=this.numChunks;for(let s=0;s<e;++s){let i=(t+s)%e;if(!this._loadedChunks.has(i))return i}return null}hasChunk(t){return this._loadedChunks.has(t)}getByte(){let t=this.pos;return t>=this.end?-1:(t>=this.progressiveDataLength&&this.ensureByte(t),this.bytes[this.pos++])}getBytes(t){let e=this.bytes,s=this.pos,i=this.end;if(!t)return i>this.progressiveDataLength&&this.ensureRange(s,i),e.subarray(s,i);let n=s+t;return n>i&&(n=i),n>this.progressiveDataLength&&this.ensureRange(s,n),this.pos=n,e.subarray(s,n)}getByteRange(t,e){return t<0&&(t=0),e>this.end&&(e=this.end),e>this.progressiveDataLength&&this.ensureRange(t,e),this.bytes.subarray(t,e)}makeSubStream(t,e,s=null){e?t+e>this.progressiveDataLength&&this.ensureRange(t,t+e):t>=this.progressiveDataLength&&this.ensureByte(t);function i(){}d(i,"ChunkedStreamSubstream"),i.prototype=Object.create(this),i.prototype.getMissingChunks=function(){let a=this.chunkSize,r=Math.floor(this.start/a),o=Math.floor((this.end-1)/a)+1,l=[];for(let c=r;c<o;++c)this._loadedChunks.has(c)||l.push(c);return l},Object.defineProperty(i.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0},configurable:!0});let n=new i;return n.pos=n.start=t,n.end=t+e||this.end,n.dict=s,n}getBaseStreams(){return[this]}};Km=class Km{static{d(this,"ChunkedStreamManager")}aborted=!1;currRequestId=0;_chunksNeededByRequest=new Map;_loadedStreamCapability=Promise.withResolvers();_promisesByRequest=new Map;_requestsByChunk=new Map;constructor(t,e){this.length=e.length,this.chunkSize=e.rangeChunkSize,this.stream=new Wm(this.length,this.chunkSize,this),this.pdfStream=t,this.disableAutoFetch=e.disableAutoFetch,this.msgHandler=e.msgHandler}async sendRequest(t,e){let s=this.pdfStream.getRangeReader(t,e),i=[];for(;;){let{value:a,done:r}=await s.read();if(this.aborted){i=null;return}if(r)break;i.push(a)}if(i.length===0&&this.disableAutoFetch)return;let n=C1(i);i=null,this.onReceiveData({chunk:n.buffer,begin:t})}requestAllChunks(t=!1){if(!t){let e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(t){let e=this.currRequestId++,s=new Set;this._chunksNeededByRequest.set(e,s);for(let a of t)this.stream.hasChunk(a)||s.add(a);if(s.size===0)return Promise.resolve();let i=Promise.withResolvers();this._promisesByRequest.set(e,i);let n=[];for(let a of s){let r=this._requestsByChunk.get(a);r||(r=[],this._requestsByChunk.set(a,r),n.push(a)),r.push(e)}if(n.length>0){let a=this.groupChunks(n);for(let r of a){let o=r.beginChunk*this.chunkSize,l=Math.min(r.endChunk*this.chunkSize,this.length);this.sendRequest(o,l).catch(i.reject)}}return i.promise.catch((a)=>{if(!this.aborted)throw a})}getStream(){return this.stream}requestRange(t,e){e=Math.min(e,this.length);let s=this.getBeginChunk(t),i=this.getEndChunk(e),n=[];for(let a=s;a<i;++a)n.push(a);return this._requestChunks(n)}requestRanges(t=[]){let e=[];for(let s of t){let i=this.getBeginChunk(s.begin),n=this.getEndChunk(s.end);for(let a=i;a<n;++a)e.includes(a)||e.push(a)}return e.sort((s,i)=>s-i),this._requestChunks(e)}groupChunks(t){let e=[],s=-1,i=-1;for(let n=0,a=t.length;n<a;++n){let r=t[n];s<0&&(s=r),i>=0&&i+1!==r&&(e.push({beginChunk:s,endChunk:i+1}),s=r),n+1===t.length&&e.push({beginChunk:s,endChunk:r+1}),i=r}return e}onReceiveData(t){let{chunkSize:e,length:s,stream:i}=this,n=t.chunk,a=t.begin===void 0,r=a?i.progressiveDataLength:t.begin,o=r+n.byteLength,l=Math.floor(r/e),c=o<s?Math.floor(o/e):Math.ceil(o/e);a?i.onReceiveProgressiveData(n):i.onReceiveData(r,n),i.isDataLoaded&&this._loadedStreamCapability.resolve(i);let h=[];for(let f=l;f<c;++f){let u=this._requestsByChunk.get(f);if(u){this._requestsByChunk.delete(f);for(let p of u){let m=this._chunksNeededByRequest.get(p);m.has(f)&&m.delete(f),!(m.size>0)&&h.push(p)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let f;if(i.numChunksLoaded===1){let u=i.numChunks-1;i.hasChunk(u)||(f=u)}else f=i.nextEmptyChunk(c);Number.isInteger(f)&&this._requestChunks([f])}for(let f of h){let u=this._promisesByRequest.get(f);this._promisesByRequest.delete(f),u.resolve()}this.msgHandler.send("DocProgress",{loaded:Ze(i.numChunksLoaded*e,i.progressiveDataLength,s),total:s})}onError(t){this._loadedStreamCapability.reject(t)}getBeginChunk(t){return Math.floor(t/this.chunkSize)}getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}abort(t){this.aborted=!0,this.pdfStream?.cancelAllRequests(t);for(let e of this._promisesByRequest.values())e.reject(t)}};d(H1,"convertToRGBA");d(eh,"convertBlackAndWhiteToRGBA$1");d(Ym,"convertRGBToRGBA");d(Xm,"grayToRGBA");ei=class ei{static{d(this,"ImageResizer")}static#t=ip;static#e=Ms.isImageDecoderSupported;constructor(t,e){this._imgData=t,this._isMask=e}static get canUseImageDecoder(){return lt(this,"canUseImageDecoder",this.#e?ImageDecoder.isTypeSupported("image/bmp"):Promise.resolve(!1))}static needsToBeResized(t,e){if(t<=this.#t&&e<=this.#t)return!1;let{MAX_DIM:s}=this;if(t>s||e>s)return!0;let i=t*e;if(this._hasMaxArea)return i>this.MAX_AREA;if(i<this.#t**2)return!1;if(this._areGoodDims(t,e))return this.#t=Math.max(this.#t,Math.floor(Math.sqrt(t*e))),!1;this.#t=this._guessMax(this.#t,s,np,0);let n=this.MAX_AREA=this.#t**2;return i>n}static getReducePowerForJPX(t,e,s){let i=t*e,n=1073741824/(s*4);if(!this.needsToBeResized(t,e))return i>n?Math.ceil(Math.log2(i/n)):0;let{MAX_DIM:a,MAX_AREA:r}=this,o=Math.max(t/a,e/a,Math.sqrt(i/Math.min(n,r)));return Math.ceil(Math.log2(o))}static get MAX_DIM(){return lt(this,"MAX_DIM",this._guessMax(ip,ny,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,lt(this,"MAX_AREA",this._guessMax(this.#t,this.MAX_DIM,np,0)**2)}static set MAX_AREA(t){t>=0&&(this._hasMaxArea=!0,lt(this,"MAX_AREA",t))}static setOptions({canvasMaxAreaInBytes:t=-1,isImageDecoderSupported:e=!1}){this._hasMaxArea||(this.MAX_AREA=t>>2),this.#e=e}static _areGoodDims(t,e){try{let s=new OffscreenCanvas(t,e),i=s.getContext("2d");i.fillRect(0,0,1,1);let n=i.getImageData(0,0,1,1).data[3];return s.width=s.height=1,n!==0}catch{return!1}}static _guessMax(t,e,s,i){for(;t+s+1<e;){let n=Math.floor((t+e)/2),a=i||n;this._areGoodDims(n,a)?t=n:e=n}return t}static async createImage(t,e=!1){return new ei(t,e)._createImage()}async _createImage(){let{_imgData:t}=this,{width:e,height:s}=t;if(e*s*4>tu){let b=this.#s();if(b)return b}let i=this._encodeBMP(),n,a;await ei.canUseImageDecoder?(n=new ImageDecoder({data:i,type:"image/bmp",preferAnimation:!1,transfer:[i.buffer]}),a=n.decode().catch((b)=>(T(`BMP image decoding failed: ${b}`),createImageBitmap(new Blob([this._encodeBMP().buffer],{type:"image/bmp"})))).finally(()=>{n.close()})):a=createImageBitmap(new Blob([i.buffer],{type:"image/bmp"}));let{MAX_AREA:r,MAX_DIM:o}=ei,l=Math.max(e/o,s/o,Math.sqrt(e*s/r)),c=Math.max(l,2),h=Math.round(10*(l+1.25))/10/c,f=Math.floor(Math.log2(h)),u=Array(f+2).fill(2);u[0]=c,u.splice(-1,1,h/(1<<f));let p=e,m=s,g=await a,w=g.image||g;for(let b of u){let j=p,v=m;p=Math.floor(p/b)-1,m=Math.floor(m/b)-1;let q=new OffscreenCanvas(p,m);q.getContext("2d").drawImage(w,0,0,j,v,0,0,p,m),w.close(),w=q.transferToImageBitmap()}return t.data=null,t.bitmap=w,t.width=p,t.height=m,t}#s(){let{_imgData:t}=this,{data:e,width:s,height:i,kind:n}=t,a=s*i*4,r=Math.ceil(Math.log2(a/tu)),o=s>>r,l=i>>r,c,h=i;try{c=new Uint8Array(a)}catch{let j=Math.floor(Math.log2(a+1));for(;;)try{c=new Uint8Array(2**j-1);break}catch{j-=1}h=Math.floor((2**j-1)/(s*4));let v=s*h*4;v<c.length&&(c=new Uint8Array(v))}let f=new Uint32Array(c.buffer),u=new Uint32Array(o*l),p=0,m=0,g=Math.ceil(i/h),w=i%h===0?i:i%h;for(let j=0;j<g;j++){let v=j<g-1?h:w;({srcPos:p}=H1({kind:n,src:e,dest:f,width:s,height:v,inverseDecode:this._isMask,srcPos:p}));for(let q=0,x=v>>r;q<x;q++){let k=f.subarray((q<<r)*s);for(let A=0;A<o;A++)u[m++]=k[A<<r]}}if(ei.needsToBeResized(o,l))return t.data=u,t.width=o,t.height=l,t.kind=ms.RGBA_32BPP,null;let b=new OffscreenCanvas(o,l);return b.getContext("2d",{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(u.buffer),o,l),0,0),t.data=null,t.bitmap=b.transferToImageBitmap(),t.width=o,t.height=l,t}_encodeBMP(){let{width:t,height:e,kind:s}=this._imgData,i=this._imgData.data,n,a=new Uint8Array(0),r=a,o=0;switch(s){case ms.GRAYSCALE_1BPP:{n=1,a=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);let m=t+7>>3,g=m+3&-4;if(m!==g){let w=new Uint8Array(g*e),b=0;for(let j=0,v=e*m;j<v;j+=m,b+=g)w.set(i.subarray(j,j+m),b);i=w}break}case ms.RGB_24BPP:{if(n=24,t&3){let m=3*t,g=m+3&-4,w=g-m,b=new Uint8Array(g*e),j=0;for(let v=0,q=e*m;v<q;v+=m){let x=i.subarray(v,v+m);for(let k=0;k<m;k+=3)b[j++]=x[k+2],b[j++]=x[k+1],b[j++]=x[k];j+=w}i=b}else for(let m=0,g=i.length;m<g;m+=3){let w=i[m];i[m]=i[m+2],i[m+2]=w}break}case ms.RGBA_32BPP:n=32,o=3,r=new Uint8Array(68);let p=new DataView(r.buffer);Ms.isLittleEndian?(p.setUint32(0,255,!0),p.setUint32(4,65280,!0),p.setUint32(8,16711680,!0),p.setUint32(12,4278190080,!0)):(p.setUint32(0,4278190080,!0),p.setUint32(4,16711680,!0),p.setUint32(8,65280,!0),p.setUint32(12,255,!0));break;default:throw Error("invalid format")}let l=0,c=40+r.length,h=14+c+a.length+i.length,f=new Uint8Array(h),u=new DataView(f.buffer);return u.setUint16(l,19778,!0),l+=2,u.setUint32(l,h,!0),l+=4,u.setUint32(l,0,!0),l+=4,u.setUint32(l,14+c+a.length,!0),l+=4,u.setUint32(l,c,!0),l+=4,u.setInt32(l,t,!0),l+=4,u.setInt32(l,-e,!0),l+=4,u.setUint16(l,1,!0),l+=2,u.setUint16(l,n,!0),l+=2,u.setUint32(l,o,!0),l+=4,u.setUint32(l,0,!0),l+=4,u.setInt32(l,0,!0),l+=4,u.setInt32(l,0,!0),l+=4,u.setUint32(l,a.length/4,!0),l+=4,u.setUint32(l,0,!0),l+=4,f.set(r,l),l+=r.length,f.set(a,l),l+=a.length,f.set(i,l),f}};ay=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];Qm=class Qm{static{d(this,"ArithmeticDecoder")}constructor(t,e,s){this.data=t,this.bp=e,this.dataEnd=s,this.chigh=t[e],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){let t=this.data,e=this.bp;t[e]===255?t[e+1]>143?(this.clow+=65280,this.ct=8):(e++,this.clow+=t[e]<<9,this.ct=7,this.bp=e):(e++,this.clow+=e<this.dataEnd?t[e]<<8:65280,this.ct=8,this.bp=e),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(t,e){let s=t[e]>>1,i=t[e]&1,n=ay[s],a=n.qe,r,o=this.a-a;if(this.chigh<a)o<a?(o=a,r=i,s=n.nmps):(o=a,r=1^i,n.switchFlag===1&&(i=r),s=n.nlps);else{if(this.chigh-=a,(o&32768)!==0)return this.a=o,i;o<a?(r=1^i,n.switchFlag===1&&(i=r),s=n.nlps):(r=i,s=n.nmps)}do this.ct===0&&this.byteIn(),o<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while((o&32768)===0);return this.a=o,t[e]=s<<1|i,r}};ap=[[-1,-1],[-1,-1],[7,Zm],[7,Jm],[6,lu],[6,lu],[6,ou],[6,ou],[4,mn],[4,mn],[4,mn],[4,mn],[4,mn],[4,mn],[4,mn],[4,mn],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,qs],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,As],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[3,xs],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt],[1,Pt]],rp=[[-1,-1],[12,ru],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],op=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],lp=[[-1,-1],[-1,-1],[12,ru],[12,ru],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],cp=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],hp=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];_1=class _1{static{d(this,"CCITTFaxDecoder")}constructor(t,e={K:0,EndOfLine:!1,EncodedByteAlign:!1,Columns:1728,Rows:0,EndOfBlock:!0,BlackIs1:!1}){if(typeof t?.next!="function")throw Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t,this.eof=!1,{K:this.encoding,EndOfLine:this.eoline,EncodedByteAlign:this.byteAlign,Columns:this.columns,Rows:this.rows,EndOfBlock:this.eoblock,BlackIs1:this.black}=e,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;let s;for(;(s=this._lookBits(12))===0;)this._eatBits(1);s===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;let t=this.refLine,e=this.codingLine,s=this.columns,i,n,a,r;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let l,c,h;if(this.nextLine2D){for(r=0;e[r]<s;++r)t[r]=e[r];for(t[r++]=s,t[r]=s,e[0]=0,this.codingPos=0,i=0,n=0;e[this.codingPos]<s;)switch(l=this._getTwoDimCode(),l){case mn:this._addPixels(t[i+1],n),t[i+1]<s&&(i+=2);break;case qs:if(l=c=0,n){do l+=h=this._getBlackCode();while(h>=64);do c+=h=this._getWhiteCode();while(h>=64)}else{do l+=h=this._getWhiteCode();while(h>=64);do c+=h=this._getBlackCode();while(h>=64)}for(this._addPixels(e[this.codingPos]+l,n),e[this.codingPos]<s&&this._addPixels(e[this.codingPos]+c,n^1);t[i]<=e[this.codingPos]&&t[i]<s;)i+=2;break;case Jm:if(this._addPixels(t[i]+3,n),n^=1,e[this.codingPos]<s)for(++i;t[i]<=e[this.codingPos]&&t[i]<s;)i+=2;break;case ou:if(this._addPixels(t[i]+2,n),n^=1,e[this.codingPos]<s)for(++i;t[i]<=e[this.codingPos]&&t[i]<s;)i+=2;break;case xs:if(this._addPixels(t[i]+1,n),n^=1,e[this.codingPos]<s)for(++i;t[i]<=e[this.codingPos]&&t[i]<s;)i+=2;break;case Pt:if(this._addPixels(t[i],n),n^=1,e[this.codingPos]<s)for(++i;t[i]<=e[this.codingPos]&&t[i]<s;)i+=2;break;case Zm:if(this._addPixelsNeg(t[i]-3,n),n^=1,e[this.codingPos]<s)for(i>0?--i:++i;t[i]<=e[this.codingPos]&&t[i]<s;)i+=2;break;case lu:if(this._addPixelsNeg(t[i]-2,n),n^=1,e[this.codingPos]<s)for(i>0?--i:++i;t[i]<=e[this.codingPos]&&t[i]<s;)i+=2;break;case As:if(this._addPixelsNeg(t[i]-1,n),n^=1,e[this.codingPos]<s)for(i>0?--i:++i;t[i]<=e[this.codingPos]&&t[i]<s;)i+=2;break;case dn:this._addPixels(s,0),this.eof=!0;break;default:Wt("bad 2d code"),this._addPixels(s,0),this.err=!0}}else for(e[0]=0,this.codingPos=0,n=0;e[this.codingPos]<s;){if(l=0,n)do l+=h=this._getBlackCode();while(h>=64);else do l+=h=this._getWhiteCode();while(h>=64);this._addPixels(e[this.codingPos]+l,n),n^=1}let f=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(l=this._lookBits(12),this.eoline)for(;l!==dn&&l!==1;)this._eatBits(1),l=this._lookBits(12);else for(;l===0;)this._eatBits(1),l=this._lookBits(12);l===1?(this._eatBits(12),f=!0):l===dn&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&f&&this.byteAlign){if(l=this._lookBits(12),l===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(r=0;r<4;++r)l=this._lookBits(12),l!==1&&Wt("bad rtc code: "+l),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(l=this._lookBits(13),l===dn)return this.eof=!0,-1;if(l>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(l&1))}this.outputBits=e[0]>0?e[this.codingPos=0]:e[this.codingPos=1],this.row++}let o;if(this.outputBits>=8)o=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&e[this.codingPos]<s&&(this.codingPos++,this.outputBits=e[this.codingPos]-e[this.codingPos-1]);else{a=8,o=0;do{if(typeof this.outputBits!="number")throw new Q('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>a?(o<<=a,this.codingPos&1||(o|=255>>8-a),this.outputBits-=a,a=0):(o<<=this.outputBits,this.codingPos&1||(o|=255>>8-this.outputBits),a-=this.outputBits,this.outputBits=0,e[this.codingPos]<s?(this.codingPos++,this.outputBits=e[this.codingPos]-e[this.codingPos-1]):a>0&&(o<<=a,a=0))}while(a)}return this.black&&(o^=255),o}_addPixels(t,e){let s=this.codingLine,i=this.codingPos;t>s[i]&&(t>this.columns&&(Wt("row is wrong length"),this.err=!0,t=this.columns),i&1^e&&++i,s[i]=t),this.codingPos=i}_addPixelsNeg(t,e){let s=this.codingLine,i=this.codingPos;if(t>s[i])t>this.columns&&(Wt("row is wrong length"),this.err=!0,t=this.columns),i&1^e&&++i,s[i]=t;else if(t<s[i]){for(t<0&&(Wt("invalid code"),this.err=!0,t=0);i>0&&t<s[i-1];)--i;s[i]=t}this.codingPos=i}_findTableCode(t,e,s,i){let n=i||0;for(let a=t;a<=e;++a){let r=this._lookBits(a);if(r===dn)return[!0,1,!1];if(a<e&&(r<<=e-a),!n||r>=n){let o=s[r-n];if(o[0]===a)return this._eatBits(a),[!0,o[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let t=0,e;if(this.eoblock){if(t=this._lookBits(7),e=ap[t],e?.[0]>0)return this._eatBits(e[0]),e[1]}else{let s=this._findTableCode(1,7,ap);if(s[0]&&s[2])return s[1]}return Wt("Bad two dim code"),dn}_getWhiteCode(){let t=0,e;if(this.eoblock){if(t=this._lookBits(12),t===dn)return 1;if(e=t>>5===0?rp[t]:op[t>>3],e[0]>0)return this._eatBits(e[0]),e[1]}else{let s=this._findTableCode(1,9,op);if(s[0]||(s=this._findTableCode(11,12,rp),s[0]))return s[1]}return Wt("bad white code"),this._eatBits(1),1}_getBlackCode(){let t,e;if(this.eoblock){if(t=this._lookBits(13),t===dn)return 1;if(t>>7===0?e=lp[t]:t>>9===0&&t>>7!==0?e=cp[(t>>1)-64]:e=hp[t>>7],e[0]>0)return this._eatBits(e[0]),e[1]}else{let s=this._findTableCode(2,6,hp);if(s[0]||(s=this._findTableCode(7,12,cp,64),s[0])||(s=this._findTableCode(10,13,lp),s[0]))return s[1]}return Wt("bad black code"),this._eatBits(1),1}_lookBits(t){let e;for(;this.inputBits<t;){if((e=this.source.next())===-1)return this.inputBits===0?dn:this.inputBuf<<t-this.inputBits&65535>>16-t;this.inputBuf=this.inputBuf<<8|e,this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t}_eatBits(t){(this.inputBits-=t)<0&&(this.inputBits=0)}};Be=class Be extends $s{static{d(this,"Jbig2Error")}constructor(t){super(t,"Jbig2Error")}};tg=class tg{static{d(this,"ContextCache")}getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}};ir=class ir{static{d(this,"DecodingContext")}constructor(t,e,s){this.data=t,this.start=e,this.end=s}get decoder(){let t=new Qm(this.data,this.start,this.end);return lt(this,"decoder",t)}get contextCache(){let t=new tg;return lt(this,"contextCache",t)}};d(Is,"decodeInteger");d(O1,"decodeIAID");fp=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],ry=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],up=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],oy=[39717,1941,229,405];d(eg,"decodeBitmapTemplate0");d(ql,"decodeBitmap");d(N1,"decodeRefinement");d(sg,"decodeSymbolDictionary");d(L1,"decodeTextRegion");d(ig,"decodePatternDictionary");d(ng,"decodeHalftoneRegion");d(ag,"readSegmentHeader");d(rg,"readSegments");d(Po,"readRegionSegmentInformation");d(og,"processSegment");d(lg,"processSegments");d(cg,"parseJbig2Chunks");hg=class hg{static{d(this,"SimpleSegmentVisitor")}onPageInformation(t){this.currentPageInfo=t;let e=t.width+7>>3,s=new Uint8ClampedArray(e*t.height);t.defaultPixelValue&&s.fill(255),this.buffer=s}drawBitmap(t,e){let s=this.currentPageInfo,i=t.width,n=t.height,a=s.width+7>>3,r=s.combinationOperatorOverride?t.combinationOperator:s.combinationOperator,o=this.buffer,l=128>>(t.x&7),c=t.y*a+(t.x>>3),h,f,u,p;switch(r){case 0:for(h=0;h<n;h++){for(u=l,p=c,f=0;f<i;f++)e[h][f]&&(o[p]|=u),u>>=1,u||(u=128,p++);c+=a}break;case 2:for(h=0;h<n;h++){for(u=l,p=c,f=0;f<i;f++)e[h][f]&&(o[p]^=u),u>>=1,u||(u=128,p++);c+=a}break;default:throw new Be(`operator ${r} is not supported`)}}onImmediateGenericRegion(t,e,s,i){let n=t.info,a=new ir(e,s,i),r=ql(t.mmr,n.width,n.height,t.template,t.prediction,null,t.at,a);this.drawBitmap(n,r)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(t,e,s,i,n,a){let r,o;t.huffman&&(r=dg(t,s,this.customTables),o=new Mr(i,n,a));let l=this.symbols||={},c=[];for(let f of s){let u=l[f];u&&c.push(...u)}let h=new ir(i,n,a);l[e]=sg(t.huffman,t.refinement,c,t.numberOfNewSymbols,t.numberOfExportedSymbols,r,t.template,t.at,t.refinementTemplate,t.refinementAt,h,o)}onImmediateTextRegion(t,e,s,i,n){let a=t.info,r,o,l=this.symbols,c=[];for(let p of e){let m=l[p];m&&c.push(...m)}let h=Lh(c.length);t.huffman&&(o=new Mr(s,i,n),r=ug(t,e,this.customTables,c.length,o));let f=new ir(s,i,n),u=L1(t.huffman,t.refinement,a.width,a.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,c,h,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,r,t.refinementTemplate,t.refinementAt,f,t.logStripSize,o);this.drawBitmap(a,u)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(t,e,s,i,n){let a=this.patterns||={},r=new ir(s,i,n);a[e]=ig(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,r)}onImmediateHalftoneRegion(t,e,s,i,n){let a=this.patterns[e[0]],r=t.info,o=new ir(s,i,n),l=ng(t.mmr,a,t.template,r.width,r.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,o);this.drawBitmap(r,l)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(t,e,s,i){let n=this.customTables||={};n[t]=fg(e,s,i)}};An=class An{static{d(this,"HuffmanLine")}constructor(t){t.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=t[0],this.rangeLength=0,this.prefixCode=t[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=t[0],this.prefixLength=t[1],this.rangeLength=t[2],this.prefixCode=t[3],this.isLowerRange=t[4]==="lower")}};sh=class sh{static{d(this,"HuffmanTreeNode")}constructor(t){this.children=[],t?(this.isLeaf=!0,this.rangeLength=t.rangeLength,this.rangeLow=t.rangeLow,this.isLowerRange=t.isLowerRange,this.isOOB=t.isOOB):this.isLeaf=!1}buildTree(t,e){let s=t.prefixCode>>e&1;e<=0?this.children[s]=new sh(t):(this.children[s]||=new sh(null)).buildTree(t,e-1)}decodeNode(t){if(this.isLeaf){if(this.isOOB)return null;let s=t.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-s:s)}let e=this.children[t.readBit()];if(!e)throw new Be("invalid Huffman data");return e.decodeNode(t)}};Zo=class Zo{static{d(this,"HuffmanTable")}constructor(t,e){e||this.assignPrefixCodes(t),this.rootNode=new sh(null);for(let s=0,i=t.length;s<i;s++){let n=t[s];n.prefixLength>0&&this.rootNode.buildTree(n,n.prefixLength-1)}}decode(t){return this.rootNode.decodeNode(t)}assignPrefixCodes(t){let e=t.length,s=0;for(let c=0;c<e;c++)s=Math.max(s,t[c].prefixLength);let i=new Uint32Array(s+1);for(let c=0;c<e;c++)i[t[c].prefixLength]++;let n=1,a=0,r,o,l;for(i[0]=0;n<=s;){for(a=a+i[n-1]<<1,r=a,o=0;o<e;)l=t[o],l.prefixLength===n&&(l.prefixCode=r,r++),o++;n++}}};d(fg,"decodeTablesSegment");dp={};d(Sn,"getStandardTable");Mr=class Mr{static{d(this,"Reader")}constructor(t,e,s){this.data=t,this.start=e,this.end=s,this.position=e,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new Be("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}let t=this.currentByte>>this.shift&1;return this.shift--,t}readBits(t){let e=0,s;for(s=t-1;s>=0;s--)e|=this.readBit()<<s;return e}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}};d(ta,"getCustomHuffmanTable");d(ug,"getTextRegionHuffmanTables");d(dg,"getSymbolDictionaryHuffmanTables");d(pg,"readUncompressedBitmap");d(Gh,"decodeMMRBitmap");mg=class mg{static{d(this,"Jbig2Image")}parseChunks(t){return cg(t)}parse(t){throw Error("Not implemented: Jbig2Image.parse")}};xl=class xl{static{d(this,"JBig2CCITTFaxWasmImage")}static#t=null;static#e=null;static#s=null;static#i=!0;static#n=!0;static#a=null;static setOptions({handler:t,useWasm:e,useWorkerFetch:s,wasmUrl:i}){this.#i=e,this.#n=s,this.#a=i,s||(this.#e=t)}static async#r(t,e,s){}static async decode(t,e,s,i,n){let a=await this.#s;if(!a)throw new Be("JBig2 failed to initialize");let r,o;try{let l=t.length;if(r=a._malloc(l),a.writeArrayToMemory(t,r),n)a._ccitt_decode(r,l,e,s,n.K,n.EndOfLine?1:0,n.EncodedByteAlign?1:0,n.BlackIs1?1:0,n.Columns,n.Rows);else{let h=i?i.length:0;h>0&&(o=a._malloc(h),a.writeArrayToMemory(i,o)),a._jbig2_decode(r,l,e,s,o,h)}if(!a.imageData)throw new Be("Unknown error");let{imageData:c}=a;return a.imageData=null,c}finally{r&&a._free(r),o&&a._free(o)}}static cleanup(){this.#s=null}};ly=new Uint8Array(0);Ps=class Ps extends Lt{static{d(this,"DecodeStream")}constructor(t){if(super(),this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=ly,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(t){let e=this.buffer;if(t<=e.byteLength)return e;let s=this.minBufferLength;for(;s<t;)s*=2;let i=new Uint8Array(s);return i.set(e),this.buffer=i}getByte(){let t=this.pos;for(;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(t,e=null){let s=this.pos,i;if(t){for(this.ensureBuffer(s+t),i=s+t;!this.eof&&this.bufferLength<i;)this.readBlock(e);let n=this.bufferLength;i>n&&(i=n)}else{for(;!this.eof;)this.readBlock(e);i=this.bufferLength}return this.pos=i,this.buffer.subarray(s,i)}async getImageData(t,e){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,t,e):this.getBytes(t,e);let s=await this.stream.asyncGetBytes();return this.decodeImage(s,t,e)}async asyncGetBytesFromDecompressionStream(t){this.stream.reset();let e=this.stream.isAsync?await this.stream.asyncGetBytes():this.stream.getBytes();try{let{readable:s,writable:i}=new DecompressionStream(t),n=i.getWriter();await n.ready,n.write(e).then(async()=>{await n.ready,await n.close()}).catch(()=>{});let a=[],r=0;for await(let c of s)a.push(c),r+=c.byteLength;let o=new Uint8Array(r),l=0;for(let c of a)o.set(c,l),l+=c.byteLength;return{decompressed:o,compressed:e}}catch{return{decompressed:null,compressed:e}}}reset(){this.pos=0}makeSubStream(t,e,s=null){if(e===void 0)for(;!this.eof;)this.readBlock();else{let i=t+e;for(;this.bufferLength<=i&&!this.eof;)this.readBlock()}return new je(this.buffer,t,e,s)}getBaseStreams(){return this.stream?this.stream.getBaseStreams():null}clone(){for(;!this.eof;)this.readBlock();return new je(this.buffer,this.start,this.end-this.start,this.dict.clone())}};gg=class gg extends Ps{static{d(this,"StreamsSequenceStream")}constructor(t,e=null){t=t.filter((i)=>i instanceof Lt&&!i.isImageStream);let s=0;for(let i of t)s+=i instanceof Ps?i._rawMinBufferLength:i.length;super(s),this.streams=t,this._onError=e}readBlock(){let t=this.streams;if(t.length===0){this.eof=!0;return}let e=t.shift(),s;try{s=e.getBytes()}catch(a){if(this._onError){this._onError(a,e.dict?.objId);return}throw a}let i=this.bufferLength,n=i+s.length;this.ensureBuffer(n).set(s,i),this.bufferLength=n}getBaseStreams(){let t=[];for(let e of this.streams){let s=e.getBaseStreams();s&&t.push(...s)}return t.length>0?t:null}};le=class le{static{d(this,"ColorSpaceUtils")}static parse({cs:t,xref:e,resources:s=null,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:a,asyncIfNotCached:r=!1}){let o={xref:e,resources:s,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:a},l,c,h;if(t instanceof nt){c=t;let f=n.getByRef(c)||a.getByRef(c);if(f)return f;t=e.fetch(t)}if(t instanceof tt){l=t.name;let f=a.getByName(l);if(f)return f}try{h=this.#e(t,o)}catch(f){if(r&&!(f instanceof Ce))return Promise.reject(f);throw f}return(l||c)&&(a.set(l,c,h),c&&n.set(null,c,h)),r?Promise.resolve(h):h}static#t(t,e){let{globalColorSpaceCache:s}=e,i;if(t instanceof nt){i=t;let a=s.getByRef(i);if(a)return a}let n=this.#e(t,e);return i&&s.set(null,i,n),n}static#e(t,e){let{xref:s,resources:i,pdfFunctionFactory:n,globalColorSpaceCache:a}=e;if(t=s.fetchIfRef(t),t instanceof tt)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 au(null);default:if(i instanceof B){let r=i.get("ColorSpace");if(r instanceof B){let o=r.get(t.name);if(o){if(o instanceof tt)return this.#e(o,e);t=o;break}}}return T(`Unrecognized ColorSpace: ${t.name}`),this.gray}if(Array.isArray(t)){let r=s.fetchIfRef(t[0]).name,o,l,c,h,f,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 o=s.fetchIfRef(t[1]),h=o.getArray("WhitePoint"),f=o.getArray("BlackPoint"),u=o.get("Gamma"),new $m(h,f,u);case"CalRGB":o=s.fetchIfRef(t[1]),h=o.getArray("WhitePoint"),f=o.getArray("BlackPoint"),u=o.getArray("Gamma");let p=o.getArray("Matrix");return new Rs(h,f,u,p);case"ICCBased":let m=t[1]instanceof nt;if(m){let A=a.getByRef(t[1]);if(A)return A}let g=s.fetchIfRef(t[1]),w=g.dict;if(l=w.get("N"),Fn.isUsable)try{let A=new Fn(g.getBytes(),"ICCBased",l);return m&&a.set(null,t[1],A),A}catch(A){if(A instanceof Ce)throw A;T(`ICCBased color space (${t[1]}): "${A}".`)}let b=w.getRaw("Alternate");if(b){let A=this.#t(b,e);if(A.numComps===l)return A;T("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(l===1)return this.gray;if(l===3)return this.rgb;if(l===4)return this.cmyk;break;case"Pattern":return c=t[1]||null,c&&(c=this.#t(c,e)),new au(c);case"I":case"Indexed":c=this.#t(t[1],e);let j=Ze(s.fetchIfRef(t[2]),0,255),v=s.fetchIfRef(t[3]);return new Lm(c,j,v);case"Separation":case"DeviceN":let q=s.fetchIfRef(t[1]);l=Array.isArray(q)?q.length:1,c=this.#t(t[2],e);let x=n.create(t[3]);return new Nm(l,c,x);case"Lab":o=s.fetchIfRef(t[1]),h=o.getArray("WhitePoint"),f=o.getArray("BlackPoint");let k=o.getArray("Range");return new Vm(h,f,k);default:return T(`Unimplemented ColorSpace object: ${r}`),this.gray}}return T(`Unrecognized ColorSpace object: ${t}`),this.gray}static get gray(){return lt(this,"gray",new zm)}static get rgb(){return lt(this,"rgb",new Um)}static get rgba(){return lt(this,"rgba",new Gm)}static get cmyk(){if(Jo.isUsable)try{return lt(this,"cmyk",new Jo)}catch{T("CMYK fallback: DeviceCMYK")}return lt(this,"cmyk",new D1)}};pi=class pi extends $s{static{d(this,"JpegError")}constructor(t){super(t,"JpegError")}};ih=class ih extends $s{static{d(this,"DNLMarkerError")}constructor(t,e){super(t,"DNLMarkerError"),this.scanLines=e}};z1=class z1 extends $s{static{d(this,"EOIMarkerError")}constructor(t){super(t,"EOIMarkerError")}};Do=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]);d(bg,"buildHuffmanTable");d(nh,"getBlockBufferOffset");d(wg,"decodeScan");d(yg,"quantizeAndInverse");d(jg,"buildComponentData");d(Al,"findNextFileMarker");d(vg,"prepareComponents");d(cu,"readDataBlock");d(kg,"skipData");hu=class hu{static{d(this,"JpegImage")}constructor({decodeTransform:t=null,colorTransform:e=-1}={}){this._decodeTransform=t,this._colorTransform=e}static canUseImageDecoder(t,e=-1){let s=null,i=0,n=null,a=te(t,i);if(i+=2,a!==65496)throw new pi("SOI not found");a=te(t,i),i+=2;t:for(;a!==65497;){switch(a){case 65505:let{appData:r,oldOffset:o,newOffset:l}=cu(t,i);if(i=l,r[0]===69&&r[1]===120&&r[2]===105&&r[3]===102&&r[4]===0&&r[5]===0){if(s)throw new pi("Duplicate EXIF-blocks found.");s={exifStart:o+6,exifEnd:l}}a=te(t,i),i+=2;continue;case 65472:case 65473:case 65474:n=t[i+7];break t;case 65535:t[i]!==255&&i--;break}i=kg(t,i),a=te(t,i),i+=2}return n===4||n===3&&e===0?null:s||{}}parse(t,{dnlScanLines:e=null}={}){let s=0,i=null,n=null,a,r,o=0,l=[],c=[],h=[],f=te(t,s);if(s+=2,f!==65496)throw new pi("SOI not found");f=te(t,s),s+=2;t:for(;f!==65497;){let u,p,m;switch(f){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:g,newOffset:w}=cu(t,s);s=w,f===65504&&g[0]===74&&g[1]===70&&g[2]===73&&g[3]===70&&g[4]===0&&(i={version:{major:g[5],minor:g[6]},densityUnits:g[7],xDensity:g[8]<<8|g[9],yDensity:g[10]<<8|g[11],thumbWidth:g[12],thumbHeight:g[13],thumbData:g.subarray(14,14+3*g[12]*g[13])}),f===65518&&g[0]===65&&g[1]===100&&g[2]===111&&g[3]===98&&g[4]===101&&(n={version:g[5]<<8|g[6],flags0:g[7]<<8|g[8],flags1:g[9]<<8|g[10],transformCode:g[11]});break;case 65499:let b=te(t,s);s+=2;let j=b+s-2,v;for(;s<j;){let H=t[s++],L=new Uint16Array(64);if(H>>4===0)for(p=0;p<64;p++)v=Do[p],L[v]=t[s++];else if(H>>4===1)for(p=0;p<64;p++)v=Do[p],L[v]=te(t,s),s+=2;else throw new pi("DQT - invalid table spec");l[H&15]=L}break;case 65472:case 65473:case 65474:if(a)throw new pi("Only single frame JPEGs supported");s+=2,a={},a.extended=f===65473,a.progressive=f===65474,a.precision=t[s++];let q=te(t,s);s+=2,a.scanLines=e||q,a.samplesPerLine=te(t,s),s+=2,a.components=[],a.componentIds={};let x=t[s++],k=0,A=0;for(u=0;u<x;u++){let H=t[s],L=t[s+1]>>4,rt=t[s+1]&15;k<L&&(k=L),A<rt&&(A=rt);let yt=t[s+2];m=a.components.push({h:L,v:rt,quantizationId:yt,quantizationTable:null}),a.componentIds[H]=m-1,s+=3}a.maxH=k,a.maxV=A,vg(a);break;case 65476:let S=te(t,s);for(s+=2,u=2;u<S;){let H=t[s++],L=new Uint8Array(16),rt=0;for(p=0;p<16;p++,s++)rt+=L[p]=t[s];let yt=new Uint8Array(rt);for(p=0;p<rt;p++,s++)yt[p]=t[s];u+=17+rt,(H>>4===0?h:c)[H&15]=bg(L,yt)}break;case 65501:s+=2,r=te(t,s),s+=2;break;case 65498:let I=++o===1&&!e;s+=2;let E=t[s++],D=[];for(u=0;u<E;u++){let H=t[s++],L=a.componentIds[H],rt=a.components[L];rt.index=H;let yt=t[s++];rt.huffmanTableDC=h[yt>>4],rt.huffmanTableAC=c[yt&15],D.push(rt)}let O=t[s++],$=t[s++],it=t[s++];try{let H=wg(t,s,a,D,r,O,$,it>>4,it&15,I);s+=H}catch(H){if(H instanceof ih)return T(`${H.message} -- attempting to re-parse the JPEG image.`),this.parse(t,{dnlScanLines:H.scanLines});if(H instanceof z1){T(`${H.message} -- ignoring the rest of the image data.`);break t}throw H}break;case 65500:s+=4;break;case 65535:t[s]!==255&&s--;break;default:let W=Al(t,s-2,s-3);if(W?.invalid){T("JpegImage.parse - unexpected data, current marker is: "+W.invalid),s=W.offset;break}if(!W||s>=t.length-1){T("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break t}throw new pi("JpegImage.parse - unknown marker: "+f.toString(16))}f=te(t,s),s+=2}if(!a)throw new pi("JpegImage.parse - no frame data found.");this.width=a.samplesPerLine,this.height=a.scanLines,this.jfif=i,this.adobe=n,this.components=[];for(let u of a.components){let p=l[u.quantizationId];p&&(u.quantizationTable=p),this.components.push({index:u.index,output:jg(a,u),scaleX:u.h/a.maxH,scaleY:u.v/a.maxV,blocksPerLine:u.blocksPerLine,blocksPerColumn:u.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(t,e,s=!1){let i=this.width/t,n=this.height/e,a,r,o,l,c,h,f,u,p,m,g=0,w,b=this.components.length,j=t*e*b,v=new Uint8ClampedArray(j),q=new Uint32Array(t),x=4294967288,k;for(f=0;f<b;f++){if(a=this.components[f],r=a.scaleX*i,o=a.scaleY*n,g=f,w=a.output,l=a.blocksPerLine+1<<3,r!==k){for(c=0;c<t;c++)u=0|c*r,q[c]=(u&x)<<3|u&7;k=r}for(h=0;h<e;h++)for(u=0|h*o,m=l*(u&x)|(u&7)<<3,c=0;c<t;c++)v[g]=w[m+q[c]],g+=b}let A=this._decodeTransform;if(!s&&b===4&&!A&&(A=new Int32Array([-256,255,-256,255,-256,255,-256,255])),A)for(f=0;f<j;)for(u=0,p=0;u<b;u++,f++,p+=2)v[f]=(v[f]*A[p]>>8)+A[p+1];return v}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform===0?!1:!(this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66):this._colorTransform===1}_convertYccToRgb(t){let e,s,i;for(let n=0,a=t.length;n<a;n+=3)e=t[n],s=t[n+1],i=t[n+2],t[n]=e-179.456+1.402*i,t[n+1]=e+135.459-0.344*s-0.714*i,t[n+2]=e-226.816+1.772*s;return t}_convertYccToRgba(t,e){for(let s=0,i=0,n=t.length;s<n;s+=3,i+=4){let a=t[s],r=t[s+1],o=t[s+2];e[i]=a-179.456+1.402*o,e[i+1]=a+135.459-0.344*r-0.714*o,e[i+2]=a-226.816+1.772*r,e[i+3]=255}return e}_convertYcckToRgb(t){return this._convertYcckToCmyk(t),this._convertCmykToRgb(t)}_convertYcckToRgba(t){return this._convertYcckToCmyk(t),this._convertCmykToRgba(t)}_convertYcckToCmyk(t){let e,s,i;for(let n=0,a=t.length;n<a;n+=4)e=t[n],s=t[n+1],i=t[n+2],t[n]=434.456-e-1.402*i,t[n+1]=119.541-e+0.344*s+0.714*i,t[n+2]=481.816-e-1.772*s;return t}_convertCmykToRgb(t){let e=t.length/4;return le.cmyk.getRgbBuffer(t,0,e,t,0,8,0),t.subarray(0,e*3)}_convertCmykToRgba(t){if(le.cmyk.getRgbBuffer(t,0,t.length/4,t,0,8,1),le.cmyk instanceof D1)for(let e=3,s=t.length;e<s;e+=4)t[e]=255;return t}getData({width:t,height:e,forceRGBA:s=!1,forceRGB:i=!1,isSourcePDF:n=!1}){if(this.numComponents>4)throw new pi("Unsupported color mode");let a=this._getLinearizedBlockData(t,e,n);if(this.numComponents===1&&(s||i)){let r=a.length*(s?4:3),o=new Uint8ClampedArray(r),l=0;if(s)Xm(a,new Uint32Array(o.buffer));else for(let c of a)o[l++]=c,o[l++]=c,o[l++]=c;return o}else if(this.numComponents===3&&this._isColorConversionNeeded){if(s){let r=new Uint8ClampedArray(a.length/3*4);return this._convertYccToRgba(a,r)}return this._convertYccToRgb(a)}else if(this.numComponents===4){if(this._isColorConversionNeeded)return s?this._convertYcckToRgba(a):i?this._convertYcckToRgb(a):this._convertYcckToCmyk(a);if(s)return this._convertCmykToRgba(a);if(i)return this._convertCmykToRgb(a)}return a}};Ur=class Ur extends Ps{static{d(this,"JpegStream")}static#t=Ms.isImageDecoderSupported;constructor(t,e,s){super(e),this.stream=t,this.dict=t.dict,this.maybeLength=e,this.params=s}static get canUseImageDecoder(){return lt(this,"canUseImageDecoder",this.#t?ImageDecoder.isTypeSupported("image/jpeg"):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:t=!1}){this.#t=t}get bytes(){return lt(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){this.decodeImage()}get jpegOptions(){let t={decodeTransform:void 0,colorTransform:void 0},e=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(e)){let s=this.dict.get("BPC","BitsPerComponent")||8,i=e.length,n=new Int32Array(i),a=!1,r=(1<<s)-1;for(let o=0;o<i;o+=2)n[o]=(e[o+1]-e[o])*256|0,n[o+1]=e[o]*r|0,(n[o]!==256||n[o+1]!==0)&&(a=!0);a&&(t.decodeTransform=n)}if(this.params instanceof B){let s=this.params.get("ColorTransform");Number.isInteger(s)&&(t.colorTransform=s)}return lt(this,"jpegOptions",t)}#e(t){for(let e=0,s=t.length-1;e<s;e++)if(t[e]===255&&t[e+1]===216){e>0&&(t=t.subarray(e));break}return t}decodeImage(t){if(this.eof)return this.buffer;t=this.#e(t||this.bytes);let e=new hu(this.jpegOptions);e.parse(t);let s=e.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});return this.buffer=s,this.bufferLength=s.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(){if(!await Ur.canUseImageDecoder)return null;let t=this.jpegOptions;if(t.decodeTransform)return null;let e;try{let s=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!s)return null;let i=this.#e(s),n=hu.canUseImageDecoder(i,t.colorTransform);return n?(n.exifStart&&(i=i.slice(),i.fill(0,n.exifStart,n.exifEnd)),e=new ImageDecoder({data:i,type:"image/jpeg",preferAnimation:!1}),(await e.decode()).image):null}catch(s){return T(`getTransferableImage - failed: "${s}".`),null}finally{e?.close()}}get isImageStream(){return!0}};jo=class jo extends $s{static{d(this,"JpxError")}constructor(t){super(t,"JpxError")}};Sl=class Sl{static{d(this,"JpxImage")}static#t=null;static#e=null;static#s=null;static#i=!0;static#n=!0;static#a=null;static setOptions({handler:t,useWasm:e,useWorkerFetch:s,wasmUrl:i}){this.#i=e,this.#n=s,this.#a=i,s||(this.#e=t)}static async#r(t){}static async#o(t,e,s){}static async decode(t,{numComponents:e=4,isIndexedColormap:s=!1,smaskInData:i=!1,reducePower:n=0}={}){let a=await this.#s;if(!a)throw new jo("OpenJPEG failed to initialize");let r;try{let o=t.length;if(r=a._malloc(o),a.writeArrayToMemory(t,r),a._jp2_decode(r,o,e>0?e:0,!!s,!!i,n)){let{errorMessages:c}=a;throw c?(delete a.errorMessages,new jo(c)):new jo("Unknown error")}let{imageData:l}=a;return a.imageData=null,l}finally{r&&a._free(r)}}static cleanup(){this.#s=null}static parseImageProperties(t){let e=t.getByte();for(;e>=0;){let s=e;if(e=t.getByte(),(s<<8|e)===65361){t.skip(4);let i=t.getInt32()>>>0,n=t.getInt32()>>>0,a=t.getInt32()>>>0,r=t.getInt32()>>>0;t.skip(16);let o=t.getUint16();return{width:i-a,height:n-r,bitsPerComponent:8,componentsCount:o}}}throw new jo("No size marker found in JPX stream")}};d(nr,"addState");ka=[];nr(ka,[C.save,C.transform,C.paintInlineImageXObject,C.restore],null,d(function(t,e){let s=t.fnArray,i=t.iCurr-3,n=(e-i)%4;switch(n){case 0:return s[e]===C.save;case 1:return s[e]===C.transform;case 2:return s[e]===C.paintInlineImageXObject;case 3:return s[e]===C.restore}throw Error(`iterateInlineImageGroup - invalid pos: ${n}`)},"iterateInlineImageGroup"),d(function(t,e){let{fnArray:s,argsArray:i,iCurr:n}=t,a=n-3,r=n-2,o=n-1,l=Math.min(Math.floor((e-a)/4),200);if(l<10)return e-(e-a)%4;let c=0,h=[],f=0,u=1,p=1;for(let v=0;v<l;v++){let q=i[r+(v<<2)],x=i[o+(v<<2)][0];u+x.width>1000&&(c=Math.max(c,u),p+=f+2,u=0,f=0),h.push({transform:q,x:u,y:p,w:x.width,h:x.height}),u+=x.width+2,f=Math.max(f,x.height)}let m=Math.max(c,u)+1,g=p+f+1,w=new Uint8Array(m*g*4),b=m<<2;for(let v=0;v<l;v++){let q=i[o+(v<<2)][0].data,x=h[v].w<<2,k=0,A=h[v].x+h[v].y*m<<2;w.set(q.subarray(0,x),A-b);for(let S=0,I=h[v].h;S<I;S++)w.set(q.subarray(k,k+x),A),k+=x,A+=b;for(w.set(q.subarray(k-x,k),A);A>=0;)q[A-4]=q[A],q[A-3]=q[A+1],q[A-2]=q[A+2],q[A-1]=q[A+3],q[A+x]=q[A+x-4],q[A+x+1]=q[A+x-3],q[A+x+2]=q[A+x-2],q[A+x+3]=q[A+x-1],A-=b}let j={width:m,height:g};if(t.isOffscreenCanvasSupported){let v=new OffscreenCanvas(m,g);v.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(w.buffer),m,g),0,0),j.bitmap=v.transferToImageBitmap(),j.data=null}else j.kind=ms.RGBA_32BPP,j.data=w;return s.splice(a,l*4,C.paintInlineImageXObjectGroup),i.splice(a,l*4,[j,h]),a+1},"foundInlineImageGroup")),nr(ka,[C.save,C.transform,C.paintImageMaskXObject,C.restore],null,d(function(t,e){let s=t.fnArray,i=t.iCurr-3,n=(e-i)%4;switch(n){case 0:return s[e]===C.save;case 1:return s[e]===C.transform;case 2:return s[e]===C.paintImageMaskXObject;case 3:return s[e]===C.restore}throw Error(`iterateImageMaskGroup - invalid pos: ${n}`)},"iterateImageMaskGroup"),d(function(t,e){let{fnArray:s,argsArray:i,iCurr:n}=t,a=n-3,r=n-2,o=n-1,l=Math.floor((e-a)/4);if(l<10)return e-(e-a)%4;let c=!1,h,f,u=i[o][0],p=i[r][0],m=i[r][1],g=i[r][2],w=i[r][3];if(m===g){c=!0,h=r+4;let b=o+4;for(let j=1;j<l;j++,h+=4,b+=4)if(f=i[h],i[b][0]!==u||f[0]!==p||f[1]!==m||f[2]!==g||f[3]!==w){j<10?c=!1:l=j;break}}if(c){l=Math.min(l,1000);let b=new Float32Array(l*2);h=r;for(let j=0;j<l;j++,h+=4)f=i[h],b[j<<1]=f[4],b[(j<<1)+1]=f[5];s.splice(a,l*4,C.paintImageMaskXObjectRepeat),i.splice(a,l*4,[u,p,m,g,w,b])}else{l=Math.min(l,100);let b=[];for(let j=0;j<l;j++){f=i[r+(j<<2)];let v=i[o+(j<<2)][0];b.push({data:v.data,width:v.width,height:v.height,interpolate:v.interpolate,count:v.count,transform:f})}s.splice(a,l*4,C.paintImageMaskXObjectGroup),i.splice(a,l*4,[b])}return a+1},"foundImageMaskGroup")),nr(ka,[C.save,C.transform,C.paintImageXObject,C.restore],function(t){let e=t.argsArray,s=t.iCurr-2;return e[s][1]===0&&e[s][2]===0},d(function(t,e){let{fnArray:s,argsArray:i}=t,n=t.iCurr-3,a=(e-n)%4;switch(a){case 0:return s[e]===C.save;case 1:if(s[e]!==C.transform)return!1;let r=t.iCurr-2,o=i[r][0],l=i[r][3];return!(i[e][0]!==o||i[e][1]!==0||i[e][2]!==0||i[e][3]!==l);case 2:if(s[e]!==C.paintImageXObject)return!1;let c=t.iCurr-1,h=i[c][0];return i[e][0]===h;case 3:return s[e]===C.restore}throw Error(`iterateImageGroup - invalid pos: ${a}`)},"iterateImageGroup"),function(t,e){let{fnArray:s,argsArray:i,iCurr:n}=t,a=n-3,r=n-2,o=n-1,l=i[o][0],c=i[r][0],h=i[r][3],f=Math.min(Math.floor((e-a)/4),1000);if(f<3)return e-(e-a)%4;let u=new Float32Array(f*2),p=r;for(let g=0;g<f;g++,p+=4){let w=i[p];u[g<<1]=w[4],u[(g<<1)+1]=w[5]}let m=[l,c,h,u];return s.splice(a,f*4,C.paintImageXObjectRepeat),i.splice(a,f*4,m),a+1}),nr(ka,[C.beginText,C.setFont,C.setTextMatrix,C.showText,C.endText],null,d(function(t,e){let{fnArray:s,argsArray:i}=t,n=t.iCurr-4,a=(e-n)%5;switch(a){case 0:return s[e]===C.beginText;case 1:return s[e]===C.setFont;case 2:return s[e]===C.setTextMatrix;case 3:if(s[e]!==C.showText)return!1;let r=t.iCurr-3,o=i[r][0],l=i[r][1];return!(i[e][0]!==o||i[e][1]!==l);case 4:return s[e]===C.endText}throw Error(`iterateShowTextGroup - invalid pos: ${a}`)},"iterateShowTextGroup"),function(t,e){let{fnArray:s,argsArray:i,iCurr:n}=t,a=n-4,r=n-3,o=n-2,l=n-1,c=n,h=i[r][0],f=i[r][1],u=Math.min(Math.floor((e-a)/5),1000);if(u<3)return e-(e-a)%5;let p=a;a>=4&&s[a-4]===s[r]&&s[a-3]===s[o]&&s[a-2]===s[l]&&s[a-1]===s[c]&&i[a-4][0]===h&&i[a-4][1]===f&&(u++,p-=5);let m=p+4;for(let g=1;g<u;g++)s.splice(m,3),i.splice(m,3),m+=2;return m+1}),nr(ka,[C.save,C.transform,C.constructPath,C.restore],(t)=>{let e=t.argsArray,s=t.iCurr-1,i=e[s][0];if(i!==C.stroke&&i!==C.closeStroke&&i!==C.fillStroke&&i!==C.eoFillStroke&&i!==C.closeFillStroke&&i!==C.closeEOFillStroke)return!0;let n=t.iCurr-2,a=e[n];return a[0]===1&&a[1]===0&&a[2]===0&&a[3]===1},()=>!1,(t,e)=>{let{fnArray:s,argsArray:i}=t,n=t.iCurr,a=n-3,r=n-2,o=n-1,l=i[o],c=i[r],[,[h],f]=l;if(f){de.scaleMinMax(c,f);for(let u=0,p=h.length;u<p;)switch(h[u++]){case Te.moveTo:case Te.lineTo:de.applyTransform(h,c,u),u+=2;break;case Te.curveTo:de.applyTransformToBezier(h,c,u),u+=6;break}}return s.splice(a,4,C.constructPath),i.splice(a,4,l),a+1});U1=class U1{static{d(this,"NullOptimizer")}constructor(t){this.queue=t}_optimize(){}push(t,e){this.queue.fnArray.push(t),this.queue.argsArray.push(e),this._optimize()}flush(){}reset(){}};qg=class qg extends U1{static{d(this,"QueueOptimizer")}constructor(t){super(t),this.state=null,this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray,isOffscreenCanvasSupported:vs.isOffscreenCanvasSupported},this.match=null,this.lastProcessed=0}_optimize(){let t=this.queue.fnArray,e=this.lastProcessed,s=t.length,i=this.state,n=this.match;if(!i&&!n&&e+1===s&&!ka[t[e]]){this.lastProcessed=s;return}let a=this.context;for(;e<s;){if(n){if((0,n.iterateFn)(a,e)){e++;continue}if(e=(0,n.processFn)(a,e+1),s=t.length,n=null,i=null,e>=s)break}if(i=(i||ka)[t[e]],!i||Array.isArray(i)){e++;continue}if(a.iCurr=e,e++,i.checkFn&&!(0,i.checkFn)(a)){i=null;continue}n=i,i=null}this.state=i,this.match=n,this.lastProcessed=e}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}};vs=class vs{static{d(this,"OperatorList")}static CHUNK_SIZE=1000;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;static isOffscreenCanvasSupported=!1;constructor(t=0,e){this._streamSink=e,this.fnArray=[],this.argsArray=[],this.optimizer=e&&!(t&zs.OPLIST)?new qg(this):new U1(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=e?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,e){this.optimizer.push(t,e),this.weight++,this._streamSink&&(this.weight>=vs.CHUNK_SIZE?this.flush():this.weight>=vs.CHUNK_SIZE_ABOUT&&(t===C.restore||t===C.endText)&&this.flush())}addImageOps(t,e,s,i=!1){i&&(this.addOp(C.save),this.addOp(C.setGState,[[["SMask",!1]]])),s!==void 0&&this.addOp(C.beginMarkedContentProps,["OC",s]),this.addOp(t,e),s!==void 0&&this.addOp(C.endMarkedContent,[]),i&&this.addOp(C.restore)}addDependency(t){this.dependencies.has(t)||(this.dependencies.add(t),this.addOp(C.dependency,[t]))}addDependencies(t){for(let e of t)this.addDependency(e)}addOpList(t){if(!(t instanceof vs)){T('addOpList - ignoring invalid "opList" parameter.');return}for(let e of t.dependencies)this.dependencies.add(e);for(let e=0,s=t.length;e<s;e++)this.addOp(t.fnArray[e],t.argsArray[e])}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){let t=[],{fnArray:e,argsArray:s,length:i}=this;for(let n=0;n<i;n++)switch(e[n]){case C.paintInlineImageXObject:case C.paintInlineImageXObjectGroup:case C.paintImageMaskXObject:{let{bitmap:o,data:l}=s[n][0];(o||l?.buffer)&&t.push(o||l.buffer);break}case C.constructPath:{let[,[o],l]=s[n];o&&t.push(o.buffer,l.buffer);break}case C.paintFormXObjectBegin:let[a,r]=s[n];a&&t.push(a.buffer),r&&t.push(r.buffer);break;case C.setTextMatrix:t.push(s[n][0].buffer);break}return t}flush(t=!1,e=null){this.optimizer.flush();let s=this.length;this._totalLength+=s,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,separateAnnots:e,length:s},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}};d(Ss,"hexToInt");d(vo,"hexToStr");d(Ds,"addHex");d(Vn,"incHex");xg=class xg extends je{static{d(this,"BinaryCMapStream")}tmpBuf=new Uint8Array(cy);constructor(t){super(t,0,t.length,null)}readNumber(){let t=0,e;do{let s=this.getByte();if(s<0)throw new Q("unexpected EOF in bcmap");e=!(s&128),t=t<<7|s&127}while(!e);return t}readSigned(){let t=this.readNumber();return t&1?~(t>>>1):t>>>1}readHex(t,e){t.set(this.getBytes(e+1))}readHexNumber(t,e){let s,i=this.tmpBuf,n=0;do{let l=this.getByte();if(l<0)throw new Q("unexpected EOF in bcmap");s=!(l&128),i[n++]=l&127}while(!s);let a=e,r=0,o=0;for(;a>=0;){for(;o<8&&i.length>0;)r|=i[--n]<<o,o+=7;t[a]=r&255,a--,r>>=8,o-=8}}readHexSigned(t,e){this.readHexNumber(t,e);let s=t[e]&1?255:0,i=0;for(let n=0;n<=e;n++)i=(i&1)<<8|t[n],t[n]=i>>1^s}readString(){let t=this.readNumber(),e=Array(t);for(let s=0;s<t;s++)e[s]=this.readNumber();return String.fromCharCode(...e)}};Ag=class Ag{static{d(this,"BinaryCMapReader")}async process(t,e,s){let i=new xg(t),n=i.getByte();e.vertical=!!(n&1);let a=null,r=new Uint8Array(Ja),o=new Uint8Array(Ja),l=new Uint8Array(Ja),c=new Uint8Array(Ja),h=new Uint8Array(Ja),f,u;for(;(u=i.getByte())>=0;){let p=u>>5;if(p===7){switch(u&31){case 0:i.readString();break;case 1:a=i.readString();break}continue}let m=!!(u&16),g=u&15;if(g+1>Ja)throw Error("BinaryCMapReader.process: Invalid dataSize.");let w=1,b=i.readNumber();switch(p){case 0:i.readHex(r,g),i.readHexNumber(o,g),Ds(o,r,g),e.addCodespaceRange(g+1,Ss(r,g),Ss(o,g));for(let j=1;j<b;j++)Vn(o,g),i.readHexNumber(r,g),Ds(r,o,g),i.readHexNumber(o,g),Ds(o,r,g),e.addCodespaceRange(g+1,Ss(r,g),Ss(o,g));break;case 1:i.readHex(r,g),i.readHexNumber(o,g),Ds(o,r,g),i.readNumber();for(let j=1;j<b;j++)Vn(o,g),i.readHexNumber(r,g),Ds(r,o,g),i.readHexNumber(o,g),Ds(o,r,g),i.readNumber();break;case 2:i.readHex(l,g),f=i.readNumber(),e.mapOne(Ss(l,g),f);for(let j=1;j<b;j++)Vn(l,g),m||(i.readHexNumber(h,g),Ds(l,h,g)),f=i.readSigned()+(f+1),e.mapOne(Ss(l,g),f);break;case 3:i.readHex(r,g),i.readHexNumber(o,g),Ds(o,r,g),f=i.readNumber(),e.mapCidRange(Ss(r,g),Ss(o,g),f);for(let j=1;j<b;j++)Vn(o,g),m?r.set(o):(i.readHexNumber(r,g),Ds(r,o,g)),i.readHexNumber(o,g),Ds(o,r,g),f=i.readNumber(),e.mapCidRange(Ss(r,g),Ss(o,g),f);break;case 4:i.readHex(l,w),i.readHex(c,g),e.mapOne(Ss(l,w),vo(c,g));for(let j=1;j<b;j++)Vn(l,w),m||(i.readHexNumber(h,w),Ds(l,h,w)),Vn(c,g),i.readHexSigned(h,g),Ds(c,h,g),e.mapOne(Ss(l,w),vo(c,g));break;case 5:i.readHex(r,w),i.readHexNumber(o,w),Ds(o,r,w),i.readHex(c,g),e.mapBfRange(Ss(r,w),Ss(o,w),vo(c,g));for(let j=1;j<b;j++)Vn(o,w),m?r.set(o):(i.readHexNumber(r,w),Ds(r,o,w)),i.readHexNumber(o,w),Ds(o,r,w),i.readHex(c,g),e.mapBfRange(Ss(r,w),Ss(o,w),vo(c,g));break;default:throw Error(`BinaryCMapReader.process - unknown type: ${p}`)}}return a?s(a):e}};Sg=class Sg extends Ps{static{d(this,"Ascii85Stream")}constructor(t,e){e&&(e*=0.8),super(e),this.stream=t,this.dict=t.dict,this.input=new Uint8Array(5)}readBlock(){let t=this.stream,e=t.getByte();for(;ai(e);)e=t.getByte();if(e===-1||e===126){this.eof=!0;return}let s=this.bufferLength,i,n;if(e===122){for(i=this.ensureBuffer(s+4),n=0;n<4;++n)i[s+n]=0;this.bufferLength+=4}else{let a=this.input;for(a[0]=e,n=1;n<5;++n){for(e=t.getByte();ai(e);)e=t.getByte();if(a[n]=e,e===-1||e===126)break}if(i=this.ensureBuffer(s+n-1),this.bufferLength+=n-1,n<5){for(;n<5;++n)a[n]=117;this.eof=!0}let r=0;for(n=0;n<5;++n)r=r*85+(a[n]-33);for(n=3;n>=0;--n)i[s+n]=r&255,r>>=8}}};Cg=class Cg extends Ps{static{d(this,"AsciiHexStream")}constructor(t,e){e&&(e*=0.5),super(e),this.stream=t,this.dict=t.dict,this.firstDigit=-1}readBlock(){let t=this.stream.getBytes(8000);if(!t.length){this.eof=!0;return}let e=t.length+1>>1,s=this.ensureBuffer(this.bufferLength+e),i=this.bufferLength,n=this.firstDigit;for(let a of t){let r;if(a>=48&&a<=57)r=a&15;else if(a>=65&&a<=70||a>=97&&a<=102)r=(a&15)+9;else if(a===62){this.eof=!0;break}else continue;n<0?n=r:(s[i++]=n<<4|r,n=-1)}n>=0&&this.eof&&(s[i++]=n<<4,n=-1),this.firstDigit=n,this.bufferLength=i}};hy=d(()=>{let t=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]),e=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]),i=Int32Array.from([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),n=Int32Array.from([131072,131076,131075,196610,131072,131076,131075,262145,131072,131076,131075,196610,131072,131076,131075,262149]),a=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]),r=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]),o=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]),c=new Int16Array(2816);p(c);function h(y){let M=-1,P=16,G=y;for(;P>0;){let z=G>>P;z!==0&&(M+=P,G=z),P=P>>1}return M+G}d(h,"log2floor");function f(y,M,P){return 16+M+2*(P<<y)}d(f,"calculateDistanceAlphabetSize");function u(y,M,P,G){if(M<G+(2<<P))return pe(y,-23);let z=(M-G>>P)+4,st=h(z)-1;return((st-1<<1|z>>st&1)-1<<P)+(1<<P)+G+16}d(u,"calculateDistanceAlphabetLimit");function p(y){let M=new Int32Array(24),P=new Int32Array(24);P[0]=2;for(let G=0;G<23;++G)M[G+1]=M[G]+(1<<o[G]),P[G+1]=P[G]+(1<<l[G]);for(let G=0;G<704;++G){let z=G>>6,st=-4;z>=2&&(z-=2,st=0);let dt=(170064>>z*2&3)<<3|G>>3&7,At=(156228>>z*2&3)<<3|G&7,Ht=P[At],Gt=st+Math.min(Ht,5)-2,$t=G*4;y[$t]=o[dt]|l[At]<<8,y[$t+1]=M[dt],y[$t+2]=P[At],y[$t+3]=Gt}}d(p,"unpackCommandLookupTable");function m(y){let M=y.isLargeWindow;if(y.isLargeWindow=0,y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),ct(y,1)===0)return 16;let P=ct(y,3);return P!==0?17+P:(P=ct(y,3),P!==0?P===1?M===0||(y.isLargeWindow=1,ct(y,1)===1)||(P=ct(y,6),P<10||P>30)?-1:P:8+P:17)}d(m,"decodeWindowBits");function g(y,M){return y.runningState!==1?pe(y,-24):(y.cdNumChunks===0&&(y.cdChunks=Array(16),y.cdChunkOffsets=new Int32Array(16),y.cdBlockBits=-1),y.cdNumChunks===15?pe(y,-27):(y.cdChunks[y.cdNumChunks]=M,y.cdNumChunks++,y.cdTotalSize+=M.length,y.cdChunkOffsets[y.cdNumChunks]=y.cdTotalSize,0))}d(g,"attachDictionaryChunk");function w(y){if(y.runningState!==0)return pe(y,-26);y.blockTrees=new Int32Array(3091),y.blockTrees[0]=7,y.distRbIdx=3;let M=u(y,2147483644,3,120);if(M<0)return M;let P=M;return y.distExtraBits=new Int8Array(P),y.distOffset=new Int32Array(P),M=Mt(y),M<0?M:(y.runningState=1,0)}d(w,"initState");function b(y){return y.runningState===0?pe(y,-25):(y.runningState>0&&(y.runningState=11),0)}d(b,"close");function j(y){if(y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),ct(y,1)!==0){let M=ct(y,3);return M===0?1:ct(y,M)+(1<<M)}return 0}d(j,"decodeVarLenUnsignedByte");function v(y){if(y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),y.inputEnd=ct(y,1),y.metaBlockLength=0,y.isUncompressed=0,y.isMetadata=0,y.inputEnd!==0&&ct(y,1)!==0)return 0;let M=ct(y,2)+4;if(M===7){if(y.isMetadata=1,ct(y,1)!==0)return pe(y,-6);let P=ct(y,2);if(P===0)return 0;for(let G=0;G<P;++G){y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16);let z=ct(y,8);if(z===0&&G+1===P&&P>1)return pe(y,-8);y.metaBlockLength+=z<<G*8}}else for(let P=0;P<M;++P){y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16);let G=ct(y,4);if(G===0&&P+1===M&&M>4)return pe(y,-8);y.metaBlockLength+=G<<P*4}return y.metaBlockLength++,y.inputEnd===0&&(y.isUncompressed=ct(y,1)),0}d(v,"decodeMetaBlockLength");function q(y,M,P){let G=y[M],z=P.accumulator32>>>P.bitOffset;G+=z&255;let st=y[G]>>16,dt=y[G]&65535;if(st<=8)return P.bitOffset+=st,dt;G+=dt;let At=(1<<st)-1;return G+=(z&At)>>>8,P.bitOffset+=(y[G]>>16)+8,y[G]&65535}d(q,"readSymbol");function x(y,M,P){P.bitOffset>=16&&(P.accumulator32=P.shortBuffer[P.halfOffset++]<<16|P.accumulator32>>>16,P.bitOffset-=16);let G=q(y,M,P),z=r[G];return P.bitOffset>=16&&(P.accumulator32=P.shortBuffer[P.halfOffset++]<<16|P.accumulator32>>>16,P.bitOffset-=16),a[G]+(z<=16?ct(P,z):pt(P,z))}d(x,"readBlockLength");function k(y,M){let P=M,G=y[P];for(;P>0;)y[P]=y[P-1],P--;y[0]=G}d(k,"moveToFront");function A(y,M){let P=new Int32Array(256);for(let G=0;G<256;++G)P[G]=G;for(let G=0;G<M;++G){let z=y[G]&255;y[G]=P[z],z!==0&&k(P,z)}}d(A,"inverseMoveToFrontTransform");function S(y,M,P,G){let z=0,st=8,dt=0,At=0,Ht=32768,Gt=new Int32Array(33),$t=Gt.length-1;for(kt(Gt,$t,5,y,18);z<M&&Ht>0;){if(G.halfOffset>2030){let he=wt(G);if(he<0)return he}G.bitOffset>=16&&(G.accumulator32=G.shortBuffer[G.halfOffset++]<<16|G.accumulator32>>>16,G.bitOffset-=16);let Jt=G.accumulator32>>>G.bitOffset&31;G.bitOffset+=Gt[Jt]>>16;let ae=Gt[Jt]&65535;if(ae<16)dt=0,P[z++]=ae,ae!==0&&(st=ae,Ht-=32768>>ae);else{let he=ae-14,Ue=0;ae===16&&(Ue=st),At!==Ue&&(dt=0,At=Ue);let Di=dt;dt>0&&(dt-=2,dt=dt<<he),G.bitOffset>=16&&(G.accumulator32=G.shortBuffer[G.halfOffset++]<<16|G.accumulator32>>>16,G.bitOffset-=16),dt+=ct(G,he)+3;let ci=dt-Di;if(z+ci>M)return pe(G,-2);for(let fs=0;fs<ci;++fs)P[z++]=At;At!==0&&(Ht-=ci<<15-At)}}return Ht!==0?pe(G,-18):(P.fill(0,z,M),0)}d(S,"readHuffmanCodeLengths");function I(y,M,P){for(let G=0;G<P-1;++G)for(let z=G+1;z<P;++z)if(M[G]===M[z])return pe(y,-7);return 0}d(I,"checkDupes");function E(y,M,P,G,z){let st=new Int32Array(M),dt=new Int32Array(4),At=1+h(y-1),Ht=ct(z,2)+1;for(let Jt=0;Jt<Ht;++Jt){z.bitOffset>=16&&(z.accumulator32=z.shortBuffer[z.halfOffset++]<<16|z.accumulator32>>>16,z.bitOffset-=16);let ae=ct(z,At);if(ae>=M)return pe(z,-15);dt[Jt]=ae}let Gt=I(z,dt,Ht);if(Gt<0)return Gt;let $t=Ht;switch(Ht===4&&($t+=ct(z,1)),$t){case 1:st[dt[0]]=1;break;case 2:st[dt[0]]=1,st[dt[1]]=1;break;case 3:st[dt[0]]=1,st[dt[1]]=2,st[dt[2]]=2;break;case 4:st[dt[0]]=2,st[dt[1]]=2,st[dt[2]]=2,st[dt[3]]=2;break;case 5:st[dt[0]]=1,st[dt[1]]=2,st[dt[2]]=3,st[dt[3]]=3;break}return kt(P,G,8,st,M)}d(E,"readSimpleHuffmanCode");function D(y,M,P,G,z){let st=new Int32Array(y),dt=new Int32Array(18),At=32,Ht=0;for(let $t=M;$t<18;++$t){let Jt=e[$t];z.bitOffset>=16&&(z.accumulator32=z.shortBuffer[z.halfOffset++]<<16|z.accumulator32>>>16,z.bitOffset-=16);let ae=z.accumulator32>>>z.bitOffset&15;z.bitOffset+=n[ae]>>16;let he=n[ae]&65535;if(dt[Jt]=he,he!==0&&(At-=32>>he,Ht++,At<=0))break}if(At!==0&&Ht!==1)return pe(z,-4);let Gt=S(dt,y,st,z);return Gt<0?Gt:kt(P,G,8,st,y)}d(D,"readComplexHuffmanCode");function O(y,M,P,G,z){if(z.halfOffset>2030){let dt=wt(z);if(dt<0)return dt}z.bitOffset>=16&&(z.accumulator32=z.shortBuffer[z.halfOffset++]<<16|z.accumulator32>>>16,z.bitOffset-=16);let st=ct(z,2);return st===1?E(y,M,P,G,z):D(M,st,P,G,z)}d(O,"readHuffmanCode");function $(y,M,P){let G;if(P.halfOffset>2030&&(G=wt(P),G<0))return G;let z=j(P)+1;if(z===1)return M.fill(0,0,y),z;P.bitOffset>=16&&(P.accumulator32=P.shortBuffer[P.halfOffset++]<<16|P.accumulator32>>>16,P.bitOffset-=16);let st=ct(P,1),dt=0;st!==0&&(dt=ct(P,4)+1);let At=z+dt,Ht=t[At+31>>5],Gt=new Int32Array(Ht+1),$t=Gt.length-1;if(G=O(At,At,Gt,$t,P),G<0)return G;let Jt=0;for(;Jt<y;){if(P.halfOffset>2030&&(G=wt(P),G<0))return G;P.bitOffset>=16&&(P.accumulator32=P.shortBuffer[P.halfOffset++]<<16|P.accumulator32>>>16,P.bitOffset-=16);let ae=q(Gt,$t,P);if(ae===0)M[Jt]=0,Jt++;else if(ae<=dt){P.bitOffset>=16&&(P.accumulator32=P.shortBuffer[P.halfOffset++]<<16|P.accumulator32>>>16,P.bitOffset-=16);let he=(1<<ae)+ct(P,ae);for(;he!==0;){if(Jt>=y)return pe(P,-3);M[Jt]=0,Jt++,he--}}else M[Jt]=ae-dt,Jt++}return P.bitOffset>=16&&(P.accumulator32=P.shortBuffer[P.halfOffset++]<<16|P.accumulator32>>>16,P.bitOffset-=16),ct(P,1)===1&&A(M,y),z}d($,"decodeContextMap");function it(y,M,P){let G=y.rings,z=4+M*2;y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16);let st=q(y.blockTrees,2*M,y),dt=x(y.blockTrees,2*M+1,y);return st===1?st=G[z+1]+1:st===0?st=G[z]:st-=2,st>=P&&(st-=P),G[z]=G[z+1],G[z+1]=st,dt}d(it,"decodeBlockTypeAndLength");function W(y){y.literalBlockLength=it(y,0,y.numLiteralBlockTypes);let M=y.rings[5];y.contextMapSlice=M<<6,y.literalTreeIdx=y.contextMap[y.contextMapSlice]&255;let P=y.contextModes[M];y.contextLookupOffset1=P<<9,y.contextLookupOffset2=y.contextLookupOffset1+256}d(W,"decodeLiteralBlockSwitch");function H(y){y.commandBlockLength=it(y,1,y.numCommandBlockTypes),y.commandTreeIdx=y.rings[7]}d(H,"decodeCommandBlockSwitch");function L(y){y.distanceBlockLength=it(y,2,y.numDistanceBlockTypes),y.distContextMapSlice=y.rings[9]<<2}d(L,"decodeDistanceBlockSwitch");function rt(y){let M=y.maxRingBufferSize;if(M>y.expectedTotalSize){let st=y.expectedTotalSize;for(;M>>1>st;)M=M>>1;y.inputEnd===0&&M<16384&&y.maxRingBufferSize>=16384&&(M=16384)}if(M<=y.ringBufferSize)return;let P=M+37,G=new Int8Array(P),z=y.ringBuffer;z.length!==0&&G.set(z.subarray(0,y.ringBufferSize),0),y.ringBuffer=G,y.ringBufferSize=M}d(rt,"maybeReallocateRingBuffer");function yt(y){if(y.inputEnd!==0)return y.nextRunningState=10,y.runningState=12,0;y.literalTreeGroup=new Int32Array(0),y.commandTreeGroup=new Int32Array(0),y.distanceTreeGroup=new Int32Array(0);let M;if(y.halfOffset>2030&&(M=wt(y),M<0)||(M=v(y),M<0))return M;if(y.metaBlockLength===0&&y.isMetadata===0)return 0;if(y.isUncompressed!==0||y.isMetadata!==0){if(M=ze(y),M<0)return M;y.isMetadata===0?y.runningState=6:y.runningState=5}else y.runningState=3;return y.isMetadata!==0||(y.expectedTotalSize+=y.metaBlockLength,y.expectedTotalSize>1073741824&&(y.expectedTotalSize=1073741824),y.ringBufferSize<y.maxRingBufferSize&&rt(y)),0}d(yt,"readNextMetablockHeader");function X(y,M,P){let G=y.blockTrees[2*M];if(P<=1)return y.blockTrees[2*M+1]=G,y.blockTrees[2*M+2]=G,268435456;let z=P+2,st=O(z,z,y.blockTrees,2*M,y);if(st<0)return st;G+=st,y.blockTrees[2*M+1]=G;let dt=26;return st=O(dt,dt,y.blockTrees,2*M+1,y),st<0?st:(G+=st,y.blockTrees[2*M+2]=G,x(y.blockTrees,2*M+1,y))}d(X,"readMetablockPartition");function St(y,M){let{distExtraBits:P,distOffset:G,distancePostfixBits:z,numDirectDistanceCodes:st}=y,dt=1<<z,At=1,Ht=0,Gt=16;for(let $t=0;$t<st;++$t)P[Gt]=0,G[Gt]=$t+1,++Gt;for(;Gt<M;){let $t=st+((2+Ht<<At)-4<<z)+1;for(let Jt=0;Jt<dt;++Jt)P[Gt]=At,G[Gt]=$t+Jt,++Gt;At=At+Ht,Ht=Ht^1}}d(St,"calculateDistanceLut");function qt(y){y.numLiteralBlockTypes=j(y)+1;let M=X(y,0,y.numLiteralBlockTypes);if(M<0||(y.literalBlockLength=M,y.numCommandBlockTypes=j(y)+1,M=X(y,1,y.numCommandBlockTypes),M<0)||(y.commandBlockLength=M,y.numDistanceBlockTypes=j(y)+1,M=X(y,2,y.numDistanceBlockTypes),M<0)||(y.distanceBlockLength=M,y.halfOffset>2030&&(M=wt(y),M<0)))return M;y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),y.distancePostfixBits=ct(y,2),y.numDirectDistanceCodes=ct(y,4)<<y.distancePostfixBits,y.contextModes=new Int8Array(y.numLiteralBlockTypes);let P=0;for(;P<y.numLiteralBlockTypes;){let Ht=Math.min(P+96,y.numLiteralBlockTypes);for(;P<Ht;)y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),y.contextModes[P]=ct(y,2),P++;if(y.halfOffset>2030&&(M=wt(y),M<0))return M}let G=y.numLiteralBlockTypes<<6;if(y.contextMap=new Int8Array(G),M=$(G,y.contextMap,y),M<0)return M;let z=M;y.trivialLiteralContext=1;for(let Ht=0;Ht<G;++Ht)if(y.contextMap[Ht]!==Ht>>6){y.trivialLiteralContext=0;break}if(y.distContextMap=new Int8Array(y.numDistanceBlockTypes<<2),M=$(y.numDistanceBlockTypes<<2,y.distContextMap,y),M<0)return M;let st=M;if(y.literalTreeGroup=new Int32Array(N(256,z)),M=_(256,256,z,y,y.literalTreeGroup),M<0||(y.commandTreeGroup=new Int32Array(N(704,y.numCommandBlockTypes)),M=_(704,704,y.numCommandBlockTypes,y,y.commandTreeGroup),M<0))return M;let dt=f(y.distancePostfixBits,y.numDirectDistanceCodes,24),At=dt;if(y.isLargeWindow===1){if(dt=f(y.distancePostfixBits,y.numDirectDistanceCodes,62),M=u(y,2147483644,y.distancePostfixBits,y.numDirectDistanceCodes),M<0)return M;At=M}return y.distanceTreeGroup=new Int32Array(N(At,st)),M=_(dt,At,st,y,y.distanceTreeGroup),M<0?M:(St(y,At),y.contextMapSlice=0,y.distContextMapSlice=0,y.contextLookupOffset1=y.contextModes[0]*512,y.contextLookupOffset2=y.contextLookupOffset1+256,y.literalTreeIdx=0,y.commandTreeIdx=0,y.rings[4]=1,y.rings[5]=0,y.rings[6]=1,y.rings[7]=0,y.rings[8]=1,y.rings[9]=0,0)}d(qt,"readMetablockHuffmanCodesAndContextMaps");function R(y){let M=y.ringBuffer,P;if(y.metaBlockLength<=0)return P=qe(y),P<0?P:(y.runningState=2,0);let G=Math.min(y.ringBufferSize-y.pos,y.metaBlockLength);return P=oe(y,M,y.pos,G),P<0?P:(y.metaBlockLength-=G,y.pos+=G,y.pos===y.ringBufferSize?(y.nextRunningState=6,y.runningState=12,0):(P=qe(y),P<0?P:(y.runningState=2,0)))}d(R,"copyUncompressedData");function V(y){let M=Math.min(y.outputLength-y.outputUsed,y.ringBufferBytesReady-y.ringBufferBytesWritten);return M!==0&&(y.output.set(y.ringBuffer.subarray(y.ringBufferBytesWritten,y.ringBufferBytesWritten+M),y.outputOffset+y.outputUsed),y.outputUsed+=M,y.ringBufferBytesWritten+=M),y.outputUsed<y.outputLength?0:2}d(V,"writeRingBuffer");function N(y,M){let P=t[y+31>>5];return M+M*P}d(N,"huffmanTreeGroupAllocSize");function _(y,M,P,G,z){let st=P;for(let dt=0;dt<P;++dt){z[dt]=st;let At=O(y,M,z,dt,G);if(At<0)return At;st+=At}return 0}d(_,"decodeHuffmanTreeGroup");function U(y){let M=y.ringBufferSize;return y.isEager!==0&&(M=Math.min(M,y.ringBufferBytesWritten+y.outputLength-y.outputUsed)),M}d(U,"calculateFence");function ot(y,M){if(y.distance>2147483644)return pe(y,-9);let P=y.distance-y.maxDistance-1-y.cdTotalSize;if(P<0){let G=J(y,-P-1,y.copyLength);if(G<0)return G;y.runningState=14}else{let G=ic,z=y.copyLength;if(z>31)return pe(y,-9);let st=Zr[z];if(st===0)return pe(y,-9);let dt=Jr[z],At=(1<<st)-1,Ht=P&At,Gt=P>>st;dt+=Ht*z;let $t=Ft;if(Gt>=$t.numTransforms)return pe(y,-9);let Jt=mt(y.ringBuffer,y.pos,G,dt,z,$t,Gt);if(y.pos+=Jt,y.metaBlockLength-=Jt,y.pos>=M)return y.nextRunningState=4,y.runningState=12,0;y.runningState=4}return 0}d(ot,"doUseDictionary");function ft(y){y.cdBlockMap=new Int8Array(256);let M=8;for(;y.cdTotalSize-1>>M!==0;)M++;M-=8,y.cdBlockBits=M;let P=0,G=0;for(;P<y.cdTotalSize;){for(;y.cdChunkOffsets[G+1]<P;)G++;y.cdBlockMap[P>>M]=G,P+=1<<M}}d(ft,"initializeCompoundDictionary");function J(y,M,P){y.cdBlockBits===-1&&ft(y);let G=y.cdBlockMap[M>>y.cdBlockBits];for(;M>=y.cdChunkOffsets[G+1];)G++;return y.cdTotalSize>M+P?pe(y,-9):(y.distRbIdx=y.distRbIdx+1&3,y.rings[y.distRbIdx]=y.distance,y.metaBlockLength-=P,y.cdBrIndex=G,y.cdBrOffset=M-y.cdChunkOffsets[G],y.cdBrLength=P,y.cdBrCopied=0,0)}d(J,"initializeCompoundDictionaryCopy");function Ct(y,M){let P=y.pos,G=P;for(;y.cdBrLength!==y.cdBrCopied;){let z=M-P,st=y.cdChunkOffsets[y.cdBrIndex+1]-y.cdChunkOffsets[y.cdBrIndex]-y.cdBrOffset,dt=y.cdBrLength-y.cdBrCopied;if(dt>st&&(dt=st),dt>z&&(dt=z),y.ringBuffer.set(y.cdChunks[y.cdBrIndex].subarray(y.cdBrOffset,y.cdBrOffset+dt),P),P+=dt,y.cdBrOffset+=dt,y.cdBrCopied+=dt,dt===st&&(y.cdBrIndex++,y.cdBrOffset=0),P>=M)break}return P-G}d(Ct,"copyFromCompoundDictionary");function It(y){let M;if(y.runningState===0)return pe(y,-25);if(y.runningState<0)return pe(y,-28);if(y.runningState===11)return pe(y,-22);if(y.runningState===1){let st=m(y);if(st===-1)return pe(y,-11);y.maxRingBufferSize=1<<st,y.maxBackwardDistance=y.maxRingBufferSize-16,y.runningState=2}let P=U(y),G=y.ringBufferSize-1,z=y.ringBuffer;for(;y.runningState!==10;)switch(y.runningState){case 2:if(y.metaBlockLength<0)return pe(y,-10);if(M=yt(y),M<0)return M;P=U(y),G=y.ringBufferSize-1,z=y.ringBuffer;continue;case 3:if(M=qt(y),M<0)return M;y.runningState=4;continue;case 4:if(y.metaBlockLength<=0){y.runningState=2;continue}if(y.halfOffset>2030&&(M=wt(y),M<0))return M;y.commandBlockLength===0&&H(y),y.commandBlockLength--,y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16);let st=q(y.commandTreeGroup,y.commandTreeIdx,y)<<2,dt=c[st],At=c[st+1],Ht=c[st+2];y.distanceCode=c[st+3],y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16);let Gt=dt&255;y.insertLength=At+(Gt<=16?ct(y,Gt):pt(y,Gt)),y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16);let $t=dt>>8;y.copyLength=Ht+($t<=16?ct(y,$t):pt(y,$t)),y.j=0,y.runningState=7;continue;case 7:if(y.trivialLiteralContext!==0)for(;y.j<y.insertLength;){if(y.halfOffset>2030&&(M=wt(y),M<0))return M;if(y.literalBlockLength===0&&W(y),y.literalBlockLength--,y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),z[y.pos]=q(y.literalTreeGroup,y.literalTreeIdx,y),y.pos++,y.j++,y.pos>=P){y.nextRunningState=7,y.runningState=12;break}}else{let fs=z[y.pos-1&G]&255,Vt=z[y.pos-2&G]&255;for(;y.j<y.insertLength;){if(y.halfOffset>2030&&(M=wt(y),M<0))return M;y.literalBlockLength===0&&W(y);let hi=Ke[y.contextLookupOffset1+fs]|Ke[y.contextLookupOffset2+Vt],Wa=y.contextMap[y.contextMapSlice+hi]&255;if(y.literalBlockLength--,Vt=fs,y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),fs=q(y.literalTreeGroup,Wa,y),z[y.pos]=fs,y.pos++,y.j++,y.pos>=P){y.nextRunningState=7,y.runningState=12;break}}}if(y.runningState!==7)continue;if(y.metaBlockLength-=y.insertLength,y.metaBlockLength<=0){y.runningState=4;continue}let Jt=y.distanceCode;if(Jt<0)y.distance=y.rings[y.distRbIdx];else{if(y.halfOffset>2030&&(M=wt(y),M<0))return M;y.distanceBlockLength===0&&L(y),y.distanceBlockLength--,y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16);let fs=y.distContextMap[y.distContextMapSlice+Jt]&255;if(Jt=q(y.distanceTreeGroup,fs,y),Jt<16){let Vt=y.distRbIdx+s[Jt]&3;if(y.distance=y.rings[Vt]+i[Jt],y.distance<0)return pe(y,-12)}else{let Vt=y.distExtraBits[Jt],hi;y.bitOffset+Vt<=32?hi=ct(y,Vt):(y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),hi=Vt<=16?ct(y,Vt):pt(y,Vt)),y.distance=y.distOffset[Jt]+(hi<<y.distancePostfixBits)}}if(y.maxDistance!==y.maxBackwardDistance&&y.pos<y.maxBackwardDistance?y.maxDistance=y.pos:y.maxDistance=y.maxBackwardDistance,y.distance>y.maxDistance){y.runningState=9;continue}if(Jt>0&&(y.distRbIdx=y.distRbIdx+1&3,y.rings[y.distRbIdx]=y.distance),y.copyLength>y.metaBlockLength)return pe(y,-9);y.j=0,y.runningState=8;continue;case 8:let ae=y.pos-y.distance&G,he=y.pos,Ue=y.copyLength-y.j,Di=ae+Ue,ci=he+Ue;if(Di<G&&ci<G){if(Ue<12||Di>he&&ci>ae){let fs=Ue+3>>2;for(let Vt=0;Vt<fs;++Vt)z[he++]=z[ae++],z[he++]=z[ae++],z[he++]=z[ae++],z[he++]=z[ae++]}else z.copyWithin(he,ae,Di);y.j+=Ue,y.metaBlockLength-=Ue,y.pos+=Ue}else for(;y.j<y.copyLength;)if(z[y.pos]=z[y.pos-y.distance&G],y.metaBlockLength--,y.pos++,y.j++,y.pos>=P){y.nextRunningState=8,y.runningState=12;break}y.runningState===8&&(y.runningState=4);continue;case 9:if(M=ot(y,P),M<0)return M;continue;case 14:if(y.pos+=Ct(y,P),y.pos>=P)return y.nextRunningState=14,y.runningState=12,2;y.runningState=4;continue;case 5:for(;y.metaBlockLength>0;){if(y.halfOffset>2030&&(M=wt(y),M<0))return M;y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16),ct(y,8),y.metaBlockLength--}y.runningState=2;continue;case 6:if(M=R(y),M<0)return M;continue;case 12:y.ringBufferBytesReady=Math.min(y.pos,y.ringBufferSize),y.runningState=13;continue;case 13:if(M=V(y),M!==0)return M;y.pos>=y.maxBackwardDistance&&(y.maxDistance=y.maxBackwardDistance),y.pos>=y.ringBufferSize&&(y.pos>y.ringBufferSize&&z.copyWithin(0,y.ringBufferSize,y.pos),y.pos=y.pos&G,y.ringBufferBytesWritten=0),y.runningState=y.nextRunningState;continue;default:return pe(y,-28)}return y.runningState!==10?pe(y,-29):y.metaBlockLength<0?pe(y,-10):(M=ze(y),M!==0||(M=Rt(y,1),M!==0)?M:1)}d(It,"decompress");function Et(y,M,P){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=y,this.triplets=new Int32Array(y*3),this.params=new Int16Array(y),this.prefixSuffixStorage=new Int8Array(M),this.prefixSuffixHeads=new Int32Array(P+1)}d(Et,"Transforms");let Ft=new Et(121,167,50);function Nt(y,M,P,G,z){let st=Pf(G),dt=st.length,At=1,Ht=0;for(let Gt=0;Gt<dt;++Gt){let $t=st[Gt];$t===35?M[At++]=Ht:y[Ht++]=$t}for(let Gt=0;Gt<363;++Gt)P[Gt]=z.charCodeAt(Gt)-32}d(Nt,"unpackTransforms"),Nt(Ft.prefixSuffixStorage,Ft.prefixSuffixHeads,Ft.triplets,`# #s #, #e #.# the #.com/# # of # and # in # to #"#">#
66
+ #]# for # a # that #. # with #'# from # by #. The # on # as # is #ing #
67
+ #:#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 mt(y,M,P,G,z,st,dt){let At=M,Ht=st.triplets,Gt=st.prefixSuffixStorage,$t=st.prefixSuffixHeads,Jt=3*dt,ae=Ht[Jt],he=Ht[Jt+1],Ue=Ht[Jt+2],Di=$t[ae],ci=$t[ae+1],fs=$t[Ue],Vt=$t[Ue+1],hi=he-11,Wa=he;for((hi<1||hi>9)&&(hi=0),(Wa<1||Wa>9)&&(Wa=0);Di!==ci;)y[At++]=Gt[Di++];let Ye=z;hi>Ye&&(hi=Ye);let _7=G+hi;Ye-=hi,Ye-=Wa;let Y0=Ye;for(;Y0>0;)y[At++]=P[_7++],Y0--;if(he===10||he===11){let Ie=At-Ye;for(he===10&&(Ye=1);Ye>0;){let ga=y[Ie]&255;ga<192?(ga>=97&&ga<=122&&(y[Ie]=y[Ie]^32),Ie+=1,Ye-=1):ga<224?(y[Ie+1]=y[Ie+1]^32,Ie+=2,Ye-=2):(y[Ie+2]=y[Ie+2]^5,Ie+=3,Ye-=3)}}else if(he===21||he===22){let Ie=At-Ye,ga=st.params[dt],Ks=(ga&32767)+(16777216-(ga&32768));for(;Ye>0;){let Ln=1,un=y[Ie]&255;if(un<128)Ks+=un,y[Ie]=Ks&127;else if(!(un<192)){if(un<224)if(Ye>=2){let zn=y[Ie+1];Ks+=zn&63|(un&31)<<6,y[Ie]=192|Ks>>6&31,y[Ie+1]=zn&192|Ks&63,Ln=2}else Ln=Ye;else if(un<240)if(Ye>=3){let zn=y[Ie+1],so=y[Ie+2];Ks+=so&63|(zn&63)<<6|(un&15)<<12,y[Ie]=224|Ks>>12&15,y[Ie+1]=zn&192|Ks>>6&63,y[Ie+2]=so&192|Ks&63,Ln=3}else Ln=Ye;else if(un<248)if(Ye>=4){let zn=y[Ie+1],so=y[Ie+2],X0=y[Ie+3];Ks+=X0&63|(so&63)<<6|(zn&63)<<12|(un&7)<<18,y[Ie]=240|Ks>>18&7,y[Ie+1]=zn&192|Ks>>12&63,y[Ie+2]=so&192|Ks>>6&63,y[Ie+3]=X0&192|Ks&63,Ln=4}else Ln=Ye}Ie+=Ln,Ye-=Ln,he===21&&(Ye=0)}}for(;fs!==Vt;)y[At++]=Gt[fs++];return At-M}d(mt,"transformDictionaryWord");function jt(y,M){let P=1<<M-1;for(;(y&P)!==0;)P=P>>1;return(y&P-1)+P}d(jt,"getNextKey");function bt(y,M,P,G,z){let st=G;for(;st>0;)st-=P,y[M+st]=z}d(bt,"replicateValue");function gt(y,M,P){let G=M,z=1<<G-P;for(;G<15&&(z-=y[G],!(z<=0));)G++,z=z<<1;return G-P}d(gt,"nextTableBitSize");function kt(y,M,P,G,z){let st=y[M],dt=new Int32Array(z),At=new Int32Array(16),Ht=new Int32Array(16);for(let Vt=0;Vt<z;++Vt)At[G[Vt]]++;Ht[1]=0;for(let Vt=1;Vt<15;++Vt)Ht[Vt+1]=Ht[Vt]+At[Vt];for(let Vt=0;Vt<z;++Vt)G[Vt]!==0&&(dt[Ht[G[Vt]]++]=Vt);let Gt=P,$t=1<<Gt,Jt=$t;if(Ht[15]===1){for(let Vt=0;Vt<Jt;++Vt)y[st+Vt]=dt[0];return Jt}let ae=0,he=0,Ue=1;for(let Vt=1;Vt<=P;++Vt)for(Ue=Ue<<1;At[Vt]>0;)bt(y,st+ae,Ue,$t,Vt<<16|dt[he++]),ae=jt(ae,Vt),At[Vt]--;let Di=Jt-1,ci=-1,fs=st;Ue=1;for(let Vt=P+1;Vt<=15;++Vt)for(Ue=Ue<<1;At[Vt]>0;)(ae&Di)!==ci&&(fs+=$t,Gt=gt(At,Vt,P),$t=1<<Gt,Jt+=$t,ci=ae&Di,y[st+ci]=Gt+P<<16|fs-st-ci),bt(y,fs+(ae>>P),Ue,$t,Vt-P<<16|dt[he++]),ae=jt(ae,Vt),At[Vt]--;return Jt}d(kt,"buildHuffmanTable");function wt(y){if(y.endOfStreamReached!==0)return Ee(y)>=-2?0:pe(y,-16);let M=y.halfOffset<<1,P=4096-M;for(y.byteBuffer.copyWithin(0,M,4096),y.halfOffset=0;P<4096;){let G=4096-P,z=Bf(y,y.byteBuffer,P,G);if(z<-1)return z;if(z<=0){y.endOfStreamReached=1,y.tailBytes=P,P+=1;break}P+=z}return Pi(y,P),0}d(wt,"readMoreInput");function Rt(y,M){if(y.endOfStreamReached===0)return 0;let P=(y.halfOffset<<1)+(y.bitOffset+7>>3)-4;return P>y.tailBytes?pe(y,-13):M!==0&&P!==y.tailBytes?pe(y,-17):0}d(Rt,"checkHealth");function ct(y,M){let P=y.accumulator32>>>y.bitOffset&(1<<M)-1;return y.bitOffset+=M,P}d(ct,"readFewBits");function pt(y,M){let P=ct(y,16);return y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16,P|ct(y,M-16)<<16}d(pt,"readManyBits");function Mt(y){return y.byteBuffer=new Int8Array(4160),y.accumulator32=0,y.shortBuffer=new Int16Array(2080),y.bitOffset=32,y.halfOffset=2048,y.endOfStreamReached=0,ee(y)}d(Mt,"initBitReader");function ee(y){if(y.halfOffset>2030){let P=wt(y);if(P!==0)return P}let M=Rt(y,0);return M!==0?M:(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16,y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16,0)}d(ee,"prepare");function qe(y){return y.bitOffset===32?ee(y):0}d(qe,"reload");function ze(y){let M=32-y.bitOffset&7;return M!==0&&ct(y,M)!==0?pe(y,-5):0}d(ze,"jumpToByteBoundary");function Ee(y){let M=2048;return y.endOfStreamReached!==0&&(M=y.tailBytes+1>>1),M-y.halfOffset}d(Ee,"halfAvailable");function oe(y,M,P,G){let z=P,st=G;if((y.bitOffset&7)!==0)return pe(y,-30);for(;y.bitOffset!==32&&st!==0;)M[z++]=y.accumulator32>>>y.bitOffset,y.bitOffset+=8,st--;if(st===0)return 0;let dt=Math.min(Ee(y),st>>1);if(dt>0){let At=y.halfOffset<<1,Ht=dt<<1;M.set(y.byteBuffer.subarray(At,At+Ht),z),z+=Ht,st-=Ht,y.halfOffset+=dt}if(st===0)return 0;if(Ee(y)>0){for(y.bitOffset>=16&&(y.accumulator32=y.shortBuffer[y.halfOffset++]<<16|y.accumulator32>>>16,y.bitOffset-=16);st!==0;)M[z++]=y.accumulator32>>>y.bitOffset,y.bitOffset+=8,st--;return Rt(y,0)}for(;st>0;){let At=Bf(y,M,z,st);if(At<-1)return At;if(At<=0)return pe(y,-16);z+=At,st-=At}return 0}d(oe,"copyRawBytes");function Pi(y,M){let P=y.byteBuffer,G=M>>1,z=y.shortBuffer;for(let st=0;st<G;++st)z[st]=P[st*2]&255|(P[st*2+1]&255)<<8}d(Pi,"bytesToNibbles");let Ke=new Int32Array(2048);function Ws(y,M,P){for(let z=0;z<256;++z)y[z]=z&63,y[512+z]=z>>2,y[1792+z]=2+(z>>6);for(let z=0;z<128;++z)y[1024+z]=4*(M.charCodeAt(z)-32);for(let z=0;z<64;++z)y[1152+z]=z&1,y[1216+z]=2+(z&1);let G=1280;for(let z=0;z<19;++z){let st=z&3,dt=P.charCodeAt(z)-32;for(let At=0;At<dt;++At)y[G++]=st}for(let z=0;z<16;++z)y[1792+z]=1,y[2032+z]=6;y[1792]=0,y[2047]=7;for(let z=0;z<256;++z)y[1536+z]=y[1792+z]<<3}d(Ws,"unpackLookupTable"),Ws(Ke,` !! ! "#$##%#$&'##(#)#++++++++++((&*'##,---,---,-----,-----,-----&#'###.///.///./////./////./////&#'# `,"A/* ': & : $  @");function fn(){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=[],this.cdChunkOffsets=new Int32Array(0),this.cdBlockBits=0,this.cdBlockMap=new Int8Array(0),this.input=new rc(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}d(fn,"State");let ic=new Int8Array(0),Jr=new Int32Array(32),Zr=new Int32Array(32);function to(y,M){let P=Jr,G=Zr;for(let st=0;st<M.length;++st)G[st]=M[st];let z=0;for(let st=0;st<M.length;++st){P[st]=z;let dt=G[st];dt!==0&&(z+=st<<(dt&31))}for(let st=M.length;st<32;++st)P[st]=z;ic=y}d(to,"setData");function eo(y,M,P,G,z,st){let dt=W0(M+P),At=Pf(G),Ht=0,Gt=At.length>>1;for(let $t=0;$t<Gt;++$t){let Jt=At[2*$t]-36,ae=At[2*$t+1]-36;for(let he=0;he<Jt;++he)dt[Ht]=dt[Ht]^3,Ht++;for(let he=0;he<ae;++he)dt[Ht]=dt[Ht]^236,Ht++}for(let $t=0;$t<st.length;++$t)z[$t]=st.charCodeAt($t)-65;y.set(dt)}d(eo,"unpackDictionaryData");let nc=new Int8Array(122784),ac=new Int32Array(25);eo(nc,"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\t),\x0E\t#233kboo-\t\tB4s{8svpk`kbw3s{8`qft),?,kbpk46s{eobwqbqf#%%#wfoo`bnslmwlobjgnjppphjswfmwejmfnbofdfwpsolw733/\x0E\t\x0E\t`lloeffw-sks?aq=fqj`nlpwdvjgafoogfp`kbjqnbwkbwln,jnd% ;1ov`h`fmw3338wjmzdlmfkwnopfoogqvdEQFFmlgfmj`h<jg>olpfmvooubpwtjmgQPP#tfbqqfozaffmpbnfgvhfmbpb`bsftjpkdvoeW109kjwppolwdbwfhj`haovqwkfz26s{$$*8*8!=npjftjmpajqgplqwafwbpffhW2;9lqgpwqffnboo53s{ebqn\x0ElupalzpX3^-$*8!SLPWafbqhjgp*8~~nbqzwfmg+VH*rvbgyk9\n.pjy....sqls$*8\x0EojewW2:9uj`fbmgzgfaw=QPPsllomf`haoltW259gllqfuboW249ofwpebjolqbosloomlub`lopdfmf#\x0Elxplewqlnfwjooqlpp?k0=slvqebgfsjmh?wq=njmj*\"+njmfyk9\x04abqpkfbq33*8njoh#..=jqlmeqfggjphtfmwpljosvwp,ip,klozW119JPAMW139bgbnpffp?k1=iplm$/#$`lmwW129#QPPollsbpjbnllm?,s=plvoOJMFelqw`bqwW279?k2=;3s{\"..?:s{8W379njhf975Ymj`fjm`kZlqhqj`fyk9\b$**8svqfnbdfsbqbwlmfalmg904Y\\le\\$^*8333/yk9\vwbmhzbqgaltoavpk965YIbub03s{\t~\t&@0&907YifeeF[SJ`bpkujpbdloepmltyk9\x05rvfq-`pppj`hnfbwnjm-ajmggfookjqfsj`pqfmw905YKWWS.132elwltloeFMG#{al{967YALGZgj`h8\t~\tf{jw906Yubqpafbw$~*8gjfw:::8bmmf~~?,Xj^-Obmdhn.^tjqfwlzpbggppfbobof{8\t\n~f`klmjmf-lqd336*wlmziftppbmgofdpqlle333*#133tjmfdfbqgldpallwdbqz`vwpwzofwfnswjlm-{no`l`hdbmd'+$-63s{Sk-Gnjp`bobmolbmgfphnjofqzbmvmj{gjp`*8~\tgvpw`ojs*-\t\t43s{.133GUGp4^=?wbsfgfnlj((*tbdffvqlskjolswpklofEBRpbpjm.15WobapsfwpVQO#avoh`llh8~\x0E\tKFBGX3^*baaqivbm+2:;ofpkwtjm?,j=plmzdvzpev`hsjsf.\t\"331*mgltX2^8X^8\tOld#pbow\x0E\t\n\nabmdwqjnabwk*x\x0E\t33s{\t~*8hl9\x00effpbg=\x0Ep9,,#X^8wloosovd+*x\tx\x0E\t#-ip$133sgvboalbw-ISD*8\t~rvlw*8\t\t$*8\t\x0E\t~\x0E1327132613251324132;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,..=\t?wqz#x\tubq#nbhfp`lpwpsobjmbgvowrvfpwwqbjmobalqkfosp`bvpfnbdj`nlwlqwkfjq163s{ofbpwpwfsp@lvmw`lvogdobpppjgfpevmgpklwfobtbqgnlvwknlufpsbqjpdjufpgvw`kwf{bpeqvjwmvoo/X^8wls!=\t?\"..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\x0E\tabmgprvfvf>#x~8;3s{8`hjmdx\x0E\t\n\nbkfbg`ol`hjqjpkojhf#qbwjlpwbwpElqn!zbkll*X3^8Balvwejmgp?,k2=gfavdwbphpVQO#>`foop~*+*821s{8sqjnfwfoopwvqmp3{533-isd!psbjmafb`kwb{fpnj`qlbmdfo..=?,djewppwfuf.ojmhalgz-~*8\t\nnlvmw#+2::EBR?,qldfqeqbmh@obpp1;s{8effgp?k2=?p`lwwwfpwp11s{8gqjmh*##oftjppkboo 30:8#elq#olufgtbpwf33s{8ib9\x0Fnpjnlm?elmwqfsoznffwpvmwfq`kfbswjdkwAqbmg*#\">#gqfpp`ojspqllnplmhfznlajonbjm-Mbnf#sobwfevmmzwqffp`ln,!2-isdtnlgfsbqbnPWBQWofew#jggfm/#132*8\t~\telqn-ujqvp`kbjqwqbmptlqpwSbdfpjwjlmsbw`k?\"..\tl.`b`ejqnpwlvqp/333#bpjbmj((*xbglaf$*X3^jg>23alwk8nfmv#-1-nj-smd!hfujm`lb`k@kjogaqv`f1-isdVQO*(-isdpvjwfpoj`fkbqqz213!#ptffwwq=\x0E\tmbnf>gjfdlsbdf#ptjpp..=\t\t eee8!=Old-`ln!wqfbwpkffw*#%%#27s{8poffsmwfmwejofgib9\x0Fojg>!`Mbnf!tlqpfpklwp.al{.gfowb\t%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\t.2!*8wzsf>aovfpwqvozgbujp-ip$8=\x0E\t?\"pwffo#zlv#k1=\x0E\telqn#ifpvp233&#nfmv-\x0E\t\n\x0E\ttbofpqjphpvnfmwggjmda.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-\t\tLmfiljmfgnfmv!=SkjojsbtbqgpkbmgofjnslqwLeej`fqfdbqgphjoopmbwjlmPslqwpgfdqfftffhoz#+f-d-afkjmggl`wlqolddfgvmjwfg?,a=?,afdjmpsobmwpbppjpwbqwjpwjppvfg033s{`bmbgbbdfm`zp`kfnfqfnbjmAqbyjopbnsofoldl!=afzlmg.p`bofb``fswpfqufgnbqjmfEllwfq`bnfqb?,k2=\t\\elqn!ofbufppwqfpp!#,=\x0E\t-dje!#lmolbgolbgfqL{elqgpjpwfqpvqujuojpwfmefnbofGfpjdmpjyf>!bssfbowf{w!=ofufopwkbmhpkjdkfqelq`fgbmjnbobmzlmfBeqj`bbdqffgqf`fmwSflsof?aq#,=tlmgfqsqj`fpwvqmfg#x~8nbjm!=jmojmfpvmgbztqbs!=ebjofg`fmpvpnjmvwfafb`lmrvlwfp263s{fpwbwfqfnlwffnbjo!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!=\t)#WkfWklvdkpffjmdifqpfzMftp?,ufqjezf{sfqwjmivqztjgwk>@llhjfPWBQW#b`qlpp\\jnbdfwkqfbgmbwjufsl`hfwal{!=\tPzpwfn#Gbujg`bm`fqwbaofpsqlufgBsqjo#qfboozgqjufqjwfn!=nlqf!=albqgp`lolqp`bnsvpejqpw##X^8nfgjb-dvjwbqejmjpktjgwk9pkltfgLwkfq#-sks!#bppvnfobzfqptjoplmpwlqfpqfojfeptfgfm@vpwlnfbpjoz#zlvq#Pwqjmd\t\tTkjowbzolq`ofbq9qfplqweqfm`kwklvdk!*#(#!?algz=avzjmdaqbmgpNfnafqmbnf!=lssjmdpf`wlq6s{8!=upsb`fslpwfqnbilq#`leeffnbqwjmnbwvqfkbssfm?,mbu=hbmpbpojmh!=Jnbdfp>ebopftkjof#kpsb`f3%bns8#\t\tJm##sltfqSlophj.`lolqilqgbmAlwwlnPwbqw#.`lvmw1-kwnomftp!=32-isdLmojmf.qjdkwnjoofqpfmjlqJPAM#33/333#dvjgfpubovf*f`wjlmqfsbjq-{no!##qjdkwp-kwno.aol`hqfdF{s9klufqtjwkjmujqdjmsklmfp?,wq=\x0Evpjmd#\t\nubq#=$*8\t\n?,wg=\t?,wq=\tabkbpbaqbpjodbofdlnbdzbqslophjpqsphj4]4C5d\bTA\nzk\vBl\bQ\vUm\x05Gx\bSM\nmC\bTA\twQ\nd}\bW@\bTl\bTF\ti@\tcT\vBM\v|j\x04BV\tqw\tcC\bWI\npa\tfM\n{Z\x05{X\bTF\bVV\bVK\tm\x04kF\t[]\bPm\bTv\nsI\vpg\t[I\bQp\x04mx\v_W\n^M\npe\vQ}\vGu\nel\npe\x04Ch\x04BV\bTA\tSo\nzk\vGL\vxD\nd[\x05Jz\x05MY\bQp\x04li\nfl\npC\x05{B\x05Nt\vwT\ti_\bTg\x04QQ\n|p\vXN\bQS\vxD\x04QC\bWZ\tpD\vVS\bTW\x05Nt\x04Yh\nzu\x04Kj\x05N}\twr\tHa\n_D\tj`\vQ}\vWp\nxZ\x04{c\tji\tBU\nbD\x04a|\tTn\tpV\nZd\nmC\vEV\x05{X\tc}\tTo\bWl\bUd\tIQ\tcg\vxs\nXW\twR\vek\tc}\t]y\tJn\nrp\neg\npV\nz\\\x05{W\npl\nz\\\nzU\tPc\t`{\bV@\nc|\bRw\ti_\bVb\nwX\tHv\x04Su\bTF\v_W\vWs\vsI\x05m\nTT\ndc\tUS\t}f\tiZ\bWz\tc}\x04MD\tBe\tiD\v@@\bTl\bPv\t}t\x04Sw\x04M`\vnU\tkW\ved\nqo\vxY\tA|\bTz\vy`\x04BR\x04BM\tia\x04XU\nyu\x04n^\tfL\tiI\nXW\tfD\bWz\bW@\tyj\tm\tav\tBN\vb\\\tpD\bTf\nY[\tJn\bQy\t[^\vWc\vyu\x04Dl\x04CJ\vWj\vHR\t`V\vuW\tQy\np@\vGu\x05pl\x04Jm\bW[\nLP\nxC\n`m\twQ\x05ui\x05R\nbI\twQ\tBZ\tWV\x04BR\npg\tcg\x05ti\x04CW\n_y\tRg\bQa\vQB\vWc\nYb\x05le\ngE\x04Su\nL[\tQ\tea\tdj\v]W\nb~\x04M`\twL\bTV\bVH\nt\npl\t|b\x05s_\bU|\bTa\x04oQ\x05lv\x04Sk\x04M`\bTv\vK}\nfl\tcC\x04oQ\x04BR\tHk\t|d\bQp\tHK\tBZ\vHR\bPv\vLx\vEZ\bT\bTv\tiD\x05oD\x05MU\vwB\x04Su\x05k`\x04St\ntC\tPl\tKg\noi\tjY\vxY\x04h}\nzk\bWZ\tm\ve`\tTB\tfE\nzk\t`z\x04Yh\nV|\tHK\tAJ\tAJ\bUL\tp\\\tql\nYc\x04Kd\nfy\x04Yh\t[I\vDg\x04Jm\n]n\nlb\bUd\n{Z\tlu\tfs\x04oQ\bTW\x04Jm\vwB\tea\x04Yh\x04BC\tsb\tTn\nzU\n_y\vxY\tQ]\ngw\x04mt\tO\\\ntb\bWW\bQy\tmI\tV[\ny\\\naB\vRb\twQ\n]Q\x04QJ\bWg\vWa\bQj\ntC\bVH\nYm\vxs\bVK\nel\bWI\vxY\x04Cq\ntR\vHV\bTl\bVw\tay\bQa\bVV\t}t\tdj\nr|\tp\\\twR\n{i\nTT\t[I\ti[\tAJ\vxs\v_W\td{\vQ}\tcg\tTz\tA|\tCj\vLm\x05N}\x05m\nbK\tdZ\tp\\\t`V\tsV\np@\tiD\twQ\vQ}\bTf\x05ka\x04Jm\v@@\bV`\tzp\n@N\x04Sw\tiI\tcg\noi\x04Su\bVw\x04lo\x04Cy\tc}\vb\\\tsU\x04BA\bWI\bTf\nxS\tVp\nd|\bTV\vbC\tNo\x05Ju\nTC\t|`\n{Z\tD]\bU|\tc}\x05lm\bTl\tBv\tPl\tc}\bQp\tm\nLk\tkj\n@N\x04Sb\x04KO\tj_\tp\\\nzU\bTl\bTg\bWI\tcf\x04XO\bWW\ndz\x04li\tBN\nd[\bWO\x04MD\vKC\tdj\tI_\bVV\ny\\\vLm\x05xl\txB\tkV\vb\\\vJW\vVS\tVx\vxD\td{\x04MD\bTa\t|`\vPz\x04R}\vWs\x04BM\nsI\x04CN\bTa\x04Jm\npe\ti_\npV\nrh\tRd\tHv\n~A\nxR\vWh\vWk\nxS\vAz\vwX\nbI\x04oQ\tfw\nqI\nV|\nun\x05z\vpg\td\\\voA\x05{D\ti_\x05xB\bT\t`V\x05qr\tTT\x04g]\x04CA\vuR\tVJ\tT`\npw\vRb\tI_\nCx\x04Ro\vsI\x04Cj\x04Kh\tBv\tWV\x04BB\x05oD\x05{D\nhc\x04Km\v^R\tQE\n{I\np@\nc|\x05Gt\tc}\x04Dl\nzU\x05qN\tsV\x05k}\tHh\v|j\nqo\x05u|\tQ]\vek\x05Z\x04M`\x04St\npe\tdj\bVG\veE\tm\vWc\x04|I\n[W\tfL\bT\tBZ\x04Su\vKa\x04Cq\x05Nt\x04Y[\nqI\bTv\tfM\ti@\t}f\x04B\\\tQy\vBl\bWg\x04XD\x05kc\vx[\bVV\tQ]\ta\tPy\vxD\nfI\t}f\x05oD\tdj\tSG\x05ls\t~D\x04CN\n{Z\t\\v\n_D\nhc\vx_\x04C[\tAJ\nLM\tVx\x04CI\tbj\tc^\tcF\ntC\x04Sx\twr\x04XA\bU\\\t|a\vK\\\bTV\bVj\nd|\tfs\x04CX\ntb\bRw\tVx\tAE\tA|\bT\x05Nt\vDg\tVc\bTl\x04d@\npo\tM\tcF\npe\tiZ\tBo\bSq\nfH\x04l`\bTx\bWf\tHE\vF{\tcO\tfD\nlm\vfZ\nlm\veU\tdG\x04BH\bTV\tSi\x05MW\nwX\nz\\\t\\c\x04CX\nd}\tl}\bQp\bTV\tF~\bQ\t`i\ng@\x05nO\bUd\bTl\nL[\twQ\tji\ntC\t|J\nLU\naB\vxY\x04Kj\tAJ\x05uN\ti[\npe\x04Sk\vDg\vx]\bVb\bVV\nea\tkV\nqI\bTa\x04Sk\nAO\tpD\ntb\nts\nyi\bVg\ti_\v_W\nLk\x05Nt\tyj\tfM\x04R\tiI\bTl\vwX\tsV\vMl\nyu\tAJ\bVj\x04KO\tWV\vA}\vW\nrp\tiD\v|o\x05lv\vsI\x04BM\td~\tCU\bVb\x04eV\npC\vwT\tj`\tc}\vxs\vps\vvh\tWV\vGg\vAe\vVK\v]W\trg\vWc\x05F`\tBr\vb\\\tdZ\bQp\nqI\x04kF\nLk\vAR\bWI\bTg\tbs\tdw\n{L\n_y\tiZ\bTA\tlg\bVV\bTl\tdk\n`k\ta{\ti_\x05{A\x05wj\twN\v@@\bTe\ti_\n_D\twL\nAH\viK\vek\n[]\tp_\tyj\bTv\tUS\t[r\n{I\nps\x05Gt\vVK\npl\x04S}\vWP\t|d\x04MD\vHV\bT\x04R}\x04M`\bTV\bVH\x05lv\x04Ch\bW[\x04Ke\tR{\v^R\tab\tBZ\tVA\tB`\nd|\nhs\x04Ke\tBe\x04Oi\tR{\td\\\x05nB\bWZ\tdZ\tVJ\x05Os\tm\x04uQ\vhZ\x04Q@\x04QQ\nfI\bW[\x04B\\\x04li\nzU\nMd\x04M`\nxS\bVV\n\\}\vxD\tm\bTp\x04IS\nc|\tkV\x05i~\tV{\vhZ\t|b\bWt\n@R\voA\vnU\bWI\tea\tB`\tiD\tc}\tTz\x04BR\vQB\x05Nj\tCP\t[I\bTv\t`W\x05uN\vpg\vpg\vWc\tiT\tbs\twL\tU_\tc\\\t|h\vKa\tNr\tfL\nq|\nzu\nz\\\tNr\bUg\t|b\x04m`\bTv\nyd\nrp\bWf\tUX\x04BV\nzk\nd}\twQ\t}f\x04Ce\ved\bTW\bSB\nxU\tcn\bTb\ne\ta\\\tSG\bU|\npV\nN\\\x04Kn\vnU\tAt\tpD\v^R\vIr\x04b[\tR{\tdE\vxD\vWK\vWA\bQL\bW@\x04Su\bUd\nDM\tPc\x04CA\x04Dl\x04oQ\tHs\x05wi\x04ub\na\bQp\x05Ob\nLP\bTl\x04Y[\vK}\tAJ\bQ\x04n^\vsA\bSM\nqM\bWZ\n^W\vz{\x04S|\tfD\bVK\bTv\bPv\x04BB\tCP\x04dF\tid\vxs\x04mx\vws\tcC\ntC\tyc\x05M`\vW\nrh\bQp\vxD\x04\\o\nsI\x04_k\nzu\x04kF\tfD\x04Xs\x04XO\tjp\bTv\x04BS\x05{B\tBr\nzQ\nbI\tc{\x04BD\x04BV\x05nO\bTF\tca\x05Jd\tfL\tPV\tI_\nlK\x04`o\twX\npa\tgu\bP}\x05{^\bWf\n{I\tBN\npa\x04Kl\vpg\tcn\tfL\vvh\x04Cq\bTl\vnU\bSq\x04Cm\twR\bUJ\npe\nyd\nYg\x04Cy\vKW\tfD\nea\x04oQ\tj_\tBv\x04nM\vID\bTa\nzA\x05pl\n]n\bTa\tR{\tfr\n_y\bUg\x05{X\x05kk\vxD\x04|I\x05xl\nfy\x04Ce\vwB\nLk\vd]\noi\n}h\tQ]\npe\bVw\x04Hk\x04OQ\nzk\tAJ\npV\bPv\ny\\\tA{\x04Oi\bSB\x04XA\veE\tjp\nq}\tiD\x05qN\v^R\tm\tiZ\tBr\bVg\noi\n\\X\tU_\nc|\vHV\bTf\tTn\x04\\N\x04\\N\nuB\x05lv\nyu\tTd\bTf\bPL\v]W\tdG\nA`\nw^\ngI\npe\tdw\nz\\\x05ia\bWZ\tcF\x04Jm\n{Z\bWO\x04_k\x04Df\x04RR\td\\\bVV\vxs\x04BN\x05ti\x04lm\tTd\t]y\vHV\tSo\v|j\x04XX\tA|\vZ^\vGu\bTW\x05M`\x04kF\vhZ\vVK\tdG\vBl\tay\nxU\x05qE\x05nO\bVw\nqI\x04CX\ne\tPl\bWO\vLm\tdL\x05uH\x04Cm\tdT\x04fn\vwB\x05ka\vnU\n@M\nyT\tHv\t\\}\x04Kh\td~\x04Yh\x05k}\neR\td\\\bWI\t|b\tHK\tiD\bTW\x05MY\npl\bQ_\twr\vAx\tHE\bTg\bSq\x05vp\vb\\\bWO\nOl\nsI\nfy\vID\t\\c\n{Z\n^~\npe\nAO\tTT\vxv\x04k_\bWO\v|j\vwB\tQy\ti@\tPl\tHa\tdZ\x05k}\x04ra\tUT\vJc\ved\np@\tQN\nd|\tkj\tHk\x04M`\noi\twr\td\\\nlq\no_\nlb\nL[\tac\x04BB\x04BH\x04Cm\npl\tIQ\bVK\vxs\n`e\viK\npa\x04Oi\tUS\bTp\tfD\nPG\x05kk\x04XA\nz\\\neg\vWh\twR\x05qN\nqS\tcn\x04lo\nxS\n^W\tBU\nt\tHE\tp\\\tfF\tfw\bVV\bW@\tak\vVK\x05ls\tVJ\bVV\veE\x04\\o\nyX\nYm\x04M`\x05lL\nd|\nzk\tA{\x05sE\twQ\x04XT\nt\tPl\t]y\vwT\x05{p\x04MD\vb\\\tQ]\x04Kj\tJn\nAH\vRb\tBU\tHK\t\\c\nfI\x05m\nqM\n@R\tSo\noi\x04BT\tHv\n_y\x04Kh\tBZ\t]i\bUJ\tV{\x04Sr\nbI\vGg\ta_\bTR\nfI\nfl\t[K\tII\x04S|\vuW\tiI\bWI\nqI\v|j\x04BV\bVg\bWZ\x04kF\vx]\bTA\tab\tfr\ti@\tJd\tJd\vps\nAO\bTa\x05xu\tiD\nzk\t|d\t|`\bW[\tlP\tdG\bVV\vw}\vqO\ti[\bQ\bTz\vVF\twN\x05ts\tdw\bTv\neS\ngi\tNr\x05yS\npe\bVV\bSq\n`m\tyj\tBZ\vWX\bSB\tc\\\nUR\t[J\tc_\x04nM\bWQ\vAx\nMd\tBr\x05ui\vxY\bSM\vWc\v|j\vxs\t}Q\tBO\bPL\bWW\tfM\nAO\tPc\veU\x04e^\bTg\nqI\tac\bPv\tcF\x04oQ\tQ\vhZ\x05ka\nz\\\tiK\tBU\n`k\tCP\x04S|\x04M`\n{I\tS{\x04_O\tBZ\x04Zi\x04Sk\tps\tp\\\nYu\n]s\nxC\bWt\nbD\tkV\vGu\x05yS\nqA\t[r\neK\x04M`\tdZ\x05lL\bUg\bTl\nbD\tUS\vb\\\tpV\ncc\x04S\\\tct\t`z\bPL\vWs\nA`\neg\bSq\x05uE\x04CR\vDg\t`W\vz{\vWc\x04Sk\x04Sk\tbW\bUg\tea\nxZ\tiI\tUX\tVJ\nqn\tS{\vRb\bTQ\npl\x05Gt\vuW\x05uj\npF\nqI\tfL\t[I\tia\x04XO\nyu\vDg\ved\tq{\x04VG\bQ\x05ka\tVj\tkV\txB\nd|\np@\tQN\tPc\tps\x04]j\tkV\toU\bTp\nzU\x05nB\vB]\ta{\bV@\n]n\x04m`\tcz\tR{\x04m`\bQa\vwT\bSM\x05MY\x05qN\tdj\x05~s\vQ}\x05MY\vMB\tBv\twR\bRg\vQ}\tql\vKC\nrm\x05xu\x04CC\vwB\vvh\tBq\x04Xq\npV\ti_\x05Ob\x05uE\nbd\nqo\v{i\nC~\tBL\veE\x05uH\bVj\x04Ey\x04Gz\vzR\v{i\tcf\n{Z\n]n\x04XA\vGu\vnU\thS\vGI\nCc\tHE\bTA\tHB\x04BH\x04Cj\nCc\bTF\tHE\nXI\tA{\bQ\tc\\\vmO\vWX\nfH\np@\x05MY\bTF\nlK\tBt\nzU\tTT\x04Km\vwT\npV\ndt\vyI\tVx\tQ\tRg\tTd\nzU\bRS\nLM\twA\x04nM\tTn\ndS\t]g\nLc\vwB\t}t\t[I\tCP\x04kX\vFm\vhZ\x05m\ti[\np@\vQ}\vW\t|d\nMO\nMd\tf_\tfD\tcJ\tHz\vRb\tio\tPy\x04Y[\nxU\tct\v@@\tww\bPv\x04BM\x04FF\ntb\x05v|\vKm\tBq\tBq\x04Kh\x04`o\nZd\x04XU\ti]\t|`\tSt\x04B\\\bQ\v_W\tTJ\nqI\t|a\tA{\vuP\x04MD\tPl\nxR\tfL\vws\tc{\td\\\bV`\neg\tHK\x05kc\nd|\bVV\ny\\\x05kc\ti]\bVG\t`V\tss\tI_\tAE\tbs\tdu\nel\tpD\vW\nqs\x05lv\bSM\x04Zi\vVK\x05ia\vQB\tQ\n{Z\bPt\vKl\nlK\nhs\ndS\bVK\x05mf\nd^\tkV\tcO\nc|\bVH\t\\]\bTv\bSq\tmI\vDg\tVJ\tcn\ny\\\bVg\bTv\nyX\bTF\t]]\bTp\noi\nhs\veU\nBf\tdj\x05Mr\n|p\t\\g\t]r\bVb\x05{D\nd[\x04XN\tfM\tO\\\x05s_\tcf\tiZ\x04XN\vWc\tqv\n`m\tU^\x05oD\nd|\vGg\tdE\vwf\x04lo\x04u}\nd|\x05oQ\t`i\x04Oi\vxD\ndZ\nCx\x04Yw\nzk\ntb\ngw\tyj\tB`\nyX\vps\ntC\vpP\vqw\bPu\bPX\tDm\npw\x05Nj\tss\taG\vxs\bPt\noL\x04Gz\tOk\ti@\ti]\x04eC\tIQ\tii\tdj\v@J\t|d\x05uh\bWZ\veU\vnU\bTa\tcC\x04g]\nzk\x04Yh\bVK\nLU\np@\ntb\ntR\tCj\vNP\ti@\bP{\n\\}\n{c\nwX\tfL\bVG\tc{\t|`\tAJ\t|C\tfD\x05ln\t|d\tbs\nqI\x05{B\vAx\np@\nzk\vRb\x05Os\vWS\x04e^\vD_\tBv\vWd\bVb\vxs\veE\bRw\n]n\n|p\vg|\tfw\x05kc\bTI\x05ka\n\\T\x04Sp\tju\vps\npe\x05u|\vGr\bVe\tCU\x04]M\x04XU\vxD\bTa\tIQ\vWq\tCU\tam\tdj\bSo\x04Sw\vnU\x04Ch\tQ]\x05s_\bPt\tfS\bTa\t\\}\n@O\x04Yc\tUZ\bTx\npe\vnU\nzU\t|}\tiD\nz\\\bSM\vxD\x04BR\nzQ\tQN\x04]M\x04Yh\nLP\vFm\vLX\x05vc\vql\x05ka\tHK\bVb\ntC\nCy\bTv\nuV\x04oQ\t`z\t[I\tB`\vRb\tyj\tsb\vWs\bTl\tkV\ved\ne\x05lL\vxN\tm\nJn\tjY\vxD\bVb\bSq\vyu\twL\vXL\bTA\tpg\tAt\tnD\x04XX\twR\npl\nhw\x05yS\nps\tcO\bW[\v|j\x04XN\tsV\tp\\\tBe\nb~\nAJ\n]e\x05k`\x05qN\tdw\tWV\tHE\vEV\x05Jz\tid\tB`\tzh\x05E]\tfD\bTg\x05qN\bTa\tja\x04Cv\bSM\nhc\bUe\x05t_\tie\x04g]\twQ\nPn\bVB\tjw\bVg\vbE\tBZ\vRH\bP{\tjp\n\\}\ta_\tcC\t|a\vD]\tBZ\ti[\tfD\vxW\no_\td\\\n_D\ntb\t\\c\tAJ\nlK\x04oQ\x04lo\vLx\vM@\bWZ\x04Kn\vpg\nTi\nIv\n|r\v@}\x05Jz\x05Lm\x05Wh\x05k}\x05ln\vxD\n]s\x04gc\vps\tBr\bTW\vBM\x05tZ\nBY\x04DW\tjf\vSW\x04C}\nqo\tdE\tmv\tIQ\bPP\bUb\x05lv\x04BC\nzQ\t[I\vgl\nig\bUs\x04BT\vbC\bSq\tsU\tiW\nJn\tSY\tHK\trg\npV\vID\v|j\x04KO\t`S\t|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\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=\x0E\ttqbssfqboqfbgz`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\t`lmejqn@vqqfmwbgubm`fpkbqjmdlsfmjmdgqbtjmdajoojlmlqgfqfgDfqnbmzqfobwfg?,elqn=jm`ovgftkfwkfqgfejmfgP`jfm`f`bwboldBqwj`ofavwwlmpobqdfpwvmjelqnilvqmfzpjgfabq@kj`bdlklojgbzDfmfqbosbppbdf/%rvlw8bmjnbwfeffojmdbqqjufgsbppjmdmbwvqboqlvdkoz-\t\tWkf#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\x0E\tsbznfmwwqlvaof`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\t\tTkfm#lapfquf?,k1=\x0E\tNlgfqm#sqlujgf!#bow>!alqgfqp-\t\tElq#\t\tNbmz#bqwjpwpsltfqfgsfqelqnej`wjlmwzsf#lenfgj`bowj`hfwplsslpfg@lvm`jotjwmfppivpwj`fDflqdf#Afodjvn---?,b=wtjwwfqmlwbaoztbjwjmdtbqebqf#Lwkfq#qbmhjmdskqbpfpnfmwjlmpvqujufp`klobq?,s=\x0E\t#@lvmwqzjdmlqfgolpp#leivpw#bpDflqdjbpwqbmdf?kfbg=?pwlssfg2$^*8\x0E\tjpobmgpmlwbaofalqgfq9ojpw#le`bqqjfg233/333?,k0=\t#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\t\tavqmjmdlsfqbwfgfdqffpplvq`f>Qj`kbqg`olpfozsobpwj`fmwqjfp?,wq=\x0E\t`lolq9 vo#jg>!slppfppqloojmdskzpj`pebjojmdf{f`vwf`lmwfpwojmh#wlGfebvow?aq#,=\t9#wqvf/`kbqwfqwlvqjpn`obppj`sql`ffgf{sobjm?,k2=\x0E\tlmojmf-<{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!=\tsfqplmpDlogfm#Beebjqpdqbnnbqelqnjmdgfpwqlzjgfb#le`bpf#lelogfpw#wkjp#jp-pq`#>#`bqwllmqfdjpwq@lnnlmpNvpojnpTkbw#jpjm#nbmznbqhjmdqfufbopJmgffg/frvbooz,pklt\\blvwgllqfp`bsf+Bvpwqjbdfmfwj`pzpwfn/Jm#wkf#pjwwjmdKf#boplJpobmgpB`bgfnz\t\n\n?\"..Gbmjfo#ajmgjmdaol`h!=jnslpfgvwjojyfBaqbkbn+f{`fswxtjgwk9svwwjmd*-kwno+#X^8\tGBWBX#)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\t\n?\"..#`vpwlnpojmhjmdOjwwof#Allh#lefufmjmdnjm-ip<bqf#wkfhlmwbhwwlgbz$p-kwno!#wbqdfw>tfbqjmdBoo#Qjd8\t~*+*8qbjpjmd#Bopl/#`qv`jbobalvw!=gf`obqf..=\t?p`ejqfel{bp#nv`kbssojfpjmgf{/#p/#avw#wzsf#>#\t\x0E\t?\"..wltbqgpQf`lqgpSqjubwfElqfjdmSqfnjfq`klj`fpUjqwvboqfwvqmp@lnnfmwSltfqfgjmojmf8slufqwz`kbnafqOjujmd#ulovnfpBmwklmzoldjm!#QfobwfgF`lmlnzqfb`kfp`vwwjmddqbujwzojef#jm@kbswfq.pkbgltMlwbaof?,wg=\x0E\t#qfwvqmpwbgjvntjgdfwpubqzjmdwqbufopkfog#aztkl#bqftlqh#jmeb`vowzbmdvobqtkl#kbgbjqslqwwltm#le\t\tPlnf#$`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!=\tnlmwkozleej`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=\tfujgfmwaf#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=\t#kf#ofew*-ubo+*ebopf*8oldj`boabmhjmdklnf#wlmbnjmd#Bqjylmb`qfgjwp*8\t~*8\telvmgfqjm#wvqm@loojmpafelqf#Avw#wkf`kbqdfgWjwof!=@bswbjmpsfoofgdlggfppWbd#..=Bggjmd9avw#tbpQf`fmw#sbwjfmwab`h#jm>ebopf%Ojm`lomtf#hmlt@lvmwfqIvgbjpnp`qjsw#bowfqfg$^*8\t##kbp#wkfvm`ofbqFufmw$/alwk#jmmlw#boo\t\t?\"..#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\talnajmdnbjowl9nbgf#jm-#Nbmz#`bqqjfpx~8tjtlqh#lepzmlmzngfefbwpebulqfglswj`bosbdfWqbvmofpp#pfmgjmdofew!=?`lnP`lqBoo#wkfiRvfqz-wlvqjpw@obppj`ebopf!#Tjokfonpvavqapdfmvjmfajpklsp-psojw+dolabo#elooltpalgz#lemlnjmbo@lmwb`wpf`vobqofew#wl`kjfeoz.kjggfm.abmmfq?,oj=\t\t-#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=\t\n\njw#jmwlqbmhfg#qbwf#levo=\x0E\t##bwwfnswsbjq#lenbhf#jwHlmwbhwBmwlmjlkbujmd#qbwjmdp#b`wjufpwqfbnpwqbssfg!*-`pp+klpwjofofbg#wlojwwof#dqlvsp/Sj`wvqf..=\x0E\t\x0E\t#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+!#,=\t\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\t#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\x0E\t##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\t##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\x0E\t##nbqhfwtkl#jp#+!GLN@lnbmbdfglmf#elqwzsfle#Hjmdglnsqlejwpsqlslpfwl#pklt`fmwfq8nbgf#jwgqfppfgtfqf#jmnj{wvqfsqf`jpfbqjpjmdpq`#>#$nbhf#b#pf`vqfgAbswjpwulwjmd#\t\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\t?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!=\x0E\tsvpkfg#babmglmmvnfqbo@fqwbjmJm#wkjpnlqf#jmlq#plnfmbnf#jpbmg/#jm`qltmfgJPAM#3.`qfbwfpL`wlafqnbz#mlw`fmwfq#obwf#jmGfefm`ffmb`wfgtjpk#wlaqlbgoz`llojmdlmolbg>jw-#Wkfqf`lufqNfnafqpkfjdkw#bppvnfp?kwno=\tsflsof-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#,=\x0E\tBwobmwbmv`ofvp@lvmwz/svqfoz#`lvmw!=fbpjoz#avjog#blm`oj`hb#djufmsljmwfqk%rvlw8fufmwp#fopf#x\tgjwjlmpmlt#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#=\x0E\t\x0E\t\x0E\tnbqhfw-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!=\t+*8!#qfb#sob`f_v330@bbalvw#bwq=\x0E\t\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=\x0E\t?vpwlnUb8%dw8?,jnslqwplq#wkbwnlpwoz#%bns8qf#pjyf>!?,b=?,kb#`obppsbppjufKlpw#>#TkfwkfqefqwjofUbqjlvp>X^8+ev`bnfqbp,=?,wg=b`wp#bpJm#plnf=\x0E\t\x0E\t?\"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!=\tnfbpvqfptjgwk#>#ubqjbaofjmuloufgujqdjmjbmlqnboozkbssfmfgb``lvmwppwbmgjmdmbwjlmboQfdjpwfqsqfsbqfg`lmwqlopb``vqbwfajqwkgbzpwqbwfdzleej`jbodqbskj`p`qjnjmboslppjaoz`lmpvnfqSfqplmbopsfbhjmdubojgbwfb`kjfufg-isd!#,=nb`kjmfp?,k1=\t##hfztlqgpeqjfmgozaqlwkfqp`lnajmfglqjdjmbo`lnslpfgf{sf`wfgbgfrvbwfsbhjpwbmeloolt!#ubovbaof?,obafo=qfobwjufaqjmdjmdjm`qfbpfdlufqmlqsovdjmp,Ojpw#le#Kfbgfq!=!#mbnf>!#+%rvlw8dqbgvbwf?,kfbg=\t`lnnfq`fnbobzpjbgjqf`wlqnbjmwbjm8kfjdkw9p`kfgvof`kbmdjmdab`h#wl#`bwkloj`sbwwfqmp`lolq9# dqfbwfpwpvssojfpqfojbaof?,vo=\t\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\t\t`lufqbdf`kbjqnbm-smd!#,=pvaif`wpQj`kbqg#tkbwfufqsqlabaozqf`lufqzabpfabooivgdnfmw`lmmf`w--`pp!#,=#tfapjwfqfslqwfggfebvow!,=?,b=\x0E\tfof`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!=\t\n?wjwof=ufqpjlmppbwvqgbzwfqnjmbojwfnsqlsfmdjmffqpf`wjlmpgfpjdmfqsqlslpbo>!ebopf!Fpsb/]loqfofbpfppvanjw!#fq%rvlw8bggjwjlmpznswlnplqjfmwfgqfplvq`fqjdkw!=?sofbpvqfpwbwjlmpkjpwlqz-ofbujmd##alqgfq>`lmwfmwp`fmwfq!=-\t\tPlnf#gjqf`wfgpvjwbaofavodbqjb-pklt+*8gfpjdmfgDfmfqbo#`lm`fswpF{bnsofptjoojbnpLqjdjmbo!=?psbm=pfbq`k!=lsfqbwlqqfrvfpwpb#%rvlw8booltjmdGl`vnfmwqfujpjlm-#\t\tWkf#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\t\tBewfq#dvjgbm`f?,wg=?wgfm`lgjmdnjggof!=`bnf#wl#gjpsobzpp`lwwjpkilmbwkbmnbilqjwztjgdfwp-`ojmj`bowkbjobmgwfb`kfqp?kfbg=\t\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#,=\x0E\t\\slsvspp`jfm`fp/%rvlw8#rvbojwz#Tjmgltp#bppjdmfgkfjdkw9#?a#`obppof%rvlw8#ubovf>!#@lnsbmzf{bnsofp?jeqbnf#afojfufpsqfpfmwpnbqpkboosbqw#le#sqlsfqoz*-\t\tWkf#wb{lmlnznv`k#le#?,psbm=\t!#gbwb.pqwvdv/Fpp`qlooWl#sqlif`w?kfbg=\x0E\tbwwlqmfzfnskbpjppslmplqpebm`zal{tlqog$p#tjogojef`kf`hfg>pfppjlmpsqldqbnns{8elmw.#Sqlif`wilvqmbopafojfufgub`bwjlmwklnsplmojdkwjmdbmg#wkf#psf`jbo#alqgfq>3`kf`hjmd?,walgz=?avwwlm#@lnsofwf`ofbqej{\t?kfbg=\tbqwj`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!=\t%maps8?,?wq=?wg#kfjdkw91,sqlgv`w`lvmwqz#jm`ovgf#ellwfq!#%ow8\"..#wjwof!=?,irvfqz-?,elqn=\t+\vBl\bQ*+\vUm\x05Gx*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\x03\x03\x03\x03\x03\x03\x03\x03\x02\x03\x02\x03\x02\x03\x02\x03\x01\x03\x01\x03\x01\x03\x01\x03\x07\x03\x07\x03\x07\x03\x07\x03\x03\x02\x01\x00\x07\x06\x05\x04\x04\x05\x06\x07\x00\x01\x02\x03\v\n\t\b\x0F\x0E\r\f\f\r\x0E\x0F\b\t\n\v\x13\x12\x11\x10\x17\x16\x15\x14\x14\x15\x16\x17\x10\x11\x12\x13\x1B\x1A\x19\x18\x1F\x1E\x1D\x1C\x1C\x1D\x1E\x1F\x18\x19\x1A\x1B\x13\x13\x13\x13\x03\x03\x03\x03\x03\x03\x03\x03\x13\x13\x13\x13\x02\x03\x03\x03\x01\x03\x03\x03\x01\x03\x03\x03\x02\x03\x03\x03\x02\x03\x03\x03\x00\x03\x03\x03\x13\x13\x03\x02\x03\x03\x03\x02\x03\x03\x13\x13\x03\x02\x03\x03\x03\v\x03\v\x03\v\x03\v\x03\x03\x03\x02\x03\x01\x03\x00\x03\x07\x03\x06\x03\x05\x03\x04qfplvq`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=\x0E\tpwbwfnfmwbwwfmwjlmAjldqbskz~#fopf#x\tplovwjlmptkfm#wkf#Bmbozwj`pwfnsobwfpgbmdfqlvppbwfoojwfgl`vnfmwpsvaojpkfqjnslqwbmwsqlwlwzsfjmeovfm`f%qbrvl8?,feef`wjufdfmfqboozwqbmpelqnafbvwjevowqbmpslqwlqdbmjyfgsvaojpkfgsqlnjmfmwvmwjo#wkfwkvnambjoMbwjlmbo#-el`vp+*8lufq#wkf#njdqbwjlmbmmlvm`fgellwfq!=\tf{`fswjlmofpp#wkbmf{sfmpjufelqnbwjlmeqbnftlqhwfqqjwlqzmgj`bwjlm`vqqfmwoz`obppMbnf`qjwj`jpnwqbgjwjlmfopftkfqfBof{bmgfqbssljmwfgnbwfqjbopaqlbg`bpwnfmwjlmfgbeejojbwf?,lswjlm=wqfbwnfmwgjeefqfmw,gfebvow-Sqfpjgfmwlm`oj`h>!ajldqbskzlwkfqtjpfsfqnbmfmwEqbm/KbjpKlooztllgf{sbmpjlmpwbmgbqgp?,pwzof=\tqfgv`wjlmGf`fnafq#sqfefqqfg@bnaqjgdflsslmfmwpAvpjmfpp#`lmevpjlm=\t?wjwof=sqfpfmwfgf{sobjmfgglfp#mlw#tlqogtjgfjmwfqeb`fslpjwjlmpmftpsbsfq?,wbaof=\tnlvmwbjmpojhf#wkf#fppfmwjboejmbm`jbopfof`wjlmb`wjlm>!,babmglmfgFgv`bwjlmsbqpfJmw+pwbajojwzvmbaof#wl?,wjwof=\tqfobwjlmpMlwf#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=\tpvpsf`wfgnbqdjm9#3psjqjwvbo?,kfbg=\t\tnj`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=\t\npslmplqfggl`vnfmw-lq#%rvlw8wkfqf#bqfwklpf#tklnlufnfmwpsql`fppfpgjeej`vowpvanjwwfgqf`lnnfmg`lmujm`fgsqlnlwjmd!#tjgwk>!-qfsob`f+`obppj`bo`lbojwjlmkjp#ejqpwgf`jpjlmpbppjpwbmwjmgj`bwfgfulovwjlm.tqbssfq!fmlvdk#wlbolmd#wkfgfojufqfg..=\x0E\t?\"..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\t\tplvwktfpwwkf#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=\t`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..=\t?\"..#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!=\x0E\tqfpjgfm`fofbuf#wkf`lmwfmw!=bqf#lewfm##~*+*8\x0E\tsqlabaoz#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\t%ow8\"..#feef`w#lebmbozwj`ptbp#wbhfmtkfqf#wkfwllh#lufqafojfe#jmBeqjhbbmpbp#ebq#bpsqfufmwfgtlqh#tjwkb#psf`jbo?ejfogpfw@kqjpwnbpQfwqjfufg\t\tJm#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\t?kfbg=\t?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=\t?,b=?,wg=gfsfmg#lmpfbq`k!=\tsjf`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-\t\tBewfq#/#avw#wkfNvpfvn#leolvjpjbmb+eqln#wkfnjmmfplwbsbqwj`ofpb#sql`fppGlnjmj`bmulovnf#leqfwvqmjmdgfefmpjuf33s{qjdknbgf#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\x0E\t?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@\x04Fr\vBl\bQ\tA{\vUm\x05Gx\tA{\x01yp\x06YA\x00zX\bTV\bWl\bUd\x04BM\vB{\npV\v@x\x04B\\\np@\x04Db\x04Gz\tal\npa\tfM\tuD\bV~\x04mx\vQ}\ndS\tp\\\bVK\bS]\bU|\x05oD\tkV\ved\vHR\nb~\x04M`\nJp\x05oD\x04|Q\nLP\x04Sw\bTl\nAI\nxC\bWt\tBq\x05F`\x04Cm\vLm\tKx\t}t\bPv\ny\\\naB\tV\nZd\x04XU\x04li\tfr\ti@\tBH\x04BD\x04BV\t`V\n[]\tp_\tTn\n~A\nxR\tuD\t`{\bV@\tTn\tHK\tAJ\vxs\x04Zf\nqI\x04Zf\vBM\v|j\t}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=\x0E\t@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!=\tnfnafqpkjsojmdvjpwj`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\t\tGvqjmd#wgfufolsfqpbqwjej`jbofrvjubofmwlqjdjmbwfg@lnnjppjlmbwwb`knfmw?psbm#jg>!wkfqf#tfqfMfgfqobmgpafzlmg#wkfqfdjpwfqfgilvqmbojpweqfrvfmwozboo#le#wkfobmd>!fm!#?,pwzof=\x0E\tbaplovwf8#pvsslqwjmdf{wqfnfoz#nbjmpwqfbn?,pwqlmd=#slsvobqjwzfnsolznfmw?,wbaof=\x0E\t#`lopsbm>!?,elqn=\t##`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\tevm`wjlm#jw#tbp#wkf@lmufmwjlmbvwlnlajofSqlwfpwbmwbddqfppjufbewfq#wkf#Pjnjobqoz/!#,=?,gju=`loof`wjlm\x0E\tevm`wjlmujpjajojwzwkf#vpf#leulovmwffqpbwwqb`wjlmvmgfq#wkf#wkqfbwfmfg)?\"X@GBWBXjnslqwbm`fjm#dfmfqbowkf#obwwfq?,elqn=\t?,-jmgf{Le+$j#>#38#j#?gjeefqfm`fgfulwfg#wlwqbgjwjlmppfbq`k#elqvowjnbwfozwlvqmbnfmwbwwqjavwfppl.`boofg#~\t?,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=\t\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>!\t?\"..#Fmg#fof`wqj`boleej`jboozpvddfpwjlmwls#le#wkfvmojhf#wkfBvpwqbojbmLqjdjmboozqfefqfm`fp\t?,kfbg=\x0E\tqf`ldmjpfgjmjwjbojyfojnjwfg#wlBof{bmgqjbqfwjqfnfmwBgufmwvqfpelvq#zfbqp\t\t%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\t?kfbg=\t?nObalqbwlqzMlufnafq#1f{`fswjlmpJmgvpwqjboubqjfwz#leeolbw9#ofeGvqjmd#wkfbppfppnfmwkbuf#affm#gfbop#tjwkPwbwjpwj`pl``vqqfm`f,vo=?,gju=`ofbqej{!=wkf#svaoj`nbmz#zfbqptkj`k#tfqflufq#wjnf/pzmlmznlvp`lmwfmw!=\tsqfpvnbaozkjp#ebnjozvpfqBdfmw-vmf{sf`wfgjm`ovgjmd#`kboofmdfgb#njmlqjwzvmgfejmfg!afolmdp#wlwbhfm#eqlnjm#L`wlafqslpjwjlm9#pbjg#wl#afqfojdjlvp#Efgfqbwjlm#qltpsbm>!lmoz#b#eftnfbmw#wkbwofg#wl#wkf..=\x0E\t?gju#?ejfogpfw=Bq`kajpkls#`obpp>!mlafjmd#vpfgbssqlb`kfpsqjujofdfpmlp`qjsw=\tqfpvowp#jmnbz#af#wkfFbpwfq#fddnf`kbmjpnpqfbplmbaofSlsvobwjlm@loof`wjlmpfof`wfg!=mlp`qjsw=\x0E,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=\t\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=\tsfq`fmwbdfafpw.hmltm`qfbwjmd#b!#gjq>!owqOjfvwfmbmw\t?gju#jg>!wkfz#tlvogbajojwz#lenbgf#vs#lemlwfg#wkbw`ofbq#wkbwbqdvf#wkbwwl#bmlwkfq`kjogqfm$psvqslpf#leelqnvobwfgabpfg#vslmwkf#qfdjlmpvaif`w#lesbppfmdfqpslppfppjlm-\t\tJm#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.=\t?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!=\x0E?p`qjsw=+ewvqmfg#lvwkbujmd#wkf?,psbm=\x0E\t#l``bpjlmboaf`bvpf#jwpwbqwfg#wlskzpj`booz=?,gju=\t##`qfbwfg#az@vqqfmwoz/#ad`lolq>!wbajmgf{>!gjpbpwqlvpBmbozwj`p#bopl#kbp#b=?gju#jg>!?,pwzof=\t?`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-ISDwkvnasbqwj`jsbwf,kfbg=?algzeolbw9ofew8?oj#`obpp>!kvmgqfgp#le\t\tKltfufq/#`lnslpjwjlm`ofbq9alwk8`llsfqbwjlmtjwkjm#wkf#obafo#elq>!alqgfq.wls9Mft#Yfbobmgqf`lnnfmgfgsklwldqbskzjmwfqfpwjmd%ow8pvs%dw8`lmwqlufqpzMfwkfqobmgpbowfqmbwjufnb{ofmdwk>!ptjwyfqobmgGfufolsnfmwfppfmwjbooz\t\tBowklvdk#?,wf{wbqfb=wkvmgfqajqgqfsqfpfmwfg%bns8mgbpk8psf`vobwjlm`lnnvmjwjfpofdjpobwjlmfof`wqlmj`p\t\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!=\t?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\x0E\t?gju#jg>!wkf#obqdfpwgf`obqbwjlmqfdvobwjlmpJmelqnbwjlmwqbmpobwjlmgl`vnfmwbqzjm#lqgfq#wl!=\t?kfbg=\t?!#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=\t?,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=\t#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=\tkbujmd#affm\x0E\t?kfbg=\x0E\t?#%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\t\t?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=\x0E\t@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{!=\trvfpwjlm#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\x0E\t?,kfbg=\x0E\t@lmufqpfoz/=\t?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\x0E\t\n?,gju=\x0E\t\x0E\t?,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=\t?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\t\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=\t##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=\x0E\t\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#pklqw#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=\tKltfufq#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\tLqdbmjybwjlmgjpwqjavwjlm3s{8#kfjdkw9qfobwjlmpkjsgfuj`f.tjgwk?gju#`obpp>!?obafo#elq>!qfdjpwqbwjlm?,mlp`qjsw=\t,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=\tsbggjmd.wls9f{sfqjnfmwbodfwBwwqjavwfjmpwqv`wjlmpwf`kmloldjfpsbqw#le#wkf#>evm`wjlm+*xpvap`qjswjlmo-gwg!=\x0E\t?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^..=~\t?,p`qjsw=\t@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/\t-mlmwlv`k#lapfqubwjlmp?,b=\t?,gju=\te#+gl`vnfmw-alqgfq9#2s{#xelmw.pjyf92wqfbwnfmw#le3!#kfjdkw>!2nlgjej`bwjlmJmgfsfmgfm`fgjujgfg#jmwldqfbwfq#wkbmb`kjfufnfmwpfpwbaojpkjmdIbubP`qjsw!#mfufqwkfofpppjdmjej`bm`fAqlbg`bpwjmd=%maps8?,wg=`lmwbjmfq!=\tpv`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\t\n\n?b#kqfe>!`olpf#wl#wkff{bnsofp#le#jp#balvw#wkf+pff#afolt*-!#jg>!pfbq`ksqlefppjlmbojp#bubjobaofwkf#leej`jbo\n\n?,p`qjsw=\t\t\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=\x0E\t`lmpjgfq#wkfbm#fpwjnbwfgwkf#Mbwjlmbo?gju#jg>!sbdqfpvowjmd#jm`lnnjppjlmfgbmboldlvp#wlbqf#qfrvjqfg,vo=\t?,gju=\ttbp#abpfg#lmbmg#af`bnf#b%maps8%maps8w!#ubovf>!!#tbp#`bswvqfgml#nlqf#wkbmqfpsf`wjufoz`lmwjmvf#wl#=\x0E\t?kfbg=\x0E\t?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=\x0Epbjg#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\t?,p`qjsw=\t\tbm#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=\twklvdkw#wkbwlm#wkf#abpjp`foosbggjmd>jnbdf#le#wkfqfwvqmjmd#wljmelqnbwjlm/pfsbqbwfg#azbppbppjmbwfgp!#`lmwfmw>!bvwklqjwz#lemlqwktfpwfqm?,gju=\t?gju#!=?,gju=\x0E\t##`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(_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\nAO\x05Gx\bTA\nzk\vBl\bQ\bTA\nzk\vUm\bQ\bTA\nzk\npe\x05u|\ti@\tcT\bVV\n\\}\nxS\tVp\x05tS\x05k`\t[X\t[X\vHR\bPv\bTW\bUe\na\bQp\v_W\vWs\nxS\vAz\n_y\x04Khjmelqnb`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=\t?,gju=\tskjolplskj`bool`bwjlm-kqfetbp#svaojpkfgPbm#Eqbm`jp`l+evm`wjlm+*x\t?gju#jg>!nbjmplskjpwj`bwfgnbwkfnbwj`bo#,kfbg=\x0E\t?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\t\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%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=\t?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^..=\x0E\tJmpwjwvwf#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=\t?,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\t?gju#`obpp>!jmsvw#`obpp>!qfsob`fg#tjwkjp#lmf#le#wkffgv`bwjlm#bmgjmeovfm`fg#azqfsvwbwjlm#bp\t?nfwb#mbnf>!b``lnnlgbwjlm?,gju=\t?,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\t?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\t?,p`qjsw=\t?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^..=\t?,=?nfwb#mbnf>!jnsofnfmwbwjlmjmeqbpwqv`wvqfqfsqfpfmwbwjlmalqgfq.alwwln9?,kfbg=\t?algz=>kwws&0B&1E&1E?elqn#nfwklg>!nfwklg>!slpw!#,ebuj`lm-j`l!#~*8\t?,p`qjsw=\t-pfwBwwqjavwf+Bgnjmjpwqbwjlm>#mft#Bqqbz+*8?\"Xfmgje^..=\x0E\tgjpsobz9aol`h8Vmelqwvmbwfoz/!=%maps8?,gju=,ebuj`lm-j`l!=>$pwzofpkffw$#jgfmwjej`bwjlm/#elq#f{bnsof/?oj=?b#kqfe>!,bm#bowfqmbwjufbp#b#qfpvow#lesw!=?,p`qjsw=\twzsf>!pvanjw!#\t+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^..=\t\tgfsfmgp#lm#wkfVmjufqpjwz#le#jm#`lmwqbpw#wl#sob`fklogfq>!jm#wkf#`bpf#lejmwfqmbwjlmbo#`lmpwjwvwjlmbopwzof>!alqgfq.9#evm`wjlm+*#xAf`bvpf#le#wkf.pwqj`w-gwg!=\t?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=\t?,oj=\t?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\t\t?gju#`obpp>!`obpp>!pfbq`k.,algz=\t?,kwno=lsslqwvmjwz#wl`lnnvmj`bwjlmp?,kfbg=\x0E\t?algz#pwzof>!tjgwk9Wj\rVSmd#Uj\rWkw`kbmdfp#jm#wkfalqgfq.`lolq9 3!#alqgfq>!3!#?,psbm=?,gju=?tbp#gjp`lufqfg!#wzsf>!wf{w!#*8\t?,p`qjsw=\t\tGfsbqwnfmw#le#f``ofpjbpwj`bowkfqf#kbp#affmqfpvowjmd#eqln?,algz=?,kwno=kbp#mfufq#affmwkf#ejqpw#wjnfjm#qfpslmpf#wlbvwlnbwj`booz#?,gju=\t\t?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=\x0E#ubojdm>!wls!#jmkbajwbmwp#leelooltjmd#zfbq\x0E\t?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=\t?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\t\n?gju#`obpp>!slppjajojwz#leplnfwjnfp#vpfgbssfbq#wl#kbufpv``fpp#le#wkfjmwfmgfg#wl#afsqfpfmw#jm#wkfpwzof>!`ofbq9a\x0E\t?,p`qjsw=\x0E\t?tbp#elvmgfg#jmjmwfqujft#tjwk\\jg!#`lmwfmw>!`bsjwbo#le#wkf\x0E\t?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+*#x\x0Eje#bmg#lmoz#jeqfdjlmp#le#wkfofbgjmd#wl#wkfqfobwjlmp#tjwkVmjwfg#Mbwjlmppwzof>!kfjdkw9lwkfq#wkbm#wkfzsf!#`lmwfmw>!Bppl`jbwjlm#le\t?,kfbg=\t?algzol`bwfg#lm#wkfjp#qfefqqfg#wl+jm`ovgjmd#wkf`lm`fmwqbwjlmpwkf#jmgjujgvbobnlmd#wkf#nlpwwkbm#bmz#lwkfq,=\t?ojmh#qfo>!#qfwvqm#ebopf8wkf#svqslpf#lewkf#bajojwz#wl8`lolq9 eee~\t-\t?psbm#`obpp>!wkf#pvaif`w#legfejmjwjlmp#le=\x0E\t?ojmh#qfo>!`objn#wkbw#wkfkbuf#gfufolsfg?wbaof#tjgwk>!`fofaqbwjlm#leElooltjmd#wkf#wl#gjpwjmdvjpk?psbm#`obpp>!awbhfp#sob`f#jmvmgfq#wkf#mbnfmlwfg#wkbw#wkf=?\"Xfmgje^..=\tpwzof>!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=\x0E\t\x0E\tfmujqlmnfmwbo#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=\t?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\t?,p`qjsw=\t?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<<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=\t?nfwb#!#kqfe>!kwws9,,!=?psbm#`obpp>!nfnafqp#le#wkf#tjmglt-ol`bwjlmufqwj`bo.bojdm9,b=##?b#kqfe>!?\"gl`wzsf#kwno=nfgjb>!p`qffm!#?lswjlm#ubovf>!ebuj`lm-j`l!#,=\t\n\n?gju#`obpp>!`kbqb`wfqjpwj`p!#nfwklg>!dfw!#,algz=\t?,kwno=\tpklqw`vw#j`lm!#gl`vnfmw-tqjwf+sbggjmd.alwwln9qfsqfpfmwbwjufppvanjw!#ubovf>!bojdm>!`fmwfq!#wkqlvdklvw#wkf#p`jfm`f#ej`wjlm\t##?gju#`obpp>!pvanjw!#`obpp>!lmf#le#wkf#nlpw#ubojdm>!wls!=?tbp#fpwbaojpkfg*8\x0E\t?,p`qjsw=\x0E\tqfwvqm#ebopf8!=*-pwzof-gjpsobzaf`bvpf#le#wkf#gl`vnfmw-`llhjf?elqn#b`wjlm>!,~algzxnbqdjm938Fm`z`olsfgjb#leufqpjlm#le#wkf#-`qfbwfFofnfmw+mbnf!#`lmwfmw>!?,gju=\t?,gju=\t\tbgnjmjpwqbwjuf#?,algz=\t?,kwno=kjpwlqz#le#wkf#!=?jmsvw#wzsf>!slqwjlm#le#wkf#bp#sbqw#le#wkf#%maps8?b#kqfe>!lwkfq#`lvmwqjfp!=\t?gju#`obpp>!?,psbm=?,psbm=?Jm#lwkfq#tlqgp/gjpsobz9#aol`h8`lmwqlo#le#wkf#jmwqlgv`wjlm#le,=\t?nfwb#mbnf>!bp#tfoo#bp#wkf#jm#qf`fmw#zfbqp\x0E\t\n?gju#`obpp>!?,gju=\t\n?,gju=\tjmpsjqfg#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#,=\t?ojmh#qfo>!ptbp#lmf#le#wkf#vmwjo#kjp#gfbwk~*+*8\t?,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=\t\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=\x0E\tvo=?,gju=?,gju=bewfq#wkf#gfbwktjwk#qfpsf`w#wlpwzof>!sbggjmd9jp#sbqwj`vobqozgjpsobz9jmojmf8#wzsf>!pvanjw!#jp#gjujgfg#jmwl\bTA\nzk#+\vBl\bQ*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=\t?!#nfwklg>!slpw!#?,psbm=?,b=?,oj=ufqwj`bo.bojdm9w,irvfqz-njm-ip!=-`oj`h+evm`wjlm+#pwzof>!sbggjmd.~*+*8\t?,p`qjsw=\t?,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=\t?,kwno=\tlufqeolt9kjggfm8jnd#pq`>!kwws9,,bggFufmwOjpwfmfqqfpslmpjaof#elq#p-ip!=?,p`qjsw=\t,ebuj`lm-j`l!#,=lsfqbwjmd#pzpwfn!#pwzof>!tjgwk92wbqdfw>!\\aobmh!=Pwbwf#Vmjufqpjwzwf{w.bojdm9ofew8\tgl`vnfmw-tqjwf+/#jm`ovgjmd#wkf#bqlvmg#wkf#tlqog*8\x0E\t?,p`qjsw=\x0E\t?!#pwzof>!kfjdkw98lufqeolt9kjggfmnlqf#jmelqnbwjlmbm#jmwfqmbwjlmbob#nfnafq#le#wkf#lmf#le#wkf#ejqpw`bm#af#elvmg#jm#?,gju=\t\n\n?,gju=\tgjpsobz9#mlmf8!=!#,=\t?ojmh#qfo>!\t##+evm`wjlm+*#xwkf#26wk#`fmwvqz-sqfufmwGfebvow+obqdf#mvnafq#le#Azybmwjmf#Fnsjqf-isdwkvnaofewubpw#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=\t\npAzWbdMbnf+p*X3^ip!=?,p`qjsw=\x0E\t?-ip!=?,p`qjsw=\x0E\tojmh#qfo>!j`lm!#$#bow>$$#`obpp>$elqnbwjlm#le#wkfufqpjlmp#le#wkf#?,b=?,gju=?,gju=,sbdf=\t##?sbdf=\t?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,,-isdqjdkwwkvna-ip!=?,p`qjsw=\x0E\t?ol`bwjlm-sqlwl`loeqbnfalqgfq>!3!#p!#,=\t?nfwb#mbnf>!?,b=?,gju=?,gju=?elmw.tfjdkw9alog8%rvlw8#bmg#%rvlw8gfsfmgjmd#lm#wkf#nbqdjm938sbggjmd9!#qfo>!mleloolt!#Sqfpjgfmw#le#wkf#wtfmwjfwk#`fmwvqzfujpjlm=\t##?,sbdfJmwfqmfw#F{solqfqb-bpzm`#>#wqvf8\x0E\tjmelqnbwjlm#balvw?gju#jg>!kfbgfq!=!#b`wjlm>!kwws9,,?b#kqfe>!kwwsp9,,?gju#jg>!`lmwfmw!?,gju=\x0E\t?,gju=\x0E\t?gfqjufg#eqln#wkf#?jnd#pq`>$kwws9,,b``lqgjmd#wl#wkf#\t?,algz=\t?,kwno=\tpwzof>!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.;!=\tafdjmmjmd#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=\x0E\t?,gju=\x0E\t\x0E\twkqff.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=\x0E\t?,kwno=\x0E\"y\"W\"W\"[\"Q\"U\"V\"@\twbhf#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!=\twkf#JmwfqmbwjlmboB``lqgjmd#wl#wkf#sf>!wf{w,`pp!#,=\t`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/-isdwkvnaqjdkw1?,gju=?gju#`obpp>!?gju#pwzof>!eolbw9mjmfwffmwk#`fmwvqz?,algz=\x0E\t?,kwno=\x0E\t?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!=\tgvqjmd#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=\x0E\t?%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#?b#kqfe>!kwws9,,Jm#sbqwj`vobq/#wkfNvowjsof#ellwmlwfplq#lwkfq#pvapwbm`fwklvpbmgp#le#zfbqpwqbmpobwjlm#le#wkf?,gju=\x0E\t?,gju=\x0E\t\x0E\t?b#kqfe>!jmgf{-skstbp#fpwbaojpkfg#jmnjm-ip!=?,p`qjsw=\tsbqwj`jsbwf#jm#wkfb#pwqlmd#jmeovfm`fpwzof>!nbqdjm.wls9qfsqfpfmwfg#az#wkfdqbgvbwfg#eqln#wkfWqbgjwjlmbooz/#wkfFofnfmw+!p`qjsw!*8Kltfufq/#pjm`f#wkf,gju=\t?,gju=\t?gju#ofew8#nbqdjm.ofew9sqlwf`wjlm#bdbjmpw38#ufqwj`bo.bojdm9Vmelqwvmbwfoz/#wkfwzsf>!jnbdf,{.j`lm,gju=\t?gju#`obpp>!#`obpp>!`ofbqej{!=?gju#`obpp>!ellwfq\n\n?,gju=\t\n\n?,gju=\twkf#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,,\t?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=\t?,gju=\t?gju#`obpp>!t0-lqd,2:::,{kwno!#\t\x0E\t?,algz=\x0E\t?,kwno=gjpwjm`wjlm#afwtffm,!#wbqdfw>!\\aobmh!=?ojmh#kqfe>!kwws9,,fm`lgjmd>!vwe.;!<=\tt-bggFufmwOjpwfmfq<b`wjlm>!kwws9,,ttt-j`lm!#kqfe>!kwws9,,#pwzof>!ab`hdqlvmg9wzsf>!wf{w,`pp!#,=\tnfwb#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=\t\t?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\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\t?,p`qjsw=\t?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..=\x0E\t?p`qjsw#wzsf>!w?b#kqfe>$kwws9,,ttt-klqw`vw#j`lm!#kqfe>!?,gju=\x0E\t?gju#`obpp>!?p`qjsw#pq`>!kwws9,,!#qfo>!pwzofpkffw!#w?,gju=\t?p`qjsw#wzsf>,b=#?b#kqfe>!kwws9,,#booltWqbmpsbqfm`z>![.VB.@lnsbwjaof!#`lmqfobwjlmpkjs#afwtffm\t?,p`qjsw=\x0E\t?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\x0E\t?nfwb#kwws.frvju>!=?,psbm=?psbm#`obpp>!3!#`foopsb`jmd>!3!=8\t?,p`qjsw=\t?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=\x0E\t?p`qjswwkqlvdklvw#wkf#tlqog`lnnlm#njp`lm`fswjlmbppl`jbwjlm#tjwk#wkf?,gju=\t?,gju=\t?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\t?,gju=\t?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!#,=\tjmwfq`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=\t?oj#`obpp>!`pp!#wzsf>!wf{w,`pp!#?elqn#b`wjlm>!kwws9,,{w,`pp!#kqfe>!kwws9,,ojmh#qfo>!bowfqmbwf!#\x0E\t?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=\t?,gju=\t?,gju=\tfpwbaojpknfmw#le#wkf#?,gju=?,gju=?,gju=?,g ujftslqwxnjm.kfjdkw9\t?p`qjsw#pq`>!kwws9,,lswjlm=?lswjlm#ubovf>lewfm#qfefqqfg#wl#bp#,lswjlm=\t?lswjlm#ubov?\"GL@WZSF#kwno=\t?\"..XJmwfqmbwjlmbo#Bjqslqw=\t?b#kqfe>!kwws9,,ttt?,b=?b#kqfe>!kwws9,,t\fTL\fT^\fTE\fT^\fUh\fT{\fTN\roI\ro|\roL\ro{\roO\rov\rot\nAO\x05Gx\bTA\nzk#+\vUm\x05Gx*\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=\t?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\t?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!#\talgz/#wq/#jmsvw/#wf{wnfwb#mbnf>!qlalwp!#`lmnfwklg>!slpw!#b`wjlm>!=\t?b#kqfe>!kwws9,,ttt-`pp!#qfo>!pwzofpkffw!#?,gju=?,gju=?gju#`obppobmdvbdf>!ibubp`qjsw!=bqjb.kjggfm>!wqvf!=.[?qjsw!#wzsf>!wf{w,ibubpo>38~*+*8\t+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=\t?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.;!#,=\tojmh#qfo>!pklqw`vw#j`lm?ojmh#qfo>!pwzofpkffw!#?,p`qjsw=\t?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!=\t?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!=\t\t?pwzof#wzsf>!wf{w,`pp!=jlmbo-gwg!=\t?kwno#{nomp>kwws.frvju>!@lmwfmw.Wzsfgjmd>!3!#`foopsb`jmd>!3!kwno8#`kbqpfw>vwe.;!#,=\t#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","۷%ƌ'T%…'W%×%O%g%¦&Ɠ%ǥ&>&*&'&^&ˆŸా&ƭ&ƒ&)&^&%&'&‚&P&1&±&3&]&m&u&E&t&C&Ï&V&V&/&>&6&ྲྀ᝼o&p&@&E&M&P&x&@&F&e&Ì&7&:&(&D&0&C&)&.&F&-&1&(&L&F&1ɞ*Ϫ⇳&፲&K&;&)&E&H&P&0&?&9&V&&-&v&a&,&E&)&?&=&'&'&B&മ&ԃ&̖*&*8&%&%&&&%,)&š&>&†&7&]&F&2&>&J&6&n&2&%&?&Ž&2&6&J&g&-&0&,&*&J&*&O&)&6&(&<&B&N&.&P&@&2&.&W&M&%Լ„(,(<&,&Ϛ&ᣇ&-&,(%&(&%&(Ļ0&X&D&&j&'&J&(&.&B&3&Z&R&h&3&E&E&<Æ-͠ỳ&%8?&@&,&Z&@&0&J&,&^&x&_&6&C&6&Cܬ⨥&f&-&-&-&-&,&J&2&8&z&8&C&Y&8&-&d&ṸÌ-&7&1&F&7&t&W&7&I&.&.&^&=ྜ᧓&8(>&/&/&ݻ')'ၥ')'%@/&0&%оী*&*@&CԽהɴ׫4෗ܚӑ6඄&/Ÿ̃Z&*%ɆϿ&Ĵ&1¨ҴŴ",ac,"AAAAKKLLKKKKKJJIHHIHHGGFF"),to(nc,ac);function rc(y){this.data=new Int8Array(0),this.offset=0,this.data=y}d(rc,"InputStream");function Bf(y,M,P,G){if(y.input===null)return-1;let z=y.input,st=Math.min(z.offset+G,z.data.length),dt=st-z.offset;return M.set(z.data.subarray(z.offset,st),P),z.offset+=dt,dt}d(Bf,"readInput");function V0(y){y.input=new rc(new Int8Array(0))}d(V0,"closeInput");function W0(y){let M=y.length,P=new Int8Array(M);for(let G=0;G<M;++G)P[G]=y.charCodeAt(G);return P}d(W0,"toUsAsciiBytes");function Pf(y){let M=y.length,P=new Int32Array(M);for(let G=0;G<M;++G)P[G]=y.charCodeAt(G);return P}d(Pf,"toUtf8Runes");function pe(y,M){if(M>=0)return M;throw y.runningState>=0&&(y.runningState=M),Error("Brotli error code: "+M)}d(pe,"makeError");function K0(y,M){let P=new fn;if(P.input=new rc(y),w(P),M){let At=M.customDictionary;At&&g(P,At)}let G=0,z=[];for(;;){let At=new Int8Array(16384);if(z.push(At),P.output=At,P.outputOffset=0,P.outputLength=16384,P.outputUsed=0,It(P),G+=P.outputUsed,P.outputUsed<16384)break}b(P),V0(P);let st=new Int8Array(G),dt=0;for(let At=0;At<z.length;++At){let Ht=z[At],Gt=Math.min(G,dt+16384)-dt;Gt<16384?st.set(Ht.subarray(0,Gt),dt):st.set(Ht,dt),dt+=Gt}return st}return d(K0,"decode"),K0},"makeBrotliDecode"),fy=hy();Ig=class Ig extends Ps{static{d(this,"BrotliStream")}#t=!0;constructor(t,e){super(e),this.stream=t,this.dict=t.dict}readBlock(){let t=this.stream.getBytes(),e=fy(new Int8Array(t.buffer,t.byteOffset,t.length));this.buffer=new Uint8Array(e.buffer,e.byteOffset,e.length),this.bufferLength=this.buffer.length,this.eof=!0}async getImageData(t,e){let s=await this.asyncGetBytes();return s?s.length<=t?s:s.subarray(0,t):this.getBytes(t)}async asyncGetBytes(){let{decompressed:t,compressed:e}=await this.asyncGetBytesFromDecompressionStream("brotli");return t||(this.#t=!1,this.stream=new je(e,0,e.length,this.stream.dict),this.reset(),null)}get isAsync(){return this.#t}};Tg=class Tg extends Ps{static{d(this,"CCITTFaxStream")}constructor(t,e,s){super(e),this.stream=t,this.maybeLength=e,this.dict=t.dict,s instanceof B||(s=B.empty),this.params={K:s.get("K")||0,EndOfLine:!!s.get("EndOfLine"),EncodedByteAlign:!!s.get("EncodedByteAlign"),Columns:s.get("Columns")||1728,Rows:s.get("Rows")||0,EndOfBlock:!!(s.get("EndOfBlock")??!0),BlackIs1:!!s.get("BlackIs1")}}get bytes(){return lt(this,"bytes",this.stream.getBytes(this.maybeLength))}readBlock(){this.decodeImageFallback()}get isImageStream(){return!0}get isAsyncDecoder(){return!0}async decodeImage(t,e,s){if(this.eof)return this.buffer;t||(t=this.stream.isAsync?await this.stream.asyncGetBytes()||this.bytes:this.bytes);try{this.buffer=await xl.decode(t,this.dict.get("W","Width"),this.dict.get("H","Height"),null,this.params)}catch{return T("CCITTFaxStream: Falling back to JS CCITTFax decoder."),this.decodeImageFallback(t,e)}return this.bufferLength=this.buffer.length,this.eof=!0,this.buffer}decodeImageFallback(t,e){if(this.eof)return this.buffer;let{params:s}=this;t||(this.stream.reset(),t=this.bytes);let i=0,n={next(){return t[i++]??-1}};e&&this.buffer.byteLength<e&&(this.buffer=new Uint8Array(e)),this.ccittFaxDecoder=new _1(n,s);let a=0;for(;!this.eof;){let r=this.ccittFaxDecoder.readNextChar();if(r===-1){this.eof=!0;break}e||this.ensureBuffer(a+1),this.buffer[a++]=r}return this.bufferLength=this.buffer.length,this.buffer.subarray(0,e||this.bufferLength)}};pp=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),uy=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]),dy=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]),py=[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,590000,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],my=[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];fu=class fu extends Ps{static{d(this,"FlateStream")}#t=!0;constructor(t,e){super(e),this.stream=t,this.dict=t.dict;let s=t.getByte(),i=t.getByte();if(s===-1||i===-1)throw new Q(`Invalid header in flate stream: ${s}, ${i}`);if((s&15)!==8)throw new Q(`Unknown compression method in flate stream: ${s}, ${i}`);if(((s<<8)+i)%31!==0)throw new Q(`Bad FCHECK in flate stream: ${s}, ${i}`);if(i&32)throw new Q(`FDICT bit set in flate stream: ${s}, ${i}`);this.codeSize=0,this.codeBuf=0}async getImageData(t,e){let s=await this.asyncGetBytes();return s?s.length<=t?s:s.subarray(0,t):this.getBytes(t)}async asyncGetBytes(){let{decompressed:t,compressed:e}=await this.asyncGetBytesFromDecompressionStream("deflate");return t||(this.#t=!1,this.stream=new je(e,2,e.length,this.stream.dict),this.reset(),null)}get isAsync(){return this.#t}getBits(t){let e=this.stream,s=this.codeSize,i=this.codeBuf,n;for(;s<t;){if((n=e.getByte())===-1)throw new Q("Bad encoding in flate stream");i|=n<<s,s+=8}return n=i&(1<<t)-1,this.codeBuf=i>>t,this.codeSize=s-=t,n}getCode(t){let e=this.stream,s=t[0],i=t[1],n=this.codeSize,a=this.codeBuf,r;for(;n<i&&(r=e.getByte())!==-1;)a|=r<<n,n+=8;let o=s[a&(1<<i)-1],l=o>>16,c=o&65535;if(l<1||n<l)throw new Q("Bad encoding in flate stream");return this.codeBuf=a>>l,this.codeSize=n-l,c}generateHuffmanTable(t){let e=t.length,s=0,i;for(i=0;i<e;++i)t[i]>s&&(s=t[i]);let n=1<<s,a=new Int32Array(n);for(let r=1,o=0,l=2;r<=s;++r,o<<=1,l<<=1)for(let c=0;c<e;++c)if(t[c]===r){let h=0,f=o;for(i=0;i<r;++i)h=h<<1|f&1,f>>=1;for(i=h;i<n;i+=l)a[i]=r<<16|c;++o}return[a,s]}#e(t){Wt(t),this.eof=!0}readBlock(){let t,e,s,i=this.stream;try{e=this.getBits(3)}catch(l){this.#e(l.message);return}if(e&1&&(this.eof=!0),e>>=1,e===0){let l;if((l=i.getByte())===-1){this.#e("Bad block header in flate stream");return}let c=l;if((l=i.getByte())===-1){this.#e("Bad block header in flate stream");return}if(c|=l<<8,(l=i.getByte())===-1){this.#e("Bad block header in flate stream");return}let h=l;if((l=i.getByte())===-1){this.#e("Bad block header in flate stream");return}if(h|=l<<8,h!==(~c&65535)&&(c!==0||h!==0))throw new Q("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;let f=this.bufferLength,u=f+c;if(t=this.ensureBuffer(u),this.bufferLength=u,c===0)i.peekByte()===-1&&(this.eof=!0);else{let p=i.getBytes(c);t.set(p,f),p.length<c&&(this.eof=!0)}return}let n,a;if(e===1)n=py,a=my;else if(e===2){let l=this.getBits(5)+257,c=this.getBits(5)+1,h=this.getBits(4)+4,f=new Uint8Array(pp.length),u;for(u=0;u<h;++u)f[pp[u]]=this.getBits(3);let p=this.generateHuffmanTable(f);s=0,u=0;let m=l+c,g=new Uint8Array(m),w,b,j;for(;u<m;){let v=this.getCode(p);if(v===16)w=2,b=3,j=s;else if(v===17)w=3,b=3,j=s=0;else if(v===18)w=7,b=11,j=s=0;else{g[u++]=s=v;continue}let q=this.getBits(w)+b;for(;q-- >0;)g[u++]=j}n=this.generateHuffmanTable(g.subarray(0,l)),a=this.generateHuffmanTable(g.subarray(l,m))}else throw new Q("Unknown block type in flate stream");t=this.buffer;let r=t?t.length:0,o=this.bufferLength;for(;;){let l=this.getCode(n);if(l<256){o+1>=r&&(t=this.ensureBuffer(o+1),r=t.length),t[o++]=l;continue}if(l===256){this.bufferLength=o;return}l-=257,l=uy[l];let c=l>>16;c>0&&(c=this.getBits(c)),s=(l&65535)+c,l=this.getCode(a),l=dy[l],c=l>>16,c>0&&(c=this.getBits(c));let h=(l&65535)+c;o+s>=r&&(t=this.ensureBuffer(o+s),r=t.length);for(let f=0;f<s;++f,++o)t[o]=t[o-h]}}};Fg=class Fg extends Ps{static{d(this,"Jbig2Stream")}constructor(t,e,s){super(e),this.stream=t,this.dict=t.dict,this.maybeLength=e,this.params=s}get bytes(){return lt(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){this.decodeImageFallback()}get isAsyncDecoder(){return!0}get isImageStream(){return!0}async decodeImage(t,e,s){if(this.eof)return this.buffer;t||=this.bytes;try{let i=null;if(this.params instanceof B){let n=this.params.get("JBIG2Globals");n instanceof Lt&&(i=n.getBytes())}this.buffer=await xl.decode(t,this.dict.get("Width"),this.dict.get("Height"),i)}catch{return T("Jbig2Stream: Falling back to JS JBIG2 decoder."),this.decodeImageFallback(t,e)}return this.bufferLength=this.buffer.length,this.eof=!0,this.buffer}decodeImageFallback(t,e){if(this.eof)return this.buffer;t||=this.bytes;let s=new mg,i=[];if(this.params instanceof B){let r=this.params.get("JBIG2Globals");if(r instanceof Lt){let o=r.getBytes();i.push({data:o,start:0,end:o.length})}}i.push({data:t,start:0,end:t.length});let n=s.parseChunks(i),a=n.length;for(let r=0;r<a;r++)n[r]^=255;return this.buffer=n,this.bufferLength=a,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}};Eg=class Eg extends Ps{static{d(this,"JpxStream")}constructor(t,e,s){super(e),this.stream=t,this.dict=t.dict,this.maybeLength=e,this.params=s}get bytes(){return lt(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(t){Yt("JpxStream.readBlock")}get isAsyncDecoder(){return!0}async decodeImage(t,e,s){return this.eof?this.buffer:(t||=this.bytes,this.buffer=await Sl.decode(t,s),this.bufferLength=this.buffer.length,this.eof=!0,this.buffer)}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}get isImageStream(){return!0}};uu=class uu extends Ps{static{d(this,"LZWStream")}constructor(t,e,s){super(e),this.stream=t,this.dict=t.dict,this.cachedData=0,this.bitsCached=0;let i=4096,n={earlyChange:s,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(i),dictionaryLengths:new Uint16Array(i),dictionaryPrevCodes:new Uint16Array(i),currentSequence:new Uint8Array(i),currentSequenceLength:0};for(let a=0;a<256;++a)n.dictionaryValues[a]=a,n.dictionaryLengths[a]=1;this.lzwState=n}readBits(t){let e=this.bitsCached,s=this.cachedData;for(;e<t;){let i=this.stream.getByte();if(i===-1)return this.eof=!0,null;s=s<<8|i,e+=8}return this.bitsCached=e-=t,this.cachedData=s,s>>>e&(1<<t)-1}readBlock(){let t=1024,e,s,i,n=this.lzwState;if(!n)return;let{earlyChange:a,nextCode:r,dictionaryValues:o,dictionaryLengths:l,dictionaryPrevCodes:c,codeLength:h,prevCode:f,currentSequence:u,currentSequenceLength:p}=n,m=0,g=this.bufferLength,w=this.ensureBuffer(this.bufferLength+t);for(e=0;e<512;e++){let b=this.readBits(h),j=p>0;if(b<256)u[0]=b,p=1;else if(b>=258)if(b<r)for(p=l[b],s=p-1,i=b;s>=0;s--)u[s]=o[i],i=c[i];else u[p++]=u[0];else if(b===256){h=9,r=258,p=0;continue}else{this.eof=!0,delete this.lzwState;break}if(j&&(c[r]=f,l[r]=l[f]+1,o[r]=u[0],r++,h=r+a&r+a-1?h:Math.min(Math.log(r+a)/0.6931471805599453+1,12)|0),f=b,m+=p,t<m){do t+=512;while(t<m);w=this.ensureBuffer(this.bufferLength+t)}for(s=0;s<p;s++)w[g++]=u[s]}n.nextCode=r,n.codeLength=h,n.prevCode=f,n.currentSequenceLength=p,this.bufferLength=g}};du=class du extends Ps{static{d(this,"PredictorStream")}constructor(t,e,s){if(super(e),!(s instanceof B))return t;let i=this.predictor=s.get("Predictor")||1;if(i<=1)return t;if(i!==2&&(i<10||i>15))throw new Q(`Unsupported predictor: ${i}`);this.readBlock=i===2?this.readBlockTiff:this.readBlockPng,this.stream=t,this.dict=t.dict;let n=this.colors=s.get("Colors")||1,a=this.bits=s.get("BPC","BitsPerComponent")||8,r=this.columns=s.get("Columns")||1;return this.pixBytes=n*a+7>>3,this.rowBytes=r*n*a+7>>3,this}readBlockTiff(){let t=this.rowBytes,e=this.bufferLength,s=this.ensureBuffer(e+t),i=this.bits,n=this.colors,a=this.stream.getBytes(t);if(this.eof=!a.length,this.eof)return;let r=0,o=0,l=0,c=0,h=e,f;if(i===1&&n===1)for(f=0;f<t;++f){let u=a[f]^r;u^=u>>1,u^=u>>2,u^=u>>4,r=(u&1)<<7,s[h++]=u}else if(i===8){for(f=0;f<n;++f)s[h++]=a[f];for(;f<t;++f)s[h]=s[h-n]+a[f],h++}else if(i===16){let u=n*2;for(f=0;f<u;++f)s[h++]=a[f];for(;f<t;f+=2){let p=((a[f]&255)<<8)+(a[f+1]&255)+((s[h-u]&255)<<8)+(s[h-u+1]&255);s[h++]=p>>8&255,s[h++]=p&255}}else{let u=new Uint8Array(n+1),p=(1<<i)-1,m=0,g=e,w=this.columns;for(f=0;f<w;++f)for(let b=0;b<n;++b)l<i&&(r=r<<8|a[m++]&255,l+=8),u[b]=u[b]+(r>>l-i)&p,l-=i,o=o<<i|u[b],c+=i,c>=8&&(s[g++]=o>>c-8&255,c-=8);c>0&&(s[g++]=(o<<8-c)+(r&(1<<8-c)-1))}this.bufferLength+=t}readBlockPng(){let t=this.rowBytes,e=this.pixBytes,s=this.stream.getByte(),i=this.stream.getBytes(t);if(this.eof=!i.length,this.eof)return;let n=this.bufferLength,a=this.ensureBuffer(n+t),r=a.subarray(n-t,n);r.length===0&&(r=new Uint8Array(t));let o,l=n,c,h;switch(s){case 0:for(o=0;o<t;++o)a[l++]=i[o];break;case 1:for(o=0;o<e;++o)a[l++]=i[o];for(;o<t;++o)a[l]=a[l-e]+i[o]&255,l++;break;case 2:for(o=0;o<t;++o)a[l++]=r[o]+i[o]&255;break;case 3:for(o=0;o<e;++o)a[l++]=(r[o]>>1)+i[o];for(;o<t;++o)a[l]=(r[o]+a[l-e]>>1)+i[o]&255,l++;break;case 4:for(o=0;o<e;++o)c=r[o],h=i[o],a[l++]=c+h;for(;o<t;++o){c=r[o];let f=r[o-e],u=a[l-e],p=u+c-f,m=p-u;m<0&&(m=-m);let g=p-c;g<0&&(g=-g);let w=p-f;w<0&&(w=-w),h=i[o],m<=g&&m<=w?a[l++]=u+h:g<=w?a[l++]=c+h:a[l++]=f+h}break;default:throw new Q(`Unsupported predictor: ${s}`)}this.bufferLength+=t}};Mg=class Mg extends Ps{static{d(this,"RunLengthStream")}constructor(t,e){super(e),this.stream=t,this.dict=t.dict}readBlock(){let t=this.stream.getBytes(2);if(!t||t.length<2||t[0]===128){this.eof=!0;return}let e,s=this.bufferLength,i=t[0];if(i<128){if(e=this.ensureBuffer(s+i+1),e[s++]=t[1],i>0){let n=this.stream.getBytes(i);e.set(n,s),s+=i}}else i=257-i,e=this.ensureBuffer(s+i+1),e.fill(t[1],s,s+i),s+=i;this.bufferLength=s}};d(Bg,"getInlineImageCacheKey");wn=class wn{static{d(this,"Parser")}constructor({lexer:t,xref:e,allowStreams:s=!1,recoveryMode:i=!1}){this.lexer=t,this.xref=e,this.allowStreams=s,this.recoveryMode=i,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof Je&&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 Ce)throw t;return!1}}getObj(t=null){let e=this.buf1;if(this.shift(),e instanceof Je)switch(e.cmd){case"BI":return this.makeInlineImage(t);case"[":let s=[];for(;!os(this.buf1,"]")&&this.buf1!==bs;)s.push(this.getObj(t));if(this.buf1===bs){if(this.recoveryMode)return s;throw new Qc("End of file inside array.")}return this.shift(),s;case"<<":let i=new B(this.xref);for(;!os(this.buf1,">>")&&this.buf1!==bs;){if(!(this.buf1 instanceof tt)){Wt("Malformed dictionary: key must be a name object"),this.shift();continue}let n=this.buf1.name;if(this.shift(),this.buf1===bs)break;i.set(n,this.getObj(t))}if(this.buf1===bs){if(this.recoveryMode)return i;throw new Qc("End of file inside dictionary.")}return os(this.buf2,"stream")?this.allowStreams?this.makeStream(i,t):i:(this.shift(),i);default:return e}if(Number.isInteger(e)){if(Number.isInteger(this.buf1)&&os(this.buf2,"R")){let s=nt.get(e,this.buf1);return this.shift(),this.shift(),s}return e}return typeof e=="string"&&t?t.decryptString(e):e}findDefaultInlineStreamEnd(t){let{knownCommands:e}=this.lexer,s=t.pos,n=0,a,r;for(;(a=t.getByte())!==-1;)if(n===0)n=a===69?1:0;else if(n===1)n=a===73?2:0;else if(a===32||a===10||a===13){r=t.pos;let l=t.peekBytes(15),c=l.length;if(c===0)break;for(let u=0;u<c;u++)if(a=l[u],!(a===0&&l[u+1]!==0)&&a!==10&&a!==13&&(a<32||a>127)){n=0;break}if(n!==2)continue;if(!e){T("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}let h=new Ci(new je(t.peekBytes(75)),e);h._hexStringWarn=()=>{};let f=0;for(;;){let u=h.getObj();if(u===bs){n=0;break}if(u instanceof Je){let p=e[u.cmd];if(p){if(p.variableArgs?f<=p.numArgs:f===p.numArgs)break}else{n=0;break}f=0;continue}f++}if(n===2)break}else n=0;a===-1&&(T("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&(T('... trying to recover by using the last "EI" occurrence.'),t.skip(-(t.pos-r))));let o=4;return t.skip(-o),a=t.peekByte(),t.skip(o),ai(a)||o--,t.pos-o-s}findDCTDecodeInlineStreamEnd(t){let e=t.pos,s=!1,i,n;for(;(i=t.getByte())!==-1;)if(i===255){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:s=!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:n=t.getUint16(),n>2?t.skip(n-2):t.skip(-2);break}if(s)break}let a=t.pos-e;return i===-1?(T("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),t.skip(-a),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),a)}findASCII85DecodeInlineStreamEnd(t){let e=t.pos,s;for(;(s=t.getByte())!==-1;)if(s===126){let n=t.pos;for(s=t.peekByte();ai(s);)t.skip(),s=t.peekByte();if(s===62){t.skip();break}if(t.pos>n){let a=t.peekBytes(2);if(a[0]===69&&a[1]===73)break}}let i=t.pos-e;return s===-1?(T("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-i),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),i)}findASCIIHexDecodeInlineStreamEnd(t){let e=t.pos,s;for(;(s=t.getByte())!==-1&&s!==62;);let i=t.pos-e;return s===-1?(T("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-i),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),i)}inlineStreamSkipEI(t){let e=0,s;for(;(s=t.getByte())!==-1;)if(e===0)e=s===69?1:0;else if(e===1)e=s===73?2:0;else if(e===2)break}makeInlineImage(t){let e=this.lexer,s=e.stream,i=Object.create(null),n;for(;!os(this.buf1,"ID")&&this.buf1!==bs;){if(!(this.buf1 instanceof tt))throw new Q("Dictionary key must be a name object");let u=this.buf1.name;if(this.shift(),this.buf1===bs)break;i[u]=this.getObj(t)}e.beginInlineImagePos!==-1&&(n=s.pos-e.beginInlineImagePos);let a=this.xref.fetchIfRef(i.F||i.Filter),r;if(a instanceof tt)r=a.name;else if(Array.isArray(a)){let u=this.xref.fetchIfRef(a[0]);u instanceof tt&&(r=u.name)}let o=s.pos,l;switch(r){case"DCT":case"DCTDecode":l=this.findDCTDecodeInlineStreamEnd(s);break;case"A85":case"ASCII85Decode":l=this.findASCII85DecodeInlineStreamEnd(s);break;case"AHx":case"ASCIIHexDecode":l=this.findASCIIHexDecodeInlineStreamEnd(s);break;default:l=this.findDefaultInlineStreamEnd(s)}let c;if(l<gy&&n>0){let u=s.pos;s.pos=e.beginInlineImagePos,c=Bg(s.getBytes(n+l)),s.pos=u;let p=this.imageCache[c];if(p!==void 0)return this.buf2=Je.get("EI"),this.shift(),p.reset(),p}let h=new B(this.xref);for(let u in i)h.set(u,i[u]);let f=s.makeSubStream(o,l,h);return t&&(f=t.createStream(f,l)),f=this.filter(f,h,l),f.dict=h,c!==void 0&&(f.cacheKey=`inline_img_${++this._imageId}`,this.imageCache[c]=f),this.buf2=Je.get("EI"),this.shift(),f}#t(t){let{stream:e}=this.lexer;e.pos=t;let s=2048,i=9,n=new Uint8Array([101,110,100]),a=n.length,r=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],o=i-a;for(;e.pos<e.end;){let l=e.peekBytes(s),c=l.length-i;if(c<=0)break;let h=0;for(;h<c;){let f=0;for(;f<a&&l[h+f]===n[f];)f++;if(f>=a){let u=!1;for(let p of r){let m=p.length,g=0;for(;g<m&&l[h+f+g]===p[g];)g++;if(g>=o){u=!0;break}if(g>=m){let w=l[h+f+g];ai(w)&&(Wt(`Found "${Us([...n,...p])}" when searching for endstream command.`),u=!0);break}}if(u)return e.pos+=h,e.pos-t}h++}e.pos+=c}return-1}makeStream(t,e){let s=this.lexer,i=s.stream;s.skipToNextLine();let n=i.pos-1,a=t.get("Length");if(Number.isInteger(a)||(Wt(`Bad length "${a&&a.toString()}" in stream.`),a=0),i.pos=n+a,s.nextChar(),this.tryShift()&&os(this.buf2,"endstream"))this.shift();else{if(a=this.#t(n),a<0)throw new Q("Missing endstream command.");s.nextChar(),this.shift(),this.shift()}return this.shift(),i=i.makeSubStream(n,a,t),e&&(i=e.createStream(i,a)),i=this.filter(i,t,a),i.dict=t,i}filter(t,e,s){let i=e.get("F","Filter"),n=e.get("DP","DecodeParms");if(i instanceof tt)return Array.isArray(n)&&T("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(t,i.name,s,n);let a=s;if(Array.isArray(i)){let r=i,o=n;for(let l=0,c=r.length;l<c;++l){if(i=this.xref.fetchIfRef(r[l]),!(i instanceof tt))throw new Q(`Bad filter name "${i}"`);n=null,Array.isArray(o)&&l in o&&(n=this.xref.fetchIfRef(o[l])),t=this.makeFilter(t,i.name,a,n),a=null}}return t}makeFilter(t,e,s,i){if(s===0)return T(`Empty "${e}" stream.`),new th;try{switch(e){case"Fl":case"FlateDecode":return i?new du(new fu(t,s),s,i):new fu(t,s);case"LZW":case"LZWDecode":let n=1;return i?(i.has("EarlyChange")&&(n=i.get("EarlyChange")),new du(new uu(t,s,n),s,i)):new uu(t,s,n);case"DCT":case"DCTDecode":return new Ur(t,s,i);case"JPX":case"JPXDecode":return new Eg(t,s,i);case"A85":case"ASCII85Decode":return new Sg(t,s);case"AHx":case"ASCIIHexDecode":return new Cg(t,s);case"CCF":case"CCITTFaxDecode":return new Tg(t,s,i);case"RL":case"RunLengthDecode":return new Mg(t,s);case"JBIG2Decode":return new Fg(t,s,i);case"BrotliDecode":return new Ig(t,s)}return T(`Filter "${e}" is not supported.`),t}catch(n){if(n instanceof Ce)throw n;return T(`Invalid stream: "${n}"`),new th}}};Za=[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];d(Cc,"toHexDigit");Ci=class Ci{static{d(this,"Lexer")}constructor(t,e=null){this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=e,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let t=this.currentChar,e=0,s=1;if(t===45?(s=-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&&(e=10,t=this.nextChar()),t<48||t>57){let n=`Invalid number: ${String.fromCharCode(t)} (charCode ${t})`;if(ai(t)||t===40||t===60||t===-1)return Wt(`Lexer.getNumber - "${n}".`),0;throw new Q(n)}let i=t-48;for(;(t=this.nextChar())>=0;)if(t>=48&&t<=57){let n=t-48;e!==0&&(e*=10),i=i*10+n}else if(t===46)if(e===0)e=1;else break;else if(t===45)T("Badly formatted number: minus sign in the middle");else break;return e!==0&&(i/=e),s*i}getString(){let t=1,e=!1,s=this.strBuf;s.length=0;let i=this.nextChar();for(;;){let n=!1;switch(i|0){case-1:T("Unterminated string"),e=!0;break;case 40:++t,s.push("(");break;case 41:--t===0?(this.nextChar(),e=!0):s.push(")");break;case 92:switch(i=this.nextChar(),i){case-1:T("Unterminated string"),e=!0;break;case 110:s.push(`
68
+ `);break;case 114:s.push("\r");break;case 116:s.push("\t");break;case 98:s.push("\b");break;case 102:s.push("\f");break;case 92:case 40:case 41:s.push(String.fromCharCode(i));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let a=i&15;i=this.nextChar(),n=!0,i>=48&&i<=55&&(a=(a<<3)+(i&15),i=this.nextChar(),i>=48&&i<=55&&(n=!1,a=(a<<3)+(i&15))),s.push(String.fromCharCode(a));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:s.push(String.fromCharCode(i));break}break;default:s.push(String.fromCharCode(i));break}if(e)break;n||(i=this.nextChar())}return s.join("")}getName(){let t,e,s=this.strBuf;for(s.length=0;(t=this.nextChar())>=0&&!Za[t];)if(t===35){if(t=this.nextChar(),Za[t]){T("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),s.push("#");break}let i=Cc(t);if(i!==-1){e=t,t=this.nextChar();let n=Cc(t);if(n===-1){if(T(`Lexer_getName: Illegal digit (${String.fromCharCode(t)}) in hexadecimal number.`),s.push("#",String.fromCharCode(e)),Za[t])break;s.push(String.fromCharCode(t));continue}s.push(String.fromCharCode(i<<4|n))}else s.push("#",String.fromCharCode(t))}else s.push(String.fromCharCode(t));return s.length>127&&T(`Name token is longer than allowed by the spec: ${s.length}`),tt.get(s.join(""))}_hexStringWarn(t){if(this._hexStringNumWarn++===5){T("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||T(`getHexString - ignoring invalid character: ${t}`)}getHexString(){let t=this.strBuf;t.length=0;let e=this.currentChar,s=-1,i=-1;for(this._hexStringNumWarn=0;;)if(e<0){T("Unterminated hex string");break}else if(e===62){this.nextChar();break}else if(Za[e]===1){e=this.nextChar();continue}else i=Cc(e),i===-1?this._hexStringWarn(e):s===-1?s=i:(t.push(String.fromCharCode(s<<4|i)),s=-1),e=this.nextChar();return s!==-1&&t.push(String.fromCharCode(s<<4)),t.join("")}getObj(){let t=!1,e=this.currentChar;for(;;){if(e<0)return bs;if(t)(e===10||e===13)&&(t=!1);else if(e===37)t=!0;else if(Za[e]!==1)break;e=this.nextChar()}switch(e|0){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(),Je.get("[");case 93:return this.nextChar(),Je.get("]");case 60:return e=this.nextChar(),e===60?(this.nextChar(),Je.get("<<")):this.getHexString();case 62:return e=this.nextChar(),e===62?(this.nextChar(),Je.get(">>")):Je.get(">");case 123:return this.nextChar(),Je.get("{");case 125:return this.nextChar(),Je.get("}");case 41:throw this.nextChar(),new Q(`Illegal character: ${e}`)}let s=String.fromCharCode(e);if(e<32||e>127){let a=this.peekChar();if(a>=32&&a<=127)return this.nextChar(),Je.get(s)}let i=this.knownCommands,n=i?.[s]!==void 0;for(;(e=this.nextChar())>=0&&!Za[e];){let a=s+String.fromCharCode(e);if(n&&i[a]===void 0)break;if(s.length===128)throw new Q(`Command token too long: ${s.length}`);s=a,n=i?.[s]!==void 0}return s==="true"?!0:s==="false"?!1:s==="null"?null:(s==="BI"&&(this.beginInlineImagePos=this.stream.pos),Je.get(s))}skipToNextLine(){let t=this.currentChar;for(;t>=0;){if(t===13){t=this.nextChar(),t===10&&this.nextChar();break}else if(t===10){this.nextChar();break}t=this.nextChar()}}};Pg=class Pg{static{d(this,"Linearization")}static create(t){function e(h,f,u=!1){let p=h.get(f);if(Number.isInteger(p)&&(u?p>=0:p>0))return p;throw Error(`The "${f}" parameter in the linearization dictionary is invalid.`)}d(e,"getInt");function s(h){let f=h.get("H"),u;if(Array.isArray(f)&&((u=f.length)===2||u===4)){for(let p=0;p<u;p++){let m=f[p];if(!(Number.isInteger(m)&&m>0))throw Error(`Hint (${p}) in the linearization dictionary is invalid.`)}return f}throw Error("Hint array in the linearization dictionary is invalid.")}d(s,"getHints");let i=new wn({lexer:new Ci(t),xref:null}),n=i.getObj(),a=i.getObj(),r=i.getObj(),o=i.getObj(),l,c;if(Number.isInteger(n)&&Number.isInteger(a)&&os(r,"obj")&&o instanceof B&&typeof(l=o.get("Linearized"))=="number"&&l>0){if((c=e(o,"L"))!==t.length)throw Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:c,hints:s(o),objectNumberFirst:e(o,"O"),endFirst:e(o,"E"),numPages:e(o,"N"),mainXRefEntriesOffset:e(o,"T"),pageFirst:o.has("P")?e(o,"P",!0):0}}};by=["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"];$h=class $h{static{d(this,"CMap")}constructor(t=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}addCodespaceRange(t,e,s){this.codespaceRanges[t-1].push(e,s),this.numCodespaceRanges++}mapCidRange(t,e,s){if(e-t>Of)throw Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;t<=e;)this._map[t++]=s++}mapBfRange(t,e,s){if(e-t>Of)throw Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");let i=s.length-1;for(;t<=e;){this._map[t++]=s;let n=s.charCodeAt(i)+1;if(n>255){s=s.substring(0,i-1)+String.fromCharCode(s.charCodeAt(i-1)+1)+"\x00";continue}s=s.substring(0,i)+String.fromCharCode(n)}}mapBfRangeToArray(t,e,s){if(e-t>Of)throw Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");let i=s.length,n=0;for(;t<=e&&n<i;)this._map[t]=s[n++],++t}mapOne(t,e){this._map[t]=e}lookup(t){return this._map[t]}contains(t){return this._map[t]!==void 0}forEach(t){let e=this._map,s=e.length;if(s<=65536)for(let i=0;i<s;i++)e[i]!==void 0&&t(i,e[i]);else for(let i in e)t(i,e[i])}charCodeOf(t){let e=this._map;if(e.length<=65536)return e.indexOf(t);for(let s in e)if(e[s]===t)return s|0;return-1}getMap(){return this._map}readCharCode(t,e,s){let i=0,n=this.codespaceRanges;for(let a=0,r=n.length;a<r;a++){i=(i<<8|t.charCodeAt(e+a))>>>0;let o=n[a];for(let l=0,c=o.length;l<c;){let h=o[l++],f=o[l++];if(i>=h&&i<=f){s.charcode=i,s.length=a+1;return}}}s.charcode=0,s.length=1}getCharCodeLength(t){let e=this.codespaceRanges;for(let s=0,i=e.length;s<i;s++){let n=e[s];for(let a=0,r=n.length;a<r;){let o=n[a++],l=n[a++];if(t>=o&&t<=l)return s+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}};xr=class xr extends $h{static{d(this,"IdentityCMap")}constructor(t,e){super(),this.vertical=t,this.addCodespaceRange(e,0,65535)}mapCidRange(t,e,s){Yt("should not call mapCidRange")}mapBfRange(t,e,s){Yt("should not call mapBfRange")}mapBfRangeToArray(t,e,s){Yt("should not call mapBfRangeToArray")}mapOne(t,e){Yt("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 e=0;e<=65535;e++)t(e,e)}charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}getMap(){let t=Array(65536);for(let e=0;e<=65535;e++)t[e]=e;return t}get length(){return 65536}get isIdentityCMap(){Yt("should not access .isIdentityCMap")}};d(Dn,"strToInt");d(ha,"expectString");d(G1,"expectInt");d(Dg,"parseBfChar");d(Rg,"parseBfRange");d(Hg,"parseCidChar");d(_g,"parseCidRange");d(Og,"parseCodespaceRange");d(Ng,"parseWMode");d(Lg,"parseCMapName");d($1,"parseCMap");d(V1,"extendCMap");d(ah,"createBuiltInCMap");ar=class ar{static{d(this,"CMapFactory")}static async create({encoding:t,fetchBuiltInCMap:e,useCMap:s}){if(t instanceof tt)return ah(t.name,e);if(t instanceof Lt){if(t.isAsync){let n=await t.asyncGetBytes();n&&(t=new je(n,0,n.length,t.dict))}let i=await $1(new $h,new Ci(t),e,s);return i.isIdentityCMap?ah(i.name,e):i}throw Error("Encoding required.")}};mp=class{static{d(this,"CSS_FONT_INFO")}static strings=["fontFamily","fontWeight","italicAngle"]},gp=class{static{d(this,"SYSTEM_FONT_INFO")}static strings=["css","loadedName","baseFontName","src"]},Ys=class{static{d(this,"FONT_INFO")}static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static numbers=["ascent","defaultWidth","descent"];static strings=["fallbackName","loadedName","mimetype","name"];static OFFSET_NUMBERS=Math.ceil(this.bools.length*2/8);static OFFSET_BBOX=this.OFFSET_NUMBERS+this.numbers.length*8;static OFFSET_FONT_MATRIX=this.OFFSET_BBOX+1+8;static OFFSET_DEFAULT_VMETRICS=this.OFFSET_FONT_MATRIX+1+48;static OFFSET_STRINGS=this.OFFSET_DEFAULT_VMETRICS+1+6},Un=class{static{d(this,"PATTERN_INFO")}static KIND=0;static HAS_BBOX=1;static HAS_BACKGROUND=2;static SHADING_TYPE=3;static N_COORD=4;static N_COLOR=8;static N_STOP=12;static N_FIGURES=16};d(zg,"compileCssFontInfo");d(Ug,"compileSystemFontInfo");d(Gg,"compileFontInfo");d($g,"compilePatternInfo");d(Vg,"compileFontPathInfo");Wg=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],wy=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],W1=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],En=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],K1=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""],Y1=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];d(Br,"getEncoding");an=Pe(function(t){t.A=65,t.AE=198,t.AEacute=508,t.AEmacron=482,t.AEsmall=63462,t.Aacute=193,t.Aacutesmall=63457,t.Abreve=258,t.Abreveacute=7854,t.Abrevecyrillic=1232,t.Abrevedotbelow=7862,t.Abrevegrave=7856,t.Abrevehookabove=7858,t.Abrevetilde=7860,t.Acaron=461,t.Acircle=9398,t.Acircumflex=194,t.Acircumflexacute=7844,t.Acircumflexdotbelow=7852,t.Acircumflexgrave=7846,t.Acircumflexhookabove=7848,t.Acircumflexsmall=63458,t.Acircumflextilde=7850,t.Acute=63177,t.Acutesmall=63412,t.Acyrillic=1040,t.Adblgrave=512,t.Adieresis=196,t.Adieresiscyrillic=1234,t.Adieresismacron=478,t.Adieresissmall=63460,t.Adotbelow=7840,t.Adotmacron=480,t.Agrave=192,t.Agravesmall=63456,t.Ahookabove=7842,t.Aiecyrillic=1236,t.Ainvertedbreve=514,t.Alpha=913,t.Alphatonos=902,t.Amacron=256,t.Amonospace=65313,t.Aogonek=260,t.Aring=197,t.Aringacute=506,t.Aringbelow=7680,t.Aringsmall=63461,t.Asmall=63329,t.Atilde=195,t.Atildesmall=63459,t.Aybarmenian=1329,t.B=66,t.Bcircle=9399,t.Bdotaccent=7682,t.Bdotbelow=7684,t.Becyrillic=1041,t.Benarmenian=1330,t.Beta=914,t.Bhook=385,t.Blinebelow=7686,t.Bmonospace=65314,t.Brevesmall=63220,t.Bsmall=63330,t.Btopbar=386,t.C=67,t.Caarmenian=1342,t.Cacute=262,t.Caron=63178,t.Caronsmall=63221,t.Ccaron=268,t.Ccedilla=199,t.Ccedillaacute=7688,t.Ccedillasmall=63463,t.Ccircle=9400,t.Ccircumflex=264,t.Cdot=266,t.Cdotaccent=266,t.Cedillasmall=63416,t.Chaarmenian=1353,t.Cheabkhasiancyrillic=1212,t.Checyrillic=1063,t.Chedescenderabkhasiancyrillic=1214,t.Chedescendercyrillic=1206,t.Chedieresiscyrillic=1268,t.Cheharmenian=1347,t.Chekhakassiancyrillic=1227,t.Cheverticalstrokecyrillic=1208,t.Chi=935,t.Chook=391,t.Circumflexsmall=63222,t.Cmonospace=65315,t.Coarmenian=1361,t.Csmall=63331,t.D=68,t.DZ=497,t.DZcaron=452,t.Daarmenian=1332,t.Dafrican=393,t.Dcaron=270,t.Dcedilla=7696,t.Dcircle=9401,t.Dcircumflexbelow=7698,t.Dcroat=272,t.Ddotaccent=7690,t.Ddotbelow=7692,t.Decyrillic=1044,t.Deicoptic=1006,t.Delta=8710,t.Deltagreek=916,t.Dhook=394,t.Dieresis=63179,t.DieresisAcute=63180,t.DieresisGrave=63181,t.Dieresissmall=63400,t.Digammagreek=988,t.Djecyrillic=1026,t.Dlinebelow=7694,t.Dmonospace=65316,t.Dotaccentsmall=63223,t.Dslash=272,t.Dsmall=63332,t.Dtopbar=395,t.Dz=498,t.Dzcaron=453,t.Dzeabkhasiancyrillic=1248,t.Dzecyrillic=1029,t.Dzhecyrillic=1039,t.E=69,t.Eacute=201,t.Eacutesmall=63465,t.Ebreve=276,t.Ecaron=282,t.Ecedillabreve=7708,t.Echarmenian=1333,t.Ecircle=9402,t.Ecircumflex=202,t.Ecircumflexacute=7870,t.Ecircumflexbelow=7704,t.Ecircumflexdotbelow=7878,t.Ecircumflexgrave=7872,t.Ecircumflexhookabove=7874,t.Ecircumflexsmall=63466,t.Ecircumflextilde=7876,t.Ecyrillic=1028,t.Edblgrave=516,t.Edieresis=203,t.Edieresissmall=63467,t.Edot=278,t.Edotaccent=278,t.Edotbelow=7864,t.Efcyrillic=1060,t.Egrave=200,t.Egravesmall=63464,t.Eharmenian=1335,t.Ehookabove=7866,t.Eightroman=8551,t.Einvertedbreve=518,t.Eiotifiedcyrillic=1124,t.Elcyrillic=1051,t.Elevenroman=8554,t.Emacron=274,t.Emacronacute=7702,t.Emacrongrave=7700,t.Emcyrillic=1052,t.Emonospace=65317,t.Encyrillic=1053,t.Endescendercyrillic=1186,t.Eng=330,t.Enghecyrillic=1188,t.Enhookcyrillic=1223,t.Eogonek=280,t.Eopen=400,t.Epsilon=917,t.Epsilontonos=904,t.Ercyrillic=1056,t.Ereversed=398,t.Ereversedcyrillic=1069,t.Escyrillic=1057,t.Esdescendercyrillic=1194,t.Esh=425,t.Esmall=63333,t.Eta=919,t.Etarmenian=1336,t.Etatonos=905,t.Eth=208,t.Ethsmall=63472,t.Etilde=7868,t.Etildebelow=7706,t.Euro=8364,t.Ezh=439,t.Ezhcaron=494,t.Ezhreversed=440,t.F=70,t.Fcircle=9403,t.Fdotaccent=7710,t.Feharmenian=1366,t.Feicoptic=996,t.Fhook=401,t.Fitacyrillic=1138,t.Fiveroman=8548,t.Fmonospace=65318,t.Fourroman=8547,t.Fsmall=63334,t.G=71,t.GBsquare=13191,t.Gacute=500,t.Gamma=915,t.Gammaafrican=404,t.Gangiacoptic=1002,t.Gbreve=286,t.Gcaron=486,t.Gcedilla=290,t.Gcircle=9404,t.Gcircumflex=284,t.Gcommaaccent=290,t.Gdot=288,t.Gdotaccent=288,t.Gecyrillic=1043,t.Ghadarmenian=1346,t.Ghemiddlehookcyrillic=1172,t.Ghestrokecyrillic=1170,t.Gheupturncyrillic=1168,t.Ghook=403,t.Gimarmenian=1331,t.Gjecyrillic=1027,t.Gmacron=7712,t.Gmonospace=65319,t.Grave=63182,t.Gravesmall=63328,t.Gsmall=63335,t.Gsmallhook=667,t.Gstroke=484,t.H=72,t.H18533=9679,t.H18543=9642,t.H18551=9643,t.H22073=9633,t.HPsquare=13259,t.Haabkhasiancyrillic=1192,t.Hadescendercyrillic=1202,t.Hardsigncyrillic=1066,t.Hbar=294,t.Hbrevebelow=7722,t.Hcedilla=7720,t.Hcircle=9405,t.Hcircumflex=292,t.Hdieresis=7718,t.Hdotaccent=7714,t.Hdotbelow=7716,t.Hmonospace=65320,t.Hoarmenian=1344,t.Horicoptic=1000,t.Hsmall=63336,t.Hungarumlaut=63183,t.Hungarumlautsmall=63224,t.Hzsquare=13200,t.I=73,t.IAcyrillic=1071,t.IJ=306,t.IUcyrillic=1070,t.Iacute=205,t.Iacutesmall=63469,t.Ibreve=300,t.Icaron=463,t.Icircle=9406,t.Icircumflex=206,t.Icircumflexsmall=63470,t.Icyrillic=1030,t.Idblgrave=520,t.Idieresis=207,t.Idieresisacute=7726,t.Idieresiscyrillic=1252,t.Idieresissmall=63471,t.Idot=304,t.Idotaccent=304,t.Idotbelow=7882,t.Iebrevecyrillic=1238,t.Iecyrillic=1045,t.Ifraktur=8465,t.Igrave=204,t.Igravesmall=63468,t.Ihookabove=7880,t.Iicyrillic=1048,t.Iinvertedbreve=522,t.Iishortcyrillic=1049,t.Imacron=298,t.Imacroncyrillic=1250,t.Imonospace=65321,t.Iniarmenian=1339,t.Iocyrillic=1025,t.Iogonek=302,t.Iota=921,t.Iotaafrican=406,t.Iotadieresis=938,t.Iotatonos=906,t.Ismall=63337,t.Istroke=407,t.Itilde=296,t.Itildebelow=7724,t.Izhitsacyrillic=1140,t.Izhitsadblgravecyrillic=1142,t.J=74,t.Jaarmenian=1345,t.Jcircle=9407,t.Jcircumflex=308,t.Jecyrillic=1032,t.Jheharmenian=1355,t.Jmonospace=65322,t.Jsmall=63338,t.K=75,t.KBsquare=13189,t.KKsquare=13261,t.Kabashkircyrillic=1184,t.Kacute=7728,t.Kacyrillic=1050,t.Kadescendercyrillic=1178,t.Kahookcyrillic=1219,t.Kappa=922,t.Kastrokecyrillic=1182,t.Kaverticalstrokecyrillic=1180,t.Kcaron=488,t.Kcedilla=310,t.Kcircle=9408,t.Kcommaaccent=310,t.Kdotbelow=7730,t.Keharmenian=1364,t.Kenarmenian=1343,t.Khacyrillic=1061,t.Kheicoptic=998,t.Khook=408,t.Kjecyrillic=1036,t.Klinebelow=7732,t.Kmonospace=65323,t.Koppacyrillic=1152,t.Koppagreek=990,t.Ksicyrillic=1134,t.Ksmall=63339,t.L=76,t.LJ=455,t.LL=63167,t.Lacute=313,t.Lambda=923,t.Lcaron=317,t.Lcedilla=315,t.Lcircle=9409,t.Lcircumflexbelow=7740,t.Lcommaaccent=315,t.Ldot=319,t.Ldotaccent=319,t.Ldotbelow=7734,t.Ldotbelowmacron=7736,t.Liwnarmenian=1340,t.Lj=456,t.Ljecyrillic=1033,t.Llinebelow=7738,t.Lmonospace=65324,t.Lslash=321,t.Lslashsmall=63225,t.Lsmall=63340,t.M=77,t.MBsquare=13190,t.Macron=63184,t.Macronsmall=63407,t.Macute=7742,t.Mcircle=9410,t.Mdotaccent=7744,t.Mdotbelow=7746,t.Menarmenian=1348,t.Mmonospace=65325,t.Msmall=63341,t.Mturned=412,t.Mu=924,t.N=78,t.NJ=458,t.Nacute=323,t.Ncaron=327,t.Ncedilla=325,t.Ncircle=9411,t.Ncircumflexbelow=7754,t.Ncommaaccent=325,t.Ndotaccent=7748,t.Ndotbelow=7750,t.Nhookleft=413,t.Nineroman=8552,t.Nj=459,t.Njecyrillic=1034,t.Nlinebelow=7752,t.Nmonospace=65326,t.Nowarmenian=1350,t.Nsmall=63342,t.Ntilde=209,t.Ntildesmall=63473,t.Nu=925,t.O=79,t.OE=338,t.OEsmall=63226,t.Oacute=211,t.Oacutesmall=63475,t.Obarredcyrillic=1256,t.Obarreddieresiscyrillic=1258,t.Obreve=334,t.Ocaron=465,t.Ocenteredtilde=415,t.Ocircle=9412,t.Ocircumflex=212,t.Ocircumflexacute=7888,t.Ocircumflexdotbelow=7896,t.Ocircumflexgrave=7890,t.Ocircumflexhookabove=7892,t.Ocircumflexsmall=63476,t.Ocircumflextilde=7894,t.Ocyrillic=1054,t.Odblacute=336,t.Odblgrave=524,t.Odieresis=214,t.Odieresiscyrillic=1254,t.Odieresissmall=63478,t.Odotbelow=7884,t.Ogoneksmall=63227,t.Ograve=210,t.Ogravesmall=63474,t.Oharmenian=1365,t.Ohm=8486,t.Ohookabove=7886,t.Ohorn=416,t.Ohornacute=7898,t.Ohorndotbelow=7906,t.Ohorngrave=7900,t.Ohornhookabove=7902,t.Ohorntilde=7904,t.Ohungarumlaut=336,t.Oi=418,t.Oinvertedbreve=526,t.Omacron=332,t.Omacronacute=7762,t.Omacrongrave=7760,t.Omega=8486,t.Omegacyrillic=1120,t.Omegagreek=937,t.Omegaroundcyrillic=1146,t.Omegatitlocyrillic=1148,t.Omegatonos=911,t.Omicron=927,t.Omicrontonos=908,t.Omonospace=65327,t.Oneroman=8544,t.Oogonek=490,t.Oogonekmacron=492,t.Oopen=390,t.Oslash=216,t.Oslashacute=510,t.Oslashsmall=63480,t.Osmall=63343,t.Ostrokeacute=510,t.Otcyrillic=1150,t.Otilde=213,t.Otildeacute=7756,t.Otildedieresis=7758,t.Otildesmall=63477,t.P=80,t.Pacute=7764,t.Pcircle=9413,t.Pdotaccent=7766,t.Pecyrillic=1055,t.Peharmenian=1354,t.Pemiddlehookcyrillic=1190,t.Phi=934,t.Phook=420,t.Pi=928,t.Piwrarmenian=1363,t.Pmonospace=65328,t.Psi=936,t.Psicyrillic=1136,t.Psmall=63344,t.Q=81,t.Qcircle=9414,t.Qmonospace=65329,t.Qsmall=63345,t.R=82,t.Raarmenian=1356,t.Racute=340,t.Rcaron=344,t.Rcedilla=342,t.Rcircle=9415,t.Rcommaaccent=342,t.Rdblgrave=528,t.Rdotaccent=7768,t.Rdotbelow=7770,t.Rdotbelowmacron=7772,t.Reharmenian=1360,t.Rfraktur=8476,t.Rho=929,t.Ringsmall=63228,t.Rinvertedbreve=530,t.Rlinebelow=7774,t.Rmonospace=65330,t.Rsmall=63346,t.Rsmallinverted=641,t.Rsmallinvertedsuperior=694,t.S=83,t.SF010000=9484,t.SF020000=9492,t.SF030000=9488,t.SF040000=9496,t.SF050000=9532,t.SF060000=9516,t.SF070000=9524,t.SF080000=9500,t.SF090000=9508,t.SF100000=9472,t.SF110000=9474,t.SF190000=9569,t.SF200000=9570,t.SF210000=9558,t.SF220000=9557,t.SF230000=9571,t.SF240000=9553,t.SF250000=9559,t.SF260000=9565,t.SF270000=9564,t.SF280000=9563,t.SF360000=9566,t.SF370000=9567,t.SF380000=9562,t.SF390000=9556,t.SF400000=9577,t.SF410000=9574,t.SF420000=9568,t.SF430000=9552,t.SF440000=9580,t.SF450000=9575,t.SF460000=9576,t.SF470000=9572,t.SF480000=9573,t.SF490000=9561,t.SF500000=9560,t.SF510000=9554,t.SF520000=9555,t.SF530000=9579,t.SF540000=9578,t.Sacute=346,t.Sacutedotaccent=7780,t.Sampigreek=992,t.Scaron=352,t.Scarondotaccent=7782,t.Scaronsmall=63229,t.Scedilla=350,t.Schwa=399,t.Schwacyrillic=1240,t.Schwadieresiscyrillic=1242,t.Scircle=9416,t.Scircumflex=348,t.Scommaaccent=536,t.Sdotaccent=7776,t.Sdotbelow=7778,t.Sdotbelowdotaccent=7784,t.Seharmenian=1357,t.Sevenroman=8550,t.Shaarmenian=1351,t.Shacyrillic=1064,t.Shchacyrillic=1065,t.Sheicoptic=994,t.Shhacyrillic=1210,t.Shimacoptic=1004,t.Sigma=931,t.Sixroman=8549,t.Smonospace=65331,t.Softsigncyrillic=1068,t.Ssmall=63347,t.Stigmagreek=986,t.T=84,t.Tau=932,t.Tbar=358,t.Tcaron=356,t.Tcedilla=354,t.Tcircle=9417,t.Tcircumflexbelow=7792,t.Tcommaaccent=354,t.Tdotaccent=7786,t.Tdotbelow=7788,t.Tecyrillic=1058,t.Tedescendercyrillic=1196,t.Tenroman=8553,t.Tetsecyrillic=1204,t.Theta=920,t.Thook=428,t.Thorn=222,t.Thornsmall=63486,t.Threeroman=8546,t.Tildesmall=63230,t.Tiwnarmenian=1359,t.Tlinebelow=7790,t.Tmonospace=65332,t.Toarmenian=1337,t.Tonefive=444,t.Tonesix=388,t.Tonetwo=423,t.Tretroflexhook=430,t.Tsecyrillic=1062,t.Tshecyrillic=1035,t.Tsmall=63348,t.Twelveroman=8555,t.Tworoman=8545,t.U=85,t.Uacute=218,t.Uacutesmall=63482,t.Ubreve=364,t.Ucaron=467,t.Ucircle=9418,t.Ucircumflex=219,t.Ucircumflexbelow=7798,t.Ucircumflexsmall=63483,t.Ucyrillic=1059,t.Udblacute=368,t.Udblgrave=532,t.Udieresis=220,t.Udieresisacute=471,t.Udieresisbelow=7794,t.Udieresiscaron=473,t.Udieresiscyrillic=1264,t.Udieresisgrave=475,t.Udieresismacron=469,t.Udieresissmall=63484,t.Udotbelow=7908,t.Ugrave=217,t.Ugravesmall=63481,t.Uhookabove=7910,t.Uhorn=431,t.Uhornacute=7912,t.Uhorndotbelow=7920,t.Uhorngrave=7914,t.Uhornhookabove=7916,t.Uhorntilde=7918,t.Uhungarumlaut=368,t.Uhungarumlautcyrillic=1266,t.Uinvertedbreve=534,t.Ukcyrillic=1144,t.Umacron=362,t.Umacroncyrillic=1262,t.Umacrondieresis=7802,t.Umonospace=65333,t.Uogonek=370,t.Upsilon=933,t.Upsilon1=978,t.Upsilonacutehooksymbolgreek=979,t.Upsilonafrican=433,t.Upsilondieresis=939,t.Upsilondieresishooksymbolgreek=980,t.Upsilonhooksymbol=978,t.Upsilontonos=910,t.Uring=366,t.Ushortcyrillic=1038,t.Usmall=63349,t.Ustraightcyrillic=1198,t.Ustraightstrokecyrillic=1200,t.Utilde=360,t.Utildeacute=7800,t.Utildebelow=7796,t.V=86,t.Vcircle=9419,t.Vdotbelow=7806,t.Vecyrillic=1042,t.Vewarmenian=1358,t.Vhook=434,t.Vmonospace=65334,t.Voarmenian=1352,t.Vsmall=63350,t.Vtilde=7804,t.W=87,t.Wacute=7810,t.Wcircle=9420,t.Wcircumflex=372,t.Wdieresis=7812,t.Wdotaccent=7814,t.Wdotbelow=7816,t.Wgrave=7808,t.Wmonospace=65335,t.Wsmall=63351,t.X=88,t.Xcircle=9421,t.Xdieresis=7820,t.Xdotaccent=7818,t.Xeharmenian=1341,t.Xi=926,t.Xmonospace=65336,t.Xsmall=63352,t.Y=89,t.Yacute=221,t.Yacutesmall=63485,t.Yatcyrillic=1122,t.Ycircle=9422,t.Ycircumflex=374,t.Ydieresis=376,t.Ydieresissmall=63487,t.Ydotaccent=7822,t.Ydotbelow=7924,t.Yericyrillic=1067,t.Yerudieresiscyrillic=1272,t.Ygrave=7922,t.Yhook=435,t.Yhookabove=7926,t.Yiarmenian=1349,t.Yicyrillic=1031,t.Yiwnarmenian=1362,t.Ymonospace=65337,t.Ysmall=63353,t.Ytilde=7928,t.Yusbigcyrillic=1130,t.Yusbigiotifiedcyrillic=1132,t.Yuslittlecyrillic=1126,t.Yuslittleiotifiedcyrillic=1128,t.Z=90,t.Zaarmenian=1334,t.Zacute=377,t.Zcaron=381,t.Zcaronsmall=63231,t.Zcircle=9423,t.Zcircumflex=7824,t.Zdot=379,t.Zdotaccent=379,t.Zdotbelow=7826,t.Zecyrillic=1047,t.Zedescendercyrillic=1176,t.Zedieresiscyrillic=1246,t.Zeta=918,t.Zhearmenian=1338,t.Zhebrevecyrillic=1217,t.Zhecyrillic=1046,t.Zhedescendercyrillic=1174,t.Zhedieresiscyrillic=1244,t.Zlinebelow=7828,t.Zmonospace=65338,t.Zsmall=63354,t.Zstroke=437,t.a=97,t.aabengali=2438,t.aacute=225,t.aadeva=2310,t.aagujarati=2694,t.aagurmukhi=2566,t.aamatragurmukhi=2622,t.aarusquare=13059,t.aavowelsignbengali=2494,t.aavowelsigndeva=2366,t.aavowelsigngujarati=2750,t.abbreviationmarkarmenian=1375,t.abbreviationsigndeva=2416,t.abengali=2437,t.abopomofo=12570,t.abreve=259,t.abreveacute=7855,t.abrevecyrillic=1233,t.abrevedotbelow=7863,t.abrevegrave=7857,t.abrevehookabove=7859,t.abrevetilde=7861,t.acaron=462,t.acircle=9424,t.acircumflex=226,t.acircumflexacute=7845,t.acircumflexdotbelow=7853,t.acircumflexgrave=7847,t.acircumflexhookabove=7849,t.acircumflextilde=7851,t.acute=180,t.acutebelowcmb=791,t.acutecmb=769,t.acutecomb=769,t.acutedeva=2388,t.acutelowmod=719,t.acutetonecmb=833,t.acyrillic=1072,t.adblgrave=513,t.addakgurmukhi=2673,t.adeva=2309,t.adieresis=228,t.adieresiscyrillic=1235,t.adieresismacron=479,t.adotbelow=7841,t.adotmacron=481,t.ae=230,t.aeacute=509,t.aekorean=12624,t.aemacron=483,t.afii00208=8213,t.afii08941=8356,t.afii10017=1040,t.afii10018=1041,t.afii10019=1042,t.afii10020=1043,t.afii10021=1044,t.afii10022=1045,t.afii10023=1025,t.afii10024=1046,t.afii10025=1047,t.afii10026=1048,t.afii10027=1049,t.afii10028=1050,t.afii10029=1051,t.afii10030=1052,t.afii10031=1053,t.afii10032=1054,t.afii10033=1055,t.afii10034=1056,t.afii10035=1057,t.afii10036=1058,t.afii10037=1059,t.afii10038=1060,t.afii10039=1061,t.afii10040=1062,t.afii10041=1063,t.afii10042=1064,t.afii10043=1065,t.afii10044=1066,t.afii10045=1067,t.afii10046=1068,t.afii10047=1069,t.afii10048=1070,t.afii10049=1071,t.afii10050=1168,t.afii10051=1026,t.afii10052=1027,t.afii10053=1028,t.afii10054=1029,t.afii10055=1030,t.afii10056=1031,t.afii10057=1032,t.afii10058=1033,t.afii10059=1034,t.afii10060=1035,t.afii10061=1036,t.afii10062=1038,t.afii10063=63172,t.afii10064=63173,t.afii10065=1072,t.afii10066=1073,t.afii10067=1074,t.afii10068=1075,t.afii10069=1076,t.afii10070=1077,t.afii10071=1105,t.afii10072=1078,t.afii10073=1079,t.afii10074=1080,t.afii10075=1081,t.afii10076=1082,t.afii10077=1083,t.afii10078=1084,t.afii10079=1085,t.afii10080=1086,t.afii10081=1087,t.afii10082=1088,t.afii10083=1089,t.afii10084=1090,t.afii10085=1091,t.afii10086=1092,t.afii10087=1093,t.afii10088=1094,t.afii10089=1095,t.afii10090=1096,t.afii10091=1097,t.afii10092=1098,t.afii10093=1099,t.afii10094=1100,t.afii10095=1101,t.afii10096=1102,t.afii10097=1103,t.afii10098=1169,t.afii10099=1106,t.afii10100=1107,t.afii10101=1108,t.afii10102=1109,t.afii10103=1110,t.afii10104=1111,t.afii10105=1112,t.afii10106=1113,t.afii10107=1114,t.afii10108=1115,t.afii10109=1116,t.afii10110=1118,t.afii10145=1039,t.afii10146=1122,t.afii10147=1138,t.afii10148=1140,t.afii10192=63174,t.afii10193=1119,t.afii10194=1123,t.afii10195=1139,t.afii10196=1141,t.afii10831=63175,t.afii10832=63176,t.afii10846=1241,t.afii299=8206,t.afii300=8207,t.afii301=8205,t.afii57381=1642,t.afii57388=1548,t.afii57392=1632,t.afii57393=1633,t.afii57394=1634,t.afii57395=1635,t.afii57396=1636,t.afii57397=1637,t.afii57398=1638,t.afii57399=1639,t.afii57400=1640,t.afii57401=1641,t.afii57403=1563,t.afii57407=1567,t.afii57409=1569,t.afii57410=1570,t.afii57411=1571,t.afii57412=1572,t.afii57413=1573,t.afii57414=1574,t.afii57415=1575,t.afii57416=1576,t.afii57417=1577,t.afii57418=1578,t.afii57419=1579,t.afii57420=1580,t.afii57421=1581,t.afii57422=1582,t.afii57423=1583,t.afii57424=1584,t.afii57425=1585,t.afii57426=1586,t.afii57427=1587,t.afii57428=1588,t.afii57429=1589,t.afii57430=1590,t.afii57431=1591,t.afii57432=1592,t.afii57433=1593,t.afii57434=1594,t.afii57440=1600,t.afii57441=1601,t.afii57442=1602,t.afii57443=1603,t.afii57444=1604,t.afii57445=1605,t.afii57446=1606,t.afii57448=1608,t.afii57449=1609,t.afii57450=1610,t.afii57451=1611,t.afii57452=1612,t.afii57453=1613,t.afii57454=1614,t.afii57455=1615,t.afii57456=1616,t.afii57457=1617,t.afii57458=1618,t.afii57470=1607,t.afii57505=1700,t.afii57506=1662,t.afii57507=1670,t.afii57508=1688,t.afii57509=1711,t.afii57511=1657,t.afii57512=1672,t.afii57513=1681,t.afii57514=1722,t.afii57519=1746,t.afii57534=1749,t.afii57636=8362,t.afii57645=1470,t.afii57658=1475,t.afii57664=1488,t.afii57665=1489,t.afii57666=1490,t.afii57667=1491,t.afii57668=1492,t.afii57669=1493,t.afii57670=1494,t.afii57671=1495,t.afii57672=1496,t.afii57673=1497,t.afii57674=1498,t.afii57675=1499,t.afii57676=1500,t.afii57677=1501,t.afii57678=1502,t.afii57679=1503,t.afii57680=1504,t.afii57681=1505,t.afii57682=1506,t.afii57683=1507,t.afii57684=1508,t.afii57685=1509,t.afii57686=1510,t.afii57687=1511,t.afii57688=1512,t.afii57689=1513,t.afii57690=1514,t.afii57694=64298,t.afii57695=64299,t.afii57700=64331,t.afii57705=64287,t.afii57716=1520,t.afii57717=1521,t.afii57718=1522,t.afii57723=64309,t.afii57793=1460,t.afii57794=1461,t.afii57795=1462,t.afii57796=1467,t.afii57797=1464,t.afii57798=1463,t.afii57799=1456,t.afii57800=1458,t.afii57801=1457,t.afii57802=1459,t.afii57803=1474,t.afii57804=1473,t.afii57806=1465,t.afii57807=1468,t.afii57839=1469,t.afii57841=1471,t.afii57842=1472,t.afii57929=700,t.afii61248=8453,t.afii61289=8467,t.afii61352=8470,t.afii61573=8236,t.afii61574=8237,t.afii61575=8238,t.afii61664=8204,t.afii63167=1645,t.afii64937=701,t.agrave=224,t.agujarati=2693,t.agurmukhi=2565,t.ahiragana=12354,t.ahookabove=7843,t.aibengali=2448,t.aibopomofo=12574,t.aideva=2320,t.aiecyrillic=1237,t.aigujarati=2704,t.aigurmukhi=2576,t.aimatragurmukhi=2632,t.ainarabic=1593,t.ainfinalarabic=65226,t.aininitialarabic=65227,t.ainmedialarabic=65228,t.ainvertedbreve=515,t.aivowelsignbengali=2504,t.aivowelsigndeva=2376,t.aivowelsigngujarati=2760,t.akatakana=12450,t.akatakanahalfwidth=65393,t.akorean=12623,t.alef=1488,t.alefarabic=1575,t.alefdageshhebrew=64304,t.aleffinalarabic=65166,t.alefhamzaabovearabic=1571,t.alefhamzaabovefinalarabic=65156,t.alefhamzabelowarabic=1573,t.alefhamzabelowfinalarabic=65160,t.alefhebrew=1488,t.aleflamedhebrew=64335,t.alefmaddaabovearabic=1570,t.alefmaddaabovefinalarabic=65154,t.alefmaksuraarabic=1609,t.alefmaksurafinalarabic=65264,t.alefmaksurainitialarabic=65267,t.alefmaksuramedialarabic=65268,t.alefpatahhebrew=64302,t.alefqamatshebrew=64303,t.aleph=8501,t.allequal=8780,t.alpha=945,t.alphatonos=940,t.amacron=257,t.amonospace=65345,t.ampersand=38,t.ampersandmonospace=65286,t.ampersandsmall=63270,t.amsquare=13250,t.anbopomofo=12578,t.angbopomofo=12580,t.angbracketleft=12296,t.angbracketright=12297,t.angkhankhuthai=3674,t.angle=8736,t.anglebracketleft=12296,t.anglebracketleftvertical=65087,t.anglebracketright=12297,t.anglebracketrightvertical=65088,t.angleleft=9001,t.angleright=9002,t.angstrom=8491,t.anoteleia=903,t.anudattadeva=2386,t.anusvarabengali=2434,t.anusvaradeva=2306,t.anusvaragujarati=2690,t.aogonek=261,t.apaatosquare=13056,t.aparen=9372,t.apostrophearmenian=1370,t.apostrophemod=700,t.apple=63743,t.approaches=8784,t.approxequal=8776,t.approxequalorimage=8786,t.approximatelyequal=8773,t.araeaekorean=12686,t.araeakorean=12685,t.arc=8978,t.arighthalfring=7834,t.aring=229,t.aringacute=507,t.aringbelow=7681,t.arrowboth=8596,t.arrowdashdown=8675,t.arrowdashleft=8672,t.arrowdashright=8674,t.arrowdashup=8673,t.arrowdblboth=8660,t.arrowdbldown=8659,t.arrowdblleft=8656,t.arrowdblright=8658,t.arrowdblup=8657,t.arrowdown=8595,t.arrowdownleft=8601,t.arrowdownright=8600,t.arrowdownwhite=8681,t.arrowheaddownmod=709,t.arrowheadleftmod=706,t.arrowheadrightmod=707,t.arrowheadupmod=708,t.arrowhorizex=63719,t.arrowleft=8592,t.arrowleftdbl=8656,t.arrowleftdblstroke=8653,t.arrowleftoverright=8646,t.arrowleftwhite=8678,t.arrowright=8594,t.arrowrightdblstroke=8655,t.arrowrightheavy=10142,t.arrowrightoverleft=8644,t.arrowrightwhite=8680,t.arrowtableft=8676,t.arrowtabright=8677,t.arrowup=8593,t.arrowupdn=8597,t.arrowupdnbse=8616,t.arrowupdownbase=8616,t.arrowupleft=8598,t.arrowupleftofdown=8645,t.arrowupright=8599,t.arrowupwhite=8679,t.arrowvertex=63718,t.asciicircum=94,t.asciicircummonospace=65342,t.asciitilde=126,t.asciitildemonospace=65374,t.ascript=593,t.ascriptturned=594,t.asmallhiragana=12353,t.asmallkatakana=12449,t.asmallkatakanahalfwidth=65383,t.asterisk=42,t.asteriskaltonearabic=1645,t.asteriskarabic=1645,t.asteriskmath=8727,t.asteriskmonospace=65290,t.asterisksmall=65121,t.asterism=8258,t.asuperior=63209,t.asymptoticallyequal=8771,t.at=64,t.atilde=227,t.atmonospace=65312,t.atsmall=65131,t.aturned=592,t.aubengali=2452,t.aubopomofo=12576,t.audeva=2324,t.augujarati=2708,t.augurmukhi=2580,t.aulengthmarkbengali=2519,t.aumatragurmukhi=2636,t.auvowelsignbengali=2508,t.auvowelsigndeva=2380,t.auvowelsigngujarati=2764,t.avagrahadeva=2365,t.aybarmenian=1377,t.ayin=1506,t.ayinaltonehebrew=64288,t.ayinhebrew=1506,t.b=98,t.babengali=2476,t.backslash=92,t.backslashmonospace=65340,t.badeva=2348,t.bagujarati=2732,t.bagurmukhi=2604,t.bahiragana=12400,t.bahtthai=3647,t.bakatakana=12496,t.bar=124,t.barmonospace=65372,t.bbopomofo=12549,t.bcircle=9425,t.bdotaccent=7683,t.bdotbelow=7685,t.beamedsixteenthnotes=9836,t.because=8757,t.becyrillic=1073,t.beharabic=1576,t.behfinalarabic=65168,t.behinitialarabic=65169,t.behiragana=12409,t.behmedialarabic=65170,t.behmeeminitialarabic=64671,t.behmeemisolatedarabic=64520,t.behnoonfinalarabic=64621,t.bekatakana=12505,t.benarmenian=1378,t.bet=1489,t.beta=946,t.betasymbolgreek=976,t.betdagesh=64305,t.betdageshhebrew=64305,t.bethebrew=1489,t.betrafehebrew=64332,t.bhabengali=2477,t.bhadeva=2349,t.bhagujarati=2733,t.bhagurmukhi=2605,t.bhook=595,t.bihiragana=12403,t.bikatakana=12499,t.bilabialclick=664,t.bindigurmukhi=2562,t.birusquare=13105,t.blackcircle=9679,t.blackdiamond=9670,t.blackdownpointingtriangle=9660,t.blackleftpointingpointer=9668,t.blackleftpointingtriangle=9664,t.blacklenticularbracketleft=12304,t.blacklenticularbracketleftvertical=65083,t.blacklenticularbracketright=12305,t.blacklenticularbracketrightvertical=65084,t.blacklowerlefttriangle=9699,t.blacklowerrighttriangle=9698,t.blackrectangle=9644,t.blackrightpointingpointer=9658,t.blackrightpointingtriangle=9654,t.blacksmallsquare=9642,t.blacksmilingface=9787,t.blacksquare=9632,t.blackstar=9733,t.blackupperlefttriangle=9700,t.blackupperrighttriangle=9701,t.blackuppointingsmalltriangle=9652,t.blackuppointingtriangle=9650,t.blank=9251,t.blinebelow=7687,t.block=9608,t.bmonospace=65346,t.bobaimaithai=3610,t.bohiragana=12412,t.bokatakana=12508,t.bparen=9373,t.bqsquare=13251,t.braceex=63732,t.braceleft=123,t.braceleftbt=63731,t.braceleftmid=63730,t.braceleftmonospace=65371,t.braceleftsmall=65115,t.bracelefttp=63729,t.braceleftvertical=65079,t.braceright=125,t.bracerightbt=63742,t.bracerightmid=63741,t.bracerightmonospace=65373,t.bracerightsmall=65116,t.bracerighttp=63740,t.bracerightvertical=65080,t.bracketleft=91,t.bracketleftbt=63728,t.bracketleftex=63727,t.bracketleftmonospace=65339,t.bracketlefttp=63726,t.bracketright=93,t.bracketrightbt=63739,t.bracketrightex=63738,t.bracketrightmonospace=65341,t.bracketrighttp=63737,t.breve=728,t.brevebelowcmb=814,t.brevecmb=774,t.breveinvertedbelowcmb=815,t.breveinvertedcmb=785,t.breveinverteddoublecmb=865,t.bridgebelowcmb=810,t.bridgeinvertedbelowcmb=826,t.brokenbar=166,t.bstroke=384,t.bsuperior=63210,t.btopbar=387,t.buhiragana=12406,t.bukatakana=12502,t.bullet=8226,t.bulletinverse=9688,t.bulletoperator=8729,t.bullseye=9678,t.c=99,t.caarmenian=1390,t.cabengali=2458,t.cacute=263,t.cadeva=2330,t.cagujarati=2714,t.cagurmukhi=2586,t.calsquare=13192,t.candrabindubengali=2433,t.candrabinducmb=784,t.candrabindudeva=2305,t.candrabindugujarati=2689,t.capslock=8682,t.careof=8453,t.caron=711,t.caronbelowcmb=812,t.caroncmb=780,t.carriagereturn=8629,t.cbopomofo=12568,t.ccaron=269,t.ccedilla=231,t.ccedillaacute=7689,t.ccircle=9426,t.ccircumflex=265,t.ccurl=597,t.cdot=267,t.cdotaccent=267,t.cdsquare=13253,t.cedilla=184,t.cedillacmb=807,t.cent=162,t.centigrade=8451,t.centinferior=63199,t.centmonospace=65504,t.centoldstyle=63394,t.centsuperior=63200,t.chaarmenian=1401,t.chabengali=2459,t.chadeva=2331,t.chagujarati=2715,t.chagurmukhi=2587,t.chbopomofo=12564,t.cheabkhasiancyrillic=1213,t.checkmark=10003,t.checyrillic=1095,t.chedescenderabkhasiancyrillic=1215,t.chedescendercyrillic=1207,t.chedieresiscyrillic=1269,t.cheharmenian=1395,t.chekhakassiancyrillic=1228,t.cheverticalstrokecyrillic=1209,t.chi=967,t.chieuchacirclekorean=12919,t.chieuchaparenkorean=12823,t.chieuchcirclekorean=12905,t.chieuchkorean=12618,t.chieuchparenkorean=12809,t.chochangthai=3594,t.chochanthai=3592,t.chochingthai=3593,t.chochoethai=3596,t.chook=392,t.cieucacirclekorean=12918,t.cieucaparenkorean=12822,t.cieuccirclekorean=12904,t.cieuckorean=12616,t.cieucparenkorean=12808,t.cieucuparenkorean=12828,t.circle=9675,t.circlecopyrt=169,t.circlemultiply=8855,t.circleot=8857,t.circleplus=8853,t.circlepostalmark=12342,t.circlewithlefthalfblack=9680,t.circlewithrighthalfblack=9681,t.circumflex=710,t.circumflexbelowcmb=813,t.circumflexcmb=770,t.clear=8999,t.clickalveolar=450,t.clickdental=448,t.clicklateral=449,t.clickretroflex=451,t.club=9827,t.clubsuitblack=9827,t.clubsuitwhite=9831,t.cmcubedsquare=13220,t.cmonospace=65347,t.cmsquaredsquare=13216,t.coarmenian=1409,t.colon=58,t.colonmonetary=8353,t.colonmonospace=65306,t.colonsign=8353,t.colonsmall=65109,t.colontriangularhalfmod=721,t.colontriangularmod=720,t.comma=44,t.commaabovecmb=787,t.commaaboverightcmb=789,t.commaaccent=63171,t.commaarabic=1548,t.commaarmenian=1373,t.commainferior=63201,t.commamonospace=65292,t.commareversedabovecmb=788,t.commareversedmod=701,t.commasmall=65104,t.commasuperior=63202,t.commaturnedabovecmb=786,t.commaturnedmod=699,t.compass=9788,t.congruent=8773,t.contourintegral=8750,t.control=8963,t.controlACK=6,t.controlBEL=7,t.controlBS=8,t.controlCAN=24,t.controlCR=13,t.controlDC1=17,t.controlDC2=18,t.controlDC3=19,t.controlDC4=20,t.controlDEL=127,t.controlDLE=16,t.controlEM=25,t.controlENQ=5,t.controlEOT=4,t.controlESC=27,t.controlETB=23,t.controlETX=3,t.controlFF=12,t.controlFS=28,t.controlGS=29,t.controlHT=9,t.controlLF=10,t.controlNAK=21,t.controlNULL=0,t.controlRS=30,t.controlSI=15,t.controlSO=14,t.controlSOT=2,t.controlSTX=1,t.controlSUB=26,t.controlSYN=22,t.controlUS=31,t.controlVT=11,t.copyright=169,t.copyrightsans=63721,t.copyrightserif=63193,t.cornerbracketleft=12300,t.cornerbracketlefthalfwidth=65378,t.cornerbracketleftvertical=65089,t.cornerbracketright=12301,t.cornerbracketrighthalfwidth=65379,t.cornerbracketrightvertical=65090,t.corporationsquare=13183,t.cosquare=13255,t.coverkgsquare=13254,t.cparen=9374,t.cruzeiro=8354,t.cstretched=663,t.curlyand=8911,t.curlyor=8910,t.currency=164,t.cyrBreve=63185,t.cyrFlex=63186,t.cyrbreve=63188,t.cyrflex=63189,t.d=100,t.daarmenian=1380,t.dabengali=2470,t.dadarabic=1590,t.dadeva=2342,t.dadfinalarabic=65214,t.dadinitialarabic=65215,t.dadmedialarabic=65216,t.dagesh=1468,t.dageshhebrew=1468,t.dagger=8224,t.daggerdbl=8225,t.dagujarati=2726,t.dagurmukhi=2598,t.dahiragana=12384,t.dakatakana=12480,t.dalarabic=1583,t.dalet=1491,t.daletdagesh=64307,t.daletdageshhebrew=64307,t.dalethebrew=1491,t.dalfinalarabic=65194,t.dammaarabic=1615,t.dammalowarabic=1615,t.dammatanaltonearabic=1612,t.dammatanarabic=1612,t.danda=2404,t.dargahebrew=1447,t.dargalefthebrew=1447,t.dasiapneumatacyrilliccmb=1157,t.dblGrave=63187,t.dblanglebracketleft=12298,t.dblanglebracketleftvertical=65085,t.dblanglebracketright=12299,t.dblanglebracketrightvertical=65086,t.dblarchinvertedbelowcmb=811,t.dblarrowleft=8660,t.dblarrowright=8658,t.dbldanda=2405,t.dblgrave=63190,t.dblgravecmb=783,t.dblintegral=8748,t.dbllowline=8215,t.dbllowlinecmb=819,t.dbloverlinecmb=831,t.dblprimemod=698,t.dblverticalbar=8214,t.dblverticallineabovecmb=782,t.dbopomofo=12553,t.dbsquare=13256,t.dcaron=271,t.dcedilla=7697,t.dcircle=9427,t.dcircumflexbelow=7699,t.dcroat=273,t.ddabengali=2465,t.ddadeva=2337,t.ddagujarati=2721,t.ddagurmukhi=2593,t.ddalarabic=1672,t.ddalfinalarabic=64393,t.dddhadeva=2396,t.ddhabengali=2466,t.ddhadeva=2338,t.ddhagujarati=2722,t.ddhagurmukhi=2594,t.ddotaccent=7691,t.ddotbelow=7693,t.decimalseparatorarabic=1643,t.decimalseparatorpersian=1643,t.decyrillic=1076,t.degree=176,t.dehihebrew=1453,t.dehiragana=12391,t.deicoptic=1007,t.dekatakana=12487,t.deleteleft=9003,t.deleteright=8998,t.delta=948,t.deltaturned=397,t.denominatorminusonenumeratorbengali=2552,t.dezh=676,t.dhabengali=2471,t.dhadeva=2343,t.dhagujarati=2727,t.dhagurmukhi=2599,t.dhook=599,t.dialytikatonos=901,t.dialytikatonoscmb=836,t.diamond=9830,t.diamondsuitwhite=9826,t.dieresis=168,t.dieresisacute=63191,t.dieresisbelowcmb=804,t.dieresiscmb=776,t.dieresisgrave=63192,t.dieresistonos=901,t.dihiragana=12386,t.dikatakana=12482,t.dittomark=12291,t.divide=247,t.divides=8739,t.divisionslash=8725,t.djecyrillic=1106,t.dkshade=9619,t.dlinebelow=7695,t.dlsquare=13207,t.dmacron=273,t.dmonospace=65348,t.dnblock=9604,t.dochadathai=3598,t.dodekthai=3604,t.dohiragana=12393,t.dokatakana=12489,t.dollar=36,t.dollarinferior=63203,t.dollarmonospace=65284,t.dollaroldstyle=63268,t.dollarsmall=65129,t.dollarsuperior=63204,t.dong=8363,t.dorusquare=13094,t.dotaccent=729,t.dotaccentcmb=775,t.dotbelowcmb=803,t.dotbelowcomb=803,t.dotkatakana=12539,t.dotlessi=305,t.dotlessj=63166,t.dotlessjstrokehook=644,t.dotmath=8901,t.dottedcircle=9676,t.doubleyodpatah=64287,t.doubleyodpatahhebrew=64287,t.downtackbelowcmb=798,t.downtackmod=725,t.dparen=9375,t.dsuperior=63211,t.dtail=598,t.dtopbar=396,t.duhiragana=12389,t.dukatakana=12485,t.dz=499,t.dzaltone=675,t.dzcaron=454,t.dzcurl=677,t.dzeabkhasiancyrillic=1249,t.dzecyrillic=1109,t.dzhecyrillic=1119,t.e=101,t.eacute=233,t.earth=9793,t.ebengali=2447,t.ebopomofo=12572,t.ebreve=277,t.ecandradeva=2317,t.ecandragujarati=2701,t.ecandravowelsigndeva=2373,t.ecandravowelsigngujarati=2757,t.ecaron=283,t.ecedillabreve=7709,t.echarmenian=1381,t.echyiwnarmenian=1415,t.ecircle=9428,t.ecircumflex=234,t.ecircumflexacute=7871,t.ecircumflexbelow=7705,t.ecircumflexdotbelow=7879,t.ecircumflexgrave=7873,t.ecircumflexhookabove=7875,t.ecircumflextilde=7877,t.ecyrillic=1108,t.edblgrave=517,t.edeva=2319,t.edieresis=235,t.edot=279,t.edotaccent=279,t.edotbelow=7865,t.eegurmukhi=2575,t.eematragurmukhi=2631,t.efcyrillic=1092,t.egrave=232,t.egujarati=2703,t.eharmenian=1383,t.ehbopomofo=12573,t.ehiragana=12360,t.ehookabove=7867,t.eibopomofo=12575,t.eight=56,t.eightarabic=1640,t.eightbengali=2542,t.eightcircle=9319,t.eightcircleinversesansserif=10129,t.eightdeva=2414,t.eighteencircle=9329,t.eighteenparen=9349,t.eighteenperiod=9369,t.eightgujarati=2798,t.eightgurmukhi=2670,t.eighthackarabic=1640,t.eighthangzhou=12328,t.eighthnotebeamed=9835,t.eightideographicparen=12839,t.eightinferior=8328,t.eightmonospace=65304,t.eightoldstyle=63288,t.eightparen=9339,t.eightperiod=9359,t.eightpersian=1784,t.eightroman=8567,t.eightsuperior=8312,t.eightthai=3672,t.einvertedbreve=519,t.eiotifiedcyrillic=1125,t.ekatakana=12456,t.ekatakanahalfwidth=65396,t.ekonkargurmukhi=2676,t.ekorean=12628,t.elcyrillic=1083,t.element=8712,t.elevencircle=9322,t.elevenparen=9342,t.elevenperiod=9362,t.elevenroman=8570,t.ellipsis=8230,t.ellipsisvertical=8942,t.emacron=275,t.emacronacute=7703,t.emacrongrave=7701,t.emcyrillic=1084,t.emdash=8212,t.emdashvertical=65073,t.emonospace=65349,t.emphasismarkarmenian=1371,t.emptyset=8709,t.enbopomofo=12579,t.encyrillic=1085,t.endash=8211,t.endashvertical=65074,t.endescendercyrillic=1187,t.eng=331,t.engbopomofo=12581,t.enghecyrillic=1189,t.enhookcyrillic=1224,t.enspace=8194,t.eogonek=281,t.eokorean=12627,t.eopen=603,t.eopenclosed=666,t.eopenreversed=604,t.eopenreversedclosed=606,t.eopenreversedhook=605,t.eparen=9376,t.epsilon=949,t.epsilontonos=941,t.equal=61,t.equalmonospace=65309,t.equalsmall=65126,t.equalsuperior=8316,t.equivalence=8801,t.erbopomofo=12582,t.ercyrillic=1088,t.ereversed=600,t.ereversedcyrillic=1101,t.escyrillic=1089,t.esdescendercyrillic=1195,t.esh=643,t.eshcurl=646,t.eshortdeva=2318,t.eshortvowelsigndeva=2374,t.eshreversedloop=426,t.eshsquatreversed=645,t.esmallhiragana=12359,t.esmallkatakana=12455,t.esmallkatakanahalfwidth=65386,t.estimated=8494,t.esuperior=63212,t.eta=951,t.etarmenian=1384,t.etatonos=942,t.eth=240,t.etilde=7869,t.etildebelow=7707,t.etnahtafoukhhebrew=1425,t.etnahtafoukhlefthebrew=1425,t.etnahtahebrew=1425,t.etnahtalefthebrew=1425,t.eturned=477,t.eukorean=12641,t.euro=8364,t.evowelsignbengali=2503,t.evowelsigndeva=2375,t.evowelsigngujarati=2759,t.exclam=33,t.exclamarmenian=1372,t.exclamdbl=8252,t.exclamdown=161,t.exclamdownsmall=63393,t.exclammonospace=65281,t.exclamsmall=63265,t.existential=8707,t.ezh=658,t.ezhcaron=495,t.ezhcurl=659,t.ezhreversed=441,t.ezhtail=442,t.f=102,t.fadeva=2398,t.fagurmukhi=2654,t.fahrenheit=8457,t.fathaarabic=1614,t.fathalowarabic=1614,t.fathatanarabic=1611,t.fbopomofo=12552,t.fcircle=9429,t.fdotaccent=7711,t.feharabic=1601,t.feharmenian=1414,t.fehfinalarabic=65234,t.fehinitialarabic=65235,t.fehmedialarabic=65236,t.feicoptic=997,t.female=9792,t.ff=64256,t.f_f=64256,t.ffi=64259,t.f_f_i=64259,t.ffl=64260,t.f_f_l=64260,t.fi=64257,t.f_i=64257,t.fifteencircle=9326,t.fifteenparen=9346,t.fifteenperiod=9366,t.figuredash=8210,t.filledbox=9632,t.filledrect=9644,t.finalkaf=1498,t.finalkafdagesh=64314,t.finalkafdageshhebrew=64314,t.finalkafhebrew=1498,t.finalmem=1501,t.finalmemhebrew=1501,t.finalnun=1503,t.finalnunhebrew=1503,t.finalpe=1507,t.finalpehebrew=1507,t.finaltsadi=1509,t.finaltsadihebrew=1509,t.firsttonechinese=713,t.fisheye=9673,t.fitacyrillic=1139,t.five=53,t.fivearabic=1637,t.fivebengali=2539,t.fivecircle=9316,t.fivecircleinversesansserif=10126,t.fivedeva=2411,t.fiveeighths=8541,t.fivegujarati=2795,t.fivegurmukhi=2667,t.fivehackarabic=1637,t.fivehangzhou=12325,t.fiveideographicparen=12836,t.fiveinferior=8325,t.fivemonospace=65301,t.fiveoldstyle=63285,t.fiveparen=9336,t.fiveperiod=9356,t.fivepersian=1781,t.fiveroman=8564,t.fivesuperior=8309,t.fivethai=3669,t.fl=64258,t.f_l=64258,t.florin=402,t.fmonospace=65350,t.fmsquare=13209,t.fofanthai=3615,t.fofathai=3613,t.fongmanthai=3663,t.forall=8704,t.four=52,t.fourarabic=1636,t.fourbengali=2538,t.fourcircle=9315,t.fourcircleinversesansserif=10125,t.fourdeva=2410,t.fourgujarati=2794,t.fourgurmukhi=2666,t.fourhackarabic=1636,t.fourhangzhou=12324,t.fourideographicparen=12835,t.fourinferior=8324,t.fourmonospace=65300,t.fournumeratorbengali=2551,t.fouroldstyle=63284,t.fourparen=9335,t.fourperiod=9355,t.fourpersian=1780,t.fourroman=8563,t.foursuperior=8308,t.fourteencircle=9325,t.fourteenparen=9345,t.fourteenperiod=9365,t.fourthai=3668,t.fourthtonechinese=715,t.fparen=9377,t.fraction=8260,t.franc=8355,t.g=103,t.gabengali=2455,t.gacute=501,t.gadeva=2327,t.gafarabic=1711,t.gaffinalarabic=64403,t.gafinitialarabic=64404,t.gafmedialarabic=64405,t.gagujarati=2711,t.gagurmukhi=2583,t.gahiragana=12364,t.gakatakana=12460,t.gamma=947,t.gammalatinsmall=611,t.gammasuperior=736,t.gangiacoptic=1003,t.gbopomofo=12557,t.gbreve=287,t.gcaron=487,t.gcedilla=291,t.gcircle=9430,t.gcircumflex=285,t.gcommaaccent=291,t.gdot=289,t.gdotaccent=289,t.gecyrillic=1075,t.gehiragana=12370,t.gekatakana=12466,t.geometricallyequal=8785,t.gereshaccenthebrew=1436,t.gereshhebrew=1523,t.gereshmuqdamhebrew=1437,t.germandbls=223,t.gershayimaccenthebrew=1438,t.gershayimhebrew=1524,t.getamark=12307,t.ghabengali=2456,t.ghadarmenian=1394,t.ghadeva=2328,t.ghagujarati=2712,t.ghagurmukhi=2584,t.ghainarabic=1594,t.ghainfinalarabic=65230,t.ghaininitialarabic=65231,t.ghainmedialarabic=65232,t.ghemiddlehookcyrillic=1173,t.ghestrokecyrillic=1171,t.gheupturncyrillic=1169,t.ghhadeva=2394,t.ghhagurmukhi=2650,t.ghook=608,t.ghzsquare=13203,t.gihiragana=12366,t.gikatakana=12462,t.gimarmenian=1379,t.gimel=1490,t.gimeldagesh=64306,t.gimeldageshhebrew=64306,t.gimelhebrew=1490,t.gjecyrillic=1107,t.glottalinvertedstroke=446,t.glottalstop=660,t.glottalstopinverted=662,t.glottalstopmod=704,t.glottalstopreversed=661,t.glottalstopreversedmod=705,t.glottalstopreversedsuperior=740,t.glottalstopstroke=673,t.glottalstopstrokereversed=674,t.gmacron=7713,t.gmonospace=65351,t.gohiragana=12372,t.gokatakana=12468,t.gparen=9378,t.gpasquare=13228,t.gradient=8711,t.grave=96,t.gravebelowcmb=790,t.gravecmb=768,t.gravecomb=768,t.gravedeva=2387,t.gravelowmod=718,t.gravemonospace=65344,t.gravetonecmb=832,t.greater=62,t.greaterequal=8805,t.greaterequalorless=8923,t.greatermonospace=65310,t.greaterorequivalent=8819,t.greaterorless=8823,t.greateroverequal=8807,t.greatersmall=65125,t.gscript=609,t.gstroke=485,t.guhiragana=12368,t.guillemotleft=171,t.guillemotright=187,t.guilsinglleft=8249,t.guilsinglright=8250,t.gukatakana=12464,t.guramusquare=13080,t.gysquare=13257,t.h=104,t.haabkhasiancyrillic=1193,t.haaltonearabic=1729,t.habengali=2489,t.hadescendercyrillic=1203,t.hadeva=2361,t.hagujarati=2745,t.hagurmukhi=2617,t.haharabic=1581,t.hahfinalarabic=65186,t.hahinitialarabic=65187,t.hahiragana=12399,t.hahmedialarabic=65188,t.haitusquare=13098,t.hakatakana=12495,t.hakatakanahalfwidth=65418,t.halantgurmukhi=2637,t.hamzaarabic=1569,t.hamzalowarabic=1569,t.hangulfiller=12644,t.hardsigncyrillic=1098,t.harpoonleftbarbup=8636,t.harpoonrightbarbup=8640,t.hasquare=13258,t.hatafpatah=1458,t.hatafpatah16=1458,t.hatafpatah23=1458,t.hatafpatah2f=1458,t.hatafpatahhebrew=1458,t.hatafpatahnarrowhebrew=1458,t.hatafpatahquarterhebrew=1458,t.hatafpatahwidehebrew=1458,t.hatafqamats=1459,t.hatafqamats1b=1459,t.hatafqamats28=1459,t.hatafqamats34=1459,t.hatafqamatshebrew=1459,t.hatafqamatsnarrowhebrew=1459,t.hatafqamatsquarterhebrew=1459,t.hatafqamatswidehebrew=1459,t.hatafsegol=1457,t.hatafsegol17=1457,t.hatafsegol24=1457,t.hatafsegol30=1457,t.hatafsegolhebrew=1457,t.hatafsegolnarrowhebrew=1457,t.hatafsegolquarterhebrew=1457,t.hatafsegolwidehebrew=1457,t.hbar=295,t.hbopomofo=12559,t.hbrevebelow=7723,t.hcedilla=7721,t.hcircle=9431,t.hcircumflex=293,t.hdieresis=7719,t.hdotaccent=7715,t.hdotbelow=7717,t.he=1492,t.heart=9829,t.heartsuitblack=9829,t.heartsuitwhite=9825,t.hedagesh=64308,t.hedageshhebrew=64308,t.hehaltonearabic=1729,t.heharabic=1607,t.hehebrew=1492,t.hehfinalaltonearabic=64423,t.hehfinalalttwoarabic=65258,t.hehfinalarabic=65258,t.hehhamzaabovefinalarabic=64421,t.hehhamzaaboveisolatedarabic=64420,t.hehinitialaltonearabic=64424,t.hehinitialarabic=65259,t.hehiragana=12408,t.hehmedialaltonearabic=64425,t.hehmedialarabic=65260,t.heiseierasquare=13179,t.hekatakana=12504,t.hekatakanahalfwidth=65421,t.hekutaarusquare=13110,t.henghook=615,t.herutusquare=13113,t.het=1495,t.hethebrew=1495,t.hhook=614,t.hhooksuperior=689,t.hieuhacirclekorean=12923,t.hieuhaparenkorean=12827,t.hieuhcirclekorean=12909,t.hieuhkorean=12622,t.hieuhparenkorean=12813,t.hihiragana=12402,t.hikatakana=12498,t.hikatakanahalfwidth=65419,t.hiriq=1460,t.hiriq14=1460,t.hiriq21=1460,t.hiriq2d=1460,t.hiriqhebrew=1460,t.hiriqnarrowhebrew=1460,t.hiriqquarterhebrew=1460,t.hiriqwidehebrew=1460,t.hlinebelow=7830,t.hmonospace=65352,t.hoarmenian=1392,t.hohipthai=3627,t.hohiragana=12411,t.hokatakana=12507,t.hokatakanahalfwidth=65422,t.holam=1465,t.holam19=1465,t.holam26=1465,t.holam32=1465,t.holamhebrew=1465,t.holamnarrowhebrew=1465,t.holamquarterhebrew=1465,t.holamwidehebrew=1465,t.honokhukthai=3630,t.hookabovecomb=777,t.hookcmb=777,t.hookpalatalizedbelowcmb=801,t.hookretroflexbelowcmb=802,t.hoonsquare=13122,t.horicoptic=1001,t.horizontalbar=8213,t.horncmb=795,t.hotsprings=9832,t.house=8962,t.hparen=9379,t.hsuperior=688,t.hturned=613,t.huhiragana=12405,t.huiitosquare=13107,t.hukatakana=12501,t.hukatakanahalfwidth=65420,t.hungarumlaut=733,t.hungarumlautcmb=779,t.hv=405,t.hyphen=45,t.hypheninferior=63205,t.hyphenmonospace=65293,t.hyphensmall=65123,t.hyphensuperior=63206,t.hyphentwo=8208,t.i=105,t.iacute=237,t.iacyrillic=1103,t.ibengali=2439,t.ibopomofo=12583,t.ibreve=301,t.icaron=464,t.icircle=9432,t.icircumflex=238,t.icyrillic=1110,t.idblgrave=521,t.ideographearthcircle=12943,t.ideographfirecircle=12939,t.ideographicallianceparen=12863,t.ideographiccallparen=12858,t.ideographiccentrecircle=12965,t.ideographicclose=12294,t.ideographiccomma=12289,t.ideographiccommaleft=65380,t.ideographiccongratulationparen=12855,t.ideographiccorrectcircle=12963,t.ideographicearthparen=12847,t.ideographicenterpriseparen=12861,t.ideographicexcellentcircle=12957,t.ideographicfestivalparen=12864,t.ideographicfinancialcircle=12950,t.ideographicfinancialparen=12854,t.ideographicfireparen=12843,t.ideographichaveparen=12850,t.ideographichighcircle=12964,t.ideographiciterationmark=12293,t.ideographiclaborcircle=12952,t.ideographiclaborparen=12856,t.ideographicleftcircle=12967,t.ideographiclowcircle=12966,t.ideographicmedicinecircle=12969,t.ideographicmetalparen=12846,t.ideographicmoonparen=12842,t.ideographicnameparen=12852,t.ideographicperiod=12290,t.ideographicprintcircle=12958,t.ideographicreachparen=12867,t.ideographicrepresentparen=12857,t.ideographicresourceparen=12862,t.ideographicrightcircle=12968,t.ideographicsecretcircle=12953,t.ideographicselfparen=12866,t.ideographicsocietyparen=12851,t.ideographicspace=12288,t.ideographicspecialparen=12853,t.ideographicstockparen=12849,t.ideographicstudyparen=12859,t.ideographicsunparen=12848,t.ideographicsuperviseparen=12860,t.ideographicwaterparen=12844,t.ideographicwoodparen=12845,t.ideographiczero=12295,t.ideographmetalcircle=12942,t.ideographmooncircle=12938,t.ideographnamecircle=12948,t.ideographsuncircle=12944,t.ideographwatercircle=12940,t.ideographwoodcircle=12941,t.ideva=2311,t.idieresis=239,t.idieresisacute=7727,t.idieresiscyrillic=1253,t.idotbelow=7883,t.iebrevecyrillic=1239,t.iecyrillic=1077,t.ieungacirclekorean=12917,t.ieungaparenkorean=12821,t.ieungcirclekorean=12903,t.ieungkorean=12615,t.ieungparenkorean=12807,t.igrave=236,t.igujarati=2695,t.igurmukhi=2567,t.ihiragana=12356,t.ihookabove=7881,t.iibengali=2440,t.iicyrillic=1080,t.iideva=2312,t.iigujarati=2696,t.iigurmukhi=2568,t.iimatragurmukhi=2624,t.iinvertedbreve=523,t.iishortcyrillic=1081,t.iivowelsignbengali=2496,t.iivowelsigndeva=2368,t.iivowelsigngujarati=2752,t.ij=307,t.ikatakana=12452,t.ikatakanahalfwidth=65394,t.ikorean=12643,t.ilde=732,t.iluyhebrew=1452,t.imacron=299,t.imacroncyrillic=1251,t.imageorapproximatelyequal=8787,t.imatragurmukhi=2623,t.imonospace=65353,t.increment=8710,t.infinity=8734,t.iniarmenian=1387,t.integral=8747,t.integralbottom=8993,t.integralbt=8993,t.integralex=63733,t.integraltop=8992,t.integraltp=8992,t.intersection=8745,t.intisquare=13061,t.invbullet=9688,t.invcircle=9689,t.invsmileface=9787,t.iocyrillic=1105,t.iogonek=303,t.iota=953,t.iotadieresis=970,t.iotadieresistonos=912,t.iotalatin=617,t.iotatonos=943,t.iparen=9380,t.irigurmukhi=2674,t.ismallhiragana=12355,t.ismallkatakana=12451,t.ismallkatakanahalfwidth=65384,t.issharbengali=2554,t.istroke=616,t.isuperior=63213,t.iterationhiragana=12445,t.iterationkatakana=12541,t.itilde=297,t.itildebelow=7725,t.iubopomofo=12585,t.iucyrillic=1102,t.ivowelsignbengali=2495,t.ivowelsigndeva=2367,t.ivowelsigngujarati=2751,t.izhitsacyrillic=1141,t.izhitsadblgravecyrillic=1143,t.j=106,t.jaarmenian=1393,t.jabengali=2460,t.jadeva=2332,t.jagujarati=2716,t.jagurmukhi=2588,t.jbopomofo=12560,t.jcaron=496,t.jcircle=9433,t.jcircumflex=309,t.jcrossedtail=669,t.jdotlessstroke=607,t.jecyrillic=1112,t.jeemarabic=1580,t.jeemfinalarabic=65182,t.jeeminitialarabic=65183,t.jeemmedialarabic=65184,t.jeharabic=1688,t.jehfinalarabic=64395,t.jhabengali=2461,t.jhadeva=2333,t.jhagujarati=2717,t.jhagurmukhi=2589,t.jheharmenian=1403,t.jis=12292,t.jmonospace=65354,t.jparen=9381,t.jsuperior=690,t.k=107,t.kabashkircyrillic=1185,t.kabengali=2453,t.kacute=7729,t.kacyrillic=1082,t.kadescendercyrillic=1179,t.kadeva=2325,t.kaf=1499,t.kafarabic=1603,t.kafdagesh=64315,t.kafdageshhebrew=64315,t.kaffinalarabic=65242,t.kafhebrew=1499,t.kafinitialarabic=65243,t.kafmedialarabic=65244,t.kafrafehebrew=64333,t.kagujarati=2709,t.kagurmukhi=2581,t.kahiragana=12363,t.kahookcyrillic=1220,t.kakatakana=12459,t.kakatakanahalfwidth=65398,t.kappa=954,t.kappasymbolgreek=1008,t.kapyeounmieumkorean=12657,t.kapyeounphieuphkorean=12676,t.kapyeounpieupkorean=12664,t.kapyeounssangpieupkorean=12665,t.karoriisquare=13069,t.kashidaautoarabic=1600,t.kashidaautonosidebearingarabic=1600,t.kasmallkatakana=12533,t.kasquare=13188,t.kasraarabic=1616,t.kasratanarabic=1613,t.kastrokecyrillic=1183,t.katahiraprolongmarkhalfwidth=65392,t.kaverticalstrokecyrillic=1181,t.kbopomofo=12558,t.kcalsquare=13193,t.kcaron=489,t.kcedilla=311,t.kcircle=9434,t.kcommaaccent=311,t.kdotbelow=7731,t.keharmenian=1412,t.kehiragana=12369,t.kekatakana=12465,t.kekatakanahalfwidth=65401,t.kenarmenian=1391,t.kesmallkatakana=12534,t.kgreenlandic=312,t.khabengali=2454,t.khacyrillic=1093,t.khadeva=2326,t.khagujarati=2710,t.khagurmukhi=2582,t.khaharabic=1582,t.khahfinalarabic=65190,t.khahinitialarabic=65191,t.khahmedialarabic=65192,t.kheicoptic=999,t.khhadeva=2393,t.khhagurmukhi=2649,t.khieukhacirclekorean=12920,t.khieukhaparenkorean=12824,t.khieukhcirclekorean=12906,t.khieukhkorean=12619,t.khieukhparenkorean=12810,t.khokhaithai=3586,t.khokhonthai=3589,t.khokhuatthai=3587,t.khokhwaithai=3588,t.khomutthai=3675,t.khook=409,t.khorakhangthai=3590,t.khzsquare=13201,t.kihiragana=12365,t.kikatakana=12461,t.kikatakanahalfwidth=65399,t.kiroguramusquare=13077,t.kiromeetorusquare=13078,t.kirosquare=13076,t.kiyeokacirclekorean=12910,t.kiyeokaparenkorean=12814,t.kiyeokcirclekorean=12896,t.kiyeokkorean=12593,t.kiyeokparenkorean=12800,t.kiyeoksioskorean=12595,t.kjecyrillic=1116,t.klinebelow=7733,t.klsquare=13208,t.kmcubedsquare=13222,t.kmonospace=65355,t.kmsquaredsquare=13218,t.kohiragana=12371,t.kohmsquare=13248,t.kokaithai=3585,t.kokatakana=12467,t.kokatakanahalfwidth=65402,t.kooposquare=13086,t.koppacyrillic=1153,t.koreanstandardsymbol=12927,t.koroniscmb=835,t.kparen=9382,t.kpasquare=13226,t.ksicyrillic=1135,t.ktsquare=13263,t.kturned=670,t.kuhiragana=12367,t.kukatakana=12463,t.kukatakanahalfwidth=65400,t.kvsquare=13240,t.kwsquare=13246,t.l=108,t.labengali=2482,t.lacute=314,t.ladeva=2354,t.lagujarati=2738,t.lagurmukhi=2610,t.lakkhangyaothai=3653,t.lamaleffinalarabic=65276,t.lamalefhamzaabovefinalarabic=65272,t.lamalefhamzaaboveisolatedarabic=65271,t.lamalefhamzabelowfinalarabic=65274,t.lamalefhamzabelowisolatedarabic=65273,t.lamalefisolatedarabic=65275,t.lamalefmaddaabovefinalarabic=65270,t.lamalefmaddaaboveisolatedarabic=65269,t.lamarabic=1604,t.lambda=955,t.lambdastroke=411,t.lamed=1500,t.lameddagesh=64316,t.lameddageshhebrew=64316,t.lamedhebrew=1500,t.lamfinalarabic=65246,t.lamhahinitialarabic=64714,t.laminitialarabic=65247,t.lamjeeminitialarabic=64713,t.lamkhahinitialarabic=64715,t.lamlamhehisolatedarabic=65010,t.lammedialarabic=65248,t.lammeemhahinitialarabic=64904,t.lammeeminitialarabic=64716,t.largecircle=9711,t.lbar=410,t.lbelt=620,t.lbopomofo=12556,t.lcaron=318,t.lcedilla=316,t.lcircle=9435,t.lcircumflexbelow=7741,t.lcommaaccent=316,t.ldot=320,t.ldotaccent=320,t.ldotbelow=7735,t.ldotbelowmacron=7737,t.leftangleabovecmb=794,t.lefttackbelowcmb=792,t.less=60,t.lessequal=8804,t.lessequalorgreater=8922,t.lessmonospace=65308,t.lessorequivalent=8818,t.lessorgreater=8822,t.lessoverequal=8806,t.lesssmall=65124,t.lezh=622,t.lfblock=9612,t.lhookretroflex=621,t.lira=8356,t.liwnarmenian=1388,t.lj=457,t.ljecyrillic=1113,t.ll=63168,t.lladeva=2355,t.llagujarati=2739,t.llinebelow=7739,t.llladeva=2356,t.llvocalicbengali=2529,t.llvocalicdeva=2401,t.llvocalicvowelsignbengali=2531,t.llvocalicvowelsigndeva=2403,t.lmiddletilde=619,t.lmonospace=65356,t.lmsquare=13264,t.lochulathai=3628,t.logicaland=8743,t.logicalnot=172,t.logicalnotreversed=8976,t.logicalor=8744,t.lolingthai=3621,t.longs=383,t.lowlinecenterline=65102,t.lowlinecmb=818,t.lowlinedashed=65101,t.lozenge=9674,t.lparen=9383,t.lslash=322,t.lsquare=8467,t.lsuperior=63214,t.ltshade=9617,t.luthai=3622,t.lvocalicbengali=2444,t.lvocalicdeva=2316,t.lvocalicvowelsignbengali=2530,t.lvocalicvowelsigndeva=2402,t.lxsquare=13267,t.m=109,t.mabengali=2478,t.macron=175,t.macronbelowcmb=817,t.macroncmb=772,t.macronlowmod=717,t.macronmonospace=65507,t.macute=7743,t.madeva=2350,t.magujarati=2734,t.magurmukhi=2606,t.mahapakhhebrew=1444,t.mahapakhlefthebrew=1444,t.mahiragana=12414,t.maichattawalowleftthai=63637,t.maichattawalowrightthai=63636,t.maichattawathai=3659,t.maichattawaupperleftthai=63635,t.maieklowleftthai=63628,t.maieklowrightthai=63627,t.maiekthai=3656,t.maiekupperleftthai=63626,t.maihanakatleftthai=63620,t.maihanakatthai=3633,t.maitaikhuleftthai=63625,t.maitaikhuthai=3655,t.maitholowleftthai=63631,t.maitholowrightthai=63630,t.maithothai=3657,t.maithoupperleftthai=63629,t.maitrilowleftthai=63634,t.maitrilowrightthai=63633,t.maitrithai=3658,t.maitriupperleftthai=63632,t.maiyamokthai=3654,t.makatakana=12510,t.makatakanahalfwidth=65423,t.male=9794,t.mansyonsquare=13127,t.maqafhebrew=1470,t.mars=9794,t.masoracirclehebrew=1455,t.masquare=13187,t.mbopomofo=12551,t.mbsquare=13268,t.mcircle=9436,t.mcubedsquare=13221,t.mdotaccent=7745,t.mdotbelow=7747,t.meemarabic=1605,t.meemfinalarabic=65250,t.meeminitialarabic=65251,t.meemmedialarabic=65252,t.meemmeeminitialarabic=64721,t.meemmeemisolatedarabic=64584,t.meetorusquare=13133,t.mehiragana=12417,t.meizierasquare=13182,t.mekatakana=12513,t.mekatakanahalfwidth=65426,t.mem=1502,t.memdagesh=64318,t.memdageshhebrew=64318,t.memhebrew=1502,t.menarmenian=1396,t.merkhahebrew=1445,t.merkhakefulahebrew=1446,t.merkhakefulalefthebrew=1446,t.merkhalefthebrew=1445,t.mhook=625,t.mhzsquare=13202,t.middledotkatakanahalfwidth=65381,t.middot=183,t.mieumacirclekorean=12914,t.mieumaparenkorean=12818,t.mieumcirclekorean=12900,t.mieumkorean=12609,t.mieumpansioskorean=12656,t.mieumparenkorean=12804,t.mieumpieupkorean=12654,t.mieumsioskorean=12655,t.mihiragana=12415,t.mikatakana=12511,t.mikatakanahalfwidth=65424,t.minus=8722,t.minusbelowcmb=800,t.minuscircle=8854,t.minusmod=727,t.minusplus=8723,t.minute=8242,t.miribaarusquare=13130,t.mirisquare=13129,t.mlonglegturned=624,t.mlsquare=13206,t.mmcubedsquare=13219,t.mmonospace=65357,t.mmsquaredsquare=13215,t.mohiragana=12418,t.mohmsquare=13249,t.mokatakana=12514,t.mokatakanahalfwidth=65427,t.molsquare=13270,t.momathai=3617,t.moverssquare=13223,t.moverssquaredsquare=13224,t.mparen=9384,t.mpasquare=13227,t.mssquare=13235,t.msuperior=63215,t.mturned=623,t.mu=181,t.mu1=181,t.muasquare=13186,t.muchgreater=8811,t.muchless=8810,t.mufsquare=13196,t.mugreek=956,t.mugsquare=13197,t.muhiragana=12416,t.mukatakana=12512,t.mukatakanahalfwidth=65425,t.mulsquare=13205,t.multiply=215,t.mumsquare=13211,t.munahhebrew=1443,t.munahlefthebrew=1443,t.musicalnote=9834,t.musicalnotedbl=9835,t.musicflatsign=9837,t.musicsharpsign=9839,t.mussquare=13234,t.muvsquare=13238,t.muwsquare=13244,t.mvmegasquare=13241,t.mvsquare=13239,t.mwmegasquare=13247,t.mwsquare=13245,t.n=110,t.nabengali=2472,t.nabla=8711,t.nacute=324,t.nadeva=2344,t.nagujarati=2728,t.nagurmukhi=2600,t.nahiragana=12394,t.nakatakana=12490,t.nakatakanahalfwidth=65413,t.napostrophe=329,t.nasquare=13185,t.nbopomofo=12555,t.nbspace=160,t.ncaron=328,t.ncedilla=326,t.ncircle=9437,t.ncircumflexbelow=7755,t.ncommaaccent=326,t.ndotaccent=7749,t.ndotbelow=7751,t.nehiragana=12397,t.nekatakana=12493,t.nekatakanahalfwidth=65416,t.newsheqelsign=8362,t.nfsquare=13195,t.ngabengali=2457,t.ngadeva=2329,t.ngagujarati=2713,t.ngagurmukhi=2585,t.ngonguthai=3591,t.nhiragana=12435,t.nhookleft=626,t.nhookretroflex=627,t.nieunacirclekorean=12911,t.nieunaparenkorean=12815,t.nieuncieuckorean=12597,t.nieuncirclekorean=12897,t.nieunhieuhkorean=12598,t.nieunkorean=12596,t.nieunpansioskorean=12648,t.nieunparenkorean=12801,t.nieunsioskorean=12647,t.nieuntikeutkorean=12646,t.nihiragana=12395,t.nikatakana=12491,t.nikatakanahalfwidth=65414,t.nikhahitleftthai=63641,t.nikhahitthai=3661,t.nine=57,t.ninearabic=1641,t.ninebengali=2543,t.ninecircle=9320,t.ninecircleinversesansserif=10130,t.ninedeva=2415,t.ninegujarati=2799,t.ninegurmukhi=2671,t.ninehackarabic=1641,t.ninehangzhou=12329,t.nineideographicparen=12840,t.nineinferior=8329,t.ninemonospace=65305,t.nineoldstyle=63289,t.nineparen=9340,t.nineperiod=9360,t.ninepersian=1785,t.nineroman=8568,t.ninesuperior=8313,t.nineteencircle=9330,t.nineteenparen=9350,t.nineteenperiod=9370,t.ninethai=3673,t.nj=460,t.njecyrillic=1114,t.nkatakana=12531,t.nkatakanahalfwidth=65437,t.nlegrightlong=414,t.nlinebelow=7753,t.nmonospace=65358,t.nmsquare=13210,t.nnabengali=2467,t.nnadeva=2339,t.nnagujarati=2723,t.nnagurmukhi=2595,t.nnnadeva=2345,t.nohiragana=12398,t.nokatakana=12494,t.nokatakanahalfwidth=65417,t.nonbreakingspace=160,t.nonenthai=3603,t.nonuthai=3609,t.noonarabic=1606,t.noonfinalarabic=65254,t.noonghunnaarabic=1722,t.noonghunnafinalarabic=64415,t.nooninitialarabic=65255,t.noonjeeminitialarabic=64722,t.noonjeemisolatedarabic=64587,t.noonmedialarabic=65256,t.noonmeeminitialarabic=64725,t.noonmeemisolatedarabic=64590,t.noonnoonfinalarabic=64653,t.notcontains=8716,t.notelement=8713,t.notelementof=8713,t.notequal=8800,t.notgreater=8815,t.notgreaternorequal=8817,t.notgreaternorless=8825,t.notidentical=8802,t.notless=8814,t.notlessnorequal=8816,t.notparallel=8742,t.notprecedes=8832,t.notsubset=8836,t.notsucceeds=8833,t.notsuperset=8837,t.nowarmenian=1398,t.nparen=9385,t.nssquare=13233,t.nsuperior=8319,t.ntilde=241,t.nu=957,t.nuhiragana=12396,t.nukatakana=12492,t.nukatakanahalfwidth=65415,t.nuktabengali=2492,t.nuktadeva=2364,t.nuktagujarati=2748,t.nuktagurmukhi=2620,t.numbersign=35,t.numbersignmonospace=65283,t.numbersignsmall=65119,t.numeralsigngreek=884,t.numeralsignlowergreek=885,t.numero=8470,t.nun=1504,t.nundagesh=64320,t.nundageshhebrew=64320,t.nunhebrew=1504,t.nvsquare=13237,t.nwsquare=13243,t.nyabengali=2462,t.nyadeva=2334,t.nyagujarati=2718,t.nyagurmukhi=2590,t.o=111,t.oacute=243,t.oangthai=3629,t.obarred=629,t.obarredcyrillic=1257,t.obarreddieresiscyrillic=1259,t.obengali=2451,t.obopomofo=12571,t.obreve=335,t.ocandradeva=2321,t.ocandragujarati=2705,t.ocandravowelsigndeva=2377,t.ocandravowelsigngujarati=2761,t.ocaron=466,t.ocircle=9438,t.ocircumflex=244,t.ocircumflexacute=7889,t.ocircumflexdotbelow=7897,t.ocircumflexgrave=7891,t.ocircumflexhookabove=7893,t.ocircumflextilde=7895,t.ocyrillic=1086,t.odblacute=337,t.odblgrave=525,t.odeva=2323,t.odieresis=246,t.odieresiscyrillic=1255,t.odotbelow=7885,t.oe=339,t.oekorean=12634,t.ogonek=731,t.ogonekcmb=808,t.ograve=242,t.ogujarati=2707,t.oharmenian=1413,t.ohiragana=12362,t.ohookabove=7887,t.ohorn=417,t.ohornacute=7899,t.ohorndotbelow=7907,t.ohorngrave=7901,t.ohornhookabove=7903,t.ohorntilde=7905,t.ohungarumlaut=337,t.oi=419,t.oinvertedbreve=527,t.okatakana=12458,t.okatakanahalfwidth=65397,t.okorean=12631,t.olehebrew=1451,t.omacron=333,t.omacronacute=7763,t.omacrongrave=7761,t.omdeva=2384,t.omega=969,t.omega1=982,t.omegacyrillic=1121,t.omegalatinclosed=631,t.omegaroundcyrillic=1147,t.omegatitlocyrillic=1149,t.omegatonos=974,t.omgujarati=2768,t.omicron=959,t.omicrontonos=972,t.omonospace=65359,t.one=49,t.onearabic=1633,t.onebengali=2535,t.onecircle=9312,t.onecircleinversesansserif=10122,t.onedeva=2407,t.onedotenleader=8228,t.oneeighth=8539,t.onefitted=63196,t.onegujarati=2791,t.onegurmukhi=2663,t.onehackarabic=1633,t.onehalf=189,t.onehangzhou=12321,t.oneideographicparen=12832,t.oneinferior=8321,t.onemonospace=65297,t.onenumeratorbengali=2548,t.oneoldstyle=63281,t.oneparen=9332,t.oneperiod=9352,t.onepersian=1777,t.onequarter=188,t.oneroman=8560,t.onesuperior=185,t.onethai=3665,t.onethird=8531,t.oogonek=491,t.oogonekmacron=493,t.oogurmukhi=2579,t.oomatragurmukhi=2635,t.oopen=596,t.oparen=9386,t.openbullet=9702,t.option=8997,t.ordfeminine=170,t.ordmasculine=186,t.orthogonal=8735,t.oshortdeva=2322,t.oshortvowelsigndeva=2378,t.oslash=248,t.oslashacute=511,t.osmallhiragana=12361,t.osmallkatakana=12457,t.osmallkatakanahalfwidth=65387,t.ostrokeacute=511,t.osuperior=63216,t.otcyrillic=1151,t.otilde=245,t.otildeacute=7757,t.otildedieresis=7759,t.oubopomofo=12577,t.overline=8254,t.overlinecenterline=65098,t.overlinecmb=773,t.overlinedashed=65097,t.overlinedblwavy=65100,t.overlinewavy=65099,t.overscore=175,t.ovowelsignbengali=2507,t.ovowelsigndeva=2379,t.ovowelsigngujarati=2763,t.p=112,t.paampssquare=13184,t.paasentosquare=13099,t.pabengali=2474,t.pacute=7765,t.padeva=2346,t.pagedown=8671,t.pageup=8670,t.pagujarati=2730,t.pagurmukhi=2602,t.pahiragana=12401,t.paiyannoithai=3631,t.pakatakana=12497,t.palatalizationcyrilliccmb=1156,t.palochkacyrillic=1216,t.pansioskorean=12671,t.paragraph=182,t.parallel=8741,t.parenleft=40,t.parenleftaltonearabic=64830,t.parenleftbt=63725,t.parenleftex=63724,t.parenleftinferior=8333,t.parenleftmonospace=65288,t.parenleftsmall=65113,t.parenleftsuperior=8317,t.parenlefttp=63723,t.parenleftvertical=65077,t.parenright=41,t.parenrightaltonearabic=64831,t.parenrightbt=63736,t.parenrightex=63735,t.parenrightinferior=8334,t.parenrightmonospace=65289,t.parenrightsmall=65114,t.parenrightsuperior=8318,t.parenrighttp=63734,t.parenrightvertical=65078,t.partialdiff=8706,t.paseqhebrew=1472,t.pashtahebrew=1433,t.pasquare=13225,t.patah=1463,t.patah11=1463,t.patah1d=1463,t.patah2a=1463,t.patahhebrew=1463,t.patahnarrowhebrew=1463,t.patahquarterhebrew=1463,t.patahwidehebrew=1463,t.pazerhebrew=1441,t.pbopomofo=12550,t.pcircle=9439,t.pdotaccent=7767,t.pe=1508,t.pecyrillic=1087,t.pedagesh=64324,t.pedageshhebrew=64324,t.peezisquare=13115,t.pefinaldageshhebrew=64323,t.peharabic=1662,t.peharmenian=1402,t.pehebrew=1508,t.pehfinalarabic=64343,t.pehinitialarabic=64344,t.pehiragana=12410,t.pehmedialarabic=64345,t.pekatakana=12506,t.pemiddlehookcyrillic=1191,t.perafehebrew=64334,t.percent=37,t.percentarabic=1642,t.percentmonospace=65285,t.percentsmall=65130,t.period=46,t.periodarmenian=1417,t.periodcentered=183,t.periodhalfwidth=65377,t.periodinferior=63207,t.periodmonospace=65294,t.periodsmall=65106,t.periodsuperior=63208,t.perispomenigreekcmb=834,t.perpendicular=8869,t.perthousand=8240,t.peseta=8359,t.pfsquare=13194,t.phabengali=2475,t.phadeva=2347,t.phagujarati=2731,t.phagurmukhi=2603,t.phi=966,t.phi1=981,t.phieuphacirclekorean=12922,t.phieuphaparenkorean=12826,t.phieuphcirclekorean=12908,t.phieuphkorean=12621,t.phieuphparenkorean=12812,t.philatin=632,t.phinthuthai=3642,t.phisymbolgreek=981,t.phook=421,t.phophanthai=3614,t.phophungthai=3612,t.phosamphaothai=3616,t.pi=960,t.pieupacirclekorean=12915,t.pieupaparenkorean=12819,t.pieupcieuckorean=12662,t.pieupcirclekorean=12901,t.pieupkiyeokkorean=12658,t.pieupkorean=12610,t.pieupparenkorean=12805,t.pieupsioskiyeokkorean=12660,t.pieupsioskorean=12612,t.pieupsiostikeutkorean=12661,t.pieupthieuthkorean=12663,t.pieuptikeutkorean=12659,t.pihiragana=12404,t.pikatakana=12500,t.pisymbolgreek=982,t.piwrarmenian=1411,t.planckover2pi=8463,t.planckover2pi1=8463,t.plus=43,t.plusbelowcmb=799,t.pluscircle=8853,t.plusminus=177,t.plusmod=726,t.plusmonospace=65291,t.plussmall=65122,t.plussuperior=8314,t.pmonospace=65360,t.pmsquare=13272,t.pohiragana=12413,t.pointingindexdownwhite=9759,t.pointingindexleftwhite=9756,t.pointingindexrightwhite=9758,t.pointingindexupwhite=9757,t.pokatakana=12509,t.poplathai=3611,t.postalmark=12306,t.postalmarkface=12320,t.pparen=9387,t.precedes=8826,t.prescription=8478,t.primemod=697,t.primereversed=8245,t.product=8719,t.projective=8965,t.prolongedkana=12540,t.propellor=8984,t.propersubset=8834,t.propersuperset=8835,t.proportion=8759,t.proportional=8733,t.psi=968,t.psicyrillic=1137,t.psilipneumatacyrilliccmb=1158,t.pssquare=13232,t.puhiragana=12407,t.pukatakana=12503,t.pvsquare=13236,t.pwsquare=13242,t.q=113,t.qadeva=2392,t.qadmahebrew=1448,t.qafarabic=1602,t.qaffinalarabic=65238,t.qafinitialarabic=65239,t.qafmedialarabic=65240,t.qamats=1464,t.qamats10=1464,t.qamats1a=1464,t.qamats1c=1464,t.qamats27=1464,t.qamats29=1464,t.qamats33=1464,t.qamatsde=1464,t.qamatshebrew=1464,t.qamatsnarrowhebrew=1464,t.qamatsqatanhebrew=1464,t.qamatsqatannarrowhebrew=1464,t.qamatsqatanquarterhebrew=1464,t.qamatsqatanwidehebrew=1464,t.qamatsquarterhebrew=1464,t.qamatswidehebrew=1464,t.qarneyparahebrew=1439,t.qbopomofo=12561,t.qcircle=9440,t.qhook=672,t.qmonospace=65361,t.qof=1511,t.qofdagesh=64327,t.qofdageshhebrew=64327,t.qofhebrew=1511,t.qparen=9388,t.quarternote=9833,t.qubuts=1467,t.qubuts18=1467,t.qubuts25=1467,t.qubuts31=1467,t.qubutshebrew=1467,t.qubutsnarrowhebrew=1467,t.qubutsquarterhebrew=1467,t.qubutswidehebrew=1467,t.question=63,t.questionarabic=1567,t.questionarmenian=1374,t.questiondown=191,t.questiondownsmall=63423,t.questiongreek=894,t.questionmonospace=65311,t.questionsmall=63295,t.quotedbl=34,t.quotedblbase=8222,t.quotedblleft=8220,t.quotedblmonospace=65282,t.quotedblprime=12318,t.quotedblprimereversed=12317,t.quotedblright=8221,t.quoteleft=8216,t.quoteleftreversed=8219,t.quotereversed=8219,t.quoteright=8217,t.quoterightn=329,t.quotesinglbase=8218,t.quotesingle=39,t.quotesinglemonospace=65287,t.r=114,t.raarmenian=1404,t.rabengali=2480,t.racute=341,t.radeva=2352,t.radical=8730,t.radicalex=63717,t.radoverssquare=13230,t.radoverssquaredsquare=13231,t.radsquare=13229,t.rafe=1471,t.rafehebrew=1471,t.ragujarati=2736,t.ragurmukhi=2608,t.rahiragana=12425,t.rakatakana=12521,t.rakatakanahalfwidth=65431,t.ralowerdiagonalbengali=2545,t.ramiddlediagonalbengali=2544,t.ramshorn=612,t.ratio=8758,t.rbopomofo=12566,t.rcaron=345,t.rcedilla=343,t.rcircle=9441,t.rcommaaccent=343,t.rdblgrave=529,t.rdotaccent=7769,t.rdotbelow=7771,t.rdotbelowmacron=7773,t.referencemark=8251,t.reflexsubset=8838,t.reflexsuperset=8839,t.registered=174,t.registersans=63720,t.registerserif=63194,t.reharabic=1585,t.reharmenian=1408,t.rehfinalarabic=65198,t.rehiragana=12428,t.rekatakana=12524,t.rekatakanahalfwidth=65434,t.resh=1512,t.reshdageshhebrew=64328,t.reshhebrew=1512,t.reversedtilde=8765,t.reviahebrew=1431,t.reviamugrashhebrew=1431,t.revlogicalnot=8976,t.rfishhook=638,t.rfishhookreversed=639,t.rhabengali=2525,t.rhadeva=2397,t.rho=961,t.rhook=637,t.rhookturned=635,t.rhookturnedsuperior=693,t.rhosymbolgreek=1009,t.rhotichookmod=734,t.rieulacirclekorean=12913,t.rieulaparenkorean=12817,t.rieulcirclekorean=12899,t.rieulhieuhkorean=12608,t.rieulkiyeokkorean=12602,t.rieulkiyeoksioskorean=12649,t.rieulkorean=12601,t.rieulmieumkorean=12603,t.rieulpansioskorean=12652,t.rieulparenkorean=12803,t.rieulphieuphkorean=12607,t.rieulpieupkorean=12604,t.rieulpieupsioskorean=12651,t.rieulsioskorean=12605,t.rieulthieuthkorean=12606,t.rieultikeutkorean=12650,t.rieulyeorinhieuhkorean=12653,t.rightangle=8735,t.righttackbelowcmb=793,t.righttriangle=8895,t.rihiragana=12426,t.rikatakana=12522,t.rikatakanahalfwidth=65432,t.ring=730,t.ringbelowcmb=805,t.ringcmb=778,t.ringhalfleft=703,t.ringhalfleftarmenian=1369,t.ringhalfleftbelowcmb=796,t.ringhalfleftcentered=723,t.ringhalfright=702,t.ringhalfrightbelowcmb=825,t.ringhalfrightcentered=722,t.rinvertedbreve=531,t.rittorusquare=13137,t.rlinebelow=7775,t.rlongleg=636,t.rlonglegturned=634,t.rmonospace=65362,t.rohiragana=12429,t.rokatakana=12525,t.rokatakanahalfwidth=65435,t.roruathai=3619,t.rparen=9389,t.rrabengali=2524,t.rradeva=2353,t.rragurmukhi=2652,t.rreharabic=1681,t.rrehfinalarabic=64397,t.rrvocalicbengali=2528,t.rrvocalicdeva=2400,t.rrvocalicgujarati=2784,t.rrvocalicvowelsignbengali=2500,t.rrvocalicvowelsigndeva=2372,t.rrvocalicvowelsigngujarati=2756,t.rsuperior=63217,t.rtblock=9616,t.rturned=633,t.rturnedsuperior=692,t.ruhiragana=12427,t.rukatakana=12523,t.rukatakanahalfwidth=65433,t.rupeemarkbengali=2546,t.rupeesignbengali=2547,t.rupiah=63197,t.ruthai=3620,t.rvocalicbengali=2443,t.rvocalicdeva=2315,t.rvocalicgujarati=2699,t.rvocalicvowelsignbengali=2499,t.rvocalicvowelsigndeva=2371,t.rvocalicvowelsigngujarati=2755,t.s=115,t.sabengali=2488,t.sacute=347,t.sacutedotaccent=7781,t.sadarabic=1589,t.sadeva=2360,t.sadfinalarabic=65210,t.sadinitialarabic=65211,t.sadmedialarabic=65212,t.sagujarati=2744,t.sagurmukhi=2616,t.sahiragana=12373,t.sakatakana=12469,t.sakatakanahalfwidth=65403,t.sallallahoualayhewasallamarabic=65018,t.samekh=1505,t.samekhdagesh=64321,t.samekhdageshhebrew=64321,t.samekhhebrew=1505,t.saraaathai=3634,t.saraaethai=3649,t.saraaimaimalaithai=3652,t.saraaimaimuanthai=3651,t.saraamthai=3635,t.saraathai=3632,t.saraethai=3648,t.saraiileftthai=63622,t.saraiithai=3637,t.saraileftthai=63621,t.saraithai=3636,t.saraothai=3650,t.saraueeleftthai=63624,t.saraueethai=3639,t.saraueleftthai=63623,t.sarauethai=3638,t.sarauthai=3640,t.sarauuthai=3641,t.sbopomofo=12569,t.scaron=353,t.scarondotaccent=7783,t.scedilla=351,t.schwa=601,t.schwacyrillic=1241,t.schwadieresiscyrillic=1243,t.schwahook=602,t.scircle=9442,t.scircumflex=349,t.scommaaccent=537,t.sdotaccent=7777,t.sdotbelow=7779,t.sdotbelowdotaccent=7785,t.seagullbelowcmb=828,t.second=8243,t.secondtonechinese=714,t.section=167,t.seenarabic=1587,t.seenfinalarabic=65202,t.seeninitialarabic=65203,t.seenmedialarabic=65204,t.segol=1462,t.segol13=1462,t.segol1f=1462,t.segol2c=1462,t.segolhebrew=1462,t.segolnarrowhebrew=1462,t.segolquarterhebrew=1462,t.segoltahebrew=1426,t.segolwidehebrew=1462,t.seharmenian=1405,t.sehiragana=12379,t.sekatakana=12475,t.sekatakanahalfwidth=65406,t.semicolon=59,t.semicolonarabic=1563,t.semicolonmonospace=65307,t.semicolonsmall=65108,t.semivoicedmarkkana=12444,t.semivoicedmarkkanahalfwidth=65439,t.sentisquare=13090,t.sentosquare=13091,t.seven=55,t.sevenarabic=1639,t.sevenbengali=2541,t.sevencircle=9318,t.sevencircleinversesansserif=10128,t.sevendeva=2413,t.seveneighths=8542,t.sevengujarati=2797,t.sevengurmukhi=2669,t.sevenhackarabic=1639,t.sevenhangzhou=12327,t.sevenideographicparen=12838,t.seveninferior=8327,t.sevenmonospace=65303,t.sevenoldstyle=63287,t.sevenparen=9338,t.sevenperiod=9358,t.sevenpersian=1783,t.sevenroman=8566,t.sevensuperior=8311,t.seventeencircle=9328,t.seventeenparen=9348,t.seventeenperiod=9368,t.seventhai=3671,t.sfthyphen=173,t.shaarmenian=1399,t.shabengali=2486,t.shacyrillic=1096,t.shaddaarabic=1617,t.shaddadammaarabic=64609,t.shaddadammatanarabic=64606,t.shaddafathaarabic=64608,t.shaddakasraarabic=64610,t.shaddakasratanarabic=64607,t.shade=9618,t.shadedark=9619,t.shadelight=9617,t.shademedium=9618,t.shadeva=2358,t.shagujarati=2742,t.shagurmukhi=2614,t.shalshelethebrew=1427,t.shbopomofo=12565,t.shchacyrillic=1097,t.sheenarabic=1588,t.sheenfinalarabic=65206,t.sheeninitialarabic=65207,t.sheenmedialarabic=65208,t.sheicoptic=995,t.sheqel=8362,t.sheqelhebrew=8362,t.sheva=1456,t.sheva115=1456,t.sheva15=1456,t.sheva22=1456,t.sheva2e=1456,t.shevahebrew=1456,t.shevanarrowhebrew=1456,t.shevaquarterhebrew=1456,t.shevawidehebrew=1456,t.shhacyrillic=1211,t.shimacoptic=1005,t.shin=1513,t.shindagesh=64329,t.shindageshhebrew=64329,t.shindageshshindot=64300,t.shindageshshindothebrew=64300,t.shindageshsindot=64301,t.shindageshsindothebrew=64301,t.shindothebrew=1473,t.shinhebrew=1513,t.shinshindot=64298,t.shinshindothebrew=64298,t.shinsindot=64299,t.shinsindothebrew=64299,t.shook=642,t.sigma=963,t.sigma1=962,t.sigmafinal=962,t.sigmalunatesymbolgreek=1010,t.sihiragana=12375,t.sikatakana=12471,t.sikatakanahalfwidth=65404,t.siluqhebrew=1469,t.siluqlefthebrew=1469,t.similar=8764,t.sindothebrew=1474,t.siosacirclekorean=12916,t.siosaparenkorean=12820,t.sioscieuckorean=12670,t.sioscirclekorean=12902,t.sioskiyeokkorean=12666,t.sioskorean=12613,t.siosnieunkorean=12667,t.siosparenkorean=12806,t.siospieupkorean=12669,t.siostikeutkorean=12668,t.six=54,t.sixarabic=1638,t.sixbengali=2540,t.sixcircle=9317,t.sixcircleinversesansserif=10127,t.sixdeva=2412,t.sixgujarati=2796,t.sixgurmukhi=2668,t.sixhackarabic=1638,t.sixhangzhou=12326,t.sixideographicparen=12837,t.sixinferior=8326,t.sixmonospace=65302,t.sixoldstyle=63286,t.sixparen=9337,t.sixperiod=9357,t.sixpersian=1782,t.sixroman=8565,t.sixsuperior=8310,t.sixteencircle=9327,t.sixteencurrencydenominatorbengali=2553,t.sixteenparen=9347,t.sixteenperiod=9367,t.sixthai=3670,t.slash=47,t.slashmonospace=65295,t.slong=383,t.slongdotaccent=7835,t.smileface=9786,t.smonospace=65363,t.sofpasuqhebrew=1475,t.softhyphen=173,t.softsigncyrillic=1100,t.sohiragana=12381,t.sokatakana=12477,t.sokatakanahalfwidth=65407,t.soliduslongoverlaycmb=824,t.solidusshortoverlaycmb=823,t.sorusithai=3625,t.sosalathai=3624,t.sosothai=3595,t.sosuathai=3626,t.space=32,t.spacehackarabic=32,t.spade=9824,t.spadesuitblack=9824,t.spadesuitwhite=9828,t.sparen=9390,t.squarebelowcmb=827,t.squarecc=13252,t.squarecm=13213,t.squarediagonalcrosshatchfill=9641,t.squarehorizontalfill=9636,t.squarekg=13199,t.squarekm=13214,t.squarekmcapital=13262,t.squareln=13265,t.squarelog=13266,t.squaremg=13198,t.squaremil=13269,t.squaremm=13212,t.squaremsquared=13217,t.squareorthogonalcrosshatchfill=9638,t.squareupperlefttolowerrightfill=9639,t.squareupperrighttolowerleftfill=9640,t.squareverticalfill=9637,t.squarewhitewithsmallblack=9635,t.srsquare=13275,t.ssabengali=2487,t.ssadeva=2359,t.ssagujarati=2743,t.ssangcieuckorean=12617,t.ssanghieuhkorean=12677,t.ssangieungkorean=12672,t.ssangkiyeokkorean=12594,t.ssangnieunkorean=12645,t.ssangpieupkorean=12611,t.ssangsioskorean=12614,t.ssangtikeutkorean=12600,t.ssuperior=63218,t.sterling=163,t.sterlingmonospace=65505,t.strokelongoverlaycmb=822,t.strokeshortoverlaycmb=821,t.subset=8834,t.subsetnotequal=8842,t.subsetorequal=8838,t.succeeds=8827,t.suchthat=8715,t.suhiragana=12377,t.sukatakana=12473,t.sukatakanahalfwidth=65405,t.sukunarabic=1618,t.summation=8721,t.sun=9788,t.superset=8835,t.supersetnotequal=8843,t.supersetorequal=8839,t.svsquare=13276,t.syouwaerasquare=13180,t.t=116,t.tabengali=2468,t.tackdown=8868,t.tackleft=8867,t.tadeva=2340,t.tagujarati=2724,t.tagurmukhi=2596,t.taharabic=1591,t.tahfinalarabic=65218,t.tahinitialarabic=65219,t.tahiragana=12383,t.tahmedialarabic=65220,t.taisyouerasquare=13181,t.takatakana=12479,t.takatakanahalfwidth=65408,t.tatweelarabic=1600,t.tau=964,t.tav=1514,t.tavdages=64330,t.tavdagesh=64330,t.tavdageshhebrew=64330,t.tavhebrew=1514,t.tbar=359,t.tbopomofo=12554,t.tcaron=357,t.tccurl=680,t.tcedilla=355,t.tcheharabic=1670,t.tchehfinalarabic=64379,t.tchehinitialarabic=64380,t.tchehmedialarabic=64381,t.tcircle=9443,t.tcircumflexbelow=7793,t.tcommaaccent=355,t.tdieresis=7831,t.tdotaccent=7787,t.tdotbelow=7789,t.tecyrillic=1090,t.tedescendercyrillic=1197,t.teharabic=1578,t.tehfinalarabic=65174,t.tehhahinitialarabic=64674,t.tehhahisolatedarabic=64524,t.tehinitialarabic=65175,t.tehiragana=12390,t.tehjeeminitialarabic=64673,t.tehjeemisolatedarabic=64523,t.tehmarbutaarabic=1577,t.tehmarbutafinalarabic=65172,t.tehmedialarabic=65176,t.tehmeeminitialarabic=64676,t.tehmeemisolatedarabic=64526,t.tehnoonfinalarabic=64627,t.tekatakana=12486,t.tekatakanahalfwidth=65411,t.telephone=8481,t.telephoneblack=9742,t.telishagedolahebrew=1440,t.telishaqetanahebrew=1449,t.tencircle=9321,t.tenideographicparen=12841,t.tenparen=9341,t.tenperiod=9361,t.tenroman=8569,t.tesh=679,t.tet=1496,t.tetdagesh=64312,t.tetdageshhebrew=64312,t.tethebrew=1496,t.tetsecyrillic=1205,t.tevirhebrew=1435,t.tevirlefthebrew=1435,t.thabengali=2469,t.thadeva=2341,t.thagujarati=2725,t.thagurmukhi=2597,t.thalarabic=1584,t.thalfinalarabic=65196,t.thanthakhatlowleftthai=63640,t.thanthakhatlowrightthai=63639,t.thanthakhatthai=3660,t.thanthakhatupperleftthai=63638,t.theharabic=1579,t.thehfinalarabic=65178,t.thehinitialarabic=65179,t.thehmedialarabic=65180,t.thereexists=8707,t.therefore=8756,t.theta=952,t.theta1=977,t.thetasymbolgreek=977,t.thieuthacirclekorean=12921,t.thieuthaparenkorean=12825,t.thieuthcirclekorean=12907,t.thieuthkorean=12620,t.thieuthparenkorean=12811,t.thirteencircle=9324,t.thirteenparen=9344,t.thirteenperiod=9364,t.thonangmonthothai=3601,t.thook=429,t.thophuthaothai=3602,t.thorn=254,t.thothahanthai=3607,t.thothanthai=3600,t.thothongthai=3608,t.thothungthai=3606,t.thousandcyrillic=1154,t.thousandsseparatorarabic=1644,t.thousandsseparatorpersian=1644,t.three=51,t.threearabic=1635,t.threebengali=2537,t.threecircle=9314,t.threecircleinversesansserif=10124,t.threedeva=2409,t.threeeighths=8540,t.threegujarati=2793,t.threegurmukhi=2665,t.threehackarabic=1635,t.threehangzhou=12323,t.threeideographicparen=12834,t.threeinferior=8323,t.threemonospace=65299,t.threenumeratorbengali=2550,t.threeoldstyle=63283,t.threeparen=9334,t.threeperiod=9354,t.threepersian=1779,t.threequarters=190,t.threequartersemdash=63198,t.threeroman=8562,t.threesuperior=179,t.threethai=3667,t.thzsquare=13204,t.tihiragana=12385,t.tikatakana=12481,t.tikatakanahalfwidth=65409,t.tikeutacirclekorean=12912,t.tikeutaparenkorean=12816,t.tikeutcirclekorean=12898,t.tikeutkorean=12599,t.tikeutparenkorean=12802,t.tilde=732,t.tildebelowcmb=816,t.tildecmb=771,t.tildecomb=771,t.tildedoublecmb=864,t.tildeoperator=8764,t.tildeoverlaycmb=820,t.tildeverticalcmb=830,t.timescircle=8855,t.tipehahebrew=1430,t.tipehalefthebrew=1430,t.tippigurmukhi=2672,t.titlocyrilliccmb=1155,t.tiwnarmenian=1407,t.tlinebelow=7791,t.tmonospace=65364,t.toarmenian=1385,t.tohiragana=12392,t.tokatakana=12488,t.tokatakanahalfwidth=65412,t.tonebarextrahighmod=741,t.tonebarextralowmod=745,t.tonebarhighmod=742,t.tonebarlowmod=744,t.tonebarmidmod=743,t.tonefive=445,t.tonesix=389,t.tonetwo=424,t.tonos=900,t.tonsquare=13095,t.topatakthai=3599,t.tortoiseshellbracketleft=12308,t.tortoiseshellbracketleftsmall=65117,t.tortoiseshellbracketleftvertical=65081,t.tortoiseshellbracketright=12309,t.tortoiseshellbracketrightsmall=65118,t.tortoiseshellbracketrightvertical=65082,t.totaothai=3605,t.tpalatalhook=427,t.tparen=9391,t.trademark=8482,t.trademarksans=63722,t.trademarkserif=63195,t.tretroflexhook=648,t.triagdn=9660,t.triaglf=9668,t.triagrt=9658,t.triagup=9650,t.ts=678,t.tsadi=1510,t.tsadidagesh=64326,t.tsadidageshhebrew=64326,t.tsadihebrew=1510,t.tsecyrillic=1094,t.tsere=1461,t.tsere12=1461,t.tsere1e=1461,t.tsere2b=1461,t.tserehebrew=1461,t.tserenarrowhebrew=1461,t.tserequarterhebrew=1461,t.tserewidehebrew=1461,t.tshecyrillic=1115,t.tsuperior=63219,t.ttabengali=2463,t.ttadeva=2335,t.ttagujarati=2719,t.ttagurmukhi=2591,t.tteharabic=1657,t.ttehfinalarabic=64359,t.ttehinitialarabic=64360,t.ttehmedialarabic=64361,t.tthabengali=2464,t.tthadeva=2336,t.tthagujarati=2720,t.tthagurmukhi=2592,t.tturned=647,t.tuhiragana=12388,t.tukatakana=12484,t.tukatakanahalfwidth=65410,t.tusmallhiragana=12387,t.tusmallkatakana=12483,t.tusmallkatakanahalfwidth=65391,t.twelvecircle=9323,t.twelveparen=9343,t.twelveperiod=9363,t.twelveroman=8571,t.twentycircle=9331,t.twentyhangzhou=21316,t.twentyparen=9351,t.twentyperiod=9371,t.two=50,t.twoarabic=1634,t.twobengali=2536,t.twocircle=9313,t.twocircleinversesansserif=10123,t.twodeva=2408,t.twodotenleader=8229,t.twodotleader=8229,t.twodotleadervertical=65072,t.twogujarati=2792,t.twogurmukhi=2664,t.twohackarabic=1634,t.twohangzhou=12322,t.twoideographicparen=12833,t.twoinferior=8322,t.twomonospace=65298,t.twonumeratorbengali=2549,t.twooldstyle=63282,t.twoparen=9333,t.twoperiod=9353,t.twopersian=1778,t.tworoman=8561,t.twostroke=443,t.twosuperior=178,t.twothai=3666,t.twothirds=8532,t.u=117,t.uacute=250,t.ubar=649,t.ubengali=2441,t.ubopomofo=12584,t.ubreve=365,t.ucaron=468,t.ucircle=9444,t.ucircumflex=251,t.ucircumflexbelow=7799,t.ucyrillic=1091,t.udattadeva=2385,t.udblacute=369,t.udblgrave=533,t.udeva=2313,t.udieresis=252,t.udieresisacute=472,t.udieresisbelow=7795,t.udieresiscaron=474,t.udieresiscyrillic=1265,t.udieresisgrave=476,t.udieresismacron=470,t.udotbelow=7909,t.ugrave=249,t.ugujarati=2697,t.ugurmukhi=2569,t.uhiragana=12358,t.uhookabove=7911,t.uhorn=432,t.uhornacute=7913,t.uhorndotbelow=7921,t.uhorngrave=7915,t.uhornhookabove=7917,t.uhorntilde=7919,t.uhungarumlaut=369,t.uhungarumlautcyrillic=1267,t.uinvertedbreve=535,t.ukatakana=12454,t.ukatakanahalfwidth=65395,t.ukcyrillic=1145,t.ukorean=12636,t.umacron=363,t.umacroncyrillic=1263,t.umacrondieresis=7803,t.umatragurmukhi=2625,t.umonospace=65365,t.underscore=95,t.underscoredbl=8215,t.underscoremonospace=65343,t.underscorevertical=65075,t.underscorewavy=65103,t.union=8746,t.universal=8704,t.uogonek=371,t.uparen=9392,t.upblock=9600,t.upperdothebrew=1476,t.upsilon=965,t.upsilondieresis=971,t.upsilondieresistonos=944,t.upsilonlatin=650,t.upsilontonos=973,t.uptackbelowcmb=797,t.uptackmod=724,t.uragurmukhi=2675,t.uring=367,t.ushortcyrillic=1118,t.usmallhiragana=12357,t.usmallkatakana=12453,t.usmallkatakanahalfwidth=65385,t.ustraightcyrillic=1199,t.ustraightstrokecyrillic=1201,t.utilde=361,t.utildeacute=7801,t.utildebelow=7797,t.uubengali=2442,t.uudeva=2314,t.uugujarati=2698,t.uugurmukhi=2570,t.uumatragurmukhi=2626,t.uuvowelsignbengali=2498,t.uuvowelsigndeva=2370,t.uuvowelsigngujarati=2754,t.uvowelsignbengali=2497,t.uvowelsigndeva=2369,t.uvowelsigngujarati=2753,t.v=118,t.vadeva=2357,t.vagujarati=2741,t.vagurmukhi=2613,t.vakatakana=12535,t.vav=1493,t.vavdagesh=64309,t.vavdagesh65=64309,t.vavdageshhebrew=64309,t.vavhebrew=1493,t.vavholam=64331,t.vavholamhebrew=64331,t.vavvavhebrew=1520,t.vavyodhebrew=1521,t.vcircle=9445,t.vdotbelow=7807,t.vecyrillic=1074,t.veharabic=1700,t.vehfinalarabic=64363,t.vehinitialarabic=64364,t.vehmedialarabic=64365,t.vekatakana=12537,t.venus=9792,t.verticalbar=124,t.verticallineabovecmb=781,t.verticallinebelowcmb=809,t.verticallinelowmod=716,t.verticallinemod=712,t.vewarmenian=1406,t.vhook=651,t.vikatakana=12536,t.viramabengali=2509,t.viramadeva=2381,t.viramagujarati=2765,t.visargabengali=2435,t.visargadeva=2307,t.visargagujarati=2691,t.vmonospace=65366,t.voarmenian=1400,t.voicediterationhiragana=12446,t.voicediterationkatakana=12542,t.voicedmarkkana=12443,t.voicedmarkkanahalfwidth=65438,t.vokatakana=12538,t.vparen=9393,t.vtilde=7805,t.vturned=652,t.vuhiragana=12436,t.vukatakana=12532,t.w=119,t.wacute=7811,t.waekorean=12633,t.wahiragana=12431,t.wakatakana=12527,t.wakatakanahalfwidth=65436,t.wakorean=12632,t.wasmallhiragana=12430,t.wasmallkatakana=12526,t.wattosquare=13143,t.wavedash=12316,t.wavyunderscorevertical=65076,t.wawarabic=1608,t.wawfinalarabic=65262,t.wawhamzaabovearabic=1572,t.wawhamzaabovefinalarabic=65158,t.wbsquare=13277,t.wcircle=9446,t.wcircumflex=373,t.wdieresis=7813,t.wdotaccent=7815,t.wdotbelow=7817,t.wehiragana=12433,t.weierstrass=8472,t.wekatakana=12529,t.wekorean=12638,t.weokorean=12637,t.wgrave=7809,t.whitebullet=9702,t.whitecircle=9675,t.whitecircleinverse=9689,t.whitecornerbracketleft=12302,t.whitecornerbracketleftvertical=65091,t.whitecornerbracketright=12303,t.whitecornerbracketrightvertical=65092,t.whitediamond=9671,t.whitediamondcontainingblacksmalldiamond=9672,t.whitedownpointingsmalltriangle=9663,t.whitedownpointingtriangle=9661,t.whiteleftpointingsmalltriangle=9667,t.whiteleftpointingtriangle=9665,t.whitelenticularbracketleft=12310,t.whitelenticularbracketright=12311,t.whiterightpointingsmalltriangle=9657,t.whiterightpointingtriangle=9655,t.whitesmallsquare=9643,t.whitesmilingface=9786,t.whitesquare=9633,t.whitestar=9734,t.whitetelephone=9743,t.whitetortoiseshellbracketleft=12312,t.whitetortoiseshellbracketright=12313,t.whiteuppointingsmalltriangle=9653,t.whiteuppointingtriangle=9651,t.wihiragana=12432,t.wikatakana=12528,t.wikorean=12639,t.wmonospace=65367,t.wohiragana=12434,t.wokatakana=12530,t.wokatakanahalfwidth=65382,t.won=8361,t.wonmonospace=65510,t.wowaenthai=3623,t.wparen=9394,t.wring=7832,t.wsuperior=695,t.wturned=653,t.wynn=447,t.x=120,t.xabovecmb=829,t.xbopomofo=12562,t.xcircle=9447,t.xdieresis=7821,t.xdotaccent=7819,t.xeharmenian=1389,t.xi=958,t.xmonospace=65368,t.xparen=9395,t.xsuperior=739,t.y=121,t.yaadosquare=13134,t.yabengali=2479,t.yacute=253,t.yadeva=2351,t.yaekorean=12626,t.yagujarati=2735,t.yagurmukhi=2607,t.yahiragana=12420,t.yakatakana=12516,t.yakatakanahalfwidth=65428,t.yakorean=12625,t.yamakkanthai=3662,t.yasmallhiragana=12419,t.yasmallkatakana=12515,t.yasmallkatakanahalfwidth=65388,t.yatcyrillic=1123,t.ycircle=9448,t.ycircumflex=375,t.ydieresis=255,t.ydotaccent=7823,t.ydotbelow=7925,t.yeharabic=1610,t.yehbarreearabic=1746,t.yehbarreefinalarabic=64431,t.yehfinalarabic=65266,t.yehhamzaabovearabic=1574,t.yehhamzaabovefinalarabic=65162,t.yehhamzaaboveinitialarabic=65163,t.yehhamzaabovemedialarabic=65164,t.yehinitialarabic=65267,t.yehmedialarabic=65268,t.yehmeeminitialarabic=64733,t.yehmeemisolatedarabic=64600,t.yehnoonfinalarabic=64660,t.yehthreedotsbelowarabic=1745,t.yekorean=12630,t.yen=165,t.yenmonospace=65509,t.yeokorean=12629,t.yeorinhieuhkorean=12678,t.yerahbenyomohebrew=1450,t.yerahbenyomolefthebrew=1450,t.yericyrillic=1099,t.yerudieresiscyrillic=1273,t.yesieungkorean=12673,t.yesieungpansioskorean=12675,t.yesieungsioskorean=12674,t.yetivhebrew=1434,t.ygrave=7923,t.yhook=436,t.yhookabove=7927,t.yiarmenian=1397,t.yicyrillic=1111,t.yikorean=12642,t.yinyang=9775,t.yiwnarmenian=1410,t.ymonospace=65369,t.yod=1497,t.yoddagesh=64313,t.yoddageshhebrew=64313,t.yodhebrew=1497,t.yodyodhebrew=1522,t.yodyodpatahhebrew=64287,t.yohiragana=12424,t.yoikorean=12681,t.yokatakana=12520,t.yokatakanahalfwidth=65430,t.yokorean=12635,t.yosmallhiragana=12423,t.yosmallkatakana=12519,t.yosmallkatakanahalfwidth=65390,t.yotgreek=1011,t.yoyaekorean=12680,t.yoyakorean=12679,t.yoyakthai=3618,t.yoyingthai=3597,t.yparen=9396,t.ypogegrammeni=890,t.ypogegrammenigreekcmb=837,t.yr=422,t.yring=7833,t.ysuperior=696,t.ytilde=7929,t.yturned=654,t.yuhiragana=12422,t.yuikorean=12684,t.yukatakana=12518,t.yukatakanahalfwidth=65429,t.yukorean=12640,t.yusbigcyrillic=1131,t.yusbigiotifiedcyrillic=1133,t.yuslittlecyrillic=1127,t.yuslittleiotifiedcyrillic=1129,t.yusmallhiragana=12421,t.yusmallkatakana=12517,t.yusmallkatakanahalfwidth=65389,t.yuyekorean=12683,t.yuyeokorean=12682,t.yyabengali=2527,t.yyadeva=2399,t.z=122,t.zaarmenian=1382,t.zacute=378,t.zadeva=2395,t.zagurmukhi=2651,t.zaharabic=1592,t.zahfinalarabic=65222,t.zahinitialarabic=65223,t.zahiragana=12374,t.zahmedialarabic=65224,t.zainarabic=1586,t.zainfinalarabic=65200,t.zakatakana=12470,t.zaqefgadolhebrew=1429,t.zaqefqatanhebrew=1428,t.zarqahebrew=1432,t.zayin=1494,t.zayindagesh=64310,t.zayindageshhebrew=64310,t.zayinhebrew=1494,t.zbopomofo=12567,t.zcaron=382,t.zcircle=9449,t.zcircumflex=7825,t.zcurl=657,t.zdot=380,t.zdotaccent=380,t.zdotbelow=7827,t.zecyrillic=1079,t.zedescendercyrillic=1177,t.zedieresiscyrillic=1247,t.zehiragana=12380,t.zekatakana=12476,t.zero=48,t.zeroarabic=1632,t.zerobengali=2534,t.zerodeva=2406,t.zerogujarati=2790,t.zerogurmukhi=2662,t.zerohackarabic=1632,t.zeroinferior=8320,t.zeromonospace=65296,t.zerooldstyle=63280,t.zeropersian=1776,t.zerosuperior=8304,t.zerothai=3664,t.zerowidthjoiner=65279,t.zerowidthnonjoiner=8204,t.zerowidthspace=8203,t.zeta=950,t.zhbopomofo=12563,t.zhearmenian=1386,t.zhebrevecyrillic=1218,t.zhecyrillic=1078,t.zhedescendercyrillic=1175,t.zhedieresiscyrillic=1245,t.zihiragana=12376,t.zikatakana=12472,t.zinorhebrew=1454,t.zlinebelow=7829,t.zmonospace=65370,t.zohiragana=12382,t.zokatakana=12478,t.zparen=9397,t.zretroflexhook=656,t.zstroke=438,t.zuhiragana=12378,t.zukatakana=12474,t[".notdef"]=0,t.angbracketleftbig=9001,t.angbracketleftBig=9001,t.angbracketleftbigg=9001,t.angbracketleftBigg=9001,t.angbracketrightBig=9002,t.angbracketrightbig=9002,t.angbracketrightBigg=9002,t.angbracketrightbigg=9002,t.arrowhookleft=8618,t.arrowhookright=8617,t.arrowlefttophalf=8636,t.arrowleftbothalf=8637,t.arrownortheast=8599,t.arrownorthwest=8598,t.arrowrighttophalf=8640,t.arrowrightbothalf=8641,t.arrowsoutheast=8600,t.arrowsouthwest=8601,t.backslashbig=8726,t.backslashBig=8726,t.backslashBigg=8726,t.backslashbigg=8726,t.bardbl=8214,t.bracehtipdownleft=65079,t.bracehtipdownright=65079,t.bracehtipupleft=65080,t.bracehtipupright=65080,t.braceleftBig=123,t.braceleftbig=123,t.braceleftbigg=123,t.braceleftBigg=123,t.bracerightBig=125,t.bracerightbig=125,t.bracerightbigg=125,t.bracerightBigg=125,t.bracketleftbig=91,t.bracketleftBig=91,t.bracketleftbigg=91,t.bracketleftBigg=91,t.bracketrightBig=93,t.bracketrightbig=93,t.bracketrightbigg=93,t.bracketrightBigg=93,t.ceilingleftbig=8968,t.ceilingleftBig=8968,t.ceilingleftBigg=8968,t.ceilingleftbigg=8968,t.ceilingrightbig=8969,t.ceilingrightBig=8969,t.ceilingrightbigg=8969,t.ceilingrightBigg=8969,t.circledotdisplay=8857,t.circledottext=8857,t.circlemultiplydisplay=8855,t.circlemultiplytext=8855,t.circleplusdisplay=8853,t.circleplustext=8853,t.contintegraldisplay=8750,t.contintegraltext=8750,t.coproductdisplay=8720,t.coproducttext=8720,t.floorleftBig=8970,t.floorleftbig=8970,t.floorleftbigg=8970,t.floorleftBigg=8970,t.floorrightbig=8971,t.floorrightBig=8971,t.floorrightBigg=8971,t.floorrightbigg=8971,t.hatwide=770,t.hatwider=770,t.hatwidest=770,t.intercal=7488,t.integraldisplay=8747,t.integraltext=8747,t.intersectiondisplay=8898,t.intersectiontext=8898,t.logicalanddisplay=8743,t.logicalandtext=8743,t.logicalordisplay=8744,t.logicalortext=8744,t.parenleftBig=40,t.parenleftbig=40,t.parenleftBigg=40,t.parenleftbigg=40,t.parenrightBig=41,t.parenrightbig=41,t.parenrightBigg=41,t.parenrightbigg=41,t.prime=8242,t.productdisplay=8719,t.producttext=8719,t.radicalbig=8730,t.radicalBig=8730,t.radicalBigg=8730,t.radicalbigg=8730,t.radicalbt=8730,t.radicaltp=8730,t.radicalvertex=8730,t.slashbig=47,t.slashBig=47,t.slashBigg=47,t.slashbigg=47,t.summationdisplay=8721,t.summationtext=8721,t.tildewide=732,t.tildewider=732,t.tildewidest=732,t.uniondisplay=8899,t.unionmultidisplay=8846,t.unionmultitext=8846,t.unionsqdisplay=8852,t.unionsqtext=8852,t.uniontext=8899,t.vextenddouble=8741,t.vextendsingle=8739}),yy=Pe(function(t){t.space=32,t.a1=9985,t.a2=9986,t.a202=9987,t.a3=9988,t.a4=9742,t.a5=9990,t.a119=9991,t.a118=9992,t.a117=9993,t.a11=9755,t.a12=9758,t.a13=9996,t.a14=9997,t.a15=9998,t.a16=9999,t.a105=1e4,t.a17=10001,t.a18=10002,t.a19=10003,t.a20=10004,t.a21=10005,t.a22=10006,t.a23=10007,t.a24=10008,t.a25=10009,t.a26=10010,t.a27=10011,t.a28=10012,t.a6=10013,t.a7=10014,t.a8=10015,t.a9=10016,t.a10=10017,t.a29=10018,t.a30=10019,t.a31=10020,t.a32=10021,t.a33=10022,t.a34=10023,t.a35=9733,t.a36=10025,t.a37=10026,t.a38=10027,t.a39=10028,t.a40=10029,t.a41=10030,t.a42=10031,t.a43=10032,t.a44=10033,t.a45=10034,t.a46=10035,t.a47=10036,t.a48=10037,t.a49=10038,t.a50=10039,t.a51=10040,t.a52=10041,t.a53=10042,t.a54=10043,t.a55=10044,t.a56=10045,t.a57=10046,t.a58=10047,t.a59=10048,t.a60=10049,t.a61=10050,t.a62=10051,t.a63=10052,t.a64=10053,t.a65=10054,t.a66=10055,t.a67=10056,t.a68=10057,t.a69=10058,t.a70=10059,t.a71=9679,t.a72=10061,t.a73=9632,t.a74=10063,t.a203=10064,t.a75=10065,t.a204=10066,t.a76=9650,t.a77=9660,t.a78=9670,t.a79=10070,t.a81=9687,t.a82=10072,t.a83=10073,t.a84=10074,t.a97=10075,t.a98=10076,t.a99=10077,t.a100=10078,t.a101=10081,t.a102=10082,t.a103=10083,t.a104=10084,t.a106=10085,t.a107=10086,t.a108=10087,t.a112=9827,t.a111=9830,t.a110=9829,t.a109=9824,t.a120=9312,t.a121=9313,t.a122=9314,t.a123=9315,t.a124=9316,t.a125=9317,t.a126=9318,t.a127=9319,t.a128=9320,t.a129=9321,t.a130=10102,t.a131=10103,t.a132=10104,t.a133=10105,t.a134=10106,t.a135=10107,t.a136=10108,t.a137=10109,t.a138=10110,t.a139=10111,t.a140=10112,t.a141=10113,t.a142=10114,t.a143=10115,t.a144=10116,t.a145=10117,t.a146=10118,t.a147=10119,t.a148=10120,t.a149=10121,t.a150=10122,t.a151=10123,t.a152=10124,t.a153=10125,t.a154=10126,t.a155=10127,t.a156=10128,t.a157=10129,t.a158=10130,t.a159=10131,t.a160=10132,t.a161=8594,t.a163=8596,t.a164=8597,t.a196=10136,t.a165=10137,t.a192=10138,t.a166=10139,t.a167=10140,t.a168=10141,t.a169=10142,t.a170=10143,t.a171=10144,t.a172=10145,t.a173=10146,t.a162=10147,t.a174=10148,t.a175=10149,t.a176=10150,t.a177=10151,t.a178=10152,t.a179=10153,t.a193=10154,t.a180=10155,t.a199=10156,t.a181=10157,t.a200=10158,t.a182=10159,t.a201=10161,t.a183=10162,t.a184=10163,t.a197=10164,t.a185=10165,t.a194=10166,t.a198=10167,t.a186=10168,t.a195=10169,t.a187=10170,t.a188=10171,t.a189=10172,t.a190=10173,t.a191=10174,t.a89=10088,t.a90=10089,t.a93=10090,t.a94=10091,t.a91=10092,t.a92=10093,t.a205=10094,t.a85=10095,t.a206=10096,t.a86=10097,t.a87=10098,t.a88=10099,t.a95=10100,t.a96=10101,t[".notdef"]=0}),jy=Pe(function(t){t[63721]=169,t[63193]=169,t[63720]=174,t[63194]=174,t[63722]=8482,t[63195]=8482,t[63729]=9127,t[63730]=9128,t[63731]=9129,t[63740]=9131,t[63741]=9132,t[63742]=9133,t[63726]=9121,t[63727]=9122,t[63728]=9123,t[63737]=9124,t[63738]=9125,t[63739]=9126,t[63723]=9115,t[63724]=9116,t[63725]=9117,t[63734]=9118,t[63735]=9119,t[63736]=9120});d(Kg,"mapSpecialUnicodeValues");d(Oa,"getUnicodeForGlyph");Nf=[[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],[66000,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];d(Yg,"getUnicodeRangeFor");vy=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),pu=new Map;d(Xg,"getCharUnicodeCategory");d(Qg,"clearUnicodeCaches");Ni={FixedPitch:1,Serif:2,Symbolic:4,Nonsymbolic:32},bp=[".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"];d(X1,"recoverGlyphName");d(Q1,"type1FontGlyphMapping");d(Rn,"normalizeFontName");ky=Pe((t)=>{t[8211]=65074,t[8212]=65073,t[8229]=65072,t[8230]=65049,t[12289]=65041,t[12290]=65042,t[12296]=65087,t[12297]=65088,t[12298]=65085,t[12299]=65086,t[12300]=65089,t[12301]=65090,t[12302]=65091,t[12303]=65092,t[12304]=65083,t[12305]=65084,t[12308]=65081,t[12309]=65082,t[12310]=65047,t[12311]=65048,t[65103]=65076,t[65281]=65045,t[65288]=65077,t[65289]=65078,t[65292]=65040,t[65306]=65043,t[65307]=65044,t[65311]=65046,t[65339]=65095,t[65341]=65096,t[65343]=65075,t[65371]=65079,t[65373]=65080});d(Jg,"compileType3Glyph");qy=[".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"],xy=[".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"],Ay=[".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"],Ic=[".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"],tr=[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}],Cy=[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(t,e){t[e-2]=t[e-2]+t[e-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]-t[e-1]}},{id:"div",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]/t[e-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(t,e){t[e-1]=-t[e-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(t,e){t[e-2]=t[e-2]*t[e-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}];Vh=class Vh{static{d(this,"CFFParser")}constructor(t,e,s){this.bytes=t.getBytes(),this.properties=e,this.seacAnalysisEnabled=!!s}parse(){let t=this.properties,e=new J1;this.cff=e;let s=this.parseHeader(),i=this.parseIndex(s.endPos),n=this.parseIndex(i.endPos),a=this.parseIndex(n.endPos),r=this.parseIndex(a.endPos),o=this.parseDict(n.obj.get(0)),l=this.createDict(el,o,e.strings);e.header=s.obj,e.names=this.parseNameIndex(i.obj),e.strings=this.parseStringIndex(a.obj),e.topDict=l,e.globalSubrIndex=r.obj,this.parsePrivateDict(e.topDict),e.isCIDFont=l.hasName("ROS");let c=l.getByName("CharStrings"),h=this.parseIndex(c).obj;e.charStringCount=h.count;let f=l.getByName("FontMatrix");f&&(t.fontMatrix=f);let u=l.getByName("FontBBox");u&&(t.ascent=Math.max(u[3],u[1]),t.descent=Math.min(u[1],u[3]),t.ascentScaled=!0);let p,m;if(e.isCIDFont){let w=this.parseIndex(l.getByName("FDArray")).obj;for(let b=0,j=w.count;b<j;++b){let v=w.get(b),q=this.createDict(el,this.parseDict(v),e.strings);this.parsePrivateDict(q),e.fdArray.push(q)}m=null,p=this.parseCharsets(l.getByName("charset"),h.count,e.strings,!0),e.fdSelect=this.parseFDSelect(l.getByName("FDSelect"),h.count)}else p=this.parseCharsets(l.getByName("charset"),h.count,e.strings,!1),m=this.parseEncoding(l.getByName("Encoding"),t,e.strings,p.charset);e.charset=p,e.encoding=m;let g=this.parseCharStrings({charStrings:h,localSubrIndex:l.privateDict.subrsIndex,globalSubrIndex:r.obj,fdSelect:e.fdSelect,fdArray:e.fdArray,privateDict:l.privateDict});return e.charStrings=g.charStrings,e.seacs=g.seacs,e.widths=g.widths,e}parseHeader(){let t=this.bytes,e=t.length,s=0;for(;s<e&&t[s]!==1;)++s;if(s>=e)throw new Q("Invalid CFF header");s!==0&&(Wt("cff data is shifted"),t=t.subarray(s),this.bytes=t);let i=t[0],n=t[1],a=t[2],r=t[3];return{obj:new Z1(i,n,a,r),endPos:a}}parseDict(t){let e=0;function s(){let o=t[e++];return o===30?i():o===28?(o=nn(t,e),e+=2,o):o===29?(o=t[e++],o=o<<8|t[e++],o=o<<8|t[e++],o=o<<8|t[e++],o):o>=32&&o<=246?o-139:o>=247&&o<=250?(o-247)*256+t[e++]+108:o>=251&&o<=254?-((o-251)*256)-t[e++]-108:(T('CFFParser_parseDict: "'+o+'" is a reserved command.'),NaN)}d(s,"parseOperand");function i(){let o="",l=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],c=t.length;for(;e<c;){let h=t[e++],f=h>>4,u=h&15;if(f===15||(o+=l[f],u===15))break;o+=l[u]}return parseFloat(o)}d(i,"parseFloatOperand");let n=[],a=[];e=0;let r=t.length;for(;e<r;){let o=t[e];o<=21?(o===12&&(o=o<<8|t[++e]),a.push([o,n]),n=[],++e):n.push(s())}return a}parseIndex(t){let e=new Cn,s=this.bytes,i=s[t++]<<8|s[t++],n=[],a=t,r,o;if(i!==0){let l=s[t++],c=t+(i+1)*l-1;for(r=0,o=i+1;r<o;++r){let h=0;for(let f=0;f<l;++f)h<<=8,h+=s[t++];n.push(c+h)}a=n[i]}for(r=0,o=n.length-1;r<o;++r){let l=n[r],c=n[r+1];e.add(s.subarray(l,c))}return{obj:e,endPos:a}}parseNameIndex(t){let e=[];for(let s=0,i=t.count;s<i;++s){let n=t.get(s);e.push(Us(n))}return e}parseStringIndex(t){let e=new Wh;for(let s=0,i=t.count;s<i;++s){let n=t.get(s);e.add(Us(n))}return e}createDict(t,e,s){let i=new t(s);for(let[n,a]of e)i.setByKey(n,a);return i}parseCharString(t,e,s,i){if(!e||t.callDepth>Sy)return!1;let{stackSize:n,stack:a}=t,r=e.length;for(let o=0;o<r;){let l=e[o++],c=null;if(l===12){let h=e[o++];h===0?(e[o-2]=139,e[o-1]=22,n=0):c=Cy[h]}else if(l===28)a[n]=nn(e,o),o+=2,n++;else if(l===14){if(n>=4&&(n-=4,this.seacAnalysisEnabled))return t.seac=a.slice(n,n+4),!1;c=tr[l]}else if(l>=32&&l<=246)a[n]=l-139,n++;else if(l>=247&&l<=254)a[n]=l<251?(l-247<<8)+e[o]+108:-(l-251<<8)-e[o]-108,o++,n++;else if(l===255)a[n]=(e[o]<<24|e[o+1]<<16|e[o+2]<<8|e[o+3])/65536,o+=4,n++;else if(l===19||l===20){if(t.hints+=n>>1,t.hints===0){e.copyWithin(o-1,o,-1),o-=1,r-=1;continue}o+=t.hints+7>>3,n%=2,c=tr[l]}else if(l===10||l===29){let h=l===10?s:i;if(!h)return c=tr[l],T("Missing subrsIndex for "+c.id),!1;let f=32768;h.count<1240?f=107:h.count<33900&&(f=1131);let u=a[--n]+f;if(u<0||u>=h.count||isNaN(u))return c=tr[l],T("Out of bounds subrIndex for "+c.id),!1;if(t.stackSize=n,t.callDepth++,!this.parseCharString(t,h.get(u),s,i))return!1;t.callDepth--,n=t.stackSize;continue}else{if(l===11)return t.stackSize=n,!0;if(l===0&&o===e.length)e[o-1]=14,c=tr[14];else if(l===9){e.copyWithin(o-1,o,-1),o-=1,r-=1;continue}else c=tr[l]}if(c){if(c.stem&&(t.hints+=n>>1,l===3||l===23?t.hasVStems=!0:t.hasVStems&&(l===1||l===18)&&(T("CFF stem hints are in wrong order"),e[o-1]=l===1?3:23)),n<c.min)return T("Not enough parameters for "+c.id+"; actual: "+n+", expected: "+c.min),n===0?(e[o-1]=14,!0):!1;t.firstStackClearing&&c.stackClearing&&(t.firstStackClearing=!1,n-=c.min,n>=2&&c.stem?n%=2:n>1&&T("Found too many parameters for stack-clearing command"),n>0&&(t.width=a[n-1])),"stackDelta"in c?(("stackFn"in c)&&c.stackFn(a,n),n+=c.stackDelta):(c.stackClearing||c.resetStack)&&(n=0)}}return r<e.length&&e.fill(14,r),t.stackSize=n,!0}parseCharStrings({charStrings:t,localSubrIndex:e,globalSubrIndex:s,fdSelect:i,fdArray:n,privateDict:a}){let r=[],o=[],l=t.count;for(let c=0;c<l;c++){let h=t.get(c),f={callDepth:0,stackSize:0,stack:[],hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},u=!0,p=null,m=a;if(i&&n.length){let g=i.getFDIndex(c);g===-1&&(T("Glyph index is not in fd select."),u=!1),g>=n.length&&(T("Invalid fd index for glyph index."),u=!1),u&&(m=n[g].privateDict,p=m.subrsIndex)}else e&&(p=e);if(u&&(u=this.parseCharString(f,h,p,s)),f.width!==null){let g=m.getByName("nominalWidthX");o[c]=g+f.width}else{let g=m.getByName("defaultWidthX");o[c]=g}f.seac!==null&&(r[c]=f.seac),u||t.set(c,new Uint8Array([14]))}return{charStrings:t,seacs:r,widths:o}}emptyPrivateDictionary(t){let e=this.createDict(sl,[],t.strings);t.setByKey(18,[0,0]),t.privateDict=e}parsePrivateDict(t){if(!t.hasName("Private")){this.emptyPrivateDictionary(t);return}let e=t.getByName("Private");if(!Array.isArray(e)||e.length!==2){t.removeByName("Private");return}let s=e[0],i=e[1];if(s===0||i>=this.bytes.length){this.emptyPrivateDictionary(t);return}let n=i+s,a=this.bytes.subarray(i,n),r=this.parseDict(a),o=this.createDict(sl,r,t.strings);if(t.privateDict=o,o.getByName("ExpansionFactor")===0&&o.setByName("ExpansionFactor",0.06),!o.getByName("Subrs"))return;let l=o.getByName("Subrs"),c=i+l;if(l===0||c>=this.bytes.length){this.emptyPrivateDictionary(t);return}let h=this.parseIndex(c);o.subrsIndex=h.obj}parseCharsets(t,e,s,i){if(t===0)return new pr(!0,Lf.ISO_ADOBE,qy);if(t===1)return new pr(!0,Lf.EXPERT,xy);if(t===2)return new pr(!0,Lf.EXPERT_SUBSET,Ay);let n=this.bytes,a=t,r=n[t++],o=[i?0:".notdef"],l,c,h;switch(e-=1,r){case 0:for(h=0;h<e;h++)l=n[t++]<<8|n[t++],o.push(i?l:s.get(l));break;case 1:for(;o.length<=e;)for(l=n[t++]<<8|n[t++],c=n[t++],h=0;h<=c;h++)o.push(i?l++:s.get(l++));break;case 2:for(;o.length<=e;)for(l=n[t++]<<8|n[t++],c=n[t++]<<8|n[t++],h=0;h<=c;h++)o.push(i?l++:s.get(l++));break;default:throw new Q("Unknown charset format")}let f=t,u=n.subarray(a,f);return new pr(!1,r,o,u)}parseEncoding(t,e,s,i){let n=Object.create(null),a=this.bytes,r=!1,o,l,c,h=null;function f(){let u=a[t++];for(l=0;l<u;l++){let p=a[t++],m=(a[t++]<<8)+(a[t++]&255);n[p]=i.indexOf(s.get(m))}}if(d(f,"readSupplement"),t===0||t===1){r=!0,o=t;let u=t?Wg:En;for(l=0,c=i.length;l<c;l++){let p=u.indexOf(i[l]);p!==-1&&(n[p]=l)}}else{let u=t;switch(o=a[t++],o&127){case 0:let m=a[t++];for(l=1;l<=m;l++)n[a[t++]]=l;break;case 1:let g=a[t++],w=1;for(l=0;l<g;l++){let b=a[t++],j=a[t++];for(let v=b;v<=b+j;v++)n[v]=w++}break;default:throw new Q(`Unknown encoding format: ${o} in CFF`)}let p=t;o&128&&(a[u]&=127,f()),h=a.subarray(u,p)}return o&=127,new Zg(r,o,n,h)}parseFDSelect(t,e){let s=this.bytes,i=s[t++],n=[],a;switch(i){case 0:for(a=0;a<e;++a){let o=s[t++];n.push(o)}break;case 3:let r=s[t++]<<8|s[t++];for(a=0;a<r;++a){let o=s[t++]<<8|s[t++];a===0&&o!==0&&(T("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),o=0);let l=s[t++],c=s[t]<<8|s[t+1];for(let h=o;h<c;++h)n.push(l)}t+=2;break;default:throw new Q(`parseFDSelect: Unknown format "${i}".`)}if(n.length!==e)throw new Q("parseFDSelect: Invalid font data.");return new tb(i,n)}};J1=class J1{static{d(this,"CFF")}header=null;names=[];topDict=null;strings=new Wh;globalSubrIndex=null;encoding=null;charset=null;charStrings=null;fdArray=[];fdSelect=null;isCIDFont=!1;charStringCount=0;duplicateFirstGlyph(){if(this.charStrings.count>=65535){T("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}};Z1=class Z1{static{d(this,"CFFHeader")}constructor(t,e,s,i){this.major=t,this.minor=e,this.hdrSize=s,this.offSize=i}};Wh=class Wh{static{d(this,"CFFStrings")}strings=[];get(t){return t>=0&&t<=pc-1?Ic[t]:t-pc<=this.strings.length?this.strings[t-pc]:Ic[0]}getSID(t){let e=Ic.indexOf(t);return e!==-1?e:(e=this.strings.indexOf(t),e!==-1?e+pc:-1)}add(t){this.strings.push(t)}get count(){return this.strings.length}};Cn=class Cn{static{d(this,"CFFIndex")}objects=[];length=0;add(t){this.length+=t.length,this.objects.push(t)}set(t,e){this.length+=e.length-this.objects[t].length,this.objects[t]=e}get(t){return this.objects[t]}get count(){return this.objects.length}};td=class td{static{d(this,"CFFDict")}constructor(t,e){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=e,this.values=Object.create(null)}setByKey(t,e){if(!(t in this.keyToNameMap))return!1;if(e.length===0)return!0;for(let i of e)if(isNaN(i))return T(`Invalid CFFDict value: "${e}" for key "${t}".`),!0;let s=this.types[t];return(s==="num"||s==="sid"||s==="offset")&&(e=e[0]),this.values[t]=e,!0}setByName(t,e){if(!(t in this.nameToKeyMap))throw new Q(`Invalid dictionary name "${t}"`);this.values[this.nameToKeyMap[t]]=e}hasName(t){return this.nameToKeyMap[t]in this.values}getByName(t){if(!(t in this.nameToKeyMap))throw new Q(`Invalid dictionary name ${t}"`);let e=this.nameToKeyMap[t];return e in this.values?this.values[e]:this.defaults[e]}removeByName(t){delete this.values[this.nameToKeyMap[t]]}static createTables(t){let e={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(let s of t){let i=Array.isArray(s[0])?(s[0][0]<<8)+s[0][1]:s[0];e.keyToNameMap[i]=s[1],e.nameToKeyMap[s[1]]=i,e.types[i]=s[2],e.defaults[i]=s[3],e.opcodes[i]=Array.isArray(s[0])?s[0]:[s[0]],e.order.push(i)}return e}};Iy=[[[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"],[0.001,0,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]];el=class el extends td{static{d(this,"CFFTopDict")}static get tables(){return lt(this,"tables",this.createTables(Iy))}constructor(t){super(el.tables,t),this.privateDict=null}};Ty=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",0.039625],[[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",0.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];sl=class sl extends td{static{d(this,"CFFPrivateDict")}static get tables(){return lt(this,"tables",this.createTables(Ty))}constructor(t){super(sl.tables,t),this.subrsIndex=null}};Lf={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};pr=class pr{static{d(this,"CFFCharset")}constructor(t,e,s,i){this.predefined=t,this.format=e,this.charset=s,this.raw=i}};Zg=class Zg{static{d(this,"CFFEncoding")}constructor(t,e,s,i){this.predefined=t,this.format=e,this.encoding=s,this.raw=i}};tb=class tb{static{d(this,"CFFFDSelect")}constructor(t,e){this.format=t,this.fdSelect=e}getFDIndex(t){return t<0||t>=this.fdSelect.length?-1:this.fdSelect[t]}};mu=class mu{static{d(this,"CFFOffsetTracker")}offsets=Object.create(null);isTracking(t){return t in this.offsets}track(t,e){if(t in this.offsets)throw new Q(`Already tracking location of ${t}`);this.offsets[t]=e}offset(t){for(let e in this.offsets)this.offsets[e]+=t}setEntryLocation(t,e,s){if(!(t in this.offsets))throw new Q(`Not tracking location of ${t}`);let i=s.data,n=this.offsets[t],a=5;for(let r=0,o=e.length;r<o;++r){let l=r*a+n,c=l+1,h=l+2,f=l+3,u=l+4;if(i[l]!==29||i[c]!==0||i[h]!==0||i[f]!==0||i[u]!==0)throw new Q("writing to an offset that is not empty");let p=e[r];i[l]=29,i[c]=p>>24&255,i[h]=p>>16&255,i[f]=p>>8&255,i[u]=p&255}}};Cl=class Cl{static{d(this,"CFFCompiler")}constructor(t){this.cff=t}compile(){let t=this.cff,e={data:[],length:0,add(h){try{this.data.push(...h)}catch{this.data=this.data.concat(h)}this.length=this.data.length}},s=this.compileHeader(t.header);e.add(s);let i=this.compileNameIndex(t.names);if(e.add(i),t.isCIDFont&&t.topDict.hasName("FontMatrix")){let h=t.topDict.getByName("FontMatrix");t.topDict.removeByName("FontMatrix");for(let f of t.fdArray){let u=h.slice(0);f.hasName("FontMatrix")&&(u=de.transform(u,f.getByName("FontMatrix"))),f.setByName("FontMatrix",u)}}t.topDict.getByName("XUID")?.length>16&&t.topDict.removeByName("XUID"),t.topDict.setByName("charset",0);let n=this.compileTopDicts([t.topDict],e.length,t.isCIDFont);e.add(n.output);let a=n.trackers[0],r=this.compileStringIndex(t.strings.strings);e.add(r);let o=this.compileIndex(t.globalSubrIndex);if(e.add(o),t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)a.setEntryLocation("Encoding",[t.encoding.format],e);else{let h=this.compileEncoding(t.encoding);a.setEntryLocation("Encoding",[e.length],e),e.add(h)}let l=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);a.setEntryLocation("charset",[e.length],e),e.add(l);let c=this.compileCharStrings(t.charStrings);if(a.setEntryLocation("CharStrings",[e.length],e),e.add(c),t.isCIDFont){a.setEntryLocation("FDSelect",[e.length],e);let h=this.compileFDSelect(t.fdSelect);e.add(h),n=this.compileTopDicts(t.fdArray,e.length,!0),a.setEntryLocation("FDArray",[e.length],e),e.add(n.output);let f=n.trackers;this.compilePrivateDicts(t.fdArray,f,e)}return this.compilePrivateDicts([t.topDict],[a],e),e.add([0]),e.data}encodeNumber(t){return Number.isInteger(t)?this.encodeInteger(t):this.encodeFloat(t)}static get EncodeFloatRegExp(){return lt(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(t){let e=t.toString(),s=Cl.EncodeFloatRegExp.exec(e);if(s){let o=parseFloat("1e"+((s[2]?+s[2]:0)+s[1].length));e=(Math.round(t*o)/o).toString()}let i="",n,a;for(n=0,a=e.length;n<a;++n){let o=e[n];o==="e"?i+=e[++n]==="-"?"c":"b":o==="."?i+="a":o==="-"?i+="e":i+=o}i+=i.length&1?"f":"ff";let r=[30];for(n=0,a=i.length;n<a;n+=2)r.push(parseInt(i.substring(n,n+2),16));return r}encodeInteger(t){let e;return t>=-107&&t<=107?e=[t+139]:t>=108&&t<=1131?(t-=108,e=[(t>>8)+247,t&255]):t>=-1131&&t<=-108?(t=-t-108,e=[(t>>8)+251,t&255]):t>=-32768&&t<=32767?e=[28,t>>8&255,t&255]:e=[29,t>>24&255,t>>16&255,t>>8&255,t&255],e}compileHeader(t){return[t.major,t.minor,4,t.offSize]}compileNameIndex(t){let e=new Cn;for(let s of t){let i=Math.min(s.length,127),n=Array(i);for(let a=0;a<i;a++){let r=s[a];(r<"!"||r>"~"||r==="["||r==="]"||r==="("||r===")"||r==="{"||r==="}"||r==="<"||r===">"||r==="/"||r==="%")&&(r="_"),n[a]=r}n=n.join(""),n===""&&(n="Bad_Font_Name"),e.add(Fs(n))}return this.compileIndex(e)}compileTopDicts(t,e,s){let i=[],n=new Cn;for(let a of t){s&&(a.removeByName("CIDFontVersion"),a.removeByName("CIDFontRevision"),a.removeByName("CIDFontType"),a.removeByName("CIDCount"),a.removeByName("UIDBase"));let r=new mu,o=this.compileDict(a,r);i.push(r),n.add(o),r.offset(e)}return n=this.compileIndex(n,i),{trackers:i,output:n}}compilePrivateDicts(t,e,s){for(let i=0,n=t.length;i<n;++i){let a=t[i],r=a.privateDict;if(!r||!a.hasName("Private"))throw new Q("There must be a private dictionary.");let o=new mu,l=this.compileDict(r,o),c=s.length;if(o.offset(c),l.length||(c=0),e[i].setEntryLocation("Private",[l.length,c],s),s.add(l),r.subrsIndex&&r.hasName("Subrs")){let h=this.compileIndex(r.subrsIndex);o.setEntryLocation("Subrs",[l.length],s),s.add(h)}}}compileDict(t,e){let s=[];for(let i of t.order){if(!(i in t.values))continue;let n=t.values[i],a=t.types[i];if(Array.isArray(a)||(a=[a]),Array.isArray(n)||(n=[n]),n.length!==0){for(let r=0,o=a.length;r<o;++r){let l=a[r],c=n[r];switch(l){case"num":case"sid":s.push(...this.encodeNumber(c));break;case"offset":let h=t.keyToNameMap[i];e.isTracking(h)||e.track(h,s.length),s.push(29,0,0,0,0);break;case"array":case"delta":s.push(...this.encodeNumber(c));for(let f=1,u=n.length;f<u;++f)s.push(...this.encodeNumber(n[f]));break;default:throw new Q(`Unknown data type of ${l}`)}}s.push(...t.opcodes[i])}}return s}compileStringIndex(t){let e=new Cn;for(let s of t)e.add(Fs(s));return this.compileIndex(e)}compileCharStrings(t){let e=new Cn;for(let s=0;s<t.count;s++){let i=t.get(s);if(i.length===0){e.add(new Uint8Array([139,14]));continue}e.add(i)}return this.compileIndex(e)}compileCharset(t,e,s,i){let n,a=e-1;if(i){let r=a-1;n=new Uint8Array([2,0,1,r>>8&255,r&255])}else{let r=1+a*2;n=new Uint8Array(r),n[0]=0;let o=0,l=t.charset.length,c=!1;for(let h=1;h<n.length;h+=2){let f=0;if(o<l){let u=t.charset[o++];f=s.getSID(u),f===-1&&(f=0,c||(c=!0,T(`Couldn't find ${u} in CFF strings`)))}n[h]=f>>8&255,n[h+1]=f&255}}return this.compileTypedArray(n)}compileEncoding(t){return this.compileTypedArray(t.raw)}compileFDSelect(t){let e=t.format,s,i;switch(e){case 0:for(s=new Uint8Array(1+t.fdSelect.length),s[0]=e,i=0;i<t.fdSelect.length;i++)s[i+1]=t.fdSelect[i];break;case 3:let n=0,a=t.fdSelect[0],r=[e,0,0,n>>8&255,n&255,a];for(i=1;i<t.fdSelect.length;i++){let l=t.fdSelect[i];l!==a&&(r.push(i>>8&255,i&255,l),a=l)}let o=(r.length-3)/3;r[1]=o>>8&255,r[2]=o&255,r.push(i>>8&255,i&255),s=new Uint8Array(r);break}return this.compileTypedArray(s)}compileTypedArray(t){return Array.from(t)}compileIndex(t,e=[]){let s=t.objects,i=s.length;if(i===0)return[0,0];let n=[i>>8&255,i&255],a=1,r;for(r=0;r<i;++r)a+=s[r].length;let o;a<256?o=1:a<65536?o=2:a<16777216?o=3:o=4,n.push(o);let l=1;for(r=0;r<i+1;r++)o===1?n.push(l&255):o===2?n.push(l>>8&255,l&255):o===3?n.push(l>>16&255,l>>8&255,l&255):n.push(l>>>24&255,l>>16&255,l>>8&255,l&255),s[r]&&(l+=s[r].length);for(r=0;r<i;r++)e[r]&&e[r].offset(n.length),n.push(...s[r]);return n}};il=Pe(function(t){t["Times-Roman"]="Times-Roman",t.Helvetica="Helvetica",t.Courier="Courier",t.Symbol="Symbol",t["Times-Bold"]="Times-Bold",t["Helvetica-Bold"]="Helvetica-Bold",t["Courier-Bold"]="Courier-Bold",t.ZapfDingbats="ZapfDingbats",t["Times-Italic"]="Times-Italic",t["Helvetica-Oblique"]="Helvetica-Oblique",t["Courier-Oblique"]="Courier-Oblique",t["Times-BoldItalic"]="Times-BoldItalic",t["Helvetica-BoldOblique"]="Helvetica-BoldOblique",t["Courier-BoldOblique"]="Courier-BoldOblique",t.ArialNarrow="Helvetica",t["ArialNarrow-Bold"]="Helvetica-Bold",t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",t["ArialNarrow-Italic"]="Helvetica-Oblique",t.ArialBlack="Helvetica",t["ArialBlack-Bold"]="Helvetica-Bold",t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",t["ArialBlack-Italic"]="Helvetica-Oblique",t["Arial-Black"]="Helvetica",t["Arial-Black-Bold"]="Helvetica-Bold",t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",t["Arial-Black-Italic"]="Helvetica-Oblique",t.Arial="Helvetica",t["Arial-Bold"]="Helvetica-Bold",t["Arial-BoldItalic"]="Helvetica-BoldOblique",t["Arial-Italic"]="Helvetica-Oblique",t.ArialMT="Helvetica",t["Arial-BoldItalicMT"]="Helvetica-BoldOblique",t["Arial-BoldMT"]="Helvetica-Bold",t["Arial-ItalicMT"]="Helvetica-Oblique",t["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",t["Arial-BoldMT-Bold"]="Helvetica-Bold",t["Arial-ItalicMT-Italic"]="Helvetica-Oblique",t.ArialUnicodeMS="Helvetica",t["ArialUnicodeMS-Bold"]="Helvetica-Bold",t["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",t["ArialUnicodeMS-Italic"]="Helvetica-Oblique",t["Courier-BoldItalic"]="Courier-BoldOblique",t["Courier-Italic"]="Courier-Oblique",t.CourierNew="Courier",t["CourierNew-Bold"]="Courier-Bold",t["CourierNew-BoldItalic"]="Courier-BoldOblique",t["CourierNew-Italic"]="Courier-Oblique",t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",t["CourierNewPS-BoldMT"]="Courier-Bold",t["CourierNewPS-ItalicMT"]="Courier-Oblique",t.CourierNewPSMT="Courier",t["Helvetica-BoldItalic"]="Helvetica-BoldOblique",t["Helvetica-Italic"]="Helvetica-Oblique",t["HelveticaLTStd-Bold"]="Helvetica-Bold",t["Symbol-Bold"]="Symbol",t["Symbol-BoldItalic"]="Symbol",t["Symbol-Italic"]="Symbol",t.TimesNewRoman="Times-Roman",t["TimesNewRoman-Bold"]="Times-Bold",t["TimesNewRoman-BoldItalic"]="Times-BoldItalic",t["TimesNewRoman-Italic"]="Times-Italic",t.TimesNewRomanPS="Times-Roman",t["TimesNewRomanPS-Bold"]="Times-Bold",t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",t["TimesNewRomanPS-BoldMT"]="Times-Bold",t["TimesNewRomanPS-Italic"]="Times-Italic",t["TimesNewRomanPS-ItalicMT"]="Times-Italic",t.TimesNewRomanPSMT="Times-Roman",t["TimesNewRomanPSMT-Bold"]="Times-Bold",t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",t["TimesNewRomanPSMT-Italic"]="Times-Italic"}),Fy=Pe(function(t){t.Courier="FoxitFixed.pfb",t["Courier-Bold"]="FoxitFixedBold.pfb",t["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",t["Courier-Oblique"]="FoxitFixedItalic.pfb",t.Helvetica="LiberationSans-Regular.ttf",t["Helvetica-Bold"]="LiberationSans-Bold.ttf",t["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",t["Helvetica-Oblique"]="LiberationSans-Italic.ttf",t["Times-Roman"]="FoxitSerif.pfb",t["Times-Bold"]="FoxitSerifBold.pfb",t["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",t["Times-Italic"]="FoxitSerifItalic.pfb",t.Symbol="FoxitSymbol.pfb",t.ZapfDingbats="FoxitDingbats.pfb",t["LiberationSans-Regular"]="LiberationSans-Regular.ttf",t["LiberationSans-Bold"]="LiberationSans-Bold.ttf",t["LiberationSans-Italic"]="LiberationSans-Italic.ttf",t["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}),gu=Pe(function(t){t.Calibri="Helvetica",t["Calibri-Bold"]="Helvetica-Bold",t["Calibri-BoldItalic"]="Helvetica-BoldOblique",t["Calibri-Italic"]="Helvetica-Oblique",t.CenturyGothic="Helvetica",t["CenturyGothic-Bold"]="Helvetica-Bold",t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",t["CenturyGothic-Italic"]="Helvetica-Oblique",t.ComicSansMS="Comic Sans MS",t["ComicSansMS-Bold"]="Comic Sans MS-Bold",t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",t["ComicSansMS-Italic"]="Comic Sans MS-Italic",t.GillSansMT="Helvetica",t["GillSansMT-Bold"]="Helvetica-Bold",t["GillSansMT-BoldItalic"]="Helvetica-BoldOblique",t["GillSansMT-Italic"]="Helvetica-Oblique",t.Impact="Helvetica",t["ItcSymbol-Bold"]="Helvetica-Bold",t["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",t["ItcSymbol-Book"]="Helvetica",t["ItcSymbol-BookItalic"]="Helvetica-Oblique",t["ItcSymbol-Medium"]="Helvetica",t["ItcSymbol-MediumItalic"]="Helvetica-Oblique",t.LucidaConsole="Courier",t["LucidaConsole-Bold"]="Courier-Bold",t["LucidaConsole-BoldItalic"]="Courier-BoldOblique",t["LucidaConsole-Italic"]="Courier-Oblique",t["LucidaSans-Demi"]="Helvetica-Bold",t["MS-Gothic"]="MS Gothic",t["MS-Gothic-Bold"]="MS Gothic-Bold",t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",t["MS-Gothic-Italic"]="MS Gothic-Italic",t["MS-Mincho"]="MS Mincho",t["MS-Mincho-Bold"]="MS Mincho-Bold",t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",t["MS-Mincho-Italic"]="MS Mincho-Italic",t["MS-PGothic"]="MS PGothic",t["MS-PGothic-Bold"]="MS PGothic-Bold",t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",t["MS-PGothic-Italic"]="MS PGothic-Italic",t["MS-PMincho"]="MS PMincho",t["MS-PMincho-Bold"]="MS PMincho-Bold",t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",t["MS-PMincho-Italic"]="MS PMincho-Italic",t.NuptialScript="Times-Italic",t.SegoeUISymbol="Helvetica"}),ed=Pe(function(t){t["Adobe Jenson"]=!0,t["Adobe Text"]=!0,t.Albertus=!0,t.Aldus=!0,t.Alexandria=!0,t.Algerian=!0,t["American Typewriter"]=!0,t.Antiqua=!0,t.Apex=!0,t.Arno=!0,t.Aster=!0,t.Aurora=!0,t.Baskerville=!0,t.Bell=!0,t.Bembo=!0,t["Bembo Schoolbook"]=!0,t.Benguiat=!0,t["Berkeley Old Style"]=!0,t["Bernhard Modern"]=!0,t["Berthold City"]=!0,t.Bodoni=!0,t["Bauer Bodoni"]=!0,t["Book Antiqua"]=!0,t.Bookman=!0,t["Bordeaux Roman"]=!0,t["Californian FB"]=!0,t.Calisto=!0,t.Calvert=!0,t.Capitals=!0,t.Cambria=!0,t.Cartier=!0,t.Caslon=!0,t.Catull=!0,t.Centaur=!0,t["Century Old Style"]=!0,t["Century Schoolbook"]=!0,t.Chaparral=!0,t["Charis SIL"]=!0,t.Cheltenham=!0,t["Cholla Slab"]=!0,t.Clarendon=!0,t.Clearface=!0,t.Cochin=!0,t.Colonna=!0,t["Computer Modern"]=!0,t["Concrete Roman"]=!0,t.Constantia=!0,t["Cooper Black"]=!0,t.Corona=!0,t.Ecotype=!0,t.Egyptienne=!0,t.Elephant=!0,t.Excelsior=!0,t.Fairfield=!0,t["FF Scala"]=!0,t.Folkard=!0,t.Footlight=!0,t.FreeSerif=!0,t["Friz Quadrata"]=!0,t.Garamond=!0,t.Gentium=!0,t.Georgia=!0,t.Gloucester=!0,t["Goudy Old Style"]=!0,t["Goudy Schoolbook"]=!0,t["Goudy Pro Font"]=!0,t.Granjon=!0,t["Guardian Egyptian"]=!0,t.Heather=!0,t.Hercules=!0,t["High Tower Text"]=!0,t.Hiroshige=!0,t["Hoefler Text"]=!0,t["Humana Serif"]=!0,t.Imprint=!0,t["Ionic No. 5"]=!0,t.Janson=!0,t.Joanna=!0,t.Korinna=!0,t.Lexicon=!0,t.LiberationSerif=!0,t["Liberation Serif"]=!0,t["Linux Libertine"]=!0,t.Literaturnaya=!0,t.Lucida=!0,t["Lucida Bright"]=!0,t.Melior=!0,t.Memphis=!0,t.Miller=!0,t.Minion=!0,t.Modern=!0,t["Mona Lisa"]=!0,t["Mrs Eaves"]=!0,t["MS Serif"]=!0,t["Museo Slab"]=!0,t["New York"]=!0,t["Nimbus Roman"]=!0,t["NPS Rawlinson Roadway"]=!0,t.NuptialScript=!0,t.Palatino=!0,t.Perpetua=!0,t.Plantin=!0,t["Plantin Schoolbook"]=!0,t.Playbill=!0,t["Poor Richard"]=!0,t["Rawlinson Roadway"]=!0,t.Renault=!0,t.Requiem=!0,t.Rockwell=!0,t.Roman=!0,t["Rotis Serif"]=!0,t.Sabon=!0,t.Scala=!0,t.Seagull=!0,t.Sistina=!0,t.Souvenir=!0,t.STIX=!0,t["Stone Informal"]=!0,t["Stone Serif"]=!0,t.Sylfaen=!0,t.Times=!0,t.Trajan=!0,t.Trinité=!0,t["Trump Mediaeval"]=!0,t.Utopia=!0,t["Vale Type"]=!0,t["Bitstream Vera"]=!0,t["Vera Serif"]=!0,t.Versailles=!0,t.Wanted=!0,t.Weiss=!0,t["Wide Latin"]=!0,t.Windsor=!0,t.XITS=!0}),bu=Pe(function(t){t.Dingbats=!0,t.Symbol=!0,t.ZapfDingbats=!0,t.Wingdings=!0,t["Wingdings-Bold"]=!0,t["Wingdings-Regular"]=!0}),yp=Pe(function(t){t[2]=10,t[3]=32,t[4]=33,t[5]=34,t[6]=35,t[7]=36,t[8]=37,t[9]=38,t[10]=39,t[11]=40,t[12]=41,t[13]=42,t[14]=43,t[15]=44,t[16]=45,t[17]=46,t[18]=47,t[19]=48,t[20]=49,t[21]=50,t[22]=51,t[23]=52,t[24]=53,t[25]=54,t[26]=55,t[27]=56,t[28]=57,t[29]=58,t[30]=894,t[31]=60,t[32]=61,t[33]=62,t[34]=63,t[35]=64,t[36]=65,t[37]=66,t[38]=67,t[39]=68,t[40]=69,t[41]=70,t[42]=71,t[43]=72,t[44]=73,t[45]=74,t[46]=75,t[47]=76,t[48]=77,t[49]=78,t[50]=79,t[51]=80,t[52]=81,t[53]=82,t[54]=83,t[55]=84,t[56]=85,t[57]=86,t[58]=87,t[59]=88,t[60]=89,t[61]=90,t[62]=91,t[63]=92,t[64]=93,t[65]=94,t[66]=95,t[67]=96,t[68]=97,t[69]=98,t[70]=99,t[71]=100,t[72]=101,t[73]=102,t[74]=103,t[75]=104,t[76]=105,t[77]=106,t[78]=107,t[79]=108,t[80]=109,t[81]=110,t[82]=111,t[83]=112,t[84]=113,t[85]=114,t[86]=115,t[87]=116,t[88]=117,t[89]=118,t[90]=119,t[91]=120,t[92]=121,t[93]=122,t[94]=123,t[95]=124,t[96]=125,t[97]=126,t[98]=196,t[99]=197,t[100]=199,t[101]=201,t[102]=209,t[103]=214,t[104]=220,t[105]=225,t[106]=224,t[107]=226,t[108]=228,t[109]=227,t[110]=229,t[111]=231,t[112]=233,t[113]=232,t[114]=234,t[115]=235,t[116]=237,t[117]=236,t[118]=238,t[119]=239,t[120]=241,t[121]=243,t[122]=242,t[123]=244,t[124]=246,t[125]=245,t[126]=250,t[127]=249,t[128]=251,t[129]=252,t[130]=8224,t[131]=176,t[132]=162,t[133]=163,t[134]=167,t[135]=8226,t[136]=182,t[137]=223,t[138]=174,t[139]=169,t[140]=8482,t[141]=180,t[142]=168,t[143]=8800,t[144]=198,t[145]=216,t[146]=8734,t[147]=177,t[148]=8804,t[149]=8805,t[150]=165,t[151]=181,t[152]=8706,t[153]=8721,t[154]=8719,t[156]=8747,t[157]=170,t[158]=186,t[159]=8486,t[160]=230,t[161]=248,t[162]=191,t[163]=161,t[164]=172,t[165]=8730,t[166]=402,t[167]=8776,t[168]=8710,t[169]=171,t[170]=187,t[171]=8230,t[179]=8220,t[180]=8221,t[181]=8216,t[182]=8217,t[200]=193,t[203]=205,t[207]=211,t[210]=218,t[223]=711,t[224]=321,t[225]=322,t[226]=352,t[227]=353,t[228]=381,t[229]=382,t[233]=221,t[234]=253,t[252]=263,t[253]=268,t[254]=269,t[258]=258,t[260]=260,t[261]=261,t[265]=280,t[266]=281,t[267]=282,t[268]=283,t[269]=313,t[275]=323,t[276]=324,t[278]=328,t[283]=344,t[284]=345,t[285]=346,t[286]=347,t[292]=367,t[295]=377,t[296]=378,t[298]=380,t[305]=963,t[306]=964,t[307]=966,t[308]=8215,t[309]=8252,t[310]=8319,t[311]=8359,t[312]=8592,t[313]=8593,t[337]=9552,t[493]=1039,t[494]=1040,t[570]=1040,t[571]=1041,t[572]=1042,t[573]=1043,t[574]=1044,t[575]=1045,t[576]=1046,t[577]=1047,t[578]=1048,t[579]=1049,t[580]=1050,t[581]=1051,t[582]=1052,t[583]=1053,t[584]=1054,t[585]=1055,t[586]=1056,t[587]=1057,t[588]=1058,t[589]=1059,t[590]=1060,t[591]=1061,t[592]=1062,t[593]=1063,t[594]=1064,t[595]=1065,t[596]=1066,t[597]=1067,t[598]=1068,t[599]=1069,t[600]=1070,t[601]=1071,t[602]=1072,t[603]=1073,t[604]=1074,t[605]=1075,t[606]=1076,t[607]=1077,t[608]=1078,t[609]=1079,t[610]=1080,t[611]=1081,t[612]=1082,t[613]=1083,t[614]=1084,t[615]=1085,t[616]=1086,t[617]=1087,t[618]=1088,t[619]=1089,t[620]=1090,t[621]=1091,t[622]=1092,t[623]=1093,t[624]=1094,t[625]=1095,t[626]=1096,t[627]=1097,t[628]=1098,t[629]=1099,t[630]=1100,t[631]=1101,t[632]=1102,t[633]=1103,t[672]=1488,t[673]=1489,t[674]=1490,t[675]=1491,t[676]=1492,t[677]=1493,t[678]=1494,t[679]=1495,t[680]=1496,t[681]=1497,t[682]=1498,t[683]=1499,t[684]=1500,t[685]=1501,t[686]=1502,t[687]=1503,t[688]=1504,t[689]=1505,t[690]=1506,t[691]=1507,t[692]=1508,t[693]=1509,t[694]=1510,t[695]=1511,t[696]=1512,t[697]=1513,t[698]=1514,t[705]=1524,t[706]=8362,t[710]=64288,t[711]=64298,t[759]=1617,t[761]=1776,t[763]=1778,t[775]=1652,t[777]=1764,t[778]=1780,t[779]=1781,t[780]=1782,t[782]=771,t[783]=64726,t[786]=8363,t[788]=8532,t[790]=768,t[791]=769,t[792]=768,t[795]=803,t[797]=64336,t[798]=64337,t[799]=64342,t[800]=64343,t[801]=64344,t[802]=64345,t[803]=64362,t[804]=64363,t[805]=64364,t[2424]=7821,t[2425]=7822,t[2426]=7823,t[2427]=7824,t[2428]=7825,t[2429]=7826,t[2430]=7827,t[2433]=7682,t[2678]=8045,t[2679]=8046,t[2830]=1552,t[2838]=686,t[2840]=751,t[2842]=753,t[2843]=754,t[2844]=755,t[2846]=757,t[2856]=767,t[2857]=848,t[2858]=849,t[2862]=853,t[2863]=854,t[2864]=855,t[2865]=861,t[2866]=862,t[2906]=7460,t[2908]=7462,t[2909]=7463,t[2910]=7464,t[2912]=7466,t[2913]=7467,t[2914]=7468,t[2916]=7470,t[2917]=7471,t[2918]=7472,t[2920]=7474,t[2921]=7475,t[2922]=7476,t[2924]=7478,t[2925]=7479,t[2926]=7480,t[2928]=7482,t[2929]=7483,t[2930]=7484,t[2932]=7486,t[2933]=7487,t[2934]=7488,t[2936]=7490,t[2937]=7491,t[2938]=7492,t[2940]=7494,t[2941]=7495,t[2942]=7496,t[2944]=7498,t[2946]=7500,t[2948]=7502,t[2950]=7504,t[2951]=7505,t[2952]=7506,t[2954]=7508,t[2955]=7509,t[2956]=7510,t[2958]=7512,t[2959]=7513,t[2960]=7514,t[2962]=7516,t[2963]=7517,t[2964]=7518,t[2966]=7520,t[2967]=7521,t[2968]=7522,t[2970]=7524,t[2971]=7525,t[2972]=7526,t[2974]=7528,t[2975]=7529,t[2976]=7530,t[2978]=1537,t[2979]=1538,t[2980]=1539,t[2982]=1549,t[2983]=1551,t[2984]=1552,t[2986]=1554,t[2987]=1555,t[2988]=1556,t[2990]=1623,t[2991]=1624,t[2995]=1775,t[2999]=1791,t[3002]=64290,t[3003]=64291,t[3004]=64292,t[3006]=64294,t[3007]=64295,t[3008]=64296,t[3011]=1900,t[3014]=8223,t[3015]=8244,t[3017]=7532,t[3018]=7533,t[3019]=7534,t[3075]=7590,t[3076]=7591,t[3079]=7594,t[3080]=7595,t[3083]=7598,t[3084]=7599,t[3087]=7602,t[3088]=7603,t[3091]=7606,t[3092]=7607,t[3095]=7610,t[3096]=7611,t[3099]=7614,t[3100]=7615,t[3103]=7618,t[3104]=7619,t[3107]=8337,t[3108]=8338,t[3116]=1884,t[3119]=1885,t[3120]=1885,t[3123]=1886,t[3124]=1886,t[3127]=1887,t[3128]=1887,t[3131]=1888,t[3132]=1888,t[3135]=1889,t[3136]=1889,t[3139]=1890,t[3140]=1890,t[3143]=1891,t[3144]=1891,t[3147]=1892,t[3148]=1892,t[3153]=580,t[3154]=581,t[3157]=584,t[3158]=585,t[3161]=588,t[3162]=589,t[3165]=891,t[3166]=892,t[3169]=1274,t[3170]=1275,t[3173]=1278,t[3174]=1279,t[3181]=7622,t[3182]=7623,t[3282]=11799,t[3316]=578,t[3379]=42785,t[3393]=1159,t[3416]=8377}),Ey=Pe(function(t){t[227]=322,t[264]=261,t[291]=346}),My=Pe(function(t){t[1]=32,t[4]=65,t[5]=192,t[6]=193,t[9]=196,t[17]=66,t[18]=67,t[21]=268,t[24]=68,t[28]=69,t[29]=200,t[30]=201,t[32]=282,t[38]=70,t[39]=71,t[44]=72,t[47]=73,t[48]=204,t[49]=205,t[58]=74,t[60]=75,t[62]=76,t[68]=77,t[69]=78,t[75]=79,t[76]=210,t[80]=214,t[87]=80,t[89]=81,t[90]=82,t[92]=344,t[94]=83,t[97]=352,t[100]=84,t[104]=85,t[109]=220,t[115]=86,t[116]=87,t[121]=88,t[122]=89,t[124]=221,t[127]=90,t[129]=381,t[258]=97,t[259]=224,t[260]=225,t[263]=228,t[268]=261,t[271]=98,t[272]=99,t[273]=263,t[275]=269,t[282]=100,t[286]=101,t[287]=232,t[288]=233,t[290]=283,t[295]=281,t[296]=102,t[336]=103,t[346]=104,t[349]=105,t[350]=236,t[351]=237,t[361]=106,t[364]=107,t[367]=108,t[371]=322,t[373]=109,t[374]=110,t[381]=111,t[382]=242,t[383]=243,t[386]=246,t[393]=112,t[395]=113,t[396]=114,t[398]=345,t[400]=115,t[401]=347,t[403]=353,t[410]=116,t[437]=117,t[442]=252,t[448]=118,t[449]=119,t[454]=120,t[455]=121,t[457]=253,t[460]=122,t[462]=382,t[463]=380,t[853]=44,t[855]=58,t[856]=46,t[876]=47,t[878]=45,t[882]=45,t[894]=40,t[895]=41,t[896]=91,t[897]=93,t[923]=64,t[940]=163,t[1004]=48,t[1005]=49,t[1006]=50,t[1007]=51,t[1008]=52,t[1009]=53,t[1010]=54,t[1011]=55,t[1012]=56,t[1013]=57,t[1081]=37,t[1085]=43,t[1086]=45});d(wu,"getStandardFontName");d(yu,"isKnownFontName");mr=class mr{static{d(this,"ToUnicodeMap")}constructor(t=[]){this._map=t}get length(){return this._map.length}forEach(t){for(let e in this._map)t(e,this._map[e].codePointAt(0))}has(t){return this._map[t]!==void 0}get(t){return this._map[t]}charCodeOf(t){let e=this._map;if(e.length<=65536)return e.indexOf(t);for(let s in e)if(e[s]===t)return s|0;return-1}amend(t){for(let e in t)this._map[e]=t[e]}};bi=class bi{static{d(this,"IdentityToUnicodeMap")}constructor(t,e){this.firstChar=t,this.lastChar=e}get length(){return this.lastChar+1-this.firstChar}forEach(t){for(let e=this.firstChar,s=this.lastChar;e<=s;e++)t(e,e)}has(t){return this.firstChar<=t&&t<=this.lastChar}get(t){if(this.firstChar<=t&&t<=this.lastChar)return String.fromCharCode(t)}charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}amend(t){Yt("Should not call amend()")}};Tc=class Tc{static{d(this,"CFFFont")}constructor(t,e){this.properties=e;let s=new Vh(t,e,Ar);this.cff=s.parse(),this.cff.duplicateFirstGlyph();let i=new Cl(this.cff);this.seacs=this.cff.seacs;try{this.data=i.compile()}catch{T("Failed to compile font "+e.loadedName),this.data=t}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){let t=this.cff,e=this.properties,{cidToGidMap:s,cMap:i}=e,n=t.charset.charset,a,r;if(e.composite){let l;if(s?.length>0){l=Object.create(null);for(let h=0,f=s.length;h<f;h++){let u=s[h];u!==void 0&&(l[u]=h)}}a=Object.create(null);let c;if(t.isCIDFont)for(r=0;r<n.length;r++){let h=n[r];c=i.charCodeOf(h),l?.[c]!==void 0&&(c=l[c]),a[c]=r}else for(r=0;r<t.charStrings.count;r++)c=i.charCodeOf(r),a[c]=r;return a}let o=t.encoding?t.encoding.encoding:null;return e.isInternalFont&&(o=e.defaultEncoding),a=Q1(e,o,n),a}hasGlyphId(t){return this.cff.hasGlyphId(t)}_createBuiltInEncoding(){let{charset:t,encoding:e}=this.cff;if(!t||!e)return;let s=t.charset,i=e.encoding,n=[];for(let a in i){let r=i[a];if(r>=0){let o=s[r];o&&(n[a]=o)}}n.length>0&&(this.properties.builtInEncoding=n)}};d(Wn,"getFloat214");d(rh,"getSubroutineBias");d(eb,"parseCmap");d(sb,"parseCff");d(ib,"parseGlyfTable");d(nl,"lookupCmap");d(sd,"compileGlyf");d(oh,"compileCharString");nb=class nb{static{d(this,"Commands")}cmds=[];transformStack=[];currentTransform=[1,0,0,1,0,0];add(t,e){if(e){let{currentTransform:s}=this;for(let i=0,n=e.length;i<n;i+=2)de.applyTransform(e,s,i);this.cmds.push(t,...e)}else this.cmds.push(t)}transform(t){this.currentTransform=de.transform(this.currentTransform,t)}translate(t,e){this.transform([1,0,0,1,t,e])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getPath(){return Ms.isFloat16ArraySupported?new Float16Array(this.cmds):new Float32Array(this.cmds)}};al=class al{static{d(this,"CompiledFont")}constructor(t){this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}static get NOOP(){return lt(this,"NOOP",Ms.isFloat16ArraySupported?new Float16Array(0):new Float32Array(0))}getPathJs(t){let{charCode:e,glyphId:s}=nl(this.cmap,t),i=this.compiledGlyphs[s],n;if(i===void 0){try{i=this.compileGlyph(this.glyphs[s],s)}catch(a){i=al.NOOP,n=a}this.compiledGlyphs[s]=i}if(this.compiledCharCodeToGlyphId[e]??=s,n)throw n;return i}compileGlyph(t,e){if(!t?.length||t[0]===14)return al.NOOP;let s=this.fontMatrix;if(this.isCFFCIDFont){let n=this.fdSelect.getFDIndex(e);n>=0&&n<this.fdArray.length?s=this.fdArray[n].getByName("FontMatrix")||Fa:T("Invalid fd index for glyph index.")}Fe(_s(s,6),"Expected a valid fontMatrix.");let i=new nb;return i.transform(s.slice()),this.compileGlyphImpl(t,i,e),i.add(Te.closePath),i.getPath()}compileGlyphImpl(){Yt("Children classes should implement this.")}hasBuiltPath(t){let{charCode:e,glyphId:s}=nl(this.cmap,t);return this.compiledGlyphs[s]!==void 0&&this.compiledCharCodeToGlyphId[e]!==void 0}};ab=class ab extends al{static{d(this,"TrueTypeCompiled")}constructor(t,e,s){super(s||[0.000488,0,0,0.000488,0,0]),this.glyphs=t,this.cmap=e}compileGlyphImpl(t,e){sd(t,e,this)}};rb=class rb extends al{static{d(this,"Type2Compiled")}constructor(t,e,s){super(s||[0.001,0,0,0.001,0,0]),this.glyphs=t.glyphs,this.gsubrs=t.gsubrs||[],this.subrs=t.subrs||[],this.cmap=e,this.glyphNameMap=an(),this.gsubrsBias=rh(this.gsubrs),this.subrsBias=rh(this.subrs),this.isCFFCIDFont=t.isCFFCIDFont,this.fdSelect=t.fdSelect,this.fdArray=t.fdArray}compileGlyphImpl(t,e,s){oh(t,e,this,s)}};ob=class ob{static{d(this,"FontRendererFactory")}static create(t,e){let s=new Uint8Array(t.data),i,n,a,r,o,l,c=te(s,4);for(let h=0,f=12;h<c;h++,f+=16){let u=Us(s.subarray(f,f+4)),p=we(s,f+8),m=we(s,f+12);switch(u){case"cmap":i=eb(s,p);break;case"glyf":n=s.subarray(p,p+m);break;case"loca":a=s.subarray(p,p+m);break;case"head":l=te(s,p+18),o=te(s,p+50);break;case"CFF ":r=sb(s,p,p+m,e);break}}if(n){let h=l?[1/l,0,0,1/l,0,0]:t.fontMatrix;return new ab(ib(n,a,o),i,h)}return new rb(r,i,t.fontMatrix)}};By=Pe(function(t){t.Courier=600,t["Courier-Bold"]=600,t["Courier-BoldOblique"]=600,t["Courier-Oblique"]=600,t.Helvetica=Pe(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1000,e.perthousand=1000,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1000,e.AE=1000,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1000,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1000,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-Bold"]=Pe(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1000,e.perthousand=1000,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1000,e.AE=1000,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1000,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1000,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-BoldOblique"]=Pe(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1000,e.perthousand=1000,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1000,e.AE=1000,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1000,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1000,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),t["Helvetica-Oblique"]=Pe(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1000,e.perthousand=1000,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1000,e.AE=1000,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1000,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1000,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),t.Symbol=Pe(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1000,e.arrowvertex=603,e.arrowhorizex=1000,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),t["Times-Roman"]=Pe(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1000,e.perthousand=1000,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1000,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-Bold"]=Pe(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1000,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1000,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1000,e.perthousand=1000,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1000,e.AE=1000,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1000,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1000,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-BoldItalic"]=Pe(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1000,e.perthousand=1000,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1000,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1000,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),t["Times-Italic"]=Pe(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1000,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),t.ZapfDingbats=Pe(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})}),Py=Pe(function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});lb=class lb{static{d(this,"GlyfTable")}constructor({glyfTable:t,isGlyphLocationsLong:e,locaTable:s,numGlyphs:i}){this.glyphs=[];let n=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new DataView(t.buffer,t.byteOffset,t.byteLength),r=e?4:2,o=e?n.getUint32(0):2*n.getUint16(0),l=0;for(let c=0;c<i;c++){l+=r;let h=e?n.getUint32(l):2*n.getUint16(l);if(h===o){this.glyphs.push(new rl({}));continue}let f=rl.parse(o,a);this.glyphs.push(f),o=h}}getSize(){return Math.sumPrecise(this.glyphs.map((t)=>t.getSize()+3&-4))}write(){let t=this.getSize(),e=new DataView(new ArrayBuffer(t)),s=t>131070,i=s?4:2,n=new DataView(new ArrayBuffer((this.glyphs.length+1)*i));s?n.setUint32(0,0):n.setUint16(0,0);let a=0,r=0;for(let o of this.glyphs)a+=o.write(a,e),a=a+3&-4,r+=i,s?n.setUint32(r,a):n.setUint16(r,a>>1);return{isLocationLong:s,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(e.buffer)}}scale(t){for(let e=0,s=this.glyphs.length;e<s;e++)this.glyphs[e].scale(t[e])}};rl=class rl{static{d(this,"Glyph")}constructor({header:t=null,simple:e=null,composites:s=null}){this.header=t,this.simple=e,this.composites=s}static parse(t,e){let[s,i]=id.parse(t,e);if(t+=s,i.numberOfContours<0){let a=[];for(;;){let[r,o]=ad.parse(t,e);if(t+=r,a.push(o),!(o.flags&_y))break}return new rl({header:i,composites:a})}let n=nd.parse(t,e,i.numberOfContours);return new rl({header:i,simple:n})}getSize(){if(!this.header)return 0;let t=this.simple?this.simple.getSize():Math.sumPrecise(this.composites.map((e)=>e.getSize()));return this.header.getSize()+t}write(t,e){if(!this.header)return 0;let s=t;if(t+=this.header.write(t,e),this.simple)t+=this.simple.write(t,e);else for(let i of this.composites)t+=i.write(t,e);return t-s}scale(t){if(!this.header)return;let e=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(e,t),this.simple)this.simple.scale(e,t);else for(let s of this.composites)s.scale(e,t)}};id=class id{static{d(this,"GlyphHeader")}constructor({numberOfContours:t,xMin:e,yMin:s,xMax:i,yMax:n}){this.numberOfContours=t,this.xMin=e,this.yMin=s,this.xMax=i,this.yMax=n}static parse(t,e){return[10,new id({numberOfContours:e.getInt16(t),xMin:e.getInt16(t+2),yMin:e.getInt16(t+4),xMax:e.getInt16(t+6),yMax:e.getInt16(t+8)})]}getSize(){return 10}write(t,e){return e.setInt16(t,this.numberOfContours),e.setInt16(t+2,this.xMin),e.setInt16(t+4,this.yMin),e.setInt16(t+6,this.xMax),e.setInt16(t+8,this.yMax),10}scale(t,e){this.xMin=Math.round(t+(this.xMin-t)*e),this.xMax=Math.round(t+(this.xMax-t)*e)}};cb=class cb{static{d(this,"Contour")}constructor({flags:t,xCoordinates:e,yCoordinates:s}){this.xCoordinates=e,this.yCoordinates=s,this.flags=t}};nd=class nd{static{d(this,"SimpleGlyph")}constructor({contours:t,instructions:e}){this.contours=t,this.instructions=e}static parse(t,e,s){let i=[];for(let g=0;g<s;g++){let w=e.getUint16(t);t+=2,i.push(w)}let n=i[s-1]+1,a=e.getUint16(t);t+=2;let r=new Uint8Array(e).slice(t,t+a);t+=a;let o=[];for(let g=0;g<n;t++,g++){let w=e.getUint8(t);if(o.push(w),w&jp){let b=e.getUint8(++t);w^=jp;for(let j=0;j<b;j++)o.push(w);g+=b}}let l=[],c=[],h=[],f=[],u=[],p=0,m=0;for(let g=0;g<n;g++){let w=o[g];if(w&mc){let b=e.getUint8(t++);m+=w&io?b:-b,c.push(m)}else w&io||(m+=e.getInt16(t),t+=2),c.push(m);i[p]===g&&(p++,l.push(c),c=[])}m=0,p=0;for(let g=0;g<n;g++){let w=o[g];if(w&gc){let b=e.getUint8(t++);m+=w&no?b:-b,h.push(m)}else w&no||(m+=e.getInt16(t),t+=2),h.push(m);f.push(w&Dy|w&Ry),i[p]===g&&(c=l[p],p++,u.push(new cb({flags:f,xCoordinates:c,yCoordinates:h})),h=[],f=[])}return new nd({contours:u,instructions:r})}getSize(){let t=this.contours.length*2+2+this.instructions.length,e=0,s=0;for(let i of this.contours){t+=i.flags.length;for(let n=0,a=i.xCoordinates.length;n<a;n++){let r=i.xCoordinates[n],o=i.yCoordinates[n],l=Math.abs(r-e);l>255?t+=2:l>0&&(t+=1),e=r,l=Math.abs(o-s),l>255?t+=2:l>0&&(t+=1),s=o}}return t}write(t,e){let s=t,i=[],n=[],a=[],r=0,o=0;for(let l of this.contours){for(let c=0,h=l.xCoordinates.length;c<h;c++){let f=l.flags[c],u=l.xCoordinates[c],p=u-r;if(p===0)f|=io,i.push(0);else{let g=Math.abs(p);g<=255?(f|=p>=0?mc|io:mc,i.push(g)):i.push(p)}r=u;let m=l.yCoordinates[c];if(p=m-o,p===0)f|=no,n.push(0);else{let g=Math.abs(p);g<=255?(f|=p>=0?gc|no:gc,n.push(g)):n.push(p)}o=m,a.push(f)}e.setUint16(t,i.length-1),t+=2}e.setUint16(t,this.instructions.length),t+=2,this.instructions.length&&(new Uint8Array(e.buffer,0,e.buffer.byteLength).set(this.instructions,t),t+=this.instructions.length);for(let l of a)e.setUint8(t++,l);for(let l=0,c=i.length;l<c;l++){let h=i[l],f=a[l];f&mc?e.setUint8(t++,h):f&io||(e.setInt16(t,h),t+=2)}for(let l=0,c=n.length;l<c;l++){let h=n[l],f=a[l];f&gc?e.setUint8(t++,h):f&no||(e.setInt16(t,h),t+=2)}return t-s}scale(t,e){for(let s of this.contours)if(s.xCoordinates.length!==0)for(let i=0,n=s.xCoordinates.length;i<n;i++)s.xCoordinates[i]=Math.round(t+(s.xCoordinates[i]-t)*e)}};ad=class ad{static{d(this,"CompositeGlyph")}constructor({flags:t,glyphIndex:e,argument1:s,argument2:i,transf:n,instructions:a}){this.flags=t,this.glyphIndex=e,this.argument1=s,this.argument2=i,this.transf=n,this.instructions=a}static parse(t,e){let s=t,i=[],n=e.getUint16(t),a=e.getUint16(t+2);t+=4;let r,o;n&ao?(n&bc?(r=e.getInt16(t),o=e.getInt16(t+2)):(r=e.getUint16(t),o=e.getUint16(t+2)),t+=4,n^=ao):(n&bc?(r=e.getInt8(t),o=e.getInt8(t+1)):(r=e.getUint8(t),o=e.getUint8(t+1)),t+=2),n&Hy?(i.push(e.getUint16(t)),t+=2):n&Oy?(i.push(e.getUint16(t),e.getUint16(t+2)),t+=4):n&Ny&&(i.push(e.getUint16(t),e.getUint16(t+2),e.getUint16(t+4),e.getUint16(t+6)),t+=8);let l=null;if(n&zf){let c=e.getUint16(t);t+=2,l=new Uint8Array(e).slice(t,t+c),t+=c}return[t-s,new ad({flags:n,glyphIndex:a,argument1:r,argument2:o,transf:i,instructions:l})]}getSize(){let t=4+this.transf.length*2;return this.flags&zf&&(t+=2+this.instructions.length),t+=2,this.flags&2?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,e){let s=t;return this.flags&bc?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=ao):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=ao),e.setUint16(t,this.flags),e.setUint16(t+2,this.glyphIndex),t+=4,this.flags&ao?(this.flags&bc?(e.setInt16(t,this.argument1),e.setInt16(t+2,this.argument2)):(e.setUint16(t,this.argument1),e.setUint16(t+2,this.argument2)),t+=4):(e.setUint8(t,this.argument1),e.setUint8(t+1,this.argument2),t+=2),this.flags&zf&&(e.setUint16(t,this.instructions.length),t+=2,this.instructions.length&&(new Uint8Array(e.buffer,0,e.buffer.byteLength).set(this.instructions,t),t+=this.instructions.length)),t-s}scale(t,e){}};d(ko,"writeInt16");d(Fc,"writeInt32");d(hb,"writeData");ol=class ol{static{d(this,"OpenTypeFileBuilder")}constructor(t){this.sfnt=t,this.tables=Object.create(null)}static getSearchParams(t,e){let s=1,i=0;for(;(s^t)>s;)s<<=1,i++;let n=s*e;return{range:n,entry:i,rangeShift:e*t-n}}toArray(){let t=this.sfnt,e=this.tables,s=Object.keys(e);s.sort();let i=s.length,n,a,r,o,l,c=vp+i*kp,h=[c];for(n=0;n<i;n++){o=e[s[n]];let p=(o.length+3&-4)>>>0;c+=p,h.push(c)}let f=new Uint8Array(c);for(n=0;n<i;n++)o=e[s[n]],hb(f,h[n],o);t==="true"&&(t=gs(65536)),f[0]=t.charCodeAt(0)&255,f[1]=t.charCodeAt(1)&255,f[2]=t.charCodeAt(2)&255,f[3]=t.charCodeAt(3)&255,ko(f,4,i);let u=ol.getSearchParams(i,16);for(ko(f,6,u.range),ko(f,8,u.entry),ko(f,10,u.rangeShift),c=vp,n=0;n<i;n++){l=s[n],f[c]=l.charCodeAt(0)&255,f[c+1]=l.charCodeAt(1)&255,f[c+2]=l.charCodeAt(2)&255,f[c+3]=l.charCodeAt(3)&255;let p=0;for(a=h[n],r=h[n+1];a<r;a+=4){let m=we(f,a);p=p+m>>>0}Fc(f,c+4,p),Fc(f,c+8,h[n]),Fc(f,c+12,e[l].length),c+=kp}return f}addTable(t,e){if(t in this.tables)throw Error("Table "+t+" already exists");this.tables[t]=e}};Ns={vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],flex:[12,35],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};fb=class fb{static{d(this,"Type1CharString")}width=0;lsb=0;flexing=!1;output=[];stack=[];convert(t,e,s){let i=t.length,n=!1,a,r,o;for(let l=0;l<i;l++){let c=t[l];if(c<32){switch(c===12&&(c=(c<<8)+t[++l]),c){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){n=!0;break}let m=this.stack.pop();this.stack.push(0,m);break}n=this.executeCommand(1,Ns.vmoveto);break;case 5:n=this.executeCommand(2,Ns.rlineto);break;case 6:n=this.executeCommand(1,Ns.hlineto);break;case 7:n=this.executeCommand(1,Ns.vlineto);break;case 8:n=this.executeCommand(6,Ns.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){n=!0;break}if(o=this.stack.pop(),!e[o]){n=!0;break}n=this.convert(e[o],e,s);break;case 11:return n;case 13:if(this.stack.length<2){n=!0;break}a=this.stack.pop(),r=this.stack.pop(),this.lsb=r,this.width=a,this.stack.push(a,r),n=this.executeCommand(2,Ns.hmoveto);break;case 14:this.output.push(Ns.endchar[0]);break;case 21:if(this.flexing)break;n=this.executeCommand(2,Ns.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}n=this.executeCommand(1,Ns.hmoveto);break;case 30:n=this.executeCommand(4,Ns.vhcurveto);break;case 31:n=this.executeCommand(4,Ns.hvcurveto);break;case 3072:this.stack=[];break;case 3073:{this.stack=[];break}case 3074:{this.stack=[];break}case 3078:if(s){let m=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-m,n=this.executeCommand(0,Ns.endchar)}else n=this.executeCommand(4,Ns.endchar);break;case 3079:if(this.stack.length<4){n=!0;break}this.stack.pop(),a=this.stack.pop();let h=this.stack.pop();r=this.stack.pop(),this.lsb=r,this.width=a,this.stack.push(a,r,h),n=this.executeCommand(3,Ns.rmoveto);break;case 3084:if(this.stack.length<2){n=!0;break}let f=this.stack.pop(),u=this.stack.pop();this.stack.push(u/f);break;case 3088:if(this.stack.length<2){n=!0;break}o=this.stack.pop();let p=this.stack.pop();if(o===0&&p===3){let m=this.stack.splice(-17,17);this.stack.push(m[2]+m[0],m[3]+m[1],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14]),n=this.executeCommand(13,Ns.flex,!0),this.flexing=!1,this.stack.push(m[15],m[16])}else o===1&&p===0&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:T('Unknown type 1 charstring command of "'+c+'"');break}if(n)break;continue}else c<=246?c-=139:c<=250?c=(c-247)*256+t[++l]+108:c<=254?c=-((c-251)*256)-t[++l]-108:c=(t[++l]&255)<<24|(t[++l]&255)<<16|(t[++l]&255)<<8|(t[++l]&255)<<0;this.stack.push(c)}return n}executeCommand(t,e,s){let i=this.stack.length;if(t>i)return!0;let n=i-t;for(let a=n;a<i;a++){let r=this.stack[a];Number.isInteger(r)?this.output.push(28,r>>8&255,r&255):(r=65536*r|0,this.output.push(255,r>>24&255,r>>16&255,r>>8&255,r&255))}return this.output.push(...e),s?this.stack.splice(n,t):this.stack.length=0,!1}};d(Oi,"isHexDigit");d(ju,"decrypt");d(ub,"decryptAscii");d(vu,"isSpecial");ku=class ku{static{d(this,"Type1Parser")}constructor(t,e,s){if(e){let i=t.getBytes(),n=!((Oi(i[0])||ai(i[0]))&&Oi(i[1])&&Oi(i[2])&&Oi(i[3])&&Oi(i[4])&&Oi(i[5])&&Oi(i[6])&&Oi(i[7]));t=new je(n?ju(i,qp,4):ub(i,qp,4))}this.seacAnalysisEnabled=!!s,this.stream=t,this.nextChar()}readNumberArray(){this.getToken();let t=[];for(;;){let e=this.getToken();if(e===null||e==="]"||e==="}")break;t.push(parseFloat(e||0))}return t}readNumber(){let t=this.getToken();return parseFloat(t||0)}readInt(){let t=this.getToken();return parseInt(t||0,10)|0}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,e=this.currentChar;for(;;){if(e===-1)return null;if(t)(e===10||e===13)&&(t=!1);else if(e===37)t=!0;else if(!ai(e))break;e=this.nextChar()}if(vu(e))return this.nextChar(),String.fromCharCode(e);let s="";do s+=String.fromCharCode(e),e=this.nextChar();while(e>=0&&!ai(e)&&!vu(e));return s}readCharStrings(t,e){return e===-1?t:ju(t,Ly,e)}extractFontProgram(t){let e=this.stream,s=[],i=[],n=Object.create(null);n.lenIV=4;let a={subrs:[],charstrings:[],properties:{privateData:n}},r,o,l,c;for(;(r=this.getToken())!==null;)if(r==="/")switch(r=this.getToken(),r){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();r=this.getToken(),!(r===null||r==="end");){if(r!=="/")continue;let f=this.getToken();o=this.readInt(),this.getToken(),l=o>0?e.getBytes(o):new Uint8Array(0),c=a.properties.privateData.lenIV;let u=this.readCharStrings(l,c);this.nextChar(),r=this.getToken(),r==="noaccess"?this.getToken():r==="/"&&this.prevChar(),i.push({glyph:f,encoded:u})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){let f=this.readInt();o=this.readInt(),this.getToken(),l=o>0?e.getBytes(o):new Uint8Array(0),c=a.properties.privateData.lenIV;let u=this.readCharStrings(l,c);this.nextChar(),r=this.getToken(),r==="noaccess"&&this.getToken(),s[f]=u}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":let h=this.readNumberArray();h.length>0&&h.length%2;break;case"StemSnapH":case"StemSnapV":a.properties.privateData[r]=this.readNumberArray();break;case"StdHW":case"StdVW":a.properties.privateData[r]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":a.properties.privateData[r]=this.readNumber();break;case"ExpansionFactor":a.properties.privateData[r]=this.readNumber()||0.06;break;case"ForceBold":a.properties.privateData[r]=this.readBoolean();break}for(let{encoded:h,glyph:f}of i){let u=new fb,p=u.convert(h,s,this.seacAnalysisEnabled),m=u.output;p&&(m=[14]);let g={glyphName:f,charstring:m,width:u.width,lsb:u.lsb,seac:u.seac};if(f===".notdef"?a.charstrings.unshift(g):a.charstrings.push(g),t.builtInEncoding){let w=t.builtInEncoding.indexOf(f);w>-1&&t.widths[w]===void 0&&w>=t.firstChar&&w<=t.lastChar&&(t.widths[w]=u.width)}}return a}extractFontHeader(t){let e;for(;(e=this.getToken())!==null;)if(e==="/")switch(e=this.getToken(),e){case"FontMatrix":let s=this.readNumberArray();t.fontMatrix=s;break;case"Encoding":let i=this.getToken(),n;if(!/^\d+$/.test(i))n=Br(i);else{n=[];let r=parseInt(i,10)|0;this.getToken();for(let o=0;o<r;o++){for(e=this.getToken();e!=="dup"&&e!=="def";)if(e=this.getToken(),e===null)return;if(e==="def")break;let l=this.readInt();this.getToken();let c=this.getToken();n[l]=c,this.getToken()}}t.builtInEncoding=n;break;case"FontBBox":let a=this.readNumberArray();t.ascent=Math.max(a[3],a[1]),t.descent=Math.min(a[1],a[3]),t.ascentScaled=!0;break}}};d(qu,"findBlock");d(db,"getHeaderBlock");d(pb,"getEexecBlock");mb=class mb{static{d(this,"Type1Font")}constructor(t,e,s){let i=s.length1;s.length2;let n=e.peekBytes(6),a=n[0]===128&&n[1]===1;a&&(e.skip(6),i=n[5]<<24|n[4]<<16|n[3]<<8|n[2]);let r=db(e,i);new ku(r.stream,!1,Ar).extractFontHeader(s),a&&(n=e.getBytes(6),n[5]<<24|n[4]<<16|n[3]<<8|n[2]);let o=pb(e),l=new ku(o.stream,!0,Ar).extractFontProgram(s);for(let u in l.properties)s[u]=l.properties[u];let c=l.charstrings,h=this.getType2Charstrings(c),f=this.getType2Subrs(l.subrs);this.charstrings=c,this.data=this.wrap(t,h,this.charstrings,f,s),this.seacs=this.getSeacs(l.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){let t=[".notdef"];for(let{glyphName:e}of this.charstrings)t.push(e);return t}getGlyphMapping(t){let e=this.charstrings;if(t.composite){let r=Object.create(null);for(let o=0,l=e.length;o<l;o++){let c=t.cMap.charCodeOf(o);r[c]=o+1}return r}let s=[".notdef"],i,n;for(n=0;n<e.length;n++)s.push(e[n].glyphName);let a=t.builtInEncoding;if(a){i=Object.create(null);for(let r in a)n=s.indexOf(a[r]),n>=0&&(i[r]=n)}return Q1(t,i,s)}hasGlyphId(t){return t<0||t>=this.numGlyphs?!1:t===0?!0:this.charstrings[t-1].charstring.length>0}getSeacs(t){let e=[];for(let s=0,i=t.length;s<i;s++){let n=t[s];n.seac&&(e[s+1]=n.seac)}return e}getType2Charstrings(t){let e=[];for(let s of t)e.push(s.charstring);return e}getType2Subrs(t){let e=0,s=t.length;s<1133?e=107:s<33769?e=1131:e=32768;let i=[],n;for(n=0;n<e;n++)i.push([11]);for(n=0;n<s;n++)i.push(t[n]);return i}wrap(t,e,s,i,n){let a=new J1;a.header=new Z1(1,0,4,4),a.names=[t];let r=new el;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",n.fontMatrix),r.setByName("FontBBox",n.bbox),r.setByName("charset",null),r.setByName("CharStrings",null),r.setByName("Private",null),a.topDict=r;let o=new Wh;o.add("Version 0.11"),o.add("See original notice"),o.add(t),o.add(t),o.add("Medium"),a.strings=o,a.globalSubrIndex=new Cn;let l=e.length,c=[".notdef"],h,f;for(h=0;h<l;h++){let w=s[h].glyphName;Ic.indexOf(w)===-1&&o.add(w),c.push(w)}a.charset=new pr(!1,0,c);let u=new Cn;for(u.add([139,14]),h=0;h<l;h++)u.add(e[h]);a.charStrings=u;let p=new sl;p.setByName("Subrs",null);let m=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(h=0,f=m.length;h<f;h++){let w=m[h];if(!(w in n.privateData))continue;let b=n.privateData[w];if(Array.isArray(b))for(let j=b.length-1;j>0;j--)b[j]-=b[j-1];p.setByName(w,b)}a.topDict.privateDict=p;let g=new Cn;for(h=0,f=i.length;h<f;h++)g.add(i[h]);return p.subrsIndex=g,new Cl(a).compile()}};pn=[[57344,63743],[1048576,1114109]],zy=["ascent","bbox","black","bold","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","disableFontFace","fallbackName","fontExtraProperties","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","systemFontInfo","vertical"],Uy=["cMap","composite","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","subtype","toFontChar","toUnicode","type","vmetrics","widths"];d(xu,"adjustWidths");d(gb,"adjustTrueTypeToUnicode");d(bb,"adjustType1ToUnicode");d(Au,"amendFallbackToUnicode");wb=class wb{static{d(this,"fonts_Glyph")}constructor(t,e,s,i,n,a,r,o,l){this.originalCharCode=t,this.fontChar=e,this.unicode=s,this.accent=i,this.width=n,this.vmetric=a,this.operatorListId=r,this.isSpace=o,this.isInFont=l}get category(){return lt(this,"category",Xg(this.unicode),!0)}};d(ja,"int16");d(rr,"writeSignedInt16");d(Xs,"signedInt16");d(yb,"writeUint32");d(jb,"int32");d(me,"string16");d(Kn,"safeString16");d(vb,"isTrueTypeFile");d(rd,"isTrueTypeCollectionFile");d(kb,"isOpenTypeFile");d(qb,"isType1File");d(xb,"isCFFFile");d(Ab,"getFontFileType");d(qo,"applyStandardFontGlyphMap");d(Ec,"buildToFontChar");d(Sb,"isMacNameRecord");d(od,"isWinNameRecord");d(Mc,"convertCidString");d(Su,"adjustMapping");d(Cb,"getRanges");d(Cu,"createCmapTable");d(Ib,"validateOS2Table");d(Iu,"createOS2Table");d(Tu,"createPostTable");d(Tb,"createPostscriptName");d(Bc,"createNameTable");Fu=class Fu{static{d(this,"Font")}#t=new Map;#e=new Map;charProcOperatorList;constructor(t,e,s,i){this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=i.disableFontFace,this.fontExtraProperties=i.fontExtraProperties,this.loadedName=s.loadedName,this.isType3Font=s.isType3Font,this.missingFile=!1,this.cssFontInfo=s.cssFontInfo;let n=!!(s.flags&Ni.Serif);if(!n&&!s.isSimulatedFlags){let c=il(),h=gu(),f=ed();for(let u of t.split("+")){let p=Rn(u);if(p=c[p]||h[p]||p,p=p.split("-",1)[0],f[p]){n=!0;break}}}this.isSerifFont=n,this.isSymbolicFont=!!(s.flags&Ni.Symbolic),this.isMonospace=!!(s.flags&Ni.FixedPitch);let{type:a,subtype:r}=s;this.type=a,this.subtype=r,this.systemFontInfo=s.systemFontInfo;let o=t.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!o,this.isInvalidPDFjsFont?this.fallbackName=o[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=s.differences,this.widths=s.widths,this.defaultWidth=s.defaultWidth,this.composite=s.composite,this.cMap=s.cMap,this.capHeight=s.capHeight/ya,this.ascent=s.ascent/ya,this.descent=s.descent/ya,this.lineHeight=this.ascent-this.descent,this.fontMatrix=s.fontMatrix,this.bbox=s.bbox,this.defaultEncoding=s.defaultEncoding,this.toUnicode=s.toUnicode,this.toFontChar=[],s.type==="Type3"){for(let c=0;c<256;c++)this.toFontChar[c]=this.differences[c]||s.defaultEncoding[c];return}if(this.cidEncoding=s.cidEncoding||"",this.vertical=!!s.vertical,this.vertical&&(this.vmetrics=s.vmetrics,this.defaultVMetrics=s.defaultVMetrics),!e||e.isEmpty){e&&T('Font file is empty in "'+t+'" ('+this.loadedName+")"),this.fallbackToSystemFont(s);return}[a,r]=Ab(e,s),(a!==this.type||r!==this.subtype)&&Wt(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${a}/${r}.`);let l;try{switch(a){case"MMType1":Wt("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";let c=r==="Type1C"||r==="CIDFontType0C"?new Tc(e,s):new mb(t,e,s);xu(s),l=this.convert(t,c,s);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",l=this.checkAndRepair(t,e,s),xu(s),this.isOpenType&&(a="OpenType");break;default:throw new Q(`Font ${a} is not supported`)}}catch(c){T(c),this.fallbackToSystemFont(s);return}Au(s),this.data=l,this.type=a,this.subtype=r,this.fontMatrix=s.fontMatrix,this.widths=s.widths,this.defaultWidth=s.defaultWidth,this.toUnicode=s.toUnicode,this.seacMap=s.seacMap}get renderer(){let t=ob.create(this,Ar);return lt(this,"renderer",t)}#s(t){let e=Object.create(null);for(let s of t){let i=this[s];i!==void 0&&(e[s]=i)}return e}exportData(){return{buffer:Gg(this.#s(zy)),charProcOperatorList:this.charProcOperatorList,extra:this.fontExtraProperties?this.#s(Uy):void 0}}fallbackToSystemFont(t){this.missingFile=!0;let{name:e,type:s}=this,i=Rn(e),n=il(),a=gu(),r=!!n[i],o=!!(a[i]&&n[a[i]]);i=n[i]||a[i]||i;let l=Py()[i];l&&(isNaN(this.ascent)&&(this.ascent=l.ascent/ya),isNaN(this.descent)&&(this.descent=l.descent/ya),isNaN(this.capHeight)&&(this.capHeight=l.capHeight/ya)),this.bold=/bold/gi.test(i),this.italic=/oblique|italic/gi.test(i),this.black=/Black/g.test(e);let c=/Narrow/g.test(e);if(this.remeasure=(!r||c)&&Object.keys(this.widths).length>0,(r||o)&&s==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){let h=t.cidToGidMap,f=[];if(qo(f,yp()),/Arial-?Black/i.test(e)?qo(f,Ey()):/Calibri/i.test(e)&&qo(f,My()),h){for(let u in f){let p=f[u];h[p]!==void 0&&(f[+u]=h[p])}h.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof bi&&this.toUnicode.forEach(function(u,p){let m=f[u];h[m]===void 0&&(f[+u]=p)})}this.toUnicode instanceof bi||this.toUnicode.forEach(function(u,p){f[+u]=p}),this.toFontChar=f,this.toUnicode=new mr(f)}else if(/Symbol/i.test(i))this.toFontChar=Ec(K1,an(),this.differences);else if(/Dingbats/i.test(i))this.toFontChar=Ec(Y1,yy(),this.differences);else if(r||o){let h=Ec(this.defaultEncoding,an(),this.differences);s==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof bi)&&this.toUnicode.forEach(function(f,u){h[+f]=u}),this.toFontChar=h}else{let h=an(),f=[];this.toUnicode.forEach((u,p)=>{if(!this.composite){let m=this.differences[u]||this.defaultEncoding[u],g=Oa(m,h);g!==-1&&(p=g)}f[+u]=p}),this.composite&&this.toUnicode instanceof bi&&/Tahoma|Verdana/i.test(e)&&qo(f,yp()),this.toFontChar=f}Au(t),this.loadedName=i.split("-",1)[0]}checkAndRepair(t,e,s){let i=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function n(R,V){let N=Object.create(null);N["OS/2"]=null,N.cmap=null,N.head=null,N.hhea=null,N.hmtx=null,N.maxp=null,N.name=null,N.post=null;for(let _=0;_<V;_++){let U=a(R);i.includes(U.tag)&&U.length!==0&&(N[U.tag]=U)}return N}d(n,"readTables");function a(R){let V=R.getString(4),N=R.getInt32()>>>0,_=R.getInt32()>>>0,U=R.getInt32()>>>0,ot=R.pos;R.pos=R.start||0,R.skip(_);let ft=R.getBytes(U);return R.pos=ot,V==="head"&&(ft[8]=ft[9]=ft[10]=ft[11]=0,ft[17]|=32),{tag:V,checksum:N,length:U,offset:_,data:ft}}d(a,"readTableEntry");function r(R){return{version:R.getString(4),numTables:R.getUint16(),searchRange:R.getUint16(),entrySelector:R.getUint16(),rangeShift:R.getUint16()}}d(r,"readOpenTypeHeader");function o(R){let V=R.getString(4);Fe(V==="ttcf","Must be a TrueType Collection font.");let N=R.getUint16(),_=R.getUint16(),U=R.getInt32()>>>0,ot=[];for(let J=0;J<U;J++)ot.push(R.getInt32()>>>0);let ft={ttcTag:V,majorVersion:N,minorVersion:_,numFonts:U,offsetTable:ot};switch(N){case 1:return ft;case 2:return ft.dsigTag=R.getInt32()>>>0,ft.dsigLength=R.getInt32()>>>0,ft.dsigOffset=R.getInt32()>>>0,ft}throw new Q(`Invalid TrueType Collection majorVersion: ${N}.`)}d(o,"readTrueTypeCollectionHeader");function l(R,V){let{numFonts:N,offsetTable:_}=o(R),U=V.split("+"),ot;for(let ft=0;ft<N;ft++){R.pos=(R.start||0)+_[ft];let J=r(R),Ct=n(R,J.numTables);if(!Ct.name)throw new Q('TrueType Collection font must contain a "name" table.');let[It]=g(Ct.name);for(let Et=0,Ft=It.length;Et<Ft;Et++)for(let Nt=0,mt=It[Et].length;Nt<mt;Nt++){let jt=It[Et][Nt]?.replaceAll(/\s/g,"");if(jt){if(jt===V)return{header:J,tables:Ct};if(!(U.length<2))for(let bt of U)jt===bt&&(ot={name:bt,header:J,tables:Ct})}}}if(ot)return T(`TrueType Collection does not contain "${V}" font, falling back to "${ot.name}" font instead.`),{header:ot.header,tables:ot.tables};throw new Q(`TrueType Collection does not contain "${V}" font.`)}d(l,"readTrueTypeCollectionData");function c(R,V,N,_){if(!R)return T("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let U,ot=(V.start||0)+R.offset;V.pos=ot,V.skip(2);let ft=V.getUint16(),J,Ct=!1;for(let gt=0;gt<ft;gt++){let kt=V.getUint16(),wt=V.getUint16(),Rt=V.getInt32()>>>0,ct=!1;if(!(J?.platformId===kt&&J?.encodingId===wt)){if(kt===0&&(wt===0||wt===1||wt===3))ct=!0;else if(kt===1&&wt===0)ct=!0;else if(kt===3&&wt===1&&(_||!J))ct=!0,N||(Ct=!0);else if(N&&kt===3&&wt===0){ct=!0;let pt=!0;if(gt<ft-1){let Mt=V.peekBytes(2);ja(Mt[0],Mt[1])<kt&&(pt=!1)}pt&&(Ct=!0)}if(ct&&(J={platformId:kt,encodingId:wt,offset:Rt}),Ct)break}}if(J&&(V.pos=ot+J.offset),!J||V.peekByte()===-1)return T("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let It=V.getUint16(),Et=!1,Ft=[],Nt,mt;if(It===0){for(V.skip(4),Nt=0;Nt<256;Nt++){let gt=V.getByte();gt&&Ft.push({charCode:Nt,glyphId:gt})}Et=!0}else if(It===2){V.skip(4);let gt=[],kt=0;for(let Rt=0;Rt<256;Rt++){let ct=V.getUint16()>>3;gt.push(ct),kt=Math.max(ct,kt)}let wt=[];for(let Rt=0;Rt<=kt;Rt++)wt.push({firstCode:V.getUint16(),entryCount:V.getUint16(),idDelta:Xs(V.getByte(),V.getByte()),idRangePos:V.pos+V.getUint16()});for(let Rt=0;Rt<256;Rt++)if(gt[Rt]===0)V.pos=wt[0].idRangePos+2*Rt,mt=V.getUint16(),Ft.push({charCode:Rt,glyphId:mt});else{let ct=wt[gt[Rt]];for(Nt=0;Nt<ct.entryCount;Nt++){let pt=(Rt<<8)+Nt+ct.firstCode;V.pos=ct.idRangePos+2*Nt,mt=V.getUint16(),mt!==0&&(mt=(mt+ct.idDelta)%65536),Ft.push({charCode:pt,glyphId:mt})}}}else if(It===4){V.skip(4);let gt=V.getUint16()>>1;V.skip(6);let kt=[],wt;for(wt=0;wt<gt;wt++)kt.push({end:V.getUint16()});for(V.skip(2),wt=0;wt<gt;wt++)kt[wt].start=V.getUint16();for(wt=0;wt<gt;wt++)kt[wt].delta=V.getUint16();let Rt=0,ct;for(wt=0;wt<gt;wt++){U=kt[wt];let Mt=V.getUint16();if(!Mt){U.offsetIndex=-1;continue}ct=(Mt>>1)-(gt-wt),U.offsetIndex=ct,Rt=Math.max(Rt,ct+U.end-U.start+1)}let pt=[];for(Nt=0;Nt<Rt;Nt++)pt.push(V.getUint16());for(wt=0;wt<gt;wt++){U=kt[wt],ot=U.start;let{end:Mt,delta:ee}=U;for(ct=U.offsetIndex,Nt=ot;Nt<=Mt;Nt++)Nt!==65535&&(mt=ct<0?Nt:pt[ct+Nt-ot],mt=mt+ee&65535,Ft.push({charCode:Nt,glyphId:mt}))}}else if(It===6){V.skip(4);let gt=V.getUint16(),kt=V.getUint16();for(Nt=0;Nt<kt;Nt++){mt=V.getUint16();let wt=gt+Nt;Ft.push({charCode:wt,glyphId:mt})}}else if(It===12){V.skip(10);let gt=V.getInt32()>>>0;for(Nt=0;Nt<gt;Nt++){let kt=V.getInt32()>>>0,wt=V.getInt32()>>>0,Rt=V.getInt32()>>>0;for(let ct=kt;ct<=wt;ct++)Ft.push({charCode:ct,glyphId:Rt++})}}else return T("cmap table has unsupported format: "+It),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};Ft.sort((gt,kt)=>gt.charCode-kt.charCode);let jt=[],bt=new Set;for(let gt of Ft){let{charCode:kt}=gt;bt.has(kt)||(bt.add(kt),jt.push(gt))}return{platformId:J.platformId,encodingId:J.encodingId,mappings:jt,hasShortCmap:Et}}d(c,"readCmapTable");function h(R,V,N,_,U,ot){if(!V){N&&(N.data=null);return}R.pos=(R.start||0)+V.offset,R.pos+=4,R.pos+=2,R.pos+=2,R.pos+=2,R.pos+=2,R.pos+=2,R.pos+=2,R.pos+=2,R.pos+=2,R.pos+=2;let ft=R.getUint16();R.pos+=8,R.pos+=2;let J=R.getUint16();ft!==0&&(ja(_.data[44],_.data[45])&2||(V.data[22]=0,V.data[23]=0)),J>U&&(Wt(`The numOfMetrics (${J}) should not be greater than the numGlyphs (${U}).`),J=U,V.data[34]=(J&65280)>>8,V.data[35]=J&255);let Ct=U-J-(N.length-J*4>>1);if(Ct>0){let It=new Uint8Array(N.length+Ct*2);It.set(N.data),ot&&(It[N.length]=N.data[2],It[N.length+1]=N.data[3]),N.data=It}}d(h,"sanitizeMetrics");function f(R,V,N,_,U,ot){let ft={length:0,sizeOfInstructions:0};if(V<0||V>=R.length||N>R.length||N-V<=12)return ft;let J=R.subarray(V,N),Ct=Xs(J[2],J[3]),It=Xs(J[4],J[5]),Et=Xs(J[6],J[7]),Ft=Xs(J[8],J[9]);Ct>Et&&(rr(J,2,Et),rr(J,6,Ct)),It>Ft&&(rr(J,4,Ft),rr(J,8,It));let Nt=Xs(J[0],J[1]);if(Nt<0)return Nt<-1||(_.set(J,U),ft.length=J.length),ft;let mt,jt=10,bt=0;for(mt=0;mt<Nt;mt++)bt=(J[jt]<<8|J[jt+1])+1,jt+=2;let gt=jt,kt=J[jt]<<8|J[jt+1];ft.sizeOfInstructions=kt,jt+=2+kt;let wt=jt,Rt=0;for(mt=0;mt<bt;mt++){let pt=J[jt++];pt&192&&(J[jt-1]=pt&63);let Mt=2;pt&2?Mt=1:pt&16&&(Mt=0);let ee=2;pt&4?ee=1:pt&32&&(ee=0);let qe=Mt+ee;if(Rt+=qe,pt&8){let ze=J[jt++];ze===0&&(J[jt-1]^=8),mt+=ze,Rt+=ze*qe}}if(Rt===0)return ft;let ct=jt+Rt;return ct>J.length?ft:!ot&&kt>0?(_.set(J.subarray(0,gt),U),_.set([0,0],U+gt),_.set(J.subarray(wt,ct),U+gt+2),ct-=kt,J.length-ct>3&&(ct=ct+3&-4),ft.length=ct,ft):J.length-ct>3?(ct=ct+3&-4,_.set(J.subarray(0,ct),U),ft.length=ct,ft):(_.set(J,U),ft.length=J.length,ft)}d(f,"sanitizeGlyph");function u(R,V,N){let _=R.data,U=jb(_[0],_[1],_[2],_[3]);U>>16!==1&&(Wt("Attempting to fix invalid version in head table: "+U),_[0]=0,_[1]=1,_[2]=0,_[3]=0);let ot=ja(_[50],_[51]);if(ot<0||ot>1){Wt("Attempting to fix invalid indexToLocFormat in head table: "+ot);let ft=V+1;if(N===ft<<1)_[50]=0,_[51]=0;else if(N===ft<<2)_[50]=0,_[51]=1;else throw new Q("Could not fix indexToLocFormat: "+ot)}}d(u,"sanitizeHead");function p(R,V,N,_,U,ot,ft){let J,Ct,It;_?(J=4,Ct=d(function(Mt,ee){return Mt[ee]<<24|Mt[ee+1]<<16|Mt[ee+2]<<8|Mt[ee+3]},"fontItemDecodeLong"),It=d(function(Mt,ee,qe){Mt[ee]=qe>>>24&255,Mt[ee+1]=qe>>16&255,Mt[ee+2]=qe>>8&255,Mt[ee+3]=qe&255},"fontItemEncodeLong")):(J=2,Ct=d(function(Mt,ee){return Mt[ee]<<9|Mt[ee+1]<<1},"fontItemDecode"),It=d(function(Mt,ee,qe){Mt[ee]=qe>>9&255,Mt[ee+1]=qe>>1&255},"fontItemEncode"));let Et=ot?N+1:N,Ft=J*(1+Et),Nt=new Uint8Array(Ft);Nt.set(R.data.subarray(0,Ft)),R.data=Nt;let mt=V.data,jt=mt.length,bt=new Uint8Array(jt),gt,kt,wt=[];for(gt=0,kt=0;gt<N+1;gt++,kt+=J){let Mt=Ct(Nt,kt);Mt>jt&&(Mt=jt),wt.push({index:gt,offset:Mt,endOffset:0})}for(wt.sort((Mt,ee)=>Mt.offset-ee.offset),gt=0;gt<N;gt++)wt[gt].endOffset=wt[gt+1].offset;for(wt.sort((Mt,ee)=>Mt.index-ee.index),gt=0;gt<N;gt++){let{offset:Mt,endOffset:ee}=wt[gt];if(Mt!==0||ee!==0)break;let qe=wt[gt+1].offset;if(qe!==0){wt[gt].endOffset=qe;break}}let Rt=wt.at(-2);Rt.offset!==0&&Rt.endOffset===0&&(Rt.endOffset=jt);let ct=Object.create(null),pt=0;for(It(Nt,0,pt),gt=0,kt=J;gt<N;gt++,kt+=J){let Mt=f(mt,wt[gt].offset,wt[gt].endOffset,bt,pt,U),ee=Mt.length;ee===0&&(ct[gt]=!0),Mt.sizeOfInstructions>ft&&(ft=Mt.sizeOfInstructions),pt+=ee,It(Nt,kt,pt)}if(pt===0){let Mt=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(gt=0,kt=J;gt<Et;gt++,kt+=J)It(Nt,kt,Mt.length);V.data=Mt}else if(ot){let Mt=Ct(Nt,J);bt.length>Mt+pt?V.data=bt.subarray(0,Mt+pt):(V.data=new Uint8Array(Mt+pt),V.data.set(bt.subarray(0,pt))),V.data.set(bt.subarray(0,Mt),pt),It(R.data,Nt.length-J,pt+Mt)}else V.data=bt.subarray(0,pt);return{missingGlyphs:ct,maxSizeOfInstructions:ft}}d(p,"sanitizeGlyphLocations");function m(R,V,N){let _=(e.start||0)+R.offset;e.pos=_;let U=R.length,ot=_+U,ft=e.getInt32();e.skip(28);let J,Ct=!0,It;switch(ft){case 65536:J=bp;break;case 131072:let Et=e.getUint16();if(Et!==N){Ct=!1;break}let Ft=[];for(It=0;It<Et;++It){let mt=e.getUint16();if(mt>=32768){Ct=!1;break}Ft.push(mt)}if(!Ct)break;let Nt=[];for(;e.pos<ot;){let mt=e.getByte(),jt=e.getString(mt);Nt.push(jt)}for(J=[],It=0;It<Et;++It){let mt=Ft[It];if(mt<258){J.push(bp[mt]);continue}J.push(Nt[mt-258])}break;case 196608:break;default:T("Unknown/unsupported post table version "+ft),Ct=!1,V.defaultEncoding&&(J=V.defaultEncoding);break}return V.glyphNames=J,Ct}d(m,"readPostScriptTable");function g(R){let V=(e.start||0)+R.offset;e.pos=V;let N=[[],[]],_=[],U=R.length,ot=V+U;if(e.getUint16()!==0||U<6)return[N,_];let ft=e.getUint16(),J=e.getUint16(),Ct=12,It,Et;for(It=0;It<ft&&e.pos+Ct<=ot;It++){let Ft={platform:e.getUint16(),encoding:e.getUint16(),language:e.getUint16(),name:e.getUint16(),length:e.getUint16(),offset:e.getUint16()};(Sb(Ft)||od(Ft))&&_.push(Ft)}for(It=0,Et=_.length;It<Et;It++){let Ft=_[It];if(Ft.length<=0)continue;let Nt=V+J+Ft.offset;if(Nt+Ft.length>ot)continue;e.pos=Nt;let mt=Ft.name;if(Ft.encoding){let jt="";for(let bt=0,gt=Ft.length;bt<gt;bt+=2)jt+=String.fromCharCode(e.getUint16());N[1][mt]=jt}else N[0][mt]=e.getString(Ft.length)}return[N,_]}d(g,"readNameTable");let w=[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 b(R,V){let N=R.data,_=0,U,ot,ft,J,Ct,It=0,Et=0,Ft=[],Nt=[],mt=[],jt=V.tooComplexToFollowFunctions,bt=!1,gt=0,kt=0;for(let Rt=N.length;_<Rt;){let ct=N[_++];if(ct===64)if(ot=N[_++],bt||kt)_+=ot;else for(U=0;U<ot;U++)Ft.push(N[_++]);else if(ct===65)if(ot=N[_++],bt||kt)_+=ot*2;else for(U=0;U<ot;U++)ft=N[_++],Ft.push(ft<<8|N[_++]);else if((ct&248)===176)if(ot=ct-176+1,bt||kt)_+=ot;else for(U=0;U<ot;U++)Ft.push(N[_++]);else if((ct&248)===184)if(ot=ct-184+1,bt||kt)_+=ot*2;else for(U=0;U<ot;U++)ft=N[_++],Ft.push(Xs(ft,N[_++]));else if(ct===43&&!jt){if(!bt&&!kt){if(J=Ft.at(-1),isNaN(J))Wt("TT: CALL empty stack (or invalid entry).");else if(V.functionsUsed[J]=!0,J in V.functionsStackDeltas){let pt=Ft.length+V.functionsStackDeltas[J];if(pt<0){T("TT: CALL invalid functions stack delta."),V.hintsValid=!1;return}Ft.length=pt}else if(J in V.functionsDefined&&!mt.includes(J)){if(Nt.push({data:N,i:_,stackTop:Ft.length-1}),mt.push(J),Ct=V.functionsDefined[J],!Ct){T("TT: CALL non-existent function"),V.hintsValid=!1;return}N=Ct.data,_=Ct.i}}}else if(ct===44&&!jt)(bt||kt)&&(T("TT: nested FDEFs not allowed"),jt=!0),bt=!0,Et=_,J=Ft.pop(),V.functionsDefined[J]={data:N,i:_};else if(ct===45)if(bt)bt=!1,It=_;else{if(Ct=Nt.pop(),!Ct){T("TT: ENDF bad stack"),V.hintsValid=!1;return}J=mt.pop(),N=Ct.data,_=Ct.i,V.functionsStackDeltas[J]=Ft.length-Ct.stackTop}else if(ct===137)(bt||kt)&&(T("TT: nested IDEFs not allowed"),jt=!0),bt=!0,Et=_;else if(ct===88)++gt;else if(ct===27)kt=gt;else if(ct===89)kt===gt&&(kt=0),--gt;else if(ct===28&&!bt&&!kt){let pt=Ft.at(-1);pt>0&&(_+=pt-1)}if(!bt&&!kt){let pt=0;for(ct<=142?pt=w[ct]:ct>=192&&ct<=223?pt=-1:ct>=224&&(pt=-2),ct>=113&&ct<=117&&(ot=Ft.pop(),isNaN(ot)||(pt=-ot*2));pt<0&&Ft.length>0;)Ft.pop(),pt++;for(;pt>0;)Ft.push(NaN),pt--}}V.tooComplexToFollowFunctions=jt;let wt=[N];_>N.length&&wt.push(new Uint8Array(_-N.length)),Et>It&&(T("TT: complementing a missing function tail"),wt.push(new Uint8Array([34,45]))),v(R,wt)}d(b,"sanitizeTTProgram");function j(R,V){if(!R.tooComplexToFollowFunctions){if(R.functionsDefined.length>V){T("TT: more functions defined than expected"),R.hintsValid=!1;return}for(let N=0,_=R.functionsUsed.length;N<_;N++){if(N>V){T("TT: invalid function id: "+N),R.hintsValid=!1;return}if(R.functionsUsed[N]&&!R.functionsDefined[N]){T("TT: undefined function: "+N),R.hintsValid=!1;return}}}}d(j,"checkInvalidFunctions");function v(R,V){if(V.length>1){let N=0,_,U;for(_=0,U=V.length;_<U;_++)N+=V[_].length;N=N+3&-4;let ot=new Uint8Array(N),ft=0;for(_=0,U=V.length;_<U;_++)ot.set(V[_],ft),ft+=V[_].length;R.data=ot,R.length=N}}d(v,"foldTTTable");function q(R,V,N,_){let U={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(R&&b(R,U),V&&b(V,U),R&&j(U,_),N&&N.length&1){let ot=new Uint8Array(N.length+1);ot.set(N.data),N.data=ot}return U.hintsValid}d(q,"sanitizeTTPrograms"),e=new je(new Uint8Array(e.getBytes()));let x,k;if(rd(e)){let R=l(e,this.name);x=R.header,k=R.tables}else x=r(e),k=n(e,x.numTables);let A=!k["CFF "];if(A){if(!k.loca)throw new Q('Required "loca" table is not found');k.glyf||(T('Required "glyf" table is not found -- trying to recover.'),k.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{if(x.version==="OTTO"&&!s.composite||!k.head||!k.hhea||!k.maxp||!k.post)return this.convert(t,new Tc(new je(k["CFF "].data),s),s);delete k.glyf,delete k.loca,delete k.fpgm,delete k.prep,delete k["cvt "],this.isOpenType=!0}if(!k.maxp)throw new Q('Required "maxp" table is not found');let S;if(!A)try{let R=new Vh(new je(k["CFF "].data),s,Ar).parse();R.duplicateFirstGlyph();let V=new Cl(R);k["CFF "].data=V.compile(),S=R.charStringCount}catch{T("Failed to compile font "+s.loadedName)}e.pos=(e.start||0)+k.maxp.offset;let I=e.getInt32(),E=S??e.getUint16();if(I===20480&&k.maxp.length!==6&&(k.maxp.data=k.maxp.data.subarray(0,6),k.maxp.length=6),I!==65536&&I!==20480){if(k.maxp.length===6)I=20480;else if(k.maxp.length>=32)I=65536;else throw new Q('"maxp" table has a wrong version number');yb(k.maxp.data,0,I)}let D=ja(k.head.data[50],k.head.data[51]);if(k.loca){let R=D?(E+1)*4:(E+1)*2;if(k.loca.length!==R){T("Incorrect 'loca' table length -- attempting to fix it.");let V=Object.values(k).filter(Boolean).sort((U,ot)=>U.offset-ot.offset),N=V.indexOf(k.loca),_=V[N+1]||null;if(_&&k.loca.offset+R<_.offset){let U=e.pos;e.pos=e.start||0,e.skip(k.loca.offset),k.loca.data=e.getBytes(R),k.loca.length=R,e.pos=U}}}if(s.scaleFactors?.length===E&&A){let{scaleFactors:R}=s,V=new lb({glyfTable:k.glyf.data,isGlyphLocationsLong:D,locaTable:k.loca.data,numGlyphs:E});V.scale(R);let{glyf:N,loca:_,isLocationLong:U}=V.write();k.glyf.data=N,k.loca.data=_,U!==!!D&&(k.head.data[50]=0,D=k.head.data[51]=U?1:0);let ot=k.hmtx.data;for(let ft=0;ft<E;ft++){let J=4*ft,Ct=Math.round(R[ft]*ja(ot[J],ot[J+1]));ot[J]=Ct>>8&255,ot[J+1]=Ct&255;let It=Math.round(R[ft]*Xs(ot[J+2],ot[J+3]));rr(ot,J+2,It)}}let O=E+1,$=!0;O>65535&&($=!1,O=E,T("Not enough space in glyfs to duplicate first glyph."));let it=0,W=0;I>=65536&&k.maxp.length>=32&&(e.pos+=8,e.getUint16()>2&&(k.maxp.data[14]=0,k.maxp.data[15]=2),e.pos+=4,it=e.getUint16(),e.pos+=4,W=e.getUint16()),k.maxp.data[4]=O>>8,k.maxp.data[5]=O&255;let H=q(k.fpgm,k.prep,k["cvt "],it);if(H||(delete k.fpgm,delete k.prep,delete k["cvt "]),h(e,k.hhea,k.hmtx,k.head,O,$),!k.head)throw new Q('Required "head" table is not found');u(k.head,E,A?k.loca.length:0);let L=Object.create(null);if(A){let R=p(k.loca,k.glyf,E,D,H,$,W);L=R.missingGlyphs,I>=65536&&k.maxp.length>=32&&(k.maxp.data[26]=R.maxSizeOfInstructions>>8,k.maxp.data[27]=R.maxSizeOfInstructions&255)}if(!k.hhea)throw new Q('Required "hhea" table is not found');k.hhea.data[10]===0&&k.hhea.data[11]===0&&(k.hhea.data[10]=255,k.hhea.data[11]=255);let rt={unitsPerEm:ja(k.head.data[18],k.head.data[19]),yMax:Xs(k.head.data[42],k.head.data[43]),yMin:Xs(k.head.data[38],k.head.data[39]),ascent:Xs(k.hhea.data[4],k.hhea.data[5]),descent:Xs(k.hhea.data[6],k.hhea.data[7]),lineGap:Xs(k.hhea.data[8],k.hhea.data[9])};this.ascent=rt.ascent/rt.unitsPerEm,this.descent=rt.descent/rt.unitsPerEm,this.lineGap=rt.lineGap/rt.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,k.post&&m(k.post,s,E),k.post={tag:"post",data:Tu(s)};let yt=Object.create(null);function X(R){return!L[R]}if(d(X,"hasGlyph"),s.composite){let R=s.cidToGidMap||[],V=R.length===0;s.cMap.forEach(function(N,_){if(typeof _=="string"&&(_=Mc(N,_,!0)),_>65535)throw new Q("Max size of CID is 65,535");let U=-1;V?U=_:R[_]!==void 0&&(U=R[_]),U>=0&&U<E&&X(U)&&(yt[N]=U)})}else{let R=c(k.cmap,e,this.isSymbolicFont,s.hasEncoding),V=R.platformId,N=R.encodingId,_=R.mappings,U=[],ot=!1;if(s.hasEncoding&&(s.baseEncodingName==="MacRomanEncoding"||s.baseEncodingName==="WinAnsiEncoding")&&(U=Br(s.baseEncodingName)),s.hasEncoding&&!this.isSymbolicFont&&(V===3&&N===1||V===1&&N===0)){let ft=an();for(let J=0;J<256;J++){let Ct;if(this.differences[J]!==void 0?Ct=this.differences[J]:U.length&&U[J]!==""?Ct=U[J]:Ct=En[J],!Ct)continue;let It=X1(Ct,ft),Et;if(V===3&&N===1?Et=ft[It]:V===1&&N===0&&(Et=W1.indexOf(It)),Et===void 0){if(!s.glyphNames&&s.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof bi)){let Ft=this.toUnicode.get(J);Ft&&(Et=Ft.codePointAt(0))}if(Et===void 0)continue}for(let Ft of _)if(Ft.charCode===Et){yt[J]=Ft.glyphId;break}}}else if(V===0){for(let ft of _)yt[ft.charCode]=ft.glyphId;ot=!0}else if(V===3&&N===0)for(let ft of _){let J=ft.charCode;J>=61440&&J<=61695&&(J&=255),yt[J]=ft.glyphId}else for(let ft of _)yt[ft.charCode]=ft.glyphId;if(s.glyphNames&&(U.length||this.differences.length))for(let ft=0;ft<256;++ft){if(!ot&&yt[ft]!==void 0)continue;let J=this.differences[ft]||U[ft];if(!J)continue;let Ct=s.glyphNames.indexOf(J);Ct>0&&X(Ct)&&(yt[ft]=Ct)}}yt.length===0&&(yt[0]=0);let St=O-1;if($||(St=0),!s.cssFontInfo){let R=Su(yt,X,St,this.toUnicode);this.toFontChar=R.toFontChar,k.cmap={tag:"cmap",data:Cu(R.charCodeToGlyphId,R.toUnicodeExtraMap,O)},(!k["OS/2"]||!Ib(k["OS/2"],e))&&(k["OS/2"]={tag:"OS/2",data:Iu(s,R.charCodeToGlyphId,rt)})}if(!k.name)k.name={tag:"name",data:Bc(this.name)};else{let[R,V]=g(k.name);k.name.data=Bc(t,R),this.psName=R[0][6]||null,s.composite||gb(s,this.isSymbolicFont,V)}let qt=new ol(x.version);for(let R in k)qt.addTable(R,k[R].data);return qt.toArray()}convert(t,e,s){s.fixedPitch=!1,s.builtInEncoding&&bb(s,s.builtInEncoding);let i=1;e instanceof Tc&&(i=e.numGlyphs-1);let n=e.getGlyphMapping(s),a=null,r=n,o=null;s.cssFontInfo||(a=Su(n,e.hasGlyphId.bind(e),i,this.toUnicode),this.toFontChar=a.toFontChar,r=a.charCodeToGlyphId,o=a.toUnicodeExtraMap);let l=e.numGlyphs;function c(m,g){let w=null;for(let b in m)g===m[b]&&(w||=[]).push(b|0);return w}d(c,"getCharCodes");function h(m,g){for(let w in m)if(g===m[w])return w|0;return a.charCodeToGlyphId[a.nextAvailableFontCharCode]=g,a.nextAvailableFontCharCode++}d(h,"createCharCode");let f=e.seacs;if(a&&Ar&&f?.length){let m=s.fontMatrix||Fa,g=e.getCharset(),w=Object.create(null);for(let b in f){b|=0;let j=f[b],v=En[j[2]],q=En[j[3]],x=g.indexOf(v),k=g.indexOf(q);if(x<0||k<0)continue;let A={x:j[0]*m[0]+j[1]*m[2]+m[4],y:j[0]*m[1]+j[1]*m[3]+m[5]},S=c(n,b);if(S)for(let I of S){let E=a.charCodeToGlyphId,D=h(E,x),O=h(E,k);w[I]={baseFontCharCode:D,accentFontCharCode:O,accentOffset:A}}}s.seacMap=w}let u=s.fontMatrix?1/Math.max(...s.fontMatrix.slice(0,4).map(Math.abs)):1000,p=new ol("OTTO");return p.addTable("CFF ",e.data),p.addTable("OS/2",Iu(s,r)),p.addTable("cmap",Cu(r,o,l)),p.addTable("head","\x00\x01\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00_\x0F<õ\x00\x00"+Kn(u)+"\x00\x00\x00\x00ž\v~'\x00\x00\x00\x00ž\v~'\x00\x00"+Kn(s.descent)+"\x0Fÿ"+Kn(s.ascent)+me(s.italicAngle?2:0)+"\x00\x11\x00\x00\x00\x00\x00\x00"),p.addTable("hhea","\x00\x01\x00\x00"+Kn(s.ascent)+Kn(s.descent)+"\x00\x00ÿÿ\x00\x00\x00\x00\x00\x00"+Kn(s.capHeight)+Kn(Math.tan(s.italicAngle)*s.xHeight)+"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+me(l)),p.addTable("hmtx",d(function(){let m=e.charstrings,g=e.cff?e.cff.widths:null,w="\x00\x00\x00\x00";for(let b=1,j=l;b<j;b++){let v=0;if(m){let q=m[b-1];v="width"in q?q.width:0}else g&&(v=Math.ceil(g[b]||0));w+=me(v)+me(0)}return w},"fontFieldsHmtx")()),p.addTable("maxp","\x00\x00P\x00"+me(l)),p.addTable("name",Bc(t)),p.addTable("post",Tu(s)),p.toArray()}get _spaceWidth(){let t=["space","minus","one","i","I"],e;for(let s of t){if(s in this.widths){e=this.widths[s];break}let i=an()[s],n=0;if(this.composite&&this.cMap.contains(i)&&(n=this.cMap.lookup(i),typeof n=="string"&&(n=Mc(i,n))),!n&&this.toUnicode&&(n=this.toUnicode.charCodeOf(i)),n<=0&&(n=i),e=this.widths[n],e)break}return lt(this,"_spaceWidth",e||this.defaultWidth)}_charToGlyph(t,e=!1){let s=this.#e.get(t);if(s?.isSpace===e)return s;let i,n,a,r=t;this.cMap?.contains(t)&&(r=this.cMap.lookup(t),typeof r=="string"&&(r=Mc(t,r))),n=this.widths[r],typeof n!="number"&&(n=this.defaultWidth);let o=this.vmetrics?.[r]||this.defaultVMetrics,l=this.toUnicode.get(t)||t;typeof l=="number"&&(l=String.fromCharCode(l));let c=this.toFontChar[t]!==void 0;if(i=this.toFontChar[t]||t,this.missingFile){let u=this.differences[t]||this.defaultEncoding[t];(u===".notdef"||u==="")&&this.type==="Type1"&&(i=32,u===""&&(n||=this._spaceWidth,l=String.fromCharCode(i))),i=Kg(i)}this.isType3Font&&(a=i);let h=null;if(this.seacMap?.[t]){c=!0;let u=this.seacMap[t];i=u.baseFontCharCode,h={fontChar:String.fromCodePoint(u.accentFontCharCode),offset:u.accentOffset}}let f="";if(typeof i=="number"&&(i<=1114111?f=String.fromCodePoint(i):T(`charToGlyph - invalid fontCharCode: ${i}`)),this.missingFile&&this.vertical&&f.length===1){let u=ky()[f.charCodeAt(0)];u&&(f=l=String.fromCharCode(u))}return s=new wb(t,f,l,h,n,o,a,e,c),this.#e.set(t,s),s}charsToGlyphs(t){let e=this.#t.get(t);if(e)return e;if(e=[],this.cMap){let s=Object.create(null),i=t.length,n=0;for(;n<i;){this.cMap.readCharCode(t,n,s);let{charcode:a,length:r}=s;n+=r;let o=this._charToGlyph(a,r===1&&t.charCodeAt(n-1)===32);e.push(o)}}else for(let s=0,i=t.length;s<i;++s){let n=t.charCodeAt(s),a=this._charToGlyph(n,n===32);e.push(a)}return this.#t.set(t,e),e}getCharPositions(t){let e=[];if(this.cMap){let s=Object.create(null),i=0;for(;i<t.length;){this.cMap.readCharCode(t,i,s);let n=s.length;e.push([i,i+n]),i+=n}}else for(let s=0,i=t.length;s<i;++s)e.push([s,s+1]);return e}get glyphCacheValues(){return this.#e.values()}encodeString(t){let e=[],s=[],i=d(()=>e.length%2===1,"hasCurrentBufErrors"),n=this.toUnicode instanceof bi?(a)=>this.toUnicode.charCodeOf(a):(a)=>this.toUnicode.charCodeOf(String.fromCodePoint(a));for(let a=0,r=t.length;a<r;a++){let o=t.codePointAt(a);if(o>55295&&(o<57344||o>65533)&&a++,this.toUnicode){let l=n(o);if(l!==-1){i()&&(e.push(s.join("")),s.length=0);let c=this.cMap?this.cMap.getCharCodeLength(l):1;for(let h=c-1;h>=0;h--)s.push(String.fromCharCode(l>>8*h&255));continue}}i()||(e.push(s.join("")),s.length=0),s.push(String.fromCodePoint(o))}return e.push(s.join("")),e}};Eu=class Eu{static{d(this,"ErrorFont")}constructor(t){this.error=t,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(t){return[t]}exportData(){return{error:this.error}}};si={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};Fb=class Fb{static{d(this,"Pattern")}constructor(){Yt("Cannot initialize Pattern.")}static parseShading(t,e,s,i,n,a,r=null){let o=t instanceof Lt?t.dict:t,l=o.get("ShadingType");try{switch(l){case si.AXIAL:case si.RADIAL:return new Eb(o,e,s,i,n,a);case si.FREE_FORM_MESH:case si.LATTICE_FORM_MESH:case si.COONS_PATCH_MESH:case si.TENSOR_PATCH_MESH:return r?.(),new Xn(t,e,s,i,n,a);default:throw new Q("Unsupported ShadingType: "+l)}}catch(c){if(c instanceof Ce)throw c;return T(c),new Rb}}};Sr=class Sr{static{d(this,"BaseShading")}static SMALL_NUMBER=0.000001;getIR(){Yt("Abstract method `getIR` called.")}};Eb=class Eb extends Sr{static{d(this,"RadialAxialShading")}constructor(t,e,s,i,n,a){super(),this.shadingType=t.get("ShadingType");let r=0;if(this.shadingType===si.AXIAL?r=4:this.shadingType===si.RADIAL&&(r=6),this.coordsArr=t.getArray("Coords"),!_s(this.coordsArr,r))throw new Q("RadialAxialShading: Invalid /Coords array.");let o=le.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:e,resources:s,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:a});this.bbox=ln(t.getArray("BBox"),null);let l=0,c=1,h=t.getArray("Domain");_s(h,2)&&([l,c]=h);let f=!1,u=!1,p=t.getArray("Extend");wm(p,2)&&([f,u]=p),this.extendStart=f,this.extendEnd=u;let m=t.getRaw("Function"),g=i.create(m,!0),w=840,b=(c-l)/w,j=this.colorStops=[];if(l>=c||b<=0){Wt("Bad shading domain.");return}let v=new Float32Array(o.numComps),q=new Float32Array(1),x=0;q[0]=l,g(q,0,v,0);let k=new Uint8ClampedArray(3);o.getRgb(v,0,k);let[A,S,I]=k;j.push([0,de.makeHexColor(A,S,I)]);let E=1;q[0]=l+b,g(q,0,v,0),o.getRgb(v,0,k);let[D,O,$]=k,it=D-A+1,W=O-S+1,H=$-I+1,L=D-A-1,rt=O-S-1,yt=$-I-1;for(let St=2;St<w;St++){q[0]=l+St*b,g(q,0,v,0),o.getRgb(v,0,k);let[qt,R,V]=k,N=St-x;if(it=Math.min(it,(qt-A+1)/N),W=Math.min(W,(R-S+1)/N),H=Math.min(H,(V-I+1)/N),L=Math.max(L,(qt-A-1)/N),rt=Math.max(rt,(R-S-1)/N),yt=Math.max(yt,(V-I-1)/N),!(L<=it&&rt<=W&&yt<=H)){let _=de.makeHexColor(D,O,$);j.push([E/w,_]),it=qt-D+1,W=R-O+1,H=V-$+1,L=qt-D-1,rt=R-O-1,yt=V-$-1,x=E,A=D,S=O,I=$}E=St,D=qt,O=R,$=V}j.push([1,de.makeHexColor(D,O,$)]);let X="transparent";t.has("Background")&&(X=o.getRgbHex(t.get("Background"),0)),f||(j.unshift([0,X]),j[1][0]+=Sr.SMALL_NUMBER),u||(j.at(-1)[0]-=Sr.SMALL_NUMBER,j.push([1,X])),this.colorStops=j}getIR(){let{coordsArr:t,shadingType:e}=this,s,i,n,a,r;return e===si.AXIAL?(i=[t[0],t[1]],n=[t[2],t[3]],a=null,r=null,s="axial"):e===si.RADIAL?(i=[t[0],t[1]],n=[t[3],t[4]],a=t[2],r=t[5],s="radial"):Yt(`getPattern type unknown: ${e}`),["RadialAxial",s,this.bbox,this.colorStops,i,n,a,r]}};Mb=class Mb{static{d(this,"MeshStreamReader")}constructor(t,e){this.stream=t,this.context=e,this.buffer=0,this.bufferLength=0;let s=e.numComps;this.tmpCompsBuf=new Float32Array(s);let i=e.colorSpace.numComps;this.tmpCsCompsBuf=e.colorFn?new Float32Array(i):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:e}=this,{buffer:s,bufferLength:i}=this;if(t===32){if(i===0)return e.getInt32()>>>0;s=s<<24|e.getByte()<<16|e.getByte()<<8|e.getByte();let n=e.getByte();return this.buffer=n&(1<<i)-1,(s<<8-i|(n&255)>>i)>>>0}if(t===8&&i===0)return e.getByte();for(;i<t;)s=s<<8|e.getByte(),i+=8;return i-=t,this.bufferLength=i,this.buffer=s&(1<<i)-1,s>>i}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){let{bitsPerCoordinate:t,decode:e}=this.context,s=this.readBits(t),i=this.readBits(t),n=t<32?1/((1<<t)-1):0.00000000023283064365386963;return[s*n*(e[1]-e[0])+e[0],i*n*(e[3]-e[2])+e[2]]}readComponents(){let{bitsPerComponent:t,colorFn:e,colorSpace:s,decode:i,numComps:n}=this.context,a=t<32?1/((1<<t)-1):0.00000000023283064365386963,r=this.tmpCompsBuf;for(let l=0,c=4;l<n;l++,c+=2){let h=this.readBits(t);r[l]=h*a*(i[c+1]-i[c])+i[c]}let o=this.tmpCsCompsBuf;return e?.(r,0,o,0),s.getRgb(o,0)}};Bb=Object.create(null);d(Pb,"buildB");d(Mu,"getB");d(Db,"clearPatternCaches");Xn=class Xn extends Sr{static{d(this,"MeshShading")}static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(t,e,s,i,n,a){if(super(),!(t instanceof Lt))throw new Q("Mesh data is not a stream");let r=t.dict;this.shadingType=r.get("ShadingType"),this.bbox=ln(r.getArray("BBox"),null);let o=le.parse({cs:r.getRaw("CS")||r.getRaw("ColorSpace"),xref:e,resources:s,pdfFunctionFactory:i,globalColorSpaceCache:n,localColorSpaceCache:a});this.background=r.has("Background")?o.getRgb(r.get("Background"),0):null;let l=r.getRaw("Function"),c=l?i.create(l,!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:o,numComps:c?1:o.numComps},f=new Mb(t,h),u=!1;switch(this.shadingType){case si.FREE_FORM_MESH:this._decodeType4Shading(f);break;case si.LATTICE_FORM_MESH:let p=r.get("VerticesPerRow")|0;if(p<2)throw new Q("Invalid VerticesPerRow");this._decodeType5Shading(f,p);break;case si.COONS_PATCH_MESH:this._decodeType6Shading(f),u=!0;break;case si.TENSOR_PATCH_MESH:this._decodeType7Shading(f),u=!0;break;default:Yt("Unsupported mesh type.");break}if(u){this._updateBounds();for(let p=0,m=this.figures.length;p<m;p++)this._buildFigureFromPatch(p)}this._updateBounds(),this._packData()}_decodeType4Shading(t){let e=this.coords,s=this.colors,i=[],n=0;for(;t.hasData;){let a=t.readFlag(),r=t.readCoordinate(),o=t.readComponents();if(n===0){if(!(0<=a&&a<=2))throw new Q("Unknown type4 flag");switch(a){case 0:n=3;break;case 1:i.push(i.at(-2),i.at(-1)),n=1;break;case 2:i.push(i.at(-3),i.at(-1)),n=1;break}}i.push(e.length),e.push(r),s.push(o),n--,t.align()}this.figures.push({type:Ya.TRIANGLES,coords:new Int32Array(i),colors:new Int32Array(i)})}_decodeType5Shading(t,e){let s=this.coords,i=this.colors,n=[];for(;t.hasData;){let a=t.readCoordinate(),r=t.readComponents();n.push(s.length),s.push(a),i.push(r)}this.figures.push({type:Ya.LATTICE,coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:e})}_decodeType6Shading(t){let e=this.coords,s=this.colors,i=new Int32Array(16),n=new Int32Array(4);for(;t.hasData;){let a=t.readFlag();if(!(0<=a&&a<=3))throw new Q("Unknown type6 flag");let r=e.length;for(let u=0,p=a!==0?8:12;u<p;u++)e.push(t.readCoordinate());let o=s.length;for(let u=0,p=a!==0?2:4;u<p;u++)s.push(t.readComponents());let l,c,h,f;switch(a){case 0:i[12]=r+3,i[13]=r+4,i[14]=r+5,i[15]=r+6,i[8]=r+2,i[11]=r+7,i[4]=r+1,i[7]=r+8,i[0]=r,i[1]=r+11,i[2]=r+10,i[3]=r+9,n[2]=o+1,n[3]=o+2,n[0]=o,n[1]=o+3;break;case 1:l=i[12],c=i[13],h=i[14],f=i[15],i[12]=f,i[13]=r+0,i[14]=r+1,i[15]=r+2,i[8]=h,i[11]=r+3,i[4]=c,i[7]=r+4,i[0]=l,i[1]=r+7,i[2]=r+6,i[3]=r+5,l=n[2],c=n[3],n[2]=c,n[3]=o,n[0]=l,n[1]=o+1;break;case 2:l=i[15],c=i[11],i[12]=i[3],i[13]=r+0,i[14]=r+1,i[15]=r+2,i[8]=i[7],i[11]=r+3,i[4]=c,i[7]=r+4,i[0]=l,i[1]=r+7,i[2]=r+6,i[3]=r+5,l=n[3],n[2]=n[1],n[3]=o,n[0]=l,n[1]=o+1;break;case 3:i[12]=i[0],i[13]=r+0,i[14]=r+1,i[15]=r+2,i[8]=i[1],i[11]=r+3,i[4]=i[2],i[7]=r+4,i[0]=i[3],i[1]=r+7,i[2]=r+6,i[3]=r+5,n[2]=n[0],n[3]=o,n[0]=n[1],n[1]=o+1;break}i[5]=e.length,e.push([(-4*e[i[0]][0]-e[i[15]][0]+6*(e[i[4]][0]+e[i[1]][0])-2*(e[i[12]][0]+e[i[3]][0])+3*(e[i[13]][0]+e[i[7]][0]))/9,(-4*e[i[0]][1]-e[i[15]][1]+6*(e[i[4]][1]+e[i[1]][1])-2*(e[i[12]][1]+e[i[3]][1])+3*(e[i[13]][1]+e[i[7]][1]))/9]),i[6]=e.length,e.push([(-4*e[i[3]][0]-e[i[12]][0]+6*(e[i[2]][0]+e[i[7]][0])-2*(e[i[0]][0]+e[i[15]][0])+3*(e[i[4]][0]+e[i[14]][0]))/9,(-4*e[i[3]][1]-e[i[12]][1]+6*(e[i[2]][1]+e[i[7]][1])-2*(e[i[0]][1]+e[i[15]][1])+3*(e[i[4]][1]+e[i[14]][1]))/9]),i[9]=e.length,e.push([(-4*e[i[12]][0]-e[i[3]][0]+6*(e[i[8]][0]+e[i[13]][0])-2*(e[i[0]][0]+e[i[15]][0])+3*(e[i[11]][0]+e[i[1]][0]))/9,(-4*e[i[12]][1]-e[i[3]][1]+6*(e[i[8]][1]+e[i[13]][1])-2*(e[i[0]][1]+e[i[15]][1])+3*(e[i[11]][1]+e[i[1]][1]))/9]),i[10]=e.length,e.push([(-4*e[i[15]][0]-e[i[0]][0]+6*(e[i[11]][0]+e[i[14]][0])-2*(e[i[12]][0]+e[i[3]][0])+3*(e[i[2]][0]+e[i[8]][0]))/9,(-4*e[i[15]][1]-e[i[0]][1]+6*(e[i[11]][1]+e[i[14]][1])-2*(e[i[12]][1]+e[i[3]][1])+3*(e[i[2]][1]+e[i[8]][1]))/9]),this.figures.push({type:Ya.PATCH,coords:new Int32Array(i),colors:new Int32Array(n)})}}_decodeType7Shading(t){let e=this.coords,s=this.colors,i=new Int32Array(16),n=new Int32Array(4);for(;t.hasData;){let a=t.readFlag();if(!(0<=a&&a<=3))throw new Q("Unknown type7 flag");let r=e.length;for(let u=0,p=a!==0?12:16;u<p;u++)e.push(t.readCoordinate());let o=s.length;for(let u=0,p=a!==0?2:4;u<p;u++)s.push(t.readComponents());let l,c,h,f;switch(a){case 0:i[12]=r+3,i[13]=r+4,i[14]=r+5,i[15]=r+6,i[8]=r+2,i[9]=r+13,i[10]=r+14,i[11]=r+7,i[4]=r+1,i[5]=r+12,i[6]=r+15,i[7]=r+8,i[0]=r,i[1]=r+11,i[2]=r+10,i[3]=r+9,n[2]=o+1,n[3]=o+2,n[0]=o,n[1]=o+3;break;case 1:l=i[12],c=i[13],h=i[14],f=i[15],i[12]=f,i[13]=r+0,i[14]=r+1,i[15]=r+2,i[8]=h,i[9]=r+9,i[10]=r+10,i[11]=r+3,i[4]=c,i[5]=r+8,i[6]=r+11,i[7]=r+4,i[0]=l,i[1]=r+7,i[2]=r+6,i[3]=r+5,l=n[2],c=n[3],n[2]=c,n[3]=o,n[0]=l,n[1]=o+1;break;case 2:l=i[15],c=i[11],i[12]=i[3],i[13]=r+0,i[14]=r+1,i[15]=r+2,i[8]=i[7],i[9]=r+9,i[10]=r+10,i[11]=r+3,i[4]=c,i[5]=r+8,i[6]=r+11,i[7]=r+4,i[0]=l,i[1]=r+7,i[2]=r+6,i[3]=r+5,l=n[3],n[2]=n[1],n[3]=o,n[0]=l,n[1]=o+1;break;case 3:i[12]=i[0],i[13]=r+0,i[14]=r+1,i[15]=r+2,i[8]=i[1],i[9]=r+9,i[10]=r+10,i[11]=r+3,i[4]=i[2],i[5]=r+8,i[6]=r+11,i[7]=r+4,i[0]=i[3],i[1]=r+7,i[2]=r+6,i[3]=r+5,n[2]=n[0],n[3]=o,n[0]=n[1],n[1]=o+1;break}this.figures.push({type:Ya.PATCH,coords:new Int32Array(i),colors:new Int32Array(n)})}}_buildFigureFromPatch(t){let e=this.figures[t];Fe(e.type===Ya.PATCH,"Unexpected patch mesh figure");let s=this.coords,i=this.colors,n=e.coords,a=e.colors,r=Math.min(s[n[0]][0],s[n[3]][0],s[n[12]][0],s[n[15]][0]),o=Math.min(s[n[0]][1],s[n[3]][1],s[n[12]][1],s[n[15]][1]),l=Math.max(s[n[0]][0],s[n[3]][0],s[n[12]][0],s[n[15]][0]),c=Math.max(s[n[0]][1],s[n[3]][1],s[n[12]][1],s[n[15]][1]),h=Math.ceil((l-r)*Xn.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));h=Ze(h,Xn.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Xn.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let f=Math.ceil((c-o)*Xn.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));f=Ze(f,Xn.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Xn.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let u=h+1,p=new Int32Array((f+1)*u),m=new Int32Array((f+1)*u),g=0,w=new Uint8Array(3),b=new Uint8Array(3),j=i[a[0]],v=i[a[1]],q=i[a[2]],x=i[a[3]],k=Mu(f),A=Mu(h);for(let S=0;S<=f;S++){w[0]=(j[0]*(f-S)+q[0]*S)/f|0,w[1]=(j[1]*(f-S)+q[1]*S)/f|0,w[2]=(j[2]*(f-S)+q[2]*S)/f|0,b[0]=(v[0]*(f-S)+x[0]*S)/f|0,b[1]=(v[1]*(f-S)+x[1]*S)/f|0,b[2]=(v[2]*(f-S)+x[2]*S)/f|0;for(let I=0;I<=h;I++,g++){if((S===0||S===f)&&(I===0||I===h))continue;let E=0,D=0,O=0;for(let it=0;it<=3;it++)for(let W=0;W<=3;W++,O++){let H=k[S][it]*A[I][W];E+=s[n[O]][0]*H,D+=s[n[O]][1]*H}p[g]=s.length,s.push([E,D]),m[g]=i.length;let $=new Uint8Array(3);$[0]=(w[0]*(h-I)+b[0]*I)/h|0,$[1]=(w[1]*(h-I)+b[1]*I)/h|0,$[2]=(w[2]*(h-I)+b[2]*I)/h|0,i.push($)}}p[0]=n[0],m[0]=a[0],p[h]=n[3],m[h]=a[1],p[u*f]=n[12],m[u*f]=a[2],p[u*f+h]=n[15],m[u*f+h]=a[3],this.figures[t]={type:Ya.LATTICE,coords:p,colors:m,verticesPerRow:u}}_updateBounds(){let t=this.coords[0][0],e=this.coords[0][1],s=t,i=e;for(let n=1,a=this.coords.length;n<a;n++){let r=this.coords[n][0],o=this.coords[n][1];t=t>r?r:t,e=e>o?o:e,s=s<r?r:s,i=i<o?o:i}this.bounds=[t,e,s,i]}_packData(){let t,e,s,i=this.coords,n=new Float32Array(i.length*2);for(t=0,s=0,e=i.length;t<e;t++){let l=i[t];n[s++]=l[0],n[s++]=l[1]}this.coords=n;let a=this.colors,r=new Uint8Array(a.length*4);for(t=0,s=0,e=a.length;t<e;t++){let l=a[t];r[s++]=l[0],r[s++]=l[1],r[s++]=l[2],s++}this.colors=r;let o=this.figures;for(t=0,e=o.length;t<e;t++){let l=o[t];l.coords=new Uint32Array(l.coords),l.colors=new Uint32Array(l.colors)}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}};Rb=class Rb extends Sr{static{d(this,"DummyShading")}getIR(){return["Dummy"]}};d(Bu,"getTilingPatternIR");Gy=[1.3877,1,1,1,0.97801,0.92482,0.89552,0.91133,0.81988,0.97566,0.98152,0.93548,0.93548,1.2798,0.85284,0.92794,1,0.96134,1.54657,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.82845,0.82845,0.85284,0.85284,0.85284,0.75859,0.92138,0.83908,0.7762,0.73293,0.87289,0.73133,0.7514,0.81921,0.87356,0.95958,0.59526,0.75727,0.69225,1.04924,0.9121,0.86943,0.79795,0.88198,0.77958,0.70864,0.81055,0.90399,0.88653,0.96017,0.82577,0.77892,0.78257,0.97507,1.54657,0.97507,0.85284,0.89552,0.90176,0.88762,0.8785,0.75241,0.8785,0.90518,0.95015,0.77618,0.8785,0.88401,0.91916,0.86304,0.88401,0.91488,0.8785,0.8801,0.8785,0.8785,0.91343,0.7173,1.04106,0.8785,0.85075,0.95794,0.82616,0.85162,0.79492,0.88331,1.69808,0.88331,0.85284,0.97801,0.89552,0.91133,0.89552,0.91133,1.7801,0.89552,1.24487,1.13254,1.12401,0.96839,0.85284,0.68787,0.70645,0.85592,0.90747,1.01466,1.0088,0.90323,1,1.07463,1,0.91056,0.75806,1.19118,0.96839,0.78864,0.82845,0.84133,0.75859,0.83908,0.83908,0.83908,0.83908,0.83908,0.83908,0.77539,0.73293,0.73133,0.73133,0.73133,0.73133,0.95958,0.95958,0.95958,0.95958,0.88506,0.9121,0.86943,0.86943,0.86943,0.86943,0.86943,0.85284,0.87508,0.90399,0.90399,0.90399,0.90399,0.77892,0.79795,0.90807,0.88762,0.88762,0.88762,0.88762,0.88762,0.88762,0.8715,0.75241,0.90518,0.90518,0.90518,0.90518,0.88401,0.88401,0.88401,0.88401,0.8785,0.8785,0.8801,0.8801,0.8801,0.8801,0.8801,0.90747,0.89049,0.8785,0.8785,0.8785,0.8785,0.85162,0.8785,0.85162,0.83908,0.88762,0.83908,0.88762,0.83908,0.88762,0.73293,0.75241,0.73293,0.75241,0.73293,0.75241,0.73293,0.75241,0.87289,0.83016,0.88506,0.93125,0.73133,0.90518,0.73133,0.90518,0.73133,0.90518,0.73133,0.90518,0.73133,0.90518,0.81921,0.77618,0.81921,0.77618,0.81921,0.77618,1,1,0.87356,0.8785,0.91075,0.89608,0.95958,0.88401,0.95958,0.88401,0.95958,0.88401,0.95958,0.88401,0.95958,0.88401,0.76229,0.90167,0.59526,0.91916,1,1,0.86304,0.69225,0.88401,1,1,0.70424,0.79468,0.91926,0.88175,0.70823,0.94903,0.9121,0.8785,1,1,0.9121,0.8785,0.87802,0.88656,0.8785,0.86943,0.8801,0.86943,0.8801,0.86943,0.8801,0.87402,0.89291,0.77958,0.91343,1,1,0.77958,0.91343,0.70864,0.7173,0.70864,0.7173,0.70864,0.7173,0.70864,0.7173,1,1,0.81055,0.75841,0.81055,1.06452,0.90399,0.8785,0.90399,0.8785,0.90399,0.8785,0.90399,0.8785,0.90399,0.8785,0.90399,0.8785,0.96017,0.95794,0.77892,0.85162,0.77892,0.78257,0.79492,0.78257,0.79492,0.78257,0.79492,0.9297,0.56892,0.83908,0.88762,0.77539,0.8715,0.87508,0.89049,1,1,0.81055,1.04106,1.20528,1.20528,1,1.15543,0.70674,0.98387,0.94721,1.33431,1.45894,0.95161,1.06303,0.83908,0.80352,0.57184,0.6965,0.56289,0.82001,0.56029,0.81235,1.02988,0.83908,0.7762,0.68156,0.80367,0.73133,0.78257,0.87356,0.86943,0.95958,0.75727,0.89019,1.04924,0.9121,0.7648,0.86943,0.87356,0.79795,0.78275,0.81055,0.77892,0.9762,0.82577,0.99819,0.84896,0.95958,0.77892,0.96108,1.01407,0.89049,1.02988,0.94211,0.96108,0.8936,0.84021,0.87842,0.96399,0.79109,0.89049,1.00813,1.02988,0.86077,0.87445,0.92099,0.84723,0.86513,0.8801,0.75638,0.85714,0.78216,0.79586,0.87965,0.94211,0.97747,0.78287,0.97926,0.84971,1.02988,0.94211,0.8801,0.94211,0.84971,0.73133,1,1,1,1,1,1,1,1,1,1,1,1,0.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,0.90518,1,1,1,1,1,1,1,1,1,1,1,1,0.90548,1,1,1,1,1,1,0.96017,0.95794,0.96017,0.95794,0.96017,0.95794,0.77892,0.85162,1,1,0.89552,0.90527,1,0.90363,0.92794,0.92794,0.92794,0.92794,0.87012,0.87012,0.87012,0.89552,0.89552,1.42259,0.71143,1.06152,1,1,1.03372,1.03372,0.97171,1.4956,2.2807,0.93835,0.83406,0.91133,0.84107,0.91133,1,1,1,0.72021,1,1.23108,0.83489,0.88525,0.88525,0.81499,0.90527,1.81055,0.90527,1.81055,1.31006,1.53711,0.94434,1.08696,1,0.95018,0.77192,0.85284,0.90747,1.17534,0.69825,0.9716,1.37077,0.90747,0.90747,0.85356,0.90747,0.90747,1.44947,0.85284,0.8941,0.8941,0.70572,0.8,0.70572,0.70572,0.70572,0.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,0.99862,0.99862,1,1,1,1,1,1.08004,0.91027,1,1,1,0.99862,1,1,1,1,1,1,1,1,1,1,1,1,0.90727,0.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],$y={lineHeight:1.2207,lineGap:0.2207},Vy=[1.3877,1,1,1,0.97801,0.92482,0.89552,0.91133,0.81988,0.97566,0.98152,0.93548,0.93548,1.2798,0.85284,0.92794,1,0.96134,1.56239,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.82845,0.82845,0.85284,0.85284,0.85284,0.75859,0.92138,0.83908,0.7762,0.71805,0.87289,0.73133,0.7514,0.81921,0.87356,0.95958,0.59526,0.75727,0.69225,1.04924,0.90872,0.85938,0.79795,0.87068,0.77958,0.69766,0.81055,0.90399,0.88653,0.96068,0.82577,0.77892,0.78257,0.97507,1.529,0.97507,0.85284,0.89552,0.90176,0.94908,0.86411,0.74012,0.86411,0.88323,0.95015,0.86411,0.86331,0.88401,0.91916,0.86304,0.88401,0.9039,0.86331,0.86331,0.86411,0.86411,0.90464,0.70852,1.04106,0.86331,0.84372,0.95794,0.82616,0.84548,0.79492,0.88331,1.69808,0.88331,0.85284,0.97801,0.89552,0.91133,0.89552,0.91133,1.7801,0.89552,1.24487,1.13254,1.19129,0.96839,0.85284,0.68787,0.70645,0.85592,0.90747,1.01466,1.0088,0.90323,1,1.07463,1,0.91056,0.75806,1.19118,0.96839,0.78864,0.82845,0.84133,0.75859,0.83908,0.83908,0.83908,0.83908,0.83908,0.83908,0.77539,0.71805,0.73133,0.73133,0.73133,0.73133,0.95958,0.95958,0.95958,0.95958,0.88506,0.90872,0.85938,0.85938,0.85938,0.85938,0.85938,0.85284,0.87068,0.90399,0.90399,0.90399,0.90399,0.77892,0.79795,0.90807,0.94908,0.94908,0.94908,0.94908,0.94908,0.94908,0.85887,0.74012,0.88323,0.88323,0.88323,0.88323,0.88401,0.88401,0.88401,0.88401,0.8785,0.86331,0.86331,0.86331,0.86331,0.86331,0.86331,0.90747,0.89049,0.86331,0.86331,0.86331,0.86331,0.84548,0.86411,0.84548,0.83908,0.94908,0.83908,0.94908,0.83908,0.94908,0.71805,0.74012,0.71805,0.74012,0.71805,0.74012,0.71805,0.74012,0.87289,0.79538,0.88506,0.92726,0.73133,0.88323,0.73133,0.88323,0.73133,0.88323,0.73133,0.88323,0.73133,0.88323,0.81921,0.86411,0.81921,0.86411,0.81921,0.86411,1,1,0.87356,0.86331,0.91075,0.8777,0.95958,0.88401,0.95958,0.88401,0.95958,0.88401,0.95958,0.88401,0.95958,0.88401,0.76467,0.90167,0.59526,0.91916,1,1,0.86304,0.69225,0.88401,1,1,0.70424,0.77312,0.91926,0.88175,0.70823,0.94903,0.90872,0.86331,1,1,0.90872,0.86331,0.86906,0.88116,0.86331,0.85938,0.86331,0.85938,0.86331,0.85938,0.86331,0.87402,0.86549,0.77958,0.90464,1,1,0.77958,0.90464,0.69766,0.70852,0.69766,0.70852,0.69766,0.70852,0.69766,0.70852,1,1,0.81055,0.75841,0.81055,1.06452,0.90399,0.86331,0.90399,0.86331,0.90399,0.86331,0.90399,0.86331,0.90399,0.86331,0.90399,0.86331,0.96068,0.95794,0.77892,0.84548,0.77892,0.78257,0.79492,0.78257,0.79492,0.78257,0.79492,0.9297,0.56892,0.83908,0.94908,0.77539,0.85887,0.87068,0.89049,1,1,0.81055,1.04106,1.20528,1.20528,1,1.15543,0.70088,0.98387,0.94721,1.33431,1.45894,0.95161,1.48387,0.83908,0.80352,0.57118,0.6965,0.56347,0.79179,0.55853,0.80346,1.02988,0.83908,0.7762,0.67174,0.86036,0.73133,0.78257,0.87356,0.86441,0.95958,0.75727,0.89019,1.04924,0.90872,0.74889,0.85938,0.87891,0.79795,0.7957,0.81055,0.77892,0.97447,0.82577,0.97466,0.87179,0.95958,0.77892,0.94252,0.95612,0.8753,1.02988,0.92733,0.94252,0.87411,0.84021,0.8728,0.95612,0.74081,0.8753,1.02189,1.02988,0.84814,0.87445,0.91822,0.84723,0.85668,0.86331,0.81344,0.87581,0.76422,0.82046,0.96057,0.92733,0.99375,0.78022,0.95452,0.86015,1.02988,0.92733,0.86331,0.92733,0.86015,0.73133,1,1,1,1,1,1,1,1,1,1,1,1,0.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,0.88323,1,1,1,1,1,1,1,1,1,1,1,1,0.85174,1,1,1,1,1,1,0.96068,0.95794,0.96068,0.95794,0.96068,0.95794,0.77892,0.84548,1,1,0.89552,0.90527,1,0.90363,0.92794,0.92794,0.92794,0.89807,0.87012,0.87012,0.87012,0.89552,0.89552,1.42259,0.71094,1.06152,1,1,1.03372,1.03372,0.97171,1.4956,2.2807,0.92972,0.83406,0.91133,0.83326,0.91133,1,1,1,0.72021,1,1.23108,0.83489,0.88525,0.88525,0.81499,0.90616,1.81055,0.90527,1.81055,1.3107,1.53711,0.94434,1.08696,1,0.95018,0.77192,0.85284,0.90747,1.17534,0.69825,0.9716,1.37077,0.90747,0.90747,0.85356,0.90747,0.90747,1.44947,0.85284,0.8941,0.8941,0.70572,0.8,0.70572,0.70572,0.70572,0.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,0.99862,0.99862,1,1,1,1,1,1.08004,0.91027,1,1,1,0.99862,1,1,1,1,1,1,1,1,1,1,1,1,0.90727,0.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Wy={lineHeight:1.2207,lineGap:0.2207},Ky=[1.3877,1,1,1,1.17223,1.1293,0.89552,0.91133,0.80395,1.02269,1.15601,0.91056,0.91056,1.2798,0.85284,0.89807,1,0.90861,1.39543,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.96309,0.96309,0.85284,0.85284,0.85284,0.83319,0.88071,0.8675,0.81552,0.72346,0.85193,0.73206,0.7522,0.81105,0.86275,0.90685,0.6377,0.77892,0.75593,1.02638,0.89249,0.84118,0.77452,0.85374,0.75186,0.67789,0.79776,0.88844,0.85066,0.94309,0.77818,0.7306,0.76659,1.10369,1.38313,1.10369,1.06139,0.89552,0.8739,0.9245,0.9245,0.83203,0.9245,0.85865,1.09842,0.9245,0.9245,1.03297,1.07692,0.90918,1.03297,0.94959,0.9245,0.92274,0.9245,0.9245,1.02933,0.77832,1.20562,0.9245,0.8916,0.98986,0.86621,0.89453,0.79004,0.94152,1.77256,0.94152,0.85284,0.97801,0.89552,0.91133,0.89552,0.91133,1.91729,0.89552,1.17889,1.13254,1.16359,0.92098,0.85284,0.68787,0.71353,0.84737,0.90747,1.0088,1.0044,0.87683,1,1.09091,1,0.92229,0.739,1.15642,0.92098,0.76288,0.80504,0.80972,0.75859,0.8675,0.8675,0.8675,0.8675,0.8675,0.8675,0.76318,0.72346,0.73206,0.73206,0.73206,0.73206,0.90685,0.90685,0.90685,0.90685,0.86477,0.89249,0.84118,0.84118,0.84118,0.84118,0.84118,0.85284,0.84557,0.88844,0.88844,0.88844,0.88844,0.7306,0.77452,0.86331,0.9245,0.9245,0.9245,0.9245,0.9245,0.9245,0.84843,0.83203,0.85865,0.85865,0.85865,0.85865,0.82601,0.82601,0.82601,0.82601,0.94469,0.9245,0.92274,0.92274,0.92274,0.92274,0.92274,0.90747,0.86651,0.9245,0.9245,0.9245,0.9245,0.89453,0.9245,0.89453,0.8675,0.9245,0.8675,0.9245,0.8675,0.9245,0.72346,0.83203,0.72346,0.83203,0.72346,0.83203,0.72346,0.83203,0.85193,0.8875,0.86477,0.99034,0.73206,0.85865,0.73206,0.85865,0.73206,0.85865,0.73206,0.85865,0.73206,0.85865,0.81105,0.9245,0.81105,0.9245,0.81105,0.9245,1,1,0.86275,0.9245,0.90872,0.93591,0.90685,0.82601,0.90685,0.82601,0.90685,0.82601,0.90685,1.03297,0.90685,0.82601,0.77896,1.05611,0.6377,1.07692,1,1,0.90918,0.75593,1.03297,1,1,0.76032,0.9375,0.98156,0.93407,0.77261,1.11429,0.89249,0.9245,1,1,0.89249,0.9245,0.92534,0.86698,0.9245,0.84118,0.92274,0.84118,0.92274,0.84118,0.92274,0.8667,0.86291,0.75186,1.02933,1,1,0.75186,1.02933,0.67789,0.77832,0.67789,0.77832,0.67789,0.77832,0.67789,0.77832,1,1,0.79776,0.97655,0.79776,1.23023,0.88844,0.9245,0.88844,0.9245,0.88844,0.9245,0.88844,0.9245,0.88844,0.9245,0.88844,0.9245,0.94309,0.98986,0.7306,0.89453,0.7306,0.76659,0.79004,0.76659,0.79004,0.76659,0.79004,1.09231,0.54873,0.8675,0.9245,0.76318,0.84843,0.84557,0.86651,1,1,0.79776,1.20562,1.18622,1.18622,1,1.1437,0.67009,0.96334,0.93695,1.35191,1.40909,0.95161,1.48387,0.8675,0.90861,0.6192,0.7363,0.64824,0.82411,0.56321,0.85696,1.23516,0.8675,0.81552,0.7286,0.84134,0.73206,0.76659,0.86275,0.84369,0.90685,0.77892,0.85871,1.02638,0.89249,0.75828,0.84118,0.85984,0.77452,0.76466,0.79776,0.7306,0.90782,0.77818,0.903,0.87291,0.90685,0.7306,0.99058,1.03667,0.94635,1.23516,0.9849,0.99058,0.92393,0.8916,0.942,1.03667,0.75026,0.94635,1.0297,1.23516,0.90918,0.94048,0.98217,0.89746,0.84153,0.92274,0.82507,0.88832,0.84438,0.88178,1.03525,0.9849,1.00225,0.78086,0.97248,0.89404,1.23516,0.9849,0.92274,0.9849,0.89404,0.73206,1,1,1,1,1,1,1,1,1,1,1,1,0.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,0.85865,1,1,1,1,1,1,1,1,1,1,1,1,0.90933,1,1,1,1,1,1,0.94309,0.98986,0.94309,0.98986,0.94309,0.98986,0.7306,0.89453,1,1,0.89552,0.90527,1,0.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,0.89552,0.89552,1.42259,0.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,0.97858,0.82616,0.91133,0.83437,0.91133,1,1,1,0.70508,1,1.23108,0.79801,0.84426,0.84426,0.774,0.90572,1.81055,0.90749,1.81055,1.28809,1.55469,0.94434,1.07806,1,0.97094,0.7589,0.85284,0.90747,1.19658,0.69825,0.97622,1.33512,0.90747,0.90747,0.85284,0.90747,0.90747,1.44947,0.85284,0.8941,0.8941,0.70572,0.8,0.70572,0.70572,0.70572,0.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,0.99862,0.99862,1,1,1,1,1,1.0336,0.91027,1,1,1,0.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],Yy={lineHeight:1.2207,lineGap:0.2207},Xy=[1.3877,1,1,1,1.17223,1.1293,0.89552,0.91133,0.80395,1.02269,1.15601,0.91056,0.91056,1.2798,0.85284,0.89807,1,0.90861,1.39016,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.91133,0.96309,0.96309,0.85284,0.85284,0.85284,0.83319,0.88071,0.8675,0.81552,0.73834,0.85193,0.73206,0.7522,0.81105,0.86275,0.90685,0.6377,0.77892,0.75593,1.02638,0.89385,0.85122,0.77452,0.86503,0.75186,0.68887,0.79776,0.88844,0.85066,0.94258,0.77818,0.7306,0.76659,1.10369,1.39016,1.10369,1.06139,0.89552,0.8739,0.86128,0.94469,0.8457,0.94469,0.89464,1.09842,0.84636,0.94469,1.03297,1.07692,0.90918,1.03297,0.95897,0.94469,0.9482,0.94469,0.94469,1.04692,0.78223,1.20562,0.94469,0.90332,0.98986,0.86621,0.90527,0.79004,0.94152,1.77256,0.94152,0.85284,0.97801,0.89552,0.91133,0.89552,0.91133,1.91729,0.89552,1.17889,1.13254,1.08707,0.92098,0.85284,0.68787,0.71353,0.84737,0.90747,1.0088,1.0044,0.87683,1,1.09091,1,0.92229,0.739,1.15642,0.92098,0.76288,0.80504,0.80972,0.75859,0.8675,0.8675,0.8675,0.8675,0.8675,0.8675,0.76318,0.73834,0.73206,0.73206,0.73206,0.73206,0.90685,0.90685,0.90685,0.90685,0.86477,0.89385,0.85122,0.85122,0.85122,0.85122,0.85122,0.85284,0.85311,0.88844,0.88844,0.88844,0.88844,0.7306,0.77452,0.86331,0.86128,0.86128,0.86128,0.86128,0.86128,0.86128,0.8693,0.8457,0.89464,0.89464,0.89464,0.89464,0.82601,0.82601,0.82601,0.82601,0.94469,0.94469,0.9482,0.9482,0.9482,0.9482,0.9482,0.90747,0.86651,0.94469,0.94469,0.94469,0.94469,0.90527,0.94469,0.90527,0.8675,0.86128,0.8675,0.86128,0.8675,0.86128,0.73834,0.8457,0.73834,0.8457,0.73834,0.8457,0.73834,0.8457,0.85193,0.92454,0.86477,0.9921,0.73206,0.89464,0.73206,0.89464,0.73206,0.89464,0.73206,0.89464,0.73206,0.89464,0.81105,0.84636,0.81105,0.84636,0.81105,0.84636,1,1,0.86275,0.94469,0.90872,0.95786,0.90685,0.82601,0.90685,0.82601,0.90685,0.82601,0.90685,1.03297,0.90685,0.82601,0.77741,1.05611,0.6377,1.07692,1,1,0.90918,0.75593,1.03297,1,1,0.76032,0.90452,0.98156,1.11842,0.77261,1.11429,0.89385,0.94469,1,1,0.89385,0.94469,0.95877,0.86901,0.94469,0.85122,0.9482,0.85122,0.9482,0.85122,0.9482,0.8667,0.90016,0.75186,1.04692,1,1,0.75186,1.04692,0.68887,0.78223,0.68887,0.78223,0.68887,0.78223,0.68887,0.78223,1,1,0.79776,0.92188,0.79776,1.23023,0.88844,0.94469,0.88844,0.94469,0.88844,0.94469,0.88844,0.94469,0.88844,0.94469,0.88844,0.94469,0.94258,0.98986,0.7306,0.90527,0.7306,0.76659,0.79004,0.76659,0.79004,0.76659,0.79004,1.09231,0.54873,0.8675,0.86128,0.76318,0.8693,0.85311,0.86651,1,1,0.79776,1.20562,1.18622,1.18622,1,1.1437,0.67742,0.96334,0.93695,1.35191,1.40909,0.95161,1.48387,0.86686,0.90861,0.62267,0.74359,0.65649,0.85498,0.56963,0.88254,1.23516,0.8675,0.81552,0.75443,0.84503,0.73206,0.76659,0.86275,0.85122,0.90685,0.77892,0.85746,1.02638,0.89385,0.75657,0.85122,0.86275,0.77452,0.74171,0.79776,0.7306,0.95165,0.77818,0.89772,0.88831,0.90685,0.7306,0.98142,1.02191,0.96576,1.23516,0.99018,0.98142,0.9236,0.89258,0.94035,1.02191,0.78848,0.96576,0.9561,1.23516,0.90918,0.92578,0.95424,0.89746,0.83969,0.9482,0.80113,0.89442,0.85208,0.86155,0.98022,0.99018,1.00452,0.81209,0.99247,0.89181,1.23516,0.99018,0.9482,0.99018,0.89181,0.73206,1,1,1,1,1,1,1,1,1,1,1,1,0.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,0.89464,1,1,1,1,1,1,1,1,1,1,1,1,0.96766,1,1,1,1,1,1,0.94258,0.98986,0.94258,0.98986,0.94258,0.98986,0.7306,0.90527,1,1,0.89552,0.90527,1,0.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,0.89552,0.89552,1.42259,0.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,0.99331,0.82616,0.91133,0.84286,0.91133,1,1,1,0.70508,1,1.23108,0.79801,0.84426,0.84426,0.774,0.90527,1.81055,0.90527,1.81055,1.28809,1.55469,0.94434,1.07806,1,0.97094,0.7589,0.85284,0.90747,1.19658,0.69825,0.97622,1.33512,0.90747,0.90747,0.85356,0.90747,0.90747,1.44947,0.85284,0.8941,0.8941,0.70572,0.8,0.70572,0.70572,0.70572,0.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,0.99862,0.99862,1,1,1,1,1,1.0336,0.91027,1,1,1,0.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,0.99413,0.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],Qy={lineHeight:1.2207,lineGap:0.2207},Jy=[0.76116,1,1,1.0006,0.99998,0.99974,0.99973,0.99973,0.99982,0.99977,1.00087,0.99998,0.99998,0.99959,1.00003,1.0006,0.99998,1.0006,1.0006,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99998,1,1.00003,1.00003,1.00003,1.00026,0.9999,0.99977,0.99977,0.99977,0.99977,1.00001,1.00026,1.00022,0.99977,1.0006,0.99973,0.99977,1.00026,0.99999,0.99977,1.00022,1.00001,1.00022,0.99977,1.00001,1.00026,0.99977,1.00001,1.00016,1.00001,1.00001,1.00026,0.99998,1.0006,0.99998,1.00003,0.99973,0.99998,0.99973,1.00026,0.99973,1.00026,0.99973,0.99998,1.00026,1.00026,1.0006,1.0006,0.99973,1.0006,0.99982,1.00026,1.00026,1.00026,1.00026,0.99959,0.99973,0.99998,1.00026,0.99973,1.00022,0.99973,0.99973,1,0.99959,1.00077,0.99959,1.00003,0.99998,0.99973,0.99973,0.99973,0.99973,1.00077,0.99973,0.99998,1.00025,0.99968,0.99973,1.00003,1.00025,0.60299,1.00024,1.06409,1,1,0.99998,1,0.99973,1.0006,0.99998,1,0.99936,0.99973,1.00002,1.00002,1.00002,1.00026,0.99977,0.99977,0.99977,0.99977,0.99977,0.99977,1,0.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,0.99977,0.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,0.99977,0.99977,0.99977,0.99977,1.00001,1.00001,1.00026,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99982,0.99973,0.99973,0.99973,0.99973,0.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,0.99973,1.00026,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,1.03374,0.99977,1.00026,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,0.99977,1.00026,0.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,0.99973,0.99973,1.0006,0.99977,0.99973,0.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,0.99999,1.00026,1.0006,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,0.9993,0.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,0.99977,0.99959,0.99977,0.99959,0.99977,0.99959,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00026,0.99998,1.00026,0.8121,1.00026,0.99998,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,1.00016,1.00022,1.00001,0.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,0.99973,0.99977,0.99973,1,0.99982,1.00022,1.00026,1.00001,0.99973,1.00026,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,1.00034,0.99977,1,0.99997,1.00026,1.00078,1.00036,0.99973,1.00013,1.0006,0.99977,0.99977,0.99988,0.85148,1.00001,1.00026,0.99977,1.00022,1.0006,0.99977,1.00001,0.99999,0.99977,1.00069,1.00022,0.99977,1.00001,0.99984,1.00026,1.00001,1.00024,1.00001,0.9999,1,1.0006,1.00001,1.00041,0.99962,1.00026,1.0006,0.99995,1.00041,0.99942,0.99973,0.99927,1.00082,0.99902,1.00026,1.00087,1.0006,1.00069,0.99973,0.99867,0.99973,0.9993,1.00026,1.00049,1.00056,1,0.99988,0.99935,0.99995,0.99954,1.00055,0.99945,1.00032,1.0006,0.99995,1.00026,0.99995,1.00032,1.00001,1.00008,0.99971,1.00019,0.9994,1.00001,1.0006,1.00044,0.99973,1.00023,1.00047,1,0.99942,0.99561,0.99989,1.00035,0.99977,1.00035,0.99977,1.00019,0.99944,1.00001,1.00021,0.99926,1.00035,1.00035,0.99942,1.00048,0.99999,0.99977,1.00022,1.00035,1.00001,0.99977,1.00026,0.99989,1.00057,1.00001,0.99936,1.00052,1.00012,0.99996,1.00043,1,1.00035,0.9994,0.99976,1.00035,0.99973,1.00052,1.00041,1.00119,1.00037,0.99973,1.00002,0.99986,1.00041,1.00041,0.99902,0.9996,1.00034,0.99999,1.00026,0.99999,1.00026,0.99973,1.00052,0.99973,1,0.99973,1.00041,1.00075,0.9994,1.0003,0.99999,1,1.00041,0.99955,1,0.99915,0.99973,0.99973,1.00026,1.00119,0.99955,0.99973,1.0006,0.99911,1.0006,1.00026,0.99972,1.00026,0.99902,1.00041,0.99973,0.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,0.99973,1,1,0.99973,1,1,0.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,0.99973,0.99973,0.99972,1,1,1.00106,0.99999,0.99998,0.99998,0.99999,0.99998,1.66475,1,0.99973,0.99973,1.00023,0.99973,0.99971,1.00047,1.00023,1,0.99991,0.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,0.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,0.99561,1.00027,1.00031,1.00031,0.99915,1.00031,1.00031,0.99999,1.00003,0.99999,0.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,0.99999,1,0.99861,0.99861,1,1.00026,1.00026,1.00026,1.00026,0.99972,0.99999,0.99999,0.99999,0.99999,1.40483,1,0.99977,1.00054,1,1,0.99953,0.99962,1.00042,0.9995,1,1,1,1,1,1,1,1,0.99998,0.99998,0.99998,0.99998,1,1,1,1,1,1,1,1,1,1,1],Zy={lineHeight:1.2,lineGap:0.2},tj=[0.76116,1,1,1.0006,0.99998,0.99974,0.99973,0.99973,0.99982,0.99977,1.00087,0.99998,0.99998,0.99959,1.00003,1.0006,0.99998,1.0006,1.0006,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99998,1,1.00003,1.00003,1.00003,1.00026,0.9999,0.99977,0.99977,0.99977,0.99977,1.00001,1.00026,1.00022,0.99977,1.0006,0.99973,0.99977,1.00026,0.99999,0.99977,1.00022,1.00001,1.00022,0.99977,1.00001,1.00026,0.99977,1.00001,1.00016,1.00001,1.00001,1.00026,0.99998,1.0006,0.99998,1.00003,0.99973,0.99998,0.99973,1.00026,0.99973,1.00026,0.99973,0.99998,1.00026,1.00026,1.0006,1.0006,0.99973,1.0006,0.99982,1.00026,1.00026,1.00026,1.00026,0.99959,0.99973,0.99998,1.00026,0.99973,1.00022,0.99973,0.99973,1,0.99959,1.00077,0.99959,1.00003,0.99998,0.99973,0.99973,0.99973,0.99973,1.00077,0.99973,0.99998,1.00025,0.99968,0.99973,1.00003,1.00025,0.60299,1.00024,1.06409,1,1,0.99998,1,0.99973,1.0006,0.99998,1,0.99936,0.99973,1.00002,1.00002,1.00002,1.00026,0.99977,0.99977,0.99977,0.99977,0.99977,0.99977,1,0.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,0.99977,0.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,0.99977,0.99977,0.99977,0.99977,1.00001,1.00001,1.00026,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99982,0.99973,0.99973,0.99973,0.99973,0.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,0.99973,1.00026,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,1.0044,0.99977,1.00026,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,0.99977,1.00026,0.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,0.99971,0.99973,0.99973,1.0006,0.99977,0.99973,0.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,0.99999,1.00026,1.0006,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,0.9993,0.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,0.99977,0.99959,0.99977,0.99959,0.99977,0.99959,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00026,0.99998,1.00026,0.8121,1.00026,0.99998,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,0.99977,1.00026,1.00016,1.00022,1.00001,0.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,0.99973,0.99977,0.99973,1,0.99982,1.00022,1.00026,1.00001,0.99973,1.00026,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99977,1,1,1.00026,0.99969,0.99972,0.99981,0.9998,1.0006,0.99977,0.99977,1.00022,0.91155,1.00001,1.00026,0.99977,1.00022,1.0006,0.99977,1.00001,0.99999,0.99977,0.99966,1.00022,1.00032,1.00001,0.99944,1.00026,1.00001,0.99968,1.00001,1.00047,1,1.0006,1.00001,0.99981,1.00101,1.00026,1.0006,0.99948,0.99981,1.00064,0.99973,0.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,0.99973,1.01322,0.99973,1.00065,1.00026,1.00012,0.99923,1,1.00064,1.00076,0.99948,1.00055,1.00063,1.00007,0.99943,1.0006,0.99948,1.00026,0.99948,0.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,0.99973,0.99978,1.00001,1.00057,0.99989,0.99967,0.99964,0.99967,0.99977,0.99999,0.99977,1.00038,0.99977,1.00001,0.99973,1.00066,0.99967,0.99967,1.00041,0.99998,0.99999,0.99977,1.00022,0.99967,1.00001,0.99977,1.00026,0.99964,1.00031,1.00001,0.99999,0.99999,1,1.00023,1,1,0.99999,1.00035,1.00001,0.99999,0.99973,0.99977,0.99999,1.00058,0.99973,0.99973,0.99955,0.9995,1.00026,1.00026,1.00032,0.99989,1.00034,0.99999,1.00026,1.00026,1.00026,0.99973,0.45998,0.99973,1.00026,0.99973,1.00001,0.99999,0.99982,0.99994,0.99996,1,1.00042,1.00044,1.00029,1.00023,0.99973,0.99973,1.00026,0.99949,1.00002,0.99973,1.0006,1.0006,1.0006,0.99975,1.00026,1.00026,1.00032,0.98685,0.99973,1.00026,1,1,0.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,0.99973,1,1,0.99973,1,1,0.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,0.99973,0.99973,0.99972,1,1,1.00106,0.99999,0.99998,0.99998,0.99999,0.99998,1.66475,1,0.99973,0.99973,1,0.99973,0.99971,0.99978,1,1,0.99991,0.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,0.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,0.99561,1.00027,1.00031,1.00031,0.99915,1.00031,1.00031,0.99999,1.00003,0.99999,0.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,0.99999,1,0.99861,0.99861,1,1.00026,1.00026,1.00026,1.00026,0.99972,0.99999,0.99999,0.99999,0.99999,1.40483,1,0.99977,1.00054,1,1,0.99953,0.99962,1.00042,0.9995,1,1,1,1,1,1,1,1,0.99998,0.99998,0.99998,0.99998,1,1,1,1,1,1,1,1,1,1,1],ej={lineHeight:1.35,lineGap:0.2},sj=[0.76116,1,1,1.0006,1.0006,1.00006,0.99973,0.99973,0.99982,1.00001,1.00043,0.99998,0.99998,0.99959,1.00003,1.0006,0.99998,1.0006,1.0006,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,1.0006,1,1.00003,1.00003,1.00003,0.99973,0.99987,1.00001,1.00001,0.99977,0.99977,1.00001,1.00026,1.00022,0.99977,1.0006,1,1.00001,0.99973,0.99999,0.99977,1.00022,1.00001,1.00022,0.99977,1.00001,1.00026,0.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,0.99949,0.99973,0.99998,0.99973,0.99973,1,0.99973,0.99973,1.0006,0.99973,0.99973,0.99924,0.99924,1,0.99924,0.99999,0.99973,0.99973,0.99973,0.99973,0.99998,1,1.0006,0.99973,1,0.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,0.99998,0.99973,0.99973,0.99973,0.99973,1.0009,0.99973,0.99998,1.00025,0.99968,0.99973,1.00003,1.00025,0.60299,1.00024,1.06409,1,1,0.99998,1,0.9998,1.0006,0.99998,1,0.99936,0.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,0.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,0.99977,0.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,0.99977,0.99977,0.99977,0.99977,1.00001,1.00001,1.00026,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99982,1,0.99973,0.99973,0.99973,0.99973,1.0006,1.0006,1.0006,1.0006,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,1.06409,1.00026,0.99973,0.99973,0.99973,0.99973,1,0.99973,1,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,0.99977,1,0.99977,1,0.99977,1,0.99977,1,0.99977,1.0288,0.99977,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00022,0.99973,1.00022,0.99973,1.00022,0.99973,1.00022,0.99973,0.99977,0.99973,0.99977,0.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,0.99924,1.0006,1.0006,0.99946,1.00034,1,0.99924,1.00001,1,1,0.99973,0.99924,0.99973,0.99924,0.99973,1.06311,0.99973,1.00024,0.99973,0.99924,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,1.00041,0.9998,0.99973,1.00022,0.99973,1.00022,0.99973,1.00022,0.99973,1,1.00016,0.99977,0.99998,0.99977,0.99998,0.99977,0.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,0.89547,1.00026,1.0006,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,1.00016,0.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,0.99924,0.99973,1.00001,0.99973,1,0.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,1.00001,1,1.00054,0.99977,1.00084,1.00007,0.99973,1.00013,0.99924,1.00001,1.00001,0.99945,0.91221,1.00001,1.00026,0.99977,1.00022,1.0006,1.00001,1.00001,0.99999,0.99977,0.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,0.99945,0.99897,0.99968,0.99924,1.00036,0.99945,0.99949,1,1.0006,0.99897,0.99918,0.99968,0.99911,0.99924,1,0.99962,1.01487,1,1.0005,0.99973,1.00012,1.00043,1,0.99995,0.99994,1.00036,0.99947,1.00019,1.00063,1.00025,0.99924,1.00036,0.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,0.99957,0.99972,0.9994,0.99954,0.99975,1.00051,1.00001,1.00019,1.00001,1.0001,0.99986,1.00001,1.00001,1.00038,0.99954,0.99954,0.9994,1.00066,0.99999,0.99977,1.00022,1.00054,1.00001,0.99977,1.00026,0.99975,1.0001,1.00001,0.99993,0.9995,0.99955,1.00016,0.99978,0.99974,1.00019,1.00022,0.99955,1.00053,0.99973,1.00089,1.00005,0.99967,1.00048,0.99973,1.00002,1.00034,0.99973,0.99973,0.99964,1.00006,1.00066,0.99947,0.99973,0.98894,0.99973,1,0.44898,1,0.99946,1,1.00039,1.00082,0.99991,0.99991,0.99985,1.00022,1.00023,1.00061,1.00006,0.99966,0.99973,0.99973,0.99973,1.00019,1.0008,1,0.99924,0.99924,0.99924,0.99983,1.00044,0.99973,0.99964,0.98332,1,0.99973,1,1,0.99962,0.99895,1.00016,0.99977,1.00016,0.99977,1.00016,0.99977,1.00001,1,1,1,0.99973,1,1,0.99955,0.99924,0.99924,0.99924,0.99924,0.99998,0.99998,0.99998,0.99973,0.99973,0.99972,1,1,1.00267,0.99999,0.99998,0.99998,1,0.99998,1.66475,1,0.99973,0.99973,1.00023,0.99973,1.00423,0.99925,0.99999,1,0.99991,0.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,0.96329,1,1.20985,1.39713,1.00003,0.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,0.99999,1.00003,0.99999,0.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,0.99999,1,0.99861,0.99861,1,1.00026,1.00026,1.00026,1.00026,0.95317,0.99999,0.99999,0.99999,0.99999,1.40483,1,0.99977,1.00054,1,1,0.99953,0.99962,1.00042,0.9995,1,1,1,1,1,1,1,1,0.99998,0.99998,0.99998,0.99998,1,1,1,1,1,1,1,1,1,1,1],ij={lineHeight:1.35,lineGap:0.2},nj=[0.76116,1,1,1.0006,1.0006,1.00006,0.99973,0.99973,0.99982,1.00001,1.00043,0.99998,0.99998,0.99959,1.00003,1.0006,0.99998,1.0006,1.0006,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,1.0006,1,1.00003,1.00003,1.00003,0.99973,0.99987,1.00001,1.00001,0.99977,0.99977,1.00001,1.00026,1.00022,0.99977,1.0006,1,1.00001,0.99973,0.99999,0.99977,1.00022,1.00001,1.00022,0.99977,1.00001,1.00026,0.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,0.99949,0.99973,0.99998,0.99973,0.99973,1,0.99973,0.99973,1.0006,0.99973,0.99973,0.99924,0.99924,1,0.99924,0.99999,0.99973,0.99973,0.99973,0.99973,0.99998,1,1.0006,0.99973,1,0.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,0.99998,0.99973,0.99973,0.99973,0.99973,1.0009,0.99973,0.99998,1.00025,0.99968,0.99973,1.00003,1.00025,0.60299,1.00024,1.06409,1,1,0.99998,1,0.9998,1.0006,0.99998,1,0.99936,0.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,0.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,0.99977,0.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,0.99977,0.99977,0.99977,0.99977,1.00001,1.00001,1.00026,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99982,1,0.99973,0.99973,0.99973,0.99973,1.0006,1.0006,1.0006,1.0006,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,0.99973,1.06409,1.00026,0.99973,0.99973,0.99973,0.99973,1,0.99973,1,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,0.99977,1,0.99977,1,0.99977,1,0.99977,1,0.99977,1.04596,0.99977,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00001,0.99973,1.00022,0.99973,1.00022,0.99973,1.00022,0.99973,1.00022,0.99973,0.99977,0.99973,0.99977,0.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,0.99924,1.0006,1.0006,1.00019,1.00034,1,0.99924,1.00001,1,1,0.99973,0.99924,0.99973,0.99924,0.99973,1.02572,0.99973,1.00005,0.99973,0.99924,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99999,0.9998,0.99973,1.00022,0.99973,1.00022,0.99973,1.00022,0.99973,1,1.00016,0.99977,0.99998,0.99977,0.99998,0.99977,0.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,0.84533,1.00026,1.0006,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,0.99977,0.99973,1.00016,0.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,0.99924,0.99973,1.00001,0.99973,1,0.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99998,0.99928,1,0.99977,1.00013,1.00055,0.99947,0.99945,0.99941,0.99924,1.00001,1.00001,1.0004,0.91621,1.00001,1.00026,0.99977,1.00022,1.0006,1.00001,1.00005,0.99999,0.99977,1.00015,1.00022,0.99977,1.00001,0.99973,1.00026,1.00001,1.00019,1.00001,0.99946,1,1.0006,1.00001,0.99978,1.00045,0.99973,0.99924,1.00023,0.99978,0.99966,1,1.00065,1.00045,1.00019,0.99973,0.99973,0.99924,1,1,0.96499,1,1.00055,0.99973,1.00008,1.00027,1,0.9997,0.99995,1.00023,0.99933,1.00019,1.00015,1.00031,0.99924,1.00023,0.99973,1.00023,1.00031,1.00001,0.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,0.99988,0.99975,1,1.00082,0.99561,0.9996,1.00035,1.00001,0.99962,1.00001,1.00092,0.99964,1.00001,0.99963,0.99999,1.00035,1.00035,1.00082,0.99962,0.99999,0.99977,1.00022,1.00035,1.00001,0.99977,1.00026,0.9996,0.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,0.99971,0.99962,1.00035,0.99975,0.99977,0.99973,1.00043,0.99953,1.0007,0.99915,0.99973,1.00008,0.99892,1.00073,1.00073,1.00114,0.99915,1.00073,0.99955,0.99973,1.00092,0.99973,1,0.99998,1,1.0003,1,1.00043,1.00001,0.99969,1.0003,1,1.00035,1.00001,0.9995,1,1.00092,0.99973,0.99973,0.99973,1.0007,0.9995,1,0.99924,1.0006,0.99924,0.99972,1.00062,0.99973,1.00114,1.00073,1,0.99955,1,1,1.00047,0.99968,1.00016,0.99977,1.00016,0.99977,1.00016,0.99977,1.00001,1,1,1,0.99973,1,1,0.99955,0.99924,0.99924,0.99924,0.99924,0.99998,0.99998,0.99998,0.99973,0.99973,0.99972,1,1,1.00267,0.99999,0.99998,0.99998,1,0.99998,1.66475,1,0.99973,0.99973,1.00023,0.99973,0.99971,0.99925,1.00023,1,0.99991,0.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,0.96329,1,1.20985,1.39713,1.00003,0.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,0.99915,1.00031,1.00031,0.99999,1.00003,0.99999,0.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,0.99999,1,0.99861,0.99861,1,1.00026,1.00026,1.00026,1.00026,0.95317,0.99999,0.99999,0.99999,0.99999,1.40483,1,0.99977,1.00054,1,1,0.99953,0.99962,1.00042,0.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],aj={lineHeight:1.2,lineGap:0.2},ro=[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,1000,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,1000,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,1000,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,1000,1000,552,278,278,278,278,500,500,500,556,556,350,1000,1000,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1000,768,600,834,834,834,834,1000,500,1000,500,1000,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,1000,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],oo=[-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],lo=[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,1000,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,1000,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,1000,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,1000,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,1000,1000,552,278,278,278,278,500,500,500,556,556,350,1000,1000,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1000,768,600,834,834,834,834,999,500,1000,500,1000,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,1000,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],co=[-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],ho=[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,1000,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,1000,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,1000,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,1000,1000,552,222,222,222,222,333,333,333,556,556,350,1000,1000,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1000,768,600,834,834,834,834,1000,500,998,500,1000,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,1000,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],uo=[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,1000,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,1000,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,1000,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,1000,1000,552,222,222,222,222,333,333,333,556,556,350,1000,1000,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1000,768,600,834,834,834,834,1000,500,1000,500,1000,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,1000,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],po=[-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],rj=[1.36898,1,1,0.72706,0.80479,0.83734,0.98894,0.99793,0.9897,0.93884,0.86209,0.94292,0.94292,1.16661,1.02058,0.93582,0.96694,0.93582,1.19137,0.99793,0.99793,0.99793,0.99793,0.99793,0.99793,0.99793,0.99793,0.99793,0.99793,0.78076,0.78076,1.02058,1.02058,1.02058,0.72851,0.78966,0.90838,0.83637,0.82391,0.96376,0.80061,0.86275,0.8768,0.95407,1.0258,0.73901,0.85022,0.83655,1.0156,0.95546,0.92179,0.87107,0.92179,0.82114,0.8096,0.89713,0.94438,0.95353,0.94083,0.91905,0.90406,0.9446,0.94292,1.18777,0.94292,1.02058,0.89903,0.90088,0.94938,0.97898,0.81093,0.97571,0.94938,1.024,0.9577,0.95933,0.98621,1.0474,0.97455,0.98981,0.9672,0.95933,0.9446,0.97898,0.97407,0.97646,0.78036,1.10208,0.95442,0.95298,0.97579,0.9332,0.94039,0.938,0.80687,1.01149,0.80687,1.02058,0.80479,0.99793,0.99793,0.99793,0.99793,1.01149,1.00872,0.90088,0.91882,1.0213,0.8361,1.02058,0.62295,0.54324,0.89022,1.08595,1,1,0.90088,1,0.97455,0.93582,0.90088,1,1.05686,0.8361,0.99642,0.99642,0.99642,0.72851,0.90838,0.90838,0.90838,0.90838,0.90838,0.90838,0.868,0.82391,0.80061,0.80061,0.80061,0.80061,1.0258,1.0258,1.0258,1.0258,0.97484,0.95546,0.92179,0.92179,0.92179,0.92179,0.92179,1.02058,0.92179,0.94438,0.94438,0.94438,0.94438,0.90406,0.86958,0.98225,0.94938,0.94938,0.94938,0.94938,0.94938,0.94938,0.9031,0.81093,0.94938,0.94938,0.94938,0.94938,0.98621,0.98621,0.98621,0.98621,0.93969,0.95933,0.9446,0.9446,0.9446,0.9446,0.9446,1.08595,0.9446,0.95442,0.95442,0.95442,0.95442,0.94039,0.97898,0.94039,0.90838,0.94938,0.90838,0.94938,0.90838,0.94938,0.82391,0.81093,0.82391,0.81093,0.82391,0.81093,0.82391,0.81093,0.96376,0.84313,0.97484,0.97571,0.80061,0.94938,0.80061,0.94938,0.80061,0.94938,0.80061,0.94938,0.80061,0.94938,0.8768,0.9577,0.8768,0.9577,0.8768,0.9577,1,1,0.95407,0.95933,0.97069,0.95933,1.0258,0.98621,1.0258,0.98621,1.0258,0.98621,1.0258,0.98621,1.0258,0.98621,0.887,1.01591,0.73901,1.0474,1,1,0.97455,0.83655,0.98981,1,1,0.83655,0.73977,0.83655,0.73903,0.84638,1.033,0.95546,0.95933,1,1,0.95546,0.95933,0.8271,0.95417,0.95933,0.92179,0.9446,0.92179,0.9446,0.92179,0.9446,0.936,0.91964,0.82114,0.97646,1,1,0.82114,0.97646,0.8096,0.78036,0.8096,0.78036,1,1,0.8096,0.78036,1,1,0.89713,0.77452,0.89713,1.10208,0.94438,0.95442,0.94438,0.95442,0.94438,0.95442,0.94438,0.95442,0.94438,0.95442,0.94438,0.95442,0.94083,0.97579,0.90406,0.94039,0.90406,0.9446,0.938,0.9446,0.938,0.9446,0.938,1,0.99793,0.90838,0.94938,0.868,0.9031,0.92179,0.9446,1,1,0.89713,1.10208,0.90088,0.90088,0.90088,0.90088,0.90088,0.90088,0.90088,0.90088,0.90088,0.90989,0.9358,0.91945,0.83181,0.75261,0.87992,0.82976,0.96034,0.83689,0.97268,1.0078,0.90838,0.83637,0.8019,0.90157,0.80061,0.9446,0.95407,0.92436,1.0258,0.85022,0.97153,1.0156,0.95546,0.89192,0.92179,0.92361,0.87107,0.96318,0.89713,0.93704,0.95638,0.91905,0.91709,0.92796,1.0258,0.93704,0.94836,1.0373,0.95933,1.0078,0.95871,0.94836,0.96174,0.92601,0.9498,0.98607,0.95776,0.95933,1.05453,1.0078,0.98275,0.9314,0.95617,0.91701,1.05993,0.9446,0.78367,0.9553,1,0.86832,1.0128,0.95871,0.99394,0.87548,0.96361,0.86774,1.0078,0.95871,0.9446,0.95871,0.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,0.94083,0.97579,0.94083,0.97579,0.94083,0.97579,0.90406,0.94039,0.96694,1,0.89903,1,1,1,0.93582,0.93582,0.93582,1,0.908,0.908,0.918,0.94219,0.94219,0.96544,1,1.285,1,1,0.81079,0.81079,1,1,0.74854,1,1,1,1,0.99793,1,1,1,0.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,0.80535,0.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],oj={lineHeight:1.2,lineGap:0.2},lj=[1.36898,1,1,0.66227,0.80779,0.81625,0.97276,0.97276,0.97733,0.92222,0.83266,0.94292,0.94292,1.16148,1.02058,0.93582,0.96694,0.93582,1.17337,0.97276,0.97276,0.97276,0.97276,0.97276,0.97276,0.97276,0.97276,0.97276,0.97276,0.78076,0.78076,1.02058,1.02058,1.02058,0.71541,0.76813,0.85576,0.80591,0.80729,0.94299,0.77512,0.83655,0.86523,0.92222,0.98621,0.71743,0.81698,0.79726,0.98558,0.92222,0.90637,0.83809,0.90637,0.80729,0.76463,0.86275,0.90699,0.91605,0.9154,0.85308,0.85458,0.90531,0.94292,1.21296,0.94292,1.02058,0.89903,1.18616,0.99613,0.91677,0.78216,0.91677,0.90083,0.98796,0.9135,0.92168,0.95381,0.98981,0.95298,0.95381,0.93459,0.92168,0.91513,0.92004,0.91677,0.95077,0.748,1.04502,0.91677,0.92061,0.94236,0.89544,0.89364,0.9,0.80687,0.8578,0.80687,1.02058,0.80779,0.97276,0.97276,0.97276,0.97276,0.8578,0.99973,1.18616,0.91339,1.08074,0.82891,1.02058,0.55509,0.71526,0.89022,1.08595,1,1,1.18616,1,0.96736,0.93582,1.18616,1,1.04864,0.82711,0.99043,0.99043,0.99043,0.71541,0.85576,0.85576,0.85576,0.85576,0.85576,0.85576,0.845,0.80729,0.77512,0.77512,0.77512,0.77512,0.98621,0.98621,0.98621,0.98621,0.95961,0.92222,0.90637,0.90637,0.90637,0.90637,0.90637,1.02058,0.90251,0.90699,0.90699,0.90699,0.90699,0.85458,0.83659,0.94951,0.99613,0.99613,0.99613,0.99613,0.99613,0.99613,0.85811,0.78216,0.90083,0.90083,0.90083,0.90083,0.95381,0.95381,0.95381,0.95381,0.9135,0.92168,0.91513,0.91513,0.91513,0.91513,0.91513,1.08595,0.91677,0.91677,0.91677,0.91677,0.91677,0.89364,0.92332,0.89364,0.85576,0.99613,0.85576,0.99613,0.85576,0.99613,0.80729,0.78216,0.80729,0.78216,0.80729,0.78216,0.80729,0.78216,0.94299,0.76783,0.95961,0.91677,0.77512,0.90083,0.77512,0.90083,0.77512,0.90083,0.77512,0.90083,0.77512,0.90083,0.86523,0.9135,0.86523,0.9135,0.86523,0.9135,1,1,0.92222,0.92168,0.92222,0.92168,0.98621,0.95381,0.98621,0.95381,0.98621,0.95381,0.98621,0.95381,0.98621,0.95381,0.86036,0.97096,0.71743,0.98981,1,1,0.95298,0.79726,0.95381,1,1,0.79726,0.6894,0.79726,0.74321,0.81691,1.0006,0.92222,0.92168,1,1,0.92222,0.92168,0.79464,0.92098,0.92168,0.90637,0.91513,0.90637,0.91513,0.90637,0.91513,0.909,0.87514,0.80729,0.95077,1,1,0.80729,0.95077,0.76463,0.748,0.76463,0.748,1,1,0.76463,0.748,1,1,0.86275,0.72651,0.86275,1.04502,0.90699,0.91677,0.90699,0.91677,0.90699,0.91677,0.90699,0.91677,0.90699,0.91677,0.90699,0.91677,0.9154,0.94236,0.85458,0.89364,0.85458,0.90531,0.9,0.90531,0.9,0.90531,0.9,1,0.97276,0.85576,0.99613,0.845,0.85811,0.90251,0.91677,1,1,0.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,0.85576,0.80178,0.66862,0.7927,0.69323,0.88127,0.72459,0.89711,0.95381,0.85576,0.80591,0.7805,0.94729,0.77512,0.90531,0.92222,0.90637,0.98621,0.81698,0.92655,0.98558,0.92222,0.85359,0.90637,0.90976,0.83809,0.94523,0.86275,0.83509,0.93157,0.85308,0.83392,0.92346,0.98621,0.83509,0.92886,0.91324,0.92168,0.95381,0.90646,0.92886,0.90557,0.86847,0.90276,0.91324,0.86842,0.92168,0.99531,0.95381,0.9224,0.85408,0.92699,0.86847,1.0051,0.91513,0.80487,0.93481,1,0.88159,1.05214,0.90646,0.97355,0.81539,0.89398,0.85923,0.95381,0.90646,0.91513,0.90646,0.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,0.9154,0.94236,0.9154,0.94236,0.9154,0.94236,0.85458,0.89364,0.96694,1,0.89903,1,1,1,0.91782,0.91782,0.91782,1,0.896,0.896,0.896,0.9332,0.9332,0.95973,1,1.26,1,1,0.80479,0.80178,1,1,0.85633,1,1,1,1,0.97276,1,1,1,0.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,0.79199,0.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],cj={lineHeight:1.2,lineGap:0.2},hj=[1.36898,1,1,0.65507,0.84943,0.85639,0.88465,0.88465,0.86936,0.88307,0.86948,0.85283,0.85283,1.06383,1.02058,0.75945,0.9219,0.75945,1.17337,0.88465,0.88465,0.88465,0.88465,0.88465,0.88465,0.88465,0.88465,0.88465,0.88465,0.75945,0.75945,1.02058,1.02058,1.02058,0.69046,0.70926,0.85158,0.77812,0.76852,0.89591,0.70466,0.76125,0.80094,0.86822,0.83864,0.728,0.77212,0.79475,0.93637,0.87514,0.8588,0.76013,0.8588,0.72421,0.69866,0.77598,0.85991,0.80811,0.87832,0.78112,0.77512,0.8562,1.0222,1.18417,1.0222,1.27014,0.89903,1.15012,0.93859,0.94399,0.846,0.94399,0.81453,1.0186,0.94219,0.96017,1.03075,1.02175,0.912,1.03075,0.96998,0.96017,0.93859,0.94399,0.94399,0.95493,0.746,1.12658,0.94578,0.91,0.979,0.882,0.882,0.83,0.85034,0.83537,0.85034,1.02058,0.70869,0.88465,0.88465,0.88465,0.88465,0.83537,0.90083,1.15012,0.9161,0.94565,0.73541,1.02058,0.53609,0.69353,0.79519,1.08595,1,1,1.15012,1,0.91974,0.75945,1.15012,1,0.9446,0.73361,0.9005,0.9005,0.9005,0.62864,0.85158,0.85158,0.85158,0.85158,0.85158,0.85158,0.773,0.76852,0.70466,0.70466,0.70466,0.70466,0.83864,0.83864,0.83864,0.83864,0.90561,0.87514,0.8588,0.8588,0.8588,0.8588,0.8588,1.02058,0.85751,0.85991,0.85991,0.85991,0.85991,0.77512,0.76013,0.88075,0.93859,0.93859,0.93859,0.93859,0.93859,0.93859,0.8075,0.846,0.81453,0.81453,0.81453,0.81453,0.82424,0.82424,0.82424,0.82424,0.9278,0.96017,0.93859,0.93859,0.93859,0.93859,0.93859,1.08595,0.8562,0.94578,0.94578,0.94578,0.94578,0.882,0.94578,0.882,0.85158,0.93859,0.85158,0.93859,0.85158,0.93859,0.76852,0.846,0.76852,0.846,0.76852,0.846,0.76852,0.846,0.89591,0.8544,0.90561,0.94399,0.70466,0.81453,0.70466,0.81453,0.70466,0.81453,0.70466,0.81453,0.70466,0.81453,0.80094,0.94219,0.80094,0.94219,0.80094,0.94219,1,1,0.86822,0.96017,0.86822,0.96017,0.83864,0.82424,0.83864,0.82424,0.83864,0.82424,0.83864,1.03075,0.83864,0.82424,0.81402,1.02738,0.728,1.02175,1,1,0.912,0.79475,1.03075,1,1,0.79475,0.83911,0.79475,0.66266,0.80553,1.06676,0.87514,0.96017,1,1,0.87514,0.96017,0.86865,0.87396,0.96017,0.8588,0.93859,0.8588,0.93859,0.8588,0.93859,0.867,0.84759,0.72421,0.95493,1,1,0.72421,0.95493,0.69866,0.746,0.69866,0.746,1,1,0.69866,0.746,1,1,0.77598,0.88417,0.77598,1.12658,0.85991,0.94578,0.85991,0.94578,0.85991,0.94578,0.85991,0.94578,0.85991,0.94578,0.85991,0.94578,0.87832,0.979,0.77512,0.882,0.77512,0.8562,0.83,0.8562,0.83,0.8562,0.83,1,0.88465,0.85158,0.93859,0.773,0.8075,0.85751,0.8562,1,1,0.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,0.85158,0.77025,0.62264,0.7646,0.65351,0.86026,0.69461,0.89947,1.03075,0.85158,0.77812,0.76449,0.88836,0.70466,0.8562,0.86822,0.8588,0.83864,0.77212,0.85308,0.93637,0.87514,0.82352,0.8588,0.85701,0.76013,0.89058,0.77598,0.8156,0.82565,0.78112,0.77899,0.89386,0.83864,0.8156,0.9486,0.92388,0.96186,1.03075,0.91123,0.9486,0.93298,0.878,0.93942,0.92388,0.84596,0.96186,0.95119,1.03075,0.922,0.88787,0.95829,0.88,0.93559,0.93859,0.78815,0.93758,1,0.89217,1.03737,0.91123,0.93969,0.77487,0.85769,0.86799,1.03075,0.91123,0.93859,0.91123,0.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,0.87832,0.979,0.87832,0.979,0.87832,0.979,0.77512,0.882,0.9219,1,0.89903,1,1,1,0.87321,0.87321,0.87321,1,1.027,1.027,1.027,0.86847,0.86847,0.79121,1,1.124,1,1,0.73572,0.73572,1,1,0.85034,1,1,1,1,0.88465,1,1,1,0.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,0.74948,0.75187,1.02058,0.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],fj={lineHeight:1.2,lineGap:0.2},uj=[1.36898,1,1,0.76305,0.82784,0.94935,0.89364,0.92241,0.89073,0.90706,0.98472,0.85283,0.85283,1.0664,1.02058,0.74505,0.9219,0.74505,1.23456,0.92241,0.92241,0.92241,0.92241,0.92241,0.92241,0.92241,0.92241,0.92241,0.92241,0.74505,0.74505,1.02058,1.02058,1.02058,0.73002,0.72601,0.91755,0.8126,0.80314,0.92222,0.73764,0.79726,0.83051,0.90284,0.86023,0.74,0.8126,0.84869,0.96518,0.91115,0.8858,0.79761,0.8858,0.74498,0.73914,0.81363,0.89591,0.83659,0.89633,0.85608,0.8111,0.90531,1.0222,1.22736,1.0222,1.27014,0.89903,0.90088,0.86667,1.0231,0.896,1.01411,0.90083,1.05099,1.00512,0.99793,1.05326,1.09377,0.938,1.06226,1.00119,0.99793,0.98714,1.0231,1.01231,0.98196,0.792,1.19137,0.99074,0.962,1.01915,0.926,0.942,0.856,0.85034,0.92006,0.85034,1.02058,0.69067,0.92241,0.92241,0.92241,0.92241,0.92006,0.9332,0.90088,0.91882,0.93484,0.75339,1.02058,0.56866,0.54324,0.79519,1.08595,1,1,0.90088,1,0.95325,0.74505,0.90088,1,0.97198,0.75339,0.91009,0.91009,0.91009,0.66466,0.91755,0.91755,0.91755,0.91755,0.91755,0.91755,0.788,0.80314,0.73764,0.73764,0.73764,0.73764,0.86023,0.86023,0.86023,0.86023,0.92915,0.91115,0.8858,0.8858,0.8858,0.8858,0.8858,1.02058,0.8858,0.89591,0.89591,0.89591,0.89591,0.8111,0.79611,0.89713,0.86667,0.86667,0.86667,0.86667,0.86667,0.86667,0.86936,0.896,0.90083,0.90083,0.90083,0.90083,0.84224,0.84224,0.84224,0.84224,0.97276,0.99793,0.98714,0.98714,0.98714,0.98714,0.98714,1.08595,0.89876,0.99074,0.99074,0.99074,0.99074,0.942,1.0231,0.942,0.91755,0.86667,0.91755,0.86667,0.91755,0.86667,0.80314,0.896,0.80314,0.896,0.80314,0.896,0.80314,0.896,0.92222,0.93372,0.92915,1.01411,0.73764,0.90083,0.73764,0.90083,0.73764,0.90083,0.73764,0.90083,0.73764,0.90083,0.83051,1.00512,0.83051,1.00512,0.83051,1.00512,1,1,0.90284,0.99793,0.90976,0.99793,0.86023,0.84224,0.86023,0.84224,0.86023,0.84224,0.86023,1.05326,0.86023,0.84224,0.82873,1.07469,0.74,1.09377,1,1,0.938,0.84869,1.06226,1,1,0.84869,0.83704,0.84869,0.81441,0.85588,1.08927,0.91115,0.99793,1,1,0.91115,0.99793,0.91887,0.90991,0.99793,0.8858,0.98714,0.8858,0.98714,0.8858,0.98714,0.894,0.91434,0.74498,0.98196,1,1,0.74498,0.98196,0.73914,0.792,0.73914,0.792,1,1,0.73914,0.792,1,1,0.81363,0.904,0.81363,1.19137,0.89591,0.99074,0.89591,0.99074,0.89591,0.99074,0.89591,0.99074,0.89591,0.99074,0.89591,0.99074,0.89633,1.01915,0.8111,0.942,0.8111,0.90531,0.856,0.90531,0.856,0.90531,0.856,1,0.92241,0.91755,0.86667,0.788,0.86936,0.8858,0.89876,1,1,0.81363,1.19137,0.90088,0.90088,0.90088,0.90088,0.90088,0.90088,0.90088,0.90088,0.90088,0.90388,1.03901,0.92138,0.78105,0.7154,0.86169,0.80513,0.94007,0.82528,0.98612,1.06226,0.91755,0.8126,0.81884,0.92819,0.73764,0.90531,0.90284,0.8858,0.86023,0.8126,0.91172,0.96518,0.91115,0.83089,0.8858,0.87791,0.79761,0.89297,0.81363,0.88157,0.89992,0.85608,0.81992,0.94307,0.86023,0.88157,0.95308,0.98699,0.99793,1.06226,0.95817,0.95308,0.97358,0.928,0.98088,0.98699,0.92761,0.99793,0.96017,1.06226,0.986,0.944,0.95978,0.938,0.96705,0.98714,0.80442,0.98972,1,0.89762,1.04552,0.95817,0.99007,0.87064,0.91879,0.88888,1.06226,0.95817,0.98714,0.95817,0.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,0.89633,1.01915,0.89633,1.01915,0.89633,1.01915,0.8111,0.942,0.9219,1,0.89903,1,1,1,0.93173,0.93173,0.93173,1,1.06304,1.06304,1.06904,0.89903,0.89903,0.80549,1,1.156,1,1,0.76575,0.76575,1,1,0.72458,1,1,1,1,0.92241,1,1,1,0.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,0.74705,0.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],dj={lineHeight:1.2,lineGap:0.2},pj=[1.76738,1,1,0.99297,0.9824,1.04016,1.06497,1.03424,0.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,0.9754,1.21408,0.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,0.81378,0.81378,1.2107,1.2107,1.2107,0.71703,0.97847,0.97363,0.88776,0.8641,1.02096,0.79795,0.85132,0.914,1.06085,1.1406,0.8007,0.89858,0.83693,1.14889,1.09398,0.97489,0.92094,0.97489,0.90399,0.84041,0.95923,1.00135,1,1.06467,0.98243,0.90996,0.99361,1.1085,1.56942,1.1085,1.2107,0.74627,0.94282,0.96752,1.01519,0.86304,1.01359,0.97278,1.15103,1.01359,0.98561,1.02285,1.02285,1.00527,1.02285,1.0302,0.99041,1.0008,1.01519,1.01359,1.02258,0.79104,1.16862,0.99041,0.97454,1.02511,0.99298,0.96752,0.95801,0.94856,1.16579,0.94856,1.2107,0.9824,1.03424,1.03424,1,1.03424,1.16579,0.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,0.75155,0.94994,1.28826,1.21408,1.21408,0.91056,1,0.91572,0.9754,0.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,0.71703,0.97363,0.97363,0.97363,0.97363,0.97363,0.97363,0.93506,0.8641,0.79795,0.79795,0.79795,0.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,0.97426,0.97426,0.97426,0.97426,0.97426,1.2107,0.97489,1.00135,1.00135,1.00135,1.00135,0.90996,0.92094,1.02798,0.96752,0.96752,0.96752,0.96752,0.96752,0.96752,0.93136,0.86304,0.97278,0.97278,0.97278,0.97278,1.02285,1.02285,1.02285,1.02285,0.97122,0.99041,1,1,1,1,1,1.28826,1.0008,0.99041,0.99041,0.99041,0.99041,0.96752,1.01519,0.96752,0.97363,0.96752,0.97363,0.96752,0.97363,0.96752,0.8641,0.86304,0.8641,0.86304,0.8641,0.86304,0.8641,0.86304,1.02096,1.03057,1.02096,1.03517,0.79795,0.97278,0.79795,0.97278,0.79795,0.97278,0.79795,0.97278,0.79795,0.97278,0.914,1.01359,0.914,1.01359,0.914,1.01359,1,1,1.06085,0.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,0.97138,1.08692,0.8007,1.02285,1,1,1.00527,0.83693,1.02285,1,1,0.83693,0.9455,0.83693,0.90418,0.83693,1.13005,1.09398,0.99041,1,1,1.09398,0.99041,0.96692,1.09251,0.99041,0.97489,1.0008,0.97489,1.0008,0.97489,1.0008,0.93994,0.97931,0.90399,1.02258,1,1,0.90399,1.02258,0.84041,0.79104,0.84041,0.79104,0.84041,0.79104,0.84041,0.79104,1,1,0.95923,1.07034,0.95923,1.16862,1.00135,0.99041,1.00135,0.99041,1.00135,0.99041,1.00135,0.99041,1.00135,0.99041,1.00135,0.99041,1.06467,1.02511,0.90996,0.96752,0.90996,0.99361,0.95801,0.99361,0.95801,0.99361,0.95801,1.07733,1.03424,0.97363,0.96752,0.93506,0.93136,0.97489,1.0008,1,1,0.95923,1.16862,1.15103,1.15103,1.01173,1.03959,0.75953,0.81378,0.79912,1.15103,1.21994,0.95161,0.87815,1.01149,0.81525,0.7676,0.98167,1.01134,1.02546,0.84097,1.03089,1.18102,0.97363,0.88776,0.85134,0.97826,0.79795,0.99361,1.06085,0.97489,1.1406,0.89858,1.0388,1.14889,1.09398,0.86039,0.97489,1.0595,0.92094,0.94793,0.95923,0.90996,0.99346,0.98243,1.02112,0.95493,1.1406,0.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,0.97531,1.0106,1.0008,1.13189,1.18102,1.02277,0.98683,1.0016,0.99561,1.07237,1.0008,0.90434,0.99921,0.93803,0.8965,1.23085,1.06628,1.04983,0.96268,1.0499,0.98439,1.18102,1.06628,1.0008,1.06628,0.98439,0.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,0.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,0.90996,0.96752,1,1.21408,0.89903,1,1,0.75155,1.04394,1.04394,1.04394,1.04394,0.98633,0.98633,0.98633,0.73047,0.73047,1.20642,0.91211,1.25635,1.222,1.02956,1.03372,1.03372,0.96039,1.24633,1,1.12454,0.93503,1.03424,1.19687,1.03424,1,1,1,0.771,1,1,1.15749,1.15749,1.15749,1.10948,0.86279,0.94434,0.86279,0.94434,0.86182,1,1,1.16897,1,0.96085,0.90137,1.2107,1.18416,1.13973,0.69825,0.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,0.99862,0.99862,1,0.87025,0.87025,0.87025,0.87025,1.18874,1.42603,1,1.42603,1.42603,0.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],mj={lineHeight:1.33008,lineGap:0},gj=[1.76738,1,1,0.98946,1.03959,1.04016,1.02809,1.036,0.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,0.9754,1.21261,0.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,0.81378,0.81378,1.21237,1.21237,1.21237,0.73541,0.97847,0.97363,0.89723,0.87897,1.0426,0.79429,0.85292,0.91149,1.05815,1.1406,0.79631,0.90128,0.83853,1.04396,1.10615,0.97552,0.94436,0.97552,0.88641,0.80527,0.96083,1.00135,1,1.06777,0.9817,0.91142,0.99361,1.11144,1.57293,1.11144,1.21237,0.74627,1.31818,1.06585,0.97042,0.83055,0.97042,0.93503,1.1261,0.97042,0.97922,1.14236,0.94552,1.01054,1.14236,1.02471,0.97922,0.94165,0.97042,0.97042,1.0276,0.78929,1.1261,0.97922,0.95874,1.02197,0.98507,0.96752,0.97168,0.95107,1.16579,0.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,0.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,0.79487,0.94994,1.29004,1.24047,1.24047,1.31818,1,0.91484,0.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,0.73541,0.97363,0.97363,0.97363,0.97363,0.97363,0.97363,0.94385,0.87897,0.79429,0.79429,0.79429,0.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,0.97552,0.97552,0.97552,0.97552,0.97552,1.21237,0.97552,1.00135,1.00135,1.00135,1.00135,0.91142,0.94436,0.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,0.96705,0.83055,0.93503,0.93503,0.93503,0.93503,1.14236,1.14236,1.14236,1.14236,0.93125,0.97922,0.94165,0.94165,0.94165,0.94165,0.94165,1.29004,0.94165,0.97922,0.97922,0.97922,0.97922,0.96752,0.97042,0.96752,0.97363,1.06585,0.97363,1.06585,0.97363,1.06585,0.87897,0.83055,0.87897,0.83055,0.87897,0.83055,0.87897,0.83055,1.0426,1.0033,1.0426,0.97042,0.79429,0.93503,0.79429,0.93503,0.79429,0.93503,0.79429,0.93503,0.79429,0.93503,0.91149,0.97042,0.91149,0.97042,0.91149,0.97042,1,1,1.05815,0.97922,1.05815,0.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,0.97441,1.04302,0.79631,1.01582,1,1,1.01054,0.83853,1.14236,1,1,0.83853,1.09125,0.83853,0.90418,0.83853,1.19508,1.10615,0.97922,1,1,1.10615,0.97922,1.01034,1.10466,0.97922,0.97552,0.94165,0.97552,0.94165,0.97552,0.94165,0.91602,0.91981,0.88641,1.0276,1,1,0.88641,1.0276,0.80527,0.78929,0.80527,0.78929,0.80527,0.78929,0.80527,0.78929,1,1,0.96083,1.05403,0.95923,1.16862,1.00135,0.97922,1.00135,0.97922,1.00135,0.97922,1.00135,0.97922,1.00135,0.97922,1.00135,0.97922,1.06777,1.02197,0.91142,0.96752,0.91142,0.99361,0.97168,0.99361,0.97168,0.99361,0.97168,1.23199,1.036,0.97363,1.06585,0.94385,0.96705,0.97552,0.94165,1,1,0.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,0.95161,1.27126,1.00811,0.83284,0.77702,0.99137,0.95253,1.0347,0.86142,1.07205,1.14236,0.97363,0.89723,0.86869,1.09818,0.79429,0.99361,1.05815,0.97552,1.1406,0.90128,1.06662,1.04396,1.10615,0.84918,0.97552,1.04694,0.94436,0.98015,0.96083,0.91142,1.00356,0.9817,1.01945,0.98999,1.1406,0.91142,1.04961,0.9898,1.00639,1.14236,1.07514,1.04961,0.99607,1.02897,1.008,0.9898,0.95134,1.00639,1.11121,1.14236,1.00518,0.97981,1.02186,1,1.08578,0.94165,0.99314,0.98387,0.93028,0.93377,1.35125,1.07514,1.10687,0.93491,1.04232,1.00351,1.14236,1.07514,0.94165,1.07514,1.00351,0.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,0.93503,1,1,1,1,1,1,1,1,1,1,1,1,0.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,0.91142,0.96752,1,1.21261,0.89903,1,1,0.75155,1.04745,1.04745,1.04745,1.04394,0.98633,0.98633,0.98633,0.72959,0.72959,1.20502,0.91406,1.26514,1.222,1.02956,1.03372,1.03372,0.96039,1.24633,1,1.09125,0.93327,1.03336,1.16541,1.036,1,1,1,0.771,1,1,1.15574,1.15574,1.15574,1.15574,0.86364,0.94434,0.86279,0.94434,0.86224,1,1,1.16798,1,0.96085,0.90068,1.21237,1.18416,1.13904,0.69825,0.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,0.99862,0.99862,1,0.87025,0.87025,0.87025,0.87025,1.18775,1.42603,1,1.42603,1.42603,0.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],bj={lineHeight:1.33008,lineGap:0},wj=[1.76738,1,1,0.98946,1.14763,1.05365,1.06234,0.96927,0.92586,1.15373,1.18414,0.91349,0.91349,1.07403,1.17308,0.78383,1.20088,0.78383,1.42531,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.78383,0.78383,1.17308,1.17308,1.17308,0.77349,0.94565,0.94729,0.85944,0.88506,0.9858,0.74817,0.80016,0.88449,0.98039,0.95782,0.69238,0.89898,0.83231,0.98183,1.03989,0.96924,0.86237,0.96924,0.80595,0.74524,0.86091,0.95402,0.94143,0.98448,0.8858,0.83089,0.93285,1.0949,1.39016,1.0949,1.45994,0.74627,1.04839,0.97454,0.97454,0.87207,0.97454,0.87533,1.06151,0.97454,1.00176,1.16484,1.08132,0.98047,1.16484,1.02989,1.01054,0.96225,0.97454,0.97454,1.06598,0.79004,1.16344,1.00351,0.94629,0.9973,0.91016,0.96777,0.9043,0.91082,0.92481,0.91082,1.17308,0.95748,0.96927,0.96927,1,0.96927,0.92481,0.80597,1.04839,1.23393,1.1781,0.9245,1.17308,1.20808,0.63218,0.94261,1.24822,1.09971,1.09971,1.04839,1,0.85273,0.78032,1.04839,1.09971,1.22326,0.9245,1.09836,1.13525,1.15222,0.70424,0.94729,0.94729,0.94729,0.94729,0.94729,0.94729,0.85498,0.88506,0.74817,0.74817,0.74817,0.74817,0.95782,0.95782,0.95782,0.95782,0.9858,1.03989,0.96924,0.96924,0.96924,0.96924,0.96924,1.17308,0.96924,0.95402,0.95402,0.95402,0.95402,0.83089,0.86237,0.88409,0.97454,0.97454,0.97454,0.97454,0.97454,0.97454,0.92916,0.87207,0.87533,0.87533,0.87533,0.87533,0.93146,0.93146,0.93146,0.93146,0.93854,1.01054,0.96225,0.96225,0.96225,0.96225,0.96225,1.24822,0.8761,1.00351,1.00351,1.00351,1.00351,0.96777,0.97454,0.96777,0.94729,0.97454,0.94729,0.97454,0.94729,0.97454,0.88506,0.87207,0.88506,0.87207,0.88506,0.87207,0.88506,0.87207,0.9858,0.95391,0.9858,0.97454,0.74817,0.87533,0.74817,0.87533,0.74817,0.87533,0.74817,0.87533,0.74817,0.87533,0.88449,0.97454,0.88449,0.97454,0.88449,0.97454,1,1,0.98039,1.00176,0.98039,1.00176,0.95782,0.93146,0.95782,0.93146,0.95782,0.93146,0.95782,1.16484,0.95782,0.93146,0.84421,1.12761,0.69238,1.08132,1,1,0.98047,0.83231,1.16484,1,1,0.84723,1.04861,0.84723,0.78755,0.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,0.9857,1.03849,1.01054,0.96924,0.96225,0.96924,0.96225,0.96924,0.96225,0.92383,0.90171,0.80595,1.06598,1,1,0.80595,1.06598,0.74524,0.79004,0.74524,0.79004,0.74524,0.79004,0.74524,0.79004,1,1,0.86091,1.02759,0.85771,1.16344,0.95402,1.00351,0.95402,1.00351,0.95402,1.00351,0.95402,1.00351,0.95402,1.00351,0.95402,1.00351,0.98448,0.9973,0.83089,0.96777,0.83089,0.93285,0.9043,0.93285,0.9043,0.93285,0.9043,1.31868,0.96927,0.94729,0.97454,0.85498,0.92916,0.96924,0.8761,1,1,0.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,0.81965,0.81965,0.94729,0.78032,0.71022,0.90883,0.84171,0.99877,0.77596,1.05734,1.2,0.94729,0.85944,0.82791,0.9607,0.74817,0.93285,0.98039,0.96924,0.95782,0.89898,0.98316,0.98183,1.03989,0.78614,0.96924,0.97642,0.86237,0.86075,0.86091,0.83089,0.90082,0.8858,0.97296,1.01284,0.95782,0.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,0.98205,1.03809,1.05097,1.04,0.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,0.96225,0.8965,0.97783,0.93574,0.94818,1.30679,1.0675,1.11826,0.99821,1.0557,1.0326,1.2,1.0675,0.96225,1.0675,1.0326,0.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,0.87533,1,1,1,1,1,1,1,1,1,1,1,1,0.98705,1,1,1,1,1,1,0.98448,0.9973,0.98448,0.9973,0.98448,0.9973,0.83089,0.96777,1,1.20088,0.89903,1,1,0.75155,0.94945,0.94945,0.94945,0.94945,1.12317,1.12317,1.12317,0.67603,0.67603,1.15621,0.73584,1.21191,1.22135,1.06483,0.94868,0.94868,0.95996,1.24633,1,1.07497,0.87709,0.96927,1.01473,0.96927,1,1,1,0.77295,1,1,1.09836,1.09836,1.09836,1.01522,0.86321,0.94434,0.8649,0.94434,0.86182,1,1,1.083,1,0.91578,0.86438,1.17308,1.18416,1.14589,0.69825,0.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,0.99862,0.99862,1,0.87025,0.87025,0.87025,0.87025,1.17984,1.42603,1,1.42603,1.42603,0.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],yj={lineHeight:1.33008,lineGap:0},jj=[1.76738,1,1,0.98594,1.02285,1.10454,1.06234,0.96927,0.92037,1.19985,1.2046,0.90616,0.90616,1.07152,1.1714,0.78032,1.20088,0.78032,1.40246,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.96927,0.78032,0.78032,1.1714,1.1714,1.1714,0.80597,0.94084,0.96706,0.85944,0.85734,0.97093,0.75842,0.79936,0.88198,0.9831,0.95782,0.71387,0.86969,0.84636,1.07796,1.03584,0.96924,0.83968,0.96924,0.82826,0.79649,0.85771,0.95132,0.93119,0.98965,0.88433,0.8287,0.93365,1.08612,1.3638,1.08612,1.45786,0.74627,0.80499,0.91484,1.05707,0.92383,1.05882,0.9403,1.12654,1.05882,1.01756,1.09011,1.09011,0.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,0.84863,1.21968,1.01756,0.95801,1.00068,0.91797,0.96777,0.9043,0.90351,0.92105,0.90351,1.1714,0.85337,0.96927,0.96927,0.99912,0.96927,0.92105,0.80597,1.2434,1.20808,1.05937,0.90957,1.1714,1.20808,0.75155,0.94261,1.24644,1.09971,1.09971,0.84751,1,0.85273,0.78032,0.61584,1.05425,1.17914,0.90957,1.08665,1.11593,1.14169,0.73381,0.96706,0.96706,0.96706,0.96706,0.96706,0.96706,0.86035,0.85734,0.75842,0.75842,0.75842,0.75842,0.95782,0.95782,0.95782,0.95782,0.97093,1.03584,0.96924,0.96924,0.96924,0.96924,0.96924,1.1714,0.96924,0.95132,0.95132,0.95132,0.95132,0.8287,0.83968,0.89049,0.91484,0.91484,0.91484,0.91484,0.91484,0.91484,0.93575,0.92383,0.9403,0.9403,0.9403,0.9403,0.8717,0.8717,0.8717,0.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,0.95923,1.01756,1.01756,1.01756,1.01756,0.96777,1.05707,0.96777,0.96706,0.91484,0.96706,0.91484,0.96706,0.91484,0.85734,0.92383,0.85734,0.92383,0.85734,0.92383,0.85734,0.92383,0.97093,1.0969,0.97093,1.05882,0.75842,0.9403,0.75842,0.9403,0.75842,0.9403,0.75842,0.9403,0.75842,0.9403,0.88198,1.05882,0.88198,1.05882,0.88198,1.05882,1,1,0.9831,1.01756,0.9831,1.01756,0.95782,0.8717,0.95782,0.8717,0.95782,0.8717,0.95782,1.09011,0.95782,0.8717,0.84784,1.11551,0.71387,1.09011,1,1,0.99414,0.84636,1.09011,1,1,0.84636,1.0536,0.84636,0.94298,0.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,0.96924,1.05356,0.96924,1.05356,0.96924,1.05356,0.93066,0.98293,0.82826,1.04399,1,1,0.82826,1.04399,0.79649,0.84863,0.79649,0.84863,0.79649,0.84863,0.79649,0.84863,1,1,0.85771,1.17318,0.85771,1.21968,0.95132,1.01756,0.95132,1.01756,0.95132,1.01756,0.95132,1.01756,0.95132,1.01756,0.95132,1.01756,0.98965,1.00068,0.8287,0.96777,0.8287,0.93365,0.9043,0.93365,0.9043,0.93365,0.9043,1.08571,0.96927,0.96706,0.91484,0.86035,0.93575,0.96924,0.95923,1,1,0.85771,1.21968,1.11437,1.11437,0.93109,0.91202,0.60411,0.84164,0.55572,1.01173,0.97361,0.81818,0.81818,0.96635,0.78032,0.72727,0.92366,0.98601,1.03405,0.77968,1.09799,1.2,0.96706,0.85944,0.85638,0.96491,0.75842,0.93365,0.9831,0.96924,0.95782,0.86969,0.94152,1.07796,1.03584,0.78437,0.96924,0.98715,0.83968,0.83491,0.85771,0.8287,0.94492,0.88433,0.9287,1.0098,0.95782,0.8287,1.0625,0.98248,1.03424,1.2,1.01071,1.0625,0.95246,1.03809,1.04912,0.98248,1.00221,1.03424,1.05443,1.2,1.04785,0.99609,1.00169,1.05176,0.99346,1.05356,0.9087,1.03004,0.95542,0.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,0.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,0.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,0.98965,1.00068,0.98965,1.00068,0.98965,1.00068,0.8287,0.96777,1,1.20088,0.89903,1,1,0.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,0.67428,0.67428,1.16039,0.73291,1.20996,1.22135,1.06483,0.94868,0.94868,0.95996,1.24633,1,1.07497,0.87796,0.96927,1.01518,0.96927,1,1,1,0.77295,1,1,1.10539,1.10539,1.11358,1.06967,0.86279,0.94434,0.86279,0.94434,0.86182,1,1,1.083,1,0.91578,0.86507,1.1714,1.18416,1.14589,0.69825,0.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,0.99862,0.99862,1,0.87025,0.87025,0.87025,0.87025,1.18083,1.42603,1,1.42603,1.42603,0.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],vj={lineHeight:1.33008,lineGap:0},kj=Pe(function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:uj,baseWidths:uo,baseMapping:po,metrics:dj},t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:rj,baseWidths:ro,baseMapping:oo,metrics:oj},t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:hj,baseWidths:ho,baseMapping:fo,metrics:fj},t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:lj,baseWidths:lo,baseMapping:co,metrics:cj},t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:uo,baseMapping:po},t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:ro,baseMapping:oo},t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:ho,baseMapping:fo},t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:lo,baseMapping:co},t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:Xy,baseWidths:uo,baseMapping:po,metrics:Qy},t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:Gy,baseWidths:ro,baseMapping:oo,metrics:$y},t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:Ky,baseWidths:ho,baseMapping:fo,metrics:Yy},t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:Vy,baseWidths:lo,baseMapping:co,metrics:Wy},t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:jj,baseWidths:uo,baseMapping:po,metrics:vj},t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:pj,baseWidths:ro,baseMapping:oo,metrics:mj},t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:wj,baseWidths:ho,baseMapping:fo,metrics:yj},t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:gj,baseWidths:lo,baseMapping:co,metrics:bj},t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:nj,baseWidths:uo,baseMapping:po,metrics:aj},t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:Jy,baseWidths:ro,baseMapping:oo,metrics:Zy},t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:sj,baseWidths:ho,baseMapping:fo,metrics:ij},t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:tj,baseWidths:lo,baseMapping:co,metrics:ej}});d(Kh,"getXfaFontName");d(Hb,"getXfaFontWidths");d(ld,"getXfaFontDict");_b=class _b{static{d(this,"PostScriptParser")}constructor(t){this.lexer=t,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(t){return this.token.type===t?(this.nextToken(),!0):!1}expect(t){if(this.accept(t))return!0;throw new Q(`Unexpected symbol: found ${this.token.type} expected ${t}.`)}parse(){return this.nextToken(),this.expect(Hs.LBRACE),this.parseBlock(),this.expect(Hs.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(Hs.NUMBER))this.operators.push(this.prev.value);else if(this.accept(Hs.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(Hs.LBRACE))this.parseCondition();else return}parseCondition(){let t=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(Hs.RBRACE),this.accept(Hs.IF))this.operators[t]=this.operators.length,this.operators[t+1]="jz";else if(this.accept(Hs.LBRACE)){let e=this.operators.length;this.operators.push(null,null);let s=this.operators.length;this.parseBlock(),this.expect(Hs.RBRACE),this.expect(Hs.IFELSE),this.operators[e]=this.operators.length,this.operators[e+1]="j",this.operators[t]=s,this.operators[t+1]="jz"}else throw new Q("PS Function: error parsing conditional.")}};Hs={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};wi=class wi{static{d(this,"PostScriptToken")}static get opCache(){return lt(this,"opCache",Object.create(null))}constructor(t,e){this.type=t,this.value=e}static getOperator(t){return wi.opCache[t]||=new wi(Hs.OPERATOR,t)}static get LBRACE(){return lt(this,"LBRACE",new wi(Hs.LBRACE,"{"))}static get RBRACE(){return lt(this,"RBRACE",new wi(Hs.RBRACE,"}"))}static get IF(){return lt(this,"IF",new wi(Hs.IF,"IF"))}static get IFELSE(){return lt(this,"IFELSE",new wi(Hs.IFELSE,"IFELSE"))}};Ob=class Ob{static{d(this,"PostScriptLexer")}constructor(t){this.stream=t,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let t=!1,e=this.currentChar;for(;;){if(e<0)return bs;if(t)(e===10||e===13)&&(t=!1);else if(e===37)t=!0;else if(!ai(e))break;e=this.nextChar()}switch(e|0){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 new wi(Hs.NUMBER,this.getNumber());case 123:return this.nextChar(),wi.LBRACE;case 125:return this.nextChar(),wi.RBRACE}let s=this.strBuf;for(s.length=0,s[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=65&&e<=90||e>=97&&e<=122);)s.push(String.fromCharCode(e));let i=s.join("");switch(i.toLowerCase()){case"if":return wi.IF;case"ifelse":return wi.IFELSE;default:return wi.getOperator(i)}}getNumber(){let t=this.currentChar,e=this.strBuf;for(e.length=0,e[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=48&&t<=57||t===45||t===46);)e.push(String.fromCharCode(t));let s=parseFloat(e.join(""));if(isNaN(s))throw new Q(`Invalid floating point number: ${s}`);return s}};pa=class pa{static{d(this,"BaseLocalCache")}constructor(t){this._onlyRefs=t?.onlyRefs===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new ts}getByName(t){this._onlyRefs&&Yt("Should not call `getByName` method.");let e=this._nameRefMap.get(t);return e?this.getByRef(e):this._imageMap.get(t)||null}getByRef(t){return this._imageCache.get(t)||null}set(t,e,s){Yt("Abstract method `set` called.")}};Pu=class Pu extends pa{static{d(this,"LocalImageCache")}set(t,e=null,s){if(typeof t!="string")throw Error('LocalImageCache.set - expected "name" argument.');if(e){if(this._imageCache.has(e))return;this._nameRefMap.set(t,e),this._imageCache.put(e,s);return}this._imageMap.has(t)||this._imageMap.set(t,s)}};cd=class cd extends pa{static{d(this,"LocalColorSpaceCache")}set(t=null,e=null,s){if(typeof t!="string"&&!e)throw Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(e){if(this._imageCache.has(e))return;t!==null&&this._nameRefMap.set(t,e),this._imageCache.put(e,s);return}this._imageMap.has(t)||this._imageMap.set(t,s)}};Nb=class Nb extends pa{static{d(this,"LocalFunctionCache")}constructor(t){super({onlyRefs:!0})}set(t=null,e,s){if(!e)throw Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,s)}};Du=class Du extends pa{static{d(this,"LocalGStateCache")}set(t,e=null,s){if(typeof t!="string")throw Error('LocalGStateCache.set - expected "name" argument.');if(e){if(this._imageCache.has(e))return;this._nameRefMap.set(t,e),this._imageCache.put(e,s);return}this._imageMap.has(t)||this._imageMap.set(t,s)}};Lb=class Lb extends pa{static{d(this,"LocalTilingPatternCache")}constructor(t){super({onlyRefs:!0})}set(t=null,e,s){if(!e)throw Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,s)}};zb=class zb extends pa{static{d(this,"RegionalImageCache")}constructor(t){super({onlyRefs:!0})}set(t=null,e,s){if(!e)throw Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,s)}};Ub=class Ub extends pa{static{d(this,"GlobalColorSpaceCache")}constructor(t){super({onlyRefs:!0})}set(t=null,e,s){if(!e)throw Error('GlobalColorSpaceCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,s)}clear(){this._imageCache.clear()}};gr=class gr{static{d(this,"GlobalImageCache")}static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=50000000;#t=new Me;constructor(){this._refCache=new ts,this._imageCache=new ts}get#e(){let t=0;for(let e of this._imageCache)t+=e.byteSize;return t}get#s(){return!(this._imageCache.size<gr.MIN_IMAGES_TO_CACHE||this.#e<gr.MAX_BYTE_SIZE)}shouldCache(t,e){let s=this._refCache.get(t);return s||(s=new Set,this._refCache.put(t,s)),s.add(e),!(s.size<gr.NUM_PAGES_THRESHOLD||!this._imageCache.has(t)&&this.#s)}addDecodeFailed(t){this.#t.put(t)}hasDecodeFailed(t){return this.#t.has(t)}addByteSize(t,e){let s=this._imageCache.get(t);s&&(s.byteSize||(s.byteSize=e))}getData(t,e){let s=this._refCache.get(t);if(!s||s.size<gr.NUM_PAGES_THRESHOLD)return null;let i=this._imageCache.get(t);return i?(s.add(e),i):null}setData(t,e){if(!this._refCache.has(t))throw Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');if(!this._imageCache.has(t)){if(this.#s){T("GlobalImageCache.setData - cache limit reached.");return}this._imageCache.put(t,e)}}clear(t=!1){t||(this.#t.clear(),this._refCache.clear()),this._imageCache.clear()}};hd=class hd{static{d(this,"PDFFunctionFactory")}constructor({xref:t,isEvalSupported:e=!0}){this.xref=t,this.isEvalSupported=e!==!1}create(t,e=!1){let s,i;if(t instanceof nt?s=t:t instanceof B?s=t.objId:t instanceof Lt&&(s=t.dict?.objId),s){let a=this._localFunctionCache.getByRef(s);if(a)return a}let n=this.xref.fetchIfRef(t);if(Array.isArray(n)){if(!e)throw Error('PDFFunctionFactory.create - expected "parseArray" argument.');i=Ru.parseArray(this,n)}else i=Ru.parse(this,n);return s&&this._localFunctionCache.set(null,s,i),i}get _localFunctionCache(){return lt(this,"_localFunctionCache",new Nb)}};d(fi,"toNumberArray");Ru=class Ru{static{d(this,"PDFFunction")}static getSampleArray(t,e,s,i){let n=e;for(let f of t)n*=f;let a=Array(n),r=0,o=0,l=1/(2**s-1),c=i.getBytes((n*s+7)/8),h=0;for(let f=0;f<n;f++){for(;r<s;)o<<=8,o|=c[h++],r+=8;r-=s,a[f]=(o>>r)*l,o&=(1<<r)-1}return a}static parse(t,e){let s=e.dict||e;switch(s.get("FunctionType")){case 0:return this.constructSampled(t,e,s);case 1:break;case 2:return this.constructInterpolated(t,s);case 3:return this.constructStiched(t,s);case 4:return this.constructPostScript(t,e,s)}throw new Q("Unknown type of function")}static parseArray(t,e){let{xref:s}=t,i=[];for(let n of e)i.push(this.parse(t,s.fetchIfRef(n)));return function(n,a,r,o){for(let l=0,c=i.length;l<c;l++)i[l](n,a,r,o+l)}}static constructSampled(t,e,s){function i(g){let w=g.length,b=[],j=0;for(let v=0;v<w;v+=2)b[j++]=[g[v],g[v+1]];return b}d(i,"toMultiArray");function n(g,w,b,j,v){return j+(g-w)*((v-j)/(b-w))}d(n,"interpolate");let a=fi(s.getArray("Domain")),r=fi(s.getArray("Range"));if(!a||!r)throw new Q("No domain or range");let o=a.length/2,l=r.length/2;a=i(a),r=i(r);let c=fi(s.getArray("Size")),h=s.get("BitsPerSample"),f=s.get("Order")||1;f!==1&&Wt("No support for cubic spline interpolation: "+f);let u=fi(s.getArray("Encode"));if(u)u=i(u);else{u=[];for(let g=0;g<o;++g)u.push([0,c[g]-1])}let p=fi(s.getArray("Decode"));p=p?i(p):r;let m=this.getSampleArray(c,l,h,e);return d(function(g,w,b,j){let v=1<<o,q=new Float64Array(v).fill(1),x=new Uint32Array(v),k,A,S=l,I=1;for(k=0;k<o;++k){let E=a[k][0],D=a[k][1],O=Ze(g[w+k],E,D),$=n(O,E,D,u[k][0],u[k][1]),it=c[k];$=Ze($,0,it-1);let W=$<it-1?Math.floor($):$-1,H=W+1-$,L=$-W,rt=W*S,yt=rt+S;for(A=0;A<v;A++)A&I?(q[A]*=L,x[A]+=yt):(q[A]*=H,x[A]+=rt);S*=it,I<<=1}for(A=0;A<l;++A){let E=0;for(k=0;k<v;k++)E+=m[x[k]+A]*q[k];E=n(E,0,1,p[A][0],p[A][1]),b[j+A]=Ze(E,r[A][0],r[A][1])}},"constructSampledFn")}static constructInterpolated(t,e){let s=fi(e.getArray("C0"))||[0],i=fi(e.getArray("C1"))||[1],n=e.get("N"),a=[];for(let o=0,l=s.length;o<l;++o)a.push(i[o]-s[o]);let r=a.length;return d(function(o,l,c,h){let f=n===1?o[l]:o[l]**n;for(let u=0;u<r;++u)c[h+u]=s[u]+f*a[u]},"constructInterpolatedFn")}static constructStiched(t,e){let s=fi(e.getArray("Domain"));if(!s)throw new Q("No domain");if(s.length/2!==1)throw new Q("Bad domain for stiched function");let{xref:i}=t,n=[];for(let l of e.get("Functions"))n.push(this.parse(t,i.fetchIfRef(l)));let a=fi(e.getArray("Bounds")),r=fi(e.getArray("Encode")),o=new Float32Array(1);return d(function(l,c,h,f){let u=Ze(l[c],s[0],s[1]),p=a.length,m;for(m=0;m<p&&!(u<a[m]);++m);let g=m>0?a[m-1]:s[0],w=m<p?a[m]:s[1],b=r[2*m],j=r[2*m+1];o[0]=g===w?b:b+(u-g)*(j-b)/(w-g),n[m](o,0,h,f)},"constructStichedFn")}static constructPostScript(t,e,s){let i=fi(s.getArray("Domain")),n=fi(s.getArray("Range"));if(!i)throw new Q("No domain.");if(!n)throw new Q("No range.");let a=new Ob(e),r=new _b(a).parse();if(t.isEvalSupported&&Ms.isEvalSupported){let p=new Qb().compile(r,i,n);if(p)return Function("src","srcOffset","dest","destOffset",p)}Wt("Unable to compile PS function");let o=n.length>>1,l=i.length>>1,c=new Gb(r),h=Object.create(null),f=8192,u=new Float32Array(l);return d(function(p,m,g,w){let b,j,v="",q=u;for(b=0;b<l;b++)j=p[m+b],q[b]=j,v+=j+"_";let x=h[v];if(x!==void 0){g.set(x,w);return}let k=new Float32Array(o),A=c.execute(q),S=A.length-o;for(b=0;b<o;b++)k[b]=Ze(A[S+b],n[b*2],n[b*2+1]);f>0&&(f--,h[v]=k),g.set(k,w)},"constructPostScriptFn")}};d(Pc,"isPDFFunction");lh=class lh{static{d(this,"PostScriptStack")}static MAX_STACK_SIZE=100;constructor(t){this.stack=t?Array.from(t):[]}push(t){if(this.stack.length>=lh.MAX_STACK_SIZE)throw Error("PostScript function stack overflow.");this.stack.push(t)}pop(){if(this.stack.length<=0)throw Error("PostScript function stack underflow.");return this.stack.pop()}copy(t){if(this.stack.length+t>=lh.MAX_STACK_SIZE)throw Error("PostScript function stack overflow.");let e=this.stack;for(let s=e.length-t,i=t-1;i>=0;i--,s++)e.push(e[s])}index(t){this.push(this.stack[this.stack.length-t-1])}roll(t,e){let s=this.stack,i=s.length-t,n=s.length-1,a=i+(e-Math.floor(e/t)*t);for(let r=i,o=n;r<o;r++,o--){let l=s[r];s[r]=s[o],s[o]=l}for(let r=i,o=a-1;r<o;r++,o--){let l=s[r];s[r]=s[o],s[o]=l}for(let r=a,o=n;r<o;r++,o--){let l=s[r];s[r]=s[o],s[o]=l}}};Gb=class Gb{static{d(this,"PostScriptEvaluator")}constructor(t){this.operators=t}execute(t){let e=new lh(t),s=0,i=this.operators,n=i.length,a,r,o;for(;s<n;){if(a=i[s++],typeof a=="number"){e.push(a);continue}switch(a){case"jz":o=e.pop(),r=e.pop(),r||(s=o);break;case"j":r=e.pop(),s=r;break;case"abs":r=e.pop(),e.push(Math.abs(r));break;case"add":o=e.pop(),r=e.pop(),e.push(r+o);break;case"and":o=e.pop(),r=e.pop(),typeof r=="boolean"&&typeof o=="boolean"?e.push(r&&o):e.push(r&o);break;case"atan":o=e.pop(),r=e.pop(),r=Math.atan2(r,o)/Math.PI*180,r<0&&(r+=360),e.push(r);break;case"bitshift":o=e.pop(),r=e.pop(),r>0?e.push(r<<o):e.push(r>>o);break;case"ceiling":r=e.pop(),e.push(Math.ceil(r));break;case"copy":r=e.pop(),e.copy(r);break;case"cos":r=e.pop(),e.push(Math.cos(r%360/180*Math.PI));break;case"cvi":r=e.pop()|0,e.push(r);break;case"cvr":break;case"div":o=e.pop(),r=e.pop(),e.push(r/o);break;case"dup":e.copy(1);break;case"eq":o=e.pop(),r=e.pop(),e.push(r===o);break;case"exch":e.roll(2,1);break;case"exp":o=e.pop(),r=e.pop(),e.push(r**o);break;case"false":e.push(!1);break;case"floor":r=e.pop(),e.push(Math.floor(r));break;case"ge":o=e.pop(),r=e.pop(),e.push(r>=o);break;case"gt":o=e.pop(),r=e.pop(),e.push(r>o);break;case"idiv":o=e.pop(),r=e.pop(),e.push(r/o|0);break;case"index":r=e.pop(),e.index(r);break;case"le":o=e.pop(),r=e.pop(),e.push(r<=o);break;case"ln":r=e.pop(),e.push(Math.log(r));break;case"log":r=e.pop(),e.push(Math.log10(r));break;case"lt":o=e.pop(),r=e.pop(),e.push(r<o);break;case"mod":o=e.pop(),r=e.pop(),e.push(r%o);break;case"mul":o=e.pop(),r=e.pop(),e.push(r*o);break;case"ne":o=e.pop(),r=e.pop(),e.push(r!==o);break;case"neg":r=e.pop(),e.push(-r);break;case"not":r=e.pop(),typeof r=="boolean"?e.push(!r):e.push(~r);break;case"or":o=e.pop(),r=e.pop(),typeof r=="boolean"&&typeof o=="boolean"?e.push(r||o):e.push(r|o);break;case"pop":e.pop();break;case"roll":o=e.pop(),r=e.pop(),e.roll(r,o);break;case"round":r=e.pop(),e.push(Math.round(r));break;case"sin":r=e.pop(),e.push(Math.sin(r%360/180*Math.PI));break;case"sqrt":r=e.pop(),e.push(Math.sqrt(r));break;case"sub":o=e.pop(),r=e.pop(),e.push(r-o);break;case"true":e.push(!0);break;case"truncate":r=e.pop(),r=r<0?Math.ceil(r):Math.floor(r),e.push(r);break;case"xor":o=e.pop(),r=e.pop(),typeof r=="boolean"&&typeof o=="boolean"?e.push(r!==o):e.push(r^o);break;default:throw new Q(`Unknown operator ${a}`)}}return e.stack}};za=class za{static{d(this,"AstNode")}constructor(t){this.type=t}visit(t){Yt("abstract method")}};$b=class $b extends za{static{d(this,"AstArgument")}constructor(t,e,s){super("args"),this.index=t,this.min=e,this.max=s}visit(t){t.visitArgument(this)}};ra=class ra extends za{static{d(this,"AstLiteral")}constructor(t){super("literal"),this.number=t,this.min=t,this.max=t}visit(t){t.visitLiteral(this)}};Yh=class Yh extends za{static{d(this,"AstBinaryOperation")}constructor(t,e,s,i,n){super("binary"),this.op=t,this.arg1=e,this.arg2=s,this.min=i,this.max=n}visit(t){t.visitBinaryOperation(this)}};Vb=class Vb extends za{static{d(this,"AstMin")}constructor(t,e){super("max"),this.arg=t,this.min=t.min,this.max=e}visit(t){t.visitMin(this)}};Hu=class Hu extends za{static{d(this,"AstVariable")}constructor(t,e,s){super("var"),this.index=t,this.min=e,this.max=s}visit(t){t.visitVariable(this)}};_u=class _u extends za{static{d(this,"AstVariableDefinition")}constructor(t,e){super("definition"),this.variable=t,this.arg=e}visit(t){t.visitVariableDefinition(this)}};Ou=class Ou{static{d(this,"ExpressionBuilderVisitor")}parts=[];visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")}visitVariable(t){this.parts.push("v",t.index)}visitLiteral(t){this.parts.push(t.number)}visitBinaryOperation(t){this.parts.push("("),t.arg1.visit(this),this.parts.push(" ",t.op," "),t.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(t){this.parts.push("var "),t.variable.visit(this),this.parts.push(" = "),t.arg.visit(this),this.parts.push(";")}visitMin(t){this.parts.push("Math.min("),t.arg.visit(this),this.parts.push(", ",t.max,")")}toString(){return this.parts.join("")}};d(Wb,"buildAddOperation");d(Kb,"buildMulOperation");d(Yb,"buildSubOperation");d(Xb,"buildMinOperation");Qb=class Qb{static{d(this,"PostScriptCompiler")}compile(t,e,s){let i=[],n=[],a=e.length>>1,r=s.length>>1,o=0,l,c,h,f,u,p,m,g;for(let b=0;b<a;b++)i.push(new $b(b,e[b*2],e[b*2+1]));for(let b=0,j=t.length;b<j;b++){if(g=t[b],typeof g=="number"){i.push(new ra(g));continue}switch(g){case"add":if(i.length<2)return null;f=i.pop(),h=i.pop(),i.push(Wb(h,f));break;case"cvr":if(i.length<1)return null;break;case"mul":if(i.length<2)return null;f=i.pop(),h=i.pop(),i.push(Kb(h,f));break;case"sub":if(i.length<2)return null;f=i.pop(),h=i.pop(),i.push(Yb(h,f));break;case"exch":if(i.length<2)return null;u=i.pop(),p=i.pop(),i.push(u,p);break;case"pop":if(i.length<1)return null;i.pop();break;case"index":if(i.length<1||(h=i.pop(),h.type!=="literal")||(l=h.number,l<0||!Number.isInteger(l)||i.length<l))return null;if(u=i[i.length-l-1],u.type==="literal"||u.type==="var"){i.push(u);break}m=new Hu(o++,u.min,u.max),i[i.length-l-1]=m,i.push(m),n.push(new _u(m,u));break;case"dup":if(i.length<1)return null;if(typeof t[b+1]=="number"&&t[b+2]==="gt"&&t[b+3]===b+7&&t[b+4]==="jz"&&t[b+5]==="pop"&&t[b+6]===t[b+1]){h=i.pop(),i.push(Xb(h,t[b+1])),b+=6;break}if(u=i.at(-1),u.type==="literal"||u.type==="var"){i.push(u);break}m=new Hu(o++,u.min,u.max),i[i.length-1]=m,i.push(m),n.push(new _u(m,u));break;case"roll":if(i.length<2||(f=i.pop(),h=i.pop(),f.type!=="literal"||h.type!=="literal")||(c=f.number,l=h.number,l<=0||!Number.isInteger(l)||!Number.isInteger(c)||i.length<l))return null;if(c=(c%l+l)%l,c===0)break;i.push(...i.splice(i.length-l,l-c));break;default:return null}}if(i.length!==r)return null;let w=[];for(let b of n){let j=new Ou;b.visit(j),w.push(j.toString())}for(let b=0,j=i.length;b<j;b++){let v=i[b],q=new Ou;v.visit(q);let x=s[b*2],k=s[b*2+1],A=[q.toString()];x>v.min&&(A.unshift("Math.max(",x,", "),A.push(")")),k<v.max&&(A.unshift("Math.min(",k,", "),A.push(")")),A.unshift("dest[destOffset + ",b,"] = "),A.push(";"),w.push(A.join(""))}return w.join(`
69
+ `)}};qj=["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"],xj=["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"];d(Nu,"isOdd");d(Jb,"isEven");d(Zb,"findUnequal");d(Lu,"reverseValues");d(Dc,"createBidiText");Gn=[],ue=[];d(fd,"bidi");qi={style:"normal",weight:"normal"},qa={style:"normal",weight:"bold"},xa={style:"italic",weight:"normal"},Aa={style:"italic",weight:"bold"},Ro=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:qi,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:qa,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:xa,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:Aa,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:qi,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:qa,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:xa,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:Aa,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:qi,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:qa,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:xa,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:Aa,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:qi,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:qa,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:xa,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:Aa,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:qi,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:qa,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:xa,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:Aa,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:qi}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}],["ËÎÌå",{local:["SimSun","SimSun Regular","NSimSun"],style:qi,ultimate:"serif"}],["ºÚÌå",{local:["SimHei","SimHei Regular"],style:qi,ultimate:"sans-serif"}],["¿¬Ìå",{local:["KaiTi","SimKai","SimKai Regular"],style:qi,ultimate:"sans-serif"}],["·ÂËÎ",{local:["FangSong","SimFang","SimFang Regular"],style:qi,ultimate:"serif"}],["¿¬Ìå_GB2312",{alias:"¿¬Ìå"}],["·ÂËÎ_GB2312",{alias:"·ÂËÎ"}],["Á¥Êé",{local:["SimLi","SimLi Regular"],style:qi,ultimate:"serif"}],["ÐÂËÎ",{alias:"ËÎÌå"}]]),Aj=new Map([["Arial-Black","ArialBlack"]]);d(t2,"getStyleToAppend");d(zu,"getFamilyName");d(ch,"generateFont");d(Uu,"getFontSubstitution");Sj=class{static{d(this,"MurmurHash3_64")}constructor(t){this.h1=t?t&4294967295:xp,this.h2=t?t&4294967295:xp}update(t){let e,s;if(typeof t=="string"){e=new Uint8Array(t.length*2),s=0;for(let m=0,g=t.length;m<g;m++){let w=t.charCodeAt(m);w<=255?e[s++]=w:(e[s++]=w>>>8,e[s++]=w&255)}}else if(ArrayBuffer.isView(t))e=t.slice(),s=e.byteLength;else throw Error("Invalid data format, must be a string or TypedArray.");let i=s>>2,n=s-i*4,a=new Uint32Array(e.buffer,0,i),r=0,o=0,l=this.h1,c=this.h2,h=3432918353,f=461845907,u=h&Qi,p=f&Qi;for(let m=0;m<i;m++)m&1?(r=a[m],r=r*h&ji|r*u&Qi,r=r<<15|r>>>17,r=r*f&ji|r*p&Qi,l^=r,l=l<<13|l>>>19,l=l*5+3864292196):(o=a[m],o=o*h&ji|o*u&Qi,o=o<<15|o>>>17,o=o*f&ji|o*p&Qi,c^=o,c=c<<13|c>>>19,c=c*5+3864292196);switch(r=0,n){case 3:r^=e[i*4+2]<<16;case 2:r^=e[i*4+1]<<8;case 1:r^=e[i*4],r=r*h&ji|r*u&Qi,r=r<<15|r>>>17,r=r*f&ji|r*p&Qi,i&1?l^=r:c^=r}this.h1=l,this.h2=c}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,t=t*3981806797&ji|t*36045&Qi,e=e*4283543511&ji|((e<<16|t>>>16)*2950163797&ji)>>>16,t^=e>>>1,t=t*444984403&ji|t*60499&Qi,e=e*3301882366&ji|((e<<16|t>>>16)*3120437893&ji)>>>16,t^=e>>>1,(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}};ea=class ea{static{d(this,"PDFImage")}constructor({xref:t,res:e,image:s,isInline:i=!1,smask:n=null,mask:a=null,isMask:r=!1,pdfFunctionFactory:o,globalColorSpaceCache:l,localColorSpaceCache:c}){this.image=s;let h=s.dict,f=h.get("F","Filter"),u;if(f instanceof tt)u=f.name;else if(Array.isArray(f)){let w=t.fetchIfRef(f[0]);w instanceof tt&&(u=w.name)}switch(u){case"JPXDecode":({width:s.width,height:s.height,componentsCount:s.numComps,bitsPerComponent:s.bitsPerComponent}=Sl.parseImageProperties(s.stream)),s.stream.reset();let w=ei.getReducePowerForJPX(s.width,s.height,s.numComps);if(this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:h.has("SMaskInData"),reducePower:w},w){let b=2**w;s.width=Math.ceil(s.width/b),s.height=Math.ceil(s.height/b)}break;case"JBIG2Decode":s.bitsPerComponent=1,s.numComps=1;break}let p=h.get("W","Width"),m=h.get("H","Height");if(Number.isInteger(s.width)&&s.width>0&&Number.isInteger(s.height)&&s.height>0&&(s.width!==p||s.height!==m))T("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),p=s.width,m=s.height;else{let w=typeof p=="number"&&p>0,b=typeof m=="number"&&m>0;if(!w||!b){if(!s.fallbackDims)throw new Q(`Invalid image width: ${p} or height: ${m}`);T("PDFImage - using the Width/Height of the parent image, for SMask/Mask data."),w||(p=s.fallbackDims.width),b||(m=s.fallbackDims.height)}}this.width=p,this.height=m,this.interpolate=h.get("I","Interpolate"),this.imageMask=h.get("IM","ImageMask")||!1,this.matte=h.get("Matte")||!1;let g=s.bitsPerComponent;if(!g&&(g=h.get("BPC","BitsPerComponent"),!g))if(this.imageMask)g=1;else throw new Q(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=g,this.imageMask)this.numComps=1;else{let w=h.getRaw("CS")||h.getRaw("ColorSpace"),b=!!w;if(b)this.jpxDecoderOptions?.smaskInData&&(w=tt.get("DeviceRGBA"));else if(this.jpxDecoderOptions)w=tt.get("DeviceRGBA");else switch(s.numComps){case 1:w=tt.get("DeviceGray");break;case 3:w=tt.get("DeviceRGB");break;case 4:w=tt.get("DeviceCMYK");break;default:throw Error(`Images with ${s.numComps} color components not supported.`)}this.colorSpace=le.parse({cs:w,xref:t,resources:i?e:null,pdfFunctionFactory:o,globalColorSpaceCache:l,localColorSpaceCache:c}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=b?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&&!js.isDefaultDecode(this.decode,1))){this.needsDecode=!0;let w=(1<<g)-1;this.decodeCoefficients=[],this.decodeAddends=[];let b=this.colorSpace?.name==="Indexed";for(let j=0,v=0;j<this.decode.length;j+=2,++v){let q=this.decode[j],x=this.decode[j+1];this.decodeCoefficients[v]=b?(x-q)/w:x-q,this.decodeAddends[v]=b?q:w*q}}n?(n.fallbackDims??={width:p,height:m},this.smask=new ea({xref:t,res:e,image:n,isInline:i,pdfFunctionFactory:o,globalColorSpaceCache:l,localColorSpaceCache:c})):a&&(a instanceof Lt?a.dict.get("IM","ImageMask")?(a.fallbackDims??={width:p,height:m},this.mask=new ea({xref:t,res:e,image:a,isInline:i,isMask:!0,pdfFunctionFactory:o,globalColorSpaceCache:l,localColorSpaceCache:c})):T("Ignoring /Mask in image without /ImageMask."):this.mask=a)}static async buildImage({xref:t,res:e,image:s,isInline:i=!1,pdfFunctionFactory:n,globalColorSpaceCache:a,localColorSpaceCache:r}){let o=s,l=null,c=null,h=s.dict.get("SMask"),f=s.dict.get("Mask");return h?h instanceof Lt?l=h:T("Unsupported /SMask format."):f&&(f instanceof Lt||Array.isArray(f)?c=f:T("Unsupported /Mask format.")),new ea({xref:t,res:e,image:o,isInline:i,smask:l,mask:c,pdfFunctionFactory:n,globalColorSpaceCache:a,localColorSpaceCache:r})}static async createMask({image:t,isOffscreenCanvasSupported:e=!1}){let{dict:s}=t,i=s.get("W","Width"),n=s.get("H","Height"),a=s.get("I","Interpolate"),r=s.getArray("D","Decode")?.[0]>0,o=(i+7>>3)*n,l=await t.getImageData(o),c=i===1&&n===1&&r===(l.length===0||!!(l[0]&128));if(c)return{isSingleOpaquePixel:c};if(e){if(ei.needsToBeResized(i,n)){let b=new Uint8ClampedArray(i*n*4);return eh({src:l,dest:b,width:i,height:n,nonBlackColor:0,inverseDecode:r}),ei.createImage({kind:ms.RGBA_32BPP,data:b,width:i,height:n,interpolate:a})}let p=new OffscreenCanvas(i,n),m=p.getContext("2d"),g=m.createImageData(i,n);eh({src:l,dest:g.data,width:i,height:n,nonBlackColor:0,inverseDecode:r}),m.putImageData(g,0,0);let w=p.transferToImageBitmap();return{data:null,width:i,height:n,interpolate:a,bitmap:w}}let h=l.byteLength,f=o===h,u;if(t instanceof Ps&&(!r||f)?u=l:r?(u=new Uint8Array(o),u.set(l),u.fill(255,h)):u=new Uint8Array(l),r)for(let p=0;p<h;p++)u[p]^=255;return{data:u,width:i,height:n,interpolate:a}}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 e=this.bpc,s=this.numComps,i=this.decodeAddends,n=this.decodeCoefficients,a=(1<<e)-1,r,o;if(e===1){for(r=0,o=t.length;r<o;r++)t[r]=+!t[r];return}let l=0;for(r=0,o=this.width*this.height;r<o;r++)for(let c=0;c<s;c++)t[l]=Ze(i[c]+t[l]*n[c],0,a),l++}getComponents(t){let e=this.bpc;if(e===8)return t;let s=this.width,i=this.height,n=this.numComps,a=s*i*n,r=0,o;e<=8?o=new Uint8Array(a):e<=16?o=new Uint16Array(a):o=new Uint32Array(a);let l=s*n,c=(1<<e)-1,h=0,f,u;if(e===1){let p,m,g;for(let w=0;w<i;w++){for(m=h+(l&-8),g=h+l;h<m;)u=t[r++],o[h]=u>>7&1,o[h+1]=u>>6&1,o[h+2]=u>>5&1,o[h+3]=u>>4&1,o[h+4]=u>>3&1,o[h+5]=u>>2&1,o[h+6]=u>>1&1,o[h+7]=u&1,h+=8;if(h<g)for(u=t[r++],p=128;h<g;)o[h++]=+!!(u&p),p>>=1}}else{let p=0;for(u=0,h=0,f=a;h<f;++h){for(h%l===0&&(u=0,p=0);p<e;)u=u<<8|t[r++],p+=8;let m=p-e,g=u>>m;g<0?g=0:g>c&&(g=c),o[h]=g,u&=(1<<m)-1,p=m}}return o}async fillOpacity(t,e,s,i,n){let a;if(this.smask)a=d((r,o)=>this.smask.fillGrayBuffer(r,{...o,destWidth:e,destHeight:s}),"apply");else if(this.mask)if(this.mask instanceof ea)a=d((r,o)=>this.mask.fillGrayBuffer(r,{...o,invertOutput:!0,destWidth:e,destHeight:s}),"apply");else if(Array.isArray(this.mask))a=d((r,{maxRows:o,offset:l,stride:c})=>{for(let h=0,f=e*o;h<f;++h){let u=0,p=h*this.numComps;for(let m=0;m<this.numComps;++m){let g=n[p+m],w=m*2;if(g<this.mask[w]||g>this.mask[w+1]){u=255;break}}r[h*c+l]=u}},"apply");else throw new Q("Unknown mask format.");else a=d((r,{maxRows:o,offset:l,stride:c})=>{for(let h=0,f=e*o;h<f;++h)r[h*c+l]=255},"apply");await a(t,{maxRows:i,offset:3,stride:4})}undoPreblend(t,e,s){let i=this.smask?.matte;if(!i)return;let n=this.colorSpace.getRgb(i,0),a=n[0],r=n[1],o=n[2],l=e*s*4;for(let c=0;c<l;c+=4){let h=t[c+3];if(h===0){t[c]=255,t[c+1]=255,t[c+2]=255;continue}let f=255/h;t[c]=(t[c]-a)*f+a,t[c+1]=(t[c+1]-r)*f+r,t[c+2]=(t[c+2]-o)*f+o}}async createImageData(t=!1,e=!1){let s=this.drawWidth,i=this.drawHeight,n={width:s,height:i,interpolate:this.interpolate,kind:0,data:null},a=this.numComps,r=this.width,o=this.height,l=this.bpc,c=r*a*l+7>>3,h=e&&ei.needsToBeResized(s,i);if(!this.smask&&!this.mask&&this.colorSpace.name==="DeviceRGBA"){n.kind=ms.RGBA_32BPP;let q=n.data=await this.getImageBytes(o*r*4,{internal:e&&h});return e?h?ei.createImage(n,!1):this.createBitmap(ms.RGBA_32BPP,s,i,q):n}if(!t){let q;if(this.colorSpace.name==="DeviceGray"&&l===1?q=ms.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&l===8&&!this.needsDecode&&(q=ms.RGB_24BPP),q&&!this.smask&&!this.mask&&s===r&&i===o){let x=await this.#t(r,o);if(x)return x;let k=await this.getImageBytes(o*c,{internal:e&&h});if(e)return h?ei.createImage({data:k,kind:q,width:s,height:i,interpolate:this.interpolate},this.needsDecode):this.createBitmap(q,r,o,k);if(n.kind=q,n.data=k,this.needsDecode){Fe(q===ms.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");let A=n.data;for(let S=0,I=A.length;S<I;S++)A[S]^=255}return n}if(this.image instanceof Ur&&!this.smask&&!this.mask&&!this.needsDecode){let x=o*c;if(e&&!h){let k=!1;switch(this.colorSpace.name){case"DeviceGray":x*=4,k=!0;break;case"DeviceRGB":x=x/3*4,k=!0;break;case"DeviceCMYK":k=!0;break}if(k){let A=await this.#t(s,i);if(A)return A;let S=await this.getImageBytes(x,{drawWidth:s,drawHeight:i,forceRGBA:!0,internal:!0});return this.createBitmap(ms.RGBA_32BPP,s,i,S)}}else switch(this.colorSpace.name){case"DeviceGray":x*=3;case"DeviceRGB":case"DeviceCMYK":return n.kind=ms.RGB_24BPP,n.data=await this.getImageBytes(x,{drawWidth:s,drawHeight:i,forceRGB:!0,internal:h}),h?ei.createImage(n):n}}}let f=await this.getImageBytes(o*c,{internal:!0}),u=0|f.length/c*i/o,p=this.getComponents(f),m,g,w,b,j,v;if(e&&!h&&(w=new OffscreenCanvas(s,i),b=w.getContext("2d"),j=b.createImageData(s,i),v=j.data),n.kind=ms.RGBA_32BPP,!t&&!this.smask&&!this.mask?(!e||h?(n.kind=ms.RGB_24BPP,v=new Uint8ClampedArray(s*i*3),m=0):(new Uint32Array(v.buffer).fill(Ms.isLittleEndian?4278190080:255),m=1),g=!1):((!e||h)&&(v=new Uint8ClampedArray(s*i*4)),m=1,g=!0,await this.fillOpacity(v,s,i,u,p)),this.needsDecode&&this.decodeBuffer(p),this.colorSpace.fillRgb(v,r,o,s,i,u,l,p,m),g&&this.undoPreblend(v,s,u),e&&!h){b.putImageData(j,0,0);let q=w.transferToImageBitmap();return{data:null,width:s,height:i,bitmap:q,interpolate:this.interpolate}}return n.data=v,h?ei.createImage(n):n}async fillGrayBuffer(t,{destWidth:e,destHeight:s,invertOutput:i,maxRows:n,offset:a=0,stride:r=1}={}){let o=this.numComps;if(o!==1)throw new Q(`Reading gray scale from a color image: ${o}`);let l=this.width,c=this.height,h=this.bpc,f=l*o*h+7>>3,u=await this.getImageBytes(c*f,{internal:!0}),p=this.getComponents(u),m=e??l,g=s??c,w=m!==l||g!==c,b=n===void 0?g:Math.min(g,n),j=l,v=0,q=null;if(w){j=m,v=c/g;let A=l/m;q=new Uint32Array(m);for(let S=0;S<m;S++)q[S]=Math.floor(S*A)}let x=i?255:0;if(h===1){if(q){let A=q,S=a;if(this.needsDecode)for(let I=0;I<b;I++){let E=Math.floor(I*v)*l;for(let D=0;D<j;D++)t[S]=p[E+A[D]]-1&255^x,S+=r}else for(let I=0;I<b;I++){let E=Math.floor(I*v)*l;for(let D=0;D<j;D++)t[S]=-p[E+A[D]]&255^x,S+=r}}else{let A=j*b;if(this.needsDecode)for(let S=0;S<A;++S)t[S*r+a]=p[S]-1&255^x;else for(let S=0;S<A;++S)t[S*r+a]=-p[S]&255^x}return}this.needsDecode&&this.decodeBuffer(p);let k=255/((1<<h)-1);if(q){let A=q,S=a;for(let I=0;I<b;I++){let E=Math.floor(I*v)*l;for(let D=0;D<j;D++)t[S]=k*p[E+A[D]]^x,S+=r}}else{let A=j*b;for(let S=0;S<A;++S)t[S*r+a]=k*p[S]^x}}createBitmap(t,e,s,i){let n=new OffscreenCanvas(e,s),a=n.getContext("2d"),r;t===ms.RGBA_32BPP?r=new ImageData(i,e,s):(r=a.createImageData(e,s),H1({kind:t,src:i,dest:new Uint32Array(r.data.buffer),width:e,height:s,inverseDecode:this.needsDecode})),a.putImageData(r,0,0);let o=n.transferToImageBitmap();return{data:null,width:e,height:s,bitmap:o,interpolate:this.interpolate}}async#t(t,e){let s=await this.image.getTransferableImage();return s?{data:null,width:t,height:e,bitmap:s,interpolate:this.interpolate}:null}async getImageBytes(t,{drawWidth:e,drawHeight:s,forceRGBA:i=!1,forceRGB:n=!1,internal:a=!1}){this.image.reset(),this.image.drawWidth=e||this.width,this.image.drawHeight=s||this.height,this.image.forceRGBA=!!i,this.image.forceRGB=!!n;let r=await this.image.getImageData(t,this.jpxDecoderOptions);return a||this.image instanceof Ps?r:(Fe(r instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(r))}};Cj=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,cMapPacked:!0,iccUrl:null,standardFontDataUrl:null,wasmUrl:null,prepareWebGPU:null}),Ap={TILING:1,SHADING:2},Sp=Promise.resolve();d(ud,"normalizeBlendMode");d(Rc,"addCachedImageOps");ll=class ll{static{d(this,"TimeSlotManager")}static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){return++this.checked<ll.CHECK_TIME_EVERY?!1:(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+ll.TIME_SLOT_DURATION_MS,this.checked=0}};Pr=class Pr{static{d(this,"PartialEvaluator")}constructor({xref:t,handler:e,pageIndex:s,idFactory:i,fontCache:n,builtInCMapCache:a,standardFontDataCache:r,globalColorSpaceCache:o,globalImageCache:l,systemFontCache:c,options:h=null}){this.xref=t,this.handler=e,this.pageIndex=s,this.idFactory=i,this.fontCache=n,this.builtInCMapCache=a,this.standardFontDataCache=r,this.globalColorSpaceCache=o,this.globalImageCache=l,this.systemFontCache=c,this.options=h||Cj,this.type3FontRefs=null,this._regionalImageCache=new zb,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){let t=new hd({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return lt(this,"_pdfFunctionFactory",t)}get parsingType3Font(){return!!this.type3FontRefs}clone(t=null){let e=Object.create(this);return e.options=Object.assign(Object.create(null),this.options,t),e}hasBlendModes(t,e){if(!(t instanceof B)||t.objId&&e.has(t.objId))return!1;let s=new Me(e);t.objId&&s.put(t.objId);let i=[t],n=this.xref;for(;i.length;){let a=i.shift(),r=a.get("ExtGState");if(r instanceof B)for(let l of r.getRawValues()){if(l instanceof nt){if(s.has(l))continue;try{l=n.fetch(l)}catch(h){s.put(l),Wt(`hasBlendModes - ignoring ExtGState: "${h}".`);continue}}if(!(l instanceof B))continue;l.objId&&s.put(l.objId);let c=l.get("BM");if(c instanceof tt){if(c.name!=="Normal")return!0;continue}if(c!==void 0&&Array.isArray(c)){for(let h of c)if(h instanceof tt&&h.name!=="Normal")return!0}}let o=a.get("XObject");if(o instanceof B)for(let l of o.getRawValues()){if(l instanceof nt){if(s.has(l))continue;try{l=n.fetch(l)}catch(h){s.put(l),Wt(`hasBlendModes - ignoring XObject: "${h}".`);continue}}if(!(l instanceof Lt))continue;l.dict.objId&&s.put(l.dict.objId);let c=l.dict.get("Resources");c instanceof B&&(c.objId&&s.has(c.objId)||(i.push(c),c.objId&&s.put(c.objId)))}}for(let a of s)e.put(a);return!1}async fetchBuiltInCMap(t){let e=this.builtInCMapCache.get(t);if(e)return e;let s;return this.options.useWorkerFetch?s={cMapData:await iu(`${this.options.cMapUrl}${t}.bcmap`),isCompressed:!0}:s={cMapData:await this.handler.sendWithPromise("FetchBinaryData",{kind:"cMapUrl",filename:`${t}${this.options.cMapPacked?".bcmap":""}`}),isCompressed:this.options.cMapPacked},this.builtInCMapCache.set(t,s),s}async fetchStandardFontData(t){let e=this.standardFontDataCache.get(t);if(e)return new je(e);if(this.options.useSystemFonts&&t!=="Symbol"&&t!=="ZapfDingbats")return null;let s=Fy(),i=s[t],n;try{this.options.useWorkerFetch?n=await iu(`${this.options.standardFontDataUrl}${i}`):n=await this.handler.sendWithPromise("FetchBinaryData",{kind:"standardFontDataUrl",filename:i})}catch(a){return T(a),null}return this.standardFontDataCache.set(t,n),new je(n)}async buildFormXObject(t,e,s,i,n,a,r,o){let{dict:l}=e,c=xn(l.getArray("Matrix"),null),h=ln(l.getArray("BBox"),null),f=h&&new Float32Array(h);f?.some((b)=>!isFinite(b))&&(f=null);let u,p;l.has("OC")&&(u=await this.parseMarkedContentProps(l.get("OC"),t)),u!==void 0&&i.addOp(C.beginMarkedContentProps,["OC",u]);let m=l.get("Group");if(m){p={matrix:c,bbox:f,smask:s,isolated:!1,knockout:!1};let b=m.get("S"),j=null;if(re(b,"Transparency")&&(p.isolated=m.get("I")||!1,p.knockout=m.get("K")||!1,m.has("CS"))){let v=this._getColorSpace(m.getRaw("CS"),t,r);j=v instanceof js?v:await this._handleColorSpace(v)}s?.backdrop&&(j||=le.rgb,s.backdrop=j.getRgbHex(s.backdrop,0)),i.addOp(C.beginGroup,[p])}let g=[c&&new Float32Array(c),!m&&f||null];i.addOp(C.paintFormXObjectBegin,g);let w=l.get("Resources");await this.getOperatorList({stream:e,task:n,resources:w instanceof B?w:t,operatorList:i,initialState:a,prevRefs:o}),i.addOp(C.paintFormXObjectEnd,[]),m&&i.addOp(C.endGroup,[p]),u!==void 0&&i.addOp(C.endMarkedContent,[])}_sendImgData(t,e,s=!1){let i=e?[e.bitmap||e.data.buffer]:null;return this.parsingType3Font||s?this.handler.send("commonobj",[t,"Image",e],i):this.handler.send("obj",[t,this.pageIndex,"Image",e],i)}async buildPaintImageXObject({resources:t,image:e,isInline:s=!1,operatorList:i,cacheKey:n,localImageCache:a,localColorSpaceCache:r}){let{maxImageSize:o,ignoreErrors:l,isOffscreenCanvasSupported:c}=this.options,{dict:h}=e,f=h.objId,u=h.get("W","Width"),p=h.get("H","Height");if(!(u&&typeof u=="number")||!(p&&typeof p=="number")){T("Image dimensions are missing, or not numbers.");return}if(o!==-1&&u*p>o){if(!l)throw Error("Image exceeded maximum allowed size and was removed.");T("Image exceeded maximum allowed size and was removed.");return}let m;h.has("OC")&&(m=await this.parseMarkedContentProps(h.get("OC"),t));let g=h.get("IM","ImageMask")||!1,w,b,j;if(g){if(w=await ea.createMask({image:e,isOffscreenCanvasSupported:c&&!this.parsingType3Font}),w.isSingleOpaquePixel){if(b=C.paintSolidColorImageMask,j=[],i.addImageOps(b,j,m),n){let I={fn:b,args:j,optionalContent:m};a.set(n,f,I),f&&this._regionalImageCache.set(null,f,I)}return}if(this.parsingType3Font){if(j=Jg(w),j){i.addImageOps(C.constructPath,j,m);return}T("Cannot compile Type3 glyph."),i.addImageOps(C.paintImageMaskXObject,[w],m);return}let S=`mask_${this.idFactory.createObjId()}`;if(i.addDependency(S),w.dataLen=w.bitmap?w.width*w.height*4:w.data.length,this._sendImgData(S,w),b=C.paintImageMaskXObject,j=[{data:S,width:w.width,height:w.height,interpolate:w.interpolate,count:1}],i.addImageOps(b,j,m),n){let I={objId:S,fn:b,args:j,optionalContent:m};a.set(n,f,I),f&&this._regionalImageCache.set(null,f,I)}return}let v=200,q=h.has("SMask")||h.has("Mask");if(s&&u+p<v&&!q){try{w=await new ea({xref:this.xref,res:t,image:e,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:r}).createImageData(!0,!1),i.addImageOps(C.paintInlineImageXObject,[w],m)}catch(S){let I=`Unable to decode inline image: "${S}".`;if(!l)throw Error(I);T(I)}return}let x=`img_${this.idFactory.createObjId()}`,k=!1,A=null;if(this.parsingType3Font?x=`${this.idFactory.getDocId()}_type3_${x}`:n&&f&&(k=this.globalImageCache.shouldCache(f,this.pageIndex),k&&(Fe(!s,"Cannot cache an inline image globally."),x=`${this.idFactory.getDocId()}_${x}`)),i.addDependency(x),b=C.paintImageXObject,j=[x,u,p],i.addImageOps(b,j,m,q),k){if(A={objId:x,fn:b,args:j,optionalContent:m,hasMask:q,byteSize:0},this.globalImageCache.hasDecodeFailed(f)){this.globalImageCache.setData(f,A),this._sendImgData(x,null,k);return}if(u*p>250000||q){let S=await this.handler.sendWithPromise("commonobj",[x,"CopyLocalImage",{imageRef:f}]);if(S){this.globalImageCache.setData(f,A),this.globalImageCache.addByteSize(f,S);return}}}if(ea.buildImage({xref:this.xref,res:t,image:e,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:r}).then(async(S)=>(w=await S.createImageData(!1,c),w.dataLen=w.bitmap?w.width*w.height*4:w.data.length,w.ref=f,k&&this.globalImageCache.addByteSize(f,w.dataLen),this._sendImgData(x,w,k))).catch((S)=>(T(`Unable to decode image "${x}": "${S}".`),f&&this.globalImageCache.addDecodeFailed(f),this._sendImgData(x,null,k))),n){let S={objId:x,fn:b,args:j,optionalContent:m,hasMask:q};a.set(n,f,S),f&&(this._regionalImageCache.set(null,f,S),k&&(Fe(A,"The global cache-data must be available."),this.globalImageCache.setData(f,A)))}}handleSMask(t,e,s,i,n,a,r){let o=t.get("G"),l={subtype:t.get("S").name,backdrop:t.get("BC")},c=t.get("TR");if(Pc(c)){let h=this._pdfFunctionFactory.create(c),f=new Uint8Array(256),u=new Float32Array(1);for(let p=0;p<256;p++)u[0]=p/255,h(u,0,u,0),f[p]=u[0]*255|0;l.transferMap=f}return this.buildFormXObject(e,o,l,s,i,n.state.clone({newPath:!0}),a,r)}handleTransferFunction(t){let e;if(Array.isArray(t))e=t,t.length>1&&t.every((a)=>a===t[0])&&(e=[t[0]]);else if(Pc(t))e=[t];else return null;let s=[],i=0,n=0;for(let a of e){let r=this.xref.fetchIfRef(a);if(i++,re(r,"Identity")){s.push(null);continue}else if(!Pc(r))return null;let o=this._pdfFunctionFactory.create(r),l=new Uint8Array(256),c=new Float32Array(1);for(let h=0;h<256;h++)c[0]=h/255,o(c,0,c,0),l[h]=c[0]*255|0;s.push(l),n++}return!(i===1||i===4)||n===0?null:s}handleTilingType(t,e,s,i,n,a,r,o){let l=new vs,c=B.merge({xref:this.xref,dictArray:[n.get("Resources"),s]});return this.getOperatorList({stream:i,task:r,resources:c,operatorList:l}).then(function(){let h=l.getIR(),f=Bu(h,n,e);a.addDependencies(l.dependencies),a.addOp(t,f),n.objId&&o.set(null,n.objId,{operatorListIR:h,dict:n})}).catch((h)=>{if(!(h instanceof Cs)){if(this.options.ignoreErrors){T(`handleTilingType - ignoring pattern: "${h}".`);return}throw h}})}async handleSetFont(t,e,s,i,n,a,r=null,o=null){let l=e?.[0]instanceof tt?e[0].name:null,c=await this.loadFont(l,s,t,n,r,o);return c.font.isType3Font&&i.addDependencies(c.type3Dependencies),a.font=c.font,c.send(this.handler),c.loadedName}handleText(t,e){let s=e.font,i=s.charsToGlyphs(t);return s.data&&(e.textRenderingMode&tm.ADD_TO_PATH_FLAG||e.fillColorSpace.name==="Pattern"||e.strokeColorSpace.name==="Pattern"||s.disableFontFace)&&Pr.buildFontPaths(s,i,this.handler,this.options),i}ensureStateFont(t){if(t.font)return;let e=new Q("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){T(`ensureStateFont: "${e}".`);return}throw e}async setGState({resources:t,gState:e,operatorList:s,cacheKey:i,task:n,stateManager:a,localGStateCache:r,localColorSpaceCache:o,seenRefs:l}){let c=e.objId,h=!0,f=[],u=Promise.resolve();for(let[p,m]of e)switch(p){case"Type":break;case"LW":if(typeof m!="number"){T(`Invalid LW (line width): ${m}`);break}f.push([p,Math.abs(m)]);break;case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":f.push([p,m]);break;case"Font":h=!1,u=u.then(()=>this.handleSetFont(t,null,m[0],s,n,a.state).then(function(w){s.addDependency(w),f.push([p,[w,m[1]]])}));break;case"BM":f.push([p,ud(m)]);break;case"SMask":if(re(m,"None")){f.push([p,!1]);break}m instanceof B?(h=!1,u=u.then(()=>this.handleSMask(m,t,s,n,a,o,l)),f.push([p,!0])):T("Unsupported SMask type");break;case"TR":let g=this.handleTransferFunction(m);f.push([p,g]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":Wt("graphic state operator "+p);break;default:Wt("Unknown graphic state operator "+p);break}await u,f.length>0&&s.addOp(C.setGState,[f]),h&&r.set(i,c,f)}loadFont(t,e,s,i,n=null,a=null){let r=d(async()=>new Hc({loadedName:"g_font_error",font:new Eu(`Font "${t}" is not available.`),dict:e}),"errorFont"),o;if(e)e instanceof nt&&(o=e);else{let g=s.get("Font");g&&(o=g.getRaw(t))}if(o){if(this.type3FontRefs?.has(o))return r();if(this.fontCache.has(o))return this.fontCache.get(o);try{e=this.xref.fetchIfRef(o)}catch(g){T(`loadFont - lookup failed: "${g}".`)}}if(!(e instanceof B)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return T(`Font "${t}" is not available.`),r();T(`Font "${t}" is not available -- attempting to fallback to a default font.`),e=n||Pr.fallbackFontDict}if(e.cacheKey&&this.fontCache.has(e.cacheKey))return this.fontCache.get(e.cacheKey);let{promise:l,resolve:c}=Promise.withResolvers(),h;try{h=this.preEvaluateFont(e),h.cssFontInfo=a}catch(g){return T(`loadFont - preEvaluateFont failed: "${g}".`),r()}let{descriptor:f,hash:u}=h,p=o instanceof nt,m;if(u&&f instanceof B){let g=f.fontAliases||=Object.create(null);if(g[u]){let w=g[u].aliasRef;if(p&&w&&this.fontCache.has(w))return this.fontCache.putAlias(o,w),this.fontCache.get(o)}else g[u]={fontID:this.idFactory.createFontId()};p&&(g[u].aliasRef=o),m=g[u].fontID}else m=this.idFactory.createFontId();return Fe(m?.startsWith("f"),'The "fontID" must be (correctly) defined.'),p?this.fontCache.put(o,l):(e.cacheKey=`cacheKey_${m}`,this.fontCache.put(e.cacheKey,l)),e.loadedName=`${this.idFactory.getDocId()}_${m}`,this.translateFont(h).then(async(g)=>{let w=new Hc({loadedName:e.loadedName,font:g,dict:e});if(g.isType3Font)try{await w.loadType3Data(this,s,i)}catch(b){throw Error(`Type3 font load error: ${b}`)}c(w)}).catch((g)=>{T(`loadFont - translateFont failed: "${g}".`),c(new Hc({loadedName:e.loadedName,font:new Eu(g?.message),dict:e}))}),l}buildPath(t,e,s){let{pathMinMax:i,pathBuffer:n}=s;switch(t|0){case C.rectangle:{let a=s.currentPointX=e[0],r=s.currentPointY=e[1],o=e[2],l=e[3],c=a+o,h=r+l;o===0||l===0?n.push(Te.moveTo,a,r,Te.lineTo,c,h,Te.closePath):n.push(Te.moveTo,a,r,Te.lineTo,c,r,Te.lineTo,c,h,Te.lineTo,a,h,Te.closePath),de.rectBoundingBox(a,r,c,h,i);break}case C.moveTo:{let a=s.currentPointX=e[0],r=s.currentPointY=e[1];n.push(Te.moveTo,a,r),de.pointBoundingBox(a,r,i);break}case C.lineTo:{let a=s.currentPointX=e[0],r=s.currentPointY=e[1];n.push(Te.lineTo,a,r),de.pointBoundingBox(a,r,i);break}case C.curveTo:{let{currentPointX:a,currentPointY:r}=s,[o,l,c,h,f,u]=e;s.currentPointX=f,s.currentPointY=u,n.push(Te.curveTo,o,l,c,h,f,u),de.bezierBoundingBox(a,r,o,l,c,h,f,u,i);break}case C.curveTo2:{let{currentPointX:a,currentPointY:r}=s,[o,l,c,h]=e;s.currentPointX=c,s.currentPointY=h,n.push(Te.curveTo,a,r,o,l,c,h),de.bezierBoundingBox(a,r,a,r,o,l,c,h,i);break}case C.curveTo3:{let{currentPointX:a,currentPointY:r}=s,[o,l,c,h]=e;s.currentPointX=c,s.currentPointY=h,n.push(Te.curveTo,o,l,c,h,c,h),de.bezierBoundingBox(a,r,o,l,c,h,c,h,i);break}case C.closePath:n.push(Te.closePath);break}}_getColorSpace(t,e,s){return le.parse({cs:t,xref:this.xref,resources:e,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:s,asyncIfNotCached:!0})}async _handleColorSpace(t){try{return await t}catch(e){if(e instanceof Cs)return null;if(this.options.ignoreErrors)return T(`_handleColorSpace - ignoring ColorSpace: "${e}".`),null;throw e}}parseShading({shading:t,resources:e,localColorSpaceCache:s,localShadingPatternCache:i}){let n=i.get(t);if(n)return n;let a;try{a=Fb.parseShading(t,this.xref,e,this._pdfFunctionFactory,this.globalColorSpaceCache,s,this.options.prepareWebGPU).getIR()}catch(r){if(r instanceof Cs)return null;if(this.options.ignoreErrors)return T(`parseShading - ignoring shading: "${r}".`),i.set(t,null),null;throw r}if(n=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(n=`${this.idFactory.getDocId()}_type3_${n}`),i.set(t,n),this.parsingType3Font){let r=$g(a);this.handler.send("commonobj",[n,"Pattern",r],[r])}else this.handler.send("obj",[n,this.pageIndex,"Pattern",a]);return n}handleColorN(t,e,s,i,n,a,r,o,l,c){let h=s.pop();if(h instanceof tt){let f=n.getRaw(h.name),u=f instanceof nt&&l.getByRef(f);if(u)try{let m=i.base?i.base.getRgbHex(s,0):null,g=Bu(u.operatorListIR,u.dict,m);t.addOp(e,g);return}catch{}let p=this.xref.fetchIfRef(f);if(p){let m=p instanceof Lt?p.dict:p,g=m.get("PatternType");if(g===Ap.TILING){let w=i.base?i.base.getRgbHex(s,0):null;return this.handleTilingType(e,w,a,p,m,t,r,l)}else if(g===Ap.SHADING){let w=m.get("Shading"),b=this.parseShading({shading:w,resources:a,localColorSpaceCache:o,localShadingPatternCache:c});if(b){let j=xn(m.getArray("Matrix"),null);t.addOp(e,["Shading",b,j])}return}throw new Q(`Unknown PatternType: ${g}`)}}throw new Q(`Unknown PatternName: ${h}`)}_parseVisibilityExpression(t,e,s){if(++e>10){T("Visibility expression is too deeply nested");return}let i=t.length,n=this.xref.fetchIfRef(t[0]);if(i<2||!(n instanceof tt)){T("Invalid visibility expression");return}switch(n.name){case"And":case"Or":case"Not":s.push(n.name);break;default:T(`Invalid operator ${n.name} in visibility expression`);return}for(let a=1;a<i;a++){let r=t[a],o=this.xref.fetchIfRef(r);if(Array.isArray(o)){let l=[];s.push(l),this._parseVisibilityExpression(o,e,l)}else r instanceof nt&&s.push(r.toString())}}async parseMarkedContentProps(t,e){let s;if(t instanceof tt)s=e.get("Properties").get(t.name);else if(t instanceof B)s=t;else throw new Q("Optional content properties malformed.");let i=s.get("Type")?.name;if(i==="OCG")return{type:i,id:s.objId};if(i==="OCMD"){let n=s.get("VE");if(Array.isArray(n)){let r=[];if(this._parseVisibilityExpression(n,0,r),r.length>0)return{type:"OCMD",expression:r}}let a=s.get("OCGs");if(Array.isArray(a)||a instanceof B){let r=[];if(Array.isArray(a))for(let o of a)r.push(o.toString());else r.push(a.objId);return{type:i,ids:r,policy:s.get("P")instanceof tt?s.get("P").name:null,expression:null}}else if(a instanceof nt)return{type:i,id:a.toString()}}return null}async getOperatorList({stream:t,task:e,resources:s,operatorList:i,initialState:n=null,fallbackFontDict:a=null,prevRefs:r=null}){if(t.isAsync){let k=await t.asyncGetBytes();k&&(t=new je(k,0,k.length,t.dict))}let o=t.dict?.objId,l=new Me(r);if(o){if(r?.has(o))throw Error(`getOperatorList - ignoring circular reference: ${o}`);l.put(o)}if(s||=B.empty,n||=new dd,!i)throw Error('getOperatorList: missing "operatorList" parameter');let c=this,h=this.xref,f=new Pu,u=new cd,p=new Du,m=new Lb,g=new Map,w=s.get("XObject")||B.empty,b=s.get("Pattern")||B.empty,j=new Ho(n),v=new oa(t,h,j),q=new ll;function x(k){for(let A=0,S=v.savedStatesDepth;A<S;A++)i.addOp(C.restore,[])}return d(x,"closePendingRestoreOPS"),new Promise(d(function k(A,S){let I=d(function(L){Promise.all([L,i.ready]).then(function(){try{k(A,S)}catch(rt){S(rt)}},S)},"next");e.ensureNotTerminated(),q.reset();let E={},D,O,$,it,W,H;for(;!(D=q.check())&&(E.args=null,!!v.read(E));){let{args:L,fn:rt}=E;switch(rt|0){case C.paintXObject:if(H=L[0]instanceof tt,W=L[0].name,H){let N=f.getByName(W);if(N){Rc(i,N),L=null;continue}}I(new Promise(function(N,_){if(!H)throw new Q("XObject must be referred to by name.");let U=w.getRaw(W);if(U instanceof nt){let ft=f.getByRef(U)||c._regionalImageCache.getByRef(U)||c.globalImageCache.getData(U,c.pageIndex);if(ft){Rc(i,ft),N();return}U=h.fetch(U)}if(!(U instanceof Lt))throw new Q("XObject should be a stream");let ot=U.dict.get("Subtype");if(!(ot instanceof tt))throw new Q("XObject should have a Name subtype");if(ot.name==="Form"){j.save(),c.buildFormXObject(s,U,null,i,e,j.state.clone({newPath:!0}),u,l).then(function(){j.restore(),N()},_);return}else if(ot.name==="Image"){c.buildPaintImageXObject({resources:s,image:U,operatorList:i,cacheKey:W,localImageCache:f,localColorSpaceCache:u}).then(N,_);return}else if(ot.name==="PS")Wt("Ignored XObject subtype PS");else throw new Q(`Unhandled XObject subtype ${ot.name}`);N()}).catch(function(N){if(!(N instanceof Cs)){if(c.options.ignoreErrors){T(`getOperatorList - ignoring XObject: "${N}".`);return}throw N}}));return;case C.setFont:let yt=L[1];I(c.handleSetFont(s,L,null,i,e,j.state,a).then(function(N){i.addDependency(N),i.addOp(C.setFont,[N,yt])}));return;case C.endInlineImage:let X=L[0].cacheKey;if(X){let N=f.getByName(X);if(N){Rc(i,N),L=null;continue}}I(c.buildPaintImageXObject({resources:s,image:L[0],isInline:!0,operatorList:i,cacheKey:X,localImageCache:f,localColorSpaceCache:u}));return;case C.showText:if(!j.state.font){c.ensureStateFont(j.state);continue}L[0]=c.handleText(L[0],j.state);break;case C.showSpacedText:if(!j.state.font){c.ensureStateFont(j.state);continue}let St=[],qt=j.state;for(let N of L[0])typeof N=="string"?St.push(...c.handleText(N,qt)):typeof N=="number"&&St.push(N);L[0]=St,rt=C.showText;break;case C.nextLineShowText:if(!j.state.font){c.ensureStateFont(j.state);continue}i.addOp(C.nextLine),L[0]=c.handleText(L[0],j.state),rt=C.showText;break;case C.nextLineSetSpacingShowText:if(!j.state.font){c.ensureStateFont(j.state);continue}i.addOp(C.nextLine),i.addOp(C.setWordSpacing,[L.shift()]),i.addOp(C.setCharSpacing,[L.shift()]),L[0]=c.handleText(L[0],j.state),rt=C.showText;break;case C.setTextRenderingMode:j.state.textRenderingMode=L[0];break;case C.setFillColorSpace:{let N=c._getColorSpace(L[0],s,u);if(N instanceof js){j.state.fillColorSpace=N;continue}I(c._handleColorSpace(N).then((_)=>{j.state.fillColorSpace=_||le.gray}));return}case C.setStrokeColorSpace:{let N=c._getColorSpace(L[0],s,u);if(N instanceof js){j.state.strokeColorSpace=N;continue}I(c._handleColorSpace(N).then((_)=>{j.state.strokeColorSpace=_||le.gray}));return}case C.setFillColor:it=j.state.fillColorSpace,L=[it.getRgbHex(L,0)],rt=C.setFillRGBColor;break;case C.setStrokeColor:it=j.state.strokeColorSpace,L=[it.getRgbHex(L,0)],rt=C.setStrokeRGBColor;break;case C.setFillGray:j.state.fillColorSpace=le.gray,L=[le.gray.getRgbHex(L,0)],rt=C.setFillRGBColor;break;case C.setStrokeGray:j.state.strokeColorSpace=le.gray,L=[le.gray.getRgbHex(L,0)],rt=C.setStrokeRGBColor;break;case C.setFillCMYKColor:j.state.fillColorSpace=le.cmyk,L=[le.cmyk.getRgbHex(L,0)],rt=C.setFillRGBColor;break;case C.setStrokeCMYKColor:j.state.strokeColorSpace=le.cmyk,L=[le.cmyk.getRgbHex(L,0)],rt=C.setStrokeRGBColor;break;case C.setFillRGBColor:j.state.fillColorSpace=le.rgb,L=[le.rgb.getRgbHex(L,0)];break;case C.setStrokeRGBColor:j.state.strokeColorSpace=le.rgb,L=[le.rgb.getRgbHex(L,0)];break;case C.setFillColorN:if(it=j.state.patternFillColorSpace,!it){if(_s(L,null)){L=[le.gray.getRgbHex(L,0)],rt=C.setFillRGBColor;break}L=[],rt=C.setFillTransparent;break}if(it.name==="Pattern"){I(c.handleColorN(i,C.setFillColorN,L,it,b,s,e,u,m,g));return}L=[it.getRgbHex(L,0)],rt=C.setFillRGBColor;break;case C.setStrokeColorN:if(it=j.state.patternStrokeColorSpace,!it){if(_s(L,null)){L=[le.gray.getRgbHex(L,0)],rt=C.setStrokeRGBColor;break}L=[],rt=C.setStrokeTransparent;break}if(it.name==="Pattern"){I(c.handleColorN(i,C.setStrokeColorN,L,it,b,s,e,u,m,g));return}L=[it.getRgbHex(L,0)],rt=C.setStrokeRGBColor;break;case C.shadingFill:let R;try{let N=s.get("Shading");if(!N)throw new Q("No shading resource found");if(R=N.get(L[0].name),!R)throw new Q("No shading object found")}catch(N){if(N instanceof Cs)continue;if(c.options.ignoreErrors){T(`getOperatorList - ignoring Shading: "${N}".`);continue}throw N}let V=c.parseShading({shading:R,resources:s,localColorSpaceCache:u,localShadingPatternCache:g});if(!V)continue;L=[V],rt=C.shadingFill;break;case C.setGState:if(H=L[0]instanceof tt,W=L[0].name,H){let N=p.getByName(W);if(N){N.length>0&&i.addOp(C.setGState,[N]),L=null;continue}}I(new Promise(function(N,_){if(!H)throw new Q("GState must be referred to by name.");let U=s.get("ExtGState");if(!(U instanceof B))throw new Q("ExtGState should be a dictionary.");let ot=U.get(W);if(!(ot instanceof B))throw new Q("GState should be a dictionary.");c.setGState({resources:s,gState:ot,operatorList:i,cacheKey:W,task:e,stateManager:j,localGStateCache:p,localColorSpaceCache:u,seenRefs:l}).then(N,_)}).catch(function(N){if(!(N instanceof Cs)){if(c.options.ignoreErrors){T(`getOperatorList - ignoring ExtGState: "${N}".`);return}throw N}}));return;case C.setLineWidth:{let[N]=L;if(typeof N!="number"){T(`Invalid setLineWidth: ${N}`);continue}L[0]=Math.abs(N);break}case C.setDash:{let N=L[1];if(typeof N!="number"){T(`Invalid setDash: ${N}`);continue}let _=L[0];if(!Array.isArray(_)){T(`Invalid setDash: ${_}`);continue}_.some((U)=>typeof U!="number")&&(L[0]=_.filter((U)=>typeof U=="number"));break}case C.moveTo:case C.lineTo:case C.curveTo:case C.curveTo2:case C.curveTo3:case C.closePath:case C.rectangle:c.buildPath(rt,L,j.state);continue;case C.stroke:case C.closeStroke:case C.fill:case C.eoFill:case C.fillStroke:case C.eoFillStroke:case C.closeFillStroke:case C.closeEOFillStroke:case C.endPath:{let{state:{pathBuffer:N,pathMinMax:_}}=j;(rt===C.closeStroke||rt===C.closeFillStroke||rt===C.closeEOFillStroke)&&N.push(Te.closePath),N.length===0?i.addOp(C.constructPath,[rt,[null],null]):(i.addOp(C.constructPath,[rt,[new Float32Array(N)],_.slice()]),N.length=0,_.set([1/0,1/0,-1/0,-1/0],0));continue}case C.setTextMatrix:i.addOp(rt,[new Float32Array(L)]);continue;case C.markPoint:case C.markPointProps:case C.beginCompat:case C.endCompat:continue;case C.beginMarkedContentProps:if(!(L[0]instanceof tt)){T(`Expected name for beginMarkedContentProps arg0=${L[0]}`),i.addOp(C.beginMarkedContentProps,["OC",null]);continue}if(L[0].name==="OC"){I(c.parseMarkedContentProps(L[1],s).then((N)=>{i.addOp(C.beginMarkedContentProps,["OC",N])}).catch((N)=>{if(!(N instanceof Cs)){if(c.options.ignoreErrors){T(`getOperatorList - ignoring beginMarkedContentProps: "${N}".`),i.addOp(C.beginMarkedContentProps,["OC",null]);return}throw N}}));return}L=[L[0].name,L[1]instanceof B?L[1].get("MCID"):null];break;case C.beginMarkedContent:case C.endMarkedContent:default:if(L!==null){for(O=0,$=L.length;O<$&&!(L[O]instanceof B);O++);if(O<$){T("getOperatorList - ignoring operator: "+rt);continue}}}i.addOp(rt,L)}if(D){I(Sp);return}x(),A()},"promiseBody")).catch((k)=>{if(!(k instanceof Cs)){if(this.options.ignoreErrors){T(`getOperatorList - ignoring errors during "${e.name}" task: "${k}".`),x();return}throw k}})}async getTextContent({stream:t,task:e,resources:s,stateManager:i=null,includeMarkedContent:n=!1,sink:a,seenStyles:r=new Set,viewBox:o,lang:l=null,markedContentData:c=null,disableNormalization:h=!1,keepWhiteSpace:f=!1,prevRefs:u=null,intersector:p=null}){if(t.isAsync){let mt=await t.asyncGetBytes();mt&&(t=new je(mt,0,mt.length,t.dict))}let m=t.dict?.objId,g=new Me(u);if(m){if(u?.has(m))throw Error(`getTextContent - ignoring circular reference: ${m}`);g.put(m)}s||=B.empty,i||=new Ho(new e2),n&&(c||={level:0});let w={items:[],styles:Object.create(null),lang:l},b={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},j=[" "," "],v=0;function q(mt){let jt=(v+1)%2,bt=j[v]!==" "&&j[jt]===" ";return j[v]=mt,v=jt,!f&&bt}d(q,"saveLastChar");function x(){return!f&&j[v]!==" "&&j[(v+1)%2]===" "}d(x,"shouldAddWhitepsace");function k(){j[0]=j[1]=" ",v=0}d(k,"resetLastChars");let A=0.102,S=0.03,I=-0.2,E=0.102,D=0.6,O=0.25,$=this,it=this.xref,W=[],H=null,L=new Pu,rt=new Du,yt=new oa(t,it,i),X,St;function qt({width:mt=0,height:jt=0,transform:bt=b.prevTransform,fontName:gt=b.fontName}){p?.addExtraChar(" "),w.items.push({str:" ",dir:"ltr",width:mt,height:jt,transform:bt,fontName:gt,hasEOL:!1})}d(qt,"pushWhitespace");function R(){let mt=X.font,jt=[X.fontSize*X.textHScale,0,0,X.fontSize,0,X.textRise];if(mt.isType3Font&&(X.fontSize<=1||mt.isCharBBox)&&!Er(X.fontMatrix,Fa)){let bt=mt.bbox[3]-mt.bbox[1];bt>0&&(jt[3]*=bt*X.fontMatrix[3])}return de.transform(X.ctm,de.transform(X.textMatrix,jt))}d(R,"getCurrentTextTransform");function V(){if(b.initialized)return b;let{font:mt,loadedName:jt}=X;if(!r.has(jt)&&(r.add(jt),w.styles[jt]={fontFamily:mt.fallbackName,ascent:mt.ascent,descent:mt.descent,vertical:mt.vertical},$.options.fontExtraProperties&&mt.systemFontInfo)){let Rt=w.styles[jt];Rt.fontSubstitution=mt.systemFontInfo.css,Rt.fontSubstitutionLoadedName=mt.systemFontInfo.loadedName}b.fontName=jt;let bt=b.transform=R();mt.vertical?(b.width=b.totalWidth=Math.hypot(bt[0],bt[1]),b.height=b.totalHeight=0,b.vertical=!0):(b.width=b.totalWidth=0,b.height=b.totalHeight=Math.hypot(bt[2],bt[3]),b.vertical=!1);let gt=Math.hypot(X.textLineMatrix[0],X.textLineMatrix[1]),kt=Math.hypot(X.ctm[0],X.ctm[1]);b.textAdvanceScale=kt*gt;let{fontSize:wt}=X;return b.trackingSpaceMin=wt*A,b.notASpace=wt*S,b.negativeSpaceMax=wt*I,b.spaceInFlowMin=wt*E,b.spaceInFlowMax=wt*D,b.hasEOL=!1,b.initialized=!0,b}d(V,"ensureTextContentItem");function N(){if(!b.initialized)return;let mt=Math.hypot(X.textLineMatrix[0],X.textLineMatrix[1]),jt=Math.hypot(X.ctm[0],X.ctm[1])*mt;jt!==b.textAdvanceScale&&(b.vertical?(b.totalHeight+=b.height*b.textAdvanceScale,b.height=0):(b.totalWidth+=b.width*b.textAdvanceScale,b.width=0),b.textAdvanceScale=jt)}d(N,"updateAdvanceScale");function _(mt){let jt=mt.str.join("");h||(jt=cm(jt));let bt=fd(jt,-1,mt.vertical);return{str:bt.str,dir:bt.dir,width:Math.abs(mt.totalWidth),height:Math.abs(mt.totalHeight),transform:mt.transform,fontName:mt.fontName,hasEOL:mt.hasEOL}}d(_,"runBidiTransform");async function U(mt,jt){let bt=await $.loadFont(mt,jt,s,e);X.loadedName=bt.loadedName,X.font=bt.font,X.fontMatrix=bt.font.fontMatrix||Fa}d(U,"handleSetFont");function ot(mt,jt,bt){let gt=Math.hypot(bt[0],bt[1]);return[(bt[0]*mt+bt[1]*jt)/gt,(bt[2]*mt+bt[3]*jt)/gt]}d(ot,"applyInverseRotation");function ft(mt){let jt=R(),bt=jt[4],gt=jt[5];if(X.font?.vertical){if(bt<o[0]||bt>o[2]||gt+mt<o[1]||gt>o[3])return!1}else if(bt+mt<o[0]||bt>o[2]||gt<o[1]||gt>o[3])return!1;if(!X.font||!b.prevTransform)return!0;let kt=b.prevTransform[4],wt=b.prevTransform[5];if(kt===bt&&wt===gt)return!0;let Rt=-1;switch(jt[0]&&jt[1]===0&&jt[2]===0?Rt=jt[0]>0?0:180:jt[1]&&jt[0]===0&&jt[3]===0&&(Rt=jt[1]>0?90:270),Rt){case 0:break;case 90:[bt,gt]=[gt,bt],[kt,wt]=[wt,kt];break;case 180:[bt,gt,kt,wt]=[-bt,-gt,-kt,-wt];break;case 270:[bt,gt]=[-gt,-bt],[kt,wt]=[-wt,-kt];break;default:[bt,gt]=ot(bt,gt,jt),[kt,wt]=ot(kt,wt,b.prevTransform)}if(X.font.vertical){let ze=(wt-gt)/b.textAdvanceScale,Ee=bt-kt,oe=Math.sign(b.height||b.totalHeight);return ze<oe*b.negativeSpaceMax?Math.abs(Ee)>0.5*b.width?(Ct(),!0):(k(),Et(),!0):Math.abs(Ee)>b.width?(Ct(),!0):(ze<=oe*b.notASpace&&k(),ze<=oe*b.trackingSpaceMin?x()?(k(),Et(),qt({height:Math.abs(ze)})):b.height+=ze:It(ze,b.prevTransform,oe)||(b.str.length===0?(k(),qt({height:Math.abs(ze)})):b.height+=ze),Math.abs(Ee)>b.width*O&&Et(),!0)}let ct=(bt-kt)/b.textAdvanceScale,pt=gt-wt,Mt=Math.sign(b.width||b.totalWidth);if(ct<Mt*b.negativeSpaceMax)return Math.abs(pt)>0.5*b.height?(Ct(),!0):(k(),Et(),!0);let ee=X.textRise-b.prevTextRise,qe=ee===0?pt:pt-jt[3]/X.fontSize*ee;return Math.abs(qe)>b.height?(Ct(),!0):(ct<=Mt*b.notASpace&&k(),ct<=Mt*b.trackingSpaceMin?x()?(k(),Et(),qt({width:Math.abs(ct)})):b.width+=ct:It(ct,b.prevTransform,Mt)||(b.str.length===0?(k(),qt({width:Math.abs(ct)})):b.width+=ct),Math.abs(pt)>b.height*O&&Et(),!0)}d(ft,"compareWithLastPosition");function J({chars:mt,extraSpacing:jt}){St!==X&&(St.fontSize!==X.fontSize||St.fontName!==X.fontName&&(St.font.name!==X.font.name||St.font.vertical!==X.font.vertical))&&(Et(),St=X.clone());let bt=X.font,gt=bt.vertical?-X.charSpacing:X.charSpacing;if(!mt){let Rt=gt+jt;Rt&&(bt.vertical?X.translateTextMatrix(0,-Rt):X.translateTextMatrix(Rt*X.textHScale,0)),f&&ft(0);return}let kt=bt.charsToGlyphs(mt),wt=X.fontMatrix[0]*X.fontSize;for(let Rt=0,ct=kt.length;Rt<ct;Rt++){let pt=kt[Rt],{category:Mt,originalCharCode:ee}=pt;if(Mt.isInvisibleFormatMark)continue;let qe=gt+(Rt+1===ct?jt:0),ze=pt.width;bt.vertical&&(ze=pt.vmetric?pt.vmetric[0]:-ze);let Ee=ze*wt;if(ee===32&&(qe+=X.wordSpacing),!f&&Mt.isWhitespace){bt.vertical?(qe+=-Ee,X.translateTextMatrix(0,-qe)):(qe+=Ee,X.translateTextMatrix(qe*X.textHScale,0)),q(" ");continue}if(!Mt.isZeroWidthDiacritic&&!ft(Ee)){bt.vertical?X.translateTextMatrix(0,Ee):X.translateTextMatrix(Ee*X.textHScale,0);continue}let oe=V();Mt.isZeroWidthDiacritic&&(Ee=0),bt.vertical?(p?.addGlyph(R(),0,Ee,pt.unicode),X.translateTextMatrix(0,Ee),Ee=Math.abs(Ee),oe.height+=Ee):(Ee*=X.textHScale,p?.addGlyph(R(),Ee,0,pt.unicode),X.translateTextMatrix(Ee,0),oe.width+=Ee),Ee&&(oe.prevTransform=R(),oe.prevTextRise=X.textRise);let Pi=pt.unicode;q(Pi)&&(oe.str.push(" "),p?.addExtraChar(" ")),p||oe.str.push(Pi),qe&&(bt.vertical?X.translateTextMatrix(0,-qe):X.translateTextMatrix(qe*X.textHScale,0))}}d(J,"buildTextContentItem");function Ct(){p?.addExtraChar(`
70
+ `),k(),b.initialized?(b.hasEOL=!0,Et()):w.items.push({str:"",dir:"ltr",width:0,height:0,transform:R(),fontName:X.loadedName,hasEOL:!0})}d(Ct,"appendEOL");function It(mt,jt,bt){if(bt*b.spaceInFlowMin<=mt&&mt<=bt*b.spaceInFlowMax)return b.initialized&&(k(),b.str.push(" "),p?.addExtraChar(" ")),!1;let gt=b.fontName,kt=0;return b.vertical&&(kt=mt,mt=0),Et(),k(),qt({width:Math.abs(mt),height:Math.abs(kt),transform:jt||R(),fontName:gt}),!0}d(It,"addFakeSpaces");function Et(){!b.initialized||!b.str||(b.vertical?b.totalHeight+=b.height*b.textAdvanceScale:b.totalWidth+=b.width*b.textAdvanceScale,w.items.push(_(b)),b.initialized=!1,b.str.length=0)}d(Et,"flushTextContentItem");function Ft(mt=!1){let jt=w.items.length;jt!==0&&(mt&&jt<Ij||(a?.enqueue(w,jt),w.items=[],w.styles=Object.create(null)))}d(Ft,"enqueueChunk");let Nt=new ll;return new Promise(d(function mt(jt,bt){let gt=d(function(Mt){Ft(!0),Promise.all([Mt,a?.ready]).then(function(){try{mt(jt,bt)}catch(ee){bt(ee)}},bt)},"next");e.ensureNotTerminated(),Nt.reset();let kt={},wt,Rt,ct,pt=[];for(;!(wt=Nt.check())&&(pt.length=0,kt.args=pt,!!yt.read(kt));){X=i.state,St||=X.clone();let Mt=kt.fn;switch(pt=kt.args,Mt|0){case C.setFont:let ee=pt[0].name,qe=pt[1];if(X.font&&ee===X.fontName&&qe===X.fontSize)break;X.fontName=ee,X.fontSize=qe,gt(U(ee,null));return;case C.setTextRise:X.textRise=pt[0];break;case C.setHScale:X.textHScale=pt[0]/100;break;case C.setLeading:X.leading=pt[0];break;case C.moveText:X.translateTextLineMatrix(pt[0],pt[1]),X.textMatrix=X.textLineMatrix.slice();break;case C.setLeadingMoveText:X.leading=-pt[1],X.translateTextLineMatrix(pt[0],pt[1]),X.textMatrix=X.textLineMatrix.slice();break;case C.nextLine:X.carriageReturn();break;case C.setTextMatrix:X.setTextMatrix(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5]),X.setTextLineMatrix(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5]),N();break;case C.setCharSpacing:X.charSpacing=pt[0];break;case C.setWordSpacing:X.wordSpacing=pt[0];break;case C.beginText:X.textMatrix=Gi.slice(),X.textLineMatrix=Gi.slice();break;case C.showSpacedText:if(!i.state.font){$.ensureStateFont(i.state);continue}let ze=(X.font.vertical?1:-1)*X.fontSize/1000,Ee=pt[0];for(let oe=0,Pi=Ee.length;oe<Pi;oe++){let Ke=Ee[oe];if(typeof Ke=="string")W.push(Ke);else if(typeof Ke=="number"&&Ke!==0){let Ws=W.join("");W.length=0,J({chars:Ws,extraSpacing:Ke*ze})}}if(W.length>0){let oe=W.join("");W.length=0,J({chars:oe,extraSpacing:0})}break;case C.showText:if(!i.state.font){$.ensureStateFont(i.state);continue}J({chars:pt[0],extraSpacing:0});break;case C.nextLineShowText:if(!i.state.font){$.ensureStateFont(i.state);continue}X.carriageReturn(),J({chars:pt[0],extraSpacing:0});break;case C.nextLineSetSpacingShowText:if(!i.state.font){$.ensureStateFont(i.state);continue}X.wordSpacing=pt[0],X.charSpacing=pt[1],X.carriageReturn(),J({chars:pt[2],extraSpacing:0});break;case C.paintXObject:if(Et(),H??=s.get("XObject")||B.empty,ct=pt[0]instanceof tt,Rt=pt[0].name,ct&&L.getByName(Rt))break;gt(new Promise(function(oe,Pi){if(!ct)throw new Q("XObject must be referred to by name.");let Ke=H.getRaw(Rt);if(Ke instanceof nt){if(L.getByRef(Ke)){oe();return}if($.globalImageCache.getData(Ke,$.pageIndex)){oe();return}Ke=it.fetch(Ke)}if(!(Ke instanceof Lt))throw new Q("XObject should be a stream");let{dict:Ws}=Ke,fn=Ws.get("Subtype");if(!(fn instanceof tt))throw new Q("XObject should have a Name subtype");if(fn.name!=="Form"){L.set(Rt,Ws.objId,!0),oe();return}let ic=i.state.clone(),Jr=new Ho(ic),Zr=xn(Ws.getArray("Matrix"),null);Zr&&Jr.transform(Zr);let to=Ws.get("Resources");Ft();let eo={enqueueInvoked:!1,enqueue(nc,ac){this.enqueueInvoked=!0,a.enqueue(nc,ac)},get desiredSize(){return a.desiredSize??0},get ready(){return a.ready}};$.getTextContent({stream:Ke,task:e,resources:to instanceof B?to:s,stateManager:Jr,includeMarkedContent:n,sink:a&&eo,seenStyles:r,viewBox:o,lang:l,markedContentData:c,disableNormalization:h,keepWhiteSpace:f,prevRefs:g}).then(function(){eo.enqueueInvoked||L.set(Rt,Ws.objId,!0),oe()},Pi)}).catch(function(oe){if(!(oe instanceof Cs)){if($.options.ignoreErrors){T(`getTextContent - ignoring XObject: "${oe}".`);return}throw oe}}));return;case C.setGState:if(ct=pt[0]instanceof tt,Rt=pt[0].name,ct&&rt.getByName(Rt))break;gt(new Promise(function(oe,Pi){if(!ct)throw new Q("GState must be referred to by name.");let Ke=s.get("ExtGState");if(!(Ke instanceof B))throw new Q("ExtGState should be a dictionary.");let Ws=Ke.get(Rt);if(!(Ws instanceof B))throw new Q("GState should be a dictionary.");let fn=Ws.get("Font");if(!fn){rt.set(Rt,Ws.objId,!0),oe();return}Et(),X.fontName=null,X.fontSize=fn[1],U(null,fn[0]).then(oe,Pi)}).catch(function(oe){if(!(oe instanceof Cs)){if($.options.ignoreErrors){T(`getTextContent - ignoring ExtGState: "${oe}".`);return}throw oe}}));return;case C.beginMarkedContent:Et(),n&&(c.level++,w.items.push({type:"beginMarkedContent",tag:pt[0]instanceof tt?pt[0].name:null}));break;case C.beginMarkedContentProps:if(Et(),n){c.level++;let oe=null;pt[1]instanceof B&&(oe=pt[1].get("MCID")),w.items.push({type:"beginMarkedContentProps",id:Number.isInteger(oe)?`${$.idFactory.getPageObjId()}_mc${oe}`:null,tag:pt[0]instanceof tt?pt[0].name:null})}break;case C.endMarkedContent:if(Et(),n){if(c.level===0)break;c.level--,w.items.push({type:"endMarkedContent"})}break}if(w.items.length>=(a?.desiredSize??1)){wt=!0;break}}if(wt){gt(Sp);return}Et(),Ft(),jt()},"promiseBody")).catch((mt)=>{if(!(mt instanceof Cs)){if(this.options.ignoreErrors){T(`getTextContent - ignoring errors during "${e.name}" task: "${mt}".`),Et(),Ft();return}throw mt}})}async extractDataStructures(t,e){let s=this.xref,i,n=this.readToUnicode(e.toUnicode);if(e.composite){let f=t.get("CIDSystemInfo");f instanceof B&&!e.cidSystemInfo&&(e.cidSystemInfo={registry:Xt(f.get("Registry")),ordering:Xt(f.get("Ordering")),supplement:f.get("Supplement")});try{let u=t.get("CIDToGIDMap");u instanceof Lt&&(i=u.getBytes())}catch(u){if(!this.options.ignoreErrors)throw u;T(`extractDataStructures - ignoring CIDToGIDMap data: "${u}".`)}}let a=[],r=null,o;if(t.has("Encoding")){if(o=t.get("Encoding"),o instanceof B){if(r=o.get("BaseEncoding"),r=r instanceof tt?r.name:null,o.has("Differences")){let f=o.get("Differences"),u=0;for(let p of f){let m=s.fetchIfRef(p);if(typeof m=="number")u=m;else if(m instanceof tt)a[u++]=m.name;else throw new Q(`Invalid entry in 'Differences' array: ${m}`)}}}else if(o instanceof tt)r=o.name;else{if(!this.options.ignoreErrors)throw new Q("Encoding is not a Name nor a Dict");T("Encoding is not a Name nor a Dict")}r!=="MacRomanEncoding"&&r!=="MacExpertEncoding"&&r!=="WinAnsiEncoding"&&(r=null)}let l=!e.file||e.isInternalFont,c=bu()[e.name];if(r&&l&&c&&(r=null),r==="WinAnsiEncoding"&&l&&e.name?.charCodeAt(0)>=183){let f=e.name;if(["ËÎÌå","ºÚÌå","¿¬Ìå","·ÂËÎ","¿¬Ìå_GB2312","·ÂËÎ_GB2312","Á¥Êé","ÐÂËÎ","·ÂËÎÌå","С±êËÎ"].includes(f)){r=null,e.defaultEncoding="Adobe-GB1-UCS2",e.composite=!0,e.cidEncoding=tt.get("GBK-EUC-H");let u=await ar.create({encoding:e.cidEncoding,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});e.cMap=u,e.vertical=e.cMap.vertical,e.cidSystemInfo={registry:"Adobe",ordering:"GB1",supplement:0}}}if(r)e.defaultEncoding=Br(r);else{let f=!!(e.flags&Ni.Symbolic),u=!!(e.flags&Ni.Nonsymbolic);e.type==="TrueType"&&f&&u&&a.length!==0&&(e.flags&=-5,f=!1),o=En,e.type==="TrueType"&&!u&&(o=tl),(f||c)&&(o=W1,l&&(/Symbol/i.test(e.name)?o=K1:/Dingbats/i.test(e.name)?o=Y1:/Wingdings/i.test(e.name)&&(o=tl))),e.defaultEncoding=o}e.differences=a,e.baseEncodingName=r,e.hasEncoding=!!r||a.length>0,e.dict=t,e.toUnicode=await n;let h=await this.buildToUnicode(e);return e.toUnicode=h,i&&(e.cidToGidMap=this.readCidToGidMap(i,h)),e}_simpleFontToUnicode(t,e=!1){Fe(!t.composite,"Must be a simple font.");let s=[],i=t.defaultEncoding.slice(),n=t.baseEncodingName,a=t.differences;for(let o in a){let l=a[o];l!==".notdef"&&(i[o]=l)}let r=an();for(let o in i){let l=i[o];if(l==="")continue;let c=r[l];if(c!==void 0){s[o]=String.fromCharCode(c);continue}let h=0;switch(l[0]){case"G":l.length===3&&(h=parseInt(l.substring(1),16));break;case"g":l.length===5&&(h=parseInt(l.substring(1),16));break;case"C":case"c":if(l.length>=3&&l.length<=4){let f=l.substring(1);if(e){h=parseInt(f,16);break}if(h=+f,Number.isNaN(h)&&Number.isInteger(parseInt(f,16)))return this._simpleFontToUnicode(t,!0)}break;case"u":c=Oa(l,r),c!==-1&&(h=c);break;default:switch(l){case"f_h":case"f_t":case"T_h":s[o]=l.replaceAll("_","");continue}break}if(h>0&&h<=1114111&&Number.isInteger(h)){if(n&&h===+o){let f=Br(n);if(f&&(l=f[o])){s[o]=String.fromCharCode(r[l]);continue}}s[o]=String.fromCodePoint(h)}}return s}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 mr(this._simpleFontToUnicode(t));if(t.composite&&(t.cMap.builtInCMap&&!(t.cMap instanceof xr)||t.cidSystemInfo?.registry==="Adobe"&&(t.cidSystemInfo.ordering==="GB1"||t.cidSystemInfo.ordering==="CNS1"||t.cidSystemInfo.ordering==="Japan1"||t.cidSystemInfo.ordering==="Korea1"))){let{registry:e,ordering:s}=t.cidSystemInfo,i=tt.get(`${e}-${s}-UCS2`),n=await ar.create({encoding:i,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),a=[],r=[];return t.cMap.forEach(function(o,l){if(l>65535)throw new Q("Max size of CID is 65,535");let c=n.lookup(l);if(c){r.length=0;for(let h=0,f=c.length;h<f;h+=2)r.push((c.charCodeAt(h)<<8)+c.charCodeAt(h+1));a[o]=String.fromCharCode(...r)}}),new mr(a)}return new bi(t.firstChar,t.lastChar)}async readToUnicode(t){if(!t)return null;if(t instanceof tt){let e=await ar.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return e instanceof xr?new bi(0,65535):new mr(e.getMap())}if(t instanceof Lt)try{let e=await ar.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(e instanceof xr)return new bi(0,65535);let s=Array(e.length);return e.forEach(function(i,n){if(typeof n=="number"){s[i]=String.fromCodePoint(n);return}n.length%2!==0&&(n="\x00"+n);let a=[];for(let r=0;r<n.length;r+=2){let o=n.charCodeAt(r)<<8|n.charCodeAt(r+1);if((o&63488)!==55296){a.push(o);continue}r+=2;let l=n.charCodeAt(r)<<8|n.charCodeAt(r+1);a.push(((o&1023)<<10)+(l&1023)+65536)}s[i]=String.fromCodePoint(...a)}),new mr(s)}catch(e){if(e instanceof Cs)return null;if(this.options.ignoreErrors)return T(`readToUnicode - ignoring ToUnicode data: "${e}".`),null;throw e}return null}readCidToGidMap(t,e){let s=[];for(let i=0,n=t.length;i<n;i++){let a=t[i++]<<8|t[i],r=i>>1;a===0&&!e.has(r)||(s[r]=a)}return s}extractWidths(t,e,s){let i=this.xref,n=[],a=0,r=[],o;if(s.composite){let h=t.get("DW");a=typeof h=="number"?Math.ceil(h):1000;let f=t.get("W");if(Array.isArray(f))for(let u=0,p=f.length;u<p;u++){let m=i.fetchIfRef(f[u++]);if(!Number.isInteger(m))break;let g=i.fetchIfRef(f[u]);if(Array.isArray(g))for(let w of g){let b=i.fetchIfRef(w);typeof b=="number"&&(n[m]=b),m++}else if(Number.isInteger(g)){let w=i.fetchIfRef(f[++u]);if(typeof w!="number")continue;for(let b=m;b<=g;b++)n[b]=w}else break}if(s.vertical){let u=t.getArray("DW2"),p=_s(u,2)?u:[880,-1000];if(o=[p[1],a*0.5,p[0]],p=t.get("W2"),Array.isArray(p))for(let m=0,g=p.length;m<g;m++){let w=i.fetchIfRef(p[m++]);if(!Number.isInteger(w))break;let b=i.fetchIfRef(p[m]);if(Array.isArray(b))for(let j=0,v=b.length;j<v;j++){let q=[i.fetchIfRef(b[j++]),i.fetchIfRef(b[j++]),i.fetchIfRef(b[j])];_s(q,null)&&(r[w]=q),w++}else if(Number.isInteger(b)){let j=[i.fetchIfRef(p[++m]),i.fetchIfRef(p[++m]),i.fetchIfRef(p[++m])];if(!_s(j,null))continue;for(let v=w;v<=b;v++)r[v]=j}else break}}}else{let h=t.get("Widths");if(Array.isArray(h)){let f=s.firstChar;for(let p of h){let m=i.fetchIfRef(p);typeof m=="number"&&(n[f]=m),f++}let u=e.get("MissingWidth");a=typeof u=="number"?u:0}else{let f=t.get("BaseFont");if(f instanceof tt){let u=this.getBaseFontMetrics(f.name);n=this.buildCharCodeToWidth(u.widths,s),a=u.defaultWidth}}}let l=!0,c=a;for(let h in n){let f=n[h];if(f){if(!c){c=f;continue}if(c!==f){l=!1;break}}}l?s.flags|=Ni.FixedPitch:s.flags&=-2,s.defaultWidth=a,s.widths=n,s.defaultVMetrics=o,s.vmetrics=r}isSerifFont(t){let e=t.split("-",1)[0];return e in ed()||/serif/gi.test(e)}getBaseFontMetrics(t){let e=0,s=Object.create(null),i=!1,n=Rn(t);n=il()[n]||n;let a=By(),r=a[n]??a[this.isSerifFont(t)?"Times-Roman":"Helvetica"];return typeof r=="number"?(e=r,i=!0):s=r(),{defaultWidth:e,monospace:i,widths:s}}buildCharCodeToWidth(t,e){let s=Object.create(null),i=e.differences,n=e.defaultEncoding;for(let a=0;a<256;a++){if(a in i&&t[i[a]]){s[a]=t[i[a]];continue}if(a in n&&t[n[a]]){s[a]=t[n[a]];continue}}return s}preEvaluateFont(t){let e=t,s=t.get("Subtype");if(!(s instanceof tt))throw new Q("invalid font Subtype");let i=!1,n;if(s.name==="Type0"){let c=t.get("DescendantFonts");if(!c)throw new Q("Descendant fonts are not specified");if(t=Array.isArray(c)?this.xref.fetchIfRef(c[0]):c,!(t instanceof B))throw new Q("Descendant font is not a dictionary.");if(s=t.get("Subtype"),!(s instanceof tt))throw new Q("invalid font Subtype");i=!0}let a=t.get("FirstChar");Number.isInteger(a)||(a=0);let r=t.get("LastChar");Number.isInteger(r)||(r=i?65535:255);let o=t.get("FontDescriptor"),l=t.get("ToUnicode")||e.get("ToUnicode");if(o){n=new Sj;let c=e.getRaw("Encoding");if(c instanceof tt)n.update(c.name);else if(c instanceof nt)n.update(c.toString());else if(c instanceof B){for(let f of c.getRawValues())if(f instanceof tt)n.update(f.name);else if(f instanceof nt)n.update(f.toString());else if(Array.isArray(f)){let u=f.length,p=Array(u);for(let m=0;m<u;m++){let g=f[m];g instanceof tt?p[m]=g.name:(typeof g=="number"||g instanceof nt)&&(p[m]=g.toString())}n.update(p.join())}}if(n.update(`${a}-${r}`),l instanceof Lt){let f=l.stream||l,u=f.buffer?new Uint8Array(f.buffer.buffer,0,f.bufferLength):new Uint8Array(f.bytes.buffer,f.start,f.end-f.start);n.update(u)}else l instanceof tt&&n.update(l.name);let h=t.get("Widths")||e.get("Widths");if(Array.isArray(h)){let f=[];for(let u of h)(typeof u=="number"||u instanceof nt)&&f.push(u.toString());n.update(f.join())}if(i){n.update("compositeFont");let f=t.get("W")||e.get("W");if(Array.isArray(f)){let p=[];for(let m of f)if(typeof m=="number"||m instanceof nt)p.push(m.toString());else if(Array.isArray(m)){let g=[];for(let w of m)(typeof w=="number"||w instanceof nt)&&g.push(w.toString());p.push(`[${g.join()}]`)}n.update(p.join())}let u=t.getRaw("CIDToGIDMap")||e.getRaw("CIDToGIDMap");u instanceof tt?n.update(u.name):u instanceof nt?n.update(u.toString()):u instanceof Lt&&n.update(u.peekBytes())}}return{descriptor:o,dict:t,baseDict:e,composite:i,type:s.name,firstChar:a,lastChar:r,toUnicode:l,hash:n?n.hexdigest():""}}async translateFont({descriptor:t,dict:e,baseDict:s,composite:i,type:n,firstChar:a,lastChar:r,toUnicode:o,cssFontInfo:l}){let c=n==="Type3";if(!t)if(c)t=B.empty;else{let H=e.get("BaseFont");if(!(H instanceof tt))throw new Q("Base font is not specified");H=Rn(H.name);let L=this.getBaseFontMetrics(H),rt=H.split("-",1)[0],yt=(this.isSerifFont(rt)?Ni.Serif:0)|(L.monospace?Ni.FixedPitch:0)|(bu()[rt]?Ni.Symbolic:Ni.Nonsymbolic),X={type:n,name:H,loadedName:s.loadedName,systemFontInfo:null,widths:L.widths,defaultWidth:L.defaultWidth,isSimulatedFlags:!0,flags:yt,firstChar:a,lastChar:r,toUnicode:o,xHeight:0,capHeight:0,italicAngle:0,isType3Font:c},St=e.get("Widths"),qt=wu(H),R=null;qt&&(R=await this.fetchStandardFontData(qt),X.isInternalFont=!!R),!X.isInternalFont&&this.options.useSystemFonts&&(X.systemFontInfo=Uu(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,H,qt,n));let V=await this.extractDataStructures(e,X);if(Array.isArray(St)){let N=[],_=a;for(let U of St){let ot=this.xref.fetchIfRef(U);typeof ot=="number"&&(N[_]=ot),_++}V.widths=N}else V.widths=this.buildCharCodeToWidth(L.widths,V);return new Fu(H,R,V,this.options)}let h=t.get("FontName"),f=e.get("BaseFont");typeof h=="string"&&(h=tt.get(h)),typeof f=="string"&&(f=tt.get(f));let u=h?.name,p=f?.name;if(c?u||(h=tt.get(n)):u!==p&&(Wt(`The FontDescriptor's FontName is "${u}" but should be the same as the Font's BaseFont "${p}".`),u&&p&&(p.startsWith(u)||!yu(u)&&yu(p))&&(h=null),h||=f),!(h instanceof tt))throw new Q("invalid font name");let m,g,w,b,j;try{if(m=t.get("FontFile","FontFile2","FontFile3"),m)if(m instanceof Lt){if(m.isAsync){let H=await m.asyncGetBytes();H&&(m=new je(H,0,H.length,m.dict))}if(m.isEmpty)throw new Q("FontFile is empty")}else throw new Q("FontFile should be a stream")}catch(H){if(!this.options.ignoreErrors)throw H;T(`translateFont - fetching "${h.name}" font file: "${H}".`),m=null}let v=!1,q=null,x=null;if(m){if(m.dict){let H=m.dict.get("Subtype");H instanceof tt&&(g=H.name),w=m.dict.get("Length1"),b=m.dict.get("Length2"),j=m.dict.get("Length3")}}else if(l){let H=Kh(h.name);H&&(l.fontFamily=`${l.fontFamily}-PdfJS-XFA`,l.metrics=H.metrics||null,q=H.factors||null,m=await this.fetchStandardFontData(H.name),v=!!m,s=e=ld(h.name),i=!0)}else if(!c){let H=wu(h.name);H&&(m=await this.fetchStandardFontData(H),v=!!m),!v&&this.options.useSystemFonts&&(x=Uu(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,h.name,H,n))}let k=xn(e.getArray("FontMatrix"),Fa),A=ln(t.getArray("FontBBox")||e.getArray("FontBBox"),c?[0,0,0,0]:void 0),S=t.get("Ascent");typeof S!="number"&&(S=void 0);let I=t.get("Descent");typeof I!="number"&&(I=void 0);let E=t.get("XHeight");typeof E!="number"&&(E=0);let D=t.get("CapHeight");typeof D!="number"&&(D=0);let O=t.get("Flags");Number.isInteger(O)||(O=0);let $=t.get("ItalicAngle");typeof $!="number"&&($=0);let it={type:n,name:h.name,subtype:g,file:m,length1:w,length2:b,length3:j,isInternalFont:v,loadedName:s.loadedName,composite:i,fixedPitch:!1,fontMatrix:k,firstChar:a,lastChar:r,toUnicode:o,bbox:A,ascent:S,descent:I,xHeight:E,capHeight:D,flags:O,italicAngle:$,isType3Font:c,cssFontInfo:l,scaleFactors:q,systemFontInfo:x};if(i){let H=s.get("Encoding");H instanceof tt&&(it.cidEncoding=H.name);let L=await ar.create({encoding:H,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});it.cMap=L,it.vertical=it.cMap.vertical}let W=await this.extractDataStructures(e,it);return this.extractWidths(e,t,W),new Fu(h.name,m,W,this.options)}static buildFontPaths(t,e,s,i){function n(a){let r=`${t.loadedName}_path_${a}`;try{if(t.renderer.hasBuiltPath(a))return;let o=Vg(t.renderer.getPathJs(a));s.send("commonobj",[r,"FontPath",o],[o])}catch(o){if(i.ignoreErrors){T(`buildFontPaths - ignoring ${r} glyph: "${o}".`);return}throw o}}d(n,"buildPath");for(let a of e){n(a.fontChar);let r=a.accent;r?.fontChar&&n(r.fontChar)}}static get fallbackFontDict(){let t=new B;return t.set("BaseFont",tt.get("Helvetica")),t.set("Type",tt.get("FallbackType")),t.set("Subtype",tt.get("FallbackType")),t.set("Encoding",tt.get("WinAnsiEncoding")),lt(this,"fallbackFontDict",t)}};Hc=class Hc{static{d(this,"TranslatedFont")}#t=!1;#e=null;constructor({loadedName:t,font:e,dict:s}){this.loadedName=t,this.font=e,this.dict=s,this.type3Dependencies=e.isType3Font?new Set:null}send(t){if(this.#t)return;this.#t=!0;let e=this.font.exportData(),s=e.buffer?[e.buffer]:null;t.send("commonobj",[this.loadedName,"Font",e],s)}fallback(t,e){this.font.data&&(this.font.disableFontFace=!0,Pr.buildFontPaths(this.font,this.font.glyphCacheValues,t,e))}loadType3Data(t,e,s){if(this.#e)return this.#e;let{font:i,type3Dependencies:n}=this;Fe(i.isType3Font,"Must be a Type3 font.");let a=t.clone({ignoreErrors:!1}),r=new Me(t.type3FontRefs);this.dict.objId&&!r.has(this.dict.objId)&&r.put(this.dict.objId),a.type3FontRefs=r;let o=Promise.resolve(),l=this.dict.get("CharProcs"),c=this.dict.get("Resources")||e,h=Object.create(null),[f,u,p,m]=i.bbox,g=p-f,w=m-u,b=Math.hypot(g,w);for(let j of l.getKeys())o=o.then(()=>{let v=l.get(j),q=new vs;return a.getOperatorList({stream:v,task:s,resources:c,operatorList:q}).then(()=>{switch(q.fnArray[0]){case C.setCharWidthAndBounds:this.#s(q,b);break;case C.setCharWidth:b||this.#i(q);break}h[j]=q.getIR();for(let x of q.dependencies)n.add(x)}).catch(function(x){T(`Type3 font resource "${j}" is not available.`);let k=new vs;h[j]=k.getIR()})});return this.#e=o.then(()=>{i.charProcOperatorList=h,this._bbox&&(i.isCharBBox=!0,i.bbox=this._bbox)}),this.#e}#s(t,e=NaN){let s=de.normalizeRect(t.argsArray[0].slice(2)),i=s[2]-s[0],n=s[3]-s[1],a=Math.hypot(i,n);i===0||n===0?(t.fnArray.splice(0,1),t.argsArray.splice(0,1)):(e===0||Math.round(a/e)>=10)&&(this._bbox??=[1/0,1/0,-1/0,-1/0],de.rectBoundingBox(...s,this._bbox));let r=0,o=t.length;for(;r<o;){switch(t.fnArray[r]){case C.setCharWidthAndBounds:break;case C.setStrokeColorSpace:case C.setFillColorSpace:case C.setStrokeColor:case C.setStrokeColorN:case C.setFillColor:case C.setFillColorN:case C.setStrokeGray:case C.setFillGray:case C.setStrokeRGBColor:case C.setFillRGBColor:case C.setStrokeCMYKColor:case C.setFillCMYKColor:case C.shadingFill:case C.setRenderingIntent:t.fnArray.splice(r,1),t.argsArray.splice(r,1),o--;continue;case C.setGState:let[l]=t.argsArray[r],c=0,h=l.length;for(;c<h;){let[f]=l[c];switch(f){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":l.splice(c,1),h--;continue}c++}break}r++}}#i(t){let e=1,s=t.length;for(;e<s;){if(t.fnArray[e]===C.constructPath){let i=t.argsArray[e][2];this._bbox??=[1/0,1/0,-1/0,-1/0],de.rectBoundingBox(...i,this._bbox)}e++}}};Ho=class Ho{static{d(this,"StateManager")}constructor(t=new dd){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=de.transform(this.state.ctm,t)}};e2=class e2{static{d(this,"TextState")}ctm=new Float32Array(Gi);fontName=null;fontSize=0;loadedName=null;font=null;fontMatrix=Fa;textMatrix=Gi.slice();textLineMatrix=Gi.slice();charSpacing=0;wordSpacing=0;leading=0;textHScale=1;textRise=0;setTextMatrix(t,e,s,i,n,a){let r=this.textMatrix;r[0]=t,r[1]=e,r[2]=s,r[3]=i,r[4]=n,r[5]=a}setTextLineMatrix(t,e,s,i,n,a){let r=this.textLineMatrix;r[0]=t,r[1]=e,r[2]=s,r[3]=i,r[4]=n,r[5]=a}translateTextMatrix(t,e){let s=this.textMatrix;s[4]=s[0]*t+s[2]*e+s[4],s[5]=s[1]*t+s[3]*e+s[5]}translateTextLineMatrix(t,e){let s=this.textLineMatrix;s[4]=s[0]*t+s[2]*e+s[4],s[5]=s[1]*t+s[3]*e+s[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}};dd=class dd{static{d(this,"EvalState")}ctm=new Float32Array(Gi);font=null;textRenderingMode=tm.FILL;_fillColorSpace=le.gray;_strokeColorSpace=le.gray;patternFillColorSpace=null;patternStrokeColorSpace=null;currentPointX=0;currentPointY=0;pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0]);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 e=Object.create(this);return t&&(e.pathBuffer=[],e.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0])),e}};oa=class oa{static{d(this,"EvaluatorPreprocessor")}static get opMap(){return lt(this,"opMap",Object.assign(Object.create(null),{w:{id:C.setLineWidth,numArgs:1,variableArgs:!1},J:{id:C.setLineCap,numArgs:1,variableArgs:!1},j:{id:C.setLineJoin,numArgs:1,variableArgs:!1},M:{id:C.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:C.setDash,numArgs:2,variableArgs:!1},ri:{id:C.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:C.setFlatness,numArgs:1,variableArgs:!1},gs:{id:C.setGState,numArgs:1,variableArgs:!1},q:{id:C.save,numArgs:0,variableArgs:!1},Q:{id:C.restore,numArgs:0,variableArgs:!1},cm:{id:C.transform,numArgs:6,variableArgs:!1},m:{id:C.moveTo,numArgs:2,variableArgs:!1},l:{id:C.lineTo,numArgs:2,variableArgs:!1},c:{id:C.curveTo,numArgs:6,variableArgs:!1},v:{id:C.curveTo2,numArgs:4,variableArgs:!1},y:{id:C.curveTo3,numArgs:4,variableArgs:!1},h:{id:C.closePath,numArgs:0,variableArgs:!1},re:{id:C.rectangle,numArgs:4,variableArgs:!1},S:{id:C.stroke,numArgs:0,variableArgs:!1},s:{id:C.closeStroke,numArgs:0,variableArgs:!1},f:{id:C.fill,numArgs:0,variableArgs:!1},F:{id:C.fill,numArgs:0,variableArgs:!1},"f*":{id:C.eoFill,numArgs:0,variableArgs:!1},B:{id:C.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:C.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:C.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:C.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:C.endPath,numArgs:0,variableArgs:!1},W:{id:C.clip,numArgs:0,variableArgs:!1},"W*":{id:C.eoClip,numArgs:0,variableArgs:!1},BT:{id:C.beginText,numArgs:0,variableArgs:!1},ET:{id:C.endText,numArgs:0,variableArgs:!1},Tc:{id:C.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:C.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:C.setHScale,numArgs:1,variableArgs:!1},TL:{id:C.setLeading,numArgs:1,variableArgs:!1},Tf:{id:C.setFont,numArgs:2,variableArgs:!1},Tr:{id:C.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:C.setTextRise,numArgs:1,variableArgs:!1},Td:{id:C.moveText,numArgs:2,variableArgs:!1},TD:{id:C.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:C.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:C.nextLine,numArgs:0,variableArgs:!1},Tj:{id:C.showText,numArgs:1,variableArgs:!1},TJ:{id:C.showSpacedText,numArgs:1,variableArgs:!1},"'":{id:C.nextLineShowText,numArgs:1,variableArgs:!1},'"':{id:C.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:C.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:C.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:C.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:C.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:C.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:C.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:C.setFillColor,numArgs:4,variableArgs:!0},scn:{id:C.setFillColorN,numArgs:33,variableArgs:!0},G:{id:C.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:C.setFillGray,numArgs:1,variableArgs:!1},RG:{id:C.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:C.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:C.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:C.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:C.shadingFill,numArgs:1,variableArgs:!1},BI:{id:C.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:C.beginImageData,numArgs:0,variableArgs:!1},EI:{id:C.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:C.paintXObject,numArgs:1,variableArgs:!1},MP:{id:C.markPoint,numArgs:1,variableArgs:!1},DP:{id:C.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:C.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:C.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:C.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:C.beginCompat,numArgs:0,variableArgs:!1},EX:{id:C.endCompat,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}static MAX_INVALID_PATH_OPS=10;constructor(t,e,s=new Ho){this.parser=new wn({lexer:new Ci(t,oa.opMap),xref:e}),this.stateManager=s,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let e=t.args;for(;;){let s=this.parser.getObj();if(s instanceof Je){let i=s.cmd,n=oa.opMap[i];if(!n){T(`Unknown command "${i}".`);continue}let{id:a,numArgs:r}=n,o=e!==null?e.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=a>=C.moveTo&&a<=C.endPath,n.variableArgs)o>r&&Wt(`Command ${i}: expected [0, ${r}] args, but received ${o} args.`);else{if(o!==r){let l=this.nonProcessedArgs;for(;o>r;)l.push(e.shift()),o--;for(;o<r&&l.length!==0;)e===null&&(e=[]),e.unshift(l.pop()),o++}if(o<r){let l=`command ${i}: expected ${r} args, but received ${o} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>oa.MAX_INVALID_PATH_OPS)throw new Q(`Invalid ${l}`);T(`Skipping ${l}`),e!==null&&(e.length=0);continue}}return this.preprocessCommand(a,e),t.fn=a,t.args=e,!0}if(s===bs)return!1;if(s!==null&&(e===null&&(e=[]),e.push(s),e.length>33))throw new Q("Too many arguments")}}preprocessCommand(t,e){switch(t|0){case C.save:this.stateManager.save();break;case C.restore:this.stateManager.restore();break;case C.transform:this.stateManager.transform(e);break}}};s2=class s2 extends oa{static{d(this,"DefaultAppearanceEvaluator")}constructor(t){super(new Bs(t))}parse(){let t={fn:0,args:[]},e={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;t.args.length=0,!!this.read(t);){if(this.savedStatesDepth!==0)continue;let{fn:s,args:i}=t;switch(s|0){case C.setFont:let[n,a]=i;n instanceof tt&&(e.fontName=n.name),typeof a=="number"&&a>0&&(e.fontSize=a);break;case C.setFillRGBColor:le.rgb.getRgbItem(i,0,e.fontColor,0);break;case C.setFillGray:le.gray.getRgbItem(i,0,e.fontColor,0);break;case C.setFillCMYKColor:le.cmyk.getRgbItem(i,0,e.fontColor,0);break}}}catch(s){T(`parseDefaultAppearance - ignoring errors: "${s}".`)}return e}};d(Xh,"parseDefaultAppearance");i2=class i2 extends oa{static{d(this,"AppearanceStreamEvaluator")}constructor(t,e,s,i){super(t),this.stream=t,this.evaluatorOptions=e,this.xref=s,this.globalColorSpaceCache=i,this.resources=t.dict?.get("Resources")}parse(){let t={fn:0,args:[]},e={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:le.gray},s=!1,i=[];try{for(;t.args.length=0,!(s||!this.read(t));){let{fn:n,args:a}=t;switch(n|0){case C.save:i.push({scaleFactor:e.scaleFactor,fontSize:e.fontSize,fontName:e.fontName,fontColor:e.fontColor.slice(),fillColorSpace:e.fillColorSpace});break;case C.restore:e=i.pop()||e;break;case C.setTextMatrix:e.scaleFactor*=Math.hypot(a[0],a[1]);break;case C.setFont:let[r,o]=a;r instanceof tt&&(e.fontName=r.name),typeof o=="number"&&o>0&&(e.fontSize=o*e.scaleFactor);break;case C.setFillColorSpace:e.fillColorSpace=le.parse({cs:a[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case C.setFillColor:e.fillColorSpace.getRgbItem(a,0,e.fontColor,0);break;case C.setFillRGBColor:le.rgb.getRgbItem(a,0,e.fontColor,0);break;case C.setFillGray:le.gray.getRgbItem(a,0,e.fontColor,0);break;case C.setFillCMYKColor:le.cmyk.getRgbItem(a,0,e.fontColor,0);break;case C.showText:case C.showSpacedText:case C.nextLineShowText:case C.nextLineSetSpacingShowText:s=!0;break}}}catch(n){T(`parseAppearanceStream - ignoring errors: "${n}".`)}return this.stream.reset(),delete e.scaleFactor,delete e.fillColorSpace,e}get _localColorSpaceCache(){return lt(this,"_localColorSpaceCache",new cd)}get _pdfFunctionFactory(){let t=new hd({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return lt(this,"_pdfFunctionFactory",t)}};d(n2,"parseAppearanceStream");d(Vi,"getPdfColor");d(a2,"createDefaultAppearance");sa=class sa{static{d(this,"FakeUnicodeFont")}static#t=1;constructor(t,e){this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=e;let s=new OffscreenCanvas(1,1);this.ctxMeasure=s.getContext("2d",{willReadFrequently:!0}),this.fontName=tt.get(`InvalidPDFjsFont_${e}_${sa.#t++}`)}get fontDescriptorRef(){if(!sa._fontDescriptorRef){let t=new B(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),sa._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return sa._fontDescriptorRef}get descendantFontRef(){let t=new B(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",1000);let e=[],s=[...this.widths].sort(),i=null,n=null;for(let[r,o]of s){if(!i){i=r,n=[o];continue}r===i+n.length?n.push(o):(e.push(i,n),i=r,n=[o])}i&&e.push(i,n),t.set("W",e);let a=new B(this.xref);return a.set("Ordering","Identity"),a.set("Registry","Adobe"),a.set("Supplement",0),t.set("CIDSystemInfo",a),this.xref.getNewPersistentRef(t)}get baseFontRef(){let t=new B(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 B(this.xref),e=new B(this.xref);return e.set(this.fontName.name,this.baseFontRef),t.set("Font",e),t}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(t){let e=this._createContext();for(let s of t.split(/\r\n?|\n/))for(let i of s.split("")){let n=i.charCodeAt(0);if(this.widths.has(n))continue;let a=e.measureText(i),r=Math.ceil(a.width);this.widths.set(n,r),this.firstChar=Math.min(n,this.firstChar),this.lastChar=Math.max(n,this.lastChar)}return this.resources}static getFirstPositionInfo(t,e,s){let[i,n,a,r]=t,o=a-i,l=r-n;e%180!==0&&([o,l]=[l,o]);let c=Tn*s,h=Yc*s;return{coords:[0,l+h-c],bbox:[0,0,o,l],matrix:e!==0?Qo(e,l,c):void 0}}createAppearance(t,e,s,i,n,a){let r=this._createContext(),o=[],l=-1/0;for(let O of t.split(/\r\n?|\n/)){o.push(O);let $=r.measureText(O).width;l=Math.max(l,$);for(let it of ym(O)){let W=String.fromCodePoint(it),H=this.widths.get(it);if(H===void 0){let L=r.measureText(W);H=Math.ceil(L.width),this.widths.set(it,H),this.firstChar=Math.min(it,this.firstChar),this.lastChar=Math.max(it,this.lastChar)}}}l*=i/1000;let[c,h,f,u]=e,p=f-c,m=u-h;s%180!==0&&([p,m]=[m,p]);let g=1;l>p&&(g=p/l);let w=1,b=Tn*i,j=Yc*i,v=b*o.length;v>m&&(w=m/v);let q=Math.min(g,w),x=i*q,k=["q",`0 0 ${ie(p)} ${ie(m)} re W n`,"BT",`1 0 0 1 0 ${ie(m+j)} Tm 0 Tc ${Vi(n,!0)}`,`/${this.fontName.name} ${ie(x)} Tf`],{resources:A}=this;if(a=typeof a=="number"&&a>=0&&a<=1?a:1,a!==1){k.push("/R0 gs");let O=new B(this.xref),$=new B(this.xref);$.set("ca",a),$.set("CA",a),$.setIfName("Type","ExtGState"),O.set("R0",$),A.set("ExtGState",O)}let S=ie(b);for(let O of o)k.push(`0 -${S} Td <${km(O)}> Tj`);k.push("ET","Q");let I=k.join(`
71
+ `),E=new B(this.xref);if(E.setIfName("Subtype","Form"),E.setIfName("Type","XObject"),E.set("BBox",[0,0,p,m]),E.set("Length",I.length),E.set("Resources",A),s){let O=Qo(s,p,m);E.set("Matrix",O)}let D=new Bs(I);return D.dict=E,D}};Tj=["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"],Fj=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];pd=class pd{static{d(this,"NameOrNumberTree")}constructor(t,e,s){this.root=t,this.xref=e,this._type=s}getAll(t=!1){let e=new Map;if(!this.root)return e;let s=this.xref,i=new Me;this.root instanceof nt&&i.put(this.root);let n=[this.root];for(;n.length>0;){let a=s.fetchIfRef(n.shift());if(!(a instanceof B))continue;if(a.has("Kids")){let o=a.get("Kids");if(!Array.isArray(o))continue;for(let l of o){if(l instanceof nt){if(i.has(l))throw new Q(`Duplicate entry in "${this._type}" tree.`);i.put(l)}n.push(l)}continue}let r=a.get(this._type);if(Array.isArray(r))for(let o=0,l=r.length;o<l;o+=2)e.set(s.fetchIfRef(r[o]),t?r[o+1]:s.fetchIfRef(r[o+1]))}return e}getRaw(t){if(!this.root)return null;let e=this.xref,s=e.fetchIfRef(this.root),i=0,n=10;for(;s.has("Kids");){if(++i>n)return T(`Search depth limit reached for "${this._type}" tree.`),null;let r=s.get("Kids");if(!Array.isArray(r))return null;let o=0,l=r.length-1;for(;o<=l;){let c=o+l>>1,h=e.fetchIfRef(r[c]),f=h.get("Limits");if(t<e.fetchIfRef(f[0]))l=c-1;else if(t>e.fetchIfRef(f[1]))o=c+1;else{s=h;break}}if(o>l)return null}let a=s.get(this._type);if(Array.isArray(a)){let r=0,o=a.length-2;for(;r<=o;){let l=r+o>>1,c=l+(l&1),h=e.fetchIfRef(a[c]);if(t<h)o=c-2;else if(t>h)r=c+2;else return a[c+1]}}return null}get(t){return this.xref.fetchIfRef(this.getRaw(t))}};Qn=class Qn extends pd{static{d(this,"NameTree")}constructor(t,e){super(t,e,"Names")}};Dr=class Dr extends pd{static{d(this,"NumberTree")}constructor(t,e){super(t,e,"Nums")}};d(Qh,"clearGlobalCaches");d(Gu,"pickPlatformItem");hh=class hh{static{d(this,"FileSpec")}#t=!1;constructor(t,e=!1){t instanceof B&&(this.root=t,t.has("FS")&&(this.fs=t.get("FS")),t.has("RF")&&T("Related file specifications are not supported"),e||(t.has("EF")?this.#t=!0:T("Non-embedded file specifications are not supported")))}get filename(){let t=Gu(this.root);return t&&typeof t=="string"?Xt(t,!0).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/"):""}get content(){if(!this.#t)return null;let t=Gu(this.root?.get("EF"));return t instanceof Lt?t.getBytes():(T("Embedded file specification points to non-existing/invalid content"),null)}get description(){let t=this.root?.get("Desc");return t&&typeof t=="string"?Xt(t):""}get serializable(){let{filename:t,content:e,description:s}=this;return{rawFilename:t,filename:rm(t)||"unnamed",content:e,description:s}}};Js={NoError:0,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,UnterminatedElement:-9};d(Sa,"isWhitespace");d(r2,"isWhitespaceString");md=class md{static{d(this,"XMLParserBase")}_resolveEntities(t){return t.replaceAll(/&([^;]+);/g,(e,s)=>{if(s.substring(0,2)==="#x")return String.fromCodePoint(parseInt(s.substring(2),16));if(s.substring(0,1)==="#")return String.fromCodePoint(parseInt(s.substring(1),10));switch(s){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(s)})}_parseContent(t,e){let s=[],i=e;function n(){for(;i<t.length&&Sa(t,i);)++i}for(d(n,"skipWs");i<t.length&&!Sa(t,i)&&t[i]!==">"&&t[i]!=="/";)++i;let a=t.substring(e,i);for(n();i<t.length&&t[i]!==">"&&t[i]!=="/"&&t[i]!=="?";){n();let r="",o="";for(;i<t.length&&!Sa(t,i)&&t[i]!=="=";)r+=t[i],++i;if(n(),t[i]!=="=")return null;++i,n();let l=t[i];if(l!=='"'&&l!=="'")return null;let c=t.indexOf(l,++i);if(c<0)return null;o=t.substring(i,c),s.push({name:r,value:this._resolveEntities(o)}),i=c+1,n()}return{name:a,attributes:s,parsed:i-e}}_parseProcessingInstruction(t,e){let s=e;function i(){for(;s<t.length&&Sa(t,s);)++s}for(d(i,"skipWs");s<t.length&&!Sa(t,s)&&t[s]!==">"&&t[s]!=="?"&&t[s]!=="/";)++s;let n=t.substring(e,s);i();let a=s;for(;s<t.length&&(t[s]!=="?"||t[s+1]!==">");)++s;let r=t.substring(a,s);return{name:n,value:r,parsed:s-e}}parseXml(t){let e=0;for(;e<t.length;){let s=t[e],i=e;if(s==="<"){++i;let n=t[i],a;switch(n){case"/":if(++i,a=t.indexOf(">",i),a<0){this.onError(Js.UnterminatedElement);return}this.onEndElement(t.substring(i,a)),i=a+1;break;case"?":++i;let r=this._parseProcessingInstruction(t,i);if(t.substring(i+r.parsed,i+r.parsed+2)!=="?>"){this.onError(Js.UnterminatedXmlDeclaration);return}this.onPi(r.name,r.value),i+=r.parsed+2;break;case"!":if(t.substring(i+1,i+3)==="--"){if(a=t.indexOf("-->",i+3),a<0){this.onError(Js.UnterminatedComment);return}this.onComment(t.substring(i+3,a)),i=a+3}else if(t.substring(i+1,i+8)==="[CDATA["){if(a=t.indexOf("]]>",i+8),a<0){this.onError(Js.UnterminatedCdat);return}this.onCdata(t.substring(i+8,a)),i=a+3}else if(t.substring(i+1,i+8)==="DOCTYPE"){let c=t.indexOf("[",i+8),h=!1;if(a=t.indexOf(">",i+8),a<0){this.onError(Js.UnterminatedDoctypeDeclaration);return}if(c>0&&a>c){if(a=t.indexOf("]>",i+8),a<0){this.onError(Js.UnterminatedDoctypeDeclaration);return}h=!0}let f=t.substring(i+8,a+(h?1:0));this.onDoctype(f),i=a+(h?2:1)}else{this.onError(Js.MalformedElement);return}break;default:let o=this._parseContent(t,i);if(o===null){this.onError(Js.MalformedElement);return}let l=!1;if(t.substring(i+o.parsed,i+o.parsed+2)==="/>")l=!0;else if(t.substring(i+o.parsed,i+o.parsed+1)!==">"){this.onError(Js.UnterminatedElement);return}this.onBeginElement(o.name,o.attributes,l),i+=o.parsed+(l?2:1);break}}else{for(;i<t.length&&t[i]!=="<";)i++;let n=t.substring(e,i);this.onText(this._resolveEntities(n))}e=i}}onResolveEntity(t){return`&${t};`}onPi(t,e){}onComment(t){}onCdata(t){}onDoctype(t){}onText(t){}onBeginElement(t,e,s){}onEndElement(t){}onError(t){}};Cr=class Cr{static{d(this,"SimpleDOMNode")}constructor(t,e){this.nodeName=t,this.nodeValue=e,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 e=t.indexOf(this);if(e!==-1)return t[e+1]}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,e){if(e>=t.length)return this;let s=t[e];if(s.name.startsWith("#")&&e<t.length-1)return this.searchNode(t,e+1);let i=[],n=this;for(;;){if(s.name===n.nodeName)if(s.pos===0){let a=n.searchNode(t,e+1);if(a!==null)return a}else{if(i.length===0)return null;{let[a]=i.pop(),r=0;for(let o of a.childNodes)if(s.name===o.nodeName){if(r===s.pos)return o.searchNode(t,e+1);r++}return n.searchNode(t,e+1)}}if(n.childNodes?.length>0)i.push([n,0]),n=n.childNodes[0];else{if(i.length===0)return null;for(;i.length!==0;){let[a,r]=i.pop(),o=r+1;if(o<a.childNodes.length){i.push([a,o]),n=a.childNodes[o];break}}if(i.length===0)return null}}}dump(t){if(this.nodeName==="#text"){t.push(Ea(this.nodeValue));return}if(t.push(`<${this.nodeName}`),this.attributes)for(let e of this.attributes)t.push(` ${e.name}="${Ea(e.value)}"`);if(this.hasChildNodes()){t.push(">");for(let e of this.childNodes)e.dump(t);t.push(`</${this.nodeName}>`)}else this.nodeValue?t.push(`>${Ea(this.nodeValue)}</${this.nodeName}>`):t.push("/>")}};Il=class Il extends md{static{d(this,"SimpleXMLParser")}constructor({hasAttributes:t=!1,lowerCaseName:e=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=Js.NoError,this._hasAttributes=t,this._lowerCaseName=e}parseFromString(t){if(this._currentFragment=[],this._stack=[],this._errorCode=Js.NoError,this.parseXml(t),this._errorCode!==Js.NoError)return;let[e]=this._currentFragment;if(e)return{documentElement:e}}onText(t){if(r2(t))return;let e=new Cr("#text",t);this._currentFragment.push(e)}onCdata(t){let e=new Cr("#text",t);this._currentFragment.push(e)}onBeginElement(t,e,s){this._lowerCaseName&&(t=t.toLowerCase());let i=new Cr(t);i.childNodes=[],this._hasAttributes&&(i.attributes=e),this._currentFragment.push(i),!s&&(this._stack.push(this._currentFragment),this._currentFragment=i.childNodes)}onEndElement(t){this._currentFragment=this._stack.pop()||[];let e=this._currentFragment.at(-1);if(!e)return null;for(let s of e.childNodes)s.parentNode=e;return e}onError(t){this._errorCode=t}};o2=class o2{static{d(this,"MetadataParser")}constructor(t){t=this._repair(t);let e=new Il({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,e&&this._parse(e)}_repair(t){return t.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,function(e,s){let i=s.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(a,r,o,l){return String.fromCharCode(r*64+o*8+l*1)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(a,r){switch(r){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw Error(`_repair: ${r} isn't defined.`)}),n=[">"];for(let a=0,r=i.length;a<r;a+=2){let o=i.charCodeAt(a)*256+i.charCodeAt(a+1);o>=32&&o<127&&o!==60&&o!==62&&o!==38?n.push(String.fromCharCode(o)):n.push("&#x"+(65536+o).toString(16).substring(1)+";")}return n.join("")})}_getSequence(t){let e=t.nodeName;return e!=="rdf:bag"&&e!=="rdf:seq"&&e!=="rdf:alt"?null:t.childNodes.filter((s)=>s.nodeName==="rdf:li")}_parseArray(t){if(!t.hasChildNodes())return;let[e]=t.childNodes,s=this._getSequence(e)||[];this._metadataMap.set(t.nodeName,s.map((i)=>i.textContent.trim()))}_parse(t){let e=t.documentElement;if(e.nodeName!=="rdf:rdf")for(e=e.firstChild;e&&e.nodeName!=="rdf:rdf";)e=e.nextSibling;if(!(!e||e.nodeName!=="rdf:rdf"||!e.hasChildNodes())){for(let s of e.childNodes)if(s.nodeName==="rdf:description")for(let i of s.childNodes){let n=i.nodeName;switch(n){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(i);continue}this._metadataMap.set(n,i.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}};mi={PAGE_CONTENT:1,STREAM_CONTENT:2,OBJECT:3,ANNOTATION:4,ELEMENT:5};ia=class ia{static{d(this,"StructTreeRoot")}constructor(t,e,s){this.xref=t,this.dict=e,this.ref=s instanceof nt?s:null,this.roleMap=new Map,this.structParentIds=null,this.kidRefToPosition=void 0,this.parentTree=null}getKidPosition(t){if(this.kidRefToPosition===void 0){let e=this.dict.get("K");if(Array.isArray(e)){let s=this.kidRefToPosition=new Map;for(let i=0,n=e.length;i<n;i++){let a=e[i];a&&s.set(a.toString(),i)}}else e instanceof B?this.kidRefToPosition=new Map([[e.objId,0]]):e?this.kidRefToPosition=null:this.kidRefToPosition=new Map}return this.kidRefToPosition?this.kidRefToPosition.get(t)??NaN:-1}init(){this.readRoleMap();let t=this.dict.get("ParentTree");t&&(this.parentTree=new Dr(t,this.xref))}#t(t,e,s){if(!(t instanceof nt)||e<0)return;this.structParentIds||=new ts;let i=this.structParentIds.get(t);i||(i=[],this.structParentIds.put(t,i)),i.push([e,s])}addAnnotationIdToPage(t,e){this.#t(t,e,mi.ANNOTATION)}readRoleMap(){let t=this.dict.get("RoleMap");if(t instanceof B)for(let[e,s]of t)s instanceof tt&&this.roleMap.set(e,s.name)}static async canCreateStructureTree({catalogRef:t,pdfManager:e,newAnnotationsByPage:s}){if(!(t instanceof nt))return T("Cannot save the struct tree: no catalog reference."),!1;let i=0,n=!0;for(let[a,r]of s){let{ref:o}=await e.getPage(a);if(!(o instanceof nt)){T(`Cannot save the struct tree: page ${a} has no ref.`),n=!0;break}for(let l of r)l.accessibilityData?.type&&(l.parentTreeId=i++,n=!1)}if(n){for(let a of s.values())for(let r of a)delete r.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:t,xref:e,catalogRef:s,pdfManager:i,changes:n}){let a=await i.ensureCatalog("cloneDict"),r=new ts;r.put(s,a);let o=e.getNewTemporaryRef();a.set("StructTreeRoot",o);let l=new B(e);l.set("Type",tt.get("StructTreeRoot"));let c=e.getNewTemporaryRef();l.set("ParentTree",c);let h=[];l.set("K",h),r.put(o,l);let f=new B(e),u=[];f.set("Nums",u);let p=await this.#e({newAnnotationsByPage:t,structTreeRootRef:o,structTreeRoot:null,kids:h,nums:u,xref:e,pdfManager:i,changes:n,cache:r});l.set("ParentTreeNextKey",p),r.put(c,f);for(let[m,g]of r.items())n.put(m,{data:g})}async canUpdateStructTree({pdfManager:t,newAnnotationsByPage:e}){if(!this.ref)return T("Cannot update the struct tree: no root reference."),!1;let s=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(s)||s<0)return T("Cannot update the struct tree: invalid next key."),!1;let i=this.dict.get("ParentTree");if(!(i instanceof B))return T("Cannot update the struct tree: ParentTree isn't a dict."),!1;let n=i.get("Nums");if(!Array.isArray(n))return T("Cannot update the struct tree: nums isn't an array."),!1;let a=new Dr(i,this.xref);for(let o of e.keys()){let{pageDict:l}=await t.getPage(o);if(!l.has("StructParents"))continue;let c=l.get("StructParents");if(!Number.isInteger(c)||!Array.isArray(a.get(c)))return T(`Cannot save the struct tree: page ${o} has a wrong id.`),!1}let r=!0;for(let[o,l]of e){let{pageDict:c}=await t.getPage(o);ia.#i({elements:l,xref:this.xref,pageDict:c,numberTree:a});for(let h of l)h.accessibilityData?.type&&(h.accessibilityData.structParent>=0||(h.parentTreeId=s++),r=!1)}if(r){for(let o of e.values())for(let l of o)delete l.parentTreeId,delete l.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:t,pdfManager:e,changes:s}){let{ref:i,xref:n}=this,a=this.dict.clone(),r=new ts;r.put(i,a);let o=a.getRaw("ParentTree"),l;o instanceof nt?l=n.fetch(o):(l=o,o=n.getNewTemporaryRef(),a.set("ParentTree",o)),l=l.clone(),r.put(o,l);let c=l.getRaw("Nums"),h=null;c instanceof nt&&(h=c,c=n.fetch(h)),c=c.slice(),h||l.set("Nums",c);let f=await ia.#e({newAnnotationsByPage:t,structTreeRootRef:i,structTreeRoot:this,kids:null,nums:c,xref:n,pdfManager:e,changes:s,cache:r});if(f!==-1){a.set("ParentTreeNextKey",f),h&&r.put(h,c);for(let[u,p]of r.items())s.put(u,{data:p})}}static async#e({newAnnotationsByPage:t,structTreeRootRef:e,structTreeRoot:s,kids:i,nums:n,xref:a,pdfManager:r,changes:o,cache:l}){let c=tt.get("OBJR"),h=-1,f;for(let[u,p]of t){let m=await r.getPage(u),{ref:g}=m,w=g instanceof nt;for(let{accessibilityData:b,ref:j,parentTreeId:v,structTreeParent:q}of p){if(!b?.type)continue;let{structParent:x}=b;if(s&&Number.isInteger(x)&&x>=0){let I=(f||=new Map).get(u);I===void 0&&(I=new gd(s,m.pageDict).collectObjects(g),f.set(u,I));let E=I?.get(x);if(E){let D=a.fetch(E).clone();ia.#s(D,b),o.put(E,{data:D});continue}}h=Math.max(h,v);let k=a.getNewTemporaryRef(),A=new B(a);ia.#s(A,b),await this.#n({structTreeParent:q,tagDict:A,newTagRef:k,structTreeRootRef:e,fallbackKids:i,xref:a,cache:l});let S=new B(a);A.set("K",S),S.set("Type",c),w&&S.set("Pg",g),S.set("Obj",j),l.put(k,A),n.push(v,k)}}return h+1}static#s(t,{type:e,title:s,lang:i,alt:n,expanded:a,actualText:r}){t.set("S",tt.get(e)),s&&t.set("T",ws(s)),i&&t.set("Lang",ws(i)),n&&t.set("Alt",ws(n)),a&&t.set("E",ws(a)),r&&t.set("ActualText",ws(r))}static#i({elements:t,xref:e,pageDict:s,numberTree:i}){let n=new Map;for(let l of t)if(l.structTreeParentId){let c=parseInt(l.structTreeParentId.split("_mc")[1],10);n.getOrInsertComputed(c,Nh).push(l)}let a=s.get("StructParents");if(!Number.isInteger(a))return;let r=i.get(a),o=d((l,c,h)=>{let f=n.get(l);if(f){let u=c.getRaw("P"),p=e.fetchIfRef(u);if(u instanceof nt&&p instanceof B){let m={ref:h,dict:c};for(let g of f)g.structTreeParent=m}return!0}return!1},"updateElement");for(let l of r){if(!(l instanceof nt))continue;let c=e.fetch(l),h=c.get("K");if(Number.isInteger(h)){o(h,c,l);continue}if(Array.isArray(h))for(let f of h){if(f=e.fetchIfRef(f),Number.isInteger(f)&&o(f,c,l))break;if(!(f instanceof B))continue;if(!re(f.get("Type"),"MCR"))break;let u=f.get("MCID");if(Number.isInteger(u)&&o(u,c,l))break}}}static async#n({structTreeParent:t,tagDict:e,newTagRef:s,structTreeRootRef:i,fallbackKids:n,xref:a,cache:r}){let o=null,l;t?({ref:o}=t,l=t.dict.getRaw("P")||i):l=i,e.set("P",l);let c=a.fetchIfRef(l);if(!c){n.push(s);return}let h=r.get(l);h||(h=c.clone(),r.put(l,h));let f=h.getRaw("K"),u=f instanceof nt?r.get(f):null;if(!u){u=a.fetchIfRef(f),u=Array.isArray(u)?u.slice():[f];let m=a.getNewTemporaryRef();h.set("K",m),r.put(m,u)}let p=u.indexOf(o);u.splice(p>=0?p+1:u.length,0,s)}};l2=class l2{static{d(this,"StructElementNode")}constructor(t,e){this.tree=t,this.xref=t.xref,this.dict=e,this.kids=[],this.parseKids()}get role(){let t=this.dict.get("S"),e=t instanceof tt?t.name:"",{root:s}=this.tree;return s.roleMap.get(e)??e}get mathML(){let t=this.dict.get("AF")||[];Array.isArray(t)||(t=[t]);for(let s of t){if(s=this.xref.fetchIfRef(s),!(s instanceof B)||!re(s.get("Type"),"Filespec")||!re(s.get("AFRelationship"),"Supplement"))continue;let i=s.get("EF");if(!(i instanceof B))continue;let n=i.get("UF")||i.get("F");if(n instanceof Lt&&re(n.dict.get("Type"),"EmbeddedFile")&&re(n.dict.get("Subtype"),"application/mathml+xml"))return Ha(n.getString())}let e=this.dict.get("A");if(e instanceof B){let s=e.get("O");if(re(s,"MSFT_Office")){let i=e.get("MSFT_MathML");return i?Xt(i):null}}return null}parseKids(){let t=null,e=this.dict.getRaw("Pg");e instanceof nt&&(t=e.toString());let s=this.dict.get("K");if(Array.isArray(s))for(let i of s){let n=this.parseKid(t,this.xref.fetchIfRef(i));n&&this.kids.push(n)}else{let i=this.parseKid(t,s);i&&this.kids.push(i)}}parseKid(t,e){if(Number.isInteger(e))return this.tree.pageDict.objId!==t?null:new xo({type:mi.PAGE_CONTENT,mcid:e,pageObjId:t});if(!(e instanceof B))return null;let s=e.getRaw("Pg");s instanceof nt&&(t=s.toString());let i=e.get("Type")instanceof tt?e.get("Type").name:null;if(i==="MCR"){if(this.tree.pageDict.objId!==t)return null;let n=e.getRaw("Stm");return new xo({type:mi.STREAM_CONTENT,refObjId:n instanceof nt?n.toString():null,pageObjId:t,mcid:e.get("MCID")})}if(i==="OBJR"){if(this.tree.pageDict.objId!==t)return null;let n=e.getRaw("Obj");return new xo({type:mi.OBJECT,refObjId:n instanceof nt?n.toString():null,pageObjId:t})}return new xo({type:mi.ELEMENT,dict:e})}};xo=class xo{static{d(this,"StructElement")}constructor({type:t,dict:e=null,mcid:s=null,pageObjId:i=null,refObjId:n=null}){this.type=t,this.dict=e,this.mcid=s,this.pageObjId=i,this.refObjId=n,this.parentNode=null}};gd=class gd{static{d(this,"StructTreePage")}constructor(t,e){this.root=t,this.xref=t?.xref??null,this.rootDict=t?.dict??null,this.pageDict=e,this.nodes=[]}collectObjects(t){if(!this.root||!this.rootDict||!(t instanceof nt))return null;let e=this.rootDict.get("ParentTree");if(!e)return null;let s=this.root.structParentIds?.get(t);if(!s)return null;let i=new Map,n=new Dr(e,this.xref);for(let[a]of s){let r=n.getRaw(a);r instanceof nt&&i.set(a,r)}return i}parse(t){if(!this.root||!this.rootDict||!(t instanceof nt))return;let{parentTree:e}=this.root;if(!e)return;let s=this.pageDict.get("StructParents"),i=this.root.structParentIds?.get(t);if(!Number.isInteger(s)&&!i)return;let n=new Map;if(Number.isInteger(s)){let a=e.get(s);if(Array.isArray(a))for(let r of a)r instanceof nt&&this.addNode(this.xref.fetch(r),n)}if(i)for(let[a,r]of i){let o=e.get(a);if(o){let l=this.addNode(this.xref.fetchIfRef(o),n);l?.kids?.length===1&&l.kids[0].type===mi.OBJECT&&(l.kids[0].type=r)}}}addNode(t,e,s=0){if(s>Cp)return T("StructTree MAX_DEPTH reached."),null;if(!(t instanceof B))return null;if(e.has(t))return e.get(t);let i=new l2(this,t);switch(e.set(t,i),i.role){case"L":case"LBody":case"LI":case"Table":case"THead":case"TBody":case"TFoot":case"TR":for(let o of i.kids)o.type===mi.ELEMENT&&this.addNode(o.dict,e,s-1)}let n=t.get("P");if(!(n instanceof B)||re(n.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(t,i)||e.delete(t),i;let a=this.addNode(n,e,s+1);if(!a)return i;let r=!1;for(let o of a.kids)o.type===mi.ELEMENT&&o.dict===t&&(o.parentNode=i,r=!0);return r||e.delete(t),i}addTopLevelNode(t,e){let s=this.root.getKidPosition(t.objId);return isNaN(s)?!1:(s!==-1&&(this.nodes[s]=e),!0)}get serializable(){function t(s,i,n=0){if(n>Cp){T("StructTree too deep to be fully serialized.");return}let a=Object.create(null);a.role=s.role,a.children=[],i.children.push(a);let r=s.dict.get("Alt");if(typeof r!="string"&&(r=s.dict.get("ActualText")),typeof r=="string"&&(a.alt=Xt(r)),a.role==="Formula"){let{mathML:c}=s;c&&(a.mathML=c)}let o=s.dict.get("A");if(o instanceof B){let c=ln(o.getArray("BBox"),null);if(c)a.bbox=c;else{let h=o.get("Width"),f=o.get("Height");typeof h=="number"&&h>0&&typeof f=="number"&&f>0&&(a.bbox=[0,0,h,f])}}let l=s.dict.get("Lang");typeof l=="string"&&(a.lang=Xt(l));for(let c of s.kids){let h=c.type===mi.ELEMENT?c.parentNode:null;if(h){t(h,a,n+1);continue}else c.type===mi.PAGE_CONTENT||c.type===mi.STREAM_CONTENT?a.children.push({type:"content",id:`p${c.pageObjId}_mc${c.mcid}`}):c.type===mi.OBJECT?a.children.push({type:"object",id:c.refObjId}):c.type===mi.ANNOTATION&&a.children.push({type:"annotation",id:`${Q7}${c.refObjId}`})}}d(t,"nodeToSerializable");let e=Object.create(null);e.children=[],e.role="Root";for(let s of this.nodes)s&&t(s,e);return e}};Ej=d((t)=>t instanceof nt,"isRef"),fh=hm.bind(null,Ej,re);d(_c,"fetchDest");d($u,"fetchRemoteDest");Ma=class Ma{static{d(this,"Catalog")}#t=null;#e=null;builtInCMapCache=new Map;fontCache=new ts;globalColorSpaceCache=new Ub;globalImageCache=new gr;nonBlendModesSet=new Me;pageDictCache=new ts;pageIndexCache=new ts;pageKidsCountCache=new ts;standardFontDataCache=new Map;systemFontCache=new Map;constructor(t,e){if(this.pdfManager=t,this.xref=e,this.#e=e.getCatalogObj(),!(this.#e instanceof B))throw new Q("Catalog object is not a dictionary.");this.toplevelPagesDict}cloneDict(){return this.#e.clone()}get version(){let t=this.#e.get("Version");if(t instanceof tt){if(mm.test(t.name))return lt(this,"version",t.name);T(`Invalid PDF catalog version: ${t.name}`)}return lt(this,"version",null)}get lang(){let t=this.#e.get("Lang");return lt(this,"lang",t&&typeof t=="string"?Xt(t):null)}get needsRendering(){let t=this.#e.get("NeedsRendering");return lt(this,"needsRendering",typeof t=="boolean"?t:!1)}get collection(){let t=null;try{let e=this.#e.get("Collection");e instanceof B&&e.size>0&&(t=e)}catch(e){if(e instanceof Ce)throw e;Wt("Cannot fetch Collection entry; assuming no collection is present.")}return lt(this,"collection",t)}get acroForm(){let t=null;try{let e=this.#e.get("AcroForm");e instanceof B&&e.size>0&&(t=e)}catch(e){if(e instanceof Ce)throw e;Wt("Cannot fetch AcroForm entry; assuming no forms are present.")}return lt(this,"acroForm",t)}get acroFormRef(){let t=this.#e.getRaw("AcroForm");return lt(this,"acroFormRef",t instanceof nt?t:null)}get metadata(){let t=this.#e.getRaw("Metadata");if(!(t instanceof nt))return lt(this,"metadata",null);let e=null;try{let s=this.xref.fetch(t,!this.xref.encrypt?.encryptMetadata);if(s instanceof Lt&&s.dict instanceof B){let i=s.dict.get("Type"),n=s.dict.get("Subtype");if(re(i,"Metadata")&&re(n,"XML")){let a=Ha(s.getString());a&&(e=new o2(a).serializable)}}}catch(s){if(s instanceof Ce)throw s;Wt(`Skipping invalid Metadata: "${s}".`)}return lt(this,"metadata",e)}get markInfo(){let t=null;try{t=this.#s()}catch(e){if(e instanceof Ce)throw e;T("Unable to read mark info.")}return lt(this,"markInfo",t)}#s(){let t=this.#e.get("MarkInfo");if(!(t instanceof B))return null;let e={Marked:!1,UserProperties:!1,Suspects:!1};for(let s in e){let i=t.get(s);typeof i=="boolean"&&(e[s]=i)}return e}get hasStructTree(){return this.#e.has("StructTreeRoot")}get structTreeRoot(){let t=null;try{t=this.#i()}catch(e){if(e instanceof Ce)throw e;T("Unable read to structTreeRoot info.")}return lt(this,"structTreeRoot",t)}#i(){let t=this.#e.getRaw("StructTreeRoot"),e=this.xref.fetchIfRef(t);if(!(e instanceof B))return null;let s=new ia(this.xref,e,t);return s.init(),s}get toplevelPagesDict(){let t=this.#e.get("Pages");if(!(t instanceof B))throw new Q("Invalid top-level pages dictionary.");return lt(this,"toplevelPagesDict",t)}get documentOutline(){let t=null;try{t=this.#n()}catch(e){if(e instanceof Ce)throw e;T("Unable to read document outline.")}return lt(this,"documentOutline",t)}#n(t={}){let e=this.#e.get("Outlines");if(!(e instanceof B)||(e=e.getRaw("First"),!(e instanceof nt)))return null;let s={items:[]},i=[{obj:e,parent:s}],n=new Me;n.put(e);let a=this.xref,r=new Uint8ClampedArray(3);for(;i.length>0;){let o=i.shift(),l=a.fetchIfRef(o.obj);if(l===null)continue;l.has("Title")||T("Invalid outline item encountered.");let c={url:null,dest:null,action:null};Ma.parseDestDictionary({destDict:l,resultObj:c,docBaseUrl:this.baseUrl,docAttachments:this.attachments});let h=l.get("Title"),f=l.get("F")||0,u=l.getArray("C"),p=l.get("Count"),m=r;_s(u,3)&&(u[0]!==0||u[1]!==0||u[2]!==0)&&(m=le.rgb.getRgb(u,0));let g={action:c.action,attachment:c.attachment,dest:c.dest,url:c.url,unsafeUrl:c.unsafeUrl,newWindow:c.newWindow,setOCGState:c.setOCGState,title:typeof h=="string"?Xt(h):"",color:m,count:Number.isInteger(p)?p:void 0,bold:!!(f&2),italic:!!(f&1),items:[]};t.keepRawDict&&(g.rawDict=l),o.parent.items.push(g),e=l.getRaw("First"),e instanceof nt&&!n.has(e)&&(i.push({obj:e,parent:g}),n.put(e)),e=l.getRaw("Next"),e instanceof nt&&!n.has(e)&&(i.push({obj:e,parent:o.parent}),n.put(e))}return s.items.length>0?s.items:null}get documentOutlineForEditor(){let t=null;try{t=this.#n({keepRawDict:!0})}catch(e){if(e instanceof Ce)throw e;T("Unable to read document outline.")}return lt(this,"documentOutlineForEditor",t)}get permissions(){let t=null;try{t=this.#a()}catch(e){if(e instanceof Ce)throw e;T("Unable to read permissions.")}return lt(this,"permissions",t)}#a(){let t=this.xref.trailer.get("Encrypt");if(!(t instanceof B))return null;let e=t.get("P");if(typeof e!="number")return null;e+=4294967296;let s=[];for(let i in Z0){let n=Z0[i];e&n&&s.push(n)}return s}get optionalContentConfig(){let t=null;try{let e=this.#e.get("OCProperties");if(!e)return lt(this,"optionalContentConfig",null);let s=e.get("D");if(!s)return lt(this,"optionalContentConfig",null);let i=e.get("OCGs");if(!Array.isArray(i))return lt(this,"optionalContentConfig",null);let n=new ts;for(let a of i)!(a instanceof nt)||n.has(a)||n.put(a,this.#r(a));t=this.#o(s,n)}catch(e){if(e instanceof Ce)throw e;T(`Unable to read optional content config: ${e}`)}return lt(this,"optionalContentConfig",t)}#r(t){let e=this.xref.fetch(t),s={id:t.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},i=e.get("Name");typeof i=="string"&&(s.name=Xt(i));let n=e.getArray("Intent");Array.isArray(n)||(n=[n]),n.every((c)=>c instanceof tt)&&(s.intent=n.map((c)=>c.name));let a=e.get("Usage");if(!(a instanceof B))return s;let r=s.usage,o=a.get("Print");if(o instanceof B){let c=o.get("PrintState");if(c instanceof tt)switch(c.name){case"ON":case"OFF":r.print={printState:c.name}}}let l=a.get("View");if(l instanceof B){let c=l.get("ViewState");if(c instanceof tt)switch(c.name){case"ON":case"OFF":r.view={viewState:c.name}}}return s}#o(t,e){function s(c){let h=[];if(Array.isArray(c))for(let f of c)f instanceof nt&&e.has(f)&&h.push(f.toString());return h}d(s,"parseOnOff");function i(c,h=0){if(!Array.isArray(c))return null;let f=[];for(let p of c){if(p instanceof nt&&e.has(p)){o.put(p),f.push(p.toString());continue}let m=n(p,h);m&&f.push(m)}if(h>0)return f;let u=[];for(let[p]of e.items())o.has(p)||u.push(p.toString());return u.length&&f.push({name:null,order:u}),f}d(i,"parseOrder");function n(c,h){if(++h>l)return T("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;let f=r.fetchIfRef(c);if(!Array.isArray(f))return null;let u=r.fetchIfRef(f[0]);if(typeof u!="string")return null;let p=i(f.slice(1),h);return p?.length?{name:Xt(u),order:p}:null}d(n,"parseNestedOrder");function a(c){if(Array.isArray(c))for(let h of c){let f=r.fetchIfRef(h);if(!Array.isArray(f)||!f.length)continue;let u=new Set;for(let p of f)p instanceof nt&&e.has(p)&&!u.has(p.toString())&&(u.add(p.toString()),e.get(p).rbGroups.push(u))}}d(a,"parseRBGroups");let r=this.xref,o=new Me,l=10;return a(t.get("RBGroups")),{name:typeof t.get("Name")=="string"?Xt(t.get("Name")):null,creator:typeof t.get("Creator")=="string"?Xt(t.get("Creator")):null,baseState:t.get("BaseState")instanceof tt?t.get("BaseState").name:null,on:s(t.get("ON")),off:s(t.get("OFF")),order:i(t.get("Order")),groups:[...e]}}setActualNumPages(t=null){this.#t=t}get hasActualNumPages(){return this.#t!==null}get _pagesCount(){let t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t))throw new Q("Page count in top-level pages dictionary is not an integer.");return lt(this,"_pagesCount",t)}get numPages(){return this.#t??this._pagesCount}get destinations(){let t=this.#l(),e=Object.create(null);for(let s of t)if(s instanceof Qn)for(let[i,n]of s.getAll()){let a=_c(n);a&&(e[Xt(i,!0)]=a)}else if(s instanceof B)for(let[i,n]of s){let a=_c(n);a&&(e[Xt(i,!0)]||=a)}return lt(this,"destinations",e)}getDestination(t){if(this.hasOwnProperty("destinations"))return this.destinations[t]??null;let e=this.#l();for(let s of e)if(s instanceof Qn||s instanceof B){let i=_c(s.get(t));if(i)return i}if(e.length){let s=this.destinations[t];if(s)return s}return null}#l(){let t=this.#e.get("Names"),e=[];return t?.has("Dests")&&e.push(new Qn(t.getRaw("Dests"),this.xref)),this.#e.has("Dests")&&e.push(this.#e.get("Dests")),e}get rawPageLabels(){let t=this.#e.getRaw("PageLabels");return t?new Dr(t,this.xref).getAll():null}get pageLabels(){let t=null;try{t=this.#c()}catch(e){if(e instanceof Ce)throw e;T("Unable to read page labels.")}return lt(this,"pageLabels",t)}#c(){let t=this.rawPageLabels;if(!t)return null;let e=Array(this.numPages),s=null,i="",n="",a=1;for(let r=0,o=this.numPages;r<o;r++){let l=t.get(r);if(l!==void 0){if(!(l instanceof B))throw new Q("PageLabel is not a dictionary.");if(l.has("Type")&&!re(l.get("Type"),"PageLabel"))throw new Q("Invalid type in PageLabel dictionary.");if(l.has("S")){let c=l.get("S");if(!(c instanceof tt))throw new Q("Invalid style in PageLabel dictionary.");s=c.name}else s=null;if(l.has("P")){let c=l.get("P");if(typeof c!="string")throw new Q("Invalid prefix in PageLabel dictionary.");i=Xt(c)}else i="";if(l.has("St")){let c=l.get("St");if(!(Number.isInteger(c)&&c>=1))throw new Q("Invalid start in PageLabel dictionary.");a=c}else a=1}switch(s){case"D":n=a;break;case"R":case"r":n=bm(a,s==="r");break;case"A":case"a":let c=26,h=s==="a"?97:65,f=a-1;n=String.fromCharCode(h+f%c).repeat(Math.floor(f/c)+1);break;default:if(s)throw new Q(`Invalid style "${s}" in PageLabel dictionary.`);n=""}e[r]=i+n,a++}return e}get pageLayout(){let t=this.#e.get("PageLayout"),e="";if(t instanceof tt)switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":e=t.name}return lt(this,"pageLayout",e)}get pageMode(){let t=this.#e.get("PageMode"),e="UseNone";if(t instanceof tt)switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":e=t.name}return lt(this,"pageMode",e)}get viewerPreferences(){let t=this.#e.get("ViewerPreferences");if(!(t instanceof B))return lt(this,"viewerPreferences",null);let e=null;for(let[s,i]of t){let n;switch(s){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof i=="boolean"&&(n=i);break;case"NonFullScreenPageMode":if(i instanceof tt)switch(i.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":n=i.name;break;default:n="UseNone"}break;case"Direction":if(i instanceof tt)switch(i.name){case"L2R":case"R2L":n=i.name;break;default:n="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(i instanceof tt)switch(i.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":n=i.name;break;default:n="CropBox"}break;case"PrintScaling":if(i instanceof tt)switch(i.name){case"None":case"AppDefault":n=i.name;break;default:n="AppDefault"}break;case"Duplex":if(i instanceof tt)switch(i.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":n=i.name;break;default:n="None"}break;case"PrintPageRange":Array.isArray(i)&&i.length%2===0&&i.every((a,r,o)=>Number.isInteger(a)&&a>0&&(r===0||a>=o[r-1])&&a<=this.numPages)&&(n=i);break;case"NumCopies":Number.isInteger(i)&&i>0&&(n=i);break;default:T(`Ignoring non-standard key in ViewerPreferences: ${s}.`);continue}if(n===void 0){T(`Bad value, for key "${s}", in ViewerPreferences: ${i}.`);continue}e??=Object.create(null),e[s]=n}return lt(this,"viewerPreferences",e)}get openAction(){let t=this.#e.get("OpenAction"),e=Object.create(null);if(t instanceof B){let s=new B(this.xref);s.set("A",t);let i={url:null,dest:null,action:null};Ma.parseDestDictionary({destDict:s,resultObj:i}),Array.isArray(i.dest)?e.dest=i.dest:i.action&&(e.action=i.action)}else fh(t)&&(e.dest=t);return lt(this,"openAction",Oh(e)>0?e:null)}get attachments(){let t=this.#e.get("Names"),e=null;if(t instanceof B&&t.has("EmbeddedFiles")){let s=new Qn(t.getRaw("EmbeddedFiles"),this.xref);for(let[i,n]of s.getAll()){let a=new hh(n);e??=Object.create(null),e[Xt(i,!0)]=a.serializable}}return lt(this,"attachments",e)}get xfaImages(){let t=this.#e.get("Names"),e=null;if(t instanceof B&&t.has("XFAImages")){let s=new Qn(t.getRaw("XFAImages"),this.xref);for(let[i,n]of s.getAll())n instanceof Lt&&(e??=new Map,e.set(Xt(i,!0),n.getBytes()))}return lt(this,"xfaImages",e)}#u(){let t=this.#e.get("Names"),e=null;function s(n,a){if(!(a instanceof B)||!re(a.get("S"),"JavaScript"))return;let r=a.get("JS");if(r instanceof Lt)r=r.getString();else if(typeof r!="string")return;r=Xt(r,!0).replaceAll("\x00",""),r&&(e||=new Map).set(n,r)}if(d(s,"appendIfJavaScriptDict"),t instanceof B&&t.has("JavaScript")){let n=new Qn(t.getRaw("JavaScript"),this.xref);for(let[a,r]of n.getAll())s(Xt(a,!0),r)}let i=this.#e.get("OpenAction");return i&&s("OpenAction",i),e}get jsActions(){let t=this.#u(),e=kl(this.xref,this.#e,K7);if(t){e||=Object.create(null);for(let[s,i]of t)s in e?e[s].push(i):e[s]=[i]}return lt(this,"jsActions",e)}async cleanup(t=!1){Qh(),this.globalColorSpaceCache.clear(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear();for(let{dict:e}of await Promise.all(this.fontCache))delete e.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(t){let e=[this.toplevelPagesDict],s=new Me,i=this.#e.getRaw("Pages");i instanceof nt&&s.put(i);let n=this.xref,a=this.pageKidsCountCache,r=this.pageIndexCache,o=this.pageDictCache,l=0;for(;e.length;){let c=e.pop();if(c instanceof nt){let p=a.get(c);if(p>=0&&l+p<=t){l+=p;continue}if(s.has(c))throw new Q("Pages tree contains circular reference.");s.put(c);let m=await(o.get(c)||n.fetchAsync(c));if(m instanceof B){let g=m.getRaw("Type");if(g instanceof nt&&(g=await n.fetchAsync(g)),re(g,"Page")||!m.has("Kids")){if(a.has(c)||a.put(c,1),r.has(c)||r.put(c,l),l===t)return[m,c];l++;continue}}e.push(m);continue}if(!(c instanceof B))throw new Q("Page dictionary kid reference points to wrong type of object.");let{objId:h}=c,f=c.getRaw("Count");if(f instanceof nt&&(f=await n.fetchAsync(f)),Number.isInteger(f)&&f>=0&&(h&&!a.has(h)&&a.put(h,f),l+f<=t)){l+=f;continue}let u=c.getRaw("Kids");if(u instanceof nt&&(u=await n.fetchAsync(u)),!Array.isArray(u)){let p=c.getRaw("Type");if(p instanceof nt&&(p=await n.fetchAsync(p)),re(p,"Page")||!c.has("Kids")){if(l===t)return[c,null];l++;continue}throw new Q("Page dictionary kids object is not an array.")}for(let p=u.length-1;p>=0;p--){let m=u[p];e.push(m),c===this.toplevelPagesDict&&m instanceof nt&&!o.has(m)&&o.put(m,n.fetchAsync(m))}}throw Error(`Page index ${t} not found.`)}async getAllPageDicts(t=!1){let{ignoreErrors:e}=this.pdfManager.evaluatorOptions,s=[{currentNode:this.toplevelPagesDict,posInKids:0}],i=new Me,n=this.#e.getRaw("Pages");n instanceof nt&&i.put(n);let a=new Map,r=this.xref,o=this.pageIndexCache,l=0;function c(f,u){u&&!o.has(u)&&o.put(u,l),a.set(l++,[f,u])}d(c,"addPageDict");function h(f){if(f instanceof qn&&!t)throw f;t&&e&&l===0&&(T(`getAllPageDicts - Skipping invalid first page: "${f}".`),f=B.empty),a.set(l++,[f,null])}for(d(h,"addPageError");s.length>0;){let f=s.at(-1),{currentNode:u,posInKids:p}=f,m=u.getRaw("Kids");if(m instanceof nt)try{m=await r.fetchAsync(m)}catch(j){h(j);break}if(!Array.isArray(m)){h(new Q("Page dictionary kids object is not an array."));break}if(p>=m.length){s.pop();continue}let g=m[p],w;if(g instanceof nt){if(i.has(g)){h(new Q("Pages tree contains circular reference."));break}i.put(g);try{w=await r.fetchAsync(g)}catch(j){h(j);break}}else w=g;if(!(w instanceof B)){h(new Q("Page dictionary kid reference points to wrong type of object."));break}let b=w.getRaw("Type");if(b instanceof nt)try{b=await r.fetchAsync(b)}catch(j){h(j);break}re(b,"Page")||!w.has("Kids")?c(w,g instanceof nt?g:null):s.push({currentNode:w,posInKids:0}),f.posInKids++}return a}getPageIndex(t){let e=this.pageIndexCache.get(t);if(e!==void 0)return Promise.resolve(e);let s=this.xref;function i(r){let o=0,l;return s.fetchAsync(r).then(function(c){if(Ko(r,t)&&!S1(c,"Page")&&!(c instanceof B&&!c.has("Type")&&c.has("Contents")))throw new Q("The reference does not point to a /Page dictionary.");if(!c)return null;if(!(c instanceof B))throw new Q("Node must be a dictionary.");return l=c.getRaw("Parent"),c.getAsync("Parent")}).then(function(c){if(!c)return null;if(!(c instanceof B))throw new Q("Parent must be a dictionary.");return c.getAsync("Kids")}).then(function(c){if(!c)return null;let h=[],f=!1;for(let u of c){if(!(u instanceof nt))throw new Q("Kid must be a reference.");if(Ko(u,r)){f=!0;break}h.push(s.fetchAsync(u).then(function(p){if(!(p instanceof B))throw new Q("Kid node must be a dictionary.");p.has("Count")?o+=p.get("Count"):o++}))}if(!f)throw new Q("Kid reference not found in parent's kids.");return Promise.all(h).then(()=>[o,l])})}d(i,"pagesBeforeRef");let n=0,a=d((r)=>i(r).then((o)=>{if(!o)return this.pageIndexCache.put(t,n),n;let[l,c]=o;return n+=l,a(c)}),"next");return a(t)}get baseUrl(){let t=this.#e.get("URI");if(t instanceof B){let e=t.get("Base");if(typeof e=="string"){let s=Vo(e,null,{tryConvertEncoding:!0});if(s)return lt(this,"baseUrl",s.href)}}return lt(this,"baseUrl",this.pdfManager.docBaseUrl)}static#h(t,e){let s=t.fetchIfRef(e);if(!(s instanceof B))return null;let i=null,n=s.getRaw("Pg");if(n instanceof nt&&(i=n),!i){let l=[s];for(;l.length>0&&!i;){let c=l.shift().get("K"),h;if(Array.isArray(c))h=c;else if(c)h=[c];else continue;for(let f of h){let u=t.fetchIfRef(f);if(!(u instanceof B))continue;let p=u.getRaw("Pg");if(p instanceof nt){i=p;break}l.push(u)}}}if(!i){let l=s;for(let c=0;c<40;c++){let h=l.getRaw("P");if(!(h instanceof nt))break;let f=t.fetch(h);if(!(f instanceof B)||re(f.get("Type"),"StructTreeRoot"))break;let u=f.getRaw("Pg");if(u instanceof nt){i=u;break}l=f}}if(!i)return null;let a=null,r=null,o=s.get("A");if(o instanceof B){let l=Yo(o.getArray("BBox"),null);l&&(a=l[0],r=l[3])}return[i,{name:"XYZ"},a,r,null]}static parseDestDictionary({destDict:t,resultObj:e,docBaseUrl:s=null,docAttachments:i=null}){if(!(t instanceof B)){T("parseDestDictionary: `destDict` must be a dictionary.");return}let n=t.get("A"),a,r;if(n instanceof B||(t.has("Dest")?n=t.get("Dest"):(n=t.get("AA"),n instanceof B&&(n.has("D")?n=n.get("D"):n.has("U")&&(n=n.get("U"))))),n instanceof B){let o=n.get("S");if(!(o instanceof tt)){T("parseDestDictionary: Invalid type in Action dictionary.");return}let l=o.name;switch(l){case"ResetForm":let c=n.get("Flags"),h=((typeof c=="number"?c:0)&1)===0,f=[],u=[];for(let I of n.get("Fields")||[])I instanceof nt?u.push(I.toString()):typeof I=="string"&&f.push(Xt(I));e.resetForm={fields:f,refs:u,include:h};break;case"URI":a=n.get("URI"),a instanceof tt&&(a="/"+a.name);break;case"GoTo":r=n.get("D");break;case"Launch":case"GoToR":let p=n.get("F");if(p instanceof B)({rawFilename:a}=new hh(p,!0).serializable);else if(typeof p=="string")a=p;else break;let m=$u(n);m&&(a=a.split("#",1)[0]+"#"+m);let g=n.get("NewWindow");typeof g=="boolean"&&(e.newWindow=g);break;case"GoToE":let w=n.get("T"),b;if(i&&w instanceof B){let I=w.get("R"),E=w.get("N");re(I,"C")&&typeof E=="string"&&(b=i[Xt(E,!0)])}if(b){e.attachment=b;let I=$u(n);I&&(e.attachmentDest=I)}else T('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":let j=n.get("N");j instanceof tt&&(e.action=j.name);break;case"SetOCGState":let v=n.get("State"),q=n.get("PreserveRB");if(!Array.isArray(v)||v.length===0)break;let x=[];for(let I of v)if(I instanceof tt)switch(I.name){case"ON":case"OFF":case"Toggle":x.push(I.name);break}else I instanceof nt&&x.push(I.toString());if(x.length!==v.length)break;e.setOCGState={state:x,preserveRB:typeof q=="boolean"?q:!0};break;case"JavaScript":let k=n.get("JS"),A;k instanceof Lt?A=k.getString():typeof k=="string"&&(A=k);let S=A&&T1(Xt(A,!0));if(S){a=S.url,e.newWindow=S.newWindow;break}default:if(l==="JavaScript"||l==="SubmitForm")break;T(`parseDestDictionary - unsupported action: "${l}".`);break}}else t.has("Dest")&&(r=t.get("Dest"));if(typeof a=="string"){let o=Vo(a,s,{addDefaultProtocol:!0,tryConvertEncoding:!0});o&&(e.url=o.href),e.unsafeUrl=a}if(r&&(r instanceof tt&&(r=r.name),typeof r=="string"?e.dest=Xt(r,!0):fh(r)&&(e.dest=r)),!e.dest&&!e.url&&!e.action&&!e.attachment&&!e.setOCGState&&!e.resetForm){let o=t.getRaw("SE");if(o instanceof nt)try{let l=Ma.#h(t.xref,o);l&&(e.dest=l)}catch(l){if(l instanceof Ce)throw l;Wt("SE parsing failed.")}}}};d(c2,"mayHaveChildren");d(h2,"addChildren");Rr=class Rr{static{d(this,"ObjectLoader")}refSet=new Me;constructor(t,e,s){this.dict=t,this.keys=e,this.xref=s}async load(){let{keys:t,dict:e}=this,s=[];for(let i of t){let n=e.getRaw(i);n!==void 0&&s.push(n)}await this.#t(s),this.refSet=null}async#t(t){let e=[],s=[];for(;t.length;){let i=t.pop();if(i instanceof nt){if(this.refSet.has(i))continue;try{this.refSet.put(i),i=this.xref.fetch(i)}catch(n){if(!(n instanceof Ce)){T(`ObjectLoader.#walk - requesting all data: "${n}".`),await this.xref.stream.manager.requestAllChunks();return}e.push(i),s.push({begin:n.begin,end:n.end})}}if(i instanceof Lt){let n=i.getBaseStreams();if(n){let a=!1;for(let r of n)r.isDataLoaded||(a=!0,s.push({begin:r.start,end:r.end}));a&&e.push(i)}}h2(i,t)}if(s.length){await this.xref.stream.manager.requestRanges(s);for(let i of e)i instanceof nt&&this.refSet.remove(i);await this.#t(e)}}static async load(t,e,s){if(s.stream.isDataLoaded)return;await new Rr(t,e,s).load()}};Jh=Symbol(),Ba=Symbol(),_e=Symbol(),fa=Symbol(),Fi=Symbol(),br=Symbol(),Oc=Symbol(),zi=Symbol(),sn=Symbol(),Z=Symbol("content"),Ti=Symbol("data"),Hr=Symbol(),K=Symbol("extra"),ke=Symbol(),Tl=Symbol(),Vu=Symbol(),f2=Symbol(),Pa=Symbol(),Zh=Symbol(),cl=Symbol(),_o=Symbol(),bd=Symbol(),Es=Symbol(),Oo=Symbol(),ys=Symbol(),_r=Symbol(),yn=Symbol(),Ve=Symbol(),zt=Symbol(),Ge=Symbol(),ve=Symbol(),hl=Symbol(),or=Symbol(),Wu=Symbol(),Nc=Symbol(),wd=Symbol(),Ua=Symbol(),wr=Symbol(),Jn=Symbol(),No=Symbol(),Mn=Symbol(),Hn=Symbol(),fl=Symbol(),ul=Symbol(),Mj=Symbol(),$e=Symbol("namespaceId"),fe=Symbol("nodeName"),Ca=Symbol(),rn=Symbol(),Ku=Symbol(),Bn=Symbol(),cn=Symbol(),ni=Symbol(),Gr=Symbol(),na=Symbol(),u2=Symbol("root"),Ao=Symbol(),In=Symbol(),Yu=Symbol(),d2=Symbol(),ri=Symbol(),Li=Symbol(),ls=Symbol(),p2=Symbol(),Dt=Symbol(),Lo=Symbol(),ce=Symbol(),ye=Symbol("uid"),Yi=Symbol(),We={config:{id:0,check:d((t)=>t.startsWith("http://www.xfa.org/schema/xci/"),"check")},connectionSet:{id:1,check:d((t)=>t.startsWith("http://www.xfa.org/schema/xfa-connection-set/"),"check")},datasets:{id:2,check:d((t)=>t.startsWith("http://www.xfa.org/schema/xfa-data/"),"check")},form:{id:3,check:d((t)=>t.startsWith("http://www.xfa.org/schema/xfa-form/"),"check")},localeSet:{id:4,check:d((t)=>t.startsWith("http://www.xfa.org/schema/xfa-locale-set/"),"check")},pdf:{id:5,check:d((t)=>t==="http://ns.adobe.com/xdp/pdf/","check")},signature:{id:6,check:d((t)=>t==="http://www.w3.org/2000/09/xmldsig#","check")},sourceSet:{id:7,check:d((t)=>t.startsWith("http://www.xfa.org/schema/xfa-source-set/"),"check")},stylesheet:{id:8,check:d((t)=>t==="http://www.w3.org/1999/XSL/Transform","check")},template:{id:9,check:d((t)=>t.startsWith("http://www.xfa.org/schema/xfa-template/"),"check")},xdc:{id:10,check:d((t)=>t.startsWith("http://www.xfa.org/schema/xdc/"),"check")},xdp:{id:11,check:d((t)=>t==="http://ns.adobe.com/xdp/","check")},xfdf:{id:12,check:d((t)=>t==="http://ns.adobe.com/xfdf/","check")},xhtml:{id:13,check:d((t)=>t==="http://www.w3.org/1999/xhtml","check")},xmpmeta:{id:14,check:d((t)=>t==="http://ns.adobe.com/xmpmeta/","check")}},Bj={pt:d((t)=>t,"pt"),cm:d((t)=>t/2.54*72,"cm"),mm:d((t)=>t/25.4*72,"mm"),in:d((t)=>t*72,"in"),px:d((t)=>t,"px")},Pj=/([+-]?\d+\.?\d*)(.*)/;d(Fl,"stripQuotes");d(Ot,"getInteger");d(dl,"getFloat");d(El,"getKeyword");d(et,"getStringOption");d(vt,"getMeasurement");d(Xu,"getRatio");d(Ei,"getRelevant");d(m2,"getColor");d(g2,"getBBox");Tt=class Tt{static{d(this,"HTMLResult")}static get FAILURE(){return lt(this,"FAILURE",new Tt(!1,null,null,null))}static get EMPTY(){return lt(this,"EMPTY",new Tt(!0,null,null,null))}constructor(t,e,s,i){this.success=t,this.html=e,this.bbox=s,this.breakNode=i}isBreak(){return!!this.breakNode}static breakNode(t){return new Tt(!1,null,null,t)}static success(t,e=null){return new Tt(!0,t,e,null)}};b2=class b2{static{d(this,"FontFinder")}constructor(t){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}add(t,e=null){for(let i of t)this.addPdfFont(i);for(let i of this.fonts.values())i.regular||(i.regular=i.italic||i.bold||i.bolditalic);if(!e||e.size===0)return;let s=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(let i of e)this.fonts.set(i,s)}addPdfFont(t){let e=t.cssFontInfo,s=e.fontFamily,i=this.fonts.getOrInsertComputed(s,Z7);this.defaultFont??=i;let n="",a=parseFloat(e.fontWeight);parseFloat(e.italicAngle)!==0?n=a>=700?"bolditalic":"italic":a>=700&&(n="bold"),n||((t.name.includes("Bold")||t.psName?.includes("Bold"))&&(n="bold"),(t.name.includes("Italic")||t.name.endsWith("It")||t.psName?.includes("Italic")||t.psName?.endsWith("It"))&&(n+="italic")),n||(n="regular"),i[n]=t}getDefault(){return this.defaultFont}find(t,e=!0){let s=this.fonts.get(t)||this.cache.get(t);if(s)return s;let i=/,|-|_| |bolditalic|bold|italic|regular|it/gi,n=t.replaceAll(i,"");if(s=this.fonts.get(n),s)return this.cache.set(t,s),s;n=n.toLowerCase();let a=[];for(let[r,o]of this.fonts)r.replaceAll(i,"").toLowerCase().startsWith(n)&&a.push(o);if(a.length===0)for(let r of this.fonts.values())r.regular.name?.replaceAll(i,"").toLowerCase().startsWith(n)&&a.push(r);if(a.length===0){n=n.replaceAll(/psmt|mt/gi,"");for(let[r,o]of this.fonts)r.replaceAll(i,"").toLowerCase().startsWith(n)&&a.push(o)}if(a.length===0)for(let r of this.fonts.values())r.regular.name?.replaceAll(i,"").toLowerCase().startsWith(n)&&a.push(r);return a.length>=1?(a.length!==1&&e&&T(`XFA - Too many choices to guess the correct font: ${t}`),this.cache.set(t,a[0]),a[0]):(e&&!this.warned.has(t)&&(this.warned.add(t),T(`XFA - Cannot find the font: ${t}`)),null)}};d(tf,"selectFont");d(w2,"fonts_getMetrics");Ip=class{static{d(this,"FontInfo")}constructor(t,e,s,i){if(this.lineHeight=s,this.paraMargin=e||{top:0,bottom:0,left:0,right:0},!t){[this.pdfFont,this.xfaFont]=this.defaultFont(i);return}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};let n=i.find(t.typeface);if(!n){[this.pdfFont,this.xfaFont]=this.defaultFont(i);return}this.pdfFont=tf(t,n),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(i))}defaultFont(t){let e=t.find("Helvetica",!1)||t.find("Myriad Pro",!1)||t.find("Arial",!1)||t.getDefault();if(e?.regular){let s=e.regular,i={typeface:s.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[s,i]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}};y2=class y2{static{d(this,"FontSelector")}constructor(t,e,s,i){this.fontFinder=i,this.stack=[new Ip(t,e,s,i)]}pushData(t,e,s){let i=this.stack.at(-1);for(let a of["typeface","posture","weight","size","letterSpacing"])t[a]||=i.xfaFont[a];for(let a of["top","bottom","left","right"])isNaN(e[a])&&(e[a]=i.paraMargin[a]);let n=new Ip(t,e,s||i.lineHeight,this.fontFinder);n.pdfFont||=i.pdfFont,this.stack.push(n)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}};j2=class j2{static{d(this,"TextMeasure")}constructor(t,e,s,i){this.glyphs=[],this.fontSelector=new y2(t,e,s,i),this.extraHeight=0}pushData(t,e,s){this.fontSelector.pushData(t,e,s)}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 e=this.fontSelector.topFont(),s=e.xfaFont.size;if(e.pdfFont){let i=e.xfaFont.letterSpacing,n=e.pdfFont,a=n.lineHeight||1.2,r=e.lineHeight||Math.max(1.2,a)*s,o=n.lineGap===void 0?0.2:n.lineGap,l=a-o,c=Math.max(1,l)*s,h=s/1000,f=n.defaultWidth||n.charsToGlyphs(" ")[0].width;for(let u of t.split(/[\u2029\n]/)){let p=n.encodeString(u).join(""),m=n.charsToGlyphs(p);for(let g of m){let w=g.width||f;this.glyphs.push([w*h+i,r,c,g.unicode,!1])}this.glyphs.push([0,0,0,`
72
+ `,!0])}this.glyphs.pop();return}for(let i of t.split(/[\u2029\n]/)){for(let n of i.split(""))this.glyphs.push([s,1.2*s,s,n,!1]);this.glyphs.push([0,0,0,`
73
+ `,!0])}this.glyphs.pop()}compute(t){let e=-1,s=0,i=0,n=0,a=0,r=0,o=!1,l=!0;for(let c=0,h=this.glyphs.length;c<h;c++){let[f,u,p,m,g]=this.glyphs[c],w=m===" ",b=l?p:u;if(g){i=Math.max(i,a),a=0,n+=r,r=b,e=-1,s=0,l=!1;continue}if(w){a+f>t?(i=Math.max(i,a),a=0,n+=r,r=b,e=-1,s=0,o=!0,l=!1):(r=Math.max(b,r),s=a,a+=f,e=c);continue}if(a+f>t){n+=r,r=b,e!==-1?(c=e,i=Math.max(i,s),a=0,e=-1,s=0):(i=Math.max(i,a),a=f),o=!0,l=!1;continue}a+=f,r=Math.max(b,r)}return i=Math.max(i,a),n+=r+this.extraHeight,{width:Dj*i,height:n,isBroken:o}}};Tp=/^[^.[]+/,Rj=/^[^\]]+/,yi={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},v2=new Map([["$data",(t,e)=>t.datasets?t.datasets.data:t],["$record",(t,e)=>(t.datasets?t.datasets.data:t)[ys]()[0]],["$template",(t,e)=>t.template],["$connectionSet",(t,e)=>t.connectionSet],["$form",(t,e)=>t.form],["$layout",(t,e)=>t.layout],["$host",(t,e)=>t.host],["$dataWindow",(t,e)=>t.dataWindow],["$event",(t,e)=>t.event],["!",(t,e)=>t.datasets],["$xfa",(t,e)=>t],["xfa",(t,e)=>t],["$",(t,e)=>e]]),Hj=new WeakMap;d(k2,"parseIndex");d(yd,"parseExpression");d(jn,"searchNode");d(q2,"createDataNode");wc=Symbol(),ba=Symbol(),er=Symbol(),Kt=Symbol("_children"),Uf=Symbol(),$n=Symbol(),Gf=Symbol(),Fp=Symbol(),$f=Symbol(),Ep=Symbol(),Vf=Symbol(),So=Symbol(),yc=Symbol(),Ai=Symbol("parent"),mo=Symbol(),go=Symbol(),Wf=Symbol(),x2=We.datasets.id;Y=class Y{static{d(this,"XFAObject")}constructor(t,e,s=!1){this[$e]=t,this[fe]=e,this[Vf]=s,this[Ai]=null,this[Kt]=[],this[ye]=`${e}${Qu++}`,this[ve]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(t){let e=this,s=null;for(let{name:i,index:n}of t){for(let a=0,r=isFinite(n)?n:0;a<=r;a++){let o=e[$e]===x2?-1:e[$e];s=new on(o,i),e[_e](s)}e=s}return s}[rn](t){if(!this[Vf]||!this[Ku](t))return!1;let e=t[fe],s=this[e];if(s instanceof F){if(s.push(t))return this[_e](t),!0}else return s!==null&&this[na](s),this[e]=t,this[_e](t),!0;let i="";return this.id?i=` (id: ${this.id})`:this.name&&(i=` (name: ${this.name} ${this.h.value})`),T(`XFA - node "${this[fe]}"${i} has already enough "${e}"!`),!1}[Ku](t){return this.hasOwnProperty(t[fe])&&t[$e]===this[$e]}[No](){return!1}[Jh](){return!1}[wd](){return!1}[Ua](){return!1}[ni](){this.para&&this[Ge]()[K].paraStack.pop()}[Gr](){this[Ge]()[K].paraStack.push(this.para)}[Yu](t){this.id&&this[$e]===We.template.id&&t.set(this.id,this)}[Ge](){return this[ve].template}[Mn](){return!1}[Hn](){return!1}[_e](t){t[Ai]=this,this[Kt].push(t),!t[ve]&&this[ve]&&(t[ve]=this[ve])}[na](t){let e=this[Kt].indexOf(t);this[Kt].splice(e,1)}[hl](){return this.hasOwnProperty("value")}[ri](t){}[Bn](t){}[ke](){}[Fi](t){delete this[Vf],this[Oc]&&(t.clean(this[Oc]),delete this[Oc])}[Wu](t){return this[Kt].indexOf(t)}[Nc](t,e){e[Ai]=this,this[Kt].splice(t,0,e),!e[ve]&&this[ve]&&(e[ve]=this[ve])}[fl](){return!this.name}[Mj](){return""}[ls](){return this[Kt].length===0?this[Z]:this[Kt].map((t)=>t[ls]()).join("")}get[er](){let t=Object.getPrototypeOf(this);if(!t._attributes){let e=t._attributes=new Set;for(let s of Object.getOwnPropertyNames(this)){if(this[s]===null||this[s]instanceof Y||this[s]instanceof F)break;e.add(s)}}return lt(this,er,t._attributes)}[Jn](t){let e=this;for(;e;){if(e===t)return!0;e=e[zt]()}return!1}[zt](){return this[Ai]}[Ve](){return this[zt]()}[ys](t=null){return t?this[t]:this[Kt]}[Hr](){let t=Object.create(null);this[Z]&&(t.$content=this[Z]);for(let e of Object.getOwnPropertyNames(this)){let s=this[e];s!==null&&(s instanceof Y?t[e]=s[Hr]():s instanceof F?s.isEmpty()||(t[e]=s.dump()):t[e]=s)}return t}[ce](){return null}[Dt](){return Tt.EMPTY}*[_r](){for(let t of this[ys]())yield t}*[Fp](t,e){for(let s of this[_r]())if(!t||e===t.has(s[fe])){let i=this[Pa](),n=s[Dt](i);n.success||(this[K].failingNode=s),yield n}}[Tl](){return null}[Ba](t,e){this[K].children.push(t)}[Pa](){}[fa]({filter:t=null,include:e=!0}){if(!this[K].generator)this[K].generator=this[Fp](t,e);else{let s=this[Pa](),i=this[K].failingNode[Dt](s);if(!i.success)return i;i.html&&this[Ba](i.html,i.bbox),delete this[K].failingNode}for(;;){let s=this[K].generator.next();if(s.done)break;let i=s.value;if(!i.success)return i;i.html&&this[Ba](i.html,i.bbox)}return this[K].generator=null,Tt.EMPTY}[d2](t){this[go]=new Set(Object.keys(t))}[Ep](t){let e=this[er],s=this[go];return[...t].filter((i)=>e.has(i)&&!s.has(i))}[Ao](t,e=new Set){for(let s of this[Kt])s[mo](t,e)}[mo](t,e){let s=this[$f](t,e);s?this[wc](s,t,e):this[Ao](t,e)}[$f](t,e){let{use:s,usehref:i}=this;if(!s&&!i)return null;let n=null,a=null,r=null,o=s;if(i?(o=i,i.startsWith("#som(")&&i.endsWith(")")?a=i.slice(5,-1):i.startsWith(".#som(")&&i.endsWith(")")?a=i.slice(6,-1):i.startsWith("#")?r=i.slice(1):i.startsWith(".#")&&(r=i.slice(2))):s.startsWith("#")?r=s.slice(1):a=s,this.use=this.usehref="",r?n=t.get(r):(n=jn(t.get(u2),this,a,!0,!1),n&&(n=n[0])),!n)return T(`XFA - Invalid prototype reference: ${o}.`),null;if(n[fe]!==this[fe])return T(`XFA - Incompatible prototype: ${n[fe]} !== ${this[fe]}.`),null;if(e.has(n))return T("XFA - Cycle detected in prototypes use."),null;e.add(n);let l=n[$f](t,e);return l&&n[wc](l,t,e),n[Ao](t,e),e.delete(n),n}[wc](t,e,s){if(s.has(t)){T("XFA - Cycle detected in prototypes use.");return}!this[Z]&&t[Z]&&(this[Z]=t[Z]),new Set(s).add(t);for(let i of this[Ep](t[go]))this[i]=t[i],this[go]&&this[go].add(i);for(let i of Object.getOwnPropertyNames(this)){if(this[er].has(i))continue;let n=this[i],a=t[i];if(n instanceof F){for(let r of n[Kt])r[mo](e,s);for(let r=n[Kt].length,o=a[Kt].length;r<o;r++){let l=t[Kt][r][zi]();if(n.push(l))l[Ai]=this,this[Kt].push(l),l[mo](e,s);else break}continue}if(n!==null){n[Ao](e,s),a&&n[wc](a,e,s);continue}if(a!==null){let r=a[zi]();r[Ai]=this,this[i]=r,this[Kt].push(r),r[mo](e,s)}}}static[Uf](t){return Array.isArray(t)?t.map((e)=>Y[Uf](e)):typeof t=="object"&&t!==null?Object.assign({},t):t}[zi](){let t=Object.create(Object.getPrototypeOf(this));for(let e of Object.getOwnPropertySymbols(this))try{t[e]=this[e]}catch{lt(t,e,this[e])}t[ye]=`${t[fe]}${Qu++}`,t[Kt]=[];for(let e of Object.getOwnPropertyNames(this)){if(this[er].has(e)){t[e]=Y[Uf](this[e]);continue}let s=this[e];t[e]=s instanceof F?new F(s[So]):null}for(let e of this[Kt]){let s=e[fe],i=e[zi]();t[Kt].push(i),i[Ai]=t,t[s]===null?t[s]=i:t[s][Kt].push(i)}return t}[ys](t=null){return t?this[Kt].filter((e)=>e[fe]===t):this[Kt]}[Zh](t){return this[t]}[cl](t,e,s=!0){return Array.from(this[_o](t,e,s))}*[_o](t,e,s=!0){if(t==="parent"){yield this[Ai];return}for(let i of this[Kt])i[fe]===t&&(yield i),i.name===t&&(yield i),(e||i[fl]())&&(yield*i[_o](t,e,!1));s&&this[er].has(t)&&(yield new ef(this,t,this[t]))}};F=class F{static{d(this,"XFAObjectArray")}constructor(t=1/0){this[So]=t,this[Kt]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(t){return this[Kt].length<=this[So]?(this[Kt].push(t),!0):(T(`XFA - node "${t[fe]}" accepts no more than ${this[So]} children`),!1)}isEmpty(){return this[Kt].length===0}dump(){return this[Kt].length===1?this[Kt][0][Hr]():this[Kt].map((t)=>t[Hr]())}[zi](){let t=new F(this[So]);return t[Kt]=this[Kt].map((e)=>e[zi]()),t}get children(){return this[Kt]}clear(){this[Kt].length=0}};ef=class ef{static{d(this,"XFAAttribute")}constructor(t,e,s){this[Ai]=t,this[fe]=e,this[Z]=s,this[sn]=!1,this[ye]=`attribute${Qu++}`}[zt](){return this[Ai]}[wr](){return!0}[bd](){return this[Z].trim()}[ri](t){t=t.value||"",this[Z]=t.toString()}[ls](){return this[Z]}[Jn](t){return this[Ai]===t||this[Ai][Jn](t)}};on=class on extends Y{static{d(this,"XmlObject")}constructor(t,e,s={}){if(super(t,e),this[Z]="",this[$n]=null,e!=="#text"){let i=new Map;this[ba]=i;for(let[n,a]of Object.entries(s))i.set(n,new ef(this,n,a));if(s.hasOwnProperty(Ca)){let n=s[Ca].xfa.dataNode;n!==void 0&&(n==="dataGroup"?this[$n]=!1:n==="dataValue"&&(this[$n]=!0))}}this[sn]=!1}[Lo](t){let e=this[fe];if(e==="#text"){t.push(Ea(this[Z]));return}let s=Xc(e),i=this[$e]===x2?"xfa:":"";t.push(`<${i}${s}`);for(let[n,a]of this[ba]){let r=Xc(n);t.push(` ${r}="${Ea(a[Z])}"`)}if(this[$n]!==null&&(this[$n]?t.push(' xfa:dataNode="dataValue"'):t.push(' xfa:dataNode="dataGroup"')),!this[Z]&&this[Kt].length===0){t.push("/>");return}if(t.push(">"),this[Z])typeof this[Z]=="string"?t.push(Ea(this[Z])):this[Z][Lo](t);else for(let n of this[Kt])n[Lo](t);t.push(`</${i}${s}>`)}[rn](t){if(this[Z]){let e=new on(this[$e],"#text");this[_e](e),e[Z]=this[Z],this[Z]=""}return this[_e](t),!0}[Bn](t){this[Z]+=t}[ke](){if(this[Z]&&this[Kt].length>0){let t=new on(this[$e],"#text");this[_e](t),t[Z]=this[Z],delete this[Z]}}[Dt](){return this[fe]==="#text"?Tt.success({name:"#text",value:this[Z]}):Tt.EMPTY}[ys](t=null){return t?this[Kt].filter((e)=>e[fe]===t):this[Kt]}[f2](){return this[ba]}[Zh](t){let e=this[ba].get(t);return e!==void 0?e:this[ys](t)}*[_o](t,e){let s=this[ba].get(t);s&&(yield s);for(let i of this[Kt])i[fe]===t&&(yield i),e&&(yield*i[_o](t,e))}*[Vu](t,e){let s=this[ba].get(t);s&&(!e||!s[sn])&&(yield s);for(let i of this[Kt])yield*i[Vu](t,e)}*[Oo](t,e,s){for(let i of this[Kt])i[fe]===t&&(!s||!i[sn])&&(yield i),e&&(yield*i[Oo](t,e,s))}[wr](){return this[$n]===null?this[Kt].length===0||this[Kt][0][$e]===We.xhtml.id:this[$n]}[bd](){return this[$n]===null?this[Kt].length===0?this[Z].trim():this[Kt][0][$e]===We.xhtml.id?this[Kt][0][ls]().trim():null:this[Z].trim()}[ri](t){t=t.value||"",this[Z]=t.toString()}[Hr](t=!1){let e=Object.create(null);t&&(e.$ns=this[$e]),this[Z]&&(e.$content=this[Z]),e.$name=this[fe],e.children=[];for(let s of this[Kt])e.children.push(s[Hr](t));e.attributes=Object.create(null);for(let[s,i]of this[ba])e.attributes[s]=i[Z];return e}};De=class De extends Y{static{d(this,"ContentObject")}constructor(t,e){super(t,e),this[Z]=""}[Bn](t){this[Z]+=t}[ke](){}};be=class be extends De{static{d(this,"OptionObject")}constructor(t,e,s){super(t,e),this[yc]=s}[ke](){this[Z]=El({data:this[Z],defaultValue:this[yc][0],validate:d((t)=>this[yc].includes(t),"validate")})}[Fi](t){super[Fi](t),delete this[yc]}};Qt=class Qt extends De{static{d(this,"StringObject")}[ke](){this[Z]=this[Z].trim()}};Mi=class Mi extends De{static{d(this,"IntegerObject")}constructor(t,e,s,i){super(t,e),this[Gf]=s,this[Wf]=i}[ke](){this[Z]=Ot({data:this[Z],defaultValue:this[Gf],validate:this[Wf]})}[Fi](t){super[Fi](t),delete this[Gf],delete this[Wf]}};ss=class ss extends Mi{static{d(this,"Option01")}constructor(t,e){super(t,e,0,(s)=>s===1)}};jd=class jd extends Mi{static{d(this,"Option10")}constructor(t,e){super(t,e,1,(s)=>s===0)}};d(_t,"measureToString");Mp={anchorType(t,e){let s=t[Ve]();if(!(!s||s.layout&&s.layout!=="position"))switch("transform"in e||(e.transform=""),t.anchorType){case"bottomCenter":e.transform+="translate(-50%, -100%)";break;case"bottomLeft":e.transform+="translate(0,-100%)";break;case"bottomRight":e.transform+="translate(-100%,-100%)";break;case"middleCenter":e.transform+="translate(-50%,-50%)";break;case"middleLeft":e.transform+="translate(0,-50%)";break;case"middleRight":e.transform+="translate(-100%,-50%)";break;case"topCenter":e.transform+="translate(-50%,0)";break;case"topRight":e.transform+="translate(-100%,0)";break}},dimensions(t,e){let s=t[Ve](),i=t.w,n=t.h;if(s.layout?.includes("row")){let a=s[K],r=t.colSpan,o;r===-1?(o=Math.sumPrecise(a.columnWidths.slice(a.currentColumn)),a.currentColumn=0):(o=Math.sumPrecise(a.columnWidths.slice(a.currentColumn,a.currentColumn+r)),a.currentColumn=(a.currentColumn+t.colSpan)%a.columnWidths.length),isNaN(o)||(i=t.w=o)}e.width=i!==""?_t(i):"auto",e.height=n!==""?_t(n):"auto"},position(t,e){let s=t[Ve]();s?.layout&&s.layout!=="position"||(e.position="absolute",e.left=_t(t.x),e.top=_t(t.y))},rotate(t,e){t.rotate&&(("transform"in e)||(e.transform=""),e.transform+=`rotate(-${t.rotate}deg)`,e.transformOrigin="top left")},presence(t,e){switch(t.presence){case"invisible":e.visibility="hidden";break;case"hidden":case"inactive":e.display="none";break}},hAlign(t,e){if(t[fe]==="para")switch(t.hAlign){case"justifyAll":e.textAlign="justify-all";break;case"radix":e.textAlign="left";break;default:e.textAlign=t.hAlign}else switch(t.hAlign){case"left":e.alignSelf="start";break;case"center":e.alignSelf="center";break;case"right":e.alignSelf="end";break}},margin(t,e){t.margin&&(e.margin=t.margin[ce]().margin)}};d(vd,"setMinMaxDimensions");d(Ju,"layoutText");d(sf,"layoutNode");d(kd,"computeBbox");d(Ml,"fixDimensions");d(qd,"layoutClass");d(Os,"toStyle");d(la,"createWrapper");d(xd,"fixTextIndent");d(nf,"setAccess");d(Ga,"isPrintOnly");d(Ad,"getCurrentPara");d(Sd,"setPara");d(Cd,"setFontFamily");d(Id,"fixURL");d(Td,"createLine");d(Fd,"flushHTML");d(Ed,"addHTML");d(Md,"getAvailableSpace");d(A2,"getTransformedBBox");d(Bl,"checkDimensions");ht=We.template.id,Nj=/^H(\d+)$/,Lj=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"]),zj=[[[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"]];d(Zu,"getBorderDims");d(af,"hasMargin");d(rf,"_setValue");d(of,"getContainedChildren");d($r,"isRequired");d(Pl,"setTabIndex");d(Dl,"applyAssist");d(ua,"ariaLabel");d(Nn,"valueToHtml");d(Rl,"setFirstUnsplittable");d(Hl,"unsetFirstUnsplittable");d(t1,"handleBreak");d(e1,"handleOverflow");S2=class S2 extends Qt{static{d(this,"AppearanceFilter")}constructor(t){super(ht,"appearanceFilter"),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}};Bd=class Bd extends Y{static{d(this,"Arc")}constructor(t){super(ht,"arc",!0),this.circular=Ot({data:t.circular,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.hand=et(t.hand,["even","left","right"]),this.id=t.id||"",this.startAngle=dl({data:t.startAngle,defaultValue:0,validate:d((e)=>!0,"validate")}),this.sweepAngle=dl({data:t.sweepAngle,defaultValue:360,validate:d((e)=>!0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null,this.fill=null}[Dt](){let t=this.edge||new Vr({}),e=t[ce](),s=Object.create(null);this.fill?.presence==="visible"?Object.assign(s,this.fill[ce]()):s.fill="transparent",s.strokeWidth=_t(t.presence==="visible"?t.thickness:0),s.stroke=e.color;let i,n={xmlns:Da,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)i={name:"ellipse",attributes:{xmlns:Da,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:s}};else{let o=this.startAngle*Math.PI/180,l=this.sweepAngle*Math.PI/180,c=this.sweepAngle>180?1:0,[h,f,u,p]=[50*(1+Math.cos(o)),50*(1-Math.sin(o)),50*(1+Math.cos(o+l)),50*(1-Math.sin(o+l))];i={name:"path",attributes:{xmlns:Da,d:`M ${h} ${f} A 50 50 0 ${c} 0 ${u} ${p}`,vectorEffect:"non-scaling-stroke",style:s}},Object.assign(n,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}let a={name:"svg",children:[i],attributes:n},r=this[zt]()[zt]();return af(r)?Tt.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[a]}):(a.attributes.style.position="absolute",Tt.success(a))}};C2=class C2 extends Y{static{d(this,"Area")}constructor(t){super(ht,"area",!0),this.colSpan=Ot({data:t.colSpan,defaultValue:1,validate:d((e)=>e>=1||e===-1,"validate")}),this.id=t.id||"",this.name=t.name||"",this.relevant=Ei(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.x=vt(t.x,"0pt"),this.y=vt(t.y,"0pt"),this.desc=null,this.extras=null,this.area=new F,this.draw=new F,this.exObject=new F,this.exclGroup=new F,this.field=new F,this.subform=new F,this.subformSet=new F}*[_r](){yield*of(this)}[fl](){return!0}[Ua](){return!0}[Ba](t,e){let[s,i,n,a]=e;this[K].width=Math.max(this[K].width,s+n),this[K].height=Math.max(this[K].height,i+a),this[K].children.push(t)}[Pa](){return this[K].availableSpace}[Dt](t){let e=Os(this,"position"),s={style:e,id:this[ye],class:["xfaArea"]};Ga(this)&&s.class.push("xfaPrintOnly"),this.name&&(s.xfaName=this.name);let i=[];this[K]={children:i,width:0,height:0,availableSpace:t};let n=this[fa]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!n.success)return n.isBreak()?n:(delete this[K],Tt.FAILURE);e.width=_t(this[K].width),e.height=_t(this[K].height);let a={name:"div",attributes:s,children:i},r=[this.x,this.y,this[K].width,this[K].height];return delete this[K],Tt.success(a,r)}};I2=class I2 extends Y{static{d(this,"Assist")}constructor(t){super(ht,"assist",!0),this.id=t.id||"",this.role=t.role||"",this.use=t.use||"",this.usehref=t.usehref||"",this.speak=null,this.toolTip=null}[Dt](){return this.toolTip?.[Z]||null}};T2=class T2 extends Y{static{d(this,"Barcode")}constructor(t){super(ht,"barcode",!0),this.charEncoding=El({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:d((e)=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/),"validate")}),this.checksum=et(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=Ot({data:t.dataColumnCount,defaultValue:-1,validate:d((e)=>e>=0,"validate")}),this.dataLength=Ot({data:t.dataLength,defaultValue:-1,validate:d((e)=>e>=0,"validate")}),this.dataPrep=et(t.dataPrep,["none","flateCompress"]),this.dataRowCount=Ot({data:t.dataRowCount,defaultValue:-1,validate:d((e)=>e>=0,"validate")}),this.endChar=t.endChar||"",this.errorCorrectionLevel=Ot({data:t.errorCorrectionLevel,defaultValue:-1,validate:d((e)=>e>=0&&e<=8,"validate")}),this.id=t.id||"",this.moduleHeight=vt(t.moduleHeight,"5mm"),this.moduleWidth=vt(t.moduleWidth,"0.25mm"),this.printCheckDigit=Ot({data:t.printCheckDigit,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.rowColumnRatio=Xu(t.rowColumnRatio),this.startChar=t.startChar||"",this.textLocation=et(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=Ot({data:t.truncate,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.type=et(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=et(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=t.use||"",this.usehref=t.usehref||"",this.wideNarrowRatio=Xu(t.wideNarrowRatio),this.encrypt=null,this.extras=null}};F2=class F2 extends Y{static{d(this,"Bind")}constructor(t){super(ht,"bind",!0),this.match=et(t.match,["once","dataRef","global","none"]),this.ref=t.ref||"",this.picture=null}};dh=class dh extends Y{static{d(this,"BindItems")}constructor(t){super(ht,"bindItems"),this.connection=t.connection||"",this.labelRef=t.labelRef||"",this.ref=t.ref||"",this.valueRef=t.valueRef||""}};E2=class E2 extends Y{static{d(this,"Bookend")}constructor(t){super(ht,"bookend"),this.id=t.id||"",this.leader=t.leader||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}};M2=class M2 extends ss{static{d(this,"BooleanElement")}constructor(t){super(ht,"boolean"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[Dt](t){return Nn(this[Z]===1?"1":"0")}};Pd=class Pd extends Y{static{d(this,"Border")}constructor(t){super(ht,"border",!0),this.break=et(t.break,["close","open"]),this.hand=et(t.hand,["even","left","right"]),this.id=t.id||"",this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Ei(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new F(4),this.edge=new F(4),this.extras=null,this.fill=null,this.margin=null}[Es](){if(!this[K]){let t=this.edge.children.slice();if(t.length<4){let i=t.at(-1)||new Vr({});for(let n=t.length;n<4;n++)t.push(i)}let e=t.map((i)=>i.thickness),s=[0,0,0,0];this.margin&&(s[0]=this.margin.topInset,s[1]=this.margin.rightInset,s[2]=this.margin.bottomInset,s[3]=this.margin.leftInset),this[K]={widths:e,insets:s,edges:t}}return this[K]}[ce](){let{edges:t}=this[Es](),e=t.map((i)=>{let n=i[ce]();return n.color||="#000000",n}),s=Object.create(null);if(this.margin&&Object.assign(s,this.margin[ce]()),this.fill?.presence==="visible"&&Object.assign(s,this.fill[ce]()),this.corner.children.some((i)=>i.radius!==0)){let i=this.corner.children.map((n)=>n[ce]());if(i.length===2||i.length===3){let n=i.at(-1);for(let a=i.length;a<4;a++)i.push(n)}s.borderRadius=i.map((n)=>n.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":s.borderStyle="";break;case"inactive":s.borderStyle="none";break;default:s.borderStyle=e.map((i)=>i.style).join(" ");break}return s.borderWidth=e.map((i)=>i.width).join(" "),s.borderColor=e.map((i)=>i.color).join(" "),s}};B2=class B2 extends Y{static{d(this,"Break")}constructor(t){super(ht,"break",!0),this.after=et(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=t.afterTarget||"",this.before=et(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=Ot({data:t.startNew,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}};Dd=class Dd extends Y{static{d(this,"BreakAfter")}constructor(t){super(ht,"breakAfter",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=Ot({data:t.startNew,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.target=t.target||"",this.targetType=et(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}};Rd=class Rd extends Y{static{d(this,"BreakBefore")}constructor(t){super(ht,"breakBefore",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=Ot({data:t.startNew,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.target=t.target||"",this.targetType=et(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}[Dt](t){return this[K]={},Tt.FAILURE}};P2=class P2 extends Y{static{d(this,"Button")}constructor(t){super(ht,"button",!0),this.highlight=et(t.highlight,["inverted","none","outline","push"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[Dt](t){let e=this[zt]()[zt](),s={name:"button",attributes:{id:this[ye],class:["xfaButton"],style:{}},children:[]};for(let i of e.event.children){if(i.activity!=="click"||!i.script)continue;let n=T1(i.script[Z]);if(!n)continue;let a=Id(n.url);a&&s.children.push({name:"a",attributes:{id:"link"+this[ye],href:a,newWindow:n.newWindow,class:["xfaLink"],style:{}},children:[]})}return Tt.success(s)}};D2=class D2 extends Y{static{d(this,"Calculate")}constructor(t){super(ht,"calculate",!0),this.id=t.id||"",this.override=et(t.override,["disabled","error","ignore","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.script=null}};R2=class R2 extends Y{static{d(this,"Caption")}constructor(t){super(ht,"caption",!0),this.id=t.id||"",this.placement=et(t.placement,["left","bottom","inline","right","top"]),this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil(vt(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}[ri](t){rf(this,t)}[Es](t){if(!this[K]){let{width:e,height:s}=t;switch(this.placement){case"left":case"right":case"inline":e=this.reserve<=0?e:this.reserve;break;case"top":case"bottom":s=this.reserve<=0?s:this.reserve;break}this[K]=sf(this,{width:e})}return this[K]}[Dt](t){if(!this.value)return Tt.EMPTY;this[Gr]();let e=this.value[Dt](t).html;if(!e)return this[ni](),Tt.EMPTY;let s=this.reserve;if(this.reserve<=0){let{w:a,h:r}=this[Es](t);switch(this.placement){case"left":case"right":case"inline":this.reserve=a;break;case"top":case"bottom":this.reserve=r;break}}let i=[];typeof e=="string"?i.push({name:"#text",value:e}):i.push(e);let n=Os(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(n.width=_t(this.reserve));break;case"top":case"bottom":this.reserve>0&&(n.height=_t(this.reserve));break}return Sd(this,null,e),this[ni](),this.reserve=s,Tt.success({name:"div",attributes:{style:n,class:["xfaCaption"]},children:i})}};H2=class H2 extends Qt{static{d(this,"Certificate")}constructor(t){super(ht,"certificate"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};_2=class _2 extends Y{static{d(this,"Certificates")}constructor(t){super(ht,"certificates",!0),this.credentialServerPolicy=et(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}};Hd=class Hd extends Y{static{d(this,"CheckButton")}constructor(t){super(ht,"checkButton",!0),this.id=t.id||"",this.mark=et(t.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=et(t.shape,["square","round"]),this.size=vt(t.size,"10pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[Dt](t){let e=Os(this,"margin"),s=_t(this.size);e.width=e.height=s;let i,n,a,r=this[zt]()[zt](),o=r.items.children.length&&r.items.children[0][Dt]().html||[],l={on:(o[0]!==void 0?o[0]:"on").toString(),off:(o[1]!==void 0?o[1]:"off").toString()},c=(r.value?.[ls]()||"off")===l.on||void 0,h=r[Ve](),f=r[ye],u;h instanceof Ld?(a=h[ye],i="radio",n="xfaRadio",u=h[Ti]?.[ye]||h[ye]):(i="checkbox",n="xfaCheckbox",u=r[Ti]?.[ye]||r[ye]);let p={name:"input",attributes:{class:[n],style:e,fieldId:f,dataId:u,type:i,checked:c,xfaOn:l.on,xfaOff:l.off,"aria-label":ua(r),"aria-required":!1}};return a&&(p.attributes.name=a),$r(r)&&(p.attributes["aria-required"]=!0,p.attributes.required=!0),Tt.success({name:"label",attributes:{class:["xfaLabel"]},children:[p]})}};_d=class _d extends Y{static{d(this,"ChoiceList")}constructor(t){super(ht,"choiceList",!0),this.commitOn=et(t.commitOn,["select","exit"]),this.id=t.id||"",this.open=et(t.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=Ot({data:t.textEntry,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[Dt](t){let e=Os(this,"border","margin"),s=this[zt]()[zt](),i={fontSize:`calc(${s.font?.size||10}px * var(--total-scale-factor))`},n=[];if(s.items.children.length>0){let r=s.items,o=0,l=0;r.children.length===2&&(o=r.children[0].save,l=1-o);let c=r.children[o][Dt]().html,h=r.children[l][Dt]().html,f=!1,u=s.value?.[ls]()||"";for(let p=0,m=c.length;p<m;p++){let g={name:"option",attributes:{value:h[p]||c[p],style:i},value:c[p]};h[p]===u&&(g.attributes.selected=f=!0),n.push(g)}f||n.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}let a={class:["xfaSelect"],fieldId:s[ye],dataId:s[Ti]?.[ye]||s[ye],style:e,"aria-label":ua(s),"aria-required":!1};return $r(s)&&(a["aria-required"]=!0,a.required=!0),this.open==="multiSelect"&&(a.multiple=!0),Tt.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:n,attributes:a}]})}};O2=class O2 extends Y{static{d(this,"Color")}constructor(t){super(ht,"color",!0),this.cSpace=et(t.cSpace,["SRGB"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.value=t.value?m2(t.value):"",this.extras=null}[hl](){return!1}[ce](){return this.value?de.makeHexColor(this.value.r,this.value.g,this.value.b):null}};N2=class N2 extends Y{static{d(this,"Comb")}constructor(t){super(ht,"comb"),this.id=t.id||"",this.numberOfCells=Ot({data:t.numberOfCells,defaultValue:0,validate:d((e)=>e>=0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||""}};L2=class L2 extends Y{static{d(this,"Connect")}constructor(t){super(ht,"connect",!0),this.connection=t.connection||"",this.id=t.id||"",this.ref=t.ref||"",this.usage=et(t.usage,["exportAndImport","exportOnly","importOnly"]),this.use=t.use||"",this.usehref=t.usehref||"",this.picture=null}};lf=class lf extends Y{static{d(this,"ContentArea")}constructor(t){super(ht,"contentArea",!0),this.h=vt(t.h),this.id=t.id||"",this.name=t.name||"",this.relevant=Ei(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=vt(t.w),this.x=vt(t.x,"0pt"),this.y=vt(t.y,"0pt"),this.desc=null,this.extras=null}[Dt](t){let e=_t(this.x),s=_t(this.y),i={left:e,top:s,width:_t(this.w),height:_t(this.h)},n=["xfaContentarea"];return Ga(this)&&n.push("xfaPrintOnly"),Tt.success({name:"div",children:[],attributes:{style:i,class:n,id:this[ye]}})}};Od=class Od extends Y{static{d(this,"Corner")}constructor(t){super(ht,"corner",!0),this.id=t.id||"",this.inverted=Ot({data:t.inverted,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.join=et(t.join,["square","round"]),this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.radius=vt(t.radius),this.stroke=et(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=vt(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](){let t=Os(this,"visibility");return t.radius=_t(this.join==="square"?0:this.radius),t}};z2=class z2 extends De{static{d(this,"DateElement")}constructor(t){super(ht,"date"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[ke](){let t=this[Z].trim();this[Z]=t?new Date(t):null}[Dt](t){return Nn(this[Z]?this[Z].toString():"")}};U2=class U2 extends De{static{d(this,"DateTime")}constructor(t){super(ht,"dateTime"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[ke](){let t=this[Z].trim();this[Z]=t?new Date(t):null}[Dt](t){return Nn(this[Z]?this[Z].toString():"")}};G2=class G2 extends Y{static{d(this,"DateTimeEdit")}constructor(t){super(ht,"dateTimeEdit",!0),this.hScrollPolicy=et(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.picker=et(t.picker,["host","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[Dt](t){let e=Os(this,"border","font","margin"),s=this[zt]()[zt](),i={name:"input",attributes:{type:"text",fieldId:s[ye],dataId:s[Ti]?.[ye]||s[ye],class:["xfaTextfield"],style:e,"aria-label":ua(s),"aria-required":!1}};return $r(s)&&(i.attributes["aria-required"]=!0,i.attributes.required=!0),Tt.success({name:"label",attributes:{class:["xfaLabel"]},children:[i]})}};$2=class $2 extends De{static{d(this,"Decimal")}constructor(t){super(ht,"decimal"),this.fracDigits=Ot({data:t.fracDigits,defaultValue:2,validate:d((e)=>!0,"validate")}),this.id=t.id||"",this.leadDigits=Ot({data:t.leadDigits,defaultValue:-1,validate:d((e)=>!0,"validate")}),this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[ke](){let t=parseFloat(this[Z].trim());this[Z]=isNaN(t)?null:t}[Dt](t){return Nn(this[Z]!==null?this[Z].toString():"")}};V2=class V2 extends Y{static{d(this,"DefaultUi")}constructor(t){super(ht,"defaultUi",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}};W2=class W2 extends Y{static{d(this,"Desc")}constructor(t){super(ht,"desc",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.float=new F,this.image=new F,this.integer=new F,this.text=new F,this.time=new F}};K2=class K2 extends be{static{d(this,"DigestMethod")}constructor(t){super(ht,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}};Y2=class Y2 extends Y{static{d(this,"DigestMethods")}constructor(t){super(ht,"digestMethods",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.digestMethod=new F}};Nd=class Nd extends Y{static{d(this,"Draw")}constructor(t){super(ht,"draw",!0),this.anchorType=et(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Ot({data:t.colSpan,defaultValue:1,validate:d((e)=>e>=1||e===-1,"validate")}),this.h=t.h?vt(t.h):"",this.hAlign=et(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=vt(t.maxH,"0pt"),this.maxW=vt(t.maxW,"0pt"),this.minH=vt(t.minH,"0pt"),this.minW=vt(t.minW,"0pt"),this.name=t.name||"",this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Ei(t.relevant),this.rotate=Ot({data:t.rotate,defaultValue:0,validate:d((e)=>e%90===0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?vt(t.w):"",this.x=vt(t.x,"0pt"),this.y=vt(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 F}[ri](t){rf(this,t)}[Dt](t){if(Pl(this),this.presence==="hidden"||this.presence==="inactive")return Tt.EMPTY;Ml(this),this[Gr]();let e=this.w,s=this.h,{w:i,h:n,isBroken:a}=sf(this,t);if(i&&this.w===""){if(a&&this[Ve]()[Hn]())return this[ni](),Tt.FAILURE;this.w=i}if(n&&this.h===""&&(this.h=n),Rl(this),!Bl(this,t))return this.w=e,this.h=s,this[ni](),Tt.FAILURE;Hl(this);let r=Os(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");vd(this,r),r.margin&&(r.padding=r.margin,delete r.margin);let o=["xfaDraw"];this.font&&o.push("xfaFont"),Ga(this)&&o.push("xfaPrintOnly");let l={style:r,id:this[ye],class:o};this.name&&(l.xfaName=this.name);let c={name:"div",attributes:l,children:[]};Dl(this,l);let h=kd(this,c,t),f=this.value?this.value[Dt](t).html:null;return f===null?(this.w=e,this.h=s,this[ni](),Tt.success(la(this,c),h)):(c.children.push(f),Sd(this,r,f),this.w=e,this.h=s,this[ni](),Tt.success(la(this,c),h))}};Vr=class Vr extends Y{static{d(this,"Edge")}constructor(t){super(ht,"edge",!0),this.cap=et(t.cap,["square","butt","round"]),this.id=t.id||"",this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.stroke=et(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=vt(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](){let t=Os(this,"visibility");if(Object.assign(t,{linecap:this.cap,width:_t(this.thickness),color:this.color?this.color[ce]():"#000000",style:""}),this.presence!=="visible")t.style="none";else switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":t.style="dashed";break;case"dashDotDot":t.style="dashed";break;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";break}return t}};X2=class X2 extends be{static{d(this,"Encoding")}constructor(t){super(ht,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}};Q2=class Q2 extends Y{static{d(this,"Encodings")}constructor(t){super(ht,"encodings",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encoding=new F}};J2=class J2 extends Y{static{d(this,"Encrypt")}constructor(t){super(ht,"encrypt",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=null}};Z2=class Z2 extends Y{static{d(this,"EncryptData")}constructor(t){super(ht,"encryptData",!0),this.id=t.id||"",this.operation=et(t.operation,["encrypt","decrypt"]),this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}};tw=class tw extends Y{static{d(this,"Encryption")}constructor(t){super(ht,"encryption",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new F}};ew=class ew extends be{static{d(this,"EncryptionMethod")}constructor(t){super(ht,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}};sw=class sw extends Y{static{d(this,"EncryptionMethods")}constructor(t){super(ht,"encryptionMethods",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encryptionMethod=new F}};Uj=class extends Y{static{d(this,"Event")}constructor(t){super(ht,"event",!0),this.activity=et(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=et(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}};iw=class iw extends De{static{d(this,"ExData")}constructor(t){super(ht,"exData"),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.maxLength=Ot({data:t.maxLength,defaultValue:-1,validate:d((e)=>e>=-1,"validate")}),this.name=t.name||"",this.rid=t.rid||"",this.transferEncoding=et(t.transferEncoding,["none","base64","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[wd](){return this.contentType==="text/html"}[rn](t){return this.contentType==="text/html"&&t[$e]===We.xhtml.id?(this[Z]=t,!0):this.contentType==="text/xml"?(this[Z]=t,!0):!1}[Dt](t){return this.contentType!=="text/html"||!this[Z]?Tt.EMPTY:this[Z][Dt](t)}};nw=class nw extends Y{static{d(this,"ExObject")}constructor(t){super(ht,"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 F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.exObject=new F,this.float=new F,this.image=new F,this.integer=new F,this.text=new F,this.time=new F}};Ld=class Ld extends Y{static{d(this,"ExclGroup")}constructor(t){super(ht,"exclGroup",!0),this.access=et(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=et(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Ot({data:t.colSpan,defaultValue:1,validate:d((e)=>e>=1||e===-1,"validate")}),this.h=t.h?vt(t.h):"",this.hAlign=et(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=et(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=vt(t.maxH,"0pt"),this.maxW=vt(t.maxW,"0pt"),this.minH=vt(t.minH,"0pt"),this.minW=vt(t.minW,"0pt"),this.name=t.name||"",this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Ei(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?vt(t.w):"",this.x=vt(t.x,"0pt"),this.y=vt(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 F,this.event=new F,this.field=new F,this.setProperty=new F}[Ua](){return!0}[hl](){return!0}[ri](t){for(let e of this.field.children){if(!e.value){let s=new df({});e[_e](s),e.value=s}e.value[ri](t)}}[Hn](){return this.layout.endsWith("-tb")&&this[K].attempt===0&&this[K].numberInLine>0||this[zt]()[Hn]()}[Mn](){let t=this[Ve]();return t[Mn]()?this[K]._isSplittable!==void 0?this[K]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[K]._isSplittable=!1,!1):t.layout?.endsWith("-tb")&&t[K].numberInLine!==0?!1:(this[K]._isSplittable=!0,!0):!1}[Tl](){return Fd(this)}[Ba](t,e){Ed(this,t,e)}[Pa](){return Md(this)}[Dt](t){if(Pl(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return Tt.EMPTY;Ml(this);let e=[],s={id:this[ye],class:[]};nf(this,s.class),this[K]||=Object.create(null),Object.assign(this[K],{children:e,attributes:s,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 i=this[Mn]();if(i||Rl(this),!Bl(this,t))return Tt.FAILURE;let n=new Set(["field"]);if(this.layout.includes("row")){let w=this[Ve]().columnWidths;Array.isArray(w)&&w.length>0&&(this[K].columnWidths=w,this[K].currentColumn=0)}let a=Os(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),r=["xfaExclgroup"],o=qd(this);o&&r.push(o),Ga(this)&&r.push("xfaPrintOnly"),s.style=a,s.class=r,this.name&&(s.xfaName=this.name),this[Gr]();let l=this.layout==="lr-tb"||this.layout==="rl-tb",c=l?uh:1;for(;this[K].attempt<c;this[K].attempt++){l&&this[K].attempt===uh-1&&(this[K].numberInLine=0);let w=this[fa]({filter:n,include:!0});if(w.success)break;if(w.isBreak())return this[ni](),w;if(l&&this[K].attempt===0&&this[K].numberInLine===0&&!this[Ge]()[K].noLayoutFailure){this[K].attempt=c;break}}if(this[ni](),i||Hl(this),this[K].attempt===c)return i||delete this[K],Tt.FAILURE;let h=0,f=0;this.margin&&(h=this.margin.leftInset+this.margin.rightInset,f=this.margin.topInset+this.margin.bottomInset);let u=Math.max(this[K].width+h,this.w||0),p=Math.max(this[K].height+f,this.h||0),m=[this.x,this.y,u,p];this.w===""&&(a.width=_t(u)),this.h===""&&(a.height=_t(p));let g={name:"div",attributes:s,children:e};return Dl(this,s),delete this[K],Tt.success(la(this,g),m)}};aw=class aw extends Y{static{d(this,"Execute")}constructor(t){super(ht,"execute"),this.connection=t.connection||"",this.executeType=et(t.executeType,["import","remerge"]),this.id=t.id||"",this.runAt=et(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}};rw=class rw extends Y{static{d(this,"Extras")}constructor(t){super(ht,"extras",!0),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.extras=new F,this.float=new F,this.image=new F,this.integer=new F,this.text=new F,this.time=new F}};cf=class cf extends Y{static{d(this,"Field")}constructor(t){super(ht,"field",!0),this.access=et(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=et(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Ot({data:t.colSpan,defaultValue:1,validate:d((e)=>e>=1||e===-1,"validate")}),this.h=t.h?vt(t.h):"",this.hAlign=et(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=vt(t.maxH,"0pt"),this.maxW=vt(t.maxW,"0pt"),this.minH=vt(t.minH,"0pt"),this.minW=vt(t.minW,"0pt"),this.name=t.name||"",this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Ei(t.relevant),this.rotate=Ot({data:t.rotate,defaultValue:0,validate:d((e)=>e%90===0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?vt(t.w):"",this.x=vt(t.x,"0pt"),this.y=vt(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 F(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 F,this.connect=new F,this.event=new F,this.setProperty=new F}[Ua](){return!0}[ri](t){rf(this,t)}[Dt](t){if(Pl(this),!this.ui){this.ui=new uf({}),this.ui[ve]=this[ve],this[_e](this.ui);let w;switch(this.items.children.length){case 0:w=new Vd({}),this.ui.textEdit=w;break;case 1:w=new Hd({}),this.ui.checkButton=w;break;case 2:w=new _d({}),this.ui.choiceList=w;break}this.ui[_e](w)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return Tt.EMPTY;this.caption&&delete this.caption[K],this[Gr]();let e=this.caption?this.caption[Dt](t).html:null,s=this.w,i=this.h,n=0,a=0;this.margin&&(n=this.margin.leftInset+this.margin.rightInset,a=this.margin.topInset+this.margin.bottomInset);let r=null;if(this.w===""||this.h===""){let w=null,b=null,j=0,v=0;if(this.ui.checkButton)j=v=this.ui.checkButton.size;else{let{w:q,h:x}=sf(this,t);q!==null?(j=q,v=x):v=w2(this.font,!0).lineNoGap}if(r=Zu(this.ui[Es]()),j+=r.w,v+=r.h,this.caption){let{w:q,h:x,isBroken:k}=this.caption[Es](t);if(k&&this[Ve]()[Hn]())return this[ni](),Tt.FAILURE;switch(w=q,b=x,this.caption.placement){case"left":case"right":case"inline":w+=j;break;case"top":case"bottom":b+=v;break}}else w=j,b=v;w&&this.w===""&&(w+=n,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<w?w:this.minW)),b&&this.h===""&&(b+=a,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<b?b:this.minH))}if(this[ni](),Ml(this),Rl(this),!Bl(this,t))return this.w=s,this.h=i,this[ni](),Tt.FAILURE;Hl(this);let o=Os(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");vd(this,o);let l=["xfaField"];this.font&&l.push("xfaFont"),Ga(this)&&l.push("xfaPrintOnly");let c={style:o,id:this[ye],class:l};o.margin&&(o.padding=o.margin,delete o.margin),nf(this,l),this.name&&(c.xfaName=this.name);let h=[],f={name:"div",attributes:c,children:h};Dl(this,c);let u=this.border?this.border[ce]():null,p=kd(this,f,t),m=this.ui[Dt]().html;if(!m)return Object.assign(o,u),Tt.success(la(this,f),p);this[Li]&&(m.children?.[0]?m.children[0].attributes.tabindex=this[Li]:m.attributes.tabindex=this[Li]),m.attributes.style||=Object.create(null);let g=null;if(this.ui.button?(m.children.length===1&&([g]=m.children.splice(0,1)),Object.assign(m.attributes.style,u)):Object.assign(o,u),h.push(m),this.value){if(this.ui.imageEdit)m.children.push(this.value[Dt]().html);else if(!this.ui.button){let w="";if(this.value.exData)w=this.value.exData[ls]();else if(this.value.text)w=this.value.text[Es]();else{let b=this.value[Dt]().html;b!==null&&(w=b.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(m.children[0].attributes.maxLength=this.value.text.maxChars),w&&(this.ui.numericEdit&&(w=parseFloat(w),w=isNaN(w)?"":w.toString()),m.children[0].name==="textarea"?m.children[0].attributes.textContent=w:m.children[0].attributes.value=w)}}if(!this.ui.imageEdit&&m.children?.[0]&&this.h){r=r||Zu(this.ui[Es]());let w=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){w=this.caption.reserve,w<=0&&(w=this.caption[Es](t).h);let b=this.h-w-a-r.h;m.children[0].attributes.style.height=_t(b)}else m.children[0].attributes.style.height="100%"}if(g&&m.children.push(g),!e)return m.attributes.class&&m.attributes.class.push("xfaLeft"),this.w=s,this.h=i,Tt.success(la(this,f),p);if(this.ui.button)return o.padding&&delete o.padding,e.name==="div"&&(e.name="span"),m.children.push(e),Tt.success(f,p);switch(this.ui.checkButton&&(e.attributes.class[0]="xfaCaptionForCheckButton"),m.attributes.class||=[],m.children.splice(0,0,e),this.caption.placement){case"left":m.attributes.class.push("xfaLeft");break;case"right":m.attributes.class.push("xfaRight");break;case"top":m.attributes.class.push("xfaTop");break;case"bottom":m.attributes.class.push("xfaBottom");break;case"inline":m.attributes.class.push("xfaLeft");break}return this.w=s,this.h=i,Tt.success(la(this,f),p)}};ow=class ow extends Y{static{d(this,"Fill")}constructor(t){super(ht,"fill",!0),this.id=t.id||"",this.presence=et(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}[ce](){let t=this[zt](),e=t[zt]()[zt](),s=Object.create(null),i="color",n=i;t instanceof Pd&&(i="background-color",n="background",e instanceof uf&&(s.backgroundColor="white")),(t instanceof Ud||t instanceof Bd)&&(i=n="fill",s.fill="white");for(let a of Object.getOwnPropertyNames(this)){if(a==="extras"||a==="color")continue;let r=this[a];if(!(r instanceof Y))continue;let o=r[ce](this.color);return o&&(s[o.startsWith("#")?i:n]=o),s}if(this.color?.value){let a=this.color[ce]();s[a.startsWith("#")?i:n]=a}return s}};lw=class lw extends Y{static{d(this,"Filter")}constructor(t){super(ht,"filter",!0),this.addRevocationInfo=et(t.addRevocationInfo,["","required","optional","none"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.version=Ot({data:this.version,defaultValue:5,validate:d((e)=>e>=1&&e<=5,"validate")}),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}};cw=class cw extends De{static{d(this,"Float")}constructor(t){super(ht,"float"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[ke](){let t=parseFloat(this[Z].trim());this[Z]=isNaN(t)?null:t}[Dt](t){return Nn(this[Z]!==null?this[Z].toString():"")}};hw=class hw extends Y{static{d(this,"template_Font")}constructor(t){super(ht,"font",!0),this.baselineShift=vt(t.baselineShift),this.fontHorizontalScale=dl({data:t.fontHorizontalScale,defaultValue:100,validate:d((e)=>e>=0,"validate")}),this.fontVerticalScale=dl({data:t.fontVerticalScale,defaultValue:100,validate:d((e)=>e>=0,"validate")}),this.id=t.id||"",this.kerningMode=et(t.kerningMode,["none","pair"]),this.letterSpacing=vt(t.letterSpacing,"0"),this.lineThrough=Ot({data:t.lineThrough,defaultValue:0,validate:d((e)=>e===1||e===2,"validate")}),this.lineThroughPeriod=et(t.lineThroughPeriod,["all","word"]),this.overline=Ot({data:t.overline,defaultValue:0,validate:d((e)=>e===1||e===2,"validate")}),this.overlinePeriod=et(t.overlinePeriod,["all","word"]),this.posture=et(t.posture,["normal","italic"]),this.size=vt(t.size,"10pt"),this.typeface=t.typeface||"Courier",this.underline=Ot({data:t.underline,defaultValue:0,validate:d((e)=>e===1||e===2,"validate")}),this.underlinePeriod=et(t.underlinePeriod,["all","word"]),this.use=t.use||"",this.usehref=t.usehref||"",this.weight=et(t.weight,["normal","bold"]),this.extras=null,this.fill=null}[Fi](t){super[Fi](t),this[ve].usedTypefaces.add(this.typeface)}[ce](){let t=Os(this,"fill"),e=t.color;return e&&(e==="#000000"?delete t.color:e.startsWith("#")||(t.background=e,t.backgroundClip="text",t.color="transparent")),this.baselineShift&&(t.verticalAlign=_t(this.baselineShift)),t.fontKerning=this.kerningMode==="none"?"none":"normal",t.letterSpacing=_t(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=_t(0.99*this.size),Cd(this,this,this[ve].fontFinder,t),this.underline!==0&&(t.textDecoration="underline",this.underline===2&&(t.textDecorationStyle="double")),t.fontWeight=this.weight,t}};fw=class fw extends Y{static{d(this,"Format")}constructor(t){super(ht,"format",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.picture=null}};uw=class uw extends Qt{static{d(this,"Handler")}constructor(t){super(ht,"handler"),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}};dw=class dw extends Y{static{d(this,"Hyphenation")}constructor(t){super(ht,"hyphenation"),this.excludeAllCaps=Ot({data:t.excludeAllCaps,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.excludeInitialCap=Ot({data:t.excludeInitialCap,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.hyphenate=Ot({data:t.hyphenate,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.id=t.id||"",this.pushCharacterCount=Ot({data:t.pushCharacterCount,defaultValue:3,validate:d((e)=>e>=0,"validate")}),this.remainCharacterCount=Ot({data:t.remainCharacterCount,defaultValue:3,validate:d((e)=>e>=0,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.wordCharacterCount=Ot({data:t.wordCharacterCount,defaultValue:7,validate:d((e)=>e>=0,"validate")})}};pw=class extends Qt{static{d(this,"Image")}constructor(t){super(ht,"image"),this.aspect=et(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=et(t.transferEncoding,["base64","none","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[Dt](){if(this.contentType&&!Lj.has(this.contentType.toLowerCase()))return Tt.EMPTY;let t=this[ve].images?.get(this.href);if(!t&&(this.href||!this[Z])||(!t&&this.transferEncoding==="base64"&&(t=Uint8Array.fromBase64(this[Z])),!t))return Tt.EMPTY;if(!this.contentType){for(let[n,a]of zj)if(t.length>n.length&&n.every((r,o)=>r===t[o])){this.contentType=a;break}if(!this.contentType)return Tt.EMPTY}let e=new Blob([t],{type:this.contentType}),s;switch(this.aspect){case"fit":case"actual":break;case"height":s={height:"100%",objectFit:"fill"};break;case"none":s={width:"100%",height:"100%",objectFit:"fill"};break;case"width":s={width:"100%",objectFit:"fill"};break}let i=this[zt]();return Tt.success({name:"img",attributes:{class:["xfaImage"],style:s,src:URL.createObjectURL(e),alt:i?ua(i[zt]()):null}})}};mw=class mw extends Y{static{d(this,"ImageEdit")}constructor(t){super(ht,"imageEdit",!0),this.data=et(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}[Dt](t){return this.data==="embed"?Tt.success({name:"div",children:[],attributes:{}}):Tt.EMPTY}};gw=class gw extends De{static{d(this,"Integer")}constructor(t){super(ht,"integer"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[ke](){let t=parseInt(this[Z].trim(),10);this[Z]=isNaN(t)?null:t}[Dt](t){return Nn(this[Z]!==null?this[Z].toString():"")}};bw=class bw extends Y{static{d(this,"Issuers")}constructor(t){super(ht,"issuers",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new F}};ph=class ph extends Y{static{d(this,"Items")}constructor(t){super(ht,"items",!0),this.id=t.id||"",this.name=t.name||"",this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.ref=t.ref||"",this.save=Ot({data:t.save,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.float=new F,this.image=new F,this.integer=new F,this.text=new F,this.time=new F}[Dt](){let t=[];for(let e of this[ys]())t.push(e[ls]());return Tt.success(t)}};ww=class ww extends Y{static{d(this,"Keep")}constructor(t){super(ht,"keep",!0),this.id=t.id||"";let e=["none","contentArea","pageArea"];this.intact=et(t.intact,e),this.next=et(t.next,e),this.previous=et(t.previous,e),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}};yw=class yw extends Y{static{d(this,"KeyUsage")}constructor(t){super(ht,"keyUsage");let e=["","yes","no"];this.crlSign=et(t.crlSign,e),this.dataEncipherment=et(t.dataEncipherment,e),this.decipherOnly=et(t.decipherOnly,e),this.digitalSignature=et(t.digitalSignature,e),this.encipherOnly=et(t.encipherOnly,e),this.id=t.id||"",this.keyAgreement=et(t.keyAgreement,e),this.keyCertSign=et(t.keyCertSign,e),this.keyEncipherment=et(t.keyEncipherment,e),this.nonRepudiation=et(t.nonRepudiation,e),this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}};jw=class jw extends Y{static{d(this,"Line")}constructor(t){super(ht,"line",!0),this.hand=et(t.hand,["even","left","right"]),this.id=t.id||"",this.slope=et(t.slope,["\\","/"]),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null}[Dt](){let t=this[zt]()[zt](),e=this.edge||new Vr({}),s=e[ce](),i=Object.create(null),n=e.presence==="visible"?e.thickness:0;i.strokeWidth=_t(n),i.stroke=s.color;let a,r,o,l,c="100%",h="100%";t.w<=n?([a,r,o,l]=["50%",0,"50%","100%"],c=i.strokeWidth):t.h<=n?([a,r,o,l]=[0,"50%","100%","50%"],h=i.strokeWidth):this.slope==="\\"?[a,r,o,l]=[0,0,"100%","100%"]:[a,r,o,l]=[0,"100%","100%",0];let f={name:"svg",children:[{name:"line",attributes:{xmlns:Da,x1:a,y1:r,x2:o,y2:l,style:i}}],attributes:{xmlns:Da,width:c,height:h,style:{overflow:"visible"}}};return af(t)?Tt.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[f]}):(f.attributes.style.position="absolute",Tt.success(f))}};vw=class vw extends Y{static{d(this,"Linear")}constructor(t){super(ht,"linear",!0),this.id=t.id||"",this.type=et(t.type,["toRight","toBottom","toLeft","toTop"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](t){t=t?t[ce]():"#FFFFFF";let e=this.type.replace(/([RBLT])/," $1").toLowerCase(),s=this.color?this.color[ce]():"#000000";return`linear-gradient(${e}, ${t}, ${s})`}};kw=class kw extends De{static{d(this,"LockDocument")}constructor(t){super(ht,"lockDocument"),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}[ke](){this[Z]=et(this[Z],["auto","0","1"])}};qw=class qw extends Y{static{d(this,"Manifest")}constructor(t){super(ht,"manifest",!0),this.action=et(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 F}};xw=class xw extends Y{static{d(this,"Margin")}constructor(t){super(ht,"margin",!0),this.bottomInset=vt(t.bottomInset,"0"),this.id=t.id||"",this.leftInset=vt(t.leftInset,"0"),this.rightInset=vt(t.rightInset,"0"),this.topInset=vt(t.topInset,"0"),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[ce](){return{margin:_t(this.topInset)+" "+_t(this.rightInset)+" "+_t(this.bottomInset)+" "+_t(this.leftInset)}}};Aw=class Aw extends Y{static{d(this,"Mdp")}constructor(t){super(ht,"mdp"),this.id=t.id||"",this.permissions=Ot({data:t.permissions,defaultValue:2,validate:d((e)=>e===1||e===3,"validate")}),this.signatureType=et(t.signatureType,["filler","author"]),this.use=t.use||"",this.usehref=t.usehref||""}};Sw=class Sw extends Y{static{d(this,"Medium")}constructor(t){super(ht,"medium"),this.id=t.id||"",this.imagingBBox=g2(t.imagingBBox),this.long=vt(t.long),this.orientation=et(t.orientation,["portrait","landscape"]),this.short=vt(t.short),this.stock=t.stock||"",this.trayIn=et(t.trayIn,["auto","delegate","pageFront"]),this.trayOut=et(t.trayOut,["auto","delegate"]),this.use=t.use||"",this.usehref=t.usehref||""}};Cw=class Cw extends Y{static{d(this,"Message")}constructor(t){super(ht,"message",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.text=new F}};Iw=class Iw extends Y{static{d(this,"NumericEdit")}constructor(t){super(ht,"numericEdit",!0),this.hScrollPolicy=et(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}[Dt](t){let e=Os(this,"border","font","margin"),s=this[zt]()[zt](),i={name:"input",attributes:{type:"text",fieldId:s[ye],dataId:s[Ti]?.[ye]||s[ye],class:["xfaTextfield"],style:e,"aria-label":ua(s),"aria-required":!1}};return $r(s)&&(i.attributes["aria-required"]=!0,i.attributes.required=!0),Tt.success({name:"label",attributes:{class:["xfaLabel"]},children:[i]})}};Tw=class Tw extends Y{static{d(this,"Occur")}constructor(t){super(ht,"occur",!0),this.id=t.id||"",this.initial=t.initial!==""?Ot({data:t.initial,defaultValue:"",validate:d((e)=>!0,"validate")}):"",this.max=t.max!==""?Ot({data:t.max,defaultValue:-1,validate:d((e)=>!0,"validate")}):"",this.min=t.min!==""?Ot({data:t.min,defaultValue:1,validate:d((e)=>!0,"validate")}):"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[Fi](){let t=this[zt](),e=this.min;this.min===""&&(this.min=t instanceof Na||t instanceof pl?0:1),this.max===""&&(e===""?this.max=t instanceof Na||t instanceof pl?-1:1:this.max=this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===""&&(this.initial=t instanceof ff?1:this.min)}};Fw=class Fw extends Qt{static{d(this,"Oid")}constructor(t){super(ht,"oid"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};Ew=class Ew extends Y{static{d(this,"Oids")}constructor(t){super(ht,"oids",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.oid=new F}};zd=class zd extends Y{static{d(this,"Overflow")}constructor(t){super(ht,"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||""}[Es](){if(!this[K]){let t=this[zt](),e=this[Ge](),s=e[In](this.target,t),i=e[In](this.leader,t),n=e[In](this.trailer,t);this[K]={target:s?.[0]||null,leader:i?.[0]||null,trailer:n?.[0]||null,addLeader:!1,addTrailer:!1}}return this[K]}};Na=class Na extends Y{static{d(this,"PageArea")}constructor(t){super(ht,"pageArea",!0),this.blankOrNotBlank=et(t.blankOrNotBlank,["any","blank","notBlank"]),this.id=t.id||"",this.initialNumber=Ot({data:t.initialNumber,defaultValue:1,validate:d((e)=>!0,"validate")}),this.name=t.name||"",this.numbered=Ot({data:t.numbered,defaultValue:1,validate:d((e)=>!0,"validate")}),this.oddOrEven=et(t.oddOrEven,["any","even","odd"]),this.pagePosition=et(t.pagePosition,["any","first","last","only","rest"]),this.relevant=Ei(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 F,this.contentArea=new F,this.draw=new F,this.exclGroup=new F,this.field=new F,this.subform=new F}[ul](){return this[K]?!this.occur||this.occur.max===-1||this[K].numberOfUse<this.occur.max:(this[K]={numberOfUse:0},!0)}[br](){delete this[K]}[yn](){this[K]||={numberOfUse:0};let t=this[zt]();return t.relation==="orderedOccurrence"&&this[ul]()?(this[K].numberOfUse+=1,this):t[yn]()}[Pa](){return this[K].space||{width:0,height:0}}[Dt](){this[K]||={numberOfUse:1};let t=[];this[K].children=t;let e=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(e.width=_t(this.medium.short),e.height=_t(this.medium.long),this[K].space={width:this.medium.short,height:this.medium.long},this.medium.orientation==="landscape"){let s=e.width;e.width=e.height,e.height=s,this[K].space={width:this.medium.long,height:this.medium.short}}}else T("XFA - No medium specified in pageArea: please file a bug.");return this[fa]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[fa]({filter:new Set(["contentArea"]),include:!0}),Tt.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[ye],style:e,xfaName:this.name}})}};pl=class pl extends Y{static{d(this,"PageSet")}constructor(t){super(ht,"pageSet",!0),this.duplexImposition=et(t.duplexImposition,["longEdge","shortEdge"]),this.id=t.id||"",this.name=t.name||"",this.relation=et(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=Ei(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.occur=null,this.pageArea=new F,this.pageSet=new F}[br](){for(let t of this.pageArea.children)t[br]();for(let t of this.pageSet.children)t[br]()}[ul](){return!this.occur||this.occur.max===-1||this[K].numberOfUse<this.occur.max}[yn](){if(this[K]||={numberOfUse:1,pageIndex:-1,pageSetIndex:-1},this.relation==="orderedOccurrence"){if(this[K].pageIndex+1<this.pageArea.children.length)return this[K].pageIndex+=1,this.pageArea.children[this[K].pageIndex][yn]();if(this[K].pageSetIndex+1<this.pageSet.children.length)return this[K].pageSetIndex+=1,this.pageSet.children[this[K].pageSetIndex][yn]();if(this[ul]())return this[K].numberOfUse+=1,this[K].pageIndex=-1,this[K].pageSetIndex=-1,this[yn]();let n=this[zt]();return n instanceof pl?n[yn]():(this[br](),this[yn]())}let t=this[Ge]()[K].pageNumber,e=t%2===0?"even":"odd",s=t===0?"first":"rest",i=this.pageArea.children.find((n)=>n.oddOrEven===e&&n.pagePosition===s);return i||(i=this.pageArea.children.find((n)=>n.oddOrEven==="any"&&n.pagePosition===s),i)||(i=this.pageArea.children.find((n)=>n.oddOrEven==="any"&&n.pagePosition==="any"),i)?i:this.pageArea.children[0]}};Mw=class Mw extends Y{static{d(this,"Para")}constructor(t){super(ht,"para",!0),this.hAlign=et(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.lineHeight=t.lineHeight?vt(t.lineHeight,"0pt"):"",this.marginLeft=t.marginLeft?vt(t.marginLeft,"0pt"):"",this.marginRight=t.marginRight?vt(t.marginRight,"0pt"):"",this.orphans=Ot({data:t.orphans,defaultValue:0,validate:d((e)=>e>=0,"validate")}),this.preserve=t.preserve||"",this.radixOffset=t.radixOffset?vt(t.radixOffset,"0pt"):"",this.spaceAbove=t.spaceAbove?vt(t.spaceAbove,"0pt"):"",this.spaceBelow=t.spaceBelow?vt(t.spaceBelow,"0pt"):"",this.tabDefault=t.tabDefault?vt(this.tabDefault):"",this.tabStops=(t.tabStops||"").trim().split(/\s+/).map((e,s)=>s%2===1?vt(e):e),this.textIndent=t.textIndent?vt(t.textIndent,"0pt"):"",this.use=t.use||"",this.usehref=t.usehref||"",this.vAlign=et(t.vAlign,["top","bottom","middle"]),this.widows=Ot({data:t.widows,defaultValue:0,validate:d((e)=>e>=0,"validate")}),this.hyphenation=null}[ce](){let t=Os(this,"hAlign");return this.marginLeft!==""&&(t.paddingLeft=_t(this.marginLeft)),this.marginRight!==""&&(t.paddingRight=_t(this.marginRight)),this.spaceAbove!==""&&(t.paddingTop=_t(this.spaceAbove)),this.spaceBelow!==""&&(t.paddingBottom=_t(this.spaceBelow)),this.textIndent!==""&&(t.textIndent=_t(this.textIndent),xd(t)),this.lineHeight>0&&(t.lineHeight=_t(this.lineHeight)),this.tabDefault!==""&&(t.tabSize=_t(this.tabDefault)),this.tabStops.length>0,this.hyphenatation&&Object.assign(t,this.hyphenatation[ce]()),t}};Bw=class Bw extends Y{static{d(this,"PasswordEdit")}constructor(t){super(ht,"passwordEdit",!0),this.hScrollPolicy=et(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}};Pw=class Pw extends Y{static{d(this,"template_Pattern")}constructor(t){super(ht,"pattern",!0),this.id=t.id||"",this.type=et(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](t){t=t?t[ce]():"#FFFFFF";let e=this.color?this.color[ce]():"#000000",s=5,i="repeating-linear-gradient",n=`${t},${t} ${s}px,${e} ${s}px,${e} ${2*s}px`;switch(this.type){case"crossHatch":return`${i}(to top,${n}) ${i}(to right,${n})`;case"crossDiagonal":return`${i}(45deg,${n}) ${i}(-45deg,${n})`;case"diagonalLeft":return`${i}(45deg,${n})`;case"diagonalRight":return`${i}(-45deg,${n})`;case"horizontal":return`${i}(to top,${n})`;case"vertical":return`${i}(to right,${n})`}return""}};Dw=class Dw extends Qt{static{d(this,"Picture")}constructor(t){super(ht,"picture"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}};Rw=class Rw extends Y{static{d(this,"Proto")}constructor(t){super(ht,"proto",!0),this.appearanceFilter=new F,this.arc=new F,this.area=new F,this.assist=new F,this.barcode=new F,this.bindItems=new F,this.bookend=new F,this.boolean=new F,this.border=new F,this.break=new F,this.breakAfter=new F,this.breakBefore=new F,this.button=new F,this.calculate=new F,this.caption=new F,this.certificate=new F,this.certificates=new F,this.checkButton=new F,this.choiceList=new F,this.color=new F,this.comb=new F,this.connect=new F,this.contentArea=new F,this.corner=new F,this.date=new F,this.dateTime=new F,this.dateTimeEdit=new F,this.decimal=new F,this.defaultUi=new F,this.desc=new F,this.digestMethod=new F,this.digestMethods=new F,this.draw=new F,this.edge=new F,this.encoding=new F,this.encodings=new F,this.encrypt=new F,this.encryptData=new F,this.encryption=new F,this.encryptionMethod=new F,this.encryptionMethods=new F,this.event=new F,this.exData=new F,this.exObject=new F,this.exclGroup=new F,this.execute=new F,this.extras=new F,this.field=new F,this.fill=new F,this.filter=new F,this.float=new F,this.font=new F,this.format=new F,this.handler=new F,this.hyphenation=new F,this.image=new F,this.imageEdit=new F,this.integer=new F,this.issuers=new F,this.items=new F,this.keep=new F,this.keyUsage=new F,this.line=new F,this.linear=new F,this.lockDocument=new F,this.manifest=new F,this.margin=new F,this.mdp=new F,this.medium=new F,this.message=new F,this.numericEdit=new F,this.occur=new F,this.oid=new F,this.oids=new F,this.overflow=new F,this.pageArea=new F,this.pageSet=new F,this.para=new F,this.passwordEdit=new F,this.pattern=new F,this.picture=new F,this.radial=new F,this.reason=new F,this.reasons=new F,this.rectangle=new F,this.ref=new F,this.script=new F,this.setProperty=new F,this.signData=new F,this.signature=new F,this.signing=new F,this.solid=new F,this.speak=new F,this.stipple=new F,this.subform=new F,this.subformSet=new F,this.subjectDN=new F,this.subjectDNs=new F,this.submit=new F,this.text=new F,this.textEdit=new F,this.time=new F,this.timeStamp=new F,this.toolTip=new F,this.traversal=new F,this.traverse=new F,this.ui=new F,this.validate=new F,this.value=new F,this.variables=new F}};Hw=class Hw extends Y{static{d(this,"Radial")}constructor(t){super(ht,"radial",!0),this.id=t.id||"",this.type=et(t.type,["toEdge","toCenter"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](t){t=t?t[ce]():"#FFFFFF";let e=this.color?this.color[ce]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${t},${e}`:`${e},${t}`})`}};_w=class _w extends Qt{static{d(this,"Reason")}constructor(t){super(ht,"reason"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};Ow=class Ow extends Y{static{d(this,"Reasons")}constructor(t){super(ht,"reasons",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.reason=new F}};Ud=class Ud extends Y{static{d(this,"Rectangle")}constructor(t){super(ht,"rectangle",!0),this.hand=et(t.hand,["even","left","right"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new F(4),this.edge=new F(4),this.fill=null}[Dt](){let t=this.edge.children.length?this.edge.children[0]:new Vr({}),e=t[ce](),s=Object.create(null);this.fill?.presence==="visible"?Object.assign(s,this.fill[ce]()):s.fill="transparent",s.strokeWidth=_t(t.presence==="visible"?t.thickness:0),s.stroke=e.color;let i=(this.corner.children.length?this.corner.children[0]:new Od({}))[ce](),n={name:"svg",children:[{name:"rect",attributes:{xmlns:Da,width:"100%",height:"100%",x:0,y:0,rx:i.radius,ry:i.radius,style:s}}],attributes:{xmlns:Da,style:{overflow:"visible"},width:"100%",height:"100%"}},a=this[zt]()[zt]();return af(a)?Tt.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[n]}):(n.attributes.style.position="absolute",Tt.success(n))}};Nw=class Nw extends Qt{static{d(this,"RefElement")}constructor(t){super(ht,"ref"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}};Lw=class Lw extends Qt{static{d(this,"Script")}constructor(t){super(ht,"script"),this.binding=t.binding||"",this.contentType=t.contentType||"",this.id=t.id||"",this.name=t.name||"",this.runAt=et(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}};mh=class mh extends Y{static{d(this,"SetProperty")}constructor(t){super(ht,"setProperty"),this.connection=t.connection||"",this.ref=t.ref||"",this.target=t.target||""}};zw=class zw extends Y{static{d(this,"SignData")}constructor(t){super(ht,"signData",!0),this.id=t.id||"",this.operation=et(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}};Uw=class Uw extends Y{static{d(this,"Signature")}constructor(t){super(ht,"signature",!0),this.id=t.id||"",this.type=et(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}};Gw=class Gw extends Y{static{d(this,"Signing")}constructor(t){super(ht,"signing",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new F}};$w=class $w extends Y{static{d(this,"Solid")}constructor(t){super(ht,"solid",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[ce](t){return t?t[ce]():"#FFFFFF"}};Vw=class Vw extends Qt{static{d(this,"Speak")}constructor(t){super(ht,"speak"),this.disable=Ot({data:t.disable,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.id=t.id||"",this.priority=et(t.priority,["custom","caption","name","toolTip"]),this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}};Ww=class Ww extends Y{static{d(this,"Stipple")}constructor(t){super(ht,"stipple",!0),this.id=t.id||"",this.rate=Ot({data:t.rate,defaultValue:50,validate:d((e)=>e>=0&&e<=100,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[ce](t){let e=this.rate/100;return de.makeHexColor(Math.round(t.value.r*(1-e)+this.value.r*e),Math.round(t.value.g*(1-e)+this.value.g*e),Math.round(t.value.b*(1-e)+this.value.b*e))}};Gd=class Gd extends Y{static{d(this,"Subform")}constructor(t){super(ht,"subform",!0),this.access=et(t.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=Ot({data:t.allowMacro,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.anchorType=et(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=Ot({data:t.colSpan,defaultValue:1,validate:d((e)=>e>=1||e===-1,"validate")}),this.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map((e)=>e==="-1"?-1:vt(e)),this.h=t.h?vt(t.h):"",this.hAlign=et(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=et(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=t.locale||"",this.maxH=vt(t.maxH,"0pt"),this.maxW=vt(t.maxW,"0pt"),this.mergeMode=et(t.mergeMode,["consumeData","matchTemplate"]),this.minH=vt(t.minH,"0pt"),this.minW=vt(t.minW,"0pt"),this.name=t.name||"",this.presence=et(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=Ei(t.relevant),this.restoreState=et(t.restoreState,["manual","auto"]),this.scope=et(t.scope,["name","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?vt(t.w):"",this.x=vt(t.x,"0pt"),this.y=vt(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 F,this.breakAfter=new F,this.breakBefore=new F,this.connect=new F,this.draw=new F,this.event=new F,this.exObject=new F,this.exclGroup=new F,this.field=new F,this.proto=new F,this.setProperty=new F,this.subform=new F,this.subformSet=new F}[Ve](){let t=this[zt]();return t instanceof hf?t[Ve]():t}[Ua](){return!0}[Hn](){return this.layout.endsWith("-tb")&&this[K].attempt===0&&this[K].numberInLine>0||this[zt]()[Hn]()}*[_r](){yield*of(this)}[Tl](){return Fd(this)}[Ba](t,e){Ed(this,t,e)}[Pa](){return Md(this)}[Mn](){let t=this[Ve]();return t[Mn]()?this[K]._isSplittable!==void 0?this[K]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[K]._isSplittable=!1,!1):this.keep&&this.keep.intact!=="none"?(this[K]._isSplittable=!1,!1):t.layout?.endsWith("-tb")&&t[K].numberInLine!==0?!1:(this[K]._isSplittable=!0,!0):!1}[Dt](t){if(Pl(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){let v=new Dd({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});v[ve]=this[ve],this[_e](v),this.breakAfter.push(v)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){let v=new Rd({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});v[ve]=this[ve],this[_e](v),this.breakBefore.push(v)}if(this.break.overflowTarget!==""){let v=new zd({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});v[ve]=this[ve],this[_e](v),this.overflow.push(v)}this[na](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return Tt.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&T("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){let v=this.breakBefore.children[0];if(t1(v))return Tt.breakNode(v)}if(this[K]?.afterBreakAfter)return Tt.EMPTY;Ml(this);let e=[],s={id:this[ye],class:[]};nf(this,s.class),this[K]||=Object.create(null),Object.assign(this[K],{children:e,line:null,attributes:s,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 i=this[Ge](),n=i[K].noLayoutFailure,a=this[Mn]();if(a||Rl(this),!Bl(this,t))return Tt.FAILURE;let r=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){let v=this[Ve]().columnWidths;Array.isArray(v)&&v.length>0&&(this[K].columnWidths=v,this[K].currentColumn=0)}let o=Os(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),l=["xfaSubform"],c=qd(this);if(c&&l.push(c),s.style=o,s.class=l,this.name&&(s.xfaName=this.name),this.overflow){let v=this.overflow[Es]();v.addLeader&&(v.addLeader=!1,e1(this,v.leader,t))}this[Gr]();let h=this.layout==="lr-tb"||this.layout==="rl-tb",f=h?uh:1;for(;this[K].attempt<f;this[K].attempt++){h&&this[K].attempt===uh-1&&(this[K].numberInLine=0);let v=this[fa]({filter:r,include:!0});if(v.success)break;if(v.isBreak())return this[ni](),v;if(h&&this[K].attempt===0&&this[K].numberInLine===0&&!i[K].noLayoutFailure){this[K].attempt=f;break}}if(this[ni](),a||Hl(this),i[K].noLayoutFailure=n,this[K].attempt===f)return this.overflow&&(this[Ge]()[K].overflowNode=this.overflow),a||delete this[K],Tt.FAILURE;if(this.overflow){let v=this.overflow[Es]();v.addTrailer&&(v.addTrailer=!1,e1(this,v.trailer,t))}let u=0,p=0;this.margin&&(u=this.margin.leftInset+this.margin.rightInset,p=this.margin.topInset+this.margin.bottomInset);let m=Math.max(this[K].width+u,this.w||0),g=Math.max(this[K].height+p,this.h||0),w=[this.x,this.y,m,g];if(this.w===""&&(o.width=_t(m)),this.h===""&&(o.height=_t(g)),(o.width==="0px"||o.height==="0px")&&e.length===0)return Tt.EMPTY;let b={name:"div",attributes:s,children:e};Dl(this,s);let j=Tt.success(la(this,b),w);if(this.breakAfter.children.length>=1){let v=this.breakAfter.children[0];if(t1(v))return this[K].afterBreakAfter=j,Tt.breakNode(v)}return delete this[K],j}};hf=class hf extends Y{static{d(this,"SubformSet")}constructor(t){super(ht,"subformSet",!0),this.id=t.id||"",this.name=t.name||"",this.relation=et(t.relation,["ordered","choice","unordered"]),this.relevant=Ei(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 F,this.breakBefore=new F,this.subform=new F,this.subformSet=new F}*[_r](){yield*of(this)}[Ve](){let t=this[zt]();for(;!(t instanceof Gd);)t=t[zt]();return t}[Ua](){return!0}};Kw=class Kw extends De{static{d(this,"SubjectDN")}constructor(t){super(ht,"subjectDN"),this.delimiter=t.delimiter||",",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[ke](){this[Z]=new Map(this[Z].split(this.delimiter).map((t)=>(t=t.split("=",2),t[0]=t[0].trim(),t)))}};Yw=class Yw extends Y{static{d(this,"SubjectDNs")}constructor(t){super(ht,"subjectDNs",!0),this.id=t.id||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.subjectDN=new F}};Xw=class Xw extends Y{static{d(this,"Submit")}constructor(t){super(ht,"submit",!0),this.embedPDF=Ot({data:t.embedPDF,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.format=et(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=t.id||"",this.target=t.target||"",this.textEncoding=El({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:d((e)=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/),"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.xdpContent=t.xdpContent||"",this.encrypt=null,this.encryptData=new F,this.signData=new F}};ff=class ff extends Y{static{d(this,"Template")}constructor(t){super(ht,"template",!0),this.baseProfile=et(t.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new F}[ke](){this.subform.children.length===0&&T("XFA - No subforms in template node."),this.subform.children.length>=2&&T("XFA - Several subforms in template node: please file a bug."),this[Li]=Oj}[Mn](){return!0}[In](t,e){return t.startsWith("#")?[this[or].get(t.slice(1))]:jn(this,e,t,!0,!0)}*[p2](){if(!this.subform.children.length)return Tt.success({name:"div",children:[]});this[K]={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[br]();let e=t.pageSet.pageArea.children,s={name:"div",children:[]},i=null,n=null,a=null;if(t.breakBefore.children.length>=1?(n=t.breakBefore.children[0],a=n.target):t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1?(n=t.subform.children[0].breakBefore.children[0],a=n.target):t.break?.beforeTarget?(n=t.break,a=n.beforeTarget):t.subform.children.length>=1&&t.subform.children[0].break?.beforeTarget&&(n=t.subform.children[0].break,a=n.beforeTarget),n){let p=this[In](a,n[zt]());p instanceof Na&&(i=p,n[K]={})}i||=e[0],i[K]={numberOfUse:1};let r=i[zt]();r[K]={numberOfUse:1,pageIndex:r.pageArea.children.indexOf(i),pageSetIndex:0};let o,l=null,c=null,h=!0,f=0,u=0;for(;;){if(h)f=0;else if(s.children.pop(),++f===_j)return T("XFA - Something goes wrong: please file a bug."),s;o=null,this[K].currentPageArea=i;let p=i[Dt]().html;s.children.push(p),l&&(this[K].noLayoutFailure=!0,p.children.push(l[Dt](i[K].space).html),l=null),c&&(this[K].noLayoutFailure=!0,p.children.push(c[Dt](i[K].space).html),c=null);let m=i.contentArea.children,g=p.children.filter((b)=>b.attributes.class.includes("xfaContentarea"));h=!1,this[K].firstUnsplittable=null,this[K].noLayoutFailure=!1;let w=d((b)=>{let j=t[Tl]();j&&(h||=j.children?.length>0,g[b].children.push(j))},"flush");for(let b=u,j=m.length;b<j;b++){let v=this[K].currentContentArea=m[b],q={width:v.w,height:v.h};u=0,l&&(g[b].children.push(l[Dt](q).html),l=null),c&&(g[b].children.push(c[Dt](q).html),c=null);let x=t[Dt](q);if(x.success)return x.html?(h||=x.html.children?.length>0,g[b].children.push(x.html)):!h&&s.children.length>1&&s.children.pop(),s;if(x.isBreak()){let k=x.breakNode;if(w(b),k.targetType==="auto")continue;k.leader&&(l=this[In](k.leader,k[zt]()),l=l?l[0]:null),k.trailer&&(c=this[In](k.trailer,k[zt]()),c=c?c[0]:null),k.targetType==="pageArea"?(o=k[K].target,b=1/0):k[K].target?(o=k[K].target,u=k[K].index+1,b=1/0):b=k[K].index;continue}if(this[K].overflowNode){let k=this[K].overflowNode;this[K].overflowNode=null;let A=k[Es](),S=A.target;A.addLeader=A.leader!==null,A.addTrailer=A.trailer!==null,w(b);let I=b;if(b=1/0,S instanceof Na)o=S;else if(S instanceof lf){let E=m.indexOf(S);E!==-1?E>I?b=E-1:u=E:(o=S[zt](),u=o.contentArea.children.indexOf(S))}continue}w(b)}this[K].pageNumber+=1,o&&(o[ul]()?o[K].numberOfUse+=1:o=null),i=o||i[yn](),yield null}}};$d=class $d extends De{static{d(this,"Text")}constructor(t){super(ht,"text"),this.id=t.id||"",this.maxChars=Ot({data:t.maxChars,defaultValue:0,validate:d((e)=>e>=0,"validate")}),this.name=t.name||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}[Jh](){return!0}[rn](t){return t[$e]===We.xhtml.id?(this[Z]=t,!0):(T(`XFA - Invalid content in Text: ${t[fe]}.`),!1)}[Bn](t){this[Z]instanceof Y||super[Bn](t)}[ke](){typeof this[Z]=="string"&&(this[Z]=this[Z].replaceAll(`\r
74
+ `,`
75
+ `))}[Es](){return typeof this[Z]=="string"?this[Z].split(/[\u2029\u2028\n]/).filter((t)=>!!t).join(`
76
+ `):this[Z][ls]()}[Dt](t){if(typeof this[Z]=="string"){let e=Nn(this[Z]).html;return this[Z].includes("\u2029")?(e.name="div",e.children=[],this[Z].split("\u2029").map((s)=>s.split(/[\u2028\n]/).flatMap((i)=>[{name:"span",value:i},{name:"br"}])).forEach((s)=>{e.children.push({name:"p",children:s})})):/[\u2028\n]/.test(this[Z])&&(e.name="div",e.children=[],this[Z].split(/[\u2028\n]/).forEach((s)=>{e.children.push({name:"span",value:s},{name:"br"})})),Tt.success(e)}return this[Z][Dt](t)}};Vd=class Vd extends Y{static{d(this,"TextEdit")}constructor(t){super(ht,"textEdit",!0),this.allowRichText=Ot({data:t.allowRichText,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.hScrollPolicy=et(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.multiLine=Ot({data:t.multiLine,defaultValue:"",validate:d((e)=>e===0||e===1,"validate")}),this.use=t.use||"",this.usehref=t.usehref||"",this.vScrollPolicy=et(t.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[Dt](t){let e=Os(this,"border","font","margin"),s,i=this[zt]()[zt]();return this.multiLine===""&&(this.multiLine=i instanceof Nd?1:0),this.multiLine===1?s={name:"textarea",attributes:{dataId:i[Ti]?.[ye]||i[ye],fieldId:i[ye],class:["xfaTextfield"],style:e,"aria-label":ua(i),"aria-required":!1}}:s={name:"input",attributes:{type:"text",dataId:i[Ti]?.[ye]||i[ye],fieldId:i[ye],class:["xfaTextfield"],style:e,"aria-label":ua(i),"aria-required":!1}},$r(i)&&(s.attributes["aria-required"]=!0,s.attributes.required=!0),Tt.success({name:"label",attributes:{class:["xfaLabel"]},children:[s]})}};Qw=class Qw extends Qt{static{d(this,"Time")}constructor(t){super(ht,"time"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[ke](){let t=this[Z].trim();this[Z]=t?new Date(t):null}[Dt](t){return Nn(this[Z]?this[Z].toString():"")}};Jw=class Jw extends Y{static{d(this,"TimeStamp")}constructor(t){super(ht,"timeStamp"),this.id=t.id||"",this.server=t.server||"",this.type=et(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}};Zw=class Zw extends Qt{static{d(this,"ToolTip")}constructor(t){super(ht,"toolTip"),this.id=t.id||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}};t9=class t9 extends Y{static{d(this,"Traversal")}constructor(t){super(ht,"traversal",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.traverse=new F}};e9=class e9 extends Y{static{d(this,"Traverse")}constructor(t){super(ht,"traverse",!0),this.id=t.id||"",this.operation=et(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}[fl](){return!1}};uf=class uf extends Y{static{d(this,"Ui")}constructor(t){super(ht,"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}[Es](){if(this[K]===void 0){for(let t of Object.getOwnPropertyNames(this)){if(t==="extras"||t==="picture")continue;let e=this[t];if(e instanceof Y)return this[K]=e,e}this[K]=null}return this[K]}[Dt](t){let e=this[Es]();return e?e[Dt](t):Tt.EMPTY}};s9=class s9 extends Y{static{d(this,"Validate")}constructor(t){super(ht,"validate",!0),this.formatTest=et(t.formatTest,["warning","disabled","error"]),this.id=t.id||"",this.nullTest=et(t.nullTest,["disabled","error","warning"]),this.scriptTest=et(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}};df=class df extends Y{static{d(this,"Value")}constructor(t){super(ht,"value",!0),this.id=t.id||"",this.override=Ot({data:t.override,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.relevant=Ei(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}[ri](t){let e=this[zt]();if(e instanceof cf&&e.ui?.imageEdit){this.image||(this.image=new pw({}),this[_e](this.image)),this.image[Z]=t[Z];return}let s=t[fe];if(this[s]!==null){this[s][Z]=t[Z];return}for(let i of Object.getOwnPropertyNames(this)){let n=this[i];n instanceof Y&&(this[i]=null,this[na](n))}this[t[fe]]=t,this[_e](t)}[ls](){if(this.exData)return typeof this.exData[Z]=="string"?this.exData[Z].trim():this.exData[Z][ls]().trim();for(let t of Object.getOwnPropertyNames(this)){if(t==="image")continue;let e=this[t];if(e instanceof Y)return(e[Z]||"").toString().trim()}return null}[Dt](t){for(let e of Object.getOwnPropertyNames(this)){let s=this[e];if(s instanceof Y)return s[Dt](t)}return Tt.EMPTY}};i9=class i9 extends Y{static{d(this,"Variables")}constructor(t){super(ht,"variables",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new F,this.date=new F,this.dateTime=new F,this.decimal=new F,this.exData=new F,this.float=new F,this.image=new F,this.integer=new F,this.manifest=new F,this.script=new F,this.text=new F,this.time=new F}[fl](){return!0}};gh=class gh{static{d(this,"TemplateNamespace")}static[Yi](t,e){if(gh.hasOwnProperty(t)){let s=gh[t](e);return s[d2](e),s}}static appearanceFilter(t){return new S2(t)}static arc(t){return new Bd(t)}static area(t){return new C2(t)}static assist(t){return new I2(t)}static barcode(t){return new T2(t)}static bind(t){return new F2(t)}static bindItems(t){return new dh(t)}static bookend(t){return new E2(t)}static boolean(t){return new M2(t)}static border(t){return new Pd(t)}static break(t){return new B2(t)}static breakAfter(t){return new Dd(t)}static breakBefore(t){return new Rd(t)}static button(t){return new P2(t)}static calculate(t){return new D2(t)}static caption(t){return new R2(t)}static certificate(t){return new H2(t)}static certificates(t){return new _2(t)}static checkButton(t){return new Hd(t)}static choiceList(t){return new _d(t)}static color(t){return new O2(t)}static comb(t){return new N2(t)}static connect(t){return new L2(t)}static contentArea(t){return new lf(t)}static corner(t){return new Od(t)}static date(t){return new z2(t)}static dateTime(t){return new U2(t)}static dateTimeEdit(t){return new G2(t)}static decimal(t){return new $2(t)}static defaultUi(t){return new V2(t)}static desc(t){return new W2(t)}static digestMethod(t){return new K2(t)}static digestMethods(t){return new Y2(t)}static draw(t){return new Nd(t)}static edge(t){return new Vr(t)}static encoding(t){return new X2(t)}static encodings(t){return new Q2(t)}static encrypt(t){return new J2(t)}static encryptData(t){return new Z2(t)}static encryption(t){return new tw(t)}static encryptionMethod(t){return new ew(t)}static encryptionMethods(t){return new sw(t)}static event(t){return new Uj(t)}static exData(t){return new iw(t)}static exObject(t){return new nw(t)}static exclGroup(t){return new Ld(t)}static execute(t){return new aw(t)}static extras(t){return new rw(t)}static field(t){return new cf(t)}static fill(t){return new ow(t)}static filter(t){return new lw(t)}static float(t){return new cw(t)}static font(t){return new hw(t)}static format(t){return new fw(t)}static handler(t){return new uw(t)}static hyphenation(t){return new dw(t)}static image(t){return new pw(t)}static imageEdit(t){return new mw(t)}static integer(t){return new gw(t)}static issuers(t){return new bw(t)}static items(t){return new ph(t)}static keep(t){return new ww(t)}static keyUsage(t){return new yw(t)}static line(t){return new jw(t)}static linear(t){return new vw(t)}static lockDocument(t){return new kw(t)}static manifest(t){return new qw(t)}static margin(t){return new xw(t)}static mdp(t){return new Aw(t)}static medium(t){return new Sw(t)}static message(t){return new Cw(t)}static numericEdit(t){return new Iw(t)}static occur(t){return new Tw(t)}static oid(t){return new Fw(t)}static oids(t){return new Ew(t)}static overflow(t){return new zd(t)}static pageArea(t){return new Na(t)}static pageSet(t){return new pl(t)}static para(t){return new Mw(t)}static passwordEdit(t){return new Bw(t)}static pattern(t){return new Pw(t)}static picture(t){return new Dw(t)}static proto(t){return new Rw(t)}static radial(t){return new Hw(t)}static reason(t){return new _w(t)}static reasons(t){return new Ow(t)}static rectangle(t){return new Ud(t)}static ref(t){return new Nw(t)}static script(t){return new Lw(t)}static setProperty(t){return new mh(t)}static signData(t){return new zw(t)}static signature(t){return new Uw(t)}static signing(t){return new Gw(t)}static solid(t){return new $w(t)}static speak(t){return new Vw(t)}static stipple(t){return new Ww(t)}static subform(t){return new Gd(t)}static subformSet(t){return new hf(t)}static subjectDN(t){return new Kw(t)}static subjectDNs(t){return new Yw(t)}static submit(t){return new Xw(t)}static template(t){return new ff(t)}static text(t){return new $d(t)}static textEdit(t){return new Vd(t)}static time(t){return new Qw(t)}static timeStamp(t){return new Jw(t)}static toolTip(t){return new Zw(t)}static traversal(t){return new t9(t)}static traverse(t){return new e9(t)}static ui(t){return new uf(t)}static validate(t){return new s9(t)}static value(t){return new df(t)}static variables(t){return new i9(t)}};Bp=We.datasets.id;d(Co,"createText");n9=class n9{static{d(this,"Binder")}constructor(t){this.root=t,this.datasets=t.datasets,this.data=t.datasets?.data||new on(We.datasets.id,"data"),this.emptyMerge=this.data[ys]().length===0,this.root.form=this.form=t.template[zi]()}_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,e,s){if(t[Ti]=e,t[hl]())if(e[wr]()){let i=e[bd]();t[ri](Co(i))}else if(t instanceof cf&&t.ui?.choiceList?.open==="multiSelect"){let i=e[ys]().map((n)=>n[Z].trim()).join(`
77
+ `);t[ri](Co(i))}else this._isConsumeData()&&T("XFA - Nodes haven't the same type.");else!e[wr]()||this._isMatchTemplate()?this._bindElement(t,e):T("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(t,e,s,i){if(!t)return null;let n,a;for(let r=0;r<3;r++){for(n=s[Oo](t,!1,!0);a=n.next().value,!!a;)if(e===a[wr]())return a;if(s[$e]===We.datasets.id&&s[fe]==="data")break;s=s[zt]()}return i?(n=this.data[Oo](t,!0,!1),a=n.next().value,a||(n=this.data[Vu](t,!0),a=n.next().value,a?.[wr]())?a:null):null}_setProperties(t,e){if(t.hasOwnProperty("setProperty"))for(let{ref:s,target:i,connection:n}of t.setProperty.children){if(n||!s)continue;let a=jn(this.root,e,s,!1,!1);if(!a){T(`XFA - Invalid reference: ${s}.`);continue}let[r]=a;if(!r[Jn](this.data)){T("XFA - Invalid node: must be a data node.");continue}let o=jn(this.root,t,i,!1,!1);if(!o){T(`XFA - Invalid target: ${i}.`);continue}let[l]=o;if(!l[Jn](t)){T("XFA - Invalid target: must be a property or subproperty.");continue}let c=l[zt]();if(l instanceof mh||c instanceof mh){T("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(l instanceof dh||c instanceof dh){T("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}let h=r[ls](),f=l[fe];if(l instanceof ef){let u=Object.create(null);u[f]=h;let p=Reflect.construct(Object.getPrototypeOf(c).constructor,[u]);c[f]=p[f];continue}if(!l.hasOwnProperty(Z)){T("XFA - Invalid node to use in setProperty");continue}l[Ti]=r,l[Z]=h,l[ke]()}}_bindItems(t,e){if(!t.hasOwnProperty("items")||!t.hasOwnProperty("bindItems")||t.bindItems.isEmpty())return;for(let n of t.items.children)t[na](n);t.items.clear();let s=new ph({}),i=new ph({});t[_e](s),t.items.push(s),t[_e](i),t.items.push(i);for(let{ref:n,labelRef:a,valueRef:r,connection:o}of t.bindItems.children){if(o||!n)continue;let l=jn(this.root,e,n,!1,!1);if(!l){T(`XFA - Invalid reference: ${n}.`);continue}for(let c of l){if(!c[Jn](this.datasets)){T(`XFA - Invalid ref (${n}): must be a datasets child.`);continue}let h=jn(this.root,c,a,!0,!1);if(!h){T(`XFA - Invalid label: ${a}.`);continue}let[f]=h;if(!f[Jn](this.datasets)){T("XFA - Invalid label: must be a datasets child.");continue}let u=jn(this.root,c,r,!0,!1);if(!u){T(`XFA - Invalid value: ${r}.`);continue}let[p]=u;if(!p[Jn](this.datasets)){T("XFA - Invalid value: must be a datasets child.");continue}let m=Co(f[ls]()),g=Co(p[ls]());s[_e](m),s.text.push(m),i[_e](g),i.text.push(g)}}}_bindOccurrences(t,e,s){let i;if(e.length>1&&(i=t[zi](),i[na](i.occur),i.occur=null),this._bindValue(t,e[0],s),this._setProperties(t,e[0]),this._bindItems(t,e[0]),e.length===1)return;let n=t[zt](),a=t[fe],r=n[Wu](t);for(let o=1,l=e.length;o<l;o++){let c=e[o],h=i[zi]();n[a].push(h),n[Nc](r+o,h),this._bindValue(h,c,s),this._setProperties(h,c),this._bindItems(h,c)}}_createOccurrences(t){if(!this.emptyMerge)return;let{occur:e}=t;if(!e||e.initial<=1)return;let s=t[zt](),i=t[fe];if(!(s[i]instanceof F))return;let n;t.name?n=s[i].children.filter((o)=>o.name===t.name).length:n=s[i].children.length;let a=s[Wu](t)+1,r=e.initial-n;if(r){let o=t[zi]();o[na](o.occur),o.occur=null,s[i].push(o),s[Nc](a,o);for(let l=1;l<r;l++){let c=o[zi]();s[i].push(c),s[Nc](a+l,c)}}}_getOccurInfo(t){let{name:e,occur:s}=t;if(!s||!e)return[1,1];let i=s.max===-1?1/0:s.max;return[s.min,i]}_setAndBind(t,e){this._setProperties(t,e),this._bindItems(t,e),this._bindElement(t,e)}_bindElement(t,e){let s=[];this._createOccurrences(t);for(let i of t[ys]()){if(i[Ti])continue;if(this._mergeMode===void 0&&i[fe]==="subform"){this._mergeMode=i.mergeMode==="consumeData";let h=e[ys]();if(h.length>0)this._bindOccurrences(i,[h[0]],null);else if(this.emptyMerge){let f=e[$e]===Bp?-1:e[$e],u=i[Ti]=new on(f,i.name||"root");e[_e](u),this._bindElement(i,u)}continue}if(!i[Ua]())continue;let n=!1,a=null,r=null,o=null;if(i.bind){switch(i.bind.match){case"none":this._setAndBind(i,e);continue;case"global":n=!0;break;case"dataRef":if(!i.bind.ref){T(`XFA - ref is empty in node ${i[fe]}.`),this._setAndBind(i,e);continue}r=i.bind.ref;break}i.bind.picture&&(a=i.bind.picture[Z])}let[l,c]=this._getOccurInfo(i);if(r)if(o=jn(this.root,e,r,!0,!1),o===null){if(o=q2(this.data,e,r),!o)continue;this._isConsumeData()&&(o[sn]=!0),this._setAndBind(i,o);continue}else this._isConsumeData()&&(o=o.filter((h)=>!h[sn])),o.length>c?o=o.slice(0,c):o.length===0&&(o=null),o&&this._isConsumeData()&&o.forEach((h)=>{h[sn]=!0});else{if(!i.name){this._setAndBind(i,e);continue}if(this._isConsumeData()){let h=[];for(;h.length<c;){let f=this._findDataByNameToConsume(i.name,i[hl](),e,n);if(!f)break;f[sn]=!0,h.push(f)}o=h.length>0?h:null}else{if(o=e[Oo](i.name,!1,this.emptyMerge).next().value,!o){if(l===0){s.push(i);continue}let h=e[$e]===Bp?-1:e[$e];o=i[Ti]=new on(h,i.name),this.emptyMerge&&(o[sn]=!0),e[_e](o),this._setAndBind(i,o);continue}this.emptyMerge&&(o[sn]=!0),o=[o]}}o?this._bindOccurrences(i,o,a):l>0?this._setAndBind(i,e):s.push(i)}s.forEach((i)=>i[zt]()[na](i))}};a9=class a9{static{d(this,"DataHandler")}constructor(t,e){this.data=e,this.dataset=t.datasets||null}serialize(t){let e=[[-1,this.data[ys]()]];for(;e.length>0;){let i=e.at(-1),[n,a]=i;if(n+1===a.length){e.pop();continue}let r=a[++i[0]],o=t.get(r[ye]);if(o)r[ri](o);else{let c=r[f2]();for(let h of c.values()){let f=t.get(h[ye]);if(f){h[ri](f);break}}}let l=r[ys]();l.length>0&&e.push([-1,l])}let s=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(let i of this.dataset[ys]())i[fe]!=="data"&&i[Lo](s);return this.data[Lo](s),s.push("</xfa:datasets>"),s.join("")}};at=We.config.id;r9=class r9 extends Y{static{d(this,"Acrobat")}constructor(t){super(at,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new F}};o9=class o9 extends Y{static{d(this,"Acrobat7")}constructor(t){super(at,"acrobat7",!0),this.dynamicRender=null}};l9=class l9 extends be{static{d(this,"ADBE_JSConsole")}constructor(t){super(at,"ADBE_JSConsole",["delegate","Enable","Disable"])}};c9=class c9 extends be{static{d(this,"ADBE_JSDebugger")}constructor(t){super(at,"ADBE_JSDebugger",["delegate","Enable","Disable"])}};h9=class h9 extends ss{static{d(this,"AddSilentPrint")}constructor(t){super(at,"addSilentPrint")}};f9=class f9 extends ss{static{d(this,"AddViewerPreferences")}constructor(t){super(at,"addViewerPreferences")}};u9=class u9 extends jd{static{d(this,"AdjustData")}constructor(t){super(at,"adjustData")}};d9=class d9 extends Mi{static{d(this,"AdobeExtensionLevel")}constructor(t){super(at,"adobeExtensionLevel",0,(e)=>e>=1&&e<=8)}};p9=class p9 extends Y{static{d(this,"Agent")}constructor(t){super(at,"agent",!0),this.name=t.name?t.name.trim():"",this.common=new F}};m9=class m9 extends De{static{d(this,"AlwaysEmbed")}constructor(t){super(at,"alwaysEmbed")}};g9=class g9 extends Qt{static{d(this,"Amd")}constructor(t){super(at,"amd")}};b9=class b9 extends Y{static{d(this,"config_Area")}constructor(t){super(at,"area"),this.level=Ot({data:t.level,defaultValue:0,validate:d((e)=>e>=1&&e<=3,"validate")}),this.name=et(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}};w9=class w9 extends be{static{d(this,"Attributes")}constructor(t){super(at,"attributes",["preserve","delegate","ignore"])}};y9=class y9 extends be{static{d(this,"AutoSave")}constructor(t){super(at,"autoSave",["disabled","enabled"])}};j9=class j9 extends Qt{static{d(this,"Base")}constructor(t){super(at,"base")}};v9=class v9 extends Y{static{d(this,"BatchOutput")}constructor(t){super(at,"batchOutput"),this.format=et(t.format,["none","concat","zip","zipCompress"])}};k9=class k9 extends De{static{d(this,"BehaviorOverride")}constructor(t){super(at,"behaviorOverride")}[ke](){this[Z]=new Map(this[Z].trim().split(/\s+/).filter((t)=>t.includes(":")).map((t)=>t.split(":",2)))}};q9=class q9 extends Y{static{d(this,"Cache")}constructor(t){super(at,"cache",!0),this.templateCache=null}};x9=class x9 extends ss{static{d(this,"Change")}constructor(t){super(at,"change")}};A9=class A9 extends Y{static{d(this,"Common")}constructor(t){super(at,"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 F}};S9=class S9 extends Y{static{d(this,"Compress")}constructor(t){super(at,"compress"),this.scope=et(t.scope,["imageOnly","document"])}};C9=class C9 extends ss{static{d(this,"CompressLogicalStructure")}constructor(t){super(at,"compressLogicalStructure")}};I9=class I9 extends jd{static{d(this,"CompressObjectStream")}constructor(t){super(at,"compressObjectStream")}};T9=class T9 extends Y{static{d(this,"Compression")}constructor(t){super(at,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}};F9=class F9 extends Y{static{d(this,"Config")}constructor(t){super(at,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new F}};E9=class E9 extends be{static{d(this,"Conformance")}constructor(t){super(at,"conformance",["A","B"])}};M9=class M9 extends ss{static{d(this,"ContentCopy")}constructor(t){super(at,"contentCopy")}};B9=class B9 extends Mi{static{d(this,"Copies")}constructor(t){super(at,"copies",1,(e)=>e>=1)}};P9=class P9 extends Qt{static{d(this,"Creator")}constructor(t){super(at,"creator")}};D9=class D9 extends Mi{static{d(this,"CurrentPage")}constructor(t){super(at,"currentPage",0,(e)=>e>=0)}};R9=class R9 extends Y{static{d(this,"Data")}constructor(t){super(at,"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 F,this.transform=new F}};H9=class H9 extends Y{static{d(this,"Debug")}constructor(t){super(at,"debug",!0),this.uri=null}};_9=class _9 extends De{static{d(this,"DefaultTypeface")}constructor(t){super(at,"defaultTypeface"),this.writingScript=et(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}};O9=class O9 extends be{static{d(this,"Destination")}constructor(t){super(at,"destination",["pdf","pcl","ps","webClient","zpl"])}};N9=class N9 extends ss{static{d(this,"DocumentAssembly")}constructor(t){super(at,"documentAssembly")}};L9=class L9 extends Y{static{d(this,"Driver")}constructor(t){super(at,"driver",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}};z9=class z9 extends be{static{d(this,"DuplexOption")}constructor(t){super(at,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}};U9=class U9 extends be{static{d(this,"DynamicRender")}constructor(t){super(at,"dynamicRender",["forbidden","required"])}};G9=class G9 extends ss{static{d(this,"Embed")}constructor(t){super(at,"embed")}};$9=class $9 extends ss{static{d(this,"config_Encrypt")}constructor(t){super(at,"encrypt")}};V9=class V9 extends Y{static{d(this,"config_Encryption")}constructor(t){super(at,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}};W9=class W9 extends be{static{d(this,"EncryptionLevel")}constructor(t){super(at,"encryptionLevel",["40bit","128bit"])}};K9=class K9 extends Qt{static{d(this,"Enforce")}constructor(t){super(at,"enforce")}};Y9=class Y9 extends Y{static{d(this,"Equate")}constructor(t){super(at,"equate"),this.force=Ot({data:t.force,defaultValue:1,validate:d((e)=>e===0,"validate")}),this.from=t.from||"",this.to=t.to||""}};X9=class X9 extends Y{static{d(this,"EquateRange")}constructor(t){super(at,"equateRange"),this.from=t.from||"",this.to=t.to||"",this._unicodeRange=t.unicodeRange||""}get unicodeRange(){let t=[],e=/U\+([0-9a-fA-F]+)/,s=this._unicodeRange;for(let i of s.split(",").map((n)=>n.trim()).filter((n)=>!!n))i=i.split("-",2).map((n)=>{let a=n.match(e);return a?parseInt(a[1],16):0}),i.length===1&&i.push(i[0]),t.push(i);return lt(this,"unicodeRange",t)}};Q9=class Q9 extends De{static{d(this,"Exclude")}constructor(t){super(at,"exclude")}[ke](){this[Z]=this[Z].trim().split(/\s+/).filter((t)=>t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t))}};J9=class J9 extends Qt{static{d(this,"ExcludeNS")}constructor(t){super(at,"excludeNS")}};Z9=class Z9 extends be{static{d(this,"FlipLabel")}constructor(t){super(at,"flipLabel",["usePrinterSetting","on","off"])}};t5=class t5 extends Y{static{d(this,"config_FontInfo")}constructor(t){super(at,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new F,this.defaultTypeface=new F,this.neverEmbed=new F}};e5=class e5 extends ss{static{d(this,"FormFieldFilling")}constructor(t){super(at,"formFieldFilling")}};s5=class s5 extends Qt{static{d(this,"GroupParent")}constructor(t){super(at,"groupParent")}};i5=class i5 extends be{static{d(this,"IfEmpty")}constructor(t){super(at,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}};n5=class n5 extends Qt{static{d(this,"IncludeXDPContent")}constructor(t){super(at,"includeXDPContent")}};a5=class a5 extends be{static{d(this,"IncrementalLoad")}constructor(t){super(at,"incrementalLoad",["none","forwardOnly"])}};r5=class r5 extends ss{static{d(this,"IncrementalMerge")}constructor(t){super(at,"incrementalMerge")}};o5=class o5 extends ss{static{d(this,"Interactive")}constructor(t){super(at,"interactive")}};l5=class l5 extends be{static{d(this,"Jog")}constructor(t){super(at,"jog",["usePrinterSetting","none","pageSet"])}};c5=class c5 extends Y{static{d(this,"LabelPrinter")}constructor(t){super(at,"labelPrinter",!0),this.name=et(t.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}};h5=class h5 extends be{static{d(this,"Layout")}constructor(t){super(at,"layout",["paginate","panel"])}};f5=class f5 extends Mi{static{d(this,"Level")}constructor(t){super(at,"level",0,(e)=>e>0)}};u5=class u5 extends ss{static{d(this,"Linearized")}constructor(t){super(at,"linearized")}};d5=class d5 extends Qt{static{d(this,"Locale")}constructor(t){super(at,"locale")}};p5=class p5 extends Qt{static{d(this,"LocaleSet")}constructor(t){super(at,"localeSet")}};m5=class m5 extends Y{static{d(this,"Log")}constructor(t){super(at,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}};g5=class g5 extends Y{static{d(this,"MapElement")}constructor(t){super(at,"map",!0),this.equate=new F,this.equateRange=new F}};b5=class b5 extends Y{static{d(this,"MediumInfo")}constructor(t){super(at,"mediumInfo",!0),this.map=null}};w5=class w5 extends Y{static{d(this,"config_Message")}constructor(t){super(at,"message",!0),this.msgId=null,this.severity=null}};y5=class y5 extends Y{static{d(this,"Messaging")}constructor(t){super(at,"messaging",!0),this.message=new F}};j5=class j5 extends be{static{d(this,"Mode")}constructor(t){super(at,"mode",["append","overwrite"])}};v5=class v5 extends ss{static{d(this,"ModifyAnnots")}constructor(t){super(at,"modifyAnnots")}};k5=class k5 extends Mi{static{d(this,"MsgId")}constructor(t){super(at,"msgId",1,(e)=>e>=1)}};q5=class q5 extends Qt{static{d(this,"NameAttr")}constructor(t){super(at,"nameAttr")}};x5=class x5 extends De{static{d(this,"NeverEmbed")}constructor(t){super(at,"neverEmbed")}};A5=class A5 extends Mi{static{d(this,"NumberOfCopies")}constructor(t){super(at,"numberOfCopies",null,(e)=>e>=2&&e<=5)}};S5=class S5 extends Y{static{d(this,"OpenAction")}constructor(t){super(at,"openAction",!0),this.destination=null}};C5=class C5 extends Y{static{d(this,"Output")}constructor(t){super(at,"output",!0),this.to=null,this.type=null,this.uri=null}};I5=class I5 extends Qt{static{d(this,"OutputBin")}constructor(t){super(at,"outputBin")}};T5=class T5 extends Y{static{d(this,"OutputXSL")}constructor(t){super(at,"outputXSL",!0),this.uri=null}};F5=class F5 extends be{static{d(this,"Overprint")}constructor(t){super(at,"overprint",["none","both","draw","field"])}};E5=class E5 extends Qt{static{d(this,"Packets")}constructor(t){super(at,"packets")}[ke](){this[Z]!=="*"&&(this[Z]=this[Z].trim().split(/\s+/).filter((t)=>["config","datasets","template","xfdf","xslt"].includes(t)))}};M5=class M5 extends Y{static{d(this,"PageOffset")}constructor(t){super(at,"pageOffset"),this.x=Ot({data:t.x,defaultValue:"useXDCSetting",validate:d((e)=>!0,"validate")}),this.y=Ot({data:t.y,defaultValue:"useXDCSetting",validate:d((e)=>!0,"validate")})}};B5=class B5 extends Qt{static{d(this,"PageRange")}constructor(t){super(at,"pageRange")}[ke](){let t=this[Z].trim().split(/\s+/).map((s)=>parseInt(s,10)),e=[];for(let s=0,i=t.length;s<i;s+=2)e.push(t.slice(s,s+2));this[Z]=e}};P5=class P5 extends be{static{d(this,"Pagination")}constructor(t){super(at,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}};D5=class D5 extends be{static{d(this,"PaginationOverride")}constructor(t){super(at,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}};R5=class R5 extends Mi{static{d(this,"Part")}constructor(t){super(at,"part",1,(e)=>!1)}};H5=class H5 extends Y{static{d(this,"Pcl")}constructor(t){super(at,"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}};_5=class _5 extends Y{static{d(this,"Pdf")}constructor(t){super(at,"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}};O5=class O5 extends Y{static{d(this,"Pdfa")}constructor(t){super(at,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}};N5=class N5 extends Y{static{d(this,"Permissions")}constructor(t){super(at,"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}};L5=class L5 extends ss{static{d(this,"PickTrayByPDFSize")}constructor(t){super(at,"pickTrayByPDFSize")}};z5=class z5 extends Qt{static{d(this,"config_Picture")}constructor(t){super(at,"picture")}};U5=class U5 extends ss{static{d(this,"PlaintextMetadata")}constructor(t){super(at,"plaintextMetadata")}};G5=class G5 extends be{static{d(this,"Presence")}constructor(t){super(at,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}};$5=class $5 extends Y{static{d(this,"Present")}constructor(t){super(at,"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 F,this.labelPrinter=new F,this.pcl=new F,this.pdf=new F,this.ps=new F,this.submitUrl=new F,this.webClient=new F,this.zpl=new F}};V5=class V5 extends ss{static{d(this,"Print")}constructor(t){super(at,"print")}};W5=class W5 extends ss{static{d(this,"PrintHighQuality")}constructor(t){super(at,"printHighQuality")}};K5=class K5 extends be{static{d(this,"PrintScaling")}constructor(t){super(at,"printScaling",["appdefault","noScaling"])}};Y5=class Y5 extends Qt{static{d(this,"PrinterName")}constructor(t){super(at,"printerName")}};X5=class X5 extends Qt{static{d(this,"Producer")}constructor(t){super(at,"producer")}};Q5=class Q5 extends Y{static{d(this,"Ps")}constructor(t){super(at,"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}};Gj=class extends De{static{d(this,"Range")}constructor(t){super(at,"range")}[ke](){this[Z]=this[Z].split(",",2).map((t)=>t.split("-").map((e)=>parseInt(e.trim(),10))).filter((t)=>t.every((e)=>!isNaN(e))).map((t)=>(t.length===1&&t.push(t[0]),t))}};J5=class J5 extends De{static{d(this,"Record")}constructor(t){super(at,"record")}[ke](){this[Z]=this[Z].trim();let t=parseInt(this[Z],10);!isNaN(t)&&t>=0&&(this[Z]=t)}};Z5=class Z5 extends De{static{d(this,"Relevant")}constructor(t){super(at,"relevant")}[ke](){this[Z]=this[Z].trim().split(/\s+/)}};t3=class t3 extends De{static{d(this,"Rename")}constructor(t){super(at,"rename")}[ke](){this[Z]=this[Z].trim(),(this[Z].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[Z]))&&T("XFA - Rename: invalid XFA name")}};e3=class e3 extends be{static{d(this,"RenderPolicy")}constructor(t){super(at,"renderPolicy",["server","client"])}};s3=class s3 extends be{static{d(this,"RunScripts")}constructor(t){super(at,"runScripts",["both","client","none","server"])}};i3=class i3 extends Y{static{d(this,"config_Script")}constructor(t){super(at,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}};n3=class n3 extends be{static{d(this,"ScriptModel")}constructor(t){super(at,"scriptModel",["XFA","none"])}};a3=class a3 extends be{static{d(this,"Severity")}constructor(t){super(at,"severity",["ignore","error","information","trace","warning"])}};r3=class r3 extends Y{static{d(this,"SilentPrint")}constructor(t){super(at,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}};o3=class o3 extends Y{static{d(this,"Staple")}constructor(t){super(at,"staple"),this.mode=et(t.mode,["usePrinterSetting","on","off"])}};l3=class l3 extends Qt{static{d(this,"StartNode")}constructor(t){super(at,"startNode")}};c3=class c3 extends Mi{static{d(this,"StartPage")}constructor(t){super(at,"startPage",0,(e)=>!0)}};h3=class h3 extends be{static{d(this,"SubmitFormat")}constructor(t){super(at,"submitFormat",["html","delegate","fdf","xml","pdf"])}};f3=class f3 extends Qt{static{d(this,"SubmitUrl")}constructor(t){super(at,"submitUrl")}};u3=class u3 extends Mi{static{d(this,"SubsetBelow")}constructor(t){super(at,"subsetBelow",100,(e)=>e>=0&&e<=100)}};d3=class d3 extends ss{static{d(this,"SuppressBanner")}constructor(t){super(at,"suppressBanner")}};p3=class p3 extends ss{static{d(this,"Tagged")}constructor(t){super(at,"tagged")}};m3=class m3 extends Y{static{d(this,"config_Template")}constructor(t){super(at,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}};g3=class g3 extends be{static{d(this,"Threshold")}constructor(t){super(at,"threshold",["trace","error","information","warning"])}};b3=class b3 extends be{static{d(this,"To")}constructor(t){super(at,"to",["null","memory","stderr","stdout","system","uri"])}};w3=class w3 extends Y{static{d(this,"TemplateCache")}constructor(t){super(at,"templateCache"),this.maxEntries=Ot({data:t.maxEntries,defaultValue:5,validate:d((e)=>e>=0,"validate")})}};y3=class y3 extends Y{static{d(this,"Trace")}constructor(t){super(at,"trace",!0),this.area=new F}};j3=class j3 extends Y{static{d(this,"Transform")}constructor(t){super(at,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}};v3=class v3 extends be{static{d(this,"Type")}constructor(t){super(at,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}};k3=class k3 extends Qt{static{d(this,"Uri")}constructor(t){super(at,"uri")}};q3=class q3 extends be{static{d(this,"config_Validate")}constructor(t){super(at,"validate",["preSubmit","prePrint","preExecute","preSave"])}};x3=class x3 extends De{static{d(this,"ValidateApprovalSignatures")}constructor(t){super(at,"validateApprovalSignatures")}[ke](){this[Z]=this[Z].trim().split(/\s+/).filter((t)=>["docReady","postSign"].includes(t))}};A3=class A3 extends be{static{d(this,"ValidationMessaging")}constructor(t){super(at,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}};S3=class S3 extends be{static{d(this,"Version")}constructor(t){super(at,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}};C3=class C3 extends Y{static{d(this,"VersionControl")}constructor(t){super(at,"VersionControl"),this.outputBelow=et(t.outputBelow,["warn","error","update"]),this.sourceAbove=et(t.sourceAbove,["warn","error"]),this.sourceBelow=et(t.sourceBelow,["update","maintain"])}};I3=class I3 extends Y{static{d(this,"ViewerPreferences")}constructor(t){super(at,"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}};T3=class T3 extends Y{static{d(this,"WebClient")}constructor(t){super(at,"webClient",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}};F3=class F3 extends be{static{d(this,"Whitespace")}constructor(t){super(at,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}};E3=class E3 extends De{static{d(this,"Window")}constructor(t){super(at,"window")}[ke](){let t=this[Z].split(",",2).map((e)=>parseInt(e.trim(),10));if(t.some((e)=>isNaN(e))){this[Z]=[0,0];return}t.length===1&&t.push(t[0]),this[Z]=t}};M3=class M3 extends Y{static{d(this,"Xdc")}constructor(t){super(at,"xdc",!0),this.uri=new F,this.xsl=new F}};B3=class B3 extends Y{static{d(this,"Xdp")}constructor(t){super(at,"xdp",!0),this.packets=null}};P3=class P3 extends Y{static{d(this,"Xsl")}constructor(t){super(at,"xsl",!0),this.debug=null,this.uri=null}};D3=class D3 extends Y{static{d(this,"Zpl")}constructor(t){super(at,"zpl",!0),this.name=t.name?t.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}};bh=class bh{static{d(this,"ConfigNamespace")}static[Yi](t,e){if(bh.hasOwnProperty(t))return bh[t](e)}static acrobat(t){return new r9(t)}static acrobat7(t){return new o9(t)}static ADBE_JSConsole(t){return new l9(t)}static ADBE_JSDebugger(t){return new c9(t)}static addSilentPrint(t){return new h9(t)}static addViewerPreferences(t){return new f9(t)}static adjustData(t){return new u9(t)}static adobeExtensionLevel(t){return new d9(t)}static agent(t){return new p9(t)}static alwaysEmbed(t){return new m9(t)}static amd(t){return new g9(t)}static area(t){return new b9(t)}static attributes(t){return new w9(t)}static autoSave(t){return new y9(t)}static base(t){return new j9(t)}static batchOutput(t){return new v9(t)}static behaviorOverride(t){return new k9(t)}static cache(t){return new q9(t)}static change(t){return new x9(t)}static common(t){return new A9(t)}static compress(t){return new S9(t)}static compressLogicalStructure(t){return new C9(t)}static compressObjectStream(t){return new I9(t)}static compression(t){return new T9(t)}static config(t){return new F9(t)}static conformance(t){return new E9(t)}static contentCopy(t){return new M9(t)}static copies(t){return new B9(t)}static creator(t){return new P9(t)}static currentPage(t){return new D9(t)}static data(t){return new R9(t)}static debug(t){return new H9(t)}static defaultTypeface(t){return new _9(t)}static destination(t){return new O9(t)}static documentAssembly(t){return new N9(t)}static driver(t){return new L9(t)}static duplexOption(t){return new z9(t)}static dynamicRender(t){return new U9(t)}static embed(t){return new G9(t)}static encrypt(t){return new $9(t)}static encryption(t){return new V9(t)}static encryptionLevel(t){return new W9(t)}static enforce(t){return new K9(t)}static equate(t){return new Y9(t)}static equateRange(t){return new X9(t)}static exclude(t){return new Q9(t)}static excludeNS(t){return new J9(t)}static flipLabel(t){return new Z9(t)}static fontInfo(t){return new t5(t)}static formFieldFilling(t){return new e5(t)}static groupParent(t){return new s5(t)}static ifEmpty(t){return new i5(t)}static includeXDPContent(t){return new n5(t)}static incrementalLoad(t){return new a5(t)}static incrementalMerge(t){return new r5(t)}static interactive(t){return new o5(t)}static jog(t){return new l5(t)}static labelPrinter(t){return new c5(t)}static layout(t){return new h5(t)}static level(t){return new f5(t)}static linearized(t){return new u5(t)}static locale(t){return new d5(t)}static localeSet(t){return new p5(t)}static log(t){return new m5(t)}static map(t){return new g5(t)}static mediumInfo(t){return new b5(t)}static message(t){return new w5(t)}static messaging(t){return new y5(t)}static mode(t){return new j5(t)}static modifyAnnots(t){return new v5(t)}static msgId(t){return new k5(t)}static nameAttr(t){return new q5(t)}static neverEmbed(t){return new x5(t)}static numberOfCopies(t){return new A5(t)}static openAction(t){return new S5(t)}static output(t){return new C5(t)}static outputBin(t){return new I5(t)}static outputXSL(t){return new T5(t)}static overprint(t){return new F5(t)}static packets(t){return new E5(t)}static pageOffset(t){return new M5(t)}static pageRange(t){return new B5(t)}static pagination(t){return new P5(t)}static paginationOverride(t){return new D5(t)}static part(t){return new R5(t)}static pcl(t){return new H5(t)}static pdf(t){return new _5(t)}static pdfa(t){return new O5(t)}static permissions(t){return new N5(t)}static pickTrayByPDFSize(t){return new L5(t)}static picture(t){return new z5(t)}static plaintextMetadata(t){return new U5(t)}static presence(t){return new G5(t)}static present(t){return new $5(t)}static print(t){return new V5(t)}static printHighQuality(t){return new W5(t)}static printScaling(t){return new K5(t)}static printerName(t){return new Y5(t)}static producer(t){return new X5(t)}static ps(t){return new Q5(t)}static range(t){return new Gj(t)}static record(t){return new J5(t)}static relevant(t){return new Z5(t)}static rename(t){return new t3(t)}static renderPolicy(t){return new e3(t)}static runScripts(t){return new s3(t)}static script(t){return new i3(t)}static scriptModel(t){return new n3(t)}static severity(t){return new a3(t)}static silentPrint(t){return new r3(t)}static staple(t){return new o3(t)}static startNode(t){return new l3(t)}static startPage(t){return new c3(t)}static submitFormat(t){return new h3(t)}static submitUrl(t){return new f3(t)}static subsetBelow(t){return new u3(t)}static suppressBanner(t){return new d3(t)}static tagged(t){return new p3(t)}static template(t){return new m3(t)}static templateCache(t){return new w3(t)}static threshold(t){return new g3(t)}static to(t){return new b3(t)}static trace(t){return new y3(t)}static transform(t){return new j3(t)}static type(t){return new v3(t)}static uri(t){return new k3(t)}static validate(t){return new q3(t)}static validateApprovalSignatures(t){return new x3(t)}static validationMessaging(t){return new A3(t)}static version(t){return new S3(t)}static versionControl(t){return new C3(t)}static viewerPreferences(t){return new I3(t)}static webClient(t){return new T3(t)}static whitespace(t){return new F3(t)}static window(t){return new E3(t)}static xdc(t){return new M3(t)}static xdp(t){return new B3(t)}static xsl(t){return new P3(t)}static zpl(t){return new D3(t)}};Bi=We.connectionSet.id;R3=class R3 extends Y{static{d(this,"ConnectionSet")}constructor(t){super(Bi,"connectionSet",!0),this.wsdlConnection=new F,this.xmlConnection=new F,this.xsdConnection=new F}};H3=class H3 extends Y{static{d(this,"EffectiveInputPolicy")}constructor(t){super(Bi,"effectiveInputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};_3=class _3 extends Y{static{d(this,"EffectiveOutputPolicy")}constructor(t){super(Bi,"effectiveOutputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};O3=class O3 extends Qt{static{d(this,"Operation")}constructor(t){super(Bi,"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||""}};N3=class N3 extends Qt{static{d(this,"RootElement")}constructor(t){super(Bi,"rootElement"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};L3=class L3 extends Qt{static{d(this,"SoapAction")}constructor(t){super(Bi,"soapAction"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};z3=class z3 extends Qt{static{d(this,"SoapAddress")}constructor(t){super(Bi,"soapAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};U3=class U3 extends Qt{static{d(this,"connection_set_Uri")}constructor(t){super(Bi,"uri"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};G3=class G3 extends Qt{static{d(this,"WsdlAddress")}constructor(t){super(Bi,"wsdlAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}};$3=class $3 extends Y{static{d(this,"WsdlConnection")}constructor(t){super(Bi,"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}};V3=class V3 extends Y{static{d(this,"XmlConnection")}constructor(t){super(Bi,"xmlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.uri=null}};W3=class W3 extends Y{static{d(this,"XsdConnection")}constructor(t){super(Bi,"xsdConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.rootElement=null,this.uri=null}};wh=class wh{static{d(this,"ConnectionSetNamespace")}static[Yi](t,e){if(wh.hasOwnProperty(t))return wh[t](e)}static connectionSet(t){return new R3(t)}static effectiveInputPolicy(t){return new H3(t)}static effectiveOutputPolicy(t){return new _3(t)}static operation(t){return new O3(t)}static rootElement(t){return new N3(t)}static soapAction(t){return new L3(t)}static soapAddress(t){return new z3(t)}static uri(t){return new U3(t)}static wsdlAddress(t){return new G3(t)}static wsdlConnection(t){return new $3(t)}static xmlConnection(t){return new V3(t)}static xsdConnection(t){return new W3(t)}};s1=We.datasets.id;K3=class K3 extends on{static{d(this,"datasets_Data")}constructor(t){super(s1,"data",t)}[No](){return!0}};Y3=class Y3 extends Y{static{d(this,"Datasets")}constructor(t){super(s1,"datasets",!0),this.data=null,this.Signature=null}[rn](t){let e=t[fe];(e==="data"&&t[$e]===s1||e==="Signature"&&t[$e]===We.signature.id)&&(this[e]=t),this[_e](t)}};yh=class yh{static{d(this,"DatasetsNamespace")}static[Yi](t,e){if(yh.hasOwnProperty(t))return yh[t](e)}static datasets(t){return new Y3(t)}static data(t){return new K3(t)}};Ne=We.localeSet.id;X3=class X3 extends Y{static{d(this,"CalendarSymbols")}constructor(t){super(Ne,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new F(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new F(2)}};Q3=class Q3 extends Qt{static{d(this,"CurrencySymbol")}constructor(t){super(Ne,"currencySymbol"),this.name=et(t.name,["symbol","isoname","decimal"])}};J3=class J3 extends Y{static{d(this,"CurrencySymbols")}constructor(t){super(Ne,"currencySymbols",!0),this.currencySymbol=new F(3)}};Z3=class Z3 extends Qt{static{d(this,"DatePattern")}constructor(t){super(Ne,"datePattern"),this.name=et(t.name,["full","long","med","short"])}};t6=class t6 extends Y{static{d(this,"DatePatterns")}constructor(t){super(Ne,"datePatterns",!0),this.datePattern=new F(4)}};e6=class e6 extends De{static{d(this,"DateTimeSymbols")}constructor(t){super(Ne,"dateTimeSymbols")}};s6=class s6 extends Qt{static{d(this,"Day")}constructor(t){super(Ne,"day")}};i6=class i6 extends Y{static{d(this,"DayNames")}constructor(t){super(Ne,"dayNames",!0),this.abbr=Ot({data:t.abbr,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.day=new F(7)}};n6=class n6 extends Qt{static{d(this,"Era")}constructor(t){super(Ne,"era")}};a6=class a6 extends Y{static{d(this,"EraNames")}constructor(t){super(Ne,"eraNames",!0),this.era=new F(2)}};r6=class r6 extends Y{static{d(this,"locale_set_Locale")}constructor(t){super(Ne,"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}};o6=class o6 extends Y{static{d(this,"locale_set_LocaleSet")}constructor(t){super(Ne,"localeSet",!0),this.locale=new F}};l6=class l6 extends Qt{static{d(this,"Meridiem")}constructor(t){super(Ne,"meridiem")}};c6=class c6 extends Y{static{d(this,"MeridiemNames")}constructor(t){super(Ne,"meridiemNames",!0),this.meridiem=new F(2)}};h6=class h6 extends Qt{static{d(this,"Month")}constructor(t){super(Ne,"month")}};f6=class f6 extends Y{static{d(this,"MonthNames")}constructor(t){super(Ne,"monthNames",!0),this.abbr=Ot({data:t.abbr,defaultValue:0,validate:d((e)=>e===1,"validate")}),this.month=new F(12)}};u6=class u6 extends Qt{static{d(this,"NumberPattern")}constructor(t){super(Ne,"numberPattern"),this.name=et(t.name,["full","long","med","short"])}};d6=class d6 extends Y{static{d(this,"NumberPatterns")}constructor(t){super(Ne,"numberPatterns",!0),this.numberPattern=new F(4)}};p6=class p6 extends Qt{static{d(this,"NumberSymbol")}constructor(t){super(Ne,"numberSymbol"),this.name=et(t.name,["decimal","grouping","percent","minus","zero"])}};m6=class m6 extends Y{static{d(this,"NumberSymbols")}constructor(t){super(Ne,"numberSymbols",!0),this.numberSymbol=new F(5)}};g6=class g6 extends Qt{static{d(this,"TimePattern")}constructor(t){super(Ne,"timePattern"),this.name=et(t.name,["full","long","med","short"])}};b6=class b6 extends Y{static{d(this,"TimePatterns")}constructor(t){super(Ne,"timePatterns",!0),this.timePattern=new F(4)}};w6=class w6 extends Y{static{d(this,"TypeFace")}constructor(t){super(Ne,"typeFace",!0),this.name=t.name|""}};y6=class y6 extends Y{static{d(this,"TypeFaces")}constructor(t){super(Ne,"typeFaces",!0),this.typeFace=new F}};jh=class jh{static{d(this,"LocaleSetNamespace")}static[Yi](t,e){if(jh.hasOwnProperty(t))return jh[t](e)}static calendarSymbols(t){return new X3(t)}static currencySymbol(t){return new Q3(t)}static currencySymbols(t){return new J3(t)}static datePattern(t){return new Z3(t)}static datePatterns(t){return new t6(t)}static dateTimeSymbols(t){return new e6(t)}static day(t){return new s6(t)}static dayNames(t){return new i6(t)}static era(t){return new n6(t)}static eraNames(t){return new a6(t)}static locale(t){return new r6(t)}static localeSet(t){return new o6(t)}static meridiem(t){return new l6(t)}static meridiemNames(t){return new c6(t)}static month(t){return new h6(t)}static monthNames(t){return new f6(t)}static numberPattern(t){return new u6(t)}static numberPatterns(t){return new d6(t)}static numberSymbol(t){return new p6(t)}static numberSymbols(t){return new m6(t)}static timePattern(t){return new g6(t)}static timePatterns(t){return new b6(t)}static typeFace(t){return new w6(t)}static typeFaces(t){return new y6(t)}};$j=We.signature.id;j6=class j6 extends Y{static{d(this,"signature_Signature")}constructor(t){super($j,"signature",!0)}};vh=class vh{static{d(this,"SignatureNamespace")}static[Yi](t,e){if(vh.hasOwnProperty(t))return vh[t](e)}static signature(t){return new j6(t)}};Vj=We.stylesheet.id;v6=class v6 extends Y{static{d(this,"Stylesheet")}constructor(t){super(Vj,"stylesheet",!0)}};kh=class kh{static{d(this,"StylesheetNamespace")}static[Yi](t,e){if(kh.hasOwnProperty(t))return kh[t](e)}static stylesheet(t){return new v6(t)}};Wj=We.xdp.id;k6=class k6 extends Y{static{d(this,"xdp_Xdp")}constructor(t){super(Wj,"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 F,this.template=null}[Ku](t){let e=We[t[fe]];return e&&t[$e]===e.id}};qh=class qh{static{d(this,"XdpNamespace")}static[Yi](t,e){if(qh.hasOwnProperty(t))return qh[t](e)}static xdp(t){return new k6(t)}};Kj=We.xhtml.id,jc=Symbol(),Yj=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"]),Xj=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",(t)=>t==="none"?"none":"normal"],["xfa-font-horizontal-scale",(t)=>`scaleX(${Math.max(0,parseInt(t)/100).toFixed(2)})`],["xfa-font-vertical-scale",(t)=>`scaleY(${Math.max(0,parseInt(t)/100).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(t,e)=>(t=e.fontSize=Math.abs(vt(t)),_t(0.99*t))],["letter-spacing",(t)=>_t(vt(t))],["line-height",(t)=>_t(vt(t))],["margin",(t)=>_t(vt(t))],["margin-bottom",(t)=>_t(vt(t))],["margin-left",(t)=>_t(vt(t))],["margin-right",(t)=>_t(vt(t))],["margin-top",(t)=>_t(vt(t))],["text-indent",(t)=>_t(vt(t))],["font-family",(t)=>t],["vertical-align",(t)=>_t(vt(t))]]),Qj=/\s+/g,Jj=/[\r\n]+/g,Zj=/\r\n?/g;d(q6,"mapStyle");d(x6,"checkStyle");tv=new Set(["body","html"]);li=class li extends on{static{d(this,"XhtmlObject")}constructor(t,e){super(Kj,e),this[jc]=!1,this.style=t.style||""}[Fi](t){super[Fi](t),this.style=x6(this)}[Jh](){return!tv.has(this[fe])}[Bn](t,e=!1){e?this[jc]=!0:(t=t.replaceAll(Jj,""),this.style.includes("xfa-spacerun:yes")||(t=t.replaceAll(Qj," "))),t&&(this[Z]+=t)}[cn](t,e=!0){let s=Object.create(null),i={top:NaN,bottom:NaN,left:NaN,right:NaN},n=null;for(let[a,r]of this.style.split(";").map((o)=>o.split(":",2)))switch(a){case"font-family":s.typeface=Fl(r);break;case"font-size":s.size=vt(r);break;case"font-weight":s.weight=r;break;case"font-style":s.posture=r;break;case"letter-spacing":s.letterSpacing=vt(r);break;case"margin":let o=r.split(/ \t/).map((l)=>vt(l));switch(o.length){case 1:i.top=i.bottom=i.left=i.right=o[0];break;case 2:i.top=i.bottom=o[0],i.left=i.right=o[1];break;case 3:i.top=o[0],i.bottom=o[2],i.left=i.right=o[1];break;case 4:i.top=o[0],i.left=o[1],i.bottom=o[2],i.right=o[3];break}break;case"margin-top":i.top=vt(r);break;case"margin-bottom":i.bottom=vt(r);break;case"margin-left":i.left=vt(r);break;case"margin-right":i.right=vt(r);break;case"line-height":n=vt(r);break}if(t.pushData(s,i,n),this[Z])t.addString(this[Z]);else for(let a of this[ys]()){if(a[fe]==="#text"){t.addString(a[Z]);continue}a[cn](t)}e&&t.popFont()}[Dt](t){let e=[];if(this[K]={children:e},this[fa]({}),e.length===0&&!this[Z])return Tt.EMPTY;let s;return this[jc]?s=this[Z]?this[Z].replaceAll(Zj,`
78
+ `):void 0:s=this[Z]||void 0,Tt.success({name:this[fe],attributes:{href:this.href,style:q6(this.style,this,this[jc])},children:e,value:s})}};A6=class A6 extends li{static{d(this,"A")}constructor(t){super(t,"a"),this.href=Id(t.href)||""}};S6=class S6 extends li{static{d(this,"B")}constructor(t){super(t,"b")}[cn](t){t.pushFont({weight:"bold"}),super[cn](t),t.popFont()}};C6=class C6 extends li{static{d(this,"Body")}constructor(t){super(t,"body")}[Dt](t){let e=super[Dt](t),{html:s}=e;return s?(s.name="div",s.attributes.class=["xfaRich"],e):Tt.EMPTY}};I6=class I6 extends li{static{d(this,"Br")}constructor(t){super(t,"br")}[ls](){return`
79
+ `}[cn](t){t.addString(`
80
+ `)}[Dt](t){return Tt.success({name:"br"})}};T6=class T6 extends li{static{d(this,"Html")}constructor(t){super(t,"html")}[Dt](t){let e=[];if(this[K]={children:e},this[fa]({}),e.length===0)return Tt.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[Z]||""});if(e.length===1){let s=e[0];if(s.attributes?.class.includes("xfaRich"))return Tt.success(s)}return Tt.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:e})}};F6=class F6 extends li{static{d(this,"I")}constructor(t){super(t,"i")}[cn](t){t.pushFont({posture:"italic"}),super[cn](t),t.popFont()}};E6=class E6 extends li{static{d(this,"Li")}constructor(t){super(t,"li")}};M6=class M6 extends li{static{d(this,"Ol")}constructor(t){super(t,"ol")}};B6=class B6 extends li{static{d(this,"P")}constructor(t){super(t,"p")}[cn](t){super[cn](t,!1),t.addString(`
81
+ `),t.addPara(),t.popFont()}[ls](){return this[zt]()[ys]().at(-1)===this?super[ls]():super[ls]()+`
82
+ `}};P6=class P6 extends li{static{d(this,"Span")}constructor(t){super(t,"span")}};D6=class D6 extends li{static{d(this,"Sub")}constructor(t){super(t,"sub")}};R6=class R6 extends li{static{d(this,"Sup")}constructor(t){super(t,"sup")}};H6=class H6 extends li{static{d(this,"Ul")}constructor(t){super(t,"ul")}};Or=class Or{static{d(this,"XhtmlNamespace")}static[Yi](t,e){if(Or.hasOwnProperty(t))return Or[t](e)}static a(t){return new A6(t)}static b(t){return new S6(t)}static body(t){return new C6(t)}static br(t){return new I6(t)}static html(t){return new T6(t)}static i(t){return new F6(t)}static li(t){return new E6(t)}static ol(t){return new M6(t)}static p(t){return new B6(t)}static span(t){return new P6(t)}static sub(t){return new D6(t)}static sup(t){return new R6(t)}static ul(t){return new H6(t)}};Pp={config:bh,connection:wh,datasets:yh,localeSet:jh,signature:vh,stylesheet:kh,template:gh,xdp:qh,xhtml:Or};i1=class i1{static{d(this,"UnknownNamespace")}constructor(t){this.namespaceId=t}[Yi](t,e){return new on(this.namespaceId,t,e)}};_6=class _6 extends Y{static{d(this,"Root")}constructor(t){super(-1,"root",Object.create(null)),this.element=null,this[or]=t}[rn](t){return this.element=t,!0}[ke](){super[ke](),this.element.template instanceof ff&&(this[or].set(u2,this.element),this.element.template[Ao](this[or]),this.element.template[or]=this[or])}};O6=class O6 extends Y{static{d(this,"Empty")}constructor(){super(-1,"",Object.create(null))}[rn](t){return!1}};N6=class N6{static{d(this,"Builder")}constructor(t=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(We).map(({id:e})=>e)),this._currentNamespace=t||new i1(++this._nextNsId)}buildRoot(t){return new _6(t)}build({nsPrefix:t,name:e,attributes:s,namespace:i,prefixes:n}){let a=i!==null;if(a&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(i)),n&&this._addNamespacePrefix(n),s.hasOwnProperty(Ca)){let o=Pp.datasets,l=s[Ca],c=null;for(let[h,f]of Object.entries(l))if(this._getNamespaceToUse(h)===o){c={xfa:f};break}c?s[Ca]=c:delete s[Ca]}let r=this._getNamespaceToUse(t)?.[Yi](e,s)||new O6;return r[No]()&&this._nsAgnosticLevel++,(a||n||r[No]())&&(r[Oc]={hasNamespace:a,prefixes:n,nsAgnostic:r[No]()}),r}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(t){let e=this._namespaces.get(t);if(e)return e;for(let[s,{check:i}]of Object.entries(We))if(i(t)){if(e=Pp[s],e)return this._namespaces.set(t,e),e;break}return e=new i1(++this._nextNsId),this._namespaces.set(t,e),e}_addNamespacePrefix(t){for(let{prefix:e,value:s}of t){let i=this._searchNamespace(s);this._namespacePrefixes.getOrInsertComputed(e,Nh).push(i)}}_getNamespaceToUse(t){if(!t)return this._currentNamespace;let e=this._namespacePrefixes.get(t);return e?.length>0?e.at(-1):(T(`Unknown namespace prefix: ${t}.`),null)}clean(t){let{hasNamespace:e,prefixes:s,nsAgnostic:i}=t;e&&(this._currentNamespace=this._namespaceStack.pop()),s&&s.forEach(({prefix:n})=>{this._namespacePrefixes.get(n).pop()}),i&&this._nsAgnosticLevel--}};xh=class xh extends md{static{d(this,"XFAParser")}constructor(t=null,e=!1){super(),this._builder=new N6(t),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=Js.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=e}parse(t){if(this.parseXml(t),this._errorCode===Js.NoError)return this._current[ke](),this._current.element}onText(t){if(t=t.replace(this._nbsps,(e)=>e.slice(1)+" "),this._richText||this._current[Jh]()){this._current[Bn](t,this._richText);return}this._whiteRegex.test(t)||this._current[Bn](t.trim())}onCdata(t){this._current[Bn](t)}_mkAttributes(t,e){let s=null,i=null,n=Object.create({});for(let{name:a,value:r}of t)if(a==="xmlns")s?T(`XFA - multiple namespace definition in <${e}>`):s=r;else if(a.startsWith("xmlns:")){let o=a.substring(6);i??=[],i.push({prefix:o,value:r})}else{let o=a.indexOf(":");if(o===-1)n[a]=r;else{let l=n[Ca]??=Object.create(null),[c,h]=[a.slice(0,o),a.slice(o+1)],f=l[c]||=Object.create(null);f[h]=r}}return[s,i,n]}_getNameAndPrefix(t,e){let s=t.indexOf(":");return s===-1?[t,null]:[t.substring(s+1),e?"":t.substring(0,s)]}onBeginElement(t,e,s){let[i,n,a]=this._mkAttributes(e,t),[r,o]=this._getNameAndPrefix(t,this._builder.isNsAgnostic()),l=this._builder.build({nsPrefix:o,name:r,attributes:a,namespace:i,prefixes:n});if(l[ve]=this._globalData,s){l[ke](),this._current[rn](l)&&l[Yu](this._ids),l[Fi](this._builder);return}this._stack.push(this._current),this._current=l}onEndElement(t){let e=this._current;if(e[wd]()&&typeof e[Z]=="string"){let s=new xh;s._globalData=this._globalData;let i=s.parse(e[Z]);e[Z]=null,e[rn](i)}e[ke](),this._current=this._stack.pop(),this._current[rn](e)&&e[Yu](this._ids),e[Fi](this._builder)}onError(t){this._errorCode=t}};_l=class _l{static{d(this,"XFAFactory")}constructor(t){try{this.root=new xh().parse(_l._createDocument(t));let e=new n9(this.root);this.form=e.bind(),this.dataHandler=new a9(this.root,e.getData()),this.form[ve].template=this.form}catch(e){T(`XFA - an error occurred during parsing and binding: ${e}`)}}isValid(){return!!(this.root&&this.form)}_createPagesHelper(){let t=this.form[p2]();return new Promise((e,s)=>{let i=d(()=>{try{let n=t.next();n.done?e(n.value):setTimeout(i,0)}catch(n){s(n)}},"nextIteration");setTimeout(i,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map((t)=>{let{width:e,height:s}=t.attributes.style;return[0,0,parseInt(e),parseInt(s)]})}catch(t){T(`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[ve].images=t}setFonts(t){this.form[ve].fontFinder=new b2(t);let e=[];for(let s of this.form[ve].usedTypefaces)s=Fl(s),this.form[ve].fontFinder.find(s)||e.push(s);return e.length>0?e:null}appendFonts(t,e){this.form[ve].fontFinder.add(t,e)}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["/xdp:xdp"]?Object.values(t).join(""):t["xdp:xdp"]}static getRichTextAsHtml(t){if(!t||typeof t!="string")return null;try{let e=new xh(Or,!0).parse(t);if(!["body","xhtml"].includes(e[fe])){let a=Or.body({});a[_e](e),e=a}let s=e[Dt]();if(!s.success)return null;let{html:i}=s,{attributes:n}=i;return n&&(n.class&&(n.class=n.class.filter((a)=>!a.startsWith("xfa"))),n.dir="auto"),{html:i,str:e[ls]()}}catch(e){T(`XFA - an error occurred during parsing of rich text: ${e}`)}return null}};Ii=class Ii{static{d(this,"AnnotationFactory")}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(([e,s,i,n,a,r])=>({pdfManager:t,acroForm:e instanceof B?e:B.empty,xfaDatasets:s,structTreeRoot:i,baseUrl:n,attachments:a,globalColorSpaceCache:r}),(e)=>(T(`createGlobals: "${e}".`),null))}static async create(t,e,s,i,n,a,r,o){let l=n?await this._getPageIndex(t,e,s.pdfManager):null;return s.pdfManager.ensure(this,"_create",[t,e,s,i,n,a,r,l,o])}static _create(t,e,s,i,n=!1,a=null,r=null,o=null,l=null){let c=t.fetchIfRef(e);if(!(c instanceof B))return;let h=c.get("Subtype");if(h=h instanceof tt?h.name:null,r&&!r.has(em[h?.toUpperCase()]))return null;let{acroForm:f,pdfManager:u}=s,p=e instanceof nt?e.toString():`annot_${i.createObjId()}`,m={xref:t,ref:e,dict:c,subtype:h,id:p,annotationGlobals:s,collectFields:n,orphanFields:a,needAppearances:!n&&f.get("NeedAppearances")===!0,pageIndex:o,evaluatorOptions:u.evaluatorOptions,pageRef:l};switch(h){case"Link":return new V6(m);case"Text":return new $6(m);case"Widget":let g=ii({dict:c,key:"FT"});switch(g=g instanceof tt?g.name:null,g){case"Tx":return new z6(m);case"Btn":return new U6(m);case"Ch":return new G6(m);case"Sig":return new Wd(m)}return T(`Unimplemented widget field type "${g}", falling back to base field type.`),new Wi(m);case"Popup":return new pf(m);case"FreeText":return new Lc(m);case"Line":return new W6(m);case"Square":return new K6(m);case"Circle":return new Y6(m);case"PolyLine":return new Kd(m);case"Polygon":return new Yd(m);case"Caret":return new X6(m);case"Ink":return new lr(m);case"Highlight":return new zc(m);case"Underline":return new Q6(m);case"Squiggly":return new J6(m);case"StrikeOut":return new Z6(m);case"Stamp":return new va(m);case"FileAttachment":return new t4(m);default:return n||T(h?`Unimplemented annotation type "${h}", falling back to base annotation.`:"Annotation is missing the required /Subtype."),new Kr(m)}}static async _getPageIndex(t,e,s){try{let i=await t.fetchIfRefAsync(e);if(!(i instanceof B))return-1;let n=i.getRaw("P");if(n instanceof nt)try{return await s.ensureCatalog("getPageIndex",[n])}catch(r){Wt(`_getPageIndex -- not a valid page reference: "${r}".`)}if(i.has("Kids"))return-1;let a=await s.ensureDoc("numPages");for(let r=0;r<a;r++){let o=await s.getPage(r),l=await s.ensure(o,"annotations");for(let c of l)if(c instanceof nt&&Ko(c,e))return r}}catch(i){T(`_getPageIndex: "${i}".`)}return-1}static generateImages(t,e,s){if(!s)return T("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;let i;for(let{bitmapId:n,bitmap:a}of t)a&&(i||=new Map,i.set(n,va.createImage(a,e)));return i}static async saveNewAnnotations(t,e,s,i,n,a){let r,o=[],{isOffscreenCanvasSupported:l}=t.options;for(let c of i)if(!c.deleted)switch(c.annotationType){case Xi.FREETEXT:if(!r){let f=new B(e);f.setIfName("BaseFont","Helvetica"),f.setIfName("Type","Font"),f.setIfName("Subtype","Type1"),f.setIfName("Encoding","WinAnsiEncoding"),r=e.getNewTemporaryRef(),a.put(r,{data:f})}o.push(Lc.createNewAnnotation(e,c,a,{evaluator:t,task:s,baseFontRef:r}));break;case Xi.HIGHLIGHT:c.quadPoints?o.push(zc.createNewAnnotation(e,c,a)):o.push(lr.createNewAnnotation(e,c,a));break;case Xi.INK:o.push(lr.createNewAnnotation(e,c,a));break;case Xi.STAMP:let h=l?await n?.get(c.bitmapId):null;if(h?.imageStream){let{imageStream:f,smaskStream:u}=h;if(u){let m=e.getNewTemporaryRef();a.put(m,{data:u}),f.dict.set("SMask",m)}let p=h.imageRef=e.getNewTemporaryRef();a.put(p,{data:f}),h.imageStream=h.smaskStream=null}o.push(va.createNewAnnotation(e,c,a,{image:h}));break;case Xi.SIGNATURE:o.push(va.createNewAnnotation(e,c,a,{}));break}return{annotations:(await Promise.all(o)).flat()}}static async printNewAnnotations(t,e,s,i,n){if(!i)return null;let{options:a,xref:r}=e,o=[];for(let l of i)if(!l.deleted)switch(l.annotationType){case Xi.FREETEXT:o.push(Lc.createNewPrintAnnotation(t,r,l,{evaluator:e,task:s,evaluatorOptions:a}));break;case Xi.HIGHLIGHT:l.quadPoints?o.push(zc.createNewPrintAnnotation(t,r,l,{evaluatorOptions:a})):o.push(lr.createNewPrintAnnotation(t,r,l,{evaluatorOptions:a}));break;case Xi.INK:o.push(lr.createNewPrintAnnotation(t,r,l,{evaluatorOptions:a}));break;case Xi.STAMP:let c=a.isOffscreenCanvasSupported?await n?.get(l.bitmapId):null;if(c?.imageStream){let{imageStream:h,smaskStream:f}=c;f&&h.dict.set("SMask",f),c.imageRef=new Ur(h,h.length),c.imageStream=c.smaskStream=null}o.push(va.createNewPrintAnnotation(t,r,l,{image:c,evaluatorOptions:a}));break;case Xi.SIGNATURE:o.push(va.createNewPrintAnnotation(t,r,l,{evaluatorOptions:a}));break}return Promise.all(o)}};d(ca,"getRgbColor");d(ks,"getPdfColorArray");d(Wr,"getQuadPoints");d(Ah,"getTransformMatrix");Kr=class Kr{static{d(this,"Annotation")}constructor(t){let{annotationGlobals:e,dict:s,orphanFields:i,ref:n,subtype:a,xref:r}=t,o=i?.get(n);o&&s.set("Parent",o),this.setTitle(s.get("T")),this.setContents(s.get("Contents")),this.setModificationDate(s.get("M")),this.setFlags(s.get("F")),this.setRectangle(s.getArray("Rect")),this.setColor(s.getArray("C")),this.setBorderStyle(s),this.setAppearance(s),this.setOptionalContent(s);let l=s.get("MK");this.setBorderAndBackgroundColors(l),this.setRotation(l,s),this.ref=t.ref instanceof nt?t.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);let c=!!(this.flags&as.LOCKED),h=!!(this.flags&as.LOCKEDCONTENTS);if(this.data={annotationType:em[a?.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,rect:this.rectangle,subtype:a,hasOwnCanvas:!1,noRotate:!!(this.flags&as.NOROTATE),noHTML:c&&h,isEditable:!1,structParent:-1},e.structTreeRoot){let u=s.get("StructParent");this.data.structParent=u=Number.isInteger(u)&&u>=0?u:-1,e.structTreeRoot.addAnnotationIdToPage(t.pageRef,u)}if(t.collectFields){let u=s.get("Kids");if(Array.isArray(u)){let p=[];for(let m of u)m instanceof nt&&p.push(m.toString());p.length!==0&&(this.data.kidIds=p)}this.data.actions=kl(r,s,sm),this.data.fieldName=this._constructFieldName(s),this.data.pageIndex=t.pageIndex}let f=s.get("IT");f instanceof tt&&(this.data.it=f.name),this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(t,e){return!!(t&e)}_buildFlags(t,e){let{flags:s}=this;return t===void 0?e===void 0?void 0:e?s&-5:s&-3|as.PRINT:t?(s|=as.PRINT,e?s&-33|as.HIDDEN:s&-3|as.NOVIEW):(s&=-35,e?s&-5:s|as.PRINT)}_isViewable(t){return!this._hasFlag(t,as.INVISIBLE)&&!this._hasFlag(t,as.NOVIEW)}_isPrintable(t){return this._hasFlag(t,as.PRINT)&&!this._hasFlag(t,as.HIDDEN)&&!this._hasFlag(t,as.INVISIBLE)}mustBeViewed(t,e){let s=t?.get(this.data.id)?.noView;return s!==void 0?!s:this.viewable&&!this._hasFlag(this.flags,as.HIDDEN)}mustBePrinted(t){let e=t?.get(this.data.id)?.noPrint;return e!==void 0?!e:this.printable}mustBeViewedWhenEditing(t,e=null){return t?!this.data.isEditable:!e?.has(this.data.id)}get viewable(){return this.data.quadPoints===null?!1:this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.data.quadPoints===null||this.flags===0?!1:this._isPrintable(this.flags)}_parseStringHelper(t){let e=typeof t=="string"?Xt(t):"",s=e&&fd(e).dir==="rtl"?"rtl":"ltr";return{str:e,dir:s}}setDefaultAppearance(t){let{dict:e,annotationGlobals:s}=t,i=ii({dict:e,key:"DA"})||s.acroForm.get("DA");this._defaultAppearance=typeof i=="string"?i:"",this.data.defaultAppearanceData=Xh(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&as.INVISIBLE&&this.constructor.name!=="Annotation"&&(this.flags^=as.INVISIBLE)}hasFlag(t){return this._hasFlag(this.flags,t)}setRectangle(t){this.rectangle=ln(t,[0,0,0,0])}setColor(t){this.color=ca(t)}setLineEndings(t){if(this.lineEndings=["None","None"],Array.isArray(t)&&t.length===2)for(let e=0;e<2;e++){let s=t[e];if(s instanceof tt)switch(s.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[e]=s.name;continue}T(`Ignoring invalid lineEnding: ${s}`)}}setRotation(t,e){this.rotation=0;let s=t instanceof B?t.get("R")||0:e.get("Rotate")||0;Number.isInteger(s)&&s!==0&&(s%=360,s<0&&(s+=360),s%90===0&&(this.rotation=s))}setBorderAndBackgroundColors(t){t instanceof B?(this.borderColor=ca(t.getArray("BC"),null),this.backgroundColor=ca(t.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(t){if(this.borderStyle=new L6,t instanceof B)if(t.has("BS")){let e=t.get("BS");if(e instanceof B){let s=e.get("Type");(!s||re(s,"Border"))&&(this.borderStyle.setWidth(e.get("W"),this.rectangle),this.borderStyle.setStyle(e.get("S")),this.borderStyle.setDashArray(e.getArray("D")))}}else if(t.has("Border")){let e=t.getArray("Border");Array.isArray(e)&&(e.length>=3?(this.borderStyle.setHorizontalCornerRadius(e[0]),this.borderStyle.setVerticalCornerRadius(e[1]),this.borderStyle.setWidth(e[2],this.rectangle),e.length===4&&this.borderStyle.setDashArray(e[3],!0)):e.length===0&&this.borderStyle.setWidth(0))}else this.borderStyle.setWidth(0)}setAppearance(t){this.appearance=null;let e=t.get("AP");if(!(e instanceof B))return;let s=e.get("N");if(s instanceof Lt){this.appearance=s;return}if(!(s instanceof B))return;let i=t.get("AS");if(!(i instanceof tt)||!s.has(i.name))return;let n=s.get(i.name);n instanceof Lt&&(this.appearance=n)}setOptionalContent(t){this.oc=null;let e=t.get("OC");e instanceof tt?T("setOptionalContent: Support for /Name-entry is not implemented."):e instanceof B&&(this.oc=e)}async loadResources(t,e){let s=await e.dict.getAsync("Resources");return s&&await Rr.load(s,t,s.xref),s}async getOperatorList(t,e,s,i){let{hasOwnCanvas:n,id:a,rect:r}=this.data,o=this.appearance,l=!!(n&&s&zs.DISPLAY);if(l&&(this.width===0||this.height===0))return this.data.hasOwnCanvas=!1,{opList:new vs,separateForm:!1,separateCanvas:!1};if(!o){if(!l)return{opList:new vs,separateForm:!1,separateCanvas:!1};o=new Bs(""),o.dict=new B}let c=o.dict,h=await this.loadResources(eu,o),f=Yo(c.getArray("BBox"),[0,0,1,1]),u=xn(c.getArray("Matrix"),Gi),p=Ah(r,f,u),m=new vs,g;return this.oc&&(g=await t.parseMarkedContentProps(this.oc,null)),g!==void 0&&m.addOp(C.beginMarkedContentProps,["OC",g]),m.addOp(C.beginAnnotation,[a,r,p,u,l]),await t.getOperatorList({stream:o,task:e,resources:h,operatorList:m,fallbackFontDict:this._fallbackFontDict}),m.addOp(C.endAnnotation,[]),g!==void 0&&m.addOp(C.endMarkedContent,[]),this.reset(),{opList:m,separateForm:!1,separateCanvas:l}}async save(t,e,s,i){return null}get overlaysTextContent(){return!1}get hasTextContent(){return!1}async extractTextContent(t,e,s){if(!this.appearance)return;let i=await this.loadResources(su,this.appearance),n=[],a=[],r=null,o={desiredSize:Math.Infinity,ready:!0,enqueue(l,c){for(let h of l.items)h.str!==void 0&&(r||=h.transform.slice(-2),a.push(h.str),h.hasEOL&&(n.push(a.join("").trimEnd()),a.length=0))}};if(await t.getTextContent({stream:this.appearance,task:e,resources:i,includeMarkedContent:!0,keepWhiteSpace:!0,sink:o,viewBox:s}),this.reset(),a.length&&n.push(a.join("").trimEnd()),n.length>1||n[0]){let l=this.appearance.dict,c=Yo(l.getArray("BBox"),null),h=xn(l.getArray("Matrix"),null);this.data.textPosition=this._transformPoint(r,c,h),this.data.textContent=n}}_transformPoint(t,e,s){let{rect:i}=this.data;e||=[0,0,1,1],s||=[1,0,0,1,0,0];let n=Ah(i,e,s);n[4]-=i[0],n[5]-=i[1];let a=t.slice();return de.applyTransform(a,n),de.applyTransform(a,s),a}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 T("Unknown field name, falling back to empty field name."),"";if(!t.has("Parent"))return Xt(t.get("T"));let e=[];t.has("T")&&e.unshift(Xt(t.get("T")));let s=t,i=new Me;for(t.objId&&i.put(t.objId);s.has("Parent")&&(s=s.get("Parent"),!(!(s instanceof B)||s.objId&&i.has(s.objId)));)s.objId&&i.put(s.objId),s.has("T")&&e.unshift(Xt(s.get("T")));return e.join(".")}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}};L6=class L6{static{d(this,"AnnotationBorderStyle")}width=1;rawWidth=1;style=Xa.SOLID;dashArray=[3];horizontalCornerRadius=0;verticalCornerRadius=0;setWidth(t,e=[0,0,0,0]){if(t instanceof tt){this.width=0;return}if(typeof t=="number"){if(t>0){this.rawWidth=t;let s=(e[2]-e[0])/2,i=(e[3]-e[1])/2;s>0&&i>0&&(t>s||t>i)&&(T(`AnnotationBorderStyle.setWidth - ignoring width: ${t}`),t=1)}this.width=t}}setStyle(t){if(t instanceof tt)switch(t.name){case"S":this.style=Xa.SOLID;break;case"D":this.style=Xa.DASHED;break;case"B":this.style=Xa.BEVELED;break;case"I":this.style=Xa.INSET;break;case"U":this.style=Xa.UNDERLINE;break}}setDashArray(t,e=!1){if(Array.isArray(t)){let s=!0,i=!0;for(let n of t)if(+n>=0)n>0&&(i=!1);else{s=!1;break}t.length===0||s&&!i?(this.dashArray=t,e&&this.setStyle(tt.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)}};Vs=class Vs extends Kr{static{d(this,"MarkupAnnotation")}constructor(t){super(t);let{dict:e}=t;if(e.has("IRT")){let i=e.getRaw("IRT");this.data.inReplyTo=i instanceof nt?i.toString():null;let n=e.get("RT");this.data.replyType=n instanceof tt?n.name:Zf.REPLY}let s=null;if(this.data.replyType===Zf.GROUP){let i=e.get("IRT");this.setTitle(i.get("T")),this.data.titleObj=this._title,this.setContents(i.get("Contents")),this.data.contentsObj=this._contents,i.has("CreationDate")?(this.setCreationDate(i.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,i.has("M")?(this.setModificationDate(i.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,s=i.getRaw("Popup"),i.has("C")?(this.setColor(i.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate,s=e.getRaw("Popup"),e.has("C")||(this.data.color=null);this.data.popupRef=s instanceof nt?s.toString():null,e.has("RC")&&(this.data.richText=_l.getRichTextAsHtml(e.get("RC")))}setCreationDate(t){this.creationDate=typeof t=="string"?t:null}_setDefaultAppearance({xref:t,extra:e,strokeColor:s,fillColor:i,blendMode:n,strokeAlpha:a,fillAlpha:r,pointsCallback:o}){let l=this.data.rect=[1/0,1/0,-1/0,-1/0],c=["q"];e&&c.push(e),s&&c.push(`${s[0]} ${s[1]} ${s[2]} RG`),i&&c.push(`${i[0]} ${i[1]} ${i[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 j=0,v=h.length;j<v;j+=8){let q=o(c,h.subarray(j,j+8));de.rectBoundingBox(...q,l)}c.push("Q");let f=new B(t),u=new B(t);u.setIfName("Subtype","Form");let p=new Bs(c.join(" "));p.dict=u,f.set("Fm0",p);let m=new B(t);n&&m.setIfName("BM",n),m.setIfNumber("CA",a),m.setIfNumber("ca",r);let g=new B(t);g.set("GS0",m);let w=new B(t);w.set("ExtGState",g),w.set("XObject",f);let b=new B(t);b.set("Resources",w),b.set("BBox",l),this.appearance=new Bs("/GS0 gs /Fm0 Do"),this.appearance.dict=b,this._streams.push(this.appearance,p)}static async createNewAnnotation(t,e,s,i){let n=e.ref||=t.getNewTemporaryRef(),a=await this.createNewAppearanceStream(e,t,i),r;if(a){let c=t.getNewTemporaryRef();r=this.createNewDict(e,t,{apRef:c}),s.put(c,{data:a})}else r=this.createNewDict(e,t,{});Number.isInteger(e.parentTreeId)&&r.set("StructParent",e.parentTreeId),s.put(n,{data:r});let o={ref:n},{popup:l}=e;if(l){if(l.deleted)return r.delete("Popup"),r.delete("Contents"),r.delete("RC"),o;let c=l.ref||=t.getNewTemporaryRef();l.parent=n;let h=pf.createNewDict(l,t);return s.put(c,{data:h}),r.setIfDefined("Contents",ws(l.contents)),r.set("Popup",c),[o,{ref:c}]}return o}static async createNewPrintAnnotation(t,e,s,i){let n=await this.createNewAppearanceStream(s,e,i),a=this.createNewDict(s,e,n?{ap:n}:{}),r=new this.prototype.constructor({dict:a,xref:e,annotationGlobals:t,evaluatorOptions:i.evaluatorOptions});return s.ref&&(r.ref=r.refToReplace=s.ref),r}};Wi=class Wi extends Kr{static{d(this,"WidgetAnnotation")}constructor(t){super(t);let{dict:e,xref:s,annotationGlobals:i}=t,n=this.data;this._needAppearances=t.needAppearances,n.fieldName===void 0&&(n.fieldName=this._constructFieldName(e)),n.actions===void 0&&(n.actions=kl(s,e,sm));let a=ii({dict:e,key:"V",getArray:!0});n.fieldValue=this._decodeFormValue(a);let r=ii({dict:e,key:"DV",getArray:!0});if(n.defaultFieldValue=this._decodeFormValue(r),a===void 0&&i.xfaDatasets){let f=this._title.str;f&&(this._hasValueFromXFA=!0,n.fieldValue=a=i.xfaDatasets.getValue(f))}a===void 0&&n.defaultFieldValue!==null&&(n.fieldValue=n.defaultFieldValue),n.alternativeText=Xt(e.get("TU")||""),this.setDefaultAppearance(t),n.hasAppearance||=this._needAppearances&&n.fieldValue!==void 0&&n.fieldValue!==null;let o=ii({dict:e,key:"FT"});n.fieldType=o instanceof tt?o.name:null;let l=ii({dict:e,key:"DR"}),c=i.acroForm.get("DR"),h=this.appearance?.dict.get("Resources");this._fieldResources={localResources:l,acroFormResources:c,appearanceResources:h,mergedResources:B.merge({xref:s,dictArray:[l,h,c],mergeSubDicts:!0})},n.fieldFlags=ii({dict:e,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.password=this.hasFieldFlag(Ui.PASSWORD),n.readOnly=this.hasFieldFlag(Ui.READONLY),n.required=this.hasFieldFlag(Ui.REQUIRED),n.hidden=this._hasFlag(n.annotationFlags,as.HIDDEN)||this._hasFlag(n.annotationFlags,as.NOVIEW)}_decodeFormValue(t){return Array.isArray(t)?t.filter((e)=>typeof e=="string").map((e)=>Xt(e)):t instanceof tt?Xt(t.name):typeof t=="string"?Xt(t):null}hasFieldFlag(t){return!!(this.data.fieldFlags&t)}_isViewable(t){return!0}mustBeViewed(t,e){return e?this.viewable:super.mustBeViewed(t,e)&&!this._hasFlag(this.flags,as.NOVIEW)}getRotationMatrix(t){let e=t?.get(this.data.id)?.rotation;return e===void 0&&(e=this.rotation),e===0?Gi:Qo(e,this.width,this.height)}getBorderAndBackgroundAppearances(t){let e=t?.get(this.data.id)?.rotation;if(e===void 0&&(e=this.rotation),!this.backgroundColor&&!this.borderColor)return"";let s=e===0||e===180?`0 0 ${this.width} ${this.height} re`:`0 0 ${this.height} ${this.width} re`,i="";if(this.backgroundColor&&(i=`${Vi(this.backgroundColor,!0)} ${s} f `),this.borderColor){let n=this.borderStyle.width||1;i+=`${n} w ${Vi(this.borderColor,!1)} ${s} S `}return i}async getOperatorList(t,e,s,i){if(s&zs.ANNOTATIONS_FORMS&&!(this instanceof Wd)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new vs,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(t,e,s,i);let n=await this._getAppearance(t,e,s,i);if(this.appearance&&n===null)return super.getOperatorList(t,e,s,i);let a=new vs;if(!this._defaultAppearance||n===null)return{opList:a,separateForm:!1,separateCanvas:!1};let r=!!(this.data.hasOwnCanvas&&s&zs.DISPLAY),o=[1,0,0,1,0,0],l=[0,0,this.width,this.height],c=Ah(this.data.rect,l,o),h;this.oc&&(h=await t.parseMarkedContentProps(this.oc,null)),h!==void 0&&a.addOp(C.beginMarkedContentProps,["OC",h]),a.addOp(C.beginAnnotation,[this.data.id,this.data.rect,c,this.getRotationMatrix(i),r]);let f=new Bs(n);return await t.getOperatorList({stream:f,task:e,resources:this._fieldResources.mergedResources,operatorList:a}),a.addOp(C.endAnnotation,[]),h!==void 0&&a.addOp(C.endMarkedContent,[]),{opList:a,separateForm:!1,separateCanvas:r}}_getMKDict(t){let e=new B(null);return t&&e.set("R",t),e.setIfArray("BC",ks(this.borderColor)),e.setIfArray("BG",ks(this.backgroundColor)),e.size>0?e:null}amendSavedDict(t,e){}setValue(t,e,s,i){let{dict:n,ref:a}=gm(t,this.ref,s);if(!n)t.set("V",e);else if(!i.has(a)){let r=n.clone();return r.set("V",e),i.put(a,{data:r}),r}return null}async save(t,e,s,i){let n=s?.get(this.data.id),a=this._buildFlags(n?.noView,n?.noPrint),r=n?.value,o=n?.rotation;if(r===this.data.fieldValue||r===void 0){if(!this._hasValueFromXFA&&o===void 0&&a===void 0)return;r||=this.data.fieldValue}if(o===void 0&&!this._hasValueFromXFA&&Array.isArray(r)&&Array.isArray(this.data.fieldValue)&&Er(r,this.data.fieldValue)&&a===void 0)return;o===void 0&&(o=this.rotation);let l=null;if(!this._needAppearances&&(l=await this._getAppearance(t,e,zs.SAVE,s),l===null&&a===void 0))return;let c=!1;l?.needAppearances&&(c=!0,l=null);let{xref:h}=t,f=h.fetchIfRef(this.ref);if(!(f instanceof B))return;let u=new B(h);for(let[w,b]of f.getRawEntries())w!=="AP"&&u.set(w,b);if(a!==void 0&&(u.set("F",a),l===null&&!c)){let w=f.getRaw("AP");w&&u.set("AP",w)}let p={path:this.data.fieldName,value:r},m=this.setValue(u,Array.isArray(r)?r.map(ws):ws(r),h,i);this.amendSavedDict(s,m||u);let g=this._getMKDict(o);if(g&&u.set("MK",g),i.put(this.ref,{data:u,xfa:p,needAppearances:c}),l!==null){let w=h.getNewTemporaryRef(),b=new B(h);u.set("AP",b),b.set("N",w);let j=this._getSaveFieldResources(h),v=new Bs(l),q=v.dict=new B(h);q.setIfName("Subtype","Form"),q.set("Resources",j);let x=o%180===0?[0,0,this.width,this.height]:[0,0,this.height,this.width];q.set("BBox",x);let k=this.getRotationMatrix(s);k!==Gi&&q.set("Matrix",k),i.put(w,{data:v,xfa:null,needAppearances:!1})}u.set("M",`D:${Pn()}`)}async _getAppearance(t,e,s,i){if(this.data.password)return null;let n=i?.get(this.data.id),a,r;if(n&&(a=n.formattedValue||n.value,r=n.rotation),r===void 0&&a===void 0&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;let o=this.getBorderAndBackgroundAppearances(i);if(a===void 0&&(a=this.data.fieldValue,!a))return`/Tx BMC q ${o}Q EMC`;if(Array.isArray(a)&&a.length===1&&(a=a[0]),Fe(typeof a=="string","Expected `value` to be a string."),a=a.trimEnd(),this.data.combo&&(a=this.data.options.find(({exportValue:E})=>a===E)?.displayValue||a),a==="")return`/Tx BMC q ${o}Q EMC`;r===void 0&&(r=this.rotation);let l=-1,c;this.data.multiLine?(c=a.split(/\r\n?|\n/).map((E)=>E.normalize("NFC")),l=c.length):c=[a.replace(/\r\n?|\n/,"").normalize("NFC")];let h=1,f=2,{width:u,height:p}=this;(r===90||r===270)&&([u,p]=[p,u]),this._defaultAppearance||(this.data.defaultAppearanceData=Xh(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let m=await Wi._getFontData(t,e,this.data.defaultAppearanceData,this._fieldResources.mergedResources),g,w,b,j=[],v=!1;for(let E of c){let D=m.encodeString(E);D.length>1&&(v=!0),j.push(D.join(""))}if(v&&s&zs.SAVE)return{needAppearances:!0};if(v&&this._isOffscreenCanvasSupported){let E=this.data.comb?"monospace":"sans-serif",D=new sa(t.xref,E),O=D.createFontResources(c.join("")),$=O.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){let H=this._fieldResources.mergedResources.get("Font");for(let[L,rt]of $.getRawEntries())H.set(L,rt)}else this._fieldResources.mergedResources.set("Font",$);let it=D.fontName.name;m=await Wi._getFontData(t,e,{fontName:it,fontSize:0},O);for(let H=0,L=j.length;H<L;H++)j[H]=F1(c[H]);let W=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=it,[g,w,b]=this._computeFontSize(p-2*h,u-2*f,a,m,l),this.data.defaultAppearanceData=W}else this._isOffscreenCanvasSupported||T("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[g,w,b]=this._computeFontSize(p-2*h,u-2*f,a,m,l);let q=m.descent;isNaN(q)?q=J0*b:q=Math.max(J0*b,Math.abs(q)*w);let x=Math.min(Math.floor((p-w)/2),h),k=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(g,j,m,w,u,p,k,f,x,q,b,i);if(this.data.comb)return this._getCombAppearance(g,m,j[0],w,u,p,f,x,q,b,i);let A=x+q;if(k===0||k>2)return`/Tx BMC q ${o}BT `+g+` 1 0 0 1 ${ie(f)} ${ie(A)} Tm (${_a(j[0])}) Tj ET Q EMC`;let S={shift:0},I=this._renderText(j[0],m,w,u,k,S,f,A);return`/Tx BMC q ${o}BT `+g+` 1 0 0 1 0 0 Tm ${I} ET Q EMC`}static async _getFontData(t,e,s,i){let n=new vs,a={font:null,clone(){return this}},{fontName:r,fontSize:o}=s;return await t.handleSetFont(i,[r&&tt.get(r),o],null,n,e,a,null),a.font}_getTextWidth(t,e){return Math.sumPrecise(e.charsToGlyphs(t).map((s)=>s.width))/1000}_computeFontSize(t,e,s,i,n){let{fontSize:a}=this.data.defaultAppearanceData,r=(a||12)*Tn,o=Math.round(t/r);if(!a){let l=d((f)=>Math.floor(f*100)/100,"roundWithTwoDigits");if(n===-1){let f=this._getTextWidth(s,i);a=l(Math.min(t/Tn,e/f)),o=1}else{let f=s.split(/\r\n?|\n/),u=[];for(let m of f){let g=i.encodeString(m).join(""),w=i.charsToGlyphs(g),b=i.getCharPositions(g);u.push({line:g,glyphs:w,positions:b})}let p=d((m)=>{let g=0;for(let w of u){let b=this._splitLine(null,i,m,e,w);if(g+=b.length*m,g>t)return!0}return!1},"isTooBig");for(o=Math.max(o,n);;){if(r=t/o,a=l(r/Tn),p(a)){o++;continue}break}}let{fontName:c,fontColor:h}=this.data.defaultAppearanceData;this._defaultAppearance=a2({fontSize:a,fontName:c,fontColor:h})}return[this._defaultAppearance,a,t/o]}_renderText(t,e,s,i,n,a,r,o){let l;if(n===1){let h=this._getTextWidth(t,e)*s;l=(i-h)/2}else if(n===2){let h=this._getTextWidth(t,e)*s;l=i-h-r}else l=r;let c=ie(l-a.shift);return a.shift=l,o=ie(o),`${c} ${o} Td (${_a(t)}) Tj`}_getSaveFieldResources(t){let{localResources:e,appearanceResources:s,acroFormResources:i}=this._fieldResources,n=this.data.defaultAppearanceData?.fontName;if(!n)return e||B.empty;for(let a of[e,s])if(a instanceof B){let r=a.get("Font");if(r instanceof B&&r.has(n))return a}if(i instanceof B){let a=i.get("Font");if(a instanceof B&&a.has(n)){let r=new B(t);r.set(n,a.getRaw(n));let o=new B(t);return o.set("Font",r),B.merge({xref:t,dictArray:[o,e],mergeSubDicts:!0})}}return e||B.empty}getFieldObject(){return null}};z6=class z6 extends Wi{static{d(this,"TextWidgetAnnotation")}constructor(t){super(t);let{dict:e}=t;e.has("PMD")&&(this.flags|=as.HIDDEN,this.data.hidden=!0,T("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 s=ii({dict:e,key:"Q"});(!Number.isInteger(s)||s<0||s>2)&&(s=null),this.data.textAlignment=s;let i=ii({dict:e,key:"MaxLen"});(!Number.isInteger(i)||i<0)&&(i=0),this.data.maxLen=i,this.data.multiLine=this.hasFieldFlag(Ui.MULTILINE),this.data.comb=this.hasFieldFlag(Ui.COMB)&&!this.data.multiLine&&!this.data.password&&!this.hasFieldFlag(Ui.FILESELECT)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(Ui.DONOTSCROLL);let{data:{actions:n}}=this;if(!n)return;let a=/^AF(Date|Time)_(?:Keystroke|Format)(?:Ex)?\(['"]?([^'"]+)['"]?\);$/,r=!1;(n.Format?.length===1&&n.Keystroke?.length===1&&a.test(n.Format[0])&&a.test(n.Keystroke[0])||n.Format?.length===0&&n.Keystroke?.length===1&&a.test(n.Keystroke[0])||n.Keystroke?.length===0&&n.Format?.length===1&&a.test(n.Format[0]))&&(r=!0);let o=[];n.Format&&o.push(...n.Format),n.Keystroke&&o.push(...n.Keystroke),r&&(delete n.Keystroke,n.Format=o);for(let l of o){let c=l.match(a);if(!c)continue;let h=c[1]==="Date",f=c[2],u=parseInt(f,10);if(!isNaN(u)&&Math.floor(Math.log10(u))+1===c[2].length&&(f=(h?Tj:Fj)[u]??f),this.data.datetimeFormat=f,!r)break;if(h){/HH|MM|ss|h/.test(f)?(this.data.datetimeType="datetime-local",this.data.timeStep=/ss/.test(f)?1:60):this.data.datetimeType="date";break}this.data.datetimeType="time",this.data.timeStep=/ss/.test(f)?1:60;break}}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(t,e,s,i,n,a,r,o,l,c,h){let f=n/this.data.maxLen,u=this.getBorderAndBackgroundAppearances(h),p=[],m=e.getCharPositions(s);for(let[w,b]of m)p.push(`(${_a(s.substring(w,b))}) Tj`);let g=p.join(` ${ie(f)} 0 Td `);return`/Tx BMC q ${u}BT `+t+` 1 0 0 1 ${ie(r)} ${ie(o+l)} Tm ${g} ET Q EMC`}_getMultilineAppearance(t,e,s,i,n,a,r,o,l,c,h,f){let u=[],p=n-2*o,m={shift:0};for(let b=0,j=e.length;b<j;b++){let v=e[b],q=this._splitLine(v,s,i,p);for(let x=0,k=q.length;x<k;x++){let A=q[x],S=b===0&&x===0?-l-(h-c):-h;u.push(this._renderText(A,s,i,n,r,m,o,S))}}let g=this.getBorderAndBackgroundAppearances(f),w=u.join(`
83
+ `);return`/Tx BMC q ${g}BT `+t+` 1 0 0 1 0 ${ie(a)} Tm ${w} ET Q EMC`}_splitLine(t,e,s,i,n={}){t=n.line||t;let a=n.glyphs||e.charsToGlyphs(t);if(a.length<=1)return[t];let r=n.positions||e.getCharPositions(t),o=s/1000,l=[],c=-1,h=-1,f=-1,u=0,p=0;for(let m=0,g=a.length;m<g;m++){let[w,b]=r[m],j=a[m],v=j.width*o;j.unicode===" "?p+v>i?(l.push(t.substring(u,w)),u=w,p=v,c=-1,f=-1):(p+=v,c=w,h=b,f=m):p+v>i?c!==-1?(l.push(t.substring(u,h)),u=h,m=f+1,c=-1,p=0):(l.push(t.substring(u,w)),u=w,p=v):p+=v}return u<t.length&&l.push(t.substring(u,t.length)),l}async extractTextContent(t,e,s){await super.extractTextContent(t,e,s);let i=this.data.textContent;if(!i)return;let n=i.join(`
84
+ `);if(n===this.data.fieldValue)return;let a=n.replaceAll(/([.*+?^${}()|[\]\\])|(\s+)/g,(r,o)=>o?`\\${o}`:"\\s+");new RegExp(`^\\s*${a}\\s*$`).test(this.data.fieldValue)&&(this.data.textContent=this.data.fieldValue.split(`
85
+ `))}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"}}};U6=class U6 extends Wi{static{d(this,"ButtonWidgetAnnotation")}constructor(t){super(t),this.checkedAppearance=null,this.uncheckedAppearance=null;let e=this.hasFieldFlag(Ui.RADIO),s=this.hasFieldFlag(Ui.PUSHBUTTON);this.data.checkBox=!e&&!s,this.data.radioButton=e&&!s,this.data.pushButton=s,this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(t):this.data.radioButton?this._processRadioButton(t):this.data.pushButton?(this.data.hasOwnCanvas=!0,this.data.noHTML=!1,this._processPushButton(t)):T("Invalid field flags for button widget annotation")}async getOperatorList(t,e,s,i){if(this.data.pushButton)return super.getOperatorList(t,e,s,!1,i);let n=null,a=null;if(i){let o=i.get(this.data.id);n=o?o.value:null,a=o?o.rotation:null}if(n===null&&this.appearance)return super.getOperatorList(t,e,s,i);n==null&&(n=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);let r=n?this.checkedAppearance:this.uncheckedAppearance;if(r){let o=this.appearance,l=xn(r.dict.getArray("Matrix"),Gi);a&&r.dict.set("Matrix",this.getRotationMatrix(i)),this.appearance=r;let c=super.getOperatorList(t,e,s,i);return this.appearance=o,r.dict.set("Matrix",l),c}return{opList:new vs,separateForm:!1,separateCanvas:!1}}async save(t,e,s,i){if(this.data.checkBox){this._saveCheckbox(t,e,s,i);return}this.data.radioButton&&this._saveRadioButton(t,e,s,i)}async _saveCheckbox(t,e,s,i){if(!s)return;let n=s.get(this.data.id),a=this._buildFlags(n?.noView,n?.noPrint),r=n?.rotation,o=n?.value;if(r===void 0&&a===void 0&&(o===void 0||this.data.fieldValue===this.data.exportValue===o))return;let l=t.xref.fetchIfRef(this.ref);if(!(l instanceof B))return;l=l.clone(),r===void 0&&(r=this.rotation),o===void 0&&(o=this.data.fieldValue===this.data.exportValue);let c={path:this.data.fieldName,value:o?this.data.exportValue:""},h=tt.get(o?this.data.exportValue:"Off");this.setValue(l,h,t.xref,i),l.set("AS",h),l.set("M",`D:${Pn()}`),a!==void 0&&l.set("F",a);let f=this._getMKDict(r);f&&l.set("MK",f),i.put(this.ref,{data:l,xfa:c,needAppearances:!1})}async _saveRadioButton(t,e,s,i){if(!s)return;let n=s.get(this.data.id),a=this._buildFlags(n?.noView,n?.noPrint),r=n?.rotation,o=n?.value;if(r===void 0&&a===void 0&&(o===void 0||this.data.fieldValue===this.data.buttonValue===o))return;let l=t.xref.fetchIfRef(this.ref);if(!(l instanceof B))return;l=l.clone(),o===void 0&&(o=this.data.fieldValue===this.data.buttonValue),r===void 0&&(r=this.rotation);let c={path:this.data.fieldName,value:o?this.data.buttonValue:""},h=tt.get(o?this.data.buttonValue:"Off");o&&this.setValue(l,h,t.xref,i),l.set("AS",h),l.set("M",`D:${Pn()}`),a!==void 0&&l.set("F",a);let f=this._getMKDict(r);f&&l.set("MK",f),i.put(this.ref,{data:l,xfa:c,needAppearances:!1})}_getDefaultCheckedAppearance(t,e){let{width:s,height:i}=this,n=[0,0,s,i],a=Math.min(s,i)*0.8,r,o;e==="check"?(r={width:0.755*a,height:0.705*a},o="3"):e==="disc"?(r={width:0.791*a,height:0.705*a},o="l"):Yt(`_getDefaultCheckedAppearance - unsupported type: ${e}`);let l=ie((s-r.width)/2),c=ie((i-r.height)/2),h=`q BT /PdfJsZaDb ${a} Tf 0 g ${l} ${c} Td (${o}) Tj ET Q`,f=new B(t.xref);f.set("FormType",1),f.setIfName("Subtype","Form"),f.setIfName("Type","XObject"),f.set("BBox",n),f.set("Matrix",[1,0,0,1,0,0]),f.set("Length",h.length);let u=new B(t.xref),p=new B(t.xref);p.set("PdfJsZaDb",this.fallbackFontDict),u.set("Font",p),f.set("Resources",u),this.checkedAppearance=new Bs(h),this.checkedAppearance.dict=f,this._streams.push(this.checkedAppearance)}_processCheckBox(t){let e=t.dict.get("AP");if(!(e instanceof B))return;let s=e.get("N");if(!(s instanceof B))return;let i=this._decodeFormValue(t.dict.get("AS"));typeof i=="string"&&(this.data.fieldValue=i);let n=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes",a=this._decodeFormValue([...s.getKeys()]);if(a.length===0)a.push("Off",n);else if(a.length===1)a[0]==="Off"?a.push(n):a.unshift("Off");else if(a.includes(n))a.length=0,a.push("Off",n);else{let l=a.find((c)=>c!=="Off");a.length=0,a.push("Off",l)}a.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=a[1];let r=s.get(this.data.exportValue);this.checkedAppearance=r instanceof Lt?r:null;let o=s.get("Off");this.uncheckedAppearance=o instanceof Lt?o:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processRadioButton(t){this.data.buttonValue=null;let e=t.dict.get("Parent");if(e instanceof B){this.parent=t.dict.getRaw("Parent");let r=e.get("V");r instanceof tt&&(this.data.fieldValue=this._decodeFormValue(r))}let s=t.dict.get("AP");if(!(s instanceof B))return;let i=s.get("N");if(!(i instanceof B))return;for(let r of i.getKeys())if(r!=="Off"){this.data.buttonValue=this._decodeFormValue(r);break}let n=i.get(this.data.buttonValue);this.checkedAppearance=n instanceof Lt?n:null;let a=i.get("Off");this.uncheckedAppearance=a instanceof Lt?a:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processPushButton(t){let{dict:e,annotationGlobals:s}=t;if(!e.has("A")&&!e.has("AA")&&!this.data.alternativeText){T("Push buttons without action dictionaries are not supported");return}this.data.isTooltipOnly=!e.has("A")&&!e.has("AA"),Ma.parseDestDictionary({destDict:e,resultObj:this.data,docBaseUrl:s.baseUrl,docAttachments:s.attachments})}getFieldObject(){let t="button",e;return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,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:t}}get fallbackFontDict(){let t=new B;return t.setIfName("BaseFont","ZapfDingbats"),t.setIfName("Type","FallbackType"),t.setIfName("Subtype","FallbackType"),t.setIfName("Encoding","ZapfDingbatsEncoding"),lt(this,"fallbackFontDict",t)}};G6=class G6 extends Wi{static{d(this,"ChoiceWidgetAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;this.indices=e.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];let i=ii({dict:e,key:"Opt"});if(Array.isArray(i))for(let n=0,a=i.length;n<a;n++){let r=s.fetchIfRef(i[n]),o=Array.isArray(r);this.data.options[n]={exportValue:this._decodeFormValue(o?s.fetchIfRef(r[0]):r),displayValue:this._decodeFormValue(o?s.fetchIfRef(r[1]):r)}}if(!this.hasIndices)typeof this.data.fieldValue=="string"?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||=[];else{this.data.fieldValue=[];let n=this.data.options.length;for(let a of this.indices)Number.isInteger(a)&&a>=0&&a<n&&this.data.fieldValue.push(this.data.options[a].exportValue)}this.data.options.length===0&&this.data.fieldValue.length>0&&(this.data.options=this.data.fieldValue.map((n)=>({exportValue:n,displayValue:n}))),this.data.combo=this.hasFieldFlag(Ui.COMBO),this.data.multiSelect=this.hasFieldFlag(Ui.MULTISELECT),this._hasText=!0}getFieldObject(){let t=this.data.combo?"combobox":"listbox",e=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:e,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,e){if(!this.hasIndices)return;let s=t?.get(this.data.id)?.value;Array.isArray(s)||(s=[s]);let i=[],{options:n}=this.data;for(let a=0,r=0,o=n.length;a<o;a++)n[a].exportValue===s[r]&&(i.push(a),r+=1);e.set("I",i)}async _getAppearance(t,e,s,i){if(this.data.combo)return super._getAppearance(t,e,s,i);let n,a,r=i?.get(this.data.id);if(r&&(a=r.rotation,n=r.value),a===void 0&&n===void 0&&!this._needAppearances)return null;n===void 0?n=this.data.fieldValue:Array.isArray(n)||(n=[n]);let o=1,l=2,{width:c,height:h}=this;(a===90||a===270)&&([c,h]=[h,c]);let f=this.data.options.length,u=[];for(let A=0;A<f;A++){let{exportValue:S}=this.data.options[A];n.includes(S)&&u.push(A)}this._defaultAppearance||(this.data.defaultAppearanceData=Xh(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let p=await Wi._getFontData(t,e,this.data.defaultAppearanceData,this._fieldResources.mergedResources),m,{fontSize:g}=this.data.defaultAppearanceData;if(g)m=this._defaultAppearance;else{let A=(h-o)/f,S=-1,I;for(let{displayValue:E}of this.data.options){let D=this._getTextWidth(E,p);D>S&&(S=D,I=E)}[m,g]=this._computeFontSize(A,c-2*l,I,p,-1)}let w=g*Tn,b=(w-g)/2,j=Math.floor(h/w),v=0;if(u.length>0){let A=Math.min(...u),S=Math.max(...u);v=Math.max(0,S-j+1),v>A&&(v=A)}let q=Math.min(v+j+1,f),x=["/Tx BMC q",`1 1 ${c} ${h} re W n`];if(u.length){x.push("0.600006 0.756866 0.854904 rg");for(let A of u)v<=A&&A<q&&x.push(`1 ${h-(A-v+1)*w} ${c} ${w} re f`)}x.push("BT",m,`1 0 0 1 0 ${h} Tm`);let k={shift:0};for(let A=v;A<q;A++){let{displayValue:S}=this.data.options[A],I=A===v?b:0;x.push(this._renderText(S,p,g,c,0,k,l,-w+I))}return x.push("ET Q EMC"),x.join(`
86
+ `)}};Wd=class Wd extends Wi{static{d(this,"SignatureWidgetAnnotation")}constructor(t){super(t),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"}}};$6=class $6 extends Vs{static{d(this,"TextAnnotation")}constructor(t){super(t),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:e}=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=e.has("Name")?e.get("Name").name:"Note"),e.has("State")?(this.data.state=e.get("State")||null,this.data.stateModel=e.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}};V6=class V6 extends Kr{static{d(this,"LinkAnnotation")}constructor(t){super(t);let{dict:e,annotationGlobals:s}=t;this.data.noHTML=!1;let i=Wr(e,this.rectangle);i&&(this.data.quadPoints=i),this.data.borderColor||=this.data.color,Ma.parseDestDictionary({destDict:e,resultObj:this.data,docBaseUrl:s.baseUrl,docAttachments:s.attachments})}get overlaysTextContent(){return!0}};pf=class pf extends Kr{static{d(this,"PopupAnnotation")}constructor(t){super(t);let{dict:e}=t;this.data.noHTML=!1,(this.width===0||this.height===0)&&(this.data.rect=null);let s=e.get("Parent");if(!s){T("Popup annotation has a missing or invalid parent annotation.");return}this.data.parentRect=ln(s.getArray("Rect"),null),this.data.creationDate=s.get("CreationDate")||"";let i=s.get("RT");if(re(i,Zf.GROUP)&&(s=s.get("IRT")),s.has("M")?(this.setModificationDate(s.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,s.has("C")?(this.setColor(s.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){let n=s.get("F");this._isViewable(n)&&this.setFlags(n)}this.setTitle(s.get("T")),this.data.titleObj=this._title,this.setContents(s.get("Contents")),this.data.contentsObj=this._contents,s.has("RC")&&(this.data.richText=_l.getRichTextAsHtml(s.get("RC"))),this.data.open=!!e.get("Open")}static createNewDict(t,e,s){let{oldAnnotation:i,rect:n,parent:a}=t,r=i||new B(e);return r.setIfNotExists("Type",tt.get("Annot")),r.setIfNotExists("Subtype",tt.get("Popup")),r.setIfNotExists("Open",!1),r.setIfArray("Rect",n),r.set("Parent",a),r}static async createNewAppearanceStream(t,e,s){return null}};Lc=class Lc extends Vs{static{d(this,"FreeTextAnnotation")}constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1;let{annotationGlobals:e,evaluatorOptions:s,xref:i}=t;if(this.setDefaultAppearance(t),this._hasAppearance=!!this.appearance,this._hasAppearance){let{fontColor:n,fontSize:a}=n2(this.appearance,s,i,e.globalColorSpaceCache);this.data.defaultAppearanceData.fontColor=n,this.data.defaultAppearanceData.fontSize=a||10}else{this.data.defaultAppearanceData.fontSize||=10;let{fontColor:n,fontSize:a}=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:o,matrix:l}=sa.getFirstPositionInfo(this.rectangle,this.rotation,a);this.data.textPosition=this._transformPoint(r,o,l)}if(this._isOffscreenCanvasSupported){let r=t.dict.get("CA"),o=new sa(i,"sans-serif");this.appearance=o.createAppearance(this._contents.str,this.rectangle,this.rotation,a,n,r),this._streams.push(this.appearance)}else T("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}}get hasTextContent(){return this._hasAppearance}static createNewDict(t,e,{apRef:s,ap:i}){let{color:n,date:a,fontSize:r,oldAnnotation:o,rect:l,rotation:c,user:h,value:f}=t,u=o||new B(e);u.setIfNotExists("Type",tt.get("Annot")),u.setIfNotExists("Subtype",tt.get("FreeText")),u.set(o?"M":"CreationDate",`D:${Pn(a)}`),o&&u.delete("RC"),u.setIfArray("Rect",l);let p=`/Helv ${r} Tf ${Vi(n,!0)}`;if(u.set("DA",p),u.setIfDefined("Contents",ws(f)),u.setIfNotExists("F",4),u.setIfNotExists("Border",[0,0,0]),u.setIfNumber("Rotate",c),u.setIfDefined("T",ws(h)),s||i){let m=new B(e);u.set("AP",m),m.set("N",s||i)}return u}static async createNewAppearanceStream(t,e,s){let{baseFontRef:i,evaluator:n,task:a}=s,{color:r,fontSize:o,rect:l,rotation:c,value:h}=t;if(!r)return null;let f=new B(e),u=new B(e);if(i)u.set("Helv",i);else{let R=new B(e);R.setIfName("BaseFont","Helvetica"),R.setIfName("Type","Font"),R.setIfName("Subtype","Type1"),R.setIfName("Encoding","WinAnsiEncoding"),u.set("Helv",R)}f.set("Font",u);let p=await Wi._getFontData(n,a,{fontName:"Helv",fontSize:o},f),[m,g,w,b]=l,j=w-m,v=b-g;c%180!==0&&([j,v]=[v,j]);let q=h.split(`
87
+ `),x=o/1000,k=-1/0,A=[];for(let R of q){let V=p.encodeString(R);if(V.length>1)return null;R=V.join(""),A.push(R);let N=0,_=p.charsToGlyphs(R);for(let U of _)N+=U.width*x;k=Math.max(k,N)}let S=1;k>j&&(S=j/k);let I=1,E=Tn*o,D=(Tn-Yc)*o,O=E*q.length;O>v&&(I=v/O);let $=Math.min(S,I),it=o*$,W,H,L;switch(c){case 0:L=[1,0,0,1],H=[l[0],l[1],j,v],W=[l[0],l[3]-D];break;case 90:L=[0,1,-1,0],H=[l[1],-l[2],j,v],W=[l[1],-l[0]-D];break;case 180:L=[-1,0,0,-1],H=[-l[2],-l[3],j,v],W=[-l[2],-l[1]-D];break;case 270:L=[0,-1,1,0],H=[-l[3],l[0],j,v],W=[-l[3],l[2]-D];break}let rt=["q",`${L.join(" ")} 0 0 cm`,`${H.join(" ")} re W n`,"BT",`${Vi(r,!0)}`,`0 Tc /Helv ${ie(it)} Tf`];rt.push(`${W.join(" ")} Td (${_a(A[0])}) Tj`);let yt=ie(E);for(let R=1,V=A.length;R<V;R++){let N=A[R];rt.push(`0 -${yt} Td (${_a(N)}) Tj`)}rt.push("ET","Q");let X=rt.join(`
88
+ `),St=new B(e);St.set("FormType",1),St.setIfName("Subtype","Form"),St.setIfName("Type","XObject"),St.set("BBox",l),St.set("Resources",f),St.set("Matrix",[1,0,0,1,-l[0],-l[1]]);let qt=new Bs(X);return qt.dict=St,qt}};W6=class W6 extends Vs{static{d(this,"LineAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let i=Yo(e.getArray("L"),[0,0,0,0]);if(this.data.lineCoordinates=de.normalizeRect(i),this.setLineEndings(e.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){let n=ks(this.color,[0,0,0]),a=e.get("CA"),r=ca(e.getArray("IC"),null),o=ks(r),l=o?a:null,c=this.borderStyle.width||1,h=2*c,f=[this.data.lineCoordinates[0]-h,this.data.lineCoordinates[1]-h,this.data.lineCoordinates[2]+h,this.data.lineCoordinates[3]+h];de.intersect(this.rectangle,f)||(this.rectangle=f),this._setDefaultAppearance({xref:s,extra:`${c} w`,strokeColor:n,fillColor:o,strokeAlpha:a,fillAlpha:l,pointsCallback:d((u,p)=>(u.push(`${i[0]} ${i[1]} m`,`${i[2]} ${i[3]} l`,"S"),[p[0]-c,p[7]-c,p[2]+c,p[3]+c]),"pointsCallback")})}}};K6=class K6 extends Vs{static{d(this,"SquareAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;if(this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,!this.appearance){let i=ks(this.color,[0,0,0]),n=e.get("CA"),a=ca(e.getArray("IC"),null),r=ks(a),o=r?n:null;if(this.borderStyle.width===0&&!r)return;this._setDefaultAppearance({xref:s,extra:`${this.borderStyle.width} w`,strokeColor:i,fillColor:r,strokeAlpha:n,fillAlpha:o,pointsCallback:d((l,c)=>{let h=c[4]+this.borderStyle.width/2,f=c[5]+this.borderStyle.width/2,u=c[6]-c[4]-this.borderStyle.width,p=c[3]-c[7]-this.borderStyle.width;return l.push(`${h} ${f} ${u} ${p} re`),r?l.push("B"):l.push("S"),[c[0],c[7],c[2],c[3]]},"pointsCallback")})}}};Y6=class Y6 extends Vs{static{d(this,"CircleAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;if(!this.appearance){let i=ks(this.color,[0,0,0]),n=e.get("CA"),a=ca(e.getArray("IC"),null),r=ks(a),o=r?n:null;if(this.borderStyle.width===0&&!r)return;let l=1.3333333333333333*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:s,extra:`${this.borderStyle.width} w`,strokeColor:i,fillColor:r,strokeAlpha:n,fillAlpha:o,pointsCallback:d((c,h)=>{let f=h[0]+this.borderStyle.width/2,u=h[1]-this.borderStyle.width/2,p=h[6]-this.borderStyle.width/2,m=h[7]+this.borderStyle.width/2,g=f+(p-f)/2,w=u+(m-u)/2,b=(p-f)/2*l,j=(m-u)/2*l;return c.push(`${g} ${m} m`,`${g+b} ${m} ${p} ${w+j} ${p} ${w} c`,`${p} ${w-j} ${g+b} ${u} ${g} ${u} c`,`${g-b} ${u} ${f} ${w-j} ${f} ${w} c`,`${f} ${w+j} ${g-b} ${m} ${g} ${m} c`,"h"),r?c.push("B"):c.push("S"),[h[0],h[7],h[2],h[3]]},"pointsCallback")})}}};Kd=class Kd extends Vs{static{d(this,"PolylineAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.vertices=null,this instanceof Yd||(this.setLineEndings(e.getArray("LE")),this.data.lineEndings=this.lineEndings);let i=e.getArray("Vertices");if(!_s(i,null))return;let n=this.data.vertices=Float32Array.from(i);if(!this.appearance){let a=ks(this.color,[0,0,0]),r=e.get("CA"),o=ca(e.getArray("IC"),null);o&&(o=ks(o));let l;o?this.color?l=o.every((u,p)=>u===a[p])?"f":"B":l="f":l="S";let c=this.borderStyle.width||1,h=2*c,f=[1/0,1/0,-1/0,-1/0];for(let u=0,p=n.length;u<p;u+=2)de.rectBoundingBox(n[u]-h,n[u+1]-h,n[u]+h,n[u+1]+h,f);de.intersect(this.rectangle,f)||(this.rectangle=f),this._setDefaultAppearance({xref:s,extra:`${c} w`,strokeColor:a,strokeAlpha:r,fillColor:o,fillAlpha:o?r:null,pointsCallback:d((u,p)=>{for(let m=0,g=n.length;m<g;m+=2)u.push(`${n[m]} ${n[m+1]} ${m===0?"m":"l"}`);return u.push(l),[p[0],p[7],p[2],p[3]]},"pointsCallback")})}}};Yd=class Yd extends Kd{static{d(this,"PolygonAnnotation")}};X6=class X6 extends Vs{static{d(this,"CaretAnnotation")}};lr=class lr extends Vs{static{d(this,"InkAnnotation")}constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;let{dict:e,xref:s}=t;this.data.inkLists=[],this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=e.get("CA")||1;let i=e.getArray("InkList");if(Array.isArray(i)){for(let n=0,a=i.length;n<a;++n){if(!Array.isArray(i[n]))continue;let r=new Float32Array(i[n].length);this.data.inkLists.push(r);for(let o=0,l=i[n].length;o<l;o+=2){let c=s.fetchIfRef(i[n][o]),h=s.fetchIfRef(i[n][o+1]);typeof c=="number"&&typeof h=="number"&&(r[o]=c,r[o+1]=h)}}if(!this.appearance){let n=ks(this.color,[0,0,0]),a=e.get("CA"),r=this.borderStyle.width||1,o=2*r,l=[1/0,1/0,-1/0,-1/0];for(let c of this.data.inkLists)for(let h=0,f=c.length;h<f;h+=2)de.rectBoundingBox(c[h]-o,c[h+1]-o,c[h]+o,c[h+1]+o,l);de.intersect(this.rectangle,l)||(this.rectangle=l),this._setDefaultAppearance({xref:s,extra:`${r} w`,strokeColor:n,strokeAlpha:a,pointsCallback:d((c,h)=>{for(let f of this.data.inkLists){for(let u=0,p=f.length;u<p;u+=2)c.push(`${f[u]} ${f[u+1]} ${u===0?"m":"l"}`);c.push("S")}return[h[0],h[7],h[2],h[3]]},"pointsCallback")})}}}static createNewDict(t,e,{apRef:s,ap:i}){let{oldAnnotation:n,color:a,date:r,opacity:o,paths:l,outlines:c,rect:h,rotation:f,thickness:u,user:p}=t,m=n||new B(e);if(m.setIfNotExists("Type",tt.get("Annot")),m.setIfNotExists("Subtype",tt.get("Ink")),m.set(n?"M":"CreationDate",`D:${Pn(r)}`),m.setIfArray("Rect",h),m.setIfArray("InkList",c?.points||l?.points),m.setIfNotExists("F",4),m.setIfNumber("Rotate",f),m.setIfDefined("T",ws(p)),c&&m.setIfName("IT","InkHighlight"),u>0){let g=new B(e);m.set("BS",g),g.set("W",u)}if(m.setIfArray("C",ks(a)),m.setIfNumber("CA",o),i||s){let g=new B(e);m.set("AP",g),g.set("N",s||i)}return m}static async createNewAppearanceStream(t,e,s){if(t.outlines)return this.createNewAppearanceStreamForHighlight(t,e,s);let{color:i,rect:n,paths:a,thickness:r,opacity:o}=t;if(!i)return null;let l=[`${r} w 1 J 1 j`,`${Vi(i,!1)}`];o!==1&&l.push("/R0 gs");for(let u of a.lines){l.push(`${ie(u[4])} ${ie(u[5])} m`);for(let p=6,m=u.length;p<m;p+=6)if(isNaN(u[p]))l.push(`${ie(u[p+4])} ${ie(u[p+5])} l`);else{let[g,w,b,j,v,q]=u.slice(p,p+6);l.push([g,w,b,j,v,q].map(ie).join(" ")+" c")}u.length===6&&l.push(`${ie(u[4])} ${ie(u[5])} l`)}l.push("S");let c=l.join(`
89
+ `),h=new B(e);if(h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",n),h.set("Length",c.length),o!==1){let u=new B(e),p=new B(e),m=new B(e);m.set("CA",o),m.setIfName("Type","ExtGState"),p.set("R0",m),u.set("ExtGState",p),h.set("Resources",u)}let f=new Bs(c);return f.dict=h,f}static async createNewAppearanceStreamForHighlight(t,e,s){let{color:i,rect:n,outlines:{outline:a},opacity:r}=t;if(!i)return null;let o=[`${Vi(i,!0)}`,"/R0 gs"];o.push(`${ie(a[4])} ${ie(a[5])} m`);for(let m=6,g=a.length;m<g;m+=6)if(isNaN(a[m]))o.push(`${ie(a[m+4])} ${ie(a[m+5])} l`);else{let[w,b,j,v,q,x]=a.slice(m,m+6);o.push([w,b,j,v,q,x].map(ie).join(" ")+" c")}o.push("h f");let l=o.join(`
90
+ `),c=new B(e);c.set("FormType",1),c.setIfName("Subtype","Form"),c.setIfName("Type","XObject"),c.set("BBox",n),c.set("Length",l.length);let h=new B(e),f=new B(e);h.set("ExtGState",f),c.set("Resources",h);let u=new B(e);f.set("R0",u),u.setIfName("BM","Multiply"),r!==1&&(u.set("ca",r),u.setIfName("Type","ExtGState"));let p=new Bs(l);return p.dict=c,p}};zc=class zc extends Vs{static{d(this,"HighlightAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;if(this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=e.get("CA")||1,this.data.quadPoints=Wr(e,null)){let i=this.appearance?.dict.get("Resources");if(!this.appearance||!i?.has("ExtGState")){this.appearance&&T("HighlightAnnotation - ignoring built-in appearance stream.");let n=ks(this.color,[1,1,0]),a=e.get("CA");this._setDefaultAppearance({xref:s,fillColor:n,blendMode:"Multiply",fillAlpha:a,pointsCallback:d((r,o)=>(r.push(`${o[0]} ${o[1]} m`,`${o[2]} ${o[3]} l`,`${o[6]} ${o[7]} l`,`${o[4]} ${o[5]} l`,"f"),[o[0],o[7],o[2],o[3]]),"pointsCallback")})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}static createNewDict(t,e,{apRef:s,ap:i}){let{color:n,date:a,oldAnnotation:r,opacity:o,rect:l,rotation:c,user:h,quadPoints:f}=t,u=r||new B(e);if(u.setIfNotExists("Type",tt.get("Annot")),u.setIfNotExists("Subtype",tt.get("Highlight")),u.set(r?"M":"CreationDate",`D:${Pn(a)}`),u.setIfArray("Rect",l),u.setIfNotExists("F",4),u.setIfNotExists("Border",[0,0,0]),u.setIfNumber("Rotate",c),u.setIfArray("QuadPoints",f),u.setIfArray("C",ks(n)),u.setIfNumber("CA",o),u.setIfDefined("T",ws(h)),s||i){let p=new B(e);u.set("AP",p),p.set("N",s||i)}return u}static async createNewAppearanceStream(t,e,s){let{color:i,rect:n,outlines:a,opacity:r}=t;if(!i)return null;let o=[`${Vi(i,!0)}`,"/R0 gs"],l=[];for(let g of a){l.length=0,l.push(`${ie(g[0])} ${ie(g[1])} m`);for(let w=2,b=g.length;w<b;w+=2)l.push(`${ie(g[w])} ${ie(g[w+1])} l`);l.push("h"),o.push(l.join(`
91
+ `))}o.push("f*");let c=o.join(`
92
+ `),h=new B(e);h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",n),h.set("Length",c.length);let f=new B(e),u=new B(e);f.set("ExtGState",u),h.set("Resources",f);let p=new B(e);u.set("R0",p),p.setIfName("BM","Multiply"),r!==1&&(p.set("ca",r),p.setIfName("Type","ExtGState"));let m=new Bs(c);return m.dict=h,m}};Q6=class Q6 extends Vs{static{d(this,"UnderlineAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;if(this.data.quadPoints=Wr(e,null)){if(!this.appearance){let i=ks(this.color,[0,0,0]),n=e.get("CA");this._setDefaultAppearance({xref:s,extra:"[] 0 d 0.571 w",strokeColor:i,strokeAlpha:n,pointsCallback:d((a,r)=>(a.push(`${r[4]} ${r[5]+1.3} m`,`${r[6]} ${r[7]+1.3} l`,"S"),[r[0],r[7],r[2],r[3]]),"pointsCallback")})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}};J6=class J6 extends Vs{static{d(this,"SquigglyAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;if(this.data.quadPoints=Wr(e,null)){if(!this.appearance){let i=ks(this.color,[0,0,0]),n=e.get("CA");this._setDefaultAppearance({xref:s,extra:"[] 0 d 1 w",strokeColor:i,strokeAlpha:n,pointsCallback:d((a,r)=>{let o=(r[1]-r[5])/6,l=o,c=r[4],h=r[5],f=r[6];a.push(`${c} ${h+l} m`);do c+=2,l=l===0?o:0,a.push(`${c} ${h+l} l`);while(c<f);return a.push("S"),[r[4],h-2*o,f,h+2*o]},"pointsCallback")})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}};Z6=class Z6 extends Vs{static{d(this,"StrikeOutAnnotation")}constructor(t){super(t);let{dict:e,xref:s}=t;if(this.data.quadPoints=Wr(e,null)){if(!this.appearance){let i=ks(this.color,[0,0,0]),n=e.get("CA");this._setDefaultAppearance({xref:s,extra:"[] 0 d 1 w",strokeColor:i,strokeAlpha:n,pointsCallback:d((a,r)=>(a.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]]),"pointsCallback")})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}};va=class va extends Vs{static{d(this,"StampAnnotation")}#t=null;constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1}mustBeViewedWhenEditing(t,e=null){return t?(this.data.isEditable&&(this.#t??=this.data.hasOwnCanvas,this.data.hasOwnCanvas=!0),!0):(this.#t!==null&&(this.data.hasOwnCanvas=this.#t,this.#t=null),!e?.has(this.data.id))}static async createImage(t,e){let{width:s,height:i}=t,n=new OffscreenCanvas(s,i),a=n.getContext("2d",{alpha:!0});a.drawImage(t,0,0);let r=a.getImageData(0,0,s,i).data,o=new Uint32Array(r.buffer),l=o.some(Ms.isLittleEndian?(m)=>m>>>24!==255:(m)=>(m&255)!==255);l&&(a.fillStyle="white",a.fillRect(0,0,s,i),a.drawImage(t,0,0));let c=n.convertToBlob({type:"image/jpeg",quality:1}).then((m)=>m.bytes()),h=tt.get("XObject"),f=tt.get("Image"),u=new B(e);u.set("Type",h),u.set("Subtype",f),u.set("BitsPerComponent",8),u.setIfName("ColorSpace","DeviceRGB"),u.setIfName("Filter","DCTDecode"),u.set("BBox",[0,0,s,i]),u.set("Width",s),u.set("Height",i);let p=null;if(l){let m=new Uint8Array(o.length);if(Ms.isLittleEndian)for(let w=0,b=o.length;w<b;w++)m[w]=o[w]>>>24;else for(let w=0,b=o.length;w<b;w++)m[w]=o[w]&255;let g=new B(e);g.set("Type",h),g.set("Subtype",f),g.set("BitsPerComponent",8),g.setIfName("ColorSpace","DeviceGray"),g.set("Width",s),g.set("Height",i),p=new je(m,0,0,g)}return{imageStream:new je(await c,0,0,u),smaskStream:p,width:s,height:i}}static createNewDict(t,e,{apRef:s,ap:i}){let{date:n,oldAnnotation:a,rect:r,rotation:o,user:l}=t,c=a||new B(e);if(c.setIfNotExists("Type",tt.get("Annot")),c.setIfNotExists("Subtype",tt.get("Stamp")),c.set(a?"M":"CreationDate",`D:${Pn(n)}`),c.setIfArray("Rect",r),c.setIfNotExists("F",4),c.setIfNotExists("Border",[0,0,0]),c.setIfNumber("Rotate",o),c.setIfDefined("T",ws(l)),s||i){let h=new B(e);c.set("AP",h),h.set("N",s||i)}return c}static async#e(t,e){let{areContours:s,color:i,rect:n,lines:a,thickness:r}=t;if(!i)return null;let o=[`${r} w 1 J 1 j`,`${Vi(i,s)}`];for(let f of a){o.push(`${ie(f[4])} ${ie(f[5])} m`);for(let u=6,p=f.length;u<p;u+=6)if(isNaN(f[u]))o.push(`${ie(f[u+4])} ${ie(f[u+5])} l`);else{let[m,g,w,b,j,v]=f.slice(u,u+6);o.push([m,g,w,b,j,v].map(ie).join(" ")+" c")}f.length===6&&o.push(`${ie(f[4])} ${ie(f[5])} l`)}o.push(s?"F":"S");let l=o.join(`
93
+ `),c=new B(e);c.set("FormType",1),c.setIfName("Subtype","Form"),c.setIfName("Type","XObject"),c.set("BBox",n),c.set("Length",l.length);let h=new Bs(l);return h.dict=c,h}static async createNewAppearanceStream(t,e,s){if(t.oldAnnotation)return null;if(t.isSignature)return this.#e(t,e);let{rotation:i}=t,{imageRef:n,width:a,height:r}=s.image,o=new B(e),l=new B(e);o.set("XObject",l),l.set("Im0",n);let c=`q ${a} 0 0 ${r} 0 0 cm /Im0 Do Q`,h=new B(e);if(h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",[0,0,a,r]),h.set("Resources",o),i){let u=Qo(i,a,r);h.set("Matrix",u)}let f=new Bs(c);return f.dict=h,f}};t4=class t4 extends Vs{static{d(this,"FileAttachmentAnnotation")}constructor(t){super(t);let{dict:e}=t,s=new hh(e.get("FS"));this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.file=s.serializable;let i=e.get("Name");this.data.name=i instanceof tt?Xt(i.name):"PushPin";let n=e.get("ca");this.data.fillAlpha=typeof n=="number"&&n>=0&&n<=1?n:null}};ev={get r(){return lt(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 lt(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]))}};d(vn,"calculateMD5");d(n1,"decodeString");e4=class e4 extends Il{static{d(this,"DatasetXMLParser")}node=null;onEndElement(t){let e=super.onEndElement(t);if(e&&t==="xfa:datasets")throw this.node=e,Error("Aborting DatasetXMLParser.")}};s4=class s4{static{d(this,"DatasetReader")}constructor(t){if(t.datasets)this.node=new Il({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{let e=new e4({hasAttributes:!0});try{e.parseFromString(t["xdp:xdp"])}catch{}this.node=e.node}}getValue(t){if(!this.node||!t)return"";let e=this.node.searchNode(I1(t),0);return e?e.firstChild?.nodeName==="value"?e.children.map((s)=>n1(s.textContent)):n1(e.textContent):""}};i4=class i4{static{d(this,"SingleIntersector")}#t;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;#e=null;#s=[];#i=[];#n=-1;#a=!1;constructor(t){this.#t=t;let e=t.data.quadPoints;if(!e){[this.minX,this.minY,this.maxX,this.maxY]=t.data.rect;return}for(let s=0,i=e.length;s<i;s+=8)this.minX=Math.min(this.minX,e[s]),this.maxX=Math.max(this.maxX,e[s+2]),this.minY=Math.min(this.minY,e[s+5]),this.maxY=Math.max(this.maxY,e[s+1]);e.length>8&&(this.#e=e)}#r(t,e){if(this.minX>=t||this.maxX<=t||this.minY>=e||this.maxY<=e)return!1;let s=this.#e;if(!s)return!0;if(this.#n>=0){let i=this.#n;if(!(s[i]>=t||s[i+2]<=t||s[i+5]>=e||s[i+1]<=e))return!0;this.#n=-1}for(let i=0,n=s.length;i<n;i+=8)if(!(s[i]>=t||s[i+2]<=t||s[i+5]>=e||s[i+1]<=e))return this.#n=i,!0;return!1}addGlyph(t,e,s){return this.#r(t,e)?(this.#i.length>0&&(this.#s.push(this.#i.join("")),this.#i.length=0),this.#s.push(s),this.#a=!0,!0):(this.disableExtraChars(),!1)}addExtraChar(t){this.#a&&this.#i.push(t)}disableExtraChars(){this.#a&&(this.#a=!1,this.#i.length=0)}setText(){this.#t.data.overlaidText=this.#s.join("")}};n4=class n4{static{d(this,"Intersector")}#t=[];#e=[];#s;#i;#n;#a;#r;#o;constructor(t){let e=1/0,s=1/0,i=-1/0,n=-1/0,a=this.#t;for(let r of t){if(!r.data.quadPoints&&!r.data.rect)continue;let o=new i4(r);a.push(o),e=Math.min(e,o.minX),s=Math.min(s,o.minY),i=Math.max(i,o.maxX),n=Math.max(n,o.maxY)}this.#s=e,this.#n=s,this.#i=i,this.#a=n,this.#r=(wa-1)/(i-e),this.#o=(wa-1)/(n-s);for(let r of a){let o=this.#l(r.minX,r.minY),l=this.#l(r.maxX,r.maxY),c=(l-o)%wa,h=Math.floor((l-o)/wa);for(let f=o;f<=o+h*wa;f+=wa)for(let u=0;u<=c;u++){let p=this.#e[f+u];p||(this.#e[f+u]=p=[]),p.push(r)}}}#l(t,e){let s=Math.floor((t-this.#s)*this.#r),i=Math.floor((e-this.#n)*this.#o);return s+i*wa}addGlyph(t,e,s,i){let n=t[4]+e/2,a=t[5]+s/2;if(n<this.#s||a<this.#n||n>this.#i||a>this.#a)return;let r=this.#e[this.#l(n,a)];if(r)for(let o of r)o.addGlyph(n,a,i)}addExtraChar(t){for(let e of this.#t)e.addExtraChar(t)}setText(){for(let t of this.#t)t.setText()}};ut=class ut{static{d(this,"Word64")}constructor(t,e){this.high=t|0,this.low=e|0}and(t){this.high&=t.high,this.low&=t.low}xor(t){this.high^=t.high,this.low^=t.low}shiftRight(t){t>=32?(this.low=this.high>>>t-32|0,this.high=0):(this.low=this.low>>>t|this.high<<32-t,this.high=this.high>>>t|0)}rotateRight(t){let e,s;t&32?(s=this.low,e=this.high):(e=this.low,s=this.high),t&=31,this.low=e>>>t|s<<32-t,this.high=s>>>t|e<<32-t}not(){this.high=~this.high,this.low=~this.low}add(t){let e=(this.low>>>0)+(t.low>>>0),s=(this.high>>>0)+(t.high>>>0);e>4294967295&&(s+=1),this.low=e|0,this.high=s|0}copyTo(t,e){t[e]=this.high>>>24&255,t[e+1]=this.high>>16&255,t[e+2]=this.high>>8&255,t[e+3]=this.high&255,t[e+4]=this.low>>>24&255,t[e+5]=this.low>>16&255,t[e+6]=this.low>>8&255,t[e+7]=this.low&255}assign(t){this.high=t.high,this.low=t.low}};sv={get k(){return lt(this,"k",[new ut(1116352408,3609767458),new ut(1899447441,602891725),new ut(3049323471,3964484399),new ut(3921009573,2173295548),new ut(961987163,4081628472),new ut(1508970993,3053834265),new ut(2453635748,2937671579),new ut(2870763221,3664609560),new ut(3624381080,2734883394),new ut(310598401,1164996542),new ut(607225278,1323610764),new ut(1426881987,3590304994),new ut(1925078388,4068182383),new ut(2162078206,991336113),new ut(2614888103,633803317),new ut(3248222580,3479774868),new ut(3835390401,2666613458),new ut(4022224774,944711139),new ut(264347078,2341262773),new ut(604807628,2007800933),new ut(770255983,1495990901),new ut(1249150122,1856431235),new ut(1555081692,3175218132),new ut(1996064986,2198950837),new ut(2554220882,3999719339),new ut(2821834349,766784016),new ut(2952996808,2566594879),new ut(3210313671,3203337956),new ut(3336571891,1034457026),new ut(3584528711,2466948901),new ut(113926993,3758326383),new ut(338241895,168717936),new ut(666307205,1188179964),new ut(773529912,1546045734),new ut(1294757372,1522805485),new ut(1396182291,2643833823),new ut(1695183700,2343527390),new ut(1986661051,1014477480),new ut(2177026350,1206759142),new ut(2456956037,344077627),new ut(2730485921,1290863460),new ut(2820302411,3158454273),new ut(3259730800,3505952657),new ut(3345764771,106217008),new ut(3516065817,3606008344),new ut(3600352804,1432725776),new ut(4094571909,1467031594),new ut(275423344,851169720),new ut(430227734,3100823752),new ut(506948616,1363258195),new ut(659060556,3750685593),new ut(883997877,3785050280),new ut(958139571,3318307427),new ut(1322822218,3812723403),new ut(1537002063,2003034995),new ut(1747873779,3602036899),new ut(1955562222,1575990012),new ut(2024104815,1125592928),new ut(2227730452,2716904306),new ut(2361852424,442776044),new ut(2428436474,593698344),new ut(2756734187,3733110249),new ut(3204031479,2999351573),new ut(3329325298,3815920427),new ut(3391569614,3928383900),new ut(3515267271,566280711),new ut(3940187606,3454069534),new ut(4118630271,4000239992),new ut(116418474,1914138554),new ut(174292421,2731055270),new ut(289380356,3203993006),new ut(460393269,320620315),new ut(685471733,587496836),new ut(852142971,1086792851),new ut(1017036298,365543100),new ut(1126000580,2618297676),new ut(1288033470,3409855158),new ut(1501505948,4234509866),new ut(1607167915,987167468),new ut(1816402316,1246189591)])}};d(a4,"ch");d(r4,"maj");d(o4,"sigma");d(l4,"sigmaPrime");d(c4,"littleSigma");d(h4,"littleSigmaPrime");d(Xd,"calculateSHA512");d(f4,"calculateSHA384");iv={get k(){return lt(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])}};d($i,"rotr");d(u4,"calculate_sha256_ch");d(d4,"calculate_sha256_maj");d(p4,"calculate_sha256_sigma");d(m4,"calculate_sha256_sigmaPrime");d(g4,"calculate_sha256_littleSigma");d(b4,"calculate_sha256_littleSigmaPrime");d(Sh,"calculateSHA256");w4=class w4 extends Ps{static{d(this,"DecryptStream")}constructor(t,e,s){super(e),this.stream=t,this.dict=t.dict,this.decrypt=s,this.nextChunk=null,this.initialized=!1}readBlock(){let t;if(this.initialized?t=this.nextChunk:(t=this.stream.getBytes(Dp),this.initialized=!0),!t?.length){this.eof=!0;return}this.nextChunk=this.stream.getBytes(Dp);let e=this.nextChunk?.length>0,s=this.decrypt;t=s(t,!e);let i=this.bufferLength,n=i+t.length;this.ensureBuffer(n).set(t,i),this.bufferLength=n}getOriginalStream(){return this}};Yn=class Yn{static{d(this,"ARCFourCipher")}a=0;b=0;constructor(t){let e=new Uint8Array(256),s=t.length;for(let i=0;i<256;++i)e[i]=i;for(let i=0,n=0;i<256;++i){let a=e[i];n=n+a+t[i%s]&255,e[i]=e[n],e[n]=a}this.s=e}encryptBlock(t){let e=this.a,s=this.b,i=this.s,n=t.length,a=new Uint8Array(n);for(let r=0;r<n;++r){e=e+1&255;let o=i[e];s=s+o&255;let l=i[s];i[e]=l,i[s]=o,a[r]=t[r]^i[o+l&255]}return this.a=e,this.b=s,a}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}};y4=class y4{static{d(this,"NullCipher")}decryptBlock(t){return t}encrypt(t){return t}};mf=class mf{static{d(this,"AESBaseCipher")}_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]);_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]);_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]);_mixCol=new Uint8Array(256).map((t,e)=>e<128?e<<1:e<<1^27);constructor(){this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(t){Yt("Cannot call `_expandKey` on the base class")}_decrypt(t,e){let s,i,n,a=new Uint8Array(16);a.set(t);for(let r=0,o=this._keySize;r<16;++r,++o)a[r]^=e[o];for(let r=this._cyclesOfRepetition-1;r>=1;--r){s=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=s,s=a[14],i=a[10],a[14]=a[6],a[10]=a[2],a[6]=s,a[2]=i,s=a[15],i=a[11],n=a[7],a[15]=a[3],a[11]=s,a[7]=i,a[3]=n;for(let o=0;o<16;++o)a[o]=this._inv_s[a[o]];for(let o=0,l=r*16;o<16;++o,++l)a[o]^=e[l];for(let o=0;o<16;o+=4){let l=this._mix[a[o]],c=this._mix[a[o+1]],h=this._mix[a[o+2]],f=this._mix[a[o+3]];s=l^c>>>8^c<<24^h>>>16^h<<16^f>>>24^f<<8,a[o]=s>>>24&255,a[o+1]=s>>16&255,a[o+2]=s>>8&255,a[o+3]=s&255}}s=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=s,s=a[14],i=a[10],a[14]=a[6],a[10]=a[2],a[6]=s,a[2]=i,s=a[15],i=a[11],n=a[7],a[15]=a[3],a[11]=s,a[7]=i,a[3]=n;for(let r=0;r<16;++r)a[r]=this._inv_s[a[r]],a[r]^=e[r];return a}_encrypt(t,e){let s=this._s,i,n,a,r=new Uint8Array(16);r.set(t);for(let o=0;o<16;++o)r[o]^=e[o];for(let o=1;o<this._cyclesOfRepetition;o++){for(let l=0;l<16;++l)r[l]=s[r[l]];a=r[1],r[1]=r[5],r[5]=r[9],r[9]=r[13],r[13]=a,a=r[2],n=r[6],r[2]=r[10],r[6]=r[14],r[10]=a,r[14]=n,a=r[3],n=r[7],i=r[11],r[3]=r[15],r[7]=a,r[11]=n,r[15]=i;for(let l=0;l<16;l+=4){let c=r[l],h=r[l+1],f=r[l+2],u=r[l+3];i=c^h^f^u,r[l]^=i^this._mixCol[c^h],r[l+1]^=i^this._mixCol[h^f],r[l+2]^=i^this._mixCol[f^u],r[l+3]^=i^this._mixCol[u^c]}for(let l=0,c=o*16;l<16;++l,++c)r[l]^=e[c]}for(let o=0;o<16;++o)r[o]=s[r[o]];a=r[1],r[1]=r[5],r[5]=r[9],r[9]=r[13],r[13]=a,a=r[2],n=r[6],r[2]=r[10],r[6]=r[14],r[10]=a,r[14]=n,a=r[3],n=r[7],i=r[11],r[3]=r[15],r[7]=a,r[11]=n,r[15]=i;for(let o=0,l=this._keySize;o<16;++o,++l)r[o]^=e[l];return r}_decryptBlock2(t,e){let s=t.length,i=this.buffer,n=this.bufferPosition,a=[],r=this.iv;for(let c=0;c<s;++c){if(i[n]=t[c],++n,n<16)continue;let h=this._decrypt(i,this._key);for(let f=0;f<16;++f)h[f]^=r[f];r=i,a.push(h),i=new Uint8Array(16),n=0}if(this.buffer=i,this.bufferLength=n,this.iv=r,a.length===0)return new Uint8Array(0);let o=16*a.length;if(e){let c=a.at(-1),h=c[15];if(h<=16){for(let f=15,u=16-h;f>=u;--f)if(c[f]!==h){h=0;break}o-=h,a[a.length-1]=c.subarray(0,16-h)}}let l=new Uint8Array(o);for(let c=0,h=0,f=a.length;c<f;++c,h+=16)l.set(a[c],h);return l}decryptBlock(t,e,s=null){let i=t.length,n=this.buffer,a=this.bufferPosition;if(s)this.iv=s;else{for(let r=0;a<16&&r<i;++r,++a)n[a]=t[r];if(a<16)return this.bufferLength=a,new Uint8Array(0);this.iv=n,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,e)}encrypt(t,e){let s=t.length,i=this.buffer,n=this.bufferPosition,a=[];e||=new Uint8Array(16);for(let l=0;l<s;++l){if(i[n]=t[l],++n,n<16)continue;for(let h=0;h<16;++h)i[h]^=e[h];let c=this._encrypt(i,this._key);e=c,a.push(c),i=new Uint8Array(16),n=0}if(this.buffer=i,this.bufferLength=n,this.iv=e,a.length===0)return new Uint8Array(0);let r=16*a.length,o=new Uint8Array(r);for(let l=0,c=0,h=a.length;l<h;++l,c+=16)o.set(a[l],c);return o}};Qd=class Qd extends mf{static{d(this,"AES128Cipher")}_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]);constructor(t){super(),this._cyclesOfRepetition=10,this._keySize=160,this._key=this._expandKey(t)}_expandKey(t){let e=this._s,s=this._rcon,i=new Uint8Array(176);i.set(t);for(let n=16,a=1;n<176;++a){let r=i[n-3],o=i[n-2],l=i[n-1],c=i[n-4];r=e[r],o=e[o],l=e[l],c=e[c],r^=s[a];for(let h=0;h<4;++h)i[n]=r^=i[n-16],n++,i[n]=o^=i[n-16],n++,i[n]=l^=i[n-16],n++,i[n]=c^=i[n-16],n++}return i}};Ch=class Ch extends mf{static{d(this,"AES256Cipher")}constructor(t){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(t)}_expandKey(t){let e=this._s,s=new Uint8Array(240);s.set(t);let i=1,n,a,r,o;for(let l=32,c=1;l<240;++c){l%32===16?(n=e[n],a=e[a],r=e[r],o=e[o]):l%32===0&&(n=s[l-3],a=s[l-2],r=s[l-1],o=s[l-4],n=e[n],a=e[a],r=e[r],o=e[o],n^=i,(i<<=1)>=256&&(i=(i^27)&255));for(let h=0;h<4;++h)s[l]=n^=s[l-32],l++,s[l]=a^=s[l-32],l++,s[l]=r^=s[l-32],l++,s[l]=o^=s[l-32],l++}return s}};Jd=class Jd{static{d(this,"PDFBase")}_hash(t,e,s){Yt("Abstract method `_hash` called")}checkOwnerPassword(t,e,s,i){let n=new Uint8Array(t.length+56);n.set(t,0),n.set(e,t.length),n.set(s,t.length+e.length);let a=this._hash(t,n,s);return Er(a,i)}checkUserPassword(t,e,s){let i=new Uint8Array(t.length+8);i.set(t,0),i.set(e,t.length);let n=this._hash(t,i,[]);return Er(n,s)}getOwnerKey(t,e,s,i){let n=new Uint8Array(t.length+56);n.set(t,0),n.set(e,t.length),n.set(s,t.length+e.length);let a=this._hash(t,n,s);return new Ch(a).decryptBlock(i,!1,new Uint8Array(16))}getUserKey(t,e,s){let i=new Uint8Array(t.length+8);i.set(t,0),i.set(e,t.length);let n=this._hash(t,i,[]);return new Ch(n).decryptBlock(s,!1,new Uint8Array(16))}};j4=class j4 extends Jd{static{d(this,"PDF17")}_hash(t,e,s){return Sh(e,0,e.length)}};v4=class v4 extends Jd{static{d(this,"PDF20")}_hash(t,e,s){let i=Sh(e,0,e.length).subarray(0,32),n=[0],a=0;for(;a<64||n.at(-1)>a-32;){let r=t.length+i.length+s.length,o=new Uint8Array(r),l=0;o.set(t,l),l+=t.length,o.set(i,l),l+=i.length,o.set(s,l);let c=new Uint8Array(r*64);for(let f=0,u=0;f<64;f++,u+=r)c.set(o,u);n=new Qd(i.subarray(0,16)).encrypt(c,i.subarray(16,32));let h=Math.sumPrecise(n.slice(0,16))%3;h===0?i=Sh(n,0,n.length):h===1?i=f4(n,0,n.length):h===2&&(i=Xd(n,0,n.length)),a++}return i.subarray(0,32)}};a1=class a1{static{d(this,"CipherTransform")}constructor(t,e){this.StringCipherConstructor=t,this.StreamCipherConstructor=e}createStream(t,e){let s=new this.StreamCipherConstructor;return new w4(t,e,d(function(i,n){return s.decryptBlock(i,n)},"cipherTransformDecryptStream"))}decryptString(t){let e=new this.StringCipherConstructor,s=Fs(t);return s=e.decryptBlock(s,!0),Us(s)}encryptString(t){let e=new this.StringCipherConstructor;if(e instanceof mf){let i=16-t.length%16;t+=String.fromCharCode(i).repeat(i);let n=new Uint8Array(16);crypto.getRandomValues(n);let a=Fs(t);a=e.encrypt(a,n);let r=new Uint8Array(16+a.length);return r.set(n),r.set(a,16),Us(r)}let s=Fs(t);return s=e.encrypt(s),Us(s)}};yr=class yr{static{d(this,"CipherTransformFactory")}static get _defaultPasswordBytes(){return lt(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]))}#t(t,e,s,i,n,a,r,o,l,c,h,f){if(e){let p=Math.min(127,e.length);e=e.subarray(0,p)}else e=[];let u=t===6?new v4:new j4;return u.checkUserPassword(e,o,r)?u.getUserKey(e,l,h):e.length&&u.checkOwnerPassword(e,i,a,s)?u.getOwnerKey(e,n,a,c):null}#e(t,e,s,i,n,a,r,o){let l=40+s.length+t.length,c=new Uint8Array(l),h=0,f,u;if(e)for(u=Math.min(32,e.length);h<u;++h)c[h]=e[h];for(f=0;h<32;)c[h++]=yr._defaultPasswordBytes[f++];c.set(s,h),h+=s.length,c[h++]=n&255,c[h++]=n>>8&255,c[h++]=n>>16&255,c[h++]=n>>>24&255,c.set(t,h),h+=t.length,a>=4&&!o&&(c.fill(255,h,h+4),h+=4);let p=vn(c,0,h),m=r>>3;if(a>=3)for(f=0;f<50;++f)p=vn(p,0,m);let g=p.subarray(0,m),w,b;if(a>=3){h=0,c.set(yr._defaultPasswordBytes,h),h+=32,c.set(t,h),h+=t.length,w=new Yn(g),b=w.encryptBlock(vn(c,0,h)),u=g.length;let j=new Uint8Array(u);for(f=1;f<=19;++f){for(let v=0;v<u;++v)j[v]=g[v]^f;w=new Yn(j),b=w.encryptBlock(b)}}else w=new Yn(g),b=w.encryptBlock(yr._defaultPasswordBytes);return b.every((j,v)=>i[v]===j)?g:null}#s(t,e,s,i){let n=new Uint8Array(32),a=0,r=Math.min(32,t.length);for(;a<r;++a)n[a]=t[a];let o=0;for(;a<32;)n[a++]=yr._defaultPasswordBytes[o++];let l=vn(n,0,a),c=i>>3;if(s>=3)for(o=0;o<50;++o)l=vn(l,0,l.length);let h,f;if(s>=3){f=e;let u=new Uint8Array(c);for(o=19;o>=0;o--){for(let p=0;p<c;++p)u[p]=l[p]^o;h=new Yn(u),f=h.encryptBlock(f)}}else h=new Yn(l.subarray(0,c)),f=h.encryptBlock(e);return f}#i(t,e,s,i=!1){let n=s.length,a=new Uint8Array(n+9);a.set(s);let r=n;return a[r++]=t&255,a[r++]=t>>8&255,a[r++]=t>>16&255,a[r++]=e&255,a[r++]=e>>8&255,i&&(a[r++]=115,a[r++]=65,a[r++]=108,a[r++]=84),vn(a,0,r).subarray(0,Math.min(n+5,16))}#n(t,e,s,i,n){if(!(e instanceof tt))throw new Q("Invalid crypt filter name.");let a=this,r=t.get(e.name)?.get("CFM");if(!r||r.name==="None")return function(){return new y4};if(r.name==="V2")return function(){return new Yn(a.#i(s,i,n,!1))};if(r.name==="AESV2")return function(){return new Qd(a.#i(s,i,n,!0))};if(r.name==="AESV3")return function(){return new Ch(n)};throw new Q("Unknown crypto method")}constructor(t,e,s){let i=t.get("Filter");if(!re(i,"Standard"))throw new Q("unknown encryption method");this.filterName=i.name,this.dict=t;let n=t.get("V");if(!Number.isInteger(n)||n!==1&&n!==2&&n!==4&&n!==5)throw new Q("unsupported encryption algorithm");this.algorithm=n;let a=t.get("Length");if(!a)if(n<=3)a=40;else{let w=t.get("CF"),b=t.get("StmF");w instanceof B&&b instanceof tt&&(w.suppressEncryption=!0,a=w.get(b.name)?.get("Length")||128,a<40&&(a<<=3))}if(!Number.isInteger(a)||a<40||a%8!==0)throw new Q("invalid key length");let r=Fs(t.get("O")),o=Fs(t.get("U")),l=r.subarray(0,32),c=o.subarray(0,32),h=t.get("P"),f=t.get("R"),u=(n===4||n===5)&&t.get("EncryptMetadata")!==!1;this.encryptMetadata=u;let p=Fs(e),m;if(s){if(f===6)try{s=Xc(s)}catch{T("CipherTransformFactory: Unable to convert UTF8 encoded password.")}m=Fs(s)}let g;if(n!==5)g=this.#e(p,m,l,c,h,f,a,u);else{let w=r.subarray(32,40),b=r.subarray(40,48),j=o.subarray(0,48),v=o.subarray(32,40),q=o.subarray(40,48),x=Fs(t.get("OE")),k=Fs(t.get("UE")),A=Fs(t.get("Perms"));g=this.#t(f,m,l,w,b,j,c,v,q,x,k,A)}if(!g){if(!s)throw new Fr("No password given",tp.NEED_PASSWORD);let w=this.#s(m,l,f,a);g=this.#e(p,w,l,c,h,f,a,u)}if(!g)throw new Fr("Incorrect Password",tp.INCORRECT_PASSWORD);if(n===4&&g.length<16?(this.encryptionKey=new Uint8Array(16),this.encryptionKey.set(g)):this.encryptionKey=g,n>=4){let w=t.get("CF");w instanceof B&&(w.suppressEncryption=!0),this.cf=w,this.stmf=t.get("StmF")||tt.get("Identity"),this.strf=t.get("StrF")||tt.get("Identity"),this.eff=t.get("EFF")||this.stmf}}createCipherTransform(t,e){if(this.algorithm===4||this.algorithm===5)return new a1(this.#n(this.cf,this.strf,t,e,this.encryptionKey),this.#n(this.cf,this.stmf,t,e,this.encryptionKey));let s=this.#i(t,e,this.encryptionKey,!1),i=d(function(){return new Yn(s)},"cipherConstructor");return new a1(i,i)}};k4=class k4{static{d(this,"XRef")}constructor(t,e){this.stream=t,this.pdfManager=e,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new Me,this._newPersistentRefNum=null,this._newTemporaryRefNum=null,this._persistentRefsCache=null}getNewPersistentRef(t){this._newPersistentRefNum===null&&(this._newPersistentRefNum=this.entries.length||1);let e=this._newPersistentRefNum++;return this._cacheMap.set(e,t),nt.get(e,0)}getNewTemporaryRef(){if(this._newTemporaryRefNum===null&&(this._newTemporaryRefNum=this.entries.length||1,this._newPersistentRefNum)){this._persistentRefsCache=new Map;for(let t=this._newTemporaryRefNum;t<this._newPersistentRefNum;t++)this._persistentRefsCache.set(t,this._cacheMap.get(t)),this._cacheMap.delete(t)}return nt.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){if(this._newTemporaryRefNum=null,this._persistentRefsCache)for(let[t,e]of this._persistentRefsCache)this._cacheMap.set(t,e);this._persistentRefsCache=null}setStartXRef(t){this.startXRefQueue=[t]}parse(t=!1){let e;t?(T("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;let s;try{s=e.get("Encrypt")}catch(n){if(n instanceof Ce)throw n;T(`XRef.parse - Invalid "Encrypt" reference: "${n}".`)}if(s instanceof B){let n=e.get("ID"),a=n?.length?n[0]:"";s.suppressEncryption=!0,this.encrypt=new yr(s,a,this.pdfManager.password)}let i;try{i=e.get("Root")}catch(n){if(n instanceof Ce)throw n;T(`XRef.parse - Invalid "Root" reference: "${n}".`)}if(i instanceof B)try{if(i.get("Pages")instanceof B){this.root=i;return}}catch(n){if(n instanceof Ce)throw n;T(`XRef.parse - Invalid "Pages" reference: "${n}".`)}throw t?new Wo("Invalid Root reference."):new aa}processXRefTable(t){"tableState"in this||(this.tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2});let e=this.readXRefTable(t);if(!os(e,"trailer"))throw new Q("Invalid XRef table: could not find trailer dictionary");let s=t.getObj();if(!(s instanceof B)&&s.dict&&(s=s.dict),!(s instanceof B))throw new Q("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,s}readXRefTable(t){let e=t.lexer.stream,s=this.tableState;e.pos=s.streamPos,t.buf1=s.parserBuf1,t.buf2=s.parserBuf2;let i;for(;;){if(!("firstEntryNum"in s)||!("entryCount"in s)){if(os(i=t.getObj(),"trailer"))break;s.firstEntryNum=i,s.entryCount=t.getObj()}let{firstEntryNum:n,entryCount:a}=s;if(!Number.isInteger(n)||!Number.isInteger(a))throw new Q("Invalid XRef table: wrong types in subsection header");for(let r=s.entryNum;r<a;r++){s.streamPos=e.pos,s.entryNum=r,s.parserBuf1=t.buf1,s.parserBuf2=t.buf2;let o={};o.offset=t.getObj(),o.gen=t.getObj();let l=t.getObj();if(l instanceof Je)switch(l.cmd){case"f":o.free=!0;break;case"n":o.uncompressed=!0;break}if(!Number.isInteger(o.offset)||!Number.isInteger(o.gen)||!(o.free||o.uncompressed))throw new Q(`Invalid entry in XRef subsection: ${n}, ${a}`);r===0&&o.free&&n===1&&(n=0),this.entries[r+n]||(this.entries[r+n]=o)}s.entryNum=0,s.streamPos=e.pos,s.parserBuf1=t.buf1,s.parserBuf2=t.buf2,delete s.firstEntryNum,delete s.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new Q("Invalid XRef table: unexpected first object");return i}processXRefStream(t){if(!("streamState"in this)){let{dict:e,pos:s}=t,i=e.get("W"),n=e.get("Index")||[0,e.get("Size")];this.streamState={entryRanges:n,byteWidths:i,entryNum:0,streamPos:s}}return this.readXRefStream(t),delete this.streamState,t.dict}readXRefStream(t){let e=this.streamState;t.pos=e.streamPos;let[s,i,n]=e.byteWidths,a=e.entryRanges;for(;a.length>0;){let[r,o]=a;if(!Number.isInteger(r)||!Number.isInteger(o))throw new Q(`Invalid XRef range fields: ${r}, ${o}`);if(!Number.isInteger(s)||!Number.isInteger(i)||!Number.isInteger(n))throw new Q(`Invalid XRef entry fields length: ${r}, ${o}`);for(let l=e.entryNum;l<o;++l){e.entryNum=l,e.streamPos=t.pos;let c=0,h=0,f=0;for(let p=0;p<s;++p){let m=t.getByte();if(m===-1)throw new Q("Invalid XRef byteWidths 'type'.");c=c<<8|m}s===0&&(c=1);for(let p=0;p<i;++p){let m=t.getByte();if(m===-1)throw new Q("Invalid XRef byteWidths 'offset'.");h=h<<8|m}for(let p=0;p<n;++p){let m=t.getByte();if(m===-1)throw new Q("Invalid XRef byteWidths 'generation'.");f=f<<8|m}let u={};switch(u.offset=h,u.gen=f,c){case 0:u.free=!0;break;case 1:u.uncompressed=!0;break;case 2:break;default:throw new Q(`Invalid XRef entry type: ${c}`)}this.entries[r+l]||(this.entries[r+l]=u)}e.entryNum=0,e.streamPos=t.pos,a.splice(0,2)}}indexObjects(){function t(v,q){let x="",k=v[q];for(;k!==10&&k!==13&&k!==60&&!(++q>=v.length);)x+=String.fromCharCode(k),k=v[q];return x}d(t,"readToken");function e(v,q,x){let k=x.length,A=v.length,S=0;for(;q<A;){let I=0;for(;I<k&&v[q+I]===x[I];)++I;if(I>=k)break;q++,S++}return S}d(e,"skipUntil");let s=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,i=/\b(startxref|\d+\s+\d+\s+obj)\b/g,n=/^(\d+)\s+(\d+)\s+obj\b/,a=new Uint8Array([116,114,97,105,108,101,114]),r=new Uint8Array([115,116,97,114,116,120,114,101,102]),o=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();let l=this.stream;l.pos=0;let c=l.getBytes(),h=Us(c),f=c.length,u=l.start,p=[],m=[];for(;u<f;){let v=c[u];if(v===9||v===10||v===13||v===32){++u;continue}if(v===37){do{if(++u,u>=f)break;v=c[u]}while(v!==10&&v!==13);continue}let q=t(c,u),x;if(q.startsWith("xref")&&(q.length===4||/\s/.test(q[4])))u+=e(c,u,a),p.push(u),u+=e(c,u,r);else if(x=n.exec(q)){let k=x[1]|0,A=x[2]|0,S=u+q.length,I,E=!1;if(!this.entries[k])E=!0;else if(this.entries[k].gen===A)try{new wn({lexer:new Ci(l.makeSubStream(S))}).getObj(),E=!0}catch(it){it instanceof Qc?T(`indexObjects -- checking object (${q}): "${it}".`):E=!0}E&&(this.entries[k]={offset:u-l.start,gen:A,uncompressed:!0}),s.lastIndex=S;let D=s.exec(h);D?(I=s.lastIndex+1-u,D[1]!=="endobj"&&(T(`indexObjects: Found "${D[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),I-=D[1].length+1)):I=f-u;let O=c.subarray(u,u+I),$=e(O,0,o);$<I&&O[$+5]<64&&(m.push(u-l.start),this._xrefStms.add(u-l.start)),u+=I}else if(q.startsWith("trailer")&&(q.length===7||/\s/.test(q[7]))){p.push(u);let k=u+q.length,A;i.lastIndex=k;let S=i.exec(h);S?(A=i.lastIndex+1-u,S[1]!=="startxref"&&(T(`indexObjects: Found "${S[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),A-=S[1].length+1)):A=f-u,u+=A}else u+=q.length+1}for(let v of m)this.startXRefQueue.push(v),this.readXRef(!0);let g=[],w=!1;for(let v of p){l.pos=v;let q=new wn({lexer:new Ci(l),xref:this,allowStreams:!0,recoveryMode:!0}),x=q.getObj();if(!os(x,"trailer"))continue;let k=q.getObj();k instanceof B&&(g.push(k),k.has("Encrypt")&&(w=!0))}let b,j;for(let v of[...g,"genFallback",...g]){if(v==="genFallback"){if(!j)break;this._generationFallback=!0;continue}let q=!1;try{let x=v.get("Root");if(!(x instanceof B))continue;let k=x.get("Pages");if(!(k instanceof B))continue;let A=k.get("Count");Number.isInteger(A)&&(q=!0)}catch(x){j=x;continue}if(q&&(!w||v.has("Encrypt"))&&v.has("ID"))return v;b=v}if(b)return b;if(this.topDict)return this.topDict;if(!g.length)for(let v in this.entries){let q=this.entries[v];if(!q)continue;let x=nt.get(parseInt(v),q.gen),k;try{k=this.fetch(x)}catch{continue}if(k instanceof Lt&&(k=k.dict),k instanceof B&&k.has("Root"))return k}throw new Wo("Invalid PDF structure.")}readXRef(t=!1){let e=this.stream,s=new Set;for(;this.startXRefQueue.length;){try{let i=this.startXRefQueue[0];if(s.has(i)){T("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}s.add(i),e.pos=i+e.start;let n=new wn({lexer:new Ci(e),xref:this,allowStreams:!0}),a=n.getObj(),r;if(os(a,"xref"))r=this.processXRefTable(n),this.topDict||(this.topDict=r),a=r.get("XRefStm"),Number.isInteger(a)&&!this._xrefStms.has(a)&&(this._xrefStms.add(a),this.startXRefQueue.push(a));else if(Number.isInteger(a)){if(!Number.isInteger(n.getObj())||!os(n.getObj(),"obj")||!((a=n.getObj())instanceof Lt))throw new Q("Invalid XRef stream");if(r=this.processXRefStream(a),this.topDict||(this.topDict=r),!r)throw new Q("Failed to read XRef stream")}else throw new Q("Invalid XRef stream header");a=r.get("Prev"),Number.isInteger(a)?this.startXRefQueue.push(a):a instanceof nt&&this.startXRefQueue.push(a.num)}catch(i){if(i instanceof Ce)throw i;Wt("(while reading XRef): "+i)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!t)throw new aa}getEntry(t){let e=this.entries[t];return e&&!e.free&&e.offset?e:null}fetchIfRef(t,e=!1){return t instanceof nt?this.fetch(t,e):t}fetch(t,e=!1){if(!(t instanceof nt))throw Error("ref object is not a reference");let s=t.num,i=this._cacheMap.get(s);if(i!==void 0)return i instanceof B&&!i.objId&&(i.objId=t.toString()),i;let n=this.getEntry(s);if(n===null)return n;if(this._pendingRefs.has(t))return this._pendingRefs.remove(t),T(`Ignoring circular reference: ${t}.`),ty;this._pendingRefs.put(t);try{n=n.uncompressed?this.fetchUncompressed(t,n,e):this.fetchCompressed(t,n,e),this._pendingRefs.remove(t)}catch(a){throw this._pendingRefs.remove(t),a}return n instanceof B?n.objId=t.toString():n instanceof Lt&&(n.dict.objId=t.toString()),n}fetchUncompressed(t,e,s=!1){let{gen:i,num:n}=t;if(e.gen!==i){let h=`Inconsistent generation in XRef: ${t}`;if(this._generationFallback&&e.gen<i)return T(h),this.fetchUncompressed(nt.get(n,e.gen),e,s);throw new qn(h)}let a=this.stream.makeSubStream(e.offset+this.stream.start),r=new wn({lexer:new Ci(a),xref:this,allowStreams:!0}),o=r.getObj(),l=r.getObj(),c=r.getObj();if(o!==n||l!==i||!(c instanceof Je))throw new qn(`Bad (uncompressed) XRef entry: ${t}`);if(c.cmd!=="obj"){if(c.cmd.startsWith("obj")&&(n=parseInt(c.cmd.substring(3),10),!Number.isNaN(n)))return n;throw new qn(`Bad (uncompressed) XRef entry: ${t}`)}return e=this.encrypt&&!s?r.getObj(this.encrypt.createCipherTransform(n,i)):r.getObj(),e instanceof Lt||this._cacheMap.set(n,e),e}fetchCompressed(t,e,s=!1){let i=e.offset,n=this.fetch(nt.get(i,0));if(!(n instanceof Lt))throw new Q("bad ObjStm stream");let a=n.dict.get("First"),r=n.dict.get("N");if(!Number.isInteger(a)||!Number.isInteger(r))throw new Q("invalid first and n parameters for ObjStm stream");let o=new wn({lexer:new Ci(n),xref:this,allowStreams:!0}),l=Array(r),c=Array(r);for(let u=0;u<r;++u){let p=o.getObj();if(!Number.isInteger(p))throw new Q(`invalid object number in the ObjStm stream: ${p}`);let m=o.getObj();if(!Number.isInteger(m))throw new Q(`invalid object offset in the ObjStm stream: ${m}`);l[u]=p;let g=this.getEntry(p);g?.offset===i&&g.gen!==u&&(g.gen=u),c[u]=m}let h=(n.start||0)+a,f=Array(r);for(let u=0;u<r;++u){let p=u<r-1?c[u+1]-c[u]:void 0;if(p<0)throw new Q("Invalid offset in the ObjStm stream.");o=new wn({lexer:new Ci(n.makeSubStream(h+c[u],p,n.dict)),xref:this,allowStreams:!0});let m=o.getObj();if(f[u]=m,m instanceof Lt)continue;let g=l[u],w=this.entries[g];w&&w.offset===i&&w.gen===u&&this._cacheMap.set(g,m)}if(e=f[e.gen],e===void 0)throw new qn(`Bad (compressed) XRef entry: ${t}`);return e}async fetchIfRefAsync(t,e){return t instanceof nt?this.fetchAsync(t,e):t}async fetchAsync(t,e){try{return this.fetch(t,e)}catch(s){if(!(s instanceof Ce))throw s;return await this.pdfManager.requestRange(s.begin,s.end),this.fetchAsync(t,e)}}getCatalogObj(){return this.root}};nv=[0,0,612,792];r1=class r1{static{d(this,"Page")}#t=!1;#e=null;constructor({pdfManager:t,xref:e,pageIndex:s,pageDict:i,ref:n,globalIdFactory:a,fontCache:r,builtInCMapCache:o,standardFontDataCache:l,globalColorSpaceCache:c,globalImageCache:h,systemFontCache:f,nonBlendModesSet:u,xfaFactory:p}){this.pdfManager=t,this.pageIndex=s,this.pageDict=i,this.xref=e,this.ref=n,this.fontCache=r,this.builtInCMapCache=o,this.standardFontDataCache=l,this.globalColorSpaceCache=c,this.globalImageCache=h,this.systemFontCache=f,this.nonBlendModesSet=u,this.evaluatorOptions=t.evaluatorOptions,this.xfaFactory=p;let m={obj:0};this._localIdFactory=class extends a{static createObjId(){return`p${s}_${++m.obj}`}static getPageObjId(){return`p${n.toString()}`}}}#s(t,e=this.pageIndex){return new Pr({xref:this.xref,handler:t,pageIndex:e,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})}createAnnotationEvaluator(t){return this.#s(t)}#i(t,e=!1){let s=ii({dict:this.pageDict,key:t,getArray:e,stopWhenFound:!1});return Array.isArray(s)?s.length===1||!(s[0]instanceof B)?s[0]:B.merge({xref:this.xref,dictArray:s}):s}get content(){return this.pageDict.getArray("Contents")}get resources(){let t=this.#i("Resources");return lt(this,"resources",t instanceof B?t:B.empty)}getBoundingBox(t){if(this.xfaData)return this.xfaData.bbox;let e=ln(this.#i(t,!0),null);if(e){if(e[2]-e[0]>0&&e[3]-e[1]>0)return e;T(`Empty, or invalid, /${t} entry.`)}return null}get mediaBox(){return lt(this,"mediaBox",this.getBoundingBox("MediaBox")||nv)}get cropBox(){return lt(this,"cropBox",this.getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let t=this.pageDict.get("UserUnit");return lt(this,"userUnit",typeof t=="number"&&t>0?t:1)}get view(){let{cropBox:t,mediaBox:e}=this;if(t!==e&&!Er(t,e)){let s=de.intersect(t,e);if(s&&s[2]-s[0]>0&&s[3]-s[1]>0)return lt(this,"view",s);T("Empty /CropBox and /MediaBox intersection.")}return lt(this,"view",e)}get rotate(){let t=this.#i("Rotate")||0;return t%90!==0?t=0:t>=360?t%=360:t<0&&(t=(t%360+360)%360),lt(this,"rotate",t)}#n(t,e){if(this.evaluatorOptions.ignoreErrors){T(`getContentStream - ignoring sub-stream (${e}): "${t}".`);return}throw t}async getContentStream(){let t=await this.pdfManager.ensure(this,"content");if(t instanceof Lt&&!t.isImageStream){if(t.isAsync){let e=await t.asyncGetBytes();if(e)return new je(e,0,e.length,t.dict)}return t}if(Array.isArray(t)){let e=[];for(let s=0,i=t.length;s<i;s++){let n=t[s];n instanceof Lt&&n.isAsync&&e.push(n.asyncGetBytes().then((a)=>{a&&(t[s]=new je(a,0,a.length,n.dict))}))}return e.length>0&&await Promise.all(e),new gg(t,this.#n.bind(this))}return new th}get xfaData(){return lt(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async#a(t,e,s){let i=[];for(let n of t)if(n.id){let a=nt.fromString(n.id);if(!a){T(`A non-linked annotation cannot be modified: ${n.id}`);continue}if(n.deleted){if(e.put(a,a),n.popupRef){let r=nt.fromString(n.popupRef);r&&e.put(r,r)}continue}if(n.popup?.deleted){let r=nt.fromString(n.popupRef);r&&e.put(r,r)}s?.put(a),n.ref=a,i.push(this.xref.fetchAsync(a).then((r)=>{r instanceof B&&(n.oldAnnotation=r.clone())},()=>{T(`Cannot fetch \`oldAnnotation\` for: ${a}.`)})),delete n.id}await Promise.all(i)}async saveNewAnnotations(t,e,s,i,n){if(this.xfaFactory)throw Error("XFA: Cannot save new annotations.");let a=this.#s(t),r=new ts,o=new Me;await this.#a(s,r,o);let l=this.pageDict,c=this.annotations.filter((u)=>!(u instanceof nt&&r.has(u))),h=await Ii.saveNewAnnotations(a,this.xref,e,s,i,n);for(let{ref:u}of h.annotations)u instanceof nt&&!o.has(u)&&c.push(u);let f=l.clone();f.set("Annots",c),n.put(this.ref,{data:f});for(let u of r)n.put(u,{data:null})}async save(t,e,s,i){let n=this.#s(t),a=await this._parsedAnnotations,r=[];for(let o of a)r.push(o.save(n,e,s,i).catch(function(l){return T(`save - ignoring annotation data during "${e.name}" task: "${l}".`),null}));return Promise.all(r)}async loadResources(t){await(this.#e??=this.pdfManager.ensure(this,"resources")),await Rr.load(this.resources,t,this.xref)}async#r(t,e){let s=t?.get("Resources");return s instanceof B&&s.size?(await Rr.load(s,e,this.xref),B.merge({xref:this.xref,dictArray:[s,this.resources],mergeSubDicts:!0})):this.resources}async getOperatorList({handler:t,sink:e,task:s,intent:i,cacheKey:n,pageIndex:a=this.pageIndex,annotationStorage:r=null,modifiedIds:o=null}){let l=this.getContentStream(),c=this.loadResources(eu),h=this.#s(t,a),f=(this.xfaFactory?null:Uh(r))?.get(this.pageIndex),u=Promise.resolve(null),p=null;if(f){let D=this.pdfManager.ensureDoc("annotationGlobals"),O,$=new Set;for(let{bitmapId:W,bitmap:H}of f)W&&!H&&!$.has(W)&&$.add(W);let{isOffscreenCanvasSupported:it}=this.evaluatorOptions;if($.size>0){let W=f.slice();for(let[H,L]of r)H.startsWith(Zp)&&L.bitmap&&$.has(L.bitmapId)&&W.push(L);O=Ii.generateImages(W,this.xref,it)}else O=Ii.generateImages(f,this.xref,it);p=new Me,u=Promise.all([D,this.#a(f,p,null)]).then(([W])=>W?Ii.printNewAnnotations(W,h,s,f,O):null)}let m=Promise.all([l,c]).then(async([D])=>{let O=await this.#r(D.dict,eu),$=new vs(i,e);return t.send("StartRenderPage",{transparency:h.hasBlendModes(O,this.nonBlendModesSet),pageIndex:a,cacheKey:n}),await h.getOperatorList({stream:D,task:s,resources:O,operatorList:$}),$}),[g,w,b]=await Promise.all([m,this._parsedAnnotations,u]);if(b){w=w.filter((D)=>!(D.ref&&p.has(D.ref)));for(let D=0,O=b.length;D<O;D++){let $=b[D];if($.refToReplace){let it=w.findIndex((W)=>W.ref&&Ko(W.ref,$.refToReplace));it>=0&&(w.splice(it,1,$),b.splice(D--,1),O--)}}w=w.concat(b)}if(w.length===0||i&zs.ANNOTATIONS_DISABLE)return g.flush(!0),{length:g.totalLength};let j=!!(i&zs.ANNOTATIONS_FORMS),v=!!(i&zs.IS_EDITING),q=!!(i&zs.ANY),x=!!(i&zs.DISPLAY),k=!!(i&zs.PRINT),A=[];for(let D of w)(q||x&&D.mustBeViewed(r,j)&&D.mustBeViewedWhenEditing(v,o)||k&&D.mustBePrinted(r))&&A.push(D.getOperatorList(h,s,i,r).catch(function(O){return T(`getOperatorList - ignoring annotation data during "${s.name}" task: "${O}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));let S=await Promise.all(A),I=!1,E=!1;for(let{opList:D,separateForm:O,separateCanvas:$}of S)g.addOpList(D),I||=O,E||=$;return g.flush(!0,{form:I,canvas:E}),{length:g.totalLength}}async extractTextContent({handler:t,task:e,includeMarkedContent:s,disableNormalization:i,sink:n,intersector:a=null}){let r=this.getContentStream(),o=this.loadResources(su),l=this.pdfManager.ensureCatalog("lang"),[c,,h]=await Promise.all([r,o,l]),f=await this.#r(c.dict,su);return this.#s(t).getTextContent({stream:c,task:e,resources:f,includeMarkedContent:s,disableNormalization:i,sink:n,viewBox:this.view,lang:h,intersector:a})}async getStructTree(){let t=await this.pdfManager.ensureCatalog("structTreeRoot");if(!t)return null;await this._parsedAnnotations;try{let e=await this.pdfManager.ensure(this,"_parseStructTree",[t]);return await this.pdfManager.ensure(e,"serializable")}catch(e){return T(`getStructTree: "${e}".`),null}}_parseStructTree(t){let e=new gd(t,this.pageDict);return e.parse(this.ref),e}async getAnnotationsData(t,e,s){let i=await this._parsedAnnotations;if(i.length===0)return i;let n=[],a=[],r,o=!!(s&zs.ANY),l=!!(s&zs.DISPLAY),c=!!(s&zs.PRINT),h=[];for(let f of i){let u=o||l&&f.viewable;(u||c&&f.printable)&&n.push(f.data),f.hasTextContent&&u?(r??=this.#s(t),a.push(f.extractTextContent(r,e,[-1/0,-1/0,1/0,1/0]).catch(function(p){T(`getAnnotationsData - ignoring textContent during "${e.name}" task: "${p}".`)}))):f.overlaysTextContent&&u&&h.push(f)}if(h.length>0){let f=new n4(h);a.push(this.extractTextContent({handler:t,task:e,includeMarkedContent:!1,disableNormalization:!1,sink:null,viewBox:this.view,lang:null,intersector:f}).then(()=>{f.setText()}))}return await Promise.all(a),n}get annotations(){let t=this.#i("Annots");return lt(this,"annotations",Array.isArray(t)?t:[])}get _parsedAnnotations(){let t=this.pdfManager.ensure(this,"annotations").then(async(e)=>{if(e.length===0)return e;let[s,i]=await Promise.all([this.pdfManager.ensureDoc("annotationGlobals"),this.pdfManager.ensureDoc("fieldObjects")]);if(!s)return[];let n=i?.orphanFields,a=[];for(let c of e)a.push(Ii.create(this.xref,c,s,this._localIdFactory,!1,n,null,this.ref).catch(function(h){return T(`_parsedAnnotations: "${h}".`),null}));let r=[],o,l;for(let c of await Promise.all(a))if(c){if(c instanceof Wi){(l||=[]).push(c);continue}if(c instanceof pf){(o||=[]).push(c);continue}r.push(c)}return l&&r.push(...l),o&&r.push(...o),r});return this.#t=!0,lt(this,"_parsedAnnotations",t)}get jsActions(){let t=kl(this.xref,this.pageDict,Y7);return lt(this,"jsActions",t)}async collectAnnotationsByType(t,e,s,i,n){let{pageIndex:a}=this;if(this.#t){let o=await this._parsedAnnotations;for(let{data:l}of o)(!s||s.has(l.annotationType))&&(l.pageIndex=a,i.push(Promise.resolve(l)));return}let r=await this.pdfManager.ensure(this,"annotations");for(let o of r)i.push(Ii.create(this.xref,o,n,this._localIdFactory,!1,null,s,this.ref).then(async(l)=>{if(!l)return null;if(l.data.pageIndex=a,l.hasTextContent&&l.viewable){let c=this.#s(t);await l.extractTextContent(c,e,[-1/0,-1/0,1/0,1/0])}return l.data}).catch(function(l){return T(`collectAnnotationsByType: "${l}".`),null}))}};Rp=new Uint8Array([37,80,68,70,45]),Hp=new Uint8Array([115,116,97,114,116,120,114,101,102]),av=new Uint8Array([101,110,100,111,98,106]);d(Uc,"find");Zd=class Zd{static{d(this,"PDFDocument")}#t=new Map;#e=null;constructor(t,e){if(e.length<=0)throw new Wo("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=e,this.xref=new k4(e,t);let s={font:0};this._globalIdFactory=class{static getDocId(){return`g_${t.docId}`}static createFontId(){return`f${++s.font}`}static createObjId(){Yt("Abstract method `createObjId` called.")}static getPageObjId(){Yt("Abstract method `getPageObjId` called.")}}}parse(t){this.xref.parse(t),this.catalog=new Ma(this.pdfManager,this.xref)}get linearization(){let t=null;try{t=Pg.create(this.stream)}catch(e){if(e instanceof Ce)throw e;Wt(e)}return lt(this,"linearization",t)}get startXRef(){let t=this.stream,e=0;if(this.linearization){if(t.reset(),Uc(t,av)){t.skip(6);let s=t.peekByte();for(;ai(s);)t.pos++,s=t.peekByte();e=t.pos-t.start}}else{let s=Hp.length,i=!1,n=t.end;for(;!i&&n>0;)n-=1024-s,n<0&&(n=0),t.pos=n,i=Uc(t,Hp,1024,!0);if(i){t.skip(9);let a;do a=t.getByte();while(ai(a));let r="";for(;a>=32&&a<=57;)r+=String.fromCharCode(a),a=t.getByte();e=parseInt(r,10),isNaN(e)&&(e=0)}}return lt(this,"startXRef",e)}checkHeader(){let t=this.stream;if(t.reset(),!Uc(t,Rp))return;t.moveStart(),t.skip(Rp.length);let e="",s;for(;(s=t.getByte())>32&&e.length<7;)e+=String.fromCharCode(s);mm.test(e)?this.#e=e:T(`Invalid PDF header version: ${e}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let t=0;return this.catalog.hasActualNumPages?t=this.catalog.numPages:this.xfaFactory?t=this.xfaFactory.getNumPages():this.linearization?t=this.linearization.numPages:t=this.catalog.numPages,lt(this,"numPages",t)}#s(t,e=0){return Array.isArray(t)?t.every((s)=>{if(s=this.xref.fetchIfRef(s),!(s instanceof B))return!1;if(s.has("Kids"))return++e>10?(T("#hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this.#s(s.get("Kids"),e);let i=re(s.get("FT"),"Sig"),n=s.get("Rect"),a=Array.isArray(n)&&n.every((r)=>r===0);return i&&a}):!1}get _xfaStreams(){let{acroForm:t}=this.catalog;if(!t)return null;let e=t.get("XFA"),s=new Map(["xdp:xdp","template","datasets","config","connectionSet","localeSet","stylesheet","/xdp:xdp"].map((i)=>[i,null]));if(e instanceof Lt&&!e.isEmpty)return s.set("xdp:xdp",e),s;if(!Array.isArray(e)||e.length===0)return null;for(let i=0,n=e.length;i<n;i+=2){let a;if(i===0?a="xdp:xdp":i===n-2?a="/xdp:xdp":a=e[i],!s.has(a))continue;let r=this.xref.fetchIfRef(e[i+1]);!(r instanceof Lt)||r.isEmpty||s.set(a,r)}return s}get xfaDatasets(){let t=this._xfaStreams;if(!t)return lt(this,"xfaDatasets",null);for(let e of["datasets","xdp:xdp"]){let s=t.get(e);if(s)try{let i=Ha(s.getString()),n={[e]:i};return lt(this,"xfaDatasets",new s4(n))}catch{T("XFA - Invalid utf-8 string.");break}}return lt(this,"xfaDatasets",null)}get xfaData(){let t=this._xfaStreams;if(!t)return null;let e=Object.create(null);for(let[s,i]of t)if(i)try{e[s]=Ha(i.getString())}catch{return T("XFA - Invalid utf-8 string."),null}return e}get xfaFactory(){let t;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(t=this.xfaData),lt(this,"xfaFactory",t?new _l(t):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():!1}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async#i(){let t=await this.pdfManager.ensureCatalog("xfaImages");t&&this.xfaFactory.setImages(t)}async#n(t,e){let s=await this.pdfManager.ensureCatalog("acroForm");if(!s)return;let i=await s.getAsync("DR");if(!(i instanceof B))return;await Rr.load(i,["Font"],this.xref);let n=i.get("Font");if(!(n instanceof B))return;let a=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions,{useSystemFonts:!1}),{builtInCMapCache:r,fontCache:o,standardFontDataCache:l}=this.catalog,c=new Pr({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:o,builtInCMapCache:r,standardFontDataCache:l,options:a}),h=new vs,f=[],u={get font(){return f.at(-1)},set font(b){f.push(b)},clone(){return this}},p=d((b,j,v)=>c.handleSetFont(i,[tt.get(b),1],null,h,e,u,j,v).catch((q)=>(T(`loadXfaFonts: "${q}".`),null)),"parseFont"),m=[];for(let[b,j]of n){let v=j.get("FontDescriptor");if(!(v instanceof B))continue;let q=v.get("FontFamily");q=q.replaceAll(/[ ]+(\d)/g,"$1");let x=v.get("FontWeight"),k=-v.get("ItalicAngle"),A={fontFamily:q,fontWeight:x,italicAngle:k};jm(A)&&m.push(p(b,null,A))}await Promise.all(m);let g=this.xfaFactory.setFonts(f);if(!g)return;a.ignoreErrors=!0,m.length=0,f.length=0;let w=new Set;for(let b of g)Kh(`${b}-Regular`)||w.add(b);w.size&&g.push("PdfJS-Fallback");for(let b of g)if(!w.has(b))for(let j 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 v=`${b}-${j.name}`;m.push(p(v,ld(v),{fontFamily:b,fontWeight:j.fontWeight,italicAngle:j.italicAngle}))}await Promise.all(m),this.xfaFactory.appendFonts(f,w)}loadXfaResources(t,e){return Promise.all([this.#n(t,e).catch(()=>{}),this.#i()])}serializeXfaData(t){return this.xfaFactory?this.xfaFactory.serializeData(t):null}get version(){return this.catalog.version||this.#e}get formInfo(){let t={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},{acroForm:e}=this.catalog;if(!e)return lt(this,"formInfo",t);try{let s=e.get("Fields"),i=Array.isArray(s)&&s.length>0;t.hasFields=i;let n=e.get("XFA");t.hasXfa=Array.isArray(n)&&n.length>0||n instanceof Lt&&!n.isEmpty;let a=!!(e.get("SigFlags")&1),r=a&&this.#s(s);t.hasAcroForm=i&&!r,t.hasSignatures=a}catch(s){if(s instanceof Ce)throw s;T(`Cannot fetch form information: "${s}".`)}return lt(this,"formInfo",t)}get documentInfo(){let{catalog:t,formInfo:e,xref:s}=this,i={PDFFormatVersion:this.version,Language:t.lang,EncryptFilterName:s.encrypt?.filterName??null,IsLinearized:!!this.linearization,IsAcroFormPresent:e.hasAcroForm,IsXFAPresent:e.hasXfa,IsCollectionPresent:!!t.collection,IsSignaturesPresent:e.hasSignatures},n;try{n=s.trailer.get("Info")}catch(a){if(a instanceof Ce)throw a;Wt("The document information dictionary is invalid.")}if(!(n instanceof B))return lt(this,"documentInfo",i);for(let[a,r]of n){switch(a){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof r=="string"){i[a]=Xt(r);continue}break;case"Trapped":if(r instanceof tt){i[a]=r;continue}break;default:let o;switch(typeof r){case"string":o=Xt(r);break;case"number":case"boolean":o=r;break;default:r instanceof tt&&(o=r);break}if(o===void 0){T(`Bad value, for custom key "${a}", in Info: ${r}.`);continue}i.Custom??=Object.create(null),i.Custom[a]=o;continue}T(`Bad value, for key "${a}", in Info: ${r}.`)}return lt(this,"documentInfo",i)}get fingerprints(){let t="\x00".repeat(16);function e(a){return typeof a=="string"&&a.length===16&&a!==t}d(e,"validate");let s=this.xref.trailer.get("ID"),i,n;return Array.isArray(s)&&e(s[0])?(i=Fs(s[0]),s[1]!==s[0]&&e(s[1])&&(n=Fs(s[1]))):i=vn(this.stream.getByteRange(0,1024),0,1024),lt(this,"fingerprints",[i.toHex(),n?.toHex()??null])}async#a(t){let{catalog:e,linearization:s,xref:i}=this,n=nt.get(s.objectNumberFirst,0);try{let a=await i.fetchAsync(n);if(a instanceof B){let r=a.getRaw("Type");if(r instanceof nt&&(r=await i.fetchAsync(r)),re(r,"Page")||!a.has("Type")&&!a.has("Kids")&&a.has("Contents"))return e.pageKidsCountCache.has(n)||e.pageKidsCountCache.put(n,1),e.pageIndexCache.has(n)||e.pageIndexCache.put(n,0),[a,n]}throw new Q("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(a){return T(`_getLinearizationPage: "${a.message}".`),e.getPageDict(t)}}getPage(t){let e=this.#t.get(t);if(e)return e;let{catalog:s,linearization:i,xfaFactory:n}=this,a;return n?a=Promise.resolve([B.empty,null]):i?.pageFirst===t?a=this.#a(t):a=s.getPageDict(t),a=a.then(([r,o])=>new r1({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:r,ref:o,globalIdFactory:this._globalIdFactory,fontCache:s.fontCache,builtInCMapCache:s.builtInCMapCache,standardFontDataCache:s.standardFontDataCache,globalColorSpaceCache:s.globalColorSpaceCache,globalImageCache:s.globalImageCache,systemFontCache:s.systemFontCache,nonBlendModesSet:s.nonBlendModesSet,xfaFactory:n})),this.#t.set(t,a),a}async checkFirstPage(t=!1){if(!t)try{await this.getPage(0)}catch(e){if(e instanceof qn)throw this.#t.delete(0),await this.cleanup(),new aa}}async checkLastPage(t=!1){let{catalog:e,pdfManager:s}=this;e.setActualNumPages();let i;try{if(await Promise.all([s.ensureDoc("xfaFactory"),s.ensureDoc("linearization"),s.ensureCatalog("numPages")]),this.xfaFactory)return;if(this.linearization?i=this.linearization.numPages:i=e.numPages,Number.isInteger(i)){if(i<=1)return}else throw new Q("Page count is not an integer.");await this.getPage(i-1)}catch(n){if(this.#t.delete(i-1),await this.cleanup(),n instanceof qn&&!t)throw new aa;T(`checkLastPage - invalid /Pages tree /Count: ${i}.`);let a;try{a=await e.getAllPageDicts(t)}catch(r){if(r instanceof qn&&!t)throw new aa;e.setActualNumPages(1);return}for(let[r,[o,l]]of a){let c;o instanceof Error?(c=Promise.reject(o),c.catch(()=>{})):c=Promise.resolve(new r1({pdfManager:s,xref:this.xref,pageIndex:r,pageDict:o,ref:l,globalIdFactory:this._globalIdFactory,fontCache:e.fontCache,builtInCMapCache:e.builtInCMapCache,standardFontDataCache:e.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:e.globalImageCache,systemFontCache:e.systemFontCache,nonBlendModesSet:e.nonBlendModesSet,xfaFactory:null})),this.#t.set(r,c)}e.setActualNumPages(a.size)}}async fontFallback(t,e){let{catalog:s,pdfManager:i}=this;for(let n of await Promise.all(s.fontCache))if(n.loadedName===t){n.fallback(e,i.evaluatorOptions);return}}async cleanup(t=!1){return this.catalog?this.catalog.cleanup(t):Qh()}async#r(t,e,s,i,n,a,r){let{xref:o}=this;if(!(s instanceof nt)||a.has(s))return;a.put(s);let l=await o.fetchAsync(s);if(!(l instanceof B))return;let c=await l.getAsync("Subtype");if(c=c instanceof tt?c.name:null,c==="Link")return;if(l.has("T")){let f=Xt(await l.getAsync("T"));t=t===""?f:`${t}.${f}`}else{let f=l;for(;;){if(f=f.getRaw("Parent")||e,f instanceof nt){if(a.has(f))break;f=await o.fetchAsync(f)}if(!(f instanceof B))break;if(f.has("T")){let u=Xt(await f.getAsync("T"));t=t===""?u:`${t}.${u}`;break}}}if(e&&!l.has("Parent")&&re(l.get("Subtype"),"Widget")&&r.put(s,e),i.getOrInsertComputed(t,Nh).push(Ii.create(o,s,n,null,!0,r,null,null).then((f)=>f?.getFieldObject()).catch(function(f){return T(`#collectFieldObjects: "${f}".`),null})),!l.has("Kids"))return;let h=await l.getAsync("Kids");if(Array.isArray(h))for(let f of h)await this.#r(t,s,f,i,n,a,r)}get fieldObjects(){let t=this.pdfManager.ensureDoc("formInfo").then(async(e)=>{if(!e.hasFields)return null;let s=await this.annotationGlobals;if(!s)return null;let{acroForm:i}=s,n=new Me,a=Object.create(null),r=new Map,o=new ts;for(let c of i.get("Fields"))await this.#r("",null,c,r,s,n,o);let l=[];for(let[c,h]of r)l.push(Promise.all(h).then((f)=>{f=f.filter((u)=>!!u),f.length>0&&(a[c]=f)}));return await Promise.all(l),{allFields:Oh(a)>0?a:null,orphanFields:o}});return lt(this,"fieldObjects",t)}get hasJSActions(){let t=this.pdfManager.ensureDoc("_parseHasJSActions");return lt(this,"hasJSActions",t)}async _parseHasJSActions(){let[t,e]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return t?!0:e?.allFields?Object.values(e.allFields).some((s)=>s.some((i)=>i.actions!==null)):!1}get calculationOrderIds(){let t=this.catalog.acroForm?.get("CO");if(!Array.isArray(t)||t.length===0)return lt(this,"calculationOrderIds",null);let e=[];for(let s of t)s instanceof nt&&e.push(s.toString());return lt(this,"calculationOrderIds",e.length?e:null)}get annotationGlobals(){return lt(this,"annotationGlobals",Ii.createGlobals(this.pdfManager))}async toJSObject(t,e=!0){throw Error("Not implemented: toJSObject")}};d(q4,"parseDocBaseUrl");t0=class t0{static{d(this,"BasePdfManager")}constructor({docBaseUrl:t,docId:e,enableXfa:s,evaluatorOptions:i,handler:n,password:a}){if(this._docBaseUrl=q4(t),this._docId=e,this._password=a,this.enableXfa=s,i.isOffscreenCanvasSupported&&=Ms.isOffscreenCanvasSupported,i.isImageDecoderSupported&&=Ms.isImageDecoderSupported,i.enableWebGPU){let o=!1;i.prepareWebGPU=()=>{o||(o=!0,n.send("PrepareWebGPU",null))}}delete i.enableWebGPU,this.evaluatorOptions=Object.freeze(i),ei.setOptions(i),Ur.setOptions(i),vs.setOptions(i);let r={...i,handler:n};Sl.setOptions(r),Fn.setOptions(r),Jo.setOptions(r),xl.setOptions(r)}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}ensureDoc(t,e){return this.ensure(this.pdfDocument,t,e)}ensureXRef(t,e){return this.ensure(this.pdfDocument.xref,t,e)}ensureCatalog(t,e){return this.ensure(this.pdfDocument.catalog,t,e)}getPage(t){return this.pdfDocument.getPage(t)}fontFallback(t,e){return this.pdfDocument.fontFallback(t,e)}cleanup(t=!1){return this.pdfDocument.cleanup(t)}async ensure(t,e,s){Yt("Abstract method `ensure` called")}requestRange(t,e){Yt("Abstract method `requestRange` called")}requestLoadedStream(t=!1){Yt("Abstract method `requestLoadedStream` called")}sendProgressiveData(t){Yt("Abstract method `sendProgressiveData` called")}updatePassword(t){this._password=t}terminate(t){Yt("Abstract method `terminate` called")}};Gc=class Gc extends t0{static{d(this,"LocalPdfManager")}constructor(t){super(t);let e=new je(t.source);this.pdfDocument=new Zd(this,e),this._loadedStreamPromise=Promise.resolve(e)}async ensure(t,e,s){let i=t[e];return typeof i=="function"?i.apply(t,s):i}requestRange(t,e){return Promise.resolve()}requestLoadedStream(t=!1){return this._loadedStreamPromise}terminate(t){}};x4=class x4 extends t0{static{d(this,"NetworkPdfManager")}constructor(t){super(t),this.streamManager=new Km(t.source,{msgHandler:t.handler,length:t.length,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize}),this.pdfDocument=new Zd(this,this.streamManager.getStream())}async ensure(t,e,s){try{let i=t[e];return typeof i=="function"?i.apply(t,s):i}catch(i){if(!(i instanceof Ce))throw i;return await this.requestRange(i.begin,i.end),this.ensure(t,e,s)}}requestRange(t,e){return this.streamManager.requestRange(t,e)}requestLoadedStream(t=!1){return this.streamManager.requestAllChunks(t)}sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}terminate(t){this.streamManager.abort(t)}};vc={DATA:1,ERROR:2},is={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};d(o1,"onFn$1");d(Qs,"wrapReason$1");_p=class{static{d(this,"MessageHandler")}#t=new AbortController;constructor(t,e,s){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",this.#e.bind(this),{signal:this.#t.signal})}#e({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){this.#i(t);return}if(t.callback){let s=t.callbackId,i=this.callbackCapabilities[s];if(!i)throw Error(`Cannot resolve callback ${s}`);if(delete this.callbackCapabilities[s],t.callback===vc.DATA)i.resolve(t.data);else if(t.callback===vc.ERROR)i.reject(Qs(t.reason));else throw Error("Unexpected callback case");return}let e=this.actionHandler[t.action];if(!e)throw Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let s=this.sourceName,i=t.sourceName,n=this.comObj;Promise.try(e,t.data).then(function(a){n.postMessage({sourceName:s,targetName:i,callback:vc.DATA,callbackId:t.callbackId,data:a})},function(a){n.postMessage({sourceName:s,targetName:i,callback:vc.ERROR,callbackId:t.callbackId,reason:Qs(a)})});return}if(t.streamId){this.#s(t);return}e(t.data)}on(t,e){let s=this.actionHandler;if(s[t])throw 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 i=this.callbackId++,n=Promise.withResolvers();this.callbackCapabilities[i]=n;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:e},s)}catch(a){n.reject(a)}return n.promise}sendWithStream(t,e,s,i){let n=this.streamId++,a=this.sourceName,r=this.targetName,o=this.comObj;return new ReadableStream({start:d((l)=>{let c=Promise.withResolvers();return this.streamControllers[n]={controller:l,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},o.postMessage({sourceName:a,targetName:r,action:t,streamId:n,data:e,desiredSize:l.desiredSize},i),c.promise},"start"),pull:d((l)=>{let c=Promise.withResolvers();return this.streamControllers[n].pullCall=c,o.postMessage({sourceName:a,targetName:r,stream:is.PULL,streamId:n,desiredSize:l.desiredSize}),c.promise},"pull"),cancel:d((l)=>{Fe(l instanceof Error,"cancel must have a valid reason");let c=Promise.withResolvers();return this.streamControllers[n].cancelCall=c,this.streamControllers[n].isClosed=!0,o.postMessage({sourceName:a,targetName:r,stream:is.CANCEL,streamId:n,reason:Qs(l)}),c.promise},"cancel")},s)}#s(t){let e=t.streamId,s=this.sourceName,i=t.sourceName,n=this.comObj,a=this,r=this.actionHandler[t.action],o={enqueue(l,c=1,h){if(this.isCancelled)return;let f=this.desiredSize;this.desiredSize-=c,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),n.postMessage({sourceName:s,targetName:i,stream:is.ENQUEUE,streamId:e,chunk:l},h)},close(){this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:s,targetName:i,stream:is.CLOSE,streamId:e}),delete a.streamSinks[e])},error(l){Fe(l instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,n.postMessage({sourceName:s,targetName:i,stream:is.ERROR,streamId:e,reason:Qs(l)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};o.sinkCapability.resolve(),o.ready=o.sinkCapability.promise,this.streamSinks[e]=o,Promise.try(r,t.data,o).then(function(){n.postMessage({sourceName:s,targetName:i,stream:is.START_COMPLETE,streamId:e,success:!0})},function(l){n.postMessage({sourceName:s,targetName:i,stream:is.START_COMPLETE,streamId:e,reason:Qs(l)})})}#i(t){let e=t.streamId,s=this.sourceName,i=t.sourceName,n=this.comObj,a=this.streamControllers[e],r=this.streamSinks[e];switch(t.stream){case is.START_COMPLETE:t.success?a.startCall.resolve():a.startCall.reject(Qs(t.reason));break;case is.PULL_COMPLETE:t.success?a.pullCall.resolve():a.pullCall.reject(Qs(t.reason));break;case is.PULL:if(!r){n.postMessage({sourceName:s,targetName:i,stream:is.PULL_COMPLETE,streamId:e,success:!0});break}r.desiredSize<=0&&t.desiredSize>0&&r.sinkCapability.resolve(),r.desiredSize=t.desiredSize,Promise.try(r.onPull||o1).then(function(){n.postMessage({sourceName:s,targetName:i,stream:is.PULL_COMPLETE,streamId:e,success:!0})},function(l){n.postMessage({sourceName:s,targetName:i,stream:is.PULL_COMPLETE,streamId:e,reason:Qs(l)})});break;case is.ENQUEUE:if(Fe(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case is.CLOSE:if(Fe(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#n(a,e);break;case is.ERROR:Fe(a,"error should have stream controller"),a.controller.error(Qs(t.reason)),this.#n(a,e);break;case is.CANCEL_COMPLETE:t.success?a.cancelCall.resolve():a.cancelCall.reject(Qs(t.reason)),this.#n(a,e);break;case is.CANCEL:if(!r)break;let o=Qs(t.reason);Promise.try(r.onCancel||o1,o).then(function(){n.postMessage({sourceName:s,targetName:i,stream:is.CANCEL_COMPLETE,streamId:e,success:!0})},function(l){n.postMessage({sourceName:s,targetName:i,stream:is.CANCEL_COMPLETE,streamId:e,reason:Qs(l)})}),r.sinkCapability.reject(o),r.isCancelled=!0,delete this.streamSinks[e];break;default:throw Error("Unexpected stream case")}}async#n(t,e){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[e]}destroy(){this.#t?.abort(),this.#t=null}};d(e0,"writeObject");d(gf,"writeDict");d(A4,"writeStream");d(S4,"writeArray");d(Ol,"writeValue");d($c,"writeInt");d(s0,"writeString");d(C4,"computeMD5");d(I4,"writeXFADataForAcroform");d(T4,"updateAcroform");d(F4,"updateXFA");d(E4,"getXRefTable");d(i0,"getIndexes");d(M4,"getXRefStreamTable");d(n0,"computeIDs");d(B4,"getTrailerDict");d(P4,"writeChanges");d(a0,"incrementalUpdate");D4=class D4{static{d(this,"PageData")}constructor(t,e){this.page=t,this.documentData=e,this.annotations=null,this.pointingNamedDestinations=null,e.pagesMap.put(t.ref,this)}};R4=class R4{static{d(this,"DocumentData")}constructor(t){this.document=t,this.destinations=null,this.pageLabels=null,this.pagesMap=new ts,this.oldRefMapping=new ts,this.dedupNamedDestinations=new Map,this.usedNamedDestinations=new Set,this.postponedRefCopies=new ts,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 ts,this.outline=null}};H4=class H4{static{d(this,"XRefWrapper")}constructor(t,e){this.entries=t,this._getNewRef=e}fetch(t){return t instanceof nt?this.entries[t.num]:t}fetchIfRefAsync(t){return Promise.resolve(this.fetch(t))}fetchIfRef(t){return this.fetch(t)}fetchAsync(t){return Promise.resolve(this.fetch(t))}getNewTemporaryRef(){return this._getNewRef()}};_4=class _4{static{d(this,"PDFEditor")}hasSingleFile=!1;#t=null;currentDocument=null;oldPages=[];newPages=[];xref=[null];xrefWrapper=new H4(this.xref,()=>this.newRef);newRefCount=1;namesDict=null;version="1.7";pageLabels=null;namedDestinations=new Map;parentTree=new Map;structTreeKids=[];idTree=new Map;classMap=new B;roleMap=new B;namespaces=new Map;structTreeAF=[];structTreePronunciationLexicon=[];fields=[];acroFormDefaultAppearance="";acroFormDefaultResources=null;acroFormNeedAppearances=!1;acroFormSigFlags=0;acroFormCalculationOrder=null;acroFormQ=0;outlineItems=null;constructor({useObjectStreams:t=!0,title:e="",author:s=""}={}){[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=e,this.author=s}get newRef(){return nt.get(this.newRefCount++,0)}get newDict(){let t=this.newRef,e=this.xref[t.num]=new B;return[t,e]}async#e(t,e){let s=this.newRef;return this.xref[s.num]=await this.#s(t,!0,e),s}cloneDict(t){let e=t.clone();return e.xref=this.xrefWrapper,e}async#s(t,e,s){if(t instanceof nt){let{currentDocument:{oldRefMapping:r}}=this,o=r.get(t);if(o)return o;let l=t;return t=await s.fetchAsync(l),typeof t=="number"?t:(o=this.newRef,r.put(l,o),this.xref[o.num]=await this.#s(t,!0,s),o)}let i=[],{currentDocument:{postponedRefCopies:n}}=this;if(Array.isArray(t)){e&&(t=t.slice());for(let r=0,o=t.length;r<o;r++){let l=t[r]instanceof nt&&n.get(t[r]);if(l){l.push((c)=>t[r]=c);continue}i.push(this.#s(t[r],!0,s).then((c)=>t[r]=c))}return await Promise.all(i),t}let a;if(t instanceof Lt?({dict:a}=t=t.getOriginalStream().clone(),a.xref=this.xrefWrapper):t instanceof B&&(e&&(t=t.clone(),t.xref=this.xrefWrapper),a=t),a){for(let[r,o]of a.getRawEntries()){let l=o instanceof nt&&n.get(o);if(l){l.push((c)=>a.set(r,c));continue}i.push(this.#s(o,!0,s).then((c)=>a.set(r,c)))}await Promise.all(i)}return t}async#i(t,e,s,i,n,a,r,o=new Me){let{currentDocument:{pagesMap:l,oldRefMapping:c}}=this,h=e.getRaw("Pg");if(h instanceof nt&&!l.has(h))return null;let f,u=f=e.getRaw("K");if(u instanceof nt){if(o.has(u))return null;f=await s.fetchAsync(u),Array.isArray(f)||(f=[u])}f=Array.isArray(f)?f:[f];let p=[],m=[];for(let x of f){let k=x instanceof nt?x:null;if(k){if(o.has(k))continue;o.put(k),x=await s.fetchAsync(k)}if(typeof x=="number"){p.push(x);continue}if(!(x instanceof B))continue;let A=x.getRaw("Pg");if(A instanceof nt&&!l.has(A))continue;let S=x.get("Type");if(!S||re(S,"StructElem")){let I=!1;if(k&&i.has(k)){if(!re(x.get("S"),"Link"))continue;I=!0}let E=await this.#i(k,x,s,i,n,a,r,o);E&&(m.push(p.length),p.push(E),k&&c.put(k,E),I&&this.xref[E.num].setIfName("S","Span"));continue}if(re(S,"OBJR")){if(!k)continue;let I=c.get(k);if(!I)continue;let E=this.xref[I.num].getRaw("Obj");if(E instanceof nt){let D=this.xref[E.num];if(D instanceof B&&!D.has("StructParent")&&t){let O=this.parentTree.size;this.parentTree.set(O,[c,t]),D.set("StructParent",O)}}p.push(I);continue}if(re(S,"MCR")){let I=await this.#s(k||x,!0,s);p.push(I);continue}if(k){let I=await this.#s(k,!0,s);p.push(I)}}if(f.length!==0&&p.length===0)return null;let g=this.newRef,w=this.xref[g.num]=this.cloneDict(e);w.delete("ID"),w.delete("C"),w.delete("K"),w.delete("P"),w.delete("S"),await this.#s(w,!1,s);let b=e.get("C");if(b instanceof tt){let x=a.get(b.name);x?w.set("C",tt.get(x)):w.set("C",b)}else if(Array.isArray(b)){let x=[];for(let k of b)if(k instanceof tt){let A=a.get(k.name);A?x.push(tt.get(A)):x.push(k)}w.set("C",x)}let j=e.get("S");if(j instanceof tt){let x=r.get(j.name);x?w.set("S",tt.get(x)):w.set("S",j)}let v=e.get("ID");if(typeof v=="string"){let x=Xt(v,!1),k=n.get(x);k?w.set("ID",ws(k)):w.set("ID",v)}let q=w.get("A");if(q){Array.isArray(q)||(q=[q]);for(let x of q)if(x=this.xrefWrapper.fetch(x),re(x.get("O"),"Table")&&x.has("Headers")){let k=this.xrefWrapper.fetch(x.getRaw("Headers"));if(Array.isArray(k))for(let A=0,S=k.length;A<S;A++){let I=n.get(Xt(k[A],!1));I&&(k[A]=I)}}}for(let x of m){let k=p[x];this.xref[k.num].set("P",g)}return p.length===1?w.set("K",p[0]):p.length>1&&w.set("K",p),g}async extractPages(t,e,s,i){let n=[],a=0;this.hasSingleFile=t.length===1;let r=[];e&&(this.#t={handler:s,task:i,newAnnotationsByPage:Uh(e),imagesPromises:Ii.generateImages(e.values(),this.xrefWrapper,!0)});for(let{document:o,includePages:l,excludePages:c,pageIndices:h}of t){if(!o)continue;h&&(a=-1);let f=new R4(o);r.push(f),n.push(this.#n(f));let u,p,m,g;for(let b of l||[])Array.isArray(b)?(p||=[]).push(b):(u||=new Set).add(b);for(let b of c||[])Array.isArray(b)?(g||=[]).push(b):(m||=new Set).add(b);let w=0;for(let b=0,j=o.numPages;b<j;b++){if(m?.has(b))continue;if(g){let x=!1;for(let[k,A]of g)if(b>=k&&b<=A){x=!0;break}if(x)continue}let v=!1;if(u&&(v=u.has(b)),!v&&p){for(let[x,k]of p)if(b>=x&&b<=k){v=!0;break}}if(!v&&!u&&!p&&(v=!0),!v)continue;let q;if(h&&(q=h[w++]),q===void 0)if(a!==-1)q=a++;else for(q=0;this.oldPages[q]!==void 0;q++);this.oldPages[q]=null,n.push(o.getPage(b).then((x)=>{this.oldPages[q]=new D4(x,f)}))}}await Promise.all(n),n.length=0,this.#u(r),this.#g(r),this.#F();for(let o of this.oldPages)n.push(this.#a(o));await Promise.all(n),this.#h(),this.#r(r);for(let o=0,l=this.oldPages.length;o<l;o++)this.newPages[o]=await this.#I(o,null);return this.#o(r),await this.#c(r),await this.#y(r),this.#p(r),this.writePDF()}async#n(t){let{document:{pdfManager:e,xref:s}}=t;await Promise.all([e.ensureCatalog("destinations").then((n)=>t.destinations=n),e.ensureCatalog("rawPageLabels").then((n)=>t.pageLabels=n),e.ensureCatalog("structTreeRoot").then((n)=>t.structTreeRoot=n),e.ensureCatalog("acroForm").then((n)=>t.acroForm=n),e.ensureCatalog("documentOutlineForEditor").then((n)=>t.outline=n)]);let i=t.structTreeRoot;if(i){let n=i.dict,a=n.get("ParentTree");if(a){let l=new Dr(a,s);t.parentTree=l.getAll(!0)}let r=n.get("IDTree");if(r){let l=new Qn(r,s);t.idTree=l.getAll(!0)}t.roleMap=n.get("RoleMap")||null,t.classMap=n.get("ClassMap")||null;let o=n.get("Namespaces")||null;o&&!Array.isArray(o)&&(o=[o]),t.namespaces=o,t.structTreeAF=n.get("AF")||null,t.structTreePronunciationLexicon=n.get("PronunciationLexicon")||null}}async#a(t){let{page:{xref:e,annotations:s},documentData:{pagesMap:i,destinations:n,usedNamedDestinations:a,fieldToParent:r}}=t;if(!s)return;let o=[],l=[],c=0,{hasSignatureAnnotations:h}=t.documentData;for(let f of s){let u=c++;o.push(e.fetchIfRefAsync(f).then(async(p)=>{if(!re(p.get("Subtype"),"Link")){if(re(p.get("Subtype"),"Widget")){h||=re(p.get("FT"),"Sig");let w=p.get("Parent")||null;p.delete("Parent"),r.put(f,w)}l[u]=f;return}let m=p.get("A"),g=m instanceof B?m.get("D"):p.get("Dest");if(!g||Array.isArray(g)&&(!(g[0]instanceof nt)||i.has(g[0])))l[u]=f;else if(typeof g=="string"){let w=Xt(g,!0);n.has(w)&&(l[u]=f,a.add(w))}}))}await Promise.all(o),l=l.filter((f)=>!!f),t.annotations=l.length>0?l:null,t.documentData.hasSignatureAnnotations||=h}#r(t){for(let{postponedRefCopies:e,pagesMap:s}of t)for(let i of s.keys())e.put(i,[])}#o(t){for(let{postponedRefCopies:e,oldRefMapping:s}of t){for(let[i,n]of e.items()){let a=s.get(i);for(let r of n)r(a)}e.clear()}}#l(t,e,s=new Me){if(t instanceof nt){s.has(t)||(s.put(t),this.#l(this.xref[t.num],e,s));return}if(Array.isArray(t)){for(let n of t)this.#l(n,e,s);return}let i;if(t instanceof Lt?{dict:i}=t:t instanceof B&&(i=t),i){e(i);for(let n of i.getRawValues())this.#l(n,e,s)}}async#c(t){let e=0,{parentTree:s}=this;for(let h=0,f=this.newPages.length;h<f;h++){let{documentData:{parentTree:u,oldRefMapping:p,oldStructParentMapping:m,usedStructParents:g,document:{xref:w}}}=this.oldPages[h];if(!u)continue;let b=this.newPages[h],j=this.xref[b.num],v=new Me;v.put(b),this.#l(j,(q)=>{let x=q.get("StructParent")??q.get("StructParents");if(typeof x!="number")return;g.add(x);let k=u.get(x),A=k instanceof nt?k:null;if(A){let I=w.fetch(A);Array.isArray(I)&&(k=I)}if(Array.isArray(k)&&k.every((I)=>I===null)&&(k=null),!k){q.has("StructParent")?q.delete("StructParent"):q.delete("StructParents");return}let S=m.get(x);S===void 0&&(S=e++,m.set(x,S),s.set(S,[p,k])),q.has("StructParent")?q.set("StructParent",S):q.set("StructParents",S)},v)}let{structTreeKids:i,idTree:n,classMap:a,roleMap:r,namespaces:o,structTreeAF:l,structTreePronunciationLexicon:c}=this;for(let h of t){let{document:{xref:f},oldRefMapping:u,parentTree:p,usedStructParents:m,structTreeRoot:g,idTree:w,classMap:b,roleMap:j,namespaces:v,structTreeAF:q,structTreePronunciationLexicon:x}=h;if(!g)continue;this.currentDocument=h;let k=new Me;for(let[D,O]of p||[])!m.has(D)&&O instanceof nt&&k.put(O);let A=new Map;for(let[D,O]of w||[]){let $=D;if(n.has(D))for(let it=1;;it++){let W=`${D}_${it}`;if(!n.has(W)){A.set(D,W),$=W;break}}n.set($,O)}let S=new Map;if(b?.size>0)for(let[D,O]of b){if(O=await this.#s(O,!0,f),a.has(D))for(let $=1;;$++){let it=`${D}_${$}`;if(!a.has(it)){S.set(D,it),D=it;break}}a.set(D,O)}let I=new Map;if(j?.size>0)for(let[D,O]of j){let $=r.get(D);if(!$){r.set(D,O);continue}if($!==O)for(let it=1;;it++){let W=`${D}_${it}`;if(!r.has(W)){I.set(D,W),r.set(W,O);break}}}if(v?.length>0)for(let D of v){let O=await f.fetchIfRefAsync(D),$=O.get("NS");if(!$||o.has($))continue;$=Xt($,!1);let it=await this.#s(O,!0,f);o.set($,it)}if(q)for(let D of q)l.push(await this.#s(D,!0,f));if(x)for(let D of x)c.push(await this.#s(D,!0,f));let E=g.dict.get("K");if(E){E=Array.isArray(E)?E:[E];for(let D of E){let O=D instanceof nt?D:null;if(O&&k.has(O))continue;D=await f.fetchIfRefAsync(D);let $=await this.#i(O,D,f,k,A,S,I);$&&i.push($)}for(let[D,O]of w||[]){let $=O instanceof nt&&u.get(O),it=A.get(D)||D;$?n.set(it,$):n.delete(it)}}}for(let[h,[f,u]]of s){if(!u){s.delete(h);continue}if(!Array.isArray(u)){let m=f.get(u);m===void 0?s.delete(h):s.set(h,m);continue}let p=u.map((m)=>m instanceof nt&&f.get(m)||null);if(p.length===0||p.every((m)=>m===null)){s.delete(h);continue}s.set(h,p)}this.currentDocument=null}#u(t){for(let e of t){if(!e.destinations)continue;let{destinations:s,pagesMap:i}=e,n=e.destinations=new Map;for(let[a,r]of Object.entries(s)){let o=r[0],l=o instanceof nt&&i.get(o);l&&((l.pointingNamedDestinations||=new Set).add(a),n.set(a,r))}}}#h(){let{namedDestinations:t}=this,e=d((s)=>{if(!t.has(s))return s;for(let i=1;;i++){let n=`${s}_${i}`;if(!t.has(n))return n}},"getUniqueDestinationName");for(let s=0,i=this.oldPages.length;s<i;s++){let n=this.oldPages[s],{documentData:{destinations:a,dedupNamedDestinations:r,usedNamedDestinations:o}}=n,{pointingNamedDestinations:l}=n;if(l){n.pointingNamedDestinations=l=l.intersection(o);for(let c of l){if(!o.has(c))continue;let h=a.get(c).slice();if(!t.has(c)){t.set(c,h);continue}let f=e(`${c}_p${s+1}`);r.set(c,f),t.set(f,h)}}}}#d(t,e){if(e.size===0)return;let s=d((i,n,a)=>{typeof a=="string"&&i.set(n,e.get(Xt(a,!0))||a)},"fixDestination");for(let i of t){let n=this.xref[i.num];if(!re(n.get("Subtype"),"Link"))continue;let a=n.get("A");if(a instanceof B&&a.has("D")){let o=a.get("D");s(a,"D",o);continue}let r=n.get("Dest");s(n,"Dest",r)}}#g(t){let e=d((s,i,n)=>{for(let a of s)typeof a.dest=="string"&&i?.has(a.dest)&&n.add(a.dest),a.items.length>0&&e(a.items,i,n)},"collect");for(let s of t){let{outline:i,destinations:n,usedNamedDestinations:a}=s;i?.length&&e(i,n,a)}}#m(t,e){let{dest:s,action:i,url:n,unsafeUrl:a,attachment:r,setOCGState:o}=t;if(i||n||a||r||o)return!0;if(!s)return!1;if(typeof s=="string"){let l=e.dedupNamedDestinations.get(s)||s;return this.namedDestinations.has(l)}return Array.isArray(s)&&s[0]instanceof nt?!!e.oldRefMapping.get(s[0]):!1}#f(t,e){let s=[];for(let i of t){let n=this.#f(i.items,e),a=this.#m(i,e);(a||n.length>0)&&s.push({...i,dest:a?i.dest:null,items:n,_documentData:e})}return s}#p(t){let e=[];for(let s of t){let{outline:i}=s;i?.length&&e.push(...this.#f(i,s))}this.outlineItems=e.length>0?e:null}async#b(t,e){let{dest:s,rawDict:i}=e,n=e._documentData;if(s){if(typeof s=="string"){let r=n.dedupNamedDestinations.get(s)||s;t.set("Dest",ws(r))}else if(Array.isArray(s)){let r=s.slice();r[0]instanceof nt&&(r[0]=n.oldRefMapping.get(r[0])||r[0]),t.set("Dest",r)}return}let a=i?.get("A");if(a instanceof B){this.currentDocument=n;let r=await this.#e(a,n.document.xref);this.currentDocument=null,t.set("A",r)}}async#v(){let{outlineItems:t}=this;if(!t?.length)return;let[e,s]=this.newDict;s.setIfName("Type","Outlines");let i=d((r)=>{for(let o of r)[o._ref]=this.newDict,o.items.length>0&&i(o.items)},"assignRefs");i(t);let n=d(async(r,o)=>{let l=0;for(let c=0;c<r.length;c++){let h=r[c],f=this.xref[h._ref.num];if(f.set("Title",ws(h.title)),f.set("Parent",o),c>0&&f.set("Prev",r[c-1]._ref),c<r.length-1&&f.set("Next",r[c+1]._ref),h.items.length>0){f.set("First",h.items[0]._ref),f.set("Last",h.items.at(-1)._ref);let p=await n(h.items,h._ref);h.count!==void 0&&f.set("Count",h.count<0?-p:p),l+=h.count!==void 0&&h.count<0?1:p+1}else l+=1;await this.#b(f,h);let u=(h.bold?2:0)|(h.italic?1:0);u!==0&&f.set("F",u),h.color&&(h.color[0]!==0||h.color[1]!==0||h.color[2]!==0)&&f.set("C",[h.color[0]/255,h.color[1]/255,h.color[2]/255])}return l},"fillItems"),a=await n(t,e);s.set("First",t[0]._ref),s.set("Last",t.at(-1)._ref),s.set("Count",a),this.rootDict.set("Outlines",e)}async#y(t){this.#C(t),this.#x(t),this.#q(t),await this.#k(t);let e=this.fields;for(let s of t){let i=s.acroForm?.get("Fields")||null;!i&&s.fieldToParent.size>0&&(i=this.#S(s.fieldToParent,s.document.xref)),Array.isArray(i)&&i.length>0&&(this.currentDocument=s,await this.#T(e,i),this.currentDocument=null)}this.#w(t)}#q(t){let e=0,s=null;for(let i of t){let n=i.acroForm?.get("Q");if(!(typeof n!="number"||n===0)){if(s?.acroFormQ>0){i.acroFormQ=n;continue}if(e===0){e=n,s=i;continue}n!==e&&(s.acroFormQ||=e,i.acroFormQ=n,e=0)}}e>0&&(this.acroFormQ=e)}#C(t){let e=0,s=!1;for(let i of t){if(!i.acroForm)continue;let n=i.acroForm.get("SigFlags");typeof n=="number"&&i.hasSignatureAnnotations&&(e|=n),i.acroForm.get("NeedAppearances")===!0&&(s=!0)}this.acroFormSigFlags=e,this.acroFormNeedAppearances=s}#w(t){let e=[];for(let s of t){let i=s.acroForm?.get("CO")||null;if(!Array.isArray(i))continue;let{oldRefMapping:n}=s;for(let a of i){let r=a instanceof nt&&n.get(a);r&&e.push(r)}}this.acroFormCalculationOrder=e.length>0?e:null}#x(t){let e=null,s=null;for(let i of t){let n=i.acroForm?.get("DA")||null;if(!(!n||typeof n!="string")){if(s?.acroFormDefaultAppearance){i.acroFormDefaultAppearance=n;continue}if(!e){e=n,s=i;continue}n!==e&&(s.acroFormDefaultAppearance||=e,i.acroFormDefaultAppearance=n,e=null)}}e&&(this.acroFormDefaultAppearance=e)}async#k(t){let e=null,s=null,i=null;for(let n of t){let a=n.acroForm?.get("DR")||null;if(!(!a||!(a instanceof B))){if(i?.acroFormDefaultResources){n.acroFormDefaultResources=a;continue}if(!e){e=a,s=n.acroForm.getRaw("DR"),i=n;continue}Jc(e,a)||(i.acroFormDefaultResources||=e,n.acroFormDefaultResources=a,e=null,s=null)}}e&&(this.currentDocument=i,this.acroFormDefaultResources=await this.#s(s,!0,i.document.xref),this.currentDocument=null)}#S(t,e){let s=[],i=new Me;for(let[n,a]of t){if(!a){s.push(n);continue}let r=a,o=a;for(;r=e.fetchIfRef(r)?.getRaw("Parent")||null,!!r;)o=r;o instanceof nt&&!i.has(o)&&(s.push(o),i.put(o))}return s}async#T(t,e){let s=new Me,i=[{kids:e,newKids:t,pos:0,oldParentRef:null,parentRef:null,parent:null}],{document:{xref:n},oldRefMapping:a,fieldToParent:r,acroFormDefaultAppearance:o,acroFormDefaultResources:l,acroFormQ:c}=this.currentDocument,h=[],f=[];for(;i.length>0;){let p=i.at(-1),{kids:m,newKids:g,parent:w,pos:b}=p;if(b===m.length){if(i.pop(),g.length===0||!w)continue;let k=this.xref[p.parentRef.num]=this.cloneDict(w);if(k.delete("Parent"),k.delete("Kids"),await this.#s(k,!1,n),k.set("Kids",g),i.length>0){let A=i.at(-1);if(!A.parentRef&&A.oldParentRef){let S=A.parentRef=this.newRef;k.set("Parent",S),a.put(A.oldParentRef,S)}A.newKids.push(p.parentRef)}continue}let j=m[p.pos++];if(!(j instanceof nt)||s.has(j))continue;s.put(j);let v=n.fetchIfRef(j);if(v.has("Kids")){let k=v.get("Kids");if(!Array.isArray(k))continue;i.push({kids:k,newKids:[],pos:0,oldParentRef:j,parentRef:null,parent:v});continue}if(!r.has(j))continue;let q=a.get(j);if(!q)continue;g.push(q),!p.parentRef&&p.oldParentRef&&(p.parentRef=this.newRef,a.put(p.oldParentRef,p.parentRef));let x=this.xref[q.num];p.parentRef&&x.set("Parent",p.parentRef),o&&re(x.get("FT"),"Tx")&&!x.has("DA")&&h.push(x),l&&!x.has("Kids")&&x.get("AP")instanceof B&&f.push(x),c&&!x.has("Q")&&x.set("Q",c)}for(let p of h)ii({dict:p,key:"DA"})||p.set("DA",o);let u=new Map;for(let p of f){let m=p.get("AP");for(let g of m.getValues()){if(!(g instanceof Lt))continue;let w=g.dict.getRaw("Resources");if(!w){let b=await u.getOrInsertComputed(l,()=>this.#e(l,n));g.dict.set("Resources",b);continue}w=n.fetchIfRef(w);for(let[b,j]of l.getRawEntries())if(!w.has(b)){let v=j;j instanceof nt?v=await this.#s(j,!0,n):(j instanceof B||j instanceof Lt||Array.isArray(j))&&(v=await u.getOrInsertComputed(j,()=>this.#e(j,n))),w.set(b,v)}}}}async#F(){if(!this.hasSingleFile)return;let{documentData:{document:t,pageLabels:e}}=this.oldPages[0];if(!e)return;let s=t.numPages,i=[],n=new Set(this.oldPages.map(({page:{pageIndex:c}})=>c)),a=null,r=-1;for(let c=0;c<s;c++){let h=e.get(c);if(h&&(a=h,r=a.has("St")?c:-1),!!n.has(c)){if(r!==-1){let f=a.get("St");a=this.cloneDict(a),a.set("St",f+(c-r)),r=-1}i.push(a)}}a=i[0];let o=0,l=this.pageLabels=[[0,a]];for(let c=0,h=i.length;c<h;c++){let f=i[c];f!==a&&(o=c,a=f,l.push([o,a]))}}async#I(t){let{page:e,documentData:s,annotations:i,pointingNamedDestinations:n}=this.oldPages[t];this.currentDocument=s;let{dedupNamedDestinations:a,oldRefMapping:r}=s,{xref:o,rotate:l,mediaBox:c,resources:h,ref:f}=e,u=this.newRef,p=this.xref[u.num]=this.cloneDict(e.pageDict);if(r.put(f,u),n)for(let j of n){let v=a.get(j)||j,q=this.namedDestinations.get(v);q[0]=u}for(let j of["Rotate","MediaBox","CropBox","BleedBox","TrimBox","ArtBox","Resources","Annots","Parent","UserUnit"])p.delete(j);let m=this.newRefCount;await this.#s(p,!1,o),p.set("Rotate",l),p.set("MediaBox",c);for(let j of["CropBox","BleedBox","TrimBox","ArtBox"]){let v=e.getBoundingBox(j);v?.some((q,x)=>q!==c[x])&&p.set(j,v)}let g=e.userUnit;g!==1&&p.set("UserUnit",g),p.setIfDict("Resources",await this.#s(h,!0,o));let w=null;if(i){let j=await this.#s(i,!0,o);this.#d(j,a),Array.isArray(j)&&j.length>0&&(w=j)}let b=this.#t?.newAnnotationsByPage?.get(t);if(b){let{handler:j,task:v,imagesPromises:q}=this.#t,x=new ts,k=await Ii.saveNewAnnotations(e.createAnnotationEvaluator(j),this.xrefWrapper,v,b,q,x);for(let[A,{data:S}]of x.items())this.xref[A.num]=S;w||=[];for(let{ref:A}of k.annotations)w.push(A)}if(p.setIfArray("Annots",w),this.useObjectStreams){let j=this.newRefCount,v=[];for(let q=m;q<j;q++)this.xref[q]instanceof Lt||v.push(nt.get(q,0));for(let q=0;q<v.length;q+=65535){let x=this.newRef;this.objStreamRefs.add(x.num),this.xref[x.num]=v.slice(q,q+65535)}}return this.currentDocument=null,u}#B(){let{newPages:t,rootDict:e,pagesRef:s,pagesDict:i}=this;e.set("Pages",s),i.setIfName("Type","Pages"),i.set("Count",t.length);let n=rv,a=[{dict:i,kids:t,parentRef:s}];for(;a.length>0;){let{dict:r,kids:o,parentRef:l}=a.pop();if(o.length<=n){r.set("Kids",o);for(let u of o)this.xref[u.num].set("Parent",l);continue}let c=Math.max(n,Math.ceil(o.length/n)),h=[];for(let u=0;u<o.length;u+=c)h.push(o.slice(u,u+c));let f=[];r.set("Kids",f);for(let u of h){let[p,m]=this.newDict;f.push(p),m.setIfName("Type","Pages"),m.set("Parent",l),m.set("Count",u.length),a.push({dict:m,kids:u,parentRef:p})}}}#E(t,e){let s=t.sort(e?([l],[c])=>l.localeCompare(c):([l],[c])=>l-c),i=ov,[n,a]=this.newDict,r=[{dict:a,entries:s}],o=e?"Names":"Nums";for(;r.length>0;){let{dict:l,entries:c}=r.pop();if(c.length<=i){l.set("Limits",[c[0][0],c.at(-1)[0]]),l.set(o,c.flat());continue}let h=[],f=Math.max(i,Math.ceil(c.length/i));for(let p=0;p<c.length;p+=f)h.push(c.slice(p,p+f));let u=[];l.set("Kids",u);for(let p of h){let[m,g]=this.newDict;u.push(m),g.set("Limits",[p[0][0],p.at(-1)[0]]),r.push({dict:g,entries:p})}}return n}#M(){let{pageLabels:t}=this;if(!t||t.length===0)return;let{rootDict:e}=this,s=this.#E(this.pageLabels,!1);e.set("PageLabels",s)}#P(){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",this.#E(Array.from(t.entries()),!0)))}#H(){let{structTreeKids:t}=this;if(!t||t.length===0)return;let{rootDict:e}=this,s=this.newRef,i=this.xref[s.num]=new B;i.setIfName("Type","StructTreeRoot"),i.setIfArray("K",t);for(let n of t){let a=this.xref[n.num],r=a.get("Type");(!r||re(r,"StructElem"))&&a.set("P",s)}if(this.parentTree.size>0){let n=this.#E(Array.from(this.parentTree.entries()),!1);this.xref[n.num].setIfName("Type","ParentTree"),i.set("ParentTree",n),i.set("ParentTreeNextKey",this.parentTree.size)}if(this.idTree.size>0){let n=this.#E(Array.from(this.idTree.entries()),!0);this.xref[n.num].setIfName("Type","IDTree"),i.set("IDTree",n)}if(this.classMap.size>0){let n=this.newRef;this.xref[n.num]=this.classMap,i.set("ClassMap",n)}if(this.roleMap.size>0){let n=this.newRef;this.xref[n.num]=this.roleMap,i.set("RoleMap",n)}if(this.namespaces.size>0){let n=this.newRef;this.xref[n.num]=Array.from(this.namespaces.values()),i.set("Namespaces",n)}if(this.structTreeAF.length>0){let n=this.newRef;this.xref[n.num]=this.structTreeAF,i.set("AF",n)}if(this.structTreePronunciationLexicon.length>0){let n=this.newRef;this.xref[n.num]=this.structTreePronunciationLexicon,i.set("PronunciationLexicon",n)}e.set("StructTreeRoot",s)}#_(){if(this.fields.length===0)return;let{rootDict:t}=this,e=this.newRef,s=this.xref[e.num]=new B;t.set("AcroForm",e),s.set("Fields",this.fields),this.acroFormNeedAppearances&&s.set("NeedAppearances",!0),this.acroFormSigFlags>0&&s.set("SigFlags",this.acroFormSigFlags),s.setIfArray("CO",this.acroFormCalculationOrder),s.setIfDict("DR",this.acroFormDefaultResources),this.acroFormDefaultAppearance&&s.set("DA",this.acroFormDefaultAppearance),this.acroFormQ>0&&s.set("Q",this.acroFormQ)}async#z(){let{rootDict:t}=this;t.setIfName("Type","Catalog"),t.setIfName("Version",this.version),this.#_(),this.#B(),this.#M(),this.#P(),this.#H(),await this.#v()}#A(){let t=new Map;if(this.hasSingleFile){let{xref:{trailer:e}}=this.oldPages[0].documentData.document,s=e.get("Info");for(let[i,n]of s||[])typeof n=="string"&&t.set(i,Xt(n))}t.delete("ModDate"),t.set("CreationDate",Pn()),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[e,s]of t)this.infoDict.set(e,ws(s));return t}async#j(){if(!this.hasSingleFile)return[null,null,null];let{documentData:t}=this.oldPages[0],{document:{xref:{trailer:e,encrypt:s}}}=t;if(!e.has("Encrypt"))return[null,null,null];let i=e.get("Encrypt");if(!(i instanceof B))return[null,null,null];this.currentDocument=t;let n=[await this.#e(i,e.xref),s,e.get("ID")];return this.currentDocument=null,n}async#R(){let t=new ts;t.put(nt.get(0,65535),{data:null});for(let e=1,s=this.xref.length;e<s;e++)this.objStreamRefs?.has(e)?await this.#O(nt.get(e,0),this.xref[e],t):t.put(nt.get(e,0),{data:this.xref[e]});return[t,this.newRef]}async#O(t,e,s){let i=[""],n=[],a=0,r=[];for(let c=0,h=e.length;c<h;c++){let f=e[c];s.put(f,{data:null,objStreamRef:t,index:c}),n.push(`${f.num} ${a}`);let u=this.xref[f.num];await Ol(u,r,null);let p=r.join("");r.length=0,i.push(p),a+=p.length+1}i[0]=n.join(`
94
+ `);let o=new Bs(i.join(`
95
+ `)),l=o.dict=new B;l.setIfName("Type","ObjStm"),l.set("N",e.length),l.set("First",i[0].length+1),s.put(t,{data:o})}async writePDF(){await this.#z();let t=this.#A(),[e,s,i]=await this.#j(),[n,a]=await this.#R(),r=[...`%PDF-${this.version}
96
+ %`.split("").map((o)=>o.charCodeAt(0)),250,222,250,206];return a0({originalData:new Uint8Array(r),changes:n,xrefInfo:{startXRef:null,rootRef:this.rootRef,infoRef:this.infoRef,encryptRef:e,newRef:a,fileIds:i||[null,null],infoMap:t},useXrefStream:this.useObjectStreams,xref:{encrypt:s,encryptRef:e}})}};lv=class{static{d(this,"BasePDFStream")}#t=null;#e=null;_fullReader=null;_rangeReaders=new Set;_source=null;constructor(t,e,s){this._source=t,this.#t=e,this.#e=s}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return Fe(!this._fullReader,"BasePDFStream.getFullReader can only be called once."),this._fullReader=new this.#t(this)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;let s=new this.#e(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)}},cv=class{static{d(this,"BasePDFStreamReader")}onProgress=null;_contentLength=0;_filename=null;_headersCapability=Promise.withResolvers();_isRangeSupported=!1;_isStreamingSupported=!1;_loaded=0;_stream=null;constructor(t){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(){Yt("Abstract method `read` called")}cancel(t){Yt("Abstract method `cancel` called")}},hv=class{static{d(this,"BasePDFStreamRangeReader")}_stream=null;constructor(t,e,s){this._stream=t}async read(){Yt("Abstract method `read` called")}cancel(t){Yt("Abstract method `cancel` called")}};O4=class O4 extends lv{static{d(this,"PDFWorkerStream")}constructor(t){super(t,N4,L4)}};N4=class N4 extends cv{static{d(this,"PDFWorkerStreamReader")}_reader=null;constructor(t){super(t);let{msgHandler:e}=t._source,s=e.sendWithStream("GetReader");this._reader=s.getReader(),e.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:t,done:e}=await this._reader.read();return e?{value:void 0,done:!0}:{value:t.buffer,done:!1}}cancel(t){this._reader.cancel(t)}};L4=class L4 extends hv{static{d(this,"PDFWorkerStreamRangeReader")}_reader=null;constructor(t,e,s){super(t,e,s);let{msgHandler:i}=t._source,n=i.sendWithStream("GetRangeReader",{begin:e,end:s});this._reader=n.getReader()}async read(){let{value:t,done:e}=await this._reader.read();return e?{value:void 0,done:!0}:{value:t.buffer,done:!1}}cancel(t){this._reader.cancel(t)}};Ri=class Ri{static{d(this,"WorkerTask")}constructor(t){this.name=t,this.terminated=!1,this._capability=Promise.withResolvers()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw Error("Worker task was terminated")}};z4=class z4{static{d(this,"WorkerMessageHandler")}static{typeof window>"u"&&!W7&&typeof self<"u"&&typeof self.postMessage=="function"&&"onmessage"in self&&this.initializeFromPort(self)}static setup(t,e){let s=!1;t.on("test",(i)=>{s||(s=!0,t.send("test",i instanceof Uint8Array))}),t.on("configure",(i)=>{im(i.verbosity)}),t.on("GetDocRequest",(i)=>this.createDocumentHandler(i,e))}static createDocumentHandler(t,e){let s,i=!1,n=null,a=new Set,r=nm(),{docId:o,apiVersion:l}=t,c="5.6.205";if(l!==c)throw Error(`The API version "${l}" does not match the Worker version "${c}".`);let h=d((v,q)=>`The \`${v}.prototype\` contains unexpected enumerable property "${q}", thus breaking e.g. \`for...in\` iteration of ${v}s.`,"buildMsg");for(let v in{})throw Error(h("Object",v));for(let v in[])throw Error(h("Array",v));let f=o+"_worker",u=new _p(f,o,e);function p(){if(i)throw Error("Worker was terminated")}d(p,"ensureNotTerminated");function m(v){a.add(v)}d(m,"startWorkerTask");function g(v){v.finish(),a.delete(v)}d(g,"finishWorkerTask");async function w(v){await s.ensureDoc("checkHeader"),await s.ensureDoc("parseStartXRef"),await s.ensureDoc("parse",[v]),await s.ensureDoc("checkFirstPage",[v]),await s.ensureDoc("checkLastPage",[v]);let q=await s.ensureDoc("isPureXfa");if(q){let S=new Ri("loadXfaResources");m(S),await s.ensureDoc("loadXfaResources",[u,S]),g(S)}let[x,k]=await Promise.all([s.ensureDoc("numPages"),s.ensureDoc("fingerprints")]),A=q?await s.ensureDoc("htmlForXfa"):null;return{numPages:x,fingerprints:k,htmlForXfa:A}}d(w,"loadDocument");async function b({data:v,password:q,disableAutoFetch:x,rangeChunkSize:k,docBaseUrl:A,enableXfa:S,evaluatorOptions:I}){let E={source:null,disableAutoFetch:x,docBaseUrl:A,docId:o,enableXfa:S,evaluatorOptions:I,handler:u,length:0,password:q,rangeChunkSize:k};if(v)return E.source=v,new Gc(E);let D=new O4({msgHandler:u}),O=D.getFullReader(),{promise:$,resolve:it,reject:W}=Promise.withResolvers(),H,L=[];n=d((yt)=>D.cancelAllRequests(yt),"cancelXHRs"),O.headersReady.then(()=>{if(O.isRangeSupported){E.source=D,E.length=O.contentLength,E.disableAutoFetch||=O.isStreamingSupported,H=new x4(E);for(let yt of L)H.sendProgressiveData(yt);L=null,it(H),n=null}}).catch((yt)=>{W(yt),n=null});async function rt(){let yt=0;for(;;){let{value:X,done:St}=await O.read();if(p(),St)break;yt+=X.byteLength,O.isStreamingSupported||u.send("DocProgress",{loaded:yt,total:O.contentLength}),H?H.sendProgressiveData(X):L.push(X)}H||(E.source=C1(L),L=null,H=new Gc(E),it(H)),n=null}return d(rt,"readData"),rt().catch((yt)=>{W(yt),n=null}),$}d(b,"getPdfManager");function j(v){function q(A){p(),u.send("GetDoc",{pdfInfo:A})}d(q,"onSuccess");function x(A){if(!i)if(A instanceof Fr){let S=new Ri(`PasswordException: response ${A.code}`);m(S),u.sendWithPromise("PasswordRequest",A).then(function({password:I}){g(S),s.updatePassword(I),k()}).catch(function(){g(S),u.send("DocException",A)})}else u.send("DocException",Qs(A))}d(x,"onFailure");function k(){p(),w(!1).then(q,function(A){if(p(),!(A instanceof aa)){x(A);return}s.requestLoadedStream().then(function(){p(),w(!0).then(q,x)})})}d(k,"pdfManagerReady"),p(),b(v).then(function(A){if(i)throw A.terminate(new Cs("Worker was terminated.")),Error("Worker was terminated");s=A,s.requestLoadedStream(!0).then((S)=>{u.send("DataLoaded",{length:S.bytes.byteLength})})}).then(k,x)}return d(j,"setupDoc"),u.on("GetPage",function(v){return s.getPage(v.pageIndex).then(function(q){return Promise.all([s.ensure(q,"rotate"),s.ensure(q,"ref"),s.ensure(q,"userUnit"),s.ensure(q,"view")]).then(function([x,k,A,S]){return{rotate:x,ref:k,refStr:k?.toString()??null,userUnit:A,view:S}})})}),u.on("GetPageIndex",function(v){let q=nt.get(v.num,v.gen);return s.ensureCatalog("getPageIndex",[q])}),u.on("GetDestinations",function(v){return s.ensureCatalog("destinations")}),u.on("GetDestination",function(v){return s.ensureCatalog("getDestination",[v.id])}),u.on("GetPageLabels",function(v){return s.ensureCatalog("pageLabels")}),u.on("GetPageLayout",function(v){return s.ensureCatalog("pageLayout")}),u.on("GetPageMode",function(v){return s.ensureCatalog("pageMode")}),u.on("GetViewerPreferences",function(v){return s.ensureCatalog("viewerPreferences")}),u.on("GetOpenAction",function(v){return s.ensureCatalog("openAction")}),u.on("GetAttachments",function(v){return s.ensureCatalog("attachments")}),u.on("GetDocJSActions",function(v){return s.ensureCatalog("jsActions")}),u.on("GetPageJSActions",function({pageIndex:v}){return s.getPage(v).then((q)=>s.ensure(q,"jsActions"))}),u.on("GetAnnotationsByType",async function({types:v,pageIndexesToSkip:q}){let[x,k]=await Promise.all([s.ensureDoc("numPages"),s.ensureDoc("annotationGlobals")]);if(!k)return null;let A=[],S=[],I=null;try{for(let E=0,D=x;E<D;E++)q?.has(E)||(I||(I=new Ri("GetAnnotationsByType"),m(I)),A.push(s.getPage(E).then(async(O)=>O?O.collectAnnotationsByType(u,I,v,S,k)||[]:[])));return await Promise.all(A),(await Promise.all(S)).filter((E)=>!!E)}finally{I&&g(I)}}),u.on("GetOutline",function(v){return s.ensureCatalog("documentOutline")}),u.on("GetOptionalContentConfig",function(v){return s.ensureCatalog("optionalContentConfig")}),u.on("GetPermissions",function(v){return s.ensureCatalog("permissions")}),u.on("GetMetadata",function(v){return Promise.all([s.ensureDoc("documentInfo"),s.ensureCatalog("metadata"),s.ensureCatalog("hasStructTree")])}),u.on("GetMarkInfo",function(v){return s.ensureCatalog("markInfo")}),u.on("GetData",function(v){return s.requestLoadedStream().then((q)=>q.bytes)}),u.on("GetAnnotations",function({pageIndex:v,intent:q}){return s.getPage(v).then(function(x){let k=new Ri(`GetAnnotations: page ${v}`);return m(k),x.getAnnotationsData(u,k,q).then((A)=>(g(k),A),(A)=>{throw g(k),A})})}),u.on("GetFieldObjects",function(v){return s.ensureDoc("fieldObjects").then((q)=>q?.allFields||null)}),u.on("HasJSActions",function(v){return s.ensureDoc("hasJSActions")}),u.on("GetCalculationOrderIds",function(v){return s.ensureDoc("calculationOrderIds")}),u.on("ExtractPages",async function({pageInfos:v,annotationStorage:q}){if(!v)return T("extractPages: nothing to extract."),null;Array.isArray(v)||(v=[v]);let x=0;for(let A of v)if(A.document===null)A.document=s.pdfDocument;else if(ArrayBuffer.isView(A.document)){let S=new Gc({source:A.document,docId:`${o}_extractPages_${x++}`,handler:u,password:A.password??null,evaluatorOptions:Object.assign({},s.evaluatorOptions)}),I=!1,E=!0;for(;;)try{await S.requestLoadedStream(),await S.ensureDoc("checkHeader"),await S.ensureDoc("parseStartXRef"),await S.ensureDoc("parse",[I]);break}catch(D){if(D instanceof aa)if(I===!1){I=!0;continue}else E=!1,T("extractPages: XRefParseException.");else if(D instanceof Fr){let O=new Ri(`PasswordException: response ${D.code}`);m(O);try{let{password:$}=await u.sendWithPromise("PasswordRequest",D);S.updatePassword($)}catch{E=!1,T("extractPages: invalid password.")}finally{g(O)}}else E=!1,T("extractPages: invalid document.");if(!E)break}E||(A.document=null),await S.ensureDoc("isPureXfa")?(A.document=null,T("extractPages does not support pure XFA documents.")):A.document=S.pdfDocument}else T("extractPages: invalid document.");let k;try{let A=new _4;return k=new Ri(`ExtractPages: ${v.length} page(s)`),m(k),await A.extractPages(v,q,u,k)}catch(A){return console.error(A),null}finally{k&&g(k)}}),u.on("SaveDocument",async function({isPureXfa:v,numPages:q,annotationStorage:x,filename:k}){let A=[s.requestLoadedStream(),s.ensureCatalog("acroForm"),s.ensureCatalog("acroFormRef"),s.ensureDoc("startXRef"),s.ensureDoc("xref"),s.ensureCatalog("structTreeRoot")],S=new ts,I=[],E=v?null:Uh(x),[D,O,$,it,W,H]=await Promise.all(A),L=W.trailer.getRaw("Root")||null,rt;if(E){H?await H.canUpdateStructTree({pdfManager:s,newAnnotationsByPage:E})&&(rt=H):await ia.canCreateStructureTree({catalogRef:L,pdfManager:s,newAnnotationsByPage:E})&&(rt=null);let _=Ii.generateImages(x.values(),W,s.evaluatorOptions.isOffscreenCanvasSupported),U=rt===void 0?I:[];for(let[ot,ft]of E)U.push(s.getPage(ot).then((J)=>{let Ct=new Ri(`Save (editor): page ${ot}`);return m(Ct),J.saveNewAnnotations(u,Ct,ft,_,S).finally(function(){g(Ct)})}));rt===null?I.push(Promise.all(U).then(async()=>{await ia.createStructureTree({newAnnotationsByPage:E,xref:W,catalogRef:L,pdfManager:s,changes:S})})):rt&&I.push(Promise.all(U).then(async()=>{await rt.updateStructureTree({newAnnotationsByPage:E,pdfManager:s,changes:S})}))}if(v)I.push(s.ensureDoc("serializeXfaData",[x]));else for(let _=0;_<q;_++)I.push(s.getPage(_).then(function(U){let ot=new Ri(`Save: page ${_}`);return m(ot),U.save(u,ot,x,S).finally(function(){g(ot)})}));let yt=await Promise.all(I),X=null;if(v){if(X=yt[0],!X)return D.bytes}else if(S.size===0)return D.bytes;let St=$&&O instanceof B&&S.values().some((_)=>_.needAppearances),qt=O instanceof B&&O.get("XFA")||null,R=null,V=!1;if(Array.isArray(qt)){for(let _=0,U=qt.length;_<U;_+=2)qt[_]==="datasets"&&(R=qt[_+1],V=!0);R===null&&(R=W.getNewTemporaryRef())}else qt&&T("Unsupported XFA type.");let N=Object.create(null);if(W.trailer){let _=new Map,U=W.trailer.get("Info")||null;if(U instanceof B)for(let[ot,ft]of U)typeof ft=="string"&&_.set(ot,Xt(ft));N={rootRef:L,encryptRef:W.trailer.getRaw("Encrypt")||null,newRef:W.getNewTemporaryRef(),infoRef:W.trailer.getRaw("Info")||null,infoMap:_,fileIds:W.trailer.get("ID")||null,startXRef:it,filename:k}}return a0({originalData:D.bytes,xrefInfo:N,changes:S,xref:W,hasXfa:!!qt,xfaDatasetsRef:R,hasXfaDatasetsEntry:V,needAppearances:St,acroFormRef:$,acroForm:O,xfaData:X,useXrefStream:S1(W.topDict,"XRef")}).finally(()=>{W.resetNewTemporaryRef()})}),u.on("GetOperatorList",function(v,q){let{pageId:x,pageIndex:k}=v;s.getPage(x).then(function(A){let S=new Ri(`GetOperatorList: page ${k}`);m(S);let I=r>=$o.INFOS?Date.now():0;A.getOperatorList({handler:u,sink:q,task:S,intent:v.intent,cacheKey:v.cacheKey,annotationStorage:v.annotationStorage,modifiedIds:v.modifiedIds,pageIndex:k}).then(function(E){g(S),I&&Wt(`page=${k+1} - getOperatorList: time=${Date.now()-I}ms, len=${E.length}`),q.close()},function(E){g(S),!S.terminated&&q.error(E)})})}),u.on("GetTextContent",function(v,q){let{pageId:x,pageIndex:k,includeMarkedContent:A,disableNormalization:S}=v;s.getPage(x).then(function(I){let E=new Ri("GetTextContent: page "+k);m(E);let D=r>=$o.INFOS?Date.now():0;I.extractTextContent({handler:u,task:E,sink:q,includeMarkedContent:A,disableNormalization:S}).then(function(){g(E),D&&Wt(`page=${k+1} - getTextContent: time=${Date.now()-D}ms`),q.close()},function(O){g(E),!E.terminated&&q.error(O)})})}),u.on("GetStructTree",function(v){return s.getPage(v.pageIndex).then((q)=>s.ensure(q,"getStructTree"))}),u.on("FontFallback",function(v){return s.fontFallback(v.id,u)}),u.on("Cleanup",function(v){return s.cleanup(!0)}),u.on("Terminate",async function(v){i=!0;let q=[];if(s){s.terminate(new Cs("Worker was terminated."));let x=s.cleanup();q.push(x),s=null}else Qh();n?.(new Cs("Worker was terminated."));for(let x of a)q.push(x.finished),x.terminate();await Promise.all(q),u.destroy(),u=null}),u.on("Ready",function(v){j(t),t=null}),f}static initializeFromPort(t){let e=new _p("worker","main",t);this.setup(e,t),e.send("ready",null)}};globalThis.pdfjsWorker={WorkerMessageHandler:z4};Si=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),l1=[0.001,0,0,0.001,0,0],ui={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},kn={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},Zt={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},ge={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},U4={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Ia={TRIANGLES:1,LATTICE:2},cs={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},zo={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Xe={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},cr={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Nl={ERRORS:0,WARNINGS:1,INFOS:5},Nr={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},bo={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},G4={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},bf=Nl.WARNINGS;d($4,"setVerbosityLevel");d(V4,"getVerbosityLevel");d(Ll,"info");d(ne,"warn");d(Se,"unreachable");d(Oe,"assert");d(W4,"_isValidProtocol");d(wf,"createValidAbsoluteUrl");d(yf,"updateUrlHash");d(Ih,"stripPath");d(se,"shadow");$a=d(function(){function t(e,s){this.message=e,this.name=s}return d(t,"BaseException"),t.prototype=Error(),t.constructor=t,t},"BaseExceptionClosure")();c1=class c1 extends $a{static{d(this,"PasswordException")}constructor(t,e){super(t,"PasswordException"),this.code=e}};Vc=class Vc extends $a{static{d(this,"UnknownErrorException")}constructor(t,e){super(t,"UnknownErrorException"),this.details=e}};gl=class gl extends $a{static{d(this,"InvalidPDFException")}constructor(t){super(t,"InvalidPDFException")}};Lr=class Lr extends $a{static{d(this,"ResponseException")}constructor(t,e,s){super(t,"ResponseException"),this.status=e,this.missing=s}};K4=class K4 extends $a{static{d(this,"FormatError")}constructor(t){super(t,"FormatError")}};hn=class hn extends $a{static{d(this,"AbortException")}constructor(t){super(t,"AbortException")}};d(Y4,"bytesToString");d(zl,"stringToBytes");d(X4,"string32");d(Q4,"isLittleEndian");d(J4,"isEvalSupported");es=class es{static{d(this,"FeatureTest")}static get isLittleEndian(){return se(this,"isLittleEndian",Q4())}static get isEvalSupported(){return se(this,"isEvalSupported",J4())}static get isOffscreenCanvasSupported(){return se(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return se(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get isFloat16ArraySupported(){return se(this,"isFloat16ArraySupported",typeof Float16Array<"u")}static get isSanitizerSupported(){return se(this,"isSanitizerSupported",typeof Sanitizer<"u")}static get platform(){let{platform:t,userAgent:e}=navigator;return se(this,"platform",{isAndroid:e.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:e.includes("Firefox")})}static get isCSSRoundSupported(){return se(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}};Yf=Array.from(Array(256).keys(),(t)=>t.toString(16).padStart(2,"0"));xt=class xt{static{d(this,"Util")}static makeHexColor(t,e,s){return`#${Yf[t]}${Yf[e]}${Yf[s]}`}static domMatrixToTransform(t){return[t.a,t.b,t.c,t.d,t.e,t.f]}static scaleMinMax(t,e){let s;t[0]?(t[0]<0&&(s=e[0],e[0]=e[2],e[2]=s),e[0]*=t[0],e[2]*=t[0],t[3]<0&&(s=e[1],e[1]=e[3],e[3]=s),e[1]*=t[3],e[3]*=t[3]):(s=e[0],e[0]=e[1],e[1]=s,s=e[2],e[2]=e[3],e[3]=s,t[1]<0&&(s=e[1],e[1]=e[3],e[3]=s),e[1]*=t[1],e[3]*=t[1],t[2]<0&&(s=e[0],e[0]=e[2],e[2]=s),e[0]*=t[2],e[2]*=t[2]),e[0]+=t[4],e[1]+=t[5],e[2]+=t[4],e[3]+=t[5]}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 i=t[s],n=t[s+1];t[s]=i*e[0]+n*e[2]+e[4],t[s+1]=i*e[1]+n*e[3]+e[5]}static applyTransformToBezier(t,e,s=0){let i=e[0],n=e[1],a=e[2],r=e[3],o=e[4],l=e[5];for(let c=0;c<6;c+=2){let h=t[s+c],f=t[s+c+1];t[s+c]=h*i+f*a+o,t[s+c+1]=h*n+f*r+l}}static applyInverseTransform(t,e){let s=t[0],i=t[1],n=e[0]*e[3]-e[1]*e[2];t[0]=(s*e[3]-i*e[2]+e[2]*e[5]-e[4]*e[3])/n,t[1]=(-s*e[1]+i*e[0]+e[4]*e[1]-e[5]*e[0])/n}static axialAlignedBoundingBox(t,e,s){let i=e[0],n=e[1],a=e[2],r=e[3],o=e[4],l=e[5],c=t[0],h=t[1],f=t[2],u=t[3],p=i*c+o,m=p,g=i*f+o,w=g,b=r*h+l,j=b,v=r*u+l,q=v;if(n!==0||a!==0){let x=n*c,k=n*f,A=a*h,S=a*u;p+=A,w+=A,g+=S,m+=S,b+=x,q+=x,v+=k,j+=k}s[0]=Math.min(s[0],p,g,m,w),s[1]=Math.min(s[1],b,v,j,q),s[2]=Math.max(s[2],p,g,m,w),s[3]=Math.max(s[3],b,v,j,q)}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],i=t[1],n=t[2],a=t[3],r=s**2+i**2,o=s*n+i*a,l=n**2+a**2,c=(r+l)/2,h=Math.sqrt(c**2-(r*l-o**2));e[0]=Math.sqrt(c+h||1),e[1]=Math.sqrt(c-h||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])),i=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(s>i)return null;let n=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 n>a?null:[s,n,i,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,i,n){n[0]=Math.min(n[0],t,s),n[1]=Math.min(n[1],e,i),n[2]=Math.max(n[2],t,s),n[3]=Math.max(n[3],e,i)}static#t(t,e,s,i,n,a,r,o,l,c){if(l<=0||l>=1)return;let h=1-l,f=l*l,u=f*l,p=h*(h*(h*t+3*l*e)+3*f*s)+u*i,m=h*(h*(h*n+3*l*a)+3*f*r)+u*o;c[0]=Math.min(c[0],p),c[1]=Math.min(c[1],m),c[2]=Math.max(c[2],p),c[3]=Math.max(c[3],m)}static#e(t,e,s,i,n,a,r,o,l,c,h,f){if(Math.abs(l)<0.000000000001){Math.abs(c)>=0.000000000001&&this.#t(t,e,s,i,n,a,r,o,-h/c,f);return}let u=c**2-4*h*l;if(u<0)return;let p=Math.sqrt(u),m=2*l;this.#t(t,e,s,i,n,a,r,o,(-c+p)/m,f),this.#t(t,e,s,i,n,a,r,o,(-c-p)/m,f)}static bezierBoundingBox(t,e,s,i,n,a,r,o,l){l[0]=Math.min(l[0],t,r),l[1]=Math.min(l[1],e,o),l[2]=Math.max(l[2],t,r),l[3]=Math.max(l[3],e,o),this.#e(t,s,n,r,e,i,a,o,3*(-t+3*(s-n)+r),6*(t-2*s+n),3*(s-t),l),this.#e(t,s,n,r,e,i,a,o,3*(-e+3*(i-a)+o),6*(e-2*i+a),3*(i-e),l)}};d(Z4,"stringToUTF8String");d(r0,"normalizeUnicode");d(jf,"getUuid");d(t8,"_isValidExplicitDest");vf=d(()=>[],"makeArr"),kf=d(()=>new Map,"makeMap"),Th=d(()=>Object.create(null),"makeObj");d(rs,"MathClamp"),typeof Math.sumPrecise!="function"&&(Math.sumPrecise=function(t){return t.reduce((e,s)=>e+s,0)});bl=class bl{static{d(this,"XfaText")}static textContent(t){let e=[],s={items:e,styles:Object.create(null)};function i(n){if(!n)return;let a=null,r=n.name;if(r==="#text")a=n.value;else if(bl.shouldBuildText(r))n?.attributes?.textContent?a=n.attributes.textContent:n.value&&(a=n.value);else return;if(a!==null&&e.push({str:a}),!!n.children)for(let o of n.children)i(o)}return d(i,"walk"),i(t),s}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}};qf=class qf{static{d(this,"XfaLayer")}static setupStorage(t,e,s,i,n){let a=i.getValue(e,{value:null});switch(s.name){case"textarea":if(a.value!==null&&(t.textContent=a.value),n==="print")break;t.addEventListener("input",(r)=>{i.setValue(e,{value:r.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"),n==="print")break;t.addEventListener("change",(r)=>{i.setValue(e,{value:r.target.checked?r.target.getAttribute("xfaOn"):r.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&t.setAttribute("value",a.value),n==="print")break;t.addEventListener("input",(r)=>{i.setValue(e,{value:r.target.value})})}break;case"select":if(a.value!==null){t.setAttribute("value",a.value);for(let r of s.children)r.attributes.value===a.value?r.attributes.selected=!0:r.attributes.hasOwnProperty("selected")&&delete r.attributes.selected}t.addEventListener("input",(r)=>{let o=r.target.options,l=o.selectedIndex===-1?"":o[o.selectedIndex].value;i.setValue(e,{value:l})});break}}static setAttributes({html:t,element:e,storage:s=null,intent:i,linkService:n}){let{attributes:a}=e,r=t instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${i}`);for(let[o,l]of Object.entries(a))if(l!=null)switch(o){case"class":l.length&&t.setAttribute(o,l.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",l);break;case"style":Object.assign(t.style,l);break;case"textContent":t.textContent=l;break;default:(!r||o!=="href"&&o!=="newWindow")&&t.setAttribute(o,l)}r&&n.addLinkAttributes(t,a.href,a.newWindow),s&&a.dataId&&this.setupStorage(t,a.dataId,e,s)}static render(t){let{annotationStorage:e,linkService:s,xfaHtml:i}=t,n=t.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:n,linkService:s});let r=n!=="richText",o=t.div;if(o.append(a),t.viewport){let h=`matrix(${t.viewport.transform.join(",")})`;o.style.transform=h}r&&o.setAttribute("class","xfaLayer xfaFont");let l=[];if(i.children.length===0){if(i.value){let h=document.createTextNode(i.value);a.append(h),r&&bl.shouldBuildText(i.name)&&l.push(h)}return{textDivs:l}}let c=[[i,-1,a]];for(;c.length>0;){let[h,f,u]=c.at(-1);if(f+1===h.children.length){c.pop();continue}let p=h.children[++c.at(-1)[1]];if(p===null)continue;let{name:m}=p;if(m==="#text"){let w=document.createTextNode(p.value);l.push(w),u.append(w);continue}let g=p?.attributes?.xmlns?document.createElementNS(p.attributes.xmlns,m):document.createElement(m);if(u.append(g),p.attributes&&this.setAttributes({html:g,element:p,storage:e,intent:n,linkService:s}),p.children?.length>0)c.push([p,-1,g]);else if(p.value){let w=document.createTextNode(p.value);r&&bl.shouldBuildText(m)&&l.push(w),g.append(w)}}for(let h of o.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))h.setAttribute("readOnly",!0);return{textDivs:l}}static update(t){let e=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=e,t.div.hidden=!1}};da=class da{static{d(this,"PixelsPerInch")}static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};d(Ul,"fetchData");Gl=class Gl{static{d(this,"PageViewport")}constructor({viewBox:t,userUnit:e,scale:s,rotation:i,offsetX:n=0,offsetY:a=0,dontFlip:r=!1}){this.viewBox=t,this.userUnit=e,this.scale=s,this.rotation=i,this.offsetX=n,this.offsetY=a,s*=e;let o=(t[2]+t[0])/2,l=(t[3]+t[1])/2,c,h,f,u;switch(i%=360,i<0&&(i+=360),i){case 180:c=-1,h=0,f=0,u=1;break;case 90:c=0,h=1,f=1,u=0;break;case 270:c=0,h=-1,f=-1,u=0;break;case 0:c=1,h=0,f=0,u=-1;break;default:throw Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}r&&(f=-f,u=-u);let p,m,g,w;c===0?(p=Math.abs(l-t[1])*s+n,m=Math.abs(o-t[0])*s+a,g=(t[3]-t[1])*s,w=(t[2]-t[0])*s):(p=Math.abs(o-t[0])*s+n,m=Math.abs(l-t[1])*s+a,g=(t[2]-t[0])*s,w=(t[3]-t[1])*s),this.transform=[c*s,h*s,f*s,u*s,p-c*s*o-f*s*l,m-h*s*o-u*s*l],this.width=g,this.height=w}get rawDims(){let t=this.viewBox;return se(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:i=this.offsetY,dontFlip:n=!1}={}){return new Gl({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:e,offsetX:s,offsetY:i,dontFlip:n})}convertToViewportPoint(t,e){let s=[t,e];return xt.applyTransform(s,this.transform),s}convertToViewportRectangle(t){let e=[t[0],t[1]];xt.applyTransform(e,this.transform);let s=[t[2],t[3]];return xt.applyTransform(s,this.transform),[e[0],e[1],s[0],s[1]]}convertToPdfPoint(t,e){let s=[t,e];return xt.applyInverseTransform(s,this.transform),s}};$l=class $l extends $a{static{d(this,"RenderingCancelledException")}constructor(t,e=0){super(t,"RenderingCancelledException"),this.extraDelay=e}};d(Yr,"isDataScheme");d(Vl,"isPdfFile");d(o0,"getFilenameFromUrl");d(l0,"getPdfFilenameFromUrl");h1=class h1{static{d(this,"StatTimer")}#t=new Map;times=[];time(t){this.#t.has(t)&&ne(`Timer is already running for ${t}`),this.#t.set(t,Date.now())}timeEnd(t){this.#t.has(t)||ne(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.#t.get(t),end:Date.now()}),this.#t.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
97
+ `).join("")}};d(Ir,"isValidFetchUrl");d(oi,"noContextMenu");d(He,"stopEvent");d(e8,"deprecated");wl=class wl{static{d(this,"PDFDateString")}static#t;static toDateObject(t){if(t instanceof Date)return t;if(!t||typeof t!="string")return null;this.#t||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");let e=this.#t.exec(t);if(!e)return null;let s=parseInt(e[1],10),i=parseInt(e[2],10);i=i>=1&&i<=12?i-1:0;let n=parseInt(e[3],10);n=n>=1&&n<=31?n:1;let a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;let r=parseInt(e[5],10);r=r>=0&&r<=59?r:0;let o=parseInt(e[6],10);o=o>=0&&o<=59?o:0;let l=e[7]||"Z",c=parseInt(e[8],10);c=c>=0&&c<=23?c:0;let h=parseInt(e[9],10)||0;return h=h>=0&&h<=59?h:0,l==="-"?(a+=c,r+=h):l==="+"&&(a-=c,r-=h),new Date(Date.UTC(s,i,n,a,r,o))}};d(c0,"getXfaPageViewport");d(Va,"getRGB");d(s8,"getColorValues");d(Re,"getCurrentTransform");d(Hi,"getCurrentTransformInverse");d(_n,"setLayerDimensions");Ki=class Ki{static{d(this,"OutputScale")}constructor(){let{pixelRatio:t}=Ki;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,i,n=-1){let a=1/0,r=1/0,o=1/0;s=Ki.capPixels(s,n),s>0&&(a=Math.sqrt(s/(t*e))),i!==-1&&(r=i/t,o=i/e);let l=Math.min(a,r,o);return this.sx>l||this.sy>l?(this.sx=l,this.sy=l,!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}};Fh=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"];i8=class i8{static{d(this,"ColorScheme")}static get isDarkMode(){return se(this,"isDarkMode",!!window?.matchMedia?.("(prefers-color-scheme: dark)").matches)}};h0=class h0{static{d(this,"CSSConstants")}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(),se(this,"commentForegroundColor",Va(s))}};d(f0,"applyOpacity");d(f1,"RGBToHSL");d(Eh,"HSLToRGB");d(u1,"computeLuminance");d(d1,"contrastRatio");Np=new Map;d(u0,"findContrastColor");d(xf,"renderRichText");d(d0,"makePathFromDrawOPS");Uo=class Uo{static{d(this,"EditorToolbar")}#t=null;#e=null;#s;#i=null;#n=null;#a=null;#r=null;#o=null;static#l=null;constructor(t){this.#s=t,Uo.#l||=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=this.#t=document.createElement("div");t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");let e=this.#s._uiManager._signal;e instanceof AbortSignal&&!e.aborted&&(t.addEventListener("contextmenu",oi,{signal:e}),t.addEventListener("pointerdown",Uo.#c,{signal:e}));let s=this.#i=document.createElement("div");s.className="buttons",t.append(s);let i=this.#s.toolbarPosition;if(i){let{style:n}=t,a=this.#s._uiManager.direction==="ltr"?1-i[0]:i[0];n.insetInlineEnd=`${100*a}%`,n.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return t}get div(){return this.#t}static#c(t){t.stopPropagation()}#u(t){this.#s._focusEventsAllowed=!1,He(t)}#h(t){this.#s._focusEventsAllowed=!0,He(t)}#d(t){let e=this.#s._uiManager._signal;return!(e instanceof AbortSignal)||e.aborted?!1:(t.addEventListener("focusin",this.#u.bind(this),{capture:!0,signal:e}),t.addEventListener("focusout",this.#h.bind(this),{capture:!0,signal:e}),t.addEventListener("contextmenu",oi,{signal:e}),!0)}hide(){this.#t.classList.add("hidden"),this.#e?.hideDropdown()}show(){this.#t.classList.remove("hidden"),this.#n?.shown(),this.#a?.shown()}addDeleteButton(){let{editorType:t,_uiManager:e}=this.#s,s=document.createElement("button");s.classList.add("basic","deleteButton"),s.tabIndex=0,s.setAttribute("data-l10n-id",Uo.#l[t]),this.#d(s)&&s.addEventListener("click",(i)=>{e.delete()},{signal:e._signal}),this.#i.append(s)}get#g(){let t=document.createElement("div");return t.className="divider",t}async addAltText(t){let e=await t.render();this.#d(e),this.#i.append(e,this.#g),this.#n=t}addComment(t,e=null){if(this.#a)return;let s=t.renderForToolbar();if(!s)return;this.#d(s);let i=this.#r=this.#g;e?(this.#i.insertBefore(s,e),this.#i.insertBefore(i,e)):this.#i.append(s,i),this.#a=t,t.toolbar=this}addColorPicker(t){if(this.#e)return;this.#e=t;let e=t.renderButton();this.#d(e),this.#i.append(e,this.#g)}async addEditSignatureButton(t){let e=this.#o=await t.renderEditButton(this.#s);this.#d(e),this.#i.append(e,this.#g)}removeButton(t){t==="comment"&&(this.#a?.removeToolbarCommentButton(),this.#a=null,this.#r?.remove(),this.#r=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 i=this.#i.querySelector(s);i&&t==="comment"&&this.addComment(e,i)}updateEditSignatureButton(t){this.#o&&(this.#o.title=t)}remove(){this.#t.remove(),this.#e?.destroy(),this.#e=null}};n8=class n8{static{d(this,"FloatingToolbar")}#t=null;#e=null;#s;constructor(t){this.#s=t}#i(){let t=this.#e=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar");let e=this.#s._signal;e instanceof AbortSignal&&!e.aborted&&t.addEventListener("contextmenu",oi,{signal:e});let s=this.#t=document.createElement("div");return s.className="buttons",t.append(s),this.#s.hasCommentManager()&&this.#a("commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{this.#s.commentSelection("floating_button")}),this.#a("highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{this.#s.highlightSelection("floating_button")}),t}#n(t,e){let s=0,i=0;for(let n of t){let a=n.y+n.height;if(a<s)continue;let r=n.x+(e?n.width:0);if(a>s){i=r,s=a;continue}e?r>i&&(i=r):r<i&&(i=r)}return[e?1-i:i,s]}show(t,e,s){let[i,n]=this.#n(e,s),{style:a}=this.#e||=this.#i();t.append(this.#e),a.insetInlineEnd=`${100*i}%`,a.top=`calc(${100*n}% + var(--editor-toolbar-vert-offset))`}hide(){this.#e.remove()}#a(t,e,s,i){let n=document.createElement("button");n.classList.add("basic",t),n.tabIndex=0,n.setAttribute("data-l10n-id",e);let a=document.createElement("span");n.append(a),a.className="visuallyHidden",a.setAttribute("data-l10n-id",s);let r=this.#s._signal;r instanceof AbortSignal&&!r.aborted&&(n.addEventListener("contextmenu",oi,{signal:r}),n.addEventListener("click",i,{signal:r})),this.#t.append(n)}};d(p0,"bindEvents");Ae=class Ae{static{d(this,"CurrentPointers")}static#t=NaN;static#e=null;static#s=NaN;static#i=null;static initializeAndAddPointerId(t){(Ae.#e||=new Set).add(t)}static setPointer(t,e){Ae.#t||=e,Ae.#i??=t}static setTimeStamp(t){Ae.#s=t}static isSamePointerId(t){return Ae.#t===t}static isSamePointerIdOrRemove(t){return Ae.#t===t?!0:(Ae.#e?.delete(t),!1)}static isSamePointerType(t){return Ae.#i===t}static isInitializedAndDifferentPointerType(t){return Ae.#i!==null&&!Ae.isSamePointerType(t)}static isSameTimeStamp(t){return Ae.#s===t}static isUsingMultiplePointers(){return Ae.#e?.size>=1}static clearPointerType(){Ae.#i=null}static clearPointerIds(){Ae.#t=NaN,Ae.#e=null}static clearTimeStamp(){Ae.#s=NaN}};a8=class a8{static{d(this,"IdManager")}#t=0;get id(){return`${ml}${this.#t++}`}};m0=class m0{static{d(this,"ImageManager")}#t=jf();#e=0;#s=null;static get _isSVGFittingCanvas(){let e=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),s=new Image;s.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>';let i=s.decode().then(()=>(e.drawImage(s,0,0,1,1,0,0,1,3),new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0]===0));return se(this,"_isSVGFittingCanvas",i)}async#i(t,e){this.#s||=new Map;let s=this.#s.get(t);if(s===null)return null;if(s?.bitmap)return s.refCounter+=1,s;try{s||={bitmap:null,id:`image_${this.#t}_${this.#e++}`,refCounter:0,isSvg:!1};let i;if(typeof e=="string"?(s.url=e,i=await Ul(e,"blob")):e instanceof File?i=s.file=e:e instanceof Blob&&(i=e),i.type==="image/svg+xml"){let n=m0._isSVGFittingCanvas,a=new FileReader,r=new Image,o=new Promise((l,c)=>{r.onload=()=>{s.bitmap=r,s.isSvg=!0,l()},a.onload=async()=>{let h=s.svgUrl=a.result;r.src=await n?`${h}#svgView(preserveAspectRatio(none))`:h},r.onerror=a.onerror=c});a.readAsDataURL(i),await o}else s.bitmap=await createImageBitmap(i);s.refCounter=1}catch(i){ne(i),s=null}return this.#s.set(t,s),s&&this.#s.set(s.id,s),s}async getFromFile(t){let{lastModified:e,name:s,size:i,type:n}=t;return this.#i(`${e}_${s}_${i}_${n}`,t)}async getFromUrl(t){return this.#i(t,t)}async getFromBlob(t,e){let s=await e;return this.#i(t,s)}async getFromId(t){this.#s||=new Map;let e=this.#s.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){this.#s||=new Map;let s=this.#s.get(t);if(s?.bitmap)return s.refCounter+=1,s;let i=new OffscreenCanvas(e.width,e.height);return i.getContext("2d").drawImage(e,0,0),s={bitmap:i.transferToImageBitmap(),id:`image_${this.#t}_${this.#e++}`,refCounter:1,isSvg:!1},this.#s.set(t,s),this.#s.set(s.id,s),s}getSvgUrl(t){let e=this.#s.get(t);return e?.isSvg?e.svgUrl:null}deleteId(t){this.#s||=new Map;let e=this.#s.get(t);if(!e||(e.refCounter-=1,e.refCounter!==0))return;let{bitmap:s}=e;if(!e.url&&!e.file){let i=new OffscreenCanvas(s.width,s.height);i.getContext("bitmaprenderer").transferFromImageBitmap(s),e.blobPromise=i.convertToBlob()}s.close?.(),e.bitmap=null}isValidId(t){return t.startsWith(`image_${this.#t}_`)}};r8=class r8{static{d(this,"CommandManager")}#t=[];#e=!1;#s;#i=-1;constructor(t=128){this.#s=t}add({cmd:t,undo:e,post:s,mustExec:i,type:n=NaN,overwriteIfSameType:a=!1,keepUndo:r=!1}){if(i&&t(),this.#e)return;let o={cmd:t,undo:e,post:s,type:n};if(this.#i===-1){this.#t.length>0&&(this.#t.length=0),this.#i=0,this.#t.push(o);return}if(a&&this.#t[this.#i].type===n){r&&(o.undo=this.#t[this.#i].undo),this.#t[this.#i]=o;return}let l=this.#i+1;l===this.#s?this.#t.splice(0,1):(this.#i=l,l<this.#t.length&&this.#t.splice(l)),this.#t.push(o)}undo(){if(this.#i===-1)return;this.#e=!0;let{undo:t,post:e}=this.#t[this.#i];t(),e?.(),this.#e=!1,this.#i-=1}redo(){if(this.#i<this.#t.length-1){this.#i+=1,this.#e=!0;let{cmd:t,post:e}=this.#t[this.#i];t(),e?.(),this.#e=!1}}hasSomethingToUndo(){return this.#i!==-1}hasSomethingToRedo(){return this.#i<this.#t.length-1}cleanType(t){if(this.#i!==-1){for(let e=this.#i;e>=0;e--)if(this.#t[e].type!==t){this.#t.splice(e+1,this.#i-e),this.#i=e;return}this.#t.length=0,this.#i=-1}}destroy(){this.#t=null}};Xr=class Xr{static{d(this,"KeyboardManager")}constructor(t){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;let{isMac:e}=es.platform;for(let[s,i,n={}]of t)for(let a of s){let r=a.startsWith("mac+");e&&r?(this.callbacks.set(a.slice(4),{callback:i,options:n}),this.allKeys.add(a.split("+").at(-1))):!e&&!r&&(this.callbacks.set(a,{callback:i,options:n}),this.allKeys.add(a.split("+").at(-1)))}}#t(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);let e=this.buffer.join("+");return this.buffer.length=0,e}exec(t,e){if(!this.allKeys.has(e.key))return;let s=this.callbacks.get(this.#t(e));if(!s)return;let{callback:i,options:{bubbles:n=!1,args:a=[],checker:r=null}}=s;r&&!r(t,e)||(i.bind(t,...a,e)(),n||He(e))}};g0=class g0{static{d(this,"ColorManager")}static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){let t=new Map([["CanvasText",null],["Canvas",null]]);return s8(t),se(this,"_colors",t)}convert(t){let e=Va(t);if(!window.matchMedia("(forced-colors: active)").matches)return e;for(let[s,i]of this._colors)if(i.every((n,a)=>n===e[a]))return g0._colorsMapping.get(s);return e}getHexCode(t){let e=this._colors.get(t);return e?xt.makeHexColor(...e):t}};On=class On{static{d(this,"AnnotationEditorUIManager")}#t=new AbortController;#e=null;#s=null;#i=new Map;#n=new Map;#a=null;#r=null;#o=null;#l=null;#c=new r8;#u=null;#h=null;#d=null;#g=0;#m=new Set;#f=null;#p=null;#b=new Set;_editorUndoBar=null;#v=!1;#y=!1;#q=!1;#C=null;#w=null;#x=null;#k=null;#S=!1;#T=null;#F=new a8;#I=!1;#B=!1;#E=!1;#M=null;#P=null;#H=null;#_=null;#z=null;#A=Zt.NONE;#j=new Set;#R=null;#O=null;#G=null;#Y=null;#W=null;#K={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#N=[0,0];#$=null;#V=null;#Z=null;#tt=null;#L=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){let t=On.prototype,e=d((a)=>a.#V.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),"arrowChecker"),s=d((a,{target:r})=>{if(r instanceof HTMLInputElement){let{type:o}=r;return o!=="text"&&o!=="number"}return!0},"textInputChecker"),i=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG;return se(this,"_keyboardManager",new Xr([[["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","mac+Enter"],t.addNewEditorFromKeyboard,{checker:d((a,{target:r})=>!(r instanceof HTMLButtonElement)&&a.#V.contains(r)&&!a.isEnterHandled,"checker")}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:d((a,{target:r})=>!(r instanceof HTMLButtonElement)&&a.#V.contains(document.activeElement),"checker")}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-n,0],checker:e}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[n,0],checker:e}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-n],checker:e}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,n],checker:e}]]))}constructor(t,e,s,i,n,a,r,o,l,c,h,f,u,p,m,g){let w=this._signal=this.#t.signal;this.#V=t,this.#Z=e,this.#tt=s,this.#r=i,this.#u=n,this.#O=a,this.#W=o,this._eventBus=r,r._on("editingaction",this.onEditingAction.bind(this),{signal:w}),r._on("pagechanging",this.onPageChanging.bind(this),{signal:w}),r._on("scalechanging",this.onScaleChanging.bind(this),{signal:w}),r._on("rotationchanging",this.onRotationChanging.bind(this),{signal:w}),r._on("setpreference",this.onSetPreference.bind(this),{signal:w}),r._on("switchannotationeditorparams",(b)=>this.updateParams(b.type,b.value),{signal:w}),window.addEventListener("pointerdown",()=>{this.#B=!0},{capture:!0,signal:w}),window.addEventListener("pointerup",()=>{this.#B=!1},{capture:!0,signal:w}),window.addEventListener("beforeunload",this.#at.bind(this),{capture:!0,signal:w}),this.#lt(),this.#pt(),this.#st(),this.#o=o.annotationStorage,this.#C=o.filterFactory,this.#G=l,this.#k=c||null,this.#v=h,this.#y=f,this.#q=u,this.#z=p||null,this.viewParameters={realScale:da.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=m||null,this._supportsPinchToZoom=g!==!1,n?.setSidebarUiManager(this)}destroy(){this.#L?.resolve(),this.#L=null,this.#t?.abort(),this.#t=null,this._signal=null;for(let t of this.#n.values())t.destroy();this.#n.clear(),this.#i.clear(),this.#b.clear(),this.#_?.clear(),this.#e=null,this.#j.clear(),this.#c.destroy(),this.#r?.destroy(),this.#u?.destroy(),this.#O?.destroy(),this.#T?.hide(),this.#T=null,this.#H?.destroy(),this.#H=null,this.#s=null,this.#w&&(clearTimeout(this.#w),this.#w=null),this.#$&&(clearTimeout(this.#$),this.#$=null),this._editorUndoBar?.destroy(),this.#W=null}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return this.#z}get useNewAltTextFlow(){return this.#y}get useNewAltTextWhenAddingImage(){return this.#q}get hcmFilter(){return se(this,"hcmFilter",this.#G?this.#C.addHCMFilter(this.#G.foreground,this.#G.background):"none")}get direction(){return se(this,"direction",getComputedStyle(this.#V).direction)}get _highlightColors(){return se(this,"_highlightColors",this.#k?new Map(this.#k.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 se(this,"highlightColors",null);let e=new Map,s=!!this.#G;for(let[i,n]of t){let a=i.endsWith("_HCM");if(s&&a){e.set(i.replace("_HCM",""),n);continue}!s&&!a&&e.set(i,n)}return se(this,"highlightColors",e)}get highlightColorNames(){return se(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),this.#d=t}setMainHighlightColorPicker(t){this.#H=t}editAltText(t,e=!1){this.#r?.editAltText(this,t,e)}hasCommentManager(){return!!this.#u}editComment(t,e,s,i){this.#u?.showDialog(this,t,e,s,i)}selectComment(t,e){this.#n.get(t)?.getEditorByUID(e)?.toggleComment(!0,!0)}updateComment(t){this.#u?.updateComment(t.getData())}updatePopupColor(t){this.#u?.updatePopupColor(t)}removeComment(t){this.#u?.removeComments([t.uid])}deleteComment(t,e){let s=d(()=>{t.comment=e},"undo"),i=d(()=>{this._editorUndoBar?.show(s,"comment"),this.toggleComment(null),t.comment=null},"cmd");this.addCommands({cmd:i,undo:s,mustExec:!0})}toggleComment(t,e,s=void 0){this.#u?.toggleCommentPopup(t,e,s)}makeCommentColor(t,e){return t&&this.#u?.makeCommentColor(t,e)||null}getCommentDialogElement(){return this.#u?.dialogElement||null}async waitForEditorsRendered(t){if(this.#n.has(t-1))return;let{resolve:e,promise:s}=Promise.withResolvers(),i=d((n)=>{n.pageNumber===t&&(this._eventBus._off("editorsrendered",i),e())},"onEditorsRendered");this._eventBus.on("editorsrendered",i),await s}getSignature(t){this.#O?.getSignature({uiManager:this,editor:t})}get signatureManager(){return this.#O}switchToMode(t,e){this._eventBus.on("annotationeditormodechanged",e,{once:!0,signal:this._signal}),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"&&(this.#q=e)}onPageChanging({pageNumber:t}){this.#g=t-1}deletePage(t){for(let e of this.getEditors(t))e.remove();this.#n.delete(t),this.#g===t&&(this.#g=0)}focusMainContainer(){this.#V.focus()}findParent(t,e){for(let s of this.#n.values()){let{x:i,y:n,width:a,height:r}=s.div.getBoundingClientRect();if(t>=i&&t<=i+a&&e>=n&&e<=n+r)return s}return null}disableUserSelect(t=!1){this.#Z.classList.toggle("noUserSelect",t)}addShouldRescale(t){this.#b.add(t)}removeShouldRescale(t){this.#b.delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*da.PDF_TO_CSS_UNITS;for(let e of this.#b)e.onScaleChanging();this.#d?.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}#J({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t}#et(t){let{currentLayer:e}=this;if(e.hasTextLayer(t))return e;for(let s of this.#n.values())if(s.hasTextLayer(t))return s;return null}highlightSelection(t="",e=!1){let s=document.getSelection();if(!s||s.isCollapsed)return;let{anchorNode:i,anchorOffset:n,focusNode:a,focusOffset:r}=s,o=s.toString(),l=this.#J(s).closest(".textLayer"),c=this.getSelectionBoxes(l);if(!c)return;s.empty();let h=this.#et(l),f=this.#A===Zt.NONE,u=d(()=>{let p=h?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:c,anchorNode:i,anchorOffset:n,focusNode:a,focusOffset:r,text:o});f&&this.showAllEditors("highlight",!0,!0),e&&p?.editComment()},"callback");if(f){this.switchToMode(Zt.HIGHLIGHT,u);return}u()}commentSelection(t=""){this.highlightSelection(t,!0)}#at(t){this.commitOrRemove(),this.currentLayer?.endDrawingSession(!1)}#rt(){let t=document.getSelection();if(!t||t.isCollapsed)return;let e=this.#J(t).closest(".textLayer"),s=this.getSelectionBoxes(e);s&&(this.#T||=new n8(this),this.#T.show(e,s,this.direction==="ltr"))}getAndRemoveDataFromAnnotationStorage(t){if(!this.#o)return null;let e=`${ml}${t}`,s=this.#o.getRawValue(e);return s&&this.#o.remove(e),s}addToAnnotationStorage(t){!t.isEmpty()&&this.#o&&!this.#o.has(t.id)&&this.#o.setValue(t.id,t)}a11yAlert(t,e=null){let s=this.#tt;s&&(s.setAttribute("data-l10n-id",t),e?s.setAttribute("data-l10n-args",JSON.stringify(e)):s.removeAttribute("data-l10n-args"))}#ot(){let t=document.getSelection();if(!t||t.isCollapsed){this.#R&&(this.#T?.hide(),this.#R=null,this.#D({hasSelectedText:!1}));return}let{anchorNode:e}=t;if(e===this.#R)return;let s=this.#J(t).closest(".textLayer");if(!s){this.#R&&(this.#T?.hide(),this.#R=null,this.#D({hasSelectedText:!1}));return}if(this.#T?.hide(),this.#R=e,this.#D({hasSelectedText:!0}),!(this.#A!==Zt.HIGHLIGHT&&this.#A!==Zt.NONE)&&(this.#A===Zt.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#S=this.isShiftKeyDown,!this.isShiftKeyDown)){let i=this.#A===Zt.HIGHLIGHT?this.#et(s):null;if(i?.toggleDrawing(),this.#B){let n=new AbortController,a=this.combinedSignal(n),r=d((o)=>{o.type==="pointerup"&&o.button!==0||(n.abort(),i?.toggleDrawing(!0),o.type==="pointerup"&&this.#X("main_toolbar"))},"pointerup");window.addEventListener("pointerup",r,{signal:a}),window.addEventListener("blur",r,{signal:a})}else i?.toggleDrawing(!0),this.#X("main_toolbar")}}#X(t=""){this.#A===Zt.HIGHLIGHT?this.highlightSelection(t):this.#v&&this.#rt()}#lt(){document.addEventListener("selectionchange",this.#ot.bind(this),{signal:this._signal})}#ct(){if(this.#x)return;this.#x=new AbortController;let t=this.combinedSignal(this.#x);window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})}#ht(){this.#x?.abort(),this.#x=null}blur(){if(this.isShiftKeyDown=!1,this.#S&&(this.#S=!1,this.#X("main_toolbar")),!this.hasSelection)return;let{activeElement:t}=document;for(let e of this.#j)if(e.div.contains(t)){this.#P=[e,t],e._focusEventsAllowed=!1;break}}focus(){if(!this.#P)return;let[t,e]=this.#P;this.#P=null,e.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),e.focus()}#st(){if(this.#M)return;this.#M=new AbortController;let t=this.combinedSignal(this.#M);window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})}#ft(){this.#M?.abort(),this.#M=null}#ut(){if(this.#h)return;this.#h=new AbortController;let t=this.combinedSignal(this.#h);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})}#dt(){this.#h?.abort(),this.#h=null}#pt(){let t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}addEditListeners(){this.#st(),this.setEditingState(!0)}removeEditListeners(){this.#ft(),this.setEditingState(!1)}dragOver(t){for(let{type:e}of t.dataTransfer.items)for(let s of this.#p)if(s.isHandlingMimeForPasting(e)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(let e of t.dataTransfer.items)for(let s of this.#p)if(s.isHandlingMimeForPasting(e.type)){s.paste(e,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),this.#e?.commitOrRemove(),!this.hasSelection)return;let e=[];for(let s of this.#j){let i=s.serialize(!0);i&&e.push(i)}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 n of e.items)for(let a of this.#p)if(a.isHandlingMimeForPasting(n.type)){a.paste(n,this.currentLayer);return}let s=e.getData("application/pdfjs");if(!s)return;try{s=JSON.parse(s)}catch(n){ne(`paste: "${n.message}".`);return}if(!Array.isArray(s))return;this.unselectAll();let i=this.currentLayer;try{let n=[];for(let o of s){let l=await i.deserialize(o);if(!l)return;n.push(l)}let a=d(()=>{for(let o of n)this.#it(o);this.#nt(n)},"cmd"),r=d(()=>{for(let o of n)o.remove()},"undo");this.addCommands({cmd:a,undo:r,mustExec:!0})}catch(n){ne(`paste: "${n.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),this.#A!==Zt.NONE&&!this.isEditorHandlingKeyboard&&On._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,this.#S&&(this.#S=!1,this.#X("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 i of this.getEditors(t))i.pageIndex=e;let s=this.#a.get(t);s&&(s.pageIndex=e,this.#n.set(e,s),this.#I?s.enable():s.disable())}startUpdatePages(){this.#a=new Map(this.#n),this.#n.clear()}endUpdatePages(){this.#a=null}clonePage(t,e){for(let s of this.getEditors(t)){let i=s.serialize(s.mode!==Zt.HIGHLIGHT);i&&(i.pageIndex=e,i.id=this.getId(),i.isClone=!0,delete i.popupRef,this.#o.setValue(i.id,i))}}findClonesForPage(t){let e=[],{pageIndex:s}=t;for(let[i,n]of this.#o)n.pageIndex===s&&n.isClone&&(this.#o.remove(i),e.push(t.deserialize(n).then((a)=>{a&&(a.isClone=!0,t.addOrRebuild(a))})));return Promise.all(e)}#D(t){Object.entries(t).some(([e,s])=>this.#K[e]!==s)&&(this._eventBus.dispatch("editingstateschanged",{source:this,details:Object.assign(this.#K,t)}),this.#A===Zt.HIGHLIGHT&&t.hasSelectedEditor===!1&&this.#U([[ge.HIGHLIGHT_FREE,!0]]))}#U(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){t?(this.#ct(),this.#ut(),this.#D({isEditing:this.#A!==Zt.NONE,isEmpty:this.#Q(),hasSomethingToUndo:this.#c.hasSomethingToUndo(),hasSomethingToRedo:this.#c.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ht(),this.#dt(),this.#D({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#p){this.#p=t;for(let e of this.#p)this.#U(e.defaultPropertiesToUpdate)}}getId(){return this.#F.id}get currentLayer(){return this.#n.get(this.#g)}getLayer(t){return this.#n.get(t)}get currentPageIndex(){return this.#g}addLayer(t){this.#n.set(t.pageIndex,t),this.#I?t.enable():t.disable()}removeLayer(t){this.#n.delete(t.pageIndex)}async updateMode(t,e=null,s=!1,i=!1,n=!1,a=!1){if(this.#A!==t&&!(this.#L&&(await this.#L.promise,!this.#L))){if(this.#L=Promise.withResolvers(),this.#d?.commitOrRemove(),this.#A===Zt.POPUP&&this.#u?.hideSidebar(),this.#u?.destroyPopup(),this.#A=t,t===Zt.NONE){this.setEditingState(!1),this.#gt();for(let r of this.#i.values())r.hideStandaloneCommentButton();this._editorUndoBar?.hide(),this.toggleComment(null),this.#L.resolve();return}for(let r of this.#i.values())r.addStandaloneCommentButton();t===Zt.SIGNATURE&&await this.#O?.loadSignatures(),s&&Ae.clearPointerType(),this.setEditingState(!0),await this.#mt(),this.unselectAll();for(let r of this.#n.values())r.updateMode(t);if(t===Zt.POPUP){this.#s||=await this.#W.getAnnotationsByType(new Set(this.#p.map((l)=>l._editorType)));let r=new Set,o=[];for(let l of this.#i.values()){let{annotationElementId:c,hasComment:h,deleted:f}=l;c&&r.add(c),h&&!f&&o.push(l.getData())}for(let l of this.#s){let{id:c,popupRef:h,contentsObj:f}=l;h&&f?.str&&!r.has(c)&&!this.#m.has(c)&&o.push(l)}this.#u?.showSidebar(o)}if(!e){i&&this.addNewEditorFromKeyboard(),this.#L.resolve();return}for(let r of this.#i.values())r.uid===e?(this.setSelected(r),a?r.editComment():n?r.enterInEditMode():r.focus()):r.unselect();this.#L.resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t.mode!==this.#A&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...t})}updateParams(t,e){if(this.#p){switch(t){case ge.CREATE:this.currentLayer.addNewEditor(e);return;case ge.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#Y||=new Map).set(t,e),this.showAllEditors("highlight",e);break}if(this.hasSelection)for(let s of this.#j)s.updateParams(t,e);else for(let s of this.#p)s.updateDefaultParams(t,e)}}showAllEditors(t,e,s=!1){for(let i of this.#i.values())i.editorType===t&&i.show(e);(this.#Y?.get(ge.HIGHLIGHT_SHOW_ALL)??!0)!==e&&this.#U([[ge.HIGHLIGHT_SHOW_ALL,e]])}enableWaiting(t=!1){if(this.#E!==t){this.#E=t;for(let e of this.#n.values())t?e.disableClick():e.enableClick(),e.div.classList.toggle("waiting",t)}}async#mt(){if(!this.#I){this.#I=!0;let t=[];for(let e of this.#n.values())t.push(e.enable());await Promise.all(t);for(let e of this.#i.values())e.enable()}}#gt(){if(this.unselectAll(),this.#I){this.#I=!1;for(let t of this.#n.values())t.disable();for(let t of this.#i.values())t.disable()}}*getEditors(t){for(let e of this.#i.values())e.pageIndex===t&&(yield e)}getEditor(t){return this.#i.get(t)}addEditor(t){this.#i.set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(this.#w&&clearTimeout(this.#w),this.#w=setTimeout(()=>{this.focusMainContainer(),this.#w=null},0)),this.#i.delete(t.id),t.annotationElementId&&this.#_?.delete(t.annotationElementId),this.unselect(t),(!t.annotationElementId||!this.#m.has(t.annotationElementId))&&this.#o?.remove(t.id)}addDeletedAnnotationElement(t){this.#m.add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return this.#m.has(t)}removeDeletedAnnotationElement(t){this.#m.delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}#it(t){let e=this.#n.get(t.pageIndex);e?e.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}setActiveEditor(t){this.#e!==t&&(this.#e=t,t&&this.#U(t.propertiesToUpdate))}get#bt(){let t=null;for(t of this.#j);return t}updateUI(t){this.#bt===t&&this.#U(t.propertiesToUpdate)}updateUIForDefaultProperties(t){this.#U(t.defaultPropertiesToUpdate)}toggleSelected(t){if(this.#j.has(t)){this.#j.delete(t),t.unselect(),this.#D({hasSelectedEditor:this.hasSelection});return}this.#j.add(t),t.select(),this.#U(t.propertiesToUpdate),this.#D({hasSelectedEditor:!0})}setSelected(t){this.updateToolbar({mode:t.mode,editId:t.uid}),this.#d?.commitOrRemove();for(let e of this.#j)e!==t&&e.unselect();this.#u?.destroyPopup(),this.#j.clear(),this.#j.add(t),t.select(),this.#U(t.propertiesToUpdate),this.#D({hasSelectedEditor:!0})}isSelected(t){return this.#j.has(t)}get firstSelectedEditor(){return this.#j.values().next().value}unselect(t){t.unselect(),this.#j.delete(t),this.#D({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#j.size!==0}get isEnterHandled(){return this.#j.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#c.undo(),this.#D({hasSomethingToUndo:this.#c.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#Q()}),this._editorUndoBar?.hide()}redo(){this.#c.redo(),this.#D({hasSomethingToUndo:!0,hasSomethingToRedo:this.#c.hasSomethingToRedo(),isEmpty:this.#Q()})}addCommands(t){this.#c.add(t),this.#D({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#Q()})}cleanUndoStack(t){this.#c.cleanType(t)}#Q(){if(this.#i.size===0)return!0;if(this.#i.size===1)for(let t of this.#i.values())return t.isEmpty();return!1}delete(){this.commitOrRemove();let t=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!t)return;let e=t?[t]:[...this.#j],s=d(()=>{this._editorUndoBar?.show(i,e.length===1?e[0].editorType:e.length);for(let n of e)n.remove()},"cmd"),i=d(()=>{for(let n of e)this.#it(n)},"undo");this.addCommands({cmd:s,undo:i,mustExec:!0})}commitOrRemove(){this.#e?.commitOrRemove()}hasSomethingToControl(){return this.#e||this.hasSelection}#nt(t){for(let e of this.#j)e.unselect();this.#j.clear();for(let e of t)e.isEmpty()||(this.#j.add(e),e.select());this.#D({hasSelectedEditor:this.hasSelection})}selectAll(){for(let t of this.#j)t.commit();this.#nt(this.#i.values())}unselectAll(){if(!(this.#e&&(this.#e.commitOrRemove(),this.#A!==Zt.NONE))&&!this.#d?.commitOrRemove()&&(this.#u?.destroyPopup(),!!this.hasSelection)){for(let t of this.#j)t.unselect();this.#j.clear(),this.#D({hasSelectedEditor:!1})}}translateSelectedEditors(t,e,s=!1){if(s||this.commitOrRemove(),!this.hasSelection)return;this.#N[0]+=t,this.#N[1]+=e;let[i,n]=this.#N,a=[...this.#j],r=1000;this.#$&&clearTimeout(this.#$),this.#$=setTimeout(()=>{this.#$=null,this.#N[0]=this.#N[1]=0,this.addCommands({cmd:d(()=>{for(let o of a)this.#i.has(o.id)&&(o.translateInPage(i,n),o.translationDone())},"cmd"),undo:d(()=>{for(let o of a)this.#i.has(o.id)&&(o.translateInPage(-i,-n),o.translationDone())},"undo"),mustExec:!1})},r);for(let o of a)o.translateInPage(t,e),o.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#f=new Map;for(let t of this.#j)this.#f.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#f)return!1;this.disableUserSelect(!1);let t=this.#f;this.#f=null;let e=!1;for(let[{x:i,y:n,pageIndex:a},r]of t)r.newX=i,r.newY=n,r.newPageIndex=a,e||=i!==r.savedX||n!==r.savedY||a!==r.savedPageIndex;if(!e)return!1;let s=d((i,n,a,r)=>{if(this.#i.has(i.id)){let o=this.#n.get(r);o?i._setParentAndPosition(o,n,a):(i.pageIndex=r,i.x=n,i.y=a)}},"move");return this.addCommands({cmd:d(()=>{for(let[i,{newX:n,newY:a,newPageIndex:r}]of t)s(i,n,a,r)},"cmd"),undo:d(()=>{for(let[i,{savedX:n,savedY:a,savedPageIndex:r}]of t)s(i,n,a,r)},"undo"),mustExec:!0}),!0}dragSelectedEditors(t,e){if(this.#f)for(let s of this.#f.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()||this.#j.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return this.#e===t}getActive(){return this.#e}getMode(){return this.#A}isEditingMode(){return this.#A!==Zt.NONE}get imageManager(){return se(this,"imageManager",new m0)}getSelectionBoxes(t){if(!t)return null;let e=document.getSelection();for(let l=0,c=e.rangeCount;l<c;l++)if(!t.contains(e.getRangeAt(l).commonAncestorContainer))return null;let{x:s,y:i,width:n,height:a}=t.getBoundingClientRect(),r;switch(t.getAttribute("data-main-rotation")){case"90":r=d((l,c,h,f)=>({x:(c-i)/a,y:1-(l+h-s)/n,width:f/a,height:h/n}),"rotator");break;case"180":r=d((l,c,h,f)=>({x:1-(l+h-s)/n,y:1-(c+f-i)/a,width:h/n,height:f/a}),"rotator");break;case"270":r=d((l,c,h,f)=>({x:1-(c+f-i)/a,y:(l-s)/n,width:f/a,height:h/n}),"rotator");break;default:r=d((l,c,h,f)=>({x:(l-s)/n,y:(c-i)/a,width:h/n,height:f/a}),"rotator");break}let o=[];for(let l=0,c=e.rangeCount;l<c;l++){let h=e.getRangeAt(l);if(!h.collapsed)for(let{x:f,y:u,width:p,height:m}of h.getClientRects())p===0||m===0||o.push(r(f,u,p,m))}return o.length===0?null:o}addChangedExistingAnnotation({annotationElementId:t,id:e}){(this.#l||=new Map).set(t,e)}removeChangedExistingAnnotation({annotationElementId:t}){this.#l?.delete(t)}renderAnnotationElement(t){let e=this.#l?.get(t.data.id);if(!e)return;let s=this.#o.getRawValue(e);s&&(this.#A===Zt.NONE&&!s.hasBeenModified||s.renderAnnotationElement(t))}setMissingCanvas(t,e,s){let i=this.#_?.get(t);i&&(i.setCanvas(e,s),this.#_.delete(t))}addMissingCanvas(t,e){(this.#_||=new Map).set(t,e)}};tn=class tn{static{d(this,"AltText")}#t=null;#e=!1;#s=null;#i=null;#n=null;#a=null;#r=!1;#o=null;#l=null;#c=null;#u=null;#h=!1;static#d=null;static _l10n=null;constructor(t){this.#l=t,this.#h=t._uiManager.useNewAltTextFlow,tn.#d||=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){tn._l10n??=t}async render(){let t=this.#s=document.createElement("button");t.className="altText",t.tabIndex="0";let e=this.#i=document.createElement("span");t.append(e),this.#h?(t.classList.add("new"),t.setAttribute("data-l10n-id",tn.#d.missing),e.setAttribute("data-l10n-id",tn.#d["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=this.#l._uiManager._signal;t.addEventListener("contextmenu",oi,{signal:s}),t.addEventListener("pointerdown",(n)=>n.stopPropagation(),{signal:s});let i=d((n)=>{n.preventDefault(),this.#l._uiManager.editAltText(this.#l),this.#h&&this.#l._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#g}})},"onClick");return t.addEventListener("click",i,{capture:!0,signal:s}),t.addEventListener("keydown",(n)=>{n.target===t&&n.key==="Enter"&&(this.#r=!0,i(n))},{signal:s}),await this.#m(),t}get#g(){return this.#t&&"added"||this.#t===null&&this.guessedText&&"review"||"missing"}finish(){this.#s&&(this.#s.focus({focusVisible:this.#r}),this.#r=!1)}isEmpty(){return this.#h?this.#t===null:!this.#t&&!this.#e}hasData(){return this.#h?this.#t!==null||!!this.#c:this.isEmpty()}get guessedText(){return this.#c}async setGuessedText(t){this.#t===null&&(this.#c=t,this.#u=await tn._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t}),this.#m())}toggleAltTextBadge(t=!1){if(!this.#h||this.#t){this.#o?.remove(),this.#o=null;return}if(!this.#o){let e=this.#o=document.createElement("div");e.className="noAltTextBadge",this.#l.div.append(e)}this.#o.classList.toggle("hidden",!t)}serialize(t){let e=this.#t;return!t&&this.#c===e&&(e=this.#u),{altText:e,decorative:this.#e,guessedText:this.#c,textWithDisclaimer:this.#u}}get data(){return{altText:this.#t,decorative:this.#e}}set data({altText:t,decorative:e,guessedText:s,textWithDisclaimer:i,cancel:n=!1}){s&&(this.#c=s,this.#u=i),!(this.#t===t&&this.#e===e)&&(n||(this.#t=t,this.#e=e),this.#m())}toggle(t=!1){this.#s&&(!t&&this.#a&&(clearTimeout(this.#a),this.#a=null),this.#s.disabled=!t)}shown(){this.#l._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#g}})}destroy(){this.#s?.remove(),this.#s=null,this.#i=null,this.#n=null,this.#o?.remove(),this.#o=null}async#m(){let t=this.#s;if(!t)return;if(this.#h){if(t.classList.toggle("done",!!this.#t),t.setAttribute("data-l10n-id",tn.#d[this.#g]),this.#i?.setAttribute("data-l10n-id",tn.#d[`${this.#g}-label`]),!this.#t){this.#n?.remove();return}}else{if(!this.#t&&!this.#e){t.classList.remove("done"),this.#n?.remove();return}t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let e=this.#n;if(!e){this.#n=e=document.createElement("span"),e.className="tooltip",e.setAttribute("role","tooltip"),e.id=`alt-text-tooltip-${this.#l.id}`;let s=100,i=this.#l._uiManager._signal;i.addEventListener("abort",()=>{clearTimeout(this.#a),this.#a=null},{once:!0}),t.addEventListener("mouseenter",()=>{this.#a=setTimeout(()=>{this.#a=null,this.#n.classList.add("show"),this.#l._reportTelemetry({action:"alt_text_tooltip"})},s)},{signal:i}),t.addEventListener("mouseleave",()=>{this.#a&&(clearTimeout(this.#a),this.#a=null),this.#n?.classList.remove("show")},{signal:i})}this.#e?e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(e.removeAttribute("data-l10n-id"),e.textContent=this.#t),e.parentNode||t.append(e),this.#l.getElementForAltText()?.setAttribute("aria-describedby",e.id)}};Io=class Io{static{d(this,"Comment")}#t=null;#e=null;#s=!1;#i=null;#n=null;#a=null;#r=null;#o=null;#l=!1;#c=null;constructor(t){this.#i=t}renderForToolbar(){let t=this.#e=document.createElement("button");return t.className="comment",this.#u(t,!1)}renderForStandalone(){let t=this.#t=document.createElement("button");t.className="annotationCommentButton";let e=this.#i.commentButtonPosition;if(e){let{style:s}=t;s.insetInlineEnd=`calc(${100*(this.#i._uiManager.direction==="ltr"?1-e[0]:e[0])}% - var(--comment-button-dim))`,s.top=`calc(${100*e[1]}% - var(--comment-button-dim))`;let i=this.#i.commentButtonColor;i&&(s.backgroundColor=i)}return this.#u(t,!0)}focusButton(){setTimeout(()=>{(this.#t??this.#e)?.focus()},0)}onUpdatedColor(){if(!this.#t)return;let t=this.#i.commentButtonColor;t&&(this.#t.style.backgroundColor=t),this.#i._uiManager.updatePopupColor(this.#i)}get commentButtonWidth(){return(this.#t?.getBoundingClientRect().width??0)/this.#i.parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(this.#c)return this.#c;if(!this.#t)return null;let{x:t,y:e,height:s}=this.#t.getBoundingClientRect(),{x:i,y:n,width:a,height:r}=this.#i.parent.boundingClientRect;return[(t-i)/a,(e+s-n)/r]}set commentPopupPositionInLayer(t){this.#c=t}hasDefaultPopupPosition(){return this.#c===null}removeStandaloneCommentButton(){this.#t?.remove(),this.#t=null}removeToolbarCommentButton(){this.#e?.remove(),this.#e=null}setCommentButtonStates({selected:t,hasPopup:e}){this.#t&&(this.#t.classList.toggle("selected",t),this.#t.ariaExpanded=e)}#u(t,e){if(!this.#i._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=[this.#i._uiManager.getCommentDialogElement()],t.setAttribute("data-l10n-id","pdfjs-editor-add-comment-button"));let s=this.#i._uiManager._signal;if(!(s instanceof AbortSignal)||s.aborted)return t;t.addEventListener("contextmenu",oi,{signal:s}),e&&(t.addEventListener("focusin",(n)=>{this.#i._focusEventsAllowed=!1,He(n)},{capture:!0,signal:s}),t.addEventListener("focusout",(n)=>{this.#i._focusEventsAllowed=!0,He(n)},{capture:!0,signal:s})),t.addEventListener("pointerdown",(n)=>n.stopPropagation(),{signal:s});let i=d((n)=>{n.preventDefault(),t===this.#e?this.edit():this.#i.toggleComment(!0)},"onClick");return t.addEventListener("click",i,{capture:!0,signal:s}),t.addEventListener("keydown",(n)=>{n.target===t&&n.key==="Enter"&&(this.#s=!0,i(n))},{signal:s}),t.addEventListener("pointerenter",()=>{this.#i.toggleComment(!1,!0)},{signal:s}),t.addEventListener("pointerleave",()=>{this.#i.toggleComment(!1,!1)},{signal:s}),t}edit(t){let e=this.commentPopupPositionInLayer,s,i;if(e)[s,i]=e;else{[s,i]=this.#i.commentButtonPosition;let{width:c,height:h,x:f,y:u}=this.#i;s=f+s*c,i=u+i*h}let n=this.#i.parent.boundingClientRect,{x:a,y:r,width:o,height:l}=n;this.#i._uiManager.editComment(this.#i,a+s*o,r+i*l,{...t,parentDimensions:n})}finish(){this.#e&&(this.#e.focus({focusVisible:this.#s}),this.#s=!1)}isDeleted(){return this.#l||this.#r===""}isEmpty(){return this.#r===null}hasBeenEdited(){return this.isDeleted()||this.#r!==this.#n}serialize(){return this.data}get data(){return{text:this.#r,richText:this.#a,date:this.#o,deleted:this.isDeleted()}}set data(t){if(t!==this.#r&&(this.#a=null),t===null){this.#r="",this.#l=!0;return}this.#r=t,this.#o=new Date,this.#l=!1}restoreData({text:t,richText:e,date:s}){this.#r=t,this.#a=e,this.#o=s,this.#l=!1}setInitialText(t,e=null){this.#n=t,this.data=t,this.#o=null,this.#a=e}shown(){}destroy(){this.#e?.remove(),this.#e=null,this.#t?.remove(),this.#t=null,this.#r="",this.#a=null,this.#o=null,this.#i=null,this.#s=!1,this.#l=!1}};Wl=class Wl{static{d(this,"TouchManager")}#t;#e=!1;#s=null;#i;#n;#a;#r;#o=null;#l;#c=null;#u;#h=null;constructor({container:t,isPinchingDisabled:e=null,isPinchingStopped:s=null,onPinchStart:i=null,onPinching:n=null,onPinchEnd:a=null,signal:r}){this.#t=t,this.#s=s,this.#i=e,this.#n=i,this.#a=n,this.#r=a,this.#u=new AbortController,this.#l=AbortSignal.any([r,this.#u.signal]),t.addEventListener("touchstart",this.#d.bind(this),{passive:!1,signal:this.#l})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/Ki.pixelRatio}#d(t){if(this.#i?.())return;if(t.touches.length===1){if(this.#o)return;let i=this.#o=new AbortController,n=AbortSignal.any([this.#l,i.signal]),a=this.#t,r={capture:!0,signal:n,passive:!1},o=d((l)=>{l.pointerType==="touch"&&(this.#o?.abort(),this.#o=null)},"cancelPointerDown");a.addEventListener("pointerdown",(l)=>{l.pointerType==="touch"&&(He(l),o(l))},r),a.addEventListener("pointerup",o,r),a.addEventListener("pointercancel",o,r);return}if(!this.#h){this.#h=new AbortController;let i=AbortSignal.any([this.#l,this.#h.signal]),n=this.#t,a={signal:i,capture:!1,passive:!1};n.addEventListener("touchmove",this.#g.bind(this),a);let r=this.#m.bind(this);n.addEventListener("touchend",r,a),n.addEventListener("touchcancel",r,a),a.capture=!0,n.addEventListener("pointerdown",He,a),n.addEventListener("pointermove",He,a),n.addEventListener("pointercancel",He,a),n.addEventListener("pointerup",He,a),this.#n?.()}if(He(t),t.touches.length!==2||this.#s?.()){this.#c=null;return}let[e,s]=t.touches;e.identifier>s.identifier&&([e,s]=[s,e]),this.#c={touch0X:e.screenX,touch0Y:e.screenY,touch1X:s.screenX,touch1Y:s.screenY}}#g(t){if(!this.#c||t.touches.length!==2)return;He(t);let[e,s]=t.touches;e.identifier>s.identifier&&([e,s]=[s,e]);let{screenX:i,screenY:n}=e,{screenX:a,screenY:r}=s,o=this.#c,{touch0X:l,touch0Y:c,touch1X:h,touch1Y:f}=o,u=h-l,p=f-c,m=a-i,g=r-n,w=Math.hypot(m,g)||1,b=Math.hypot(u,p)||1;if(!this.#e&&Math.abs(b-w)<=Wl.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(o.touch0X=i,o.touch0Y=n,o.touch1X=a,o.touch1Y=r,!this.#e){this.#e=!0;return}let j=[(i+a)/2,(n+r)/2];this.#a?.(j,b,w)}#m(t){t.touches.length>=2||(this.#h&&(this.#h.abort(),this.#h=null,this.#r?.()),this.#c&&(He(t),this.#c=null,this.#e=!1))}destroy(){this.#u?.abort(),this.#u=null,this.#o?.abort(),this.#o=null}};Ut=class Ut{static{d(this,"AnnotationEditor")}#t=null;#e=null;#s=null;#i=null;#n=null;#a=!1;#r=null;#o="";#l=null;#c=null;#u=null;#h=null;#d=null;#g="";#m=!1;#f=null;#p=!1;#b=!1;#v=!1;#y=null;#q=0;#C=0;#w=null;#x=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#k=!1;#S=Ut._zIndex++;static _borderLineWidth=-1;static _colorManager=new g0;static _zIndex=1;static _telemetryTimeout=1000;static get _resizerKeyboardManager(){let t=Ut.prototype._resizeWithKeyboard,e=On.TRANSLATE_SMALL,s=On.TRANSLATE_BIG;return se(this,"_resizerKeyboardManager",new Xr([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-e,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-s,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[e,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[s,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-e]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-s]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,e]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,s]}],[["Escape","mac+Escape"],Ut.prototype._stopResizingWithKeyboard]]))}constructor(t){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:i,pageX:n,pageY:a}}=this.parent.viewport;this.rotation=e,this.pageRotation=(360+e-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[s,i],this.pageTranslation=[n,a];let[r,o]=this.parentDimensions;this.x=t.x/r,this.y=t.y/o,this.isAttachedToDOM=!1,this.deleted=!1}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 se(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){let e=new o8({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(Ut._l10n??=t,Ut._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"}),Ut._borderLineWidth!==-1)return;let s=getComputedStyle(document.documentElement);Ut._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,e){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,e){Se("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#k}set _isDraggable(t){this.#k=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=this.#S}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):(this.#N(),this.#h?.remove(),this.#h=null),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#m?this.#m=!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,i){let[n,a]=this.parentDimensions;[s,i]=this.screenToPageTranslation(s,i),this.x=(t+s)/n,this.y=(e+i)/a,this.fixAndSetPosition()}_moveAfterPaste(t,e){if(this.isClone){delete this.isClone;return}let[s,i]=this.parentDimensions;this.setAt(t*s,e*i,this.width*s,this.height*i),this._onTranslated()}#T([t,e],s,i){[s,i]=this.screenToPageTranslation(s,i),this.x+=s/t,this.y+=i/e,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(t,e){this.#T(this.parentDimensions,t,e)}translateInPage(t,e){this.#f||=[this.x,this.y,this.width,this.height],this.#T(this.pageDimensions,t,e),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(t,e){this.#f||=[this.x,this.y,this.width,this.height];let{div:s,parentDimensions:[i,n]}=this;if(this.x+=t/i,this.y+=e/n,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:h,y:f}=this.div.getBoundingClientRect();this.parent.findNewParent(this,h,f)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:a,y:r}=this,[o,l]=this.getBaseTranslation();a+=o,r+=l;let{style:c}=s;c.left=`${(100*a).toFixed(2)}%`,c.top=`${(100*r).toFixed(2)}%`,this._onTranslating(a,r),s.scrollIntoView({block:"nearest"})}_onTranslating(t,e){}_onTranslated(t,e){}get _hasBeenMoved(){return!!this.#f&&(this.#f[0]!==this.x||this.#f[1]!==this.y)}get _hasBeenResized(){return!!this.#f&&(this.#f[2]!==this.width||this.#f[3]!==this.height)}getBaseTranslation(){let[t,e]=this.parentDimensions,{_borderLineWidth:s}=Ut,i=s/t,n=s/e;switch(this.rotation){case 90:return[-i,n];case 180:return[i,n];case 270:return[i,-n];default:return[-i,-n]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){let{div:{style:e},pageDimensions:[s,i]}=this,{x:n,y:a,width:r,height:o}=this;if(r*=s,o*=i,n*=s,a*=i,this._mustFixPosition)switch(t){case 0:n=rs(n,0,s-r),a=rs(a,0,i-o);break;case 90:n=rs(n,0,s-o),a=rs(a,r,i);break;case 180:n=rs(n,r,s),a=rs(a,o,i);break;case 270:n=rs(n,o,s),a=rs(a,0,i-r);break}this.x=n/=s,this.y=a/=i;let[l,c]=this.getBaseTranslation();n+=l,a+=c,e.left=`${(100*n).toFixed(2)}%`,e.top=`${(100*a).toFixed(2)}%`,this.moveInDOM()}static#F(t,e,s){switch(s){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}}screenToPageTranslation(t,e){return Ut.#F(t,e,this.parentRotation)}pageTranslationToScreen(t,e){return Ut.#F(t,e,360-this.parentRotation)}#I(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]}}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]}#B(){if(this.#l)return;this.#l=document.createElement("div"),this.#l.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 i=document.createElement("div");this.#l.append(i),i.classList.add("resizer",s),i.setAttribute("data-resizer-name",s),i.addEventListener("pointerdown",this.#E.bind(this,s),{signal:e}),i.addEventListener("contextmenu",oi,{signal:e}),i.tabIndex=-1}this.div.prepend(this.#l)}#E(t,e){e.preventDefault();let{isMac:s}=es.platform;if(e.button!==0||e.ctrlKey&&s)return;this.#s?.toggle(!1);let i=this._isDraggable;this._isDraggable=!1,this.#c=[e.screenX,e.screenY];let n=new AbortController,a=this._uiManager.combinedSignal(n);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#H.bind(this,t),{passive:!0,capture:!0,signal:a}),window.addEventListener("touchmove",He,{passive:!1,signal:a}),window.addEventListener("contextmenu",oi,{signal:a}),this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let r=this.parent.div.style.cursor,o=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;let l=d(()=>{n.abort(),this.parent.togglePointerEvents(!0),this.#s?.toggle(!0),this._isDraggable=i,this.parent.div.style.cursor=r,this.div.style.cursor=o,this.#P()},"pointerUpCallback");window.addEventListener("pointerup",l,{signal:a}),window.addEventListener("blur",l,{signal:a})}#M(t,e,s,i){this.width=s,this.height=i,this.x=t,this.y=e,this.setDims(),this.fixAndSetPosition(),this._onResized()}_onResized(){}#P(){if(!this.#u)return;let{savedX:t,savedY:e,savedWidth:s,savedHeight:i}=this.#u;this.#u=null;let n=this.x,a=this.y,r=this.width,o=this.height;n===t&&a===e&&r===s&&o===i||this.addCommands({cmd:this.#M.bind(this,n,a,r,o),undo:this.#M.bind(this,t,e,s,i),mustExec:!0})}static _round(t){return Math.round(t*1e4)/1e4}#H(t,e){let[s,i]=this.parentDimensions,n=this.x,a=this.y,r=this.width,o=this.height,l=Ut.MIN_SIZE/s,c=Ut.MIN_SIZE/i,h=this.#I(this.rotation),f=d((W,H)=>[h[0]*W+h[2]*H,h[1]*W+h[3]*H],"transf"),u=this.#I(360-this.rotation),p=d((W,H)=>[u[0]*W+u[2]*H,u[1]*W+u[3]*H],"invTransf"),m,g,w=!1,b=!1;switch(t){case"topLeft":w=!0,m=d((W,H)=>[0,0],"getPoint"),g=d((W,H)=>[W,H],"getOpposite");break;case"topMiddle":m=d((W,H)=>[W/2,0],"getPoint"),g=d((W,H)=>[W/2,H],"getOpposite");break;case"topRight":w=!0,m=d((W,H)=>[W,0],"getPoint"),g=d((W,H)=>[0,H],"getOpposite");break;case"middleRight":b=!0,m=d((W,H)=>[W,H/2],"getPoint"),g=d((W,H)=>[0,H/2],"getOpposite");break;case"bottomRight":w=!0,m=d((W,H)=>[W,H],"getPoint"),g=d((W,H)=>[0,0],"getOpposite");break;case"bottomMiddle":m=d((W,H)=>[W/2,H],"getPoint"),g=d((W,H)=>[W/2,0],"getOpposite");break;case"bottomLeft":w=!0,m=d((W,H)=>[0,H],"getPoint"),g=d((W,H)=>[W,0],"getOpposite");break;case"middleLeft":b=!0,m=d((W,H)=>[0,H/2],"getPoint"),g=d((W,H)=>[W,H/2],"getOpposite");break}let j=m(r,o),v=g(r,o),q=f(...v),x=Ut._round(n+q[0]),k=Ut._round(a+q[1]),A=1,S=1,I,E;if(e.fromKeyboard)({deltaX:I,deltaY:E}=e);else{let{screenX:W,screenY:H}=e,[L,rt]=this.#c;[I,E]=this.screenToPageTranslation(W-L,H-rt),this.#c[0]=W,this.#c[1]=H}if([I,E]=p(I/s,E/i),w){let W=Math.hypot(r,o);A=S=Math.max(Math.min(Math.hypot(v[0]-j[0]-I,v[1]-j[1]-E)/W,1/r,1/o),l/r,c/o)}else b?A=rs(Math.abs(v[0]-j[0]-I),l,1)/r:S=rs(Math.abs(v[1]-j[1]-E),c,1)/o;let D=Ut._round(r*A),O=Ut._round(o*S);q=f(...g(D,O));let $=x-q[0],it=k-q[1];this.#f||=[this.x,this.y,this.width,this.height],this.width=D,this.height=O,this.x=$,this.y=it,this.setDims(),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#s?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||this.#b)return this._editToolbar;this._editToolbar=new Uo(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,this.#s?.destroy()}addContainer(t){let e=this._editToolbar?.div;e?e.before(t):this.div.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return this.#s||(tn.initialize(Ut._l10n),this.#s=new tn(this),this.#t&&(this.#s.data=this.#t,this.#t=null)),this.#s}get altTextData(){return this.#s?.data}set altTextData(t){this.#s&&(this.#s.data=t)}get guessedAltText(){return this.#s?.guessedText}async setGuessedAltText(t){await this.#s?.setGuessedText(t)}serializeAltText(t){return this.#s?.serialize(t)}hasAltText(){return!!this.#s&&!this.#s.isEmpty()}hasAltTextData(){return this.#s?.hasData()??!1}focusCommentButton(){this.#i?.focusButton()}addCommentButton(){return this.canAddComment?this.#i||=new Io(this):null}addStandaloneCommentButton(){if(this._uiManager.hasCommentManager()){if(this.#n){this._uiManager.isEditingMode()&&this.#n.classList.remove("hidden");return}this.hasComment&&(this.#n=this.#i.renderForStandalone(),this.div.append(this.#n))}}removeStandaloneCommentButton(){this.#i.removeStandaloneCommentButton(),this.#n=null}hideStandaloneCommentButton(){this.#n?.classList.add("hidden")}get comment(){if(!this.#i)return null;let{data:{richText:t,text:e,date:s,deleted:i}}=this.#i;return{text:e,richText:t,date:s,deleted:i,color:this.getNonHCMColor(),opacity:this.opacity??1}}set comment(t){this.#i||=new Io(this),typeof t=="object"&&t!==null?this.#i.restoreData(t):this.#i.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||(this.#i||=new Io(this),this.#i.setInitialText(t,s),!this.annotationElementId))return;let i=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);i&&this.updateFromAnnotationLayer(i)}get hasEditedComment(){return this.#i?.hasBeenEdited()}get hasDeletedComment(){return this.#i?.isDeleted()}get hasComment(){return!!this.#i&&!this.#i.isEmpty()&&!this.#i.isDeleted()}async editComment(t){this.#i||=new Io(this),this.#i.edit(t)}toggleComment(t,e=void 0){this.hasComment&&this._uiManager.toggleComment(this,t,e)}setSelectedCommentButton(t){this.#i.setSelectedButton(t)}addComment(t){if(this.hasEditedComment){let[,,,e]=t.rect,[s]=this.pageDimensions,[i]=this.pageTranslation,n=i+s+1,a=e-100,r=n+180;t.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[n,a,r,e]}}}updateFromAnnotationLayer({popup:{contents:t,deleted:e}}){this.#i.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=this.#a?-1:0,t.setAttribute("role","application"),this.defaultL10nId&&t.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||t.classList.add("hidden"),this.setInForeground(),this.#O();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[i,n]=this.getInitialTranslation();return this.translate(i,n),p0(this,t,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#x||=new Wl({container:t,isPinchingDisabled:d(()=>!this.isSelected,"isPinchingDisabled"),onPinchStart:this.#_.bind(this),onPinching:this.#z.bind(this),onPinchEnd:this.#A.bind(this),signal:this._uiManager._signal})),this.addStandaloneCommentButton(),this._uiManager._editorUndoBar?.hide(),t}#_(){this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#s?.toggle(!1),this.parent.togglePointerEvents(!1)}#z(t,e,s){let i=0.7*(s/e)+1-0.7;if(i===1)return;let n=this.#I(this.rotation),a=d((q,x)=>[n[0]*q+n[2]*x,n[1]*q+n[3]*x],"transf"),[r,o]=this.parentDimensions,l=this.x,c=this.y,h=this.width,f=this.height,u=Ut.MIN_SIZE/r,p=Ut.MIN_SIZE/o;i=Math.max(Math.min(i,1/h,1/f),u/h,p/f);let m=Ut._round(h*i),g=Ut._round(f*i);if(m===h&&g===f)return;this.#f||=[l,c,h,f];let w=a(h/2,f/2),b=Ut._round(l+w[0]),j=Ut._round(c+w[1]),v=a(m/2,g/2);this.x=b-v[0],this.y=j-v[1],this.width=m,this.height=g,this.setDims(),this.fixAndSetPosition(),this._onResizing()}#A(){this.#s?.toggle(!0),this.parent.togglePointerEvents(!0),this.#P()}pointerdown(t){let{isMac:e}=es.platform;if(t.button!==0||t.ctrlKey&&e){t.preventDefault();return}if(this.#m=!0,this._isDraggable){this.#R(t);return}this.#j(t)}#j(t){let{isMac:e}=es.platform;t.ctrlKey&&!e||t.shiftKey||t.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this)}#R(t){let{isSelected:e}=this;this._uiManager.setUpDragSession();let s=!1,i=new AbortController,n=this._uiManager.combinedSignal(i),a={capture:!0,passive:!1,signal:n},r=d((l)=>{i.abort(),this.#r=null,this.#m=!1,this._uiManager.endDragSession()||this.#j(l),s&&this._onStopDragging()},"cancelDrag");e&&(this.#q=t.clientX,this.#C=t.clientY,this.#r=t.pointerId,this.#o=t.pointerType,window.addEventListener("pointermove",(l)=>{s||(s=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());let{clientX:c,clientY:h,pointerId:f}=l;if(f!==this.#r){He(l);return}let[u,p]=this.screenToPageTranslation(c-this.#q,h-this.#C);this.#q=c,this.#C=h,this._uiManager.dragSelectedEditors(u,p)},a),window.addEventListener("touchmove",He,a),window.addEventListener("pointerdown",(l)=>{l.pointerType===this.#o&&(this.#x||l.isPrimary)&&r(l),He(l)},a));let o=d((l)=>{if(!this.#r||this.#r===l.pointerId){r(l);return}He(l)},"pointerUpCallback");window.addEventListener("pointerup",o,{signal:n}),window.addEventListener("blur",o,{signal:n})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#y&&clearTimeout(this.#y),this.#y=setTimeout(()=>{this.#y=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 i=this.parentScale,[n,a]=this.pageDimensions,[r,o]=this.pageTranslation,l=t/i,c=e/i,h=this.x*n,f=this.y*a,u=this.width*n,p=this.height*a;switch(s){case 0:return[h+l+r,a-f-c-p+o,h+l+u+r,a-f-c+o];case 90:return[h+c+r,a-f+l+o,h+c+p+r,a-f+l+u+o];case 180:return[h-l-u+r,a-f+c+o,h-l+r,a-f+c+p+o];case 270:return[h-c-p+r,a-f-l-u+o,h-c+r,a-f-l+o];default:throw Error("Invalid rotation")}}getRectInCurrentCoords(t,e){let[s,i,n,a]=t,r=n-s,o=a-i;switch(this.rotation){case 0:return[s,e-a,r,o];case 90:return[s,e-i,o,r];case 180:return[n,e-i,r,o];case 270:return[n,e-a,o,r];default:throw Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&Ut._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){this.#i?.onUpdatedColor()}getData(){let{comment:{text:t,color:e,date:s,opacity:i,deleted:n,richText:a},uid:r,pageIndex:o,creationDate:l,modificationDate:c}=this;return{id:r,pageIndex:o,rect:this.getPDFRect(),richText:a,contentsObj:{str:t},creationDate:l,modificationDate:s||c,popupRef:!n,color:e,opacity:i}}onceAdded(t){}isEmpty(){return!1}enableEditMode(){return this.isInEditMode()?!1:(this.parent.setEditingState(!1),this.#b=!0,!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),this.#b=!1,!0):!1}isInEditMode(){return this.#b}shouldGetKeyboardEvents(){return this.#v}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){let{top:t,left:e,bottom:s,right:i}=this.getClientDimensions(),{innerHeight:n,innerWidth:a}=window;return e<a&&i>0&&t<n&&s>0}#O(){if(this.#d||!this.div)return;this.#d=new AbortController;let t=this._uiManager.combinedSignal(this.#d);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})}rebuild(){this.#O()}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 i=new this.prototype.constructor({parent:e,id:s.getId(),uiManager:s,annotationElementId:t.annotationElementId,creationDate:t.creationDate,modificationDate:t.modificationDate});i.rotation=t.rotation,i.#t=t.accessibilityData,i._isCopy=t.isCopy||!1;let[n,a]=i.pageDimensions,[r,o,l,c]=i.getRectInCurrentCoords(t.rect,a);return i.x=r/n,i.y=o/a,i.width=l/n,i.height=c/a,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#d?.abort(),this.#d=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.hideCommentPopup(),this.#y&&(clearTimeout(this.#y),this.#y=null),this.#N(),this.removeEditToolbar(),this.#w){for(let t of this.#w.values())clearTimeout(t);this.#w=null}this.parent=null,this.#x?.destroy(),this.#x=null,this.#h?.remove(),this.#h=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#B(),this.#l.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,i,n,a]=this.getPDFRect();return[Ut._round(s+(n-s)*t),Ut._round(i+(a-i)*(1-e))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return this.#i.commentPopupPositionInLayer}set commentPopupPosition(t){this.#i.commentPopupPositionInLayer=t}hasDefaultPopupPosition(){return this.#i.hasDefaultPopupPosition()}get commentButtonWidth(){return this.#i.commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(t){this.#i?.setCommentButtonStates(t)}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),this.#u={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let e=this.#l.children;if(!this.#e){this.#e=Array.from(e);let a=this.#G.bind(this),r=this.#Y.bind(this),o=this._uiManager._signal;for(let l of this.#e){let c=l.getAttribute("data-resizer-name");l.setAttribute("role","spinbutton"),l.addEventListener("keydown",a,{signal:o}),l.addEventListener("blur",r,{signal:o}),l.addEventListener("focus",this.#W.bind(this,c),{signal:o}),l.setAttribute("data-l10n-id",Ut._l10nResizer[c])}}let s=this.#e[0],i=0;for(let a of e){if(a===s)break;i++}let n=(360-this.rotation+this.parentRotation)%360/90*(this.#e.length/4);if(n!==i){if(n<i)for(let r=0;r<i-n;r++)this.#l.append(this.#l.firstElementChild);else if(n>i)for(let r=0;r<n-i;r++)this.#l.firstElementChild.before(this.#l.lastElementChild);let a=0;for(let r of e){let o=this.#e[a++].getAttribute("data-resizer-name");r.setAttribute("data-l10n-id",Ut._l10nResizer[o])}}this.#K(0),this.#v=!0,this.#l.firstElementChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#G(t){Ut._resizerKeyboardManager.exec(this,t)}#Y(t){this.#v&&t.relatedTarget?.parentNode!==this.#l&&this.#N()}#W(t){this.#g=this.#v?t:""}#K(t){if(this.#e)for(let e of this.#e)e.tabIndex=t}_resizeWithKeyboard(t,e){this.#v&&this.#H(this.#g,{deltaX:t,deltaY:e,fromKeyboard:!0})}#N(){this.#v=!1,this.#K(-1),this.#P()}_stopResizingWithKeyboard(){this.#N(),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(),this.#s?.toggleAltTextBadge(!1)}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>this.div?.focus({preventScroll:!0}),0)}unselect(){this.isSelected&&(this.isSelected=!1,this.#l?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#s?.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 this.#p}set isEditing(t){this.#p=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){this.#w||=new Map;let{action:s}=t,i=this.#w.get(s);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(t),this.#w.delete(s),this.#w.size===0&&(this.#w=null)},Ut._telemetryTimeout),this.#w.set(s,i);return}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),this.#a=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#a=!0}updateFakeAnnotationElement(t){if(!this.#h&&!this.deleted){this.#h=t.addFakeAnnotation(this);return}if(this.deleted){this.#h.remove(),this.#h=null;return}(this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&this.#h.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()}};o8=class o8 extends Ut{static{d(this,"FakeEditor")}constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}};b0=class b0{static{d(this,"MurmurHash3_64")}constructor(t){this.h1=t?t&4294967295:Lp,this.h2=t?t&4294967295:Lp}update(t){let e,s;if(typeof t=="string"){e=new Uint8Array(t.length*2),s=0;for(let m=0,g=t.length;m<g;m++){let w=t.charCodeAt(m);w<=255?e[s++]=w:(e[s++]=w>>>8,e[s++]=w&255)}}else if(ArrayBuffer.isView(t))e=t.slice(),s=e.byteLength;else throw Error("Invalid data format, must be a string or TypedArray.");let i=s>>2,n=s-i*4,a=new Uint32Array(e.buffer,0,i),r=0,o=0,l=this.h1,c=this.h2,h=3432918353,f=461845907,u=h&Ji,p=f&Ji;for(let m=0;m<i;m++)m&1?(r=a[m],r=r*h&vi|r*u&Ji,r=r<<15|r>>>17,r=r*f&vi|r*p&Ji,l^=r,l=l<<13|l>>>19,l=l*5+3864292196):(o=a[m],o=o*h&vi|o*u&Ji,o=o<<15|o>>>17,o=o*f&vi|o*p&Ji,c^=o,c=c<<13|c>>>19,c=c*5+3864292196);switch(r=0,n){case 3:r^=e[i*4+2]<<16;case 2:r^=e[i*4+1]<<8;case 1:r^=e[i*4],r=r*h&vi|r*u&Ji,r=r<<15|r>>>17,r=r*f&vi|r*p&Ji,i&1?l^=r:c^=r}this.h1=l,this.h2=c}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,t=t*3981806797&vi|t*36045&Ji,e=e*4283543511&vi|((e<<16|t>>>16)*2950163797&vi)>>>16,t^=e>>>1,t=t*444984403&vi|t*60499&Ji,e=e*3301882366&vi|((e<<16|t>>>16)*3120437893&vi)>>>16,t^=e>>>1,(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}};yl=Object.freeze({map:null,hash:"",transfer:void 0});Af=class Af{static{d(this,"AnnotationStorage")}#t=!1;#e=null;#s=null;#i=new Map;onSetModified=null;onResetModified=null;onAnnotationEditor=null;getValue(t,e){let s=this.#i.get(t);return s===void 0?e:Object.assign(e,s)}getRawValue(t){return this.#i.get(t)}remove(t){let e=this.#i.get(t);e!==void 0&&(e instanceof Ut&&this.#s.delete(e.annotationElementId),this.#i.delete(t),this.#i.size===0&&this.resetModified(),!this.#i.values().some((s)=>s instanceof Ut)&&this.onAnnotationEditor?.(null))}setValue(t,e){let s=this.#i.get(t),i=!1;if(s!==void 0)for(let[n,a]of Object.entries(e))s[n]!==a&&(i=!0,s[n]=a);else i=!0,this.#i.set(t,e);i&&this.#n(),e instanceof Ut&&((this.#s||=new Map).set(e.annotationElementId,e),this.onAnnotationEditor?.(e.constructor._type))}has(t){return this.#i.has(t)}get size(){return this.#i.size}#n(){this.#t||(this.#t=!0,this.onSetModified?.())}resetModified(){this.#t&&(this.#t=!1,this.onResetModified?.())}get print(){return new w0(this)}get serializable(){if(this.#i.size===0)return yl;let t=new Map,e=new b0,s=[],i=Object.create(null),n=!1;for(let[a,r]of this.#i){let o=r instanceof Ut?r.serialize(!1,i):r;r.page&&(r.pageIndex=r.page._pageIndex,delete r.page),o&&(t.set(a,o),e.update(`${a}:${JSON.stringify(o)}`),n||=!!o.bitmap)}if(n)for(let a of t.values())a.bitmap&&s.push(a.bitmap);return t.size>0?{map:t,hash:e.hexdigest(),transfer:s}:yl}get editorStats(){let t=null,e=new Map,s=0,i=0;for(let n of this.#i.values()){if(!(n instanceof Ut)){n.popup&&(n.popup.deleted?i+=1:s+=1);continue}n.isCommentDeleted?i+=1:n.hasEditedComment&&(s+=1);let a=n.telemetryFinalData;if(!a)continue;let{type:r}=a;e.has(r)||e.set(r,Object.getPrototypeOf(n).constructor),t||=Object.create(null);let o=t[r]||=new Map;for(let[l,c]of Object.entries(a)){if(l==="type")continue;let h=o.getOrInsertComputed(l,kf);h.set(c,(h.get(c)??0)+1)}}if((i>0||s>0)&&(t||=Object.create(null),t.comments={deleted:i,edited:s}),!t)return null;for(let[n,a]of e)t[n]=a.computeTelemetryFinalData(t[n]);return t}resetModifiedIds(){this.#e=null}updateEditor(t,e){let s=this.#s?.get(t);return s?(s.updateFromAnnotationLayer(e),!0):!1}getEditor(t){return this.#s?.get(t)||null}get modifiedIds(){if(this.#e)return this.#e;let t=[];if(this.#s)for(let e of this.#s.values())e.serialize()&&t.push(e.annotationElementId);return this.#e={ids:new Set(t),hash:t.join(",")}}[Symbol.iterator](){return this.#i.entries()}};w0=class w0 extends Af{static{d(this,"PrintAnnotationStorage")}#t=yl;constructor(t){super();let{serializable:e}=t;if(e===yl)return;let{map:s,hash:i,transfer:n}=e,a=structuredClone(s,n?{transfer:n}:null);this.#t={map:a,hash:i,transfer:[]}}get print(){Se("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#t}get modifiedIds(){return se(this,"modifiedIds",{ids:new Set,hash:""})}};({floor:zp,ceil:Up}=Math);d(p1,"expandBBox");m1=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0];l8=class l8{static{d(this,"BBoxReader")}#t;#e;constructor(t,e){this.#t=t,this.#e=e}get length(){return this.#t.length}isEmpty(t){return this.#t[t]===m1}minX(t){return this.#e[t*4+0]/256}minY(t){return this.#e[t*4+1]/256}maxX(t){return(this.#e[t*4+2]+1)/256}maxY(t){return(this.#e[t*4+3]+1)/256}};Gp=d((t,e)=>t?.getOrInsertComputed(e,()=>({dependencies:new Set,isRenderingOperation:!1})),"ensureDebugMetadata");c8=class c8{static{d(this,"CanvasBBoxTracker")}#t=[[1,0,0,1,0,0]];#e=[-1/0,-1/0,1/0,1/0];#s=new Float64Array([1/0,1/0,-1/0,-1/0]);_pendingBBoxIdx=-1;#i;#n;#a;#r;_savesStack=[];_markedContentStack=[];constructor(t,e){this.#i=t.width,this.#n=t.height,this.#o(e)}growOperationsCount(t){t>=this.#r.length&&this.#o(t,this.#r)}#o(t,e){let s=new ArrayBuffer(t*4);this.#a=new Uint8ClampedArray(s),this.#r=new Uint32Array(s),e&&e.length>0?(this.#r.set(e),this.#r.fill(m1,e.length)):this.#r.fill(m1)}get clipBox(){return this.#e}save(t){return this.#e={__proto__:this.#e},this._savesStack.push(t),this}restore(t,e){let s=Object.getPrototypeOf(this.#e);if(s===null)return this;this.#e=s;let i=this._savesStack.pop();return i!==void 0&&(e?.(i,t),this.#r[t]=this.#r[i]),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),this.#r[t]=this.#r[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),this.#r[t]=this.#r[s]),this}pushBaseTransform(t){return this.#t.push(xt.multiplyByDOMMatrix(this.#t.at(-1),t.getTransform())),this}popBaseTransform(){return this.#t.length>1&&this.#t.pop(),this}resetBBox(t){return this._pendingBBoxIdx!==t&&(this._pendingBBoxIdx=t,this.#s[0]=1/0,this.#s[1]=1/0,this.#s[2]=-1/0,this.#s[3]=-1/0),this}recordClipBox(t,e,s,i,n,a){let r=xt.multiplyByDOMMatrix(this.#t.at(-1),e.getTransform()),o=[1/0,1/0,-1/0,-1/0];xt.axialAlignedBoundingBox([s,n,i,a],r,o);let l=xt.intersect(this.#e,o);return l?(this.#e[0]=l[0],this.#e[1]=l[1],this.#e[2]=l[2],this.#e[3]=l[3]):(this.#e[0]=this.#e[1]=1/0,this.#e[2]=this.#e[3]=-1/0),this}recordBBox(t,e,s,i,n,a){let r=this.#e;if(r[0]===1/0)return this;let o=xt.multiplyByDOMMatrix(this.#t.at(-1),e.getTransform());if(r[0]===-1/0)return xt.axialAlignedBoundingBox([s,n,i,a],o,this.#s),this;let l=[1/0,1/0,-1/0,-1/0];return xt.axialAlignedBoundingBox([s,n,i,a],o,l),this.#s[0]=Math.min(this.#s[0],Math.max(l[0],r[0])),this.#s[1]=Math.min(this.#s[1],Math.max(l[1],r[1])),this.#s[2]=Math.max(this.#s[2],Math.min(l[2],r[2])),this.#s[3]=Math.max(this.#s[3],Math.min(l[3],r[3])),this}recordFullPageBBox(t){return this.#s[0]=Math.max(0,this.#e[0]),this.#s[1]=Math.max(0,this.#e[1]),this.#s[2]=Math.min(this.#i,this.#e[2]),this.#s[3]=Math.min(this.#n,this.#e[3]),this}recordOperation(t,e=!1,s){if(this._pendingBBoxIdx!==t)return this;let i=zp(this.#s[0]*256/this.#i),n=zp(this.#s[1]*256/this.#n),a=Up(this.#s[2]*256/this.#i),r=Up(this.#s[3]*256/this.#n);if(p1(this.#a,t,i,n,a,r),s)for(let o of s)for(let l of o)l!==t&&p1(this.#a,l,i,n,a,r);return e||(this._pendingBBoxIdx=-1),this}bboxToClipBoxDropOperation(t){return this._pendingBBoxIdx===t&&(this._pendingBBoxIdx=-1,this.#e[0]=Math.max(this.#e[0],this.#s[0]),this.#e[1]=Math.max(this.#e[1],this.#s[1]),this.#e[2]=Math.min(this.#e[2],this.#s[2]),this.#e[3]=Math.min(this.#e[3],this.#s[3])),this}take(){return new l8(this.#r,this.#a)}takeDebugMetadata(){throw 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,i=1,n=0,a=0,r){return this}getSimpleIndex(t){}recordDependencies(t,e){return this}recordNamedDependency(t,e){return this}recordShowTextOperation(t,e=!1){return this}};h8=class h8{static{d(this,"CanvasDependencyTracker")}#t={__proto__:null};#e={__proto__:null,transform:[],moveText:[],sameLineText:[],[sr]:[]};#s=new Map;#i=new Set;#n=new Map;#a;#r;#o;constructor(t,e=!1){this.#o=t,e&&(this.#a=new Map,this.#r=(s,i)=>{Gp(this.#a,i).dependencies.add(s)})}get clipBox(){return this.#o.clipBox}growOperationsCount(t){this.#o.growOperationsCount(t)}save(t){return this.#t={__proto__:this.#t},this.#e={__proto__:this.#e,transform:{__proto__:this.#e.transform},moveText:{__proto__:this.#e.moveText},sameLineText:{__proto__:this.#e.sameLineText},[sr]:{__proto__:this.#e[sr]}},this.#o.save(t),this}restore(t){this.#o.restore(t,this.#r);let e=Object.getPrototypeOf(this.#t);return e===null?this:(this.#t=e,this.#e=Object.getPrototypeOf(this.#e),this)}recordOpenMarker(t){return this.#o.recordOpenMarker(t,this.#r),this}getOpenMarker(){return this.#o.getOpenMarker()}recordCloseMarker(t){return this.#o.recordCloseMarker(t,this.#r),this}beginMarkedContent(t){return this.#o.beginMarkedContent(t),this}endMarkedContent(t){return this.#o.endMarkedContent(t,this.#r),this}pushBaseTransform(t){return this.#o.pushBaseTransform(t),this}popBaseTransform(){return this.#o.popBaseTransform(),this}recordSimpleData(t,e){return this.#t[t]=e,this}recordIncrementalData(t,e){return this.#e[t].push(e),this}resetIncrementalData(t,e){return this.#e[t].length=0,this}recordNamedData(t,e){return this.#s.set(t,e),this}recordSimpleDataFromNamed(t,e,s){this.#t[t]=this.#s.get(e)??s}recordFutureForcedDependency(t,e){return this.recordIncrementalData(sr,e),this}inheritSimpleDataAsFutureForcedDependencies(t){for(let e of t)e in this.#t&&this.recordFutureForcedDependency(e,this.#t[e]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(let t of this.#i)this.recordFutureForcedDependency(sr,t);return this}resetBBox(t){return this.#o.resetBBox(t),this}recordClipBox(t,e,s,i,n,a){return this.#o.recordClipBox(t,e,s,i,n,a),this}recordBBox(t,e,s,i,n,a){return this.#o.recordBBox(t,e,s,i,n,a),this}recordCharacterBBox(t,e,s,i=1,n=0,a=0,r){let o=s.bbox,l,c;if(o&&(l=o[2]!==o[0]&&o[3]!==o[1]&&this.#n.get(s),l!==!1&&(c=[0,0,0,0],xt.axialAlignedBoundingBox(o,s.fontMatrix,c),(i!==1||n!==0||a!==0)&&xt.scaleMinMax([i,0,0,-i,n,a],c),l)))return this.recordBBox(t,e,c[0],c[2],c[1],c[3]);if(!r)return this.recordFullPageBBox(t);let h=r();return o&&c&&l===void 0&&(l=c[0]<=n-h.actualBoundingBoxLeft&&c[2]>=n+h.actualBoundingBoxRight&&c[1]<=a-h.actualBoundingBoxAscent&&c[3]>=a+h.actualBoundingBoxDescent,this.#n.set(s,l),l)?this.recordBBox(t,e,c[0],c[2],c[1],c[3]):this.recordBBox(t,e,n-h.actualBoundingBoxLeft,n+h.actualBoundingBoxRight,a-h.actualBoundingBoxAscent,a+h.actualBoundingBoxDescent)}recordFullPageBBox(t){return this.#o.recordFullPageBBox(t),this}getSimpleIndex(t){return this.#t[t]}recordDependencies(t,e){let s=this.#i,i=this.#t,n=this.#e;for(let a of e)a in this.#t?s.add(i[a]):(a in n)&&n[a].forEach(s.add,s);return this}recordNamedDependency(t,e){return this.#s.has(e)&&this.#i.add(this.#s.get(e)),this}recordOperation(t,e=!1){if(this.recordDependencies(t,[sr]),this.#a){let i=Gp(this.#a,t),{dependencies:n}=i;this.#i.forEach(n.add,n),this.#o._savesStack.forEach(n.add,n),this.#o._markedContentStack.forEach(n.add,n),n.delete(t),i.isRenderingOperation=!0}let s=!e&&t===this.#o._pendingBBoxIdx;return this.#o.recordOperation(t,e,[this.#i,this.#o._savesStack,this.#o._markedContentStack]),s&&this.#i.clear(),this}recordShowTextOperation(t,e=!1){let s=Array.from(this.#i);this.recordOperation(t,e),this.recordIncrementalData("sameLineText",t);for(let i of s)this.recordIncrementalData("sameLineText",i);return this}bboxToClipBoxDropOperation(t,e=!1){let s=!e&&t===this.#o._pendingBBoxIdx;return this.#o.bboxToClipBoxDropOperation(t),s&&this.#i.clear(),this}take(){return this.#n.clear(),this.#o.take()}takeDebugMetadata(){return this.#a}};Mh=class Mh{static{d(this,"CanvasNestedDependencyTracker")}#t;#e;#s;#i=0;#n=0;constructor(t,e,s){if(t instanceof Mh&&t.#s===!!s)return t;this.#t=t,this.#e=e,this.#s=!!s}get clipBox(){return this.#t.clipBox}growOperationsCount(){throw Error("Unreachable")}save(t){return this.#n++,this.#t.save(this.#e),this}restore(t){return this.#n>0&&(this.#t.restore(this.#e),this.#n--),this}recordOpenMarker(t){return this.#i++,this}getOpenMarker(){return this.#i>0?this.#e:this.#t.getOpenMarker()}recordCloseMarker(t){return this.#i--,this}beginMarkedContent(t){return this}endMarkedContent(t){return this}pushBaseTransform(t){return this.#t.pushBaseTransform(t),this}popBaseTransform(){return this.#t.popBaseTransform(),this}recordSimpleData(t,e){return this.#t.recordSimpleData(t,this.#e),this}recordIncrementalData(t,e){return this.#t.recordIncrementalData(t,this.#e),this}resetIncrementalData(t,e){return this.#t.resetIncrementalData(t,this.#e),this}recordNamedData(t,e){return this}recordSimpleDataFromNamed(t,e,s){return this.#t.recordSimpleDataFromNamed(t,e,this.#e),this}recordFutureForcedDependency(t,e){return this.#t.recordFutureForcedDependency(t,this.#e),this}inheritSimpleDataAsFutureForcedDependencies(t){return this.#t.inheritSimpleDataAsFutureForcedDependencies(t),this}inheritPendingDependenciesAsFutureForcedDependencies(){return this.#t.inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(t){return this.#s||this.#t.resetBBox(this.#e),this}recordClipBox(t,e,s,i,n,a){return this.#s||this.#t.recordClipBox(this.#e,e,s,i,n,a),this}recordBBox(t,e,s,i,n,a){return this.#s||this.#t.recordBBox(this.#e,e,s,i,n,a),this}recordCharacterBBox(t,e,s,i,n,a,r){return this.#s||this.#t.recordCharacterBBox(this.#e,e,s,i,n,a,r),this}recordFullPageBBox(t){return this.#s||this.#t.recordFullPageBBox(this.#e),this}getSimpleIndex(t){return this.#t.getSimpleIndex(t)}recordDependencies(t,e){return this.#t.recordDependencies(this.#e,e),this}recordNamedDependency(t,e){return this.#t.recordNamedDependency(this.#e,e),this}recordOperation(t){return this.#t.recordOperation(this.#e,!0),this}recordShowTextOperation(t){return this.#t.recordShowTextOperation(this.#e,!0),this}bboxToClipBoxDropOperation(t){return this.#s||this.#t.bboxToClipBoxDropOperation(this.#e,!0),this}take(){throw Error("Unreachable")}takeDebugMetadata(){throw Error("Unreachable")}};ki={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"]};Bh=class Bh{static{d(this,"CanvasImagesTracker")}#t;#e;#s=4;#i=0;#n=new Bh.#a(this.#s*6);static#a=es.isFloat16ArraySupported?Float16Array:Float32Array;constructor(t){this.#t=t.width,this.#e=t.height}record(t,e,s,i){if(this.#i===this.#s){this.#s*=2;let r=new Bh.#a(this.#s*6);r.set(this.#n),this.#n=r}let n=xt.domMatrixToTransform(t.getTransform()),a;if(i[0]!==1/0){let r=[1/0,1/0,-1/0,-1/0];xt.axialAlignedBoundingBox([0,-s,e,0],n,r);let o=xt.intersect(i,r);if(!o)return;let[l,c,h,f]=o;if(l!==r[0]||c!==r[1]||h!==r[2]||f!==r[3]){let u=Math.atan2(n[1],n[0]),p=Math.abs(Math.sin(u)),m=Math.abs(Math.cos(u));if(p<0.000001||m<0.000001||Math.abs(p-m)<0.000001)a=[l,c,l,f,h,c];else{let g=h-l,w=f-c,b=p*p,j=m*m,v=m*p,q=j-b,x=(w*j-g*v)/q,k=(w*v-g*b)/q;a=[l+k,c,l,c+x,h,f-x]}}}a||(a=[0,-s,0,0,e,-s],xt.applyTransform(a,n,0),xt.applyTransform(a,n,2),xt.applyTransform(a,n,4)),a[0]/=this.#t,a[1]/=this.#e,a[2]/=this.#t,a[3]/=this.#e,a[4]/=this.#t,a[5]/=this.#e,this.#n.set(a,this.#i*6),this.#i++}take(){return this.#n.subarray(0,this.#i*6)}};f8=class f8{static{d(this,"FontLoader")}#t=new Set;constructor({ownerDocument:t=globalThis.document,styleElement:e=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){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));let e=this.styleElement.sheet;e.insertRule(t,e.cssRules.length)}clear(){for(let t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#t.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,disableFontFace:e,_inspectFont:s}){if(!(!t||this.#t.has(t.loadedName))){if(Oe(!e,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){let{loadedName:i,src:n,style:a}=t,r=new FontFace(i,n,a);this.addNativeFontFace(r);try{await r.load(),this.#t.add(i),s?.(t)}catch{ne(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(r)}return}Se("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(i){throw ne(`Failed to load font '${s.family}': '${i}'.`),t.disableFontFace=!0,i}}return}let e=t.createFontFaceRule();if(e){if(this.insertRule(e),this.isSyncFontLoadingSupported)return;await new Promise((s)=>{let i=this._queueLoadingCallback(s);this._prepareFontLoadEvent(t,i)})}}get isFontLoadingAPISupported(){let t=!!this._document?.fonts;return se(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){return se(this,"isSyncFontLoadingSupported",Si||es.platform.isFirefox)}_queueLoadingCallback(t){function e(){for(Oe(!i.done,"completeRequest() cannot be called twice."),i.done=!0;s.length>0&&s[0].done;){let n=s.shift();setTimeout(n.callback,0)}}d(e,"completeRequest");let{loadingRequests:s}=this,i={done:!1,complete:e,callback:t};return s.push(i),i}get _loadTestFont(){let t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return se(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,e){function s(j,v){return j.charCodeAt(v)<<24|j.charCodeAt(v+1)<<16|j.charCodeAt(v+2)<<8|j.charCodeAt(v+3)&255}d(s,"int32");function i(j,v,q,x){let k=j.substring(0,v),A=j.substring(v+q);return k+x+A}d(i,"spliceString");let n,a,r=this._document.createElement("canvas");r.width=1,r.height=1;let o=r.getContext("2d"),l=0;function c(j,v){if(++l>30){ne("Load test font never loaded."),v();return}if(o.font="30px "+j,o.fillText(".",0,20),o.getImageData(0,0,1,1).data[3]>0){v();return}setTimeout(c.bind(null,j,v))}d(c,"isFontReady");let h=`lt${Date.now()}${this.loadTestFontId++}`,f=this._loadTestFont;f=i(f,976,h.length,h);let u=16,p=1482184792,m=s(f,u);for(n=0,a=h.length-3;n<a;n+=4)m=m-p+s(h,n)|0;n<h.length&&(m=m-p+s(h+"XXX",n)|0),f=i(f,u,4,X4(m));let g=`url(data:font/opentype;base64,${btoa(f)});`,w=`@font-face {font-family:"${h}";src:${g}}`;this.insertRule(w);let b=this._document.createElement("div");b.style.visibility="hidden",b.style.width=b.style.height="10px",b.style.position="absolute",b.style.top=b.style.left="0px";for(let j of[t.loadedName,h]){let v=this._document.createElement("span");v.textContent="Hi",v.style.fontFamily=j,b.append(v)}this._document.body.append(b),c(h,()=>{b.remove(),e.complete()})}};u8=class u8{static{d(this,"FontFaceObject")}compiledGlyphs=Object.create(null);#t;constructor(t,e=null,s,i){this.#t=t,this._inspectFont=e,s&&(this.charProcOperatorList=s),i&&Object.assign(this,i)}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(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:"${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,i;try{i=t.get(s)}catch(a){ne(`getPathGenerator - ignoring character: "${a}".`)}let n=d0(i?.path);return this.fontExtraProperties||t.delete(s),this.compiledGlyphs[e]=n}get black(){return this.#t.black}get bold(){return this.#t.bold}get disableFontFace(){return this.#t.disableFontFace}set disableFontFace(t){se(this,"disableFontFace",!!t)}get fontExtraProperties(){return this.#t.fontExtraProperties}get isInvalidPDFjsFont(){return this.#t.isInvalidPDFjsFont}get isType3Font(){return this.#t.isType3Font}get italic(){return this.#t.italic}get missingFile(){return this.#t.missingFile}get remeasure(){return this.#t.remeasure}get vertical(){return this.#t.vertical}get ascent(){return this.#t.ascent}get defaultWidth(){return this.#t.defaultWidth}get descent(){return this.#t.descent}get bbox(){return this.#t.bbox}get fontMatrix(){return this.#t.fontMatrix}get fallbackName(){return this.#t.fallbackName}get loadedName(){return this.#t.loadedName}get mimetype(){return this.#t.mimetype}get name(){return this.#t.name}get data(){return this.#t.data}clearData(){this.#t.clearData()}get cssFontInfo(){return this.#t.cssFontInfo}get systemFontInfo(){return this.#t.systemFontInfo}get defaultVMetrics(){return this.#t.defaultVMetrics}};d8=class d8{static{d(this,"CSS_FONT_INFO")}static strings=["fontFamily","fontWeight","italicAngle"]};p8=class p8{static{d(this,"SYSTEM_FONT_INFO")}static strings=["css","loadedName","baseFontName","src"]};xi=class xi{static{d(this,"FONT_INFO")}static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static numbers=["ascent","defaultWidth","descent"];static strings=["fallbackName","loadedName","mimetype","name"];static OFFSET_NUMBERS=Math.ceil(this.bools.length*2/8);static OFFSET_BBOX=this.OFFSET_NUMBERS+this.numbers.length*8;static OFFSET_FONT_MATRIX=this.OFFSET_BBOX+1+8;static OFFSET_DEFAULT_VMETRICS=this.OFFSET_FONT_MATRIX+1+48;static OFFSET_STRINGS=this.OFFSET_DEFAULT_VMETRICS+1+6};bn=class bn{static{d(this,"PATTERN_INFO")}static KIND=0;static HAS_BBOX=1;static HAS_BACKGROUND=2;static SHADING_TYPE=3;static N_COORD=4;static N_COLOR=8;static N_STOP=12;static N_FIGURES=16};m8=class m8{static{d(this,"CssFontInfo")}#t;#e=new TextDecoder;#s;constructor(t){this.#t=t,this.#s=new DataView(t)}#i(t){Oe(t<d8.strings.length,"Invalid string index");let e=0;for(let i=0;i<t;i++)e+=this.#s.getUint32(e)+4;let s=this.#s.getUint32(e);return this.#e.decode(new Uint8Array(this.#t,e+4,s))}get fontFamily(){return this.#i(0)}get fontWeight(){return this.#i(1)}get italicAngle(){return this.#i(2)}};g8=class g8{static{d(this,"SystemFontInfo")}#t;#e=new TextDecoder;#s;constructor(t){this.#t=t,this.#s=new DataView(t)}get guessFallback(){return this.#s.getUint8(0)!==0}#i(t){Oe(t<p8.strings.length,"Invalid string index");let e=5;for(let i=0;i<t;i++)e+=this.#s.getUint32(e)+4;let s=this.#s.getUint32(e);return this.#e.decode(new Uint8Array(this.#t,e+4,s))}get css(){return this.#i(0)}get loadedName(){return this.#i(1)}get baseFontName(){return this.#i(2)}get src(){return this.#i(3)}get style(){let t=1;t+=4+this.#s.getUint32(t);let e=this.#s.getUint32(t),s=this.#e.decode(new Uint8Array(this.#t,t+4,e));t+=4+e;let i=this.#s.getUint32(t),n=this.#e.decode(new Uint8Array(this.#t,t+4,i));return{style:s,weight:n}}};b8=class b8{static{d(this,"FontInfo")}#t;#e=new TextDecoder;#s;constructor({buffer:t,extra:e}){this.#t=t,this.#s=new DataView(t),e&&Object.assign(this,e)}#i(t){Oe(t<xi.bools.length,"Invalid boolean index");let e=Math.floor(t/4),s=t*2%8,i=this.#s.getUint8(e)>>s&3;return i===0?void 0:i===2}get black(){return this.#i(0)}get bold(){return this.#i(1)}get disableFontFace(){return this.#i(2)}get fontExtraProperties(){return this.#i(3)}get isInvalidPDFjsFont(){return this.#i(4)}get isType3Font(){return this.#i(5)}get italic(){return this.#i(6)}get missingFile(){return this.#i(7)}get remeasure(){return this.#i(8)}get vertical(){return this.#i(9)}#n(t){return Oe(t<xi.numbers.length,"Invalid number index"),this.#s.getFloat64(xi.OFFSET_NUMBERS+t*8)}get ascent(){return this.#n(0)}get defaultWidth(){return this.#n(1)}get descent(){return this.#n(2)}#a(t,e,s,i){let n=this.#s.getUint8(t);if(n===0)return;Oe(n===e,"Invalid array length."),t+=1;let a=Array(n);for(let r=0;r<n;r++)a[r]=this.#s[s](t,!0),t+=i;return a}get bbox(){return this.#a(xi.OFFSET_BBOX,4,"getInt16",2)}get fontMatrix(){return this.#a(xi.OFFSET_FONT_MATRIX,6,"getFloat64",8)}get defaultVMetrics(){return this.#a(xi.OFFSET_DEFAULT_VMETRICS,3,"getInt16",2)}#r(t){Oe(t<xi.strings.length,"Invalid string index");let e=xi.OFFSET_STRINGS+4;for(let i=0;i<t;i++)e+=this.#s.getUint32(e)+4;let s=this.#s.getUint32(e);return this.#e.decode(new Uint8Array(this.#t,e+4,s))}get fallbackName(){return this.#r(0)}get loadedName(){return this.#r(1)}get mimetype(){return this.#r(2)}get name(){return this.#r(3)}#o(){let t=xi.OFFSET_STRINGS,e=this.#s.getUint32(t);t+=4+e;let s=this.#s.getUint32(t);t+=4+s;let i=this.#s.getUint32(t);t+=4+i;let n=this.#s.getUint32(t);return{offset:t,length:n}}get data(){let{offset:t,length:e}=this.#o();return e===0?void 0:new Uint8Array(this.#t,t+4,e)}clearData(){let{offset:t,length:e}=this.#o();e!==0&&(this.#s.setUint32(t,0),this.#t=new Uint8Array(this.#t,0,t+4).slice().buffer,this.#s=new DataView(this.#t))}get cssFontInfo(){let t=xi.OFFSET_STRINGS,e=this.#s.getUint32(t);t+=4+e;let s=this.#s.getUint32(t);t+=4+s;let i=this.#s.getUint32(t);if(i===0)return null;let n=new Uint8Array(i);return n.set(new Uint8Array(this.#t,t+4,i)),new m8(n.buffer)}get systemFontInfo(){let t=xi.OFFSET_STRINGS,e=this.#s.getUint32(t);t+=4+e;let s=this.#s.getUint32(t);if(s===0)return null;let i=new Uint8Array(s);return i.set(new Uint8Array(this.#t,t+4,s)),new g8(i.buffer)}};w8=class w8{static{d(this,"PatternInfo")}constructor(t){this.buffer=t,this.view=new DataView(t),this.data=new Uint8Array(t)}getIR(){let t=this.view,e=this.data[bn.KIND],s=!!this.data[bn.HAS_BBOX],i=!!this.data[bn.HAS_BACKGROUND],n=t.getUint32(bn.N_COORD,!0),a=t.getUint32(bn.N_COLOR,!0),r=t.getUint32(bn.N_STOP,!0),o=t.getUint32(bn.N_FIGURES,!0),l=20,c=new Float32Array(this.buffer,l,n*2);l+=n*8;let h=new Uint8Array(this.buffer,l,a*3);l+=a*3;let f=[];for(let g=0;g<r;++g){let w=t.getFloat32(l,!0);l+=4;let b=t.getUint32(l,!0);l+=4,f.push([w,`#${b.toString(16).padStart(6,"0")}`])}let u=null;if(s){u=[];for(let g=0;g<4;++g)u.push(t.getFloat32(l,!0)),l+=4}let p=null;i&&(p=new Uint8Array(this.buffer,l,3),l+=3);let m=[];for(let g=0;g<o;++g){let w=t.getUint8(l);l+=1,l=Math.ceil(l/4)*4;let b=t.getUint32(l,!0);l+=4;let j=new Int32Array(this.buffer,l,b);l+=b*4;let v=t.getUint32(l,!0);l+=4;let q=new Int32Array(this.buffer,l,v);l+=v*4;let x={type:w,coords:j,colors:q};w===Ia.LATTICE&&(x.verticesPerRow=t.getUint32(l,!0),l+=4),m.push(x)}if(e===1)return["RadialAxial","axial",u,f,Array.from(c.slice(0,2)),Array.from(c.slice(2,4)),null,null];if(e===2)return["RadialAxial","radial",u,f,[c[0],c[1]],[c[3],c[4]],c[2],c[5]];if(e===3){let g=this.data[bn.SHADING_TYPE],w=null;if(c.length>0){w=[1/0,1/0,-1/0,-1/0];for(let b=0,j=c.length;b<j;b+=2)xt.pointBoundingBox(c[b],c[b+1],w)}return["Mesh",g,c,h,m,w,u,p]}throw Error(`Unsupported pattern kind: ${e}`)}};y8=class y8{static{d(this,"FontPathInfo")}#t;constructor(t){this.#t=t}get path(){return es.isFloat16ArraySupported?new Float16Array(this.#t):new Float32Array(this.#t)}};d(j8,"getUrlProp");d(v8,"getDataProp");d(To,"getFactoryUrlProp");g1=d((t)=>typeof t=="object"&&Number.isInteger(t?.num)&&t.num>=0&&Number.isInteger(t?.gen)&&t.gen>=0,"isRefProxy"),fv=d((t)=>typeof t=="object"&&typeof t?.name=="string","isNameProxy"),k8=t8.bind(null,g1,fv);q8=class q8{static{d(this,"LoopbackPort")}#t=new Map;#e=Promise.resolve();postMessage(t,e){let s={data:structuredClone(t,e?{transfer:e}:null)};this.#e.then(()=>{for(let[i]of this.#t)i.call(this,s)})}addEventListener(t,e,s=null){let i=null;if(s?.signal instanceof AbortSignal){let{signal:n}=s;if(n.aborted){ne("LoopbackPort - cannot use an `aborted` signal.");return}let a=d(()=>this.removeEventListener(t,e),"onAbort");i=d(()=>n.removeEventListener("abort",a),"rmAbort"),n.addEventListener("abort",a)}this.#t.set(e,i)}removeEventListener(t,e){this.#t.get(e)?.(),this.#t.delete(e)}terminate(){for(let[,t]of this.#t)t?.();this.#t.clear()}};kc={DATA:1,ERROR:2},ns={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};d(b1,"onFn");d(Ls,"wrapReason");vr=class vr{static{d(this,"MessageHandler")}#t=new AbortController;constructor(t,e,s){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",this.#e.bind(this),{signal:this.#t.signal})}#e({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){this.#i(t);return}if(t.callback){let s=t.callbackId,i=this.callbackCapabilities[s];if(!i)throw Error(`Cannot resolve callback ${s}`);if(delete this.callbackCapabilities[s],t.callback===kc.DATA)i.resolve(t.data);else if(t.callback===kc.ERROR)i.reject(Ls(t.reason));else throw Error("Unexpected callback case");return}let e=this.actionHandler[t.action];if(!e)throw Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let s=this.sourceName,i=t.sourceName,n=this.comObj;Promise.try(e,t.data).then(function(a){n.postMessage({sourceName:s,targetName:i,callback:kc.DATA,callbackId:t.callbackId,data:a})},function(a){n.postMessage({sourceName:s,targetName:i,callback:kc.ERROR,callbackId:t.callbackId,reason:Ls(a)})});return}if(t.streamId){this.#s(t);return}e(t.data)}on(t,e){let s=this.actionHandler;if(s[t])throw 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 i=this.callbackId++,n=Promise.withResolvers();this.callbackCapabilities[i]=n;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:e},s)}catch(a){n.reject(a)}return n.promise}sendWithStream(t,e,s,i){let n=this.streamId++,a=this.sourceName,r=this.targetName,o=this.comObj;return new ReadableStream({start:d((l)=>{let c=Promise.withResolvers();return this.streamControllers[n]={controller:l,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},o.postMessage({sourceName:a,targetName:r,action:t,streamId:n,data:e,desiredSize:l.desiredSize},i),c.promise},"start"),pull:d((l)=>{let c=Promise.withResolvers();return this.streamControllers[n].pullCall=c,o.postMessage({sourceName:a,targetName:r,stream:ns.PULL,streamId:n,desiredSize:l.desiredSize}),c.promise},"pull"),cancel:d((l)=>{Oe(l instanceof Error,"cancel must have a valid reason");let c=Promise.withResolvers();return this.streamControllers[n].cancelCall=c,this.streamControllers[n].isClosed=!0,o.postMessage({sourceName:a,targetName:r,stream:ns.CANCEL,streamId:n,reason:Ls(l)}),c.promise},"cancel")},s)}#s(t){let e=t.streamId,s=this.sourceName,i=t.sourceName,n=this.comObj,a=this,r=this.actionHandler[t.action],o={enqueue(l,c=1,h){if(this.isCancelled)return;let f=this.desiredSize;this.desiredSize-=c,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),n.postMessage({sourceName:s,targetName:i,stream:ns.ENQUEUE,streamId:e,chunk:l},h)},close(){this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:s,targetName:i,stream:ns.CLOSE,streamId:e}),delete a.streamSinks[e])},error(l){Oe(l instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,n.postMessage({sourceName:s,targetName:i,stream:ns.ERROR,streamId:e,reason:Ls(l)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};o.sinkCapability.resolve(),o.ready=o.sinkCapability.promise,this.streamSinks[e]=o,Promise.try(r,t.data,o).then(function(){n.postMessage({sourceName:s,targetName:i,stream:ns.START_COMPLETE,streamId:e,success:!0})},function(l){n.postMessage({sourceName:s,targetName:i,stream:ns.START_COMPLETE,streamId:e,reason:Ls(l)})})}#i(t){let e=t.streamId,s=this.sourceName,i=t.sourceName,n=this.comObj,a=this.streamControllers[e],r=this.streamSinks[e];switch(t.stream){case ns.START_COMPLETE:t.success?a.startCall.resolve():a.startCall.reject(Ls(t.reason));break;case ns.PULL_COMPLETE:t.success?a.pullCall.resolve():a.pullCall.reject(Ls(t.reason));break;case ns.PULL:if(!r){n.postMessage({sourceName:s,targetName:i,stream:ns.PULL_COMPLETE,streamId:e,success:!0});break}r.desiredSize<=0&&t.desiredSize>0&&r.sinkCapability.resolve(),r.desiredSize=t.desiredSize,Promise.try(r.onPull||b1).then(function(){n.postMessage({sourceName:s,targetName:i,stream:ns.PULL_COMPLETE,streamId:e,success:!0})},function(l){n.postMessage({sourceName:s,targetName:i,stream:ns.PULL_COMPLETE,streamId:e,reason:Ls(l)})});break;case ns.ENQUEUE:if(Oe(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case ns.CLOSE:if(Oe(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#n(a,e);break;case ns.ERROR:Oe(a,"error should have stream controller"),a.controller.error(Ls(t.reason)),this.#n(a,e);break;case ns.CANCEL_COMPLETE:t.success?a.cancelCall.resolve():a.cancelCall.reject(Ls(t.reason)),this.#n(a,e);break;case ns.CANCEL:if(!r)break;let o=Ls(t.reason);Promise.try(r.onCancel||b1,o).then(function(){n.postMessage({sourceName:s,targetName:i,stream:ns.CANCEL_COMPLETE,streamId:e,success:!0})},function(l){n.postMessage({sourceName:s,targetName:i,stream:ns.CANCEL_COMPLETE,streamId:e,reason:Ls(l)})}),r.sinkCapability.reject(o),r.isCancelled=!0,delete this.streamSinks[e];break;default:throw Error("Unexpected stream case")}}async#n(t,e){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[e]}destroy(){this.#t?.abort(),this.#t=null}};y0=class y0{static{d(this,"BaseBinaryDataFactory")}#t=Object.freeze({cMapUrl:"CMap",standardFontDataUrl:"font",wasmUrl:"wasm"});constructor({cMapUrl:t=null,standardFontDataUrl:e=null,wasmUrl:s=null}){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:Se(`Not implemented: ${t}`)}let s=this[t];if(!s)throw Error(`Ensure that the \`${t}\` API parameter is provided.`);let i=`${s}${e}`;return this._fetch(i,t).catch((n)=>{throw Error(`Unable to load ${this.#t[t]} data at: ${i}`)})}async _fetch(t,e){Se("Abstract method `_fetch` called.")}};w1=class w1 extends y0{static{d(this,"DOMBinaryDataFactory")}async _fetch(t,e){let s=e==="cMapUrl"&&!t.endsWith(".bcmap")?"text":"bytes",i=await Ul(t,s);return i instanceof Uint8Array?i:zl(i)}};j0=class j0{static{d(this,"BaseCanvasFactory")}#t=!1;constructor({enableHWA:t=!1}){this.#t=t}create(t,e){if(t<=0||e<=0)throw Error("Invalid canvas size");let s=this._createCanvas(t,e);return{canvas:s,context:s.getContext("2d",{willReadFrequently:!this.#t})}}reset({canvas:t},e,s){if(!t)throw Error("Canvas is not specified");if(e<=0||s<=0)throw Error("Invalid canvas size");t.width=e,t.height=s}destroy(t){let{canvas:e}=t;if(!e)throw Error("Canvas is not specified");e.width=e.height=0,t.canvas=null,t.context=null}_createCanvas(t,e){Se("Abstract method `_createCanvas` called.")}};x8=class x8 extends j0{static{d(this,"DOMCanvasFactory")}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}};v0=class v0{static{d(this,"BaseFilterFactory")}addFilter(t){return"none"}addHCMFilter(t,e){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,e,s,i,n){return"none"}destroy(t=!1){}};A8=class A8 extends v0{static{d(this,"DOMFilterFactory")}#t;#e;#s;#i;#n;#a;#r=0;constructor({docId:t,ownerDocument:e=globalThis.document}){super(),this.#i=t,this.#n=e}get#o(){return this.#e||=new Map}get#l(){return this.#a||=new Map}get#c(){if(!this.#s){let t=this.#n.createElement("div"),{style:e}=t;e.visibility="hidden",e.contain="strict",e.width=e.height=0,e.position="absolute",e.top=e.left=0,e.zIndex=-1;let s=this.#n.createElementNS(gn,"svg");s.setAttribute("width",0),s.setAttribute("height",0),this.#s=this.#n.createElementNS(gn,"defs"),t.append(s),s.append(this.#s),this.#n.body.append(t)}return this.#s}#u(t){if(t.length===1){let o=t[0],l=Array(256);for(let h=0;h<256;h++)l[h]=o[h]/255;let c=l.join(",");return[c,c,c]}let[e,s,i]=t,n=Array(256),a=Array(256),r=Array(256);for(let o=0;o<256;o++)n[o]=e[o]/255,a[o]=s[o]/255,r[o]=i[o]/255;return[n.join(","),a.join(","),r.join(",")]}#h(t){if(this.#t===void 0){this.#t="";let e=this.#n.URL;e!==this.#n.baseURI&&(Yr(e)?ne('#createUrl: ignore "data:"-URL for performance reasons.'):this.#t=yf(e,""))}return`url(${this.#t}#${t})`}addFilter(t){if(!t)return"none";let e=this.#o.get(t);if(e)return e;let[s,i,n]=this.#u(t),a=t.length===1?s:`${s}${i}${n}`;if(e=this.#o.get(a),e)return this.#o.set(t,e),e;let r=`g_${this.#i}_transfer_map_${this.#r++}`,o=this.#h(r);this.#o.set(t,o),this.#o.set(a,o);let l=this.#m(r);return this.#p(s,i,n,l),o}addHCMFilter(t,e){let s=`${t}-${e}`,n=this.#l.get("base");if(n?.key===s||(n?(n.filter?.remove(),n.key=s,n.url="none",n.filter=null):(n={key:s,url:"none",filter:null},this.#l.set("base",n)),!t||!e))return n.url;let a=this.#v(t);t=xt.makeHexColor(...a);let r=this.#v(e);if(e=xt.makeHexColor(...r),this.#c.style.color="",t==="#000000"&&e==="#ffffff"||t===e)return n.url;let o=Array(256);for(let u=0;u<=255;u++){let p=u/255;o[u]=p<=0.03928?p/12.92:((p+0.055)/1.055)**2.4}let l=o.join(","),c=`g_${this.#i}_hcm_filter`,h=n.filter=this.#m(c);this.#p(l,l,l,h),this.#g(h);let f=d((u,p)=>{let m=a[u]/255,g=r[u]/255,w=Array(p+1);for(let b=0;b<=p;b++)w[b]=m+b/p*(g-m);return w.join(",")},"getSteps");return this.#p(f(0,5),f(1,5),f(2,5),h),n.url=this.#h(c),n.url}addAlphaFilter(t){let e=this.#o.get(t);if(e)return e;let[s]=this.#u([t]),i=`alpha_${s}`;if(e=this.#o.get(i),e)return this.#o.set(t,e),e;let n=`g_${this.#i}_alpha_map_${this.#r++}`,a=this.#h(n);this.#o.set(t,a),this.#o.set(i,a);let r=this.#m(n);return this.#b(s,r),a}addLuminosityFilter(t){let e=this.#o.get(t||"luminosity");if(e)return e;let s,i;if(t?([s]=this.#u([t]),i=`luminosity_${s}`):i="luminosity",e=this.#o.get(i),e)return this.#o.set(t,e),e;let n=`g_${this.#i}_luminosity_map_${this.#r++}`,a=this.#h(n);this.#o.set(t,a),this.#o.set(i,a);let r=this.#m(n);return this.#d(r),t&&this.#b(s,r),a}addHighlightHCMFilter(t,e,s,i,n){let a=`${e}-${s}-${i}-${n}`,r=this.#l.get(t);if(r?.key===a||(r?(r.filter?.remove(),r.key=a,r.url="none",r.filter=null):(r={key:a,url:"none",filter:null},this.#l.set(t,r)),!e||!s))return r.url;let[o,l]=[e,s].map(this.#v.bind(this)),c=Math.round(0.2126*o[0]+0.7152*o[1]+0.0722*o[2]),h=Math.round(0.2126*l[0]+0.7152*l[1]+0.0722*l[2]),[f,u]=[i,n].map(this.#v.bind(this));h<c&&([c,h,f,u]=[h,c,u,f]),this.#c.style.color="";let p=d((w,b,j)=>{let v=Array(256),q=(h-c)/j,x=w/255,k=(b-w)/(255*j),A=0;for(let S=0;S<=j;S++){let I=Math.round(c+S*q),E=x+S*k;for(let D=A;D<=I;D++)v[D]=E;A=I+1}for(let S=A;S<256;S++)v[S]=v[A-1];return v.join(",")},"getSteps"),m=`g_${this.#i}_hcm_${t}_filter`,g=r.filter=this.#m(m);return this.#g(g),this.#p(p(f[0],u[0],5),p(f[1],u[1],5),p(f[2],u[2],5),g),r.url=this.#h(m),r.url}destroy(t=!1){t&&this.#a?.size||(this.#s?.parentNode.parentNode.remove(),this.#s=null,this.#e?.clear(),this.#e=null,this.#a?.clear(),this.#a=null,this.#r=0)}#d(t){let e=this.#n.createElementNS(gn,"feColorMatrix");e.setAttribute("type","matrix"),e.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"),t.append(e)}#g(t){let e=this.#n.createElementNS(gn,"feColorMatrix");e.setAttribute("type","matrix"),e.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"),t.append(e)}#m(t){let e=this.#n.createElementNS(gn,"filter");return e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("id",t),this.#c.append(e),e}#f(t,e,s){let i=this.#n.createElementNS(gn,e);i.setAttribute("type","discrete"),i.setAttribute("tableValues",s),t.append(i)}#p(t,e,s,i){let n=this.#n.createElementNS(gn,"feComponentTransfer");i.append(n),this.#f(n,"feFuncR",t),this.#f(n,"feFuncG",e),this.#f(n,"feFuncB",s)}#b(t,e){let s=this.#n.createElementNS(gn,"feComponentTransfer");e.append(s),this.#f(s,"feFuncA",t)}#v(t){return this.#c.style.color=t,Va(getComputedStyle(this.#c).getPropertyValue("color"))}};d(S8,"node_utils_fetchData");C8=class C8 extends v0{static{d(this,"NodeFilterFactory")}};I8=class I8 extends j0{static{d(this,"NodeCanvasFactory")}_createCanvas(t,e){return process.getBuiltinModule("module").createRequire(import.meta.url),new Proxy({},{get(s,i){return()=>{throw Error("@napi-rs/canvas is not available in this environment")}}}).createCanvas(t,e)}};T8=class T8 extends y0{static{d(this,"NodeBinaryDataFactory")}async _fetch(t,e){return S8(t)}};F8=class F8{static{d(this,"WebGPUMesh")}#t=null;#e=null;#s=null;#i=null;async#n(){if(!globalThis.navigator?.gpu)return!1;try{let t=await navigator.gpu.requestAdapter();if(!t)return!1;this.#i=navigator.gpu.getPreferredCanvasFormat();let e=this.#e=await t.requestDevice(),s=e.createShaderModule({code:uv});return this.#s=e.createRenderPipeline({layout:"auto",vertex:{module:s,entryPoint:"vs_main",buffers:[{arrayStride:8,attributes:[{shaderLocation:0,offset:0,format:"float32x2"}]},{arrayStride:4,attributes:[{shaderLocation:1,offset:0,format:"unorm8x4"}]}]},fragment:{module:s,entryPoint:"fs_main",targets:[{format:this.#i}]},primitive:{topology:"triangle-list"}}),!0}catch{return!1}}init(){this.#t===null&&(this.#t=this.#n())}get isReady(){return this.#e!==null}#a(t,e){let{coords:s,colors:i}=e,n=0;for(let h of t){let f=h.coords;if(h.type===Ia.TRIANGLES)n+=f.length;else if(h.type===Ia.LATTICE){let u=h.verticesPerRow;n+=(Math.floor(f.length/u)-1)*(u-1)*6}}let a=new Float32Array(n*2),r=new Uint8Array(n*4),o=0,l=0,c=d((h,f)=>{a[o++]=s[h*2],a[o++]=s[h*2+1],r[l++]=i[f*4],r[l++]=i[f*4+1],r[l++]=i[f*4+2],l++},"addVertex");for(let h of t){let{coords:f,colors:u}=h;if(h.type===Ia.TRIANGLES)for(let p=0,m=f.length;p<m;p+=3)c(f[p],u[p]),c(f[p+1],u[p+1]),c(f[p+2],u[p+2]);else if(h.type===Ia.LATTICE){let p=h.verticesPerRow,m=Math.floor(f.length/p)-1,g=p-1;for(let w=0;w<m;w++){let b=w*p;for(let j=0;j<g;j++,b++)c(f[b],u[b]),c(f[b+1],u[b+1]),c(f[b+p],u[b+p]),c(f[b+p+1],u[b+p+1]),c(f[b+1],u[b+1]),c(f[b+p],u[b+p])}}}return{posData:a,colData:r,vertexCount:n}}draw(t,e,s,i,n,a){let r=this.#e,{offsetX:o,offsetY:l,scaleX:c,scaleY:h}=e,{posData:f,colData:u,vertexCount:p}=this.#a(t,e),m=r.createBuffer({size:Math.max(f.byteLength,4),usage:GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_DST});f.byteLength>0&&r.queue.writeBuffer(m,0,f);let g=r.createBuffer({size:Math.max(u.byteLength,4),usage:GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_DST});u.byteLength>0&&r.queue.writeBuffer(g,0,u);let w=r.createBuffer({size:32,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST});r.queue.writeBuffer(w,0,new Float32Array([o,l,c,h,i,n,a,0]));let b=r.createBindGroup({layout:this.#s.getBindGroupLayout(0),entries:[{binding:0,resource:{buffer:w}}]}),j=new OffscreenCanvas(i,n),v=j.getContext("webgpu");v.configure({device:r,format:this.#i,alphaMode:s?"opaque":"premultiplied"});let q=s?{r:s[0]/255,g:s[1]/255,b:s[2]/255,a:1}:{r:0,g:0,b:0,a:0},x=r.createCommandEncoder(),k=x.beginRenderPass({colorAttachments:[{view:v.getCurrentTexture().createView(),clearValue:q,loadOp:"clear",storeOp:"store"}]});return p>0&&(k.setPipeline(this.#s),k.setBindGroup(0,b),k.setVertexBuffer(0,m),k.setVertexBuffer(1,g),k.draw(p)),k.end(),r.queue.submit([x.finish()]),m.destroy(),g.destroy(),w.destroy(),j.transferToImageBitmap()}};k0=new F8;d(E8,"initWebGPUMesh");d(M8,"isWebGPUMeshReady");d(B8,"drawMeshWithGPU");Ts={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};d(Go,"applyBoundingBox");Sf=class Sf{static{d(this,"BaseShadingPattern")}isModifyingCurrentTransform(){return!1}getPattern(){Se("Abstract method `getPattern` called.")}};P8=class P8 extends Sf{static{d(this,"RadialAxialShadingPattern")}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],this.matrix=null}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"}_isCircleCenterOutside(){return!this.isRadial()||this._r0>this._r1?!1:Math.hypot(this._p0[0]-this._p1[0],this._p0[1]-this._p1[1])>this._r1}_createGradient(t,e=null){let s,i=this._p0,n=this._p1;if(e&&(i=i.slice(),n=n.slice(),xt.applyTransform(i,e),xt.applyTransform(n,e)),this._type==="axial")s=t.createLinearGradient(i[0],i[1],n[0],n[1]);else if(this._type==="radial"){let a=this._r0,r=this._r1;if(e){let o=new Float32Array(2);xt.singularValueDecompose2dScale(e,o),a*=o[0],r*=o[0]}s=t.createRadialGradient(i[0],i[1],a,n[0],n[1],r)}for(let a of this._colorStops)s.addColorStop(a[0],a[1]);return s}_createReversedGradient(t,e=null){let s=this._p1,i=this._p0;e&&(s=s.slice(),i=i.slice(),xt.applyTransform(s,e),xt.applyTransform(i,e));let n=this._r1,a=this._r0;if(e){let l=new Float32Array(2);xt.singularValueDecompose2dScale(e,l),n*=l[0],a*=l[0]}let r=t.createRadialGradient(s[0],s[1],n,i[0],i[1],a),o=this._colorStops.map(([l,c])=>[1-l,c]).reverse();for(let[l,c]of o)r.addColorStop(l,c);return r}getPattern(t,e,s,i){let n;if(i===Ts.STROKE||i===Ts.FILL){if(this.isOriginBased()){let f=xt.transform(s,e.baseTransform);this.matrix&&(f=xt.transform(f,this.matrix));let u=0.001,p=Math.hypot(f[0],f[1]),m=Math.hypot(f[2],f[3]),g=(f[0]*f[2]+f[1]*f[3])/(p*m);if(Math.abs(g)<u)if(this.isRadial()){if(Math.abs(p-m)<u)return this._createGradient(t,f)}else return this._createGradient(t,f)}let a=e.current.getClippedPathBoundingBox(i,Re(t))||[0,0,0,0],r=Math.ceil(a[2]-a[0])||1,o=Math.ceil(a[3]-a[1])||1,l=e.canvasFactory.create(r,o),c=l.context;c.clearRect(0,0,c.canvas.width,c.canvas.height),c.beginPath(),c.rect(0,0,c.canvas.width,c.canvas.height),c.translate(-a[0],-a[1]),s=xt.transform(s,[1,0,0,1,a[0],a[1]]),c.transform(...e.baseTransform),this.matrix&&c.transform(...this.matrix),Go(c,this._bbox),this._isCircleCenterOutside()&&(c.fillStyle=this._createReversedGradient(c),c.fill()),c.fillStyle=this._createGradient(c),c.fill(),n=t.createPattern(l.canvas,"no-repeat"),e.canvasFactory.destroy(l);let h=new DOMMatrix(s);n.setTransform(h)}else this._isCircleCenterOutside()&&(t.save(),Go(t,this._bbox),t.fillStyle=this._createReversedGradient(t),t.fillRect(-10000000000,-10000000000,20000000000,20000000000),t.restore()),Go(t,this._bbox),n=this._createGradient(t);return n}};d(Wc,"drawTriangle");d(D8,"drawFigure");R8=class R8 extends Sf{static{d(this,"MeshShadingPattern")}constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[6],this._background=t[7],this.matrix=null}_createMeshCanvas(t,e,s){let i=Math.floor(this._bounds[0]),n=Math.floor(this._bounds[1]),a=Math.ceil(this._bounds[2])-i,r=Math.ceil(this._bounds[3])-n,o=Math.min(Math.ceil(Math.abs(a*t[0]*1.1)),3000)||1,l=Math.min(Math.ceil(Math.abs(r*t[1]*1.1)),3000)||1,c=a?a/o:1,h=r?r/l:1,f={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-n,scaleX:1/c,scaleY:1/h},u=o+4,p=l+4,m=s.create(u,p);if(M8())m.context.drawImage(B8(this._figures,f,e,u,p,2),0,0);else{let g=m.context.createImageData(o,l);if(e){let w=g.data;for(let b=0,j=w.length;b<j;b+=4)w[b]=e[0],w[b+1]=e[1],w[b+2]=e[2],w[b+3]=255}for(let w of this._figures)D8(g,w,f);m.context.putImageData(g,2,2)}return{canvas:m.canvas,offsetX:i-2*c,offsetY:n-2*h,scaleX:c,scaleY:h}}isModifyingCurrentTransform(){return!0}getPattern(t,e,s,i){Go(t,this._bbox);let n=new Float32Array(2);if(i===Ts.SHADING)xt.singularValueDecompose2dScale(Re(t),n);else if(this.matrix){xt.singularValueDecompose2dScale(this.matrix,n);let[o,l]=n;xt.singularValueDecompose2dScale(e.baseTransform,n),n[0]*=o,n[1]*=l}else xt.singularValueDecompose2dScale(e.baseTransform,n);let a=this._createMeshCanvas(n,i===Ts.SHADING?null:this._background,e.canvasFactory);i!==Ts.SHADING&&(t.setTransform(...e.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(a.offsetX,a.offsetY),t.scale(a.scaleX,a.scaleY);let r=t.createPattern(a.canvas,"no-repeat");return e.canvasFactory.destroy(a),r}};H8=class H8 extends Sf{static{d(this,"DummyShadingPattern")}getPattern(){return"hotpink"}};d(_8,"getShadingPattern");$p={COLORED:1,UNCOLORED:2};q0=class q0{static{d(this,"TilingPattern")}static MAX_PATTERN_SIZE=3000;constructor(t,e,s,i){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.ctx=e,this.canvasGraphicsFactory=s,this.baseTransform=i}createPatternCanvas(t,e){let{bbox:s,operatorList:i,paintType:n,tilingType:a,color:r,canvasGraphicsFactory:o}=this,{xstep:l,ystep:c}=this;l=Math.abs(l),c=Math.abs(c),Ll("TilingType: "+a);let h=s[0],f=s[1],u=s[2],p=s[3],m=u-h,g=p-f,w=new Float32Array(2);xt.singularValueDecompose2dScale(this.matrix,w);let[b,j]=w;xt.singularValueDecompose2dScale(this.baseTransform,w);let v=b*w[0],q=j*w[1],x=m,k=g,A=!1,S=!1,I=Math.ceil(l*v),E=Math.ceil(c*q),D=Math.ceil(m*v),O=Math.ceil(g*q);I>=D?x=l:A=!0,E>=O?k=c:S=!0;let $=this.getSizeAndScale(x,this.ctx.canvas.width,v),it=this.getSizeAndScale(k,this.ctx.canvas.height,q),W=t.canvasFactory.create($.size,it.size),H=W.context,L=o.createCanvasGraphics(H,e);if(L.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(L,n,r),H.translate(-$.scale*h,-it.scale*f),L.transform(0,$.scale,0,0,it.scale,0,0),H.save(),L.dependencyTracker?.save(),this.clipBbox(L,h,f,u,p),L.baseTransform=Re(L.ctx),L.executeOperatorList(i),L.endDrawing(),L.dependencyTracker?.restore(),H.restore(),A||S){let rt=W.canvas;A&&(x=l),S&&(k=c);let yt=this.getSizeAndScale(x,this.ctx.canvas.width,v),X=this.getSizeAndScale(k,this.ctx.canvas.height,q),St=yt.size,qt=X.size,R=t.canvasFactory.create(St,qt),V=R.context,N=A?Math.floor(m/l):0,_=S?Math.floor(g/c):0;for(let U=0;U<=N;U++)for(let ot=0;ot<=_;ot++)V.drawImage(rt,St*U,qt*ot,St,qt,0,0,St,qt);return t.canvasFactory.destroy(W),{canvas:R.canvas,canvasEntry:R,scaleX:yt.scale,scaleY:X.scale,offsetX:h,offsetY:f}}return{canvas:W.canvas,canvasEntry:W,scaleX:$.scale,scaleY:it.scale,offsetX:h,offsetY:f}}getSizeAndScale(t,e,s){let i=Math.max(q0.MAX_PATTERN_SIZE,e),n=Math.ceil(t*s);return n>=i?n=i:s=n/t,{scale:s,size:n}}clipBbox(t,e,s,i,n){let a=i-e,r=n-s;t.ctx.rect(e,s,a,r),xt.axialAlignedBoundingBox([e,s,i,n],Re(t.ctx),t.current.minMax),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,e,s){let{ctx:i,current:n}=t;switch(e){case $p.COLORED:let{fillStyle:a,strokeStyle:r}=this.ctx;i.fillStyle=n.fillColor=a,i.strokeStyle=n.strokeColor=r;break;case $p.UNCOLORED:i.fillStyle=i.strokeStyle=s,n.fillColor=n.strokeColor=s;break;default:throw new K4(`Unsupported paint type: ${e}`)}}isModifyingCurrentTransform(){return!1}getPattern(t,e,s,i,n){let a=s;i!==Ts.SHADING&&(a=xt.transform(a,e.baseTransform),this.matrix&&(a=xt.transform(a,this.matrix)));let r=this.createPatternCanvas(e,n),o=new DOMMatrix(a);o=o.translate(r.offsetX,r.offsetY),o=o.scale(1/r.scaleX,1/r.scaleY);let l=t.createPattern(r.canvas,"repeat");return e.canvasFactory.destroy(r.canvasEntry),l.setTransform(o),l}};d(O8,"convertBlackAndWhiteToRGBA");Qf=new DOMMatrix,gi=new Float32Array(2),kr=new Float32Array([1/0,1/0,-1/0,-1/0]);d(N8,"mirrorContextOperations");d(Fo,"drawImageAtIntegerCoords");y1=class y1{static{d(this,"CanvasExtraState")}alphaIsShape=!1;fontSize=0;fontSizeScale=1;textMatrix=null;textMatrixScale=1;fontMatrix=l1;leading=0;x=0;y=0;lineX=0;lineY=0;charSpacing=0;wordSpacing=0;textHScale=1;textRenderingMode=cs.FILL;textRise=0;fillColor="#000000";strokeColor="#000000";patternFill=!1;patternStroke=!1;fillAlpha=1;strokeAlpha=1;lineWidth=1;activeSMask=null;transferMaps="none";minMax=kr.slice();constructor(t,e){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}getPathBoundingBox(t=Ts.FILL,e=null){let s=this.minMax.slice();if(t===Ts.STROKE){e||Se("Stroke bounding box must include transform."),xt.singularValueDecompose2dScale(e,gi);let i=gi[0]*this.lineWidth/2,n=gi[1]*this.lineWidth/2;s[0]-=i,s[1]-=n,s[2]+=i,s[3]+=n}return s}updateClipFromPath(){let t=xt.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(kr,0)}getClippedPathBoundingBox(t=Ts.FILL,e=null){return xt.intersect(this.clipBox,this.getPathBoundingBox(t,e))}};d(j1,"putBinaryImageData");d(v1,"putBinaryImageMask");d(hr,"copyCtxState");d(Eo,"resetCtxToDefault");d(k1,"getImageSmoothingEnabled");pv=["butt","round","square"],mv=["miter","round","bevel"],gv={},Yp={};Tr=class Tr{static{d(this,"CanvasGraphics")}constructor(t,e,s,i,n,{optionalContentConfig:a,markedContentStack:r=null},o,l,c,h){this.ctx=t,this.current=new y1(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.commonObjs=e,this.objs=s,this.canvasFactory=i,this.filterFactory=n,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.smaskGroupCanvases=[],this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=r||[],this.optionalContentConfig=a,this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=l,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map,this.dependencyTracker=c??null,this.imagesTracker=h??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:i=null}){let n=this.ctx.canvas.width,a=this.ctx.canvas.height,r=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,n,a),this.ctx.fillStyle=r,s){let o=this.transparentCanvasEntry=this.canvasFactory.create(n,a);this.compositeCtx=this.ctx,{canvas:this.transparentCanvas,context:this.ctx}=o,this.ctx.save(),this.ctx.transform(...Re(this.compositeCtx))}this.ctx.save(),Eo(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...e.transform),this.viewportScale=e.scale,this.baseTransform=Re(this.ctx)}executeOperatorList(t,e,s,i,n){let{argsArray:a,fnArray:r}=t,o=e||0,l=a.length;if(l===o)return o;let c=l-o>Kp&&typeof s=="function",h=c?Date.now()+dv:0,f=0,u=this.commonObjs,p=this.objs,m,g;for(;;){if(i!==void 0){if(o===i.nextBreakPoint)return i.breakIt(o,s),o;if(i.shouldSkip(o)){if(++o===l)return o;continue}}if(!n||n(o))if(m=r[o],g=a[o]??null,m!==Nr.dependency)g===null?this[m](o):this[m](o,...g);else for(let w of g){this.dependencyTracker?.recordNamedData(w,o);let b=w.startsWith("g_")?u:p;if(!b.has(w))return b.get(w,s),o}if(o++,o===l)return o;if(c&&++f>Kp){if(Date.now()>h)return s(),o;f=0}}}#t(){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)}endDrawing(){this.#t();for(let t of this.smaskGroupCanvases)this.canvasFactory.destroy(t);this.smaskGroupCanvases.length=0,this.tempSMask=null,this.smaskStack.length=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(),this.#e()}#e(){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}}}_scaleImage(t,e){let s=t.width??t.displayWidth,i=t.height??t.displayHeight,n=Math.max(Math.hypot(e[0],e[1]),1),a=Math.max(Math.hypot(e[2],e[3]),1),r=[],o=n,l=a,c=s,h=i;for(;o>2&&c>1||l>2&&h>1;){let w=c,b=h;o>2&&c>1&&(w=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c/2),o/=c/w),l>2&&h>1&&(b=h>=16384?Math.floor(h/2)-1||1:Math.ceil(h)/2,l/=h/b),r.push({newWidth:w,newHeight:b}),c=w,h=b}if(r.length===0)return{img:t,paintWidth:s,paintHeight:i,tmpCanvas:null};if(r.length===1){let{newWidth:w,newHeight:b}=r[0],j=this.canvasFactory.create(w,b);return j.context.drawImage(t,0,0,s,i,0,0,w,b),{img:j.canvas,paintWidth:w,paintHeight:b,tmpCanvas:j}}let f=this.canvasFactory.create(1,1),u=this.canvasFactory.create(1,1),p=s,m=i,g=t;for(let{newWidth:w,newHeight:b}of r)this.canvasFactory.reset(u,w,b),u.context.drawImage(g,0,0,p,m,0,0,w,b),[f,u]=[u,f],g=f.canvas,p=w,m=b;return this.canvasFactory.destroy(u),{img:f.canvas,paintWidth:p,paintHeight:m,tmpCanvas:f}}_createMaskCanvas(t,e){let s=this.ctx,{width:i,height:n}=e,a=this.current.fillColor,r=this.current.patternFill,o=Re(s),l,c,h,f;if((e.bitmap||e.data)&&e.count>1){let E=e.bitmap||e.data.buffer;c=JSON.stringify(r?o:[o.slice(0,4),a]),l=this._cachedBitmapsMap.getOrInsertComputed(E,kf);let D=l.get(c);if(D&&!r){let O=Math.round(Math.min(o[0],o[2])+o[4]),$=Math.round(Math.min(o[1],o[3])+o[5]);return this.dependencyTracker?.recordDependencies(t,ki.transformAndFill),{canvas:D,offsetX:O,offsetY:$}}h=D}h||(f=this.canvasFactory.create(i,n),v1(f.context,e));let u=xt.transform(o,[1/i,0,0,-1/n,0,0]);u=xt.transform(u,[1,0,0,1,0,-n]);let p=kr.slice();xt.axialAlignedBoundingBox([0,0,i,n],u,p);let[m,g,w,b]=p,j=Math.round(w-m)||1,v=Math.round(b-g)||1,q=this.canvasFactory.create(j,v),x=q.context,k=m,A=g;x.translate(-k,-A),x.transform(...u);let S=null;if(!h){let E=this._scaleImage(f.canvas,Hi(x));h=E.img,S=E.tmpCanvas,h!==f.canvas&&(this.canvasFactory.destroy(f),f=null),l&&r&&(l.set(c,h),S=null,f=null)}x.imageSmoothingEnabled=k1(Re(x),e.interpolate),Fo(x,h,0,0,h.width,h.height,0,0,i,n),S&&this.canvasFactory.destroy(S),f&&this.canvasFactory.destroy(f),x.globalCompositeOperation="source-in";let I=xt.transform(Hi(x),[1,0,0,1,-k,-A]);return x.fillStyle=r?a.getPattern(s,this,I,Ts.FILL,t):a,x.fillRect(0,0,i,n),l&&!r&&l.set(c,q.canvas),this.dependencyTracker?.recordDependencies(t,ki.transformAndFill),{canvas:q.canvas,canvasEntry:l&&!r?null:q,offsetX:Math.round(k),offsetY:Math.round(A)}}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=pv[e]}setLineJoin(t,e){this.dependencyTracker?.recordSimpleData("lineJoin",t),this.ctx.lineJoin=mv[e]}setMiterLimit(t,e){this.dependencyTracker?.recordSimpleData("miterLimit",t),this.ctx.miterLimit=e}setDash(t,e,s){this.dependencyTracker?.recordSimpleData("dash",t);let i=this.ctx;i.setLineDash!==void 0&&(i.setLineDash(e),i.lineDashOffset=s)}setRenderingIntent(t,e){}setFlatness(t,e){}setGState(t,e){for(let[s,i]of e)switch(s){case"LW":this.setLineWidth(t,i);break;case"LC":this.setLineCap(t,i);break;case"LJ":this.setLineJoin(t,i);break;case"ML":this.setMiterLimit(t,i);break;case"D":this.setDash(t,i[0],i[1]);break;case"RI":this.setRenderingIntent(t,i);break;case"FL":this.setFlatness(t,i);break;case"Font":this.setFont(t,i[0],i[1]);break;case"CA":this.dependencyTracker?.recordSimpleData("strokeAlpha",t),this.current.strokeAlpha=i;break;case"ca":this.dependencyTracker?.recordSimpleData("fillAlpha",t),this.ctx.globalAlpha=this.current.fillAlpha=i;break;case"BM":this.dependencyTracker?.recordSimpleData("globalCompositeOperation",t),this.ctx.globalCompositeOperation=i;break;case"SMask":this.dependencyTracker?.recordSimpleData("SMask",t),this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.dependencyTracker?.recordSimpleData("filter",t),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){let t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(t){if(this.inSMaskMode)throw Error("beginSMaskMode called while already in smask mode");let e=this.ctx.canvas.width,s=this.ctx.canvas.height,i=this.canvasFactory.create(e,s);this.smaskScratchCanvas=i,this.suspendedCtx=this.ctx;let n=this.ctx=i.context;n.setTransform(this.suspendedCtx.getTransform()),hr(this.suspendedCtx,n),N8(n,this.suspendedCtx),this.setGState(t,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),hr(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null,this.canvasFactory.destroy(this.smaskScratchCanvas),this.smaskScratchCanvas=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let e=this.current.activeSMask,s=this.suspendedCtx;this.composeSMask(s,e,this.ctx,t),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,i){let n=i[0],a=i[1],r=i[2]-n,o=i[3]-a;r===0||o===0||(this.genericComposeSMask(e.context,s,r,o,e.subtype,e.backdrop,e.transferMap,n,a,e.offsetX,e.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(s.canvas,0,0),t.restore())}genericComposeSMask(t,e,s,i,n,a,r,o,l,c,h){let f=t.canvas,u=o-c,p=l-h,m=null;if(a)if(u<0||p<0||u+s>f.width||p+i>f.height){m=this.canvasFactory.create(s,i);let w=m.context;w.drawImage(f,-u,-p),w.globalCompositeOperation="destination-atop",w.fillStyle=a,w.fillRect(0,0,s,i),w.globalCompositeOperation="source-over",f=m.canvas,u=p=0}else{t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);let w=new Path2D;w.rect(u,p,s,i),t.clip(w),t.globalCompositeOperation="destination-atop",t.fillStyle=a,t.fillRect(u,p,s,i),t.restore()}e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0),n==="Alpha"&&r?e.filter=this.filterFactory.addAlphaFilter(r):n==="Luminosity"&&(e.filter=this.filterFactory.addLuminosityFilter(r));let g=new Path2D;g.rect(o,l,s,i),e.clip(g),e.globalCompositeOperation="destination-in",e.drawImage(f,u,p,s,i,o,l,s,i),e.restore(),m&&this.canvasFactory.destroy(m)}save(t){this.inSMaskMode&&hr(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&&hr(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}transform(t,e,s,i,n,a,r){this.dependencyTracker?.recordIncrementalData("transform",t),this.ctx.transform(e,s,i,n,a,r),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,e,s,i){let[n]=s;if(!i){n||=s[0]=new Path2D,this[e](t,n);return}if(this.dependencyTracker!==null){let a=e===Nr.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(t).recordBBox(t,this.ctx,i[0]-a,i[2]+a,i[1]-a,i[3]+a).recordDependencies(t,["transform"])}n instanceof Path2D||(n=s[0]=d0(n)),xt.axialAlignedBoundingBox(i,Re(this.ctx),this.current.minMax),this[e](t,n),this._pathStartIdx=t}closePath(t){this.ctx.closePath()}stroke(t,e,s=!0){let i=this.ctx,n=this.current.strokeColor;if(i.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof n=="object"&&n?.getPattern){let a=n.isModifyingCurrentTransform()?i.getTransform():null;if(i.save(),i.strokeStyle=n.getPattern(i,this,Hi(i),Ts.STROKE,t),a){let r=new Path2D;r.addPath(e,i.getTransform().invertSelf().multiplySelf(a)),e=r}this.rescaleAndStroke(e,!1),i.restore()}else this.rescaleAndStroke(e,!0);this.dependencyTracker?.recordDependencies(t,ki.stroke),s&&this.consumePath(t,e,this.current.getClippedPathBoundingBox(Ts.STROKE,Re(this.ctx))),i.globalAlpha=this.current.fillAlpha}closeStroke(t,e){this.stroke(t,e)}fill(t,e,s=!0){let i=this.ctx,n=this.current.fillColor,a=this.current.patternFill,r=!1;if(a){let l=n.isModifyingCurrentTransform()?i.getTransform():null;if(this.dependencyTracker?.save(t),i.save(),i.fillStyle=n.getPattern(i,this,Hi(i),Ts.FILL,t),l){let c=new Path2D;c.addPath(e,i.getTransform().invertSelf().multiplySelf(l)),e=c}r=!0}let o=this.current.getClippedPathBoundingBox();this.contentVisible&&o!==null&&(this.pendingEOFill?(i.fill(e,"evenodd"),this.pendingEOFill=!1):i.fill(e)),this.dependencyTracker?.recordDependencies(t,ki.fill),r&&(i.restore(),this.dependencyTracker?.restore(t)),s&&this.consumePath(t,e,o)}eoFill(t,e){this.pendingEOFill=!0,this.fill(t,e)}fillStroke(t,e){this.fill(t,e,!1),this.stroke(t,e,!1),this.consumePath(t,e)}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){this.ctx.fill(e),this.dependencyTracker?.recordDependencies(t,ki.rawFillPath).recordOperation(t)}clip(t){this.dependencyTracker?.recordFutureForcedDependency("clipMode",t),this.pendingClip=gv}eoClip(t){this.dependencyTracker?.recordFutureForcedDependency("clipMode",t),this.pendingClip=Yp}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:i}=this;e!==void 0&&i.recordFutureForcedDependency("textClip",i.getOpenMarker()).recordFutureForcedDependency("textClip",t),i.recordCloseMarker(t)}if(e!==void 0){let i=new Path2D,n=s.getTransform().invertSelf();for(let{transform:a,x:r,y:o,fontSize:l,path:c}of e)c&&i.addPath(c,new DOMMatrix(a).preMultiplySelf(n).translate(r,o).scale(l,-l));s.clip(i)}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 i=this.commonObjs.get(e),n=this.current;if(!i)throw Error(`Can't find font for ${e}`);if(n.fontMatrix=i.fontMatrix||l1,(n.fontMatrix[0]===0||n.fontMatrix[3]===0)&&ne("Invalid font matrix for font "+e),s<0?(s=-s,n.fontDirection=-1):n.fontDirection=1,this.current.font=i,this.current.fontSize=s,i.isType3Font)return;let a=i.loadedName||"sans-serif",r=i.systemFontInfo?.css||`"${a}", ${i.fallbackName}`,o="normal";i.black?o="900":i.bold&&(o="bold");let l=i.italic?"italic":"normal",c=s;s<Vp?c=Vp:s>Wp&&(c=Wp),this.current.fontSizeScale=s/c,this.ctx.font=`${l} ${o} ${c}px ${r}`}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)}#s(t,e,s){let i=new Path2D;return i.addPath(t,new DOMMatrix(s).invertSelf().multiplySelf(e)),i}paintChar(t,e,s,i,n,a){let r=this.ctx,o=this.current,l=o.font,c=o.textRenderingMode,h=o.fontSize/o.fontSizeScale,f=c&cs.FILL_STROKE_MASK,u=!!(c&cs.ADD_TO_PATH_FLAG),p=o.patternFill&&!l.missingFile,m=o.patternStroke&&!l.missingFile,g;if((l.disableFontFace||u||p||m)&&!l.missingFile&&(g=l.getPathGenerator(this.commonObjs,e)),g&&(l.disableFontFace||p||m)){r.save(),r.translate(s,i),r.scale(h,-h),this.dependencyTracker?.recordCharacterBBox(t,r,l);let w;if(f===cs.FILL||f===cs.FILL_STROKE)if(n){w=r.getTransform(),r.setTransform(...n);let b=this.#s(g,w,n);r.fill(b)}else r.fill(g);if(f===cs.STROKE||f===cs.FILL_STROKE)if(a){w||=r.getTransform(),r.setTransform(...a);let{a:b,b:j,c:v,d:q}=w,x=xt.inverseTransform(a),k=xt.transform([b,j,v,q,0,0],x);xt.singularValueDecompose2dScale(k,gi),r.lineWidth*=Math.max(gi[0],gi[1])/h,r.stroke(this.#s(g,w,a))}else r.lineWidth/=h,r.stroke(g);r.restore()}else(f===cs.FILL||f===cs.FILL_STROKE)&&(r.fillText(e,s,i),this.dependencyTracker?.recordCharacterBBox(t,r,l,h,s,i,()=>r.measureText(e))),(f===cs.STROKE||f===cs.FILL_STROKE)&&(this.dependencyTracker&&this.dependencyTracker?.recordCharacterBBox(t,r,l,h,s,i,()=>r.measureText(e)).recordDependencies(t,ki.stroke),r.strokeText(e,s,i));u&&((this.pendingTextPaths||=[]).push({transform:Re(r),x:s,y:i,fontSize:h,path:g}),this.dependencyTracker?.recordCharacterBBox(t,r,l,h,s,i))}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 i=!1;for(let n=3;n<s.length;n+=4)if(s[n]>0&&s[n]<255){i=!0;break}return se(this,"isFontSubpixelAAEnabled",i)}showText(t,e){this.dependencyTracker&&(this.dependencyTracker.recordDependencies(t,ki.showText).resetBBox(t),this.current.textRenderingMode&cs.ADD_TO_PATH_FLAG&&this.dependencyTracker.recordFutureForcedDependency("textClip",t).inheritPendingDependenciesAsFutureForcedDependencies());let s=this.current,i=s.font;if(i.isType3Font){this.showType3Text(t,e),this.dependencyTracker?.recordShowTextOperation(t);return}let n=s.fontSize;if(n===0){this.dependencyTracker?.recordOperation(t);return}let a=this.ctx,r=s.fontSizeScale,o=s.charSpacing,l=s.wordSpacing,c=s.fontDirection,h=s.textHScale*c,f=e.length,u=i.vertical,p=u?1:-1,m=i.defaultVMetrics,g=n*s.fontMatrix[0],w=s.textRenderingMode===cs.FILL&&!i.disableFontFace&&!s.patternFill;a.save(),s.textMatrix&&a.transform(...s.textMatrix),a.translate(s.x,s.y+s.textRise),c>0?a.scale(h,-1):a.scale(h,1);let b,j,v=s.textRenderingMode&cs.FILL_STROKE_MASK,q=v===cs.FILL||v===cs.FILL_STROKE,x=v===cs.STROKE||v===cs.FILL_STROKE;if(q&&s.patternFill){a.save();let E=s.fillColor.getPattern(a,this,Hi(a),Ts.FILL,t);b=Re(a),a.restore(),a.fillStyle=E}if(x&&s.patternStroke){a.save();let E=s.strokeColor.getPattern(a,this,Hi(a),Ts.STROKE,t);j=Re(a),a.restore(),a.strokeStyle=E}let{lineWidth:k,textMatrixScale:A}=s;if(A===0||k===0?x&&(k=this.getSinglePixelWidth()):k/=A,r!==1&&(a.scale(r,r),k/=r),a.lineWidth=k,i.isInvalidPDFjsFont){let E=[],D=0;for(let $ of e)E.push($.unicode),D+=$.width;let O=E.join("");if(a.fillText(O,0,0),this.dependencyTracker!==null){let $=a.measureText(O);this.dependencyTracker.recordBBox(t,this.ctx,-$.actualBoundingBoxLeft,$.actualBoundingBoxRight,-$.actualBoundingBoxAscent,$.actualBoundingBoxDescent).recordShowTextOperation(t)}s.x+=D*g*h,a.restore(),this.compose();return}let S=0,I;for(I=0;I<f;++I){let E=e[I];if(typeof E=="number"){S+=p*E*n/1000;continue}let D=!1,O=(E.isSpace?l:0)+o,$=E.fontChar,it=E.accent,W,H,L=E.width;if(u){let X=E.vmetric||m,St=-(E.vmetric?X[1]:L*0.5)*g,qt=X[2]*g;L=X?-X[0]:L,W=St/r,H=(S+qt)/r}else W=S/r,H=0;let rt;if(i.remeasure&&L>0){rt=a.measureText($);let X=rt.width*1000/n*r;if(L<X&&this.isFontSubpixelAAEnabled){let St=L/X;D=!0,a.save(),a.scale(St,1),W/=St}else L!==X&&(W+=(L-X)/2000*n/r)}if(this.contentVisible&&(E.isInFont||i.missingFile)){if(w&&!it)a.fillText($,W,H),this.dependencyTracker?.recordCharacterBBox(t,a,rt?{bbox:null}:i,n/r,W,H,()=>rt??a.measureText($));else if(this.paintChar(t,$,W,H,b,j),it){let X=W+n*it.offset.x/r,St=H-n*it.offset.y/r;this.paintChar(t,it.fontChar,X,St,b,j)}}let yt=u?L*g-O*c:L*g+O*c;S+=yt,D&&a.restore()}u?s.y-=S:s.x+=S*h,a.restore(),this.compose(),this.dependencyTracker?.recordShowTextOperation(t)}showType3Text(t,e){let s=this.ctx,i=this.current,n=i.font,a=i.fontSize,r=i.fontDirection,o=n.vertical?1:-1,l=i.charSpacing,c=i.wordSpacing,h=i.textHScale*r,f=i.fontMatrix||l1,u=e.length,p=i.textRenderingMode===cs.INVISIBLE,m,g,w,b;if(p||a===0)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,s.save(),i.textMatrix&&s.transform(...i.textMatrix),s.translate(i.x,i.y+i.textRise),s.scale(h,r);let j=this.dependencyTracker;for(this.dependencyTracker=j?new Mh(j,t):null,m=0;m<u;++m){if(g=e[m],typeof g=="number"){b=o*g*a/1000,this.ctx.translate(b,0),i.x+=b*h;continue}let v=(g.isSpace?c:0)+l,q=n.charProcOperatorList[g.operatorListId];q?this.contentVisible&&(this.save(),s.scale(a,a),s.transform(...f),this.executeOperatorList(q),this.restore()):ne(`Type3 character "${g.operatorListId}" is not available.`);let x=[g.width,0];xt.applyTransform(x,f),w=x[0]*a+v,s.translate(w,0),i.x+=w*h}s.restore(),j&&(this.dependencyTracker=j)}setCharWidth(t,e,s){}setCharWidthAndBounds(t,e,s,i,n,a,r){let o=new Path2D;o.rect(i,n,a-i,r-n),this.ctx.clip(o),this.dependencyTracker?.recordBBox(t,this.ctx,i,a,n,r).recordClipBox(t,this.ctx,i,a,n,r),this.endPath(t)}getColorN_Pattern(t,e){let s;if(e[0]==="TilingPattern"){let i=this.baseTransform||Re(this.ctx),n={createCanvasGraphics:d((a,r)=>new Tr(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new Mh(this.dependencyTracker,r,!0):null),"createCanvasGraphics")};s=new q0(e,this.ctx,n,i)}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),this.current.fillColor=this.getColorN_Pattern(t,e),this.current.patternFill=!0}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}setFillTransparent(t){this.dependencyTracker?.recordSimpleData("fillColor",t),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(t,e,s=null){let i;return this.cachedPatterns.has(e)?i=this.cachedPatterns.get(e):(i=_8(this.getObject(t,e)),this.cachedPatterns.set(e,i)),s&&(i.matrix=s),i}shadingFill(t,e){if(!this.contentVisible)return;let s=this.ctx;this.save(t);let i=this._getPattern(t,e);s.fillStyle=i.getPattern(s,this,Hi(s),Ts.SHADING,t);let n=Hi(s);if(n){let{width:a,height:r}=s.canvas,o=kr.slice();xt.axialAlignedBoundingBox([0,0,a,r],n,o);let[l,c,h,f]=o;this.ctx.fillRect(l,c,h-l,f-c)}else this.ctx.fillRect(-10000000000,-10000000000,20000000000,20000000000);this.dependencyTracker?.resetBBox(t).recordFullPageBBox(t).recordDependencies(t,ki.transform).recordDependencies(t,ki.fill).recordOperation(t),this.compose(this.current.getClippedPathBoundingBox()),this.restore(t)}beginInlineImage(){Se("Should not call beginInlineImage")}beginImageData(){Se("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=Re(this.ctx),s)){xt.axialAlignedBoundingBox(s,this.baseTransform,this.current.minMax);let[i,n,a,r]=s,o=new Path2D;o.rect(i,n,a-i,r-n),this.ctx.clip(o),this.dependencyTracker?.recordClipBox(t,this.ctx,i,a,n,r),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),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);let s=this.ctx;e.isolated||Ll("TODO: Support non-isolated groups."),e.knockout&&ne("Knockout groups not supported.");let i=Re(s);e.matrix&&s.transform(...e.matrix);let n=[0,0,s.canvas.width,s.canvas.height],a;e.bbox?(a=kr.slice(),xt.axialAlignedBoundingBox(e.bbox,Re(s),a),a=xt.intersect(a,n)||[0,0,0,0]):a=n;let r=Math.floor(a[0]),o=Math.floor(a[1]),l=Math.max(Math.ceil(a[2])-r,1),c=Math.max(Math.ceil(a[3])-o,1);this.current.startNewPathAndClipBox([0,0,l,c]),e.smask&&this.smaskCounter++;let h=this.canvasFactory.create(l,c);e.smask&&this.smaskGroupCanvases.push(h);let f=h.context;if(f.translate(-r,-o),f.transform(...i),e.bbox){let u=new Path2D,[p,m,g,w]=e.bbox;if(u.rect(p,m,g-p,w-m),e.matrix){let b=new Path2D;b.addPath(u,new DOMMatrix(e.matrix)),u=b}f.clip(u)}e.smask&&this.smaskStack.push({canvas:h.canvas,context:f,offsetX:r,offsetY:o,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}),(!e.smask||this.dependencyTracker)&&(s.setTransform(1,0,0,1,0,0),s.translate(r,o),s.save()),hr(s,f),this.ctx=f,this.dependencyTracker?.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(s),this.setGState(t,[["BM","source-over"],["ca",1],["CA",1],["TR",null]]),this.groupStack.push(s),this.groupLevel++}endGroup(t,e){if(!this.contentVisible)return;this.groupLevel--;let s=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,this.dependencyTracker?.popBaseTransform(),e.smask)this.tempSMask=this.smaskStack.pop(),this.restore(t),this.dependencyTracker&&this.ctx.restore();else{this.ctx.restore();let n=Re(this.ctx);this.restore(t),this.ctx.save(),this.ctx.setTransform(...n);let a=kr.slice();xt.axialAlignedBoundingBox([0,0,s.canvas.width,s.canvas.height],n,a),this.ctx.drawImage(s.canvas,0,0),this.ctx.restore(),this.canvasFactory.destroy({canvas:s.canvas,context:s}),this.compose(a)}}beginAnnotation(t,e,s,i,n,a){if(this.#t(),Eo(this.ctx),this.ctx.save(),this.save(t),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),s){let r=s[2]-s[0],o=s[3]-s[1];if(a&&this.annotationCanvasMap){i=i.slice(),i[4]-=s[0],i[5]-=s[1],s=s.slice(),s[0]=s[1]=0,s[2]=r,s[3]=o,xt.singularValueDecompose2dScale(Re(this.ctx),gi);let{viewportScale:l}=this,c=Math.ceil(r*this.outputScaleX*l),h=Math.ceil(o*this.outputScaleY*l);this.annotationCanvas=this.canvasFactory.create(c,h);let{canvas:f,context:u}=this.annotationCanvas;this.annotationCanvasMap.set(e,f),this.annotationCanvas.savedCtx=this.ctx,this.ctx=u,this.ctx.save(),this.ctx.setTransform(gi[0],0,0,-gi[1],0,o*gi[1]),Eo(this.ctx)}else{Eo(this.ctx),this.endPath(t);let l=new Path2D;l.rect(s[0],s[1],r,o),this.ctx.clip(l)}}this.current=new y1(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(t,...i),this.transform(t,...n)}endAnnotation(t){this.annotationCanvas&&(this.ctx.restore(),this.#e(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t,e){if(!this.contentVisible)return;let s=e.count;e=this.getObject(t,e.data,e),e.count=s;let i=this.ctx,n=this._createMaskCanvas(t,e),a=n.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(a,n.offsetX,n.offsetY),this.dependencyTracker?.resetBBox(t).recordBBox(t,this.ctx,n.offsetX,n.offsetX+a.width,n.offsetY,n.offsetY+a.height).recordOperation(t),i.restore(),n.canvasEntry&&this.canvasFactory.destroy(n.canvasEntry),this.compose()}paintImageMaskXObjectRepeat(t,e,s,i=0,n=0,a,r){if(!this.contentVisible)return;e=this.getObject(t,e.data,e);let o=this.ctx;o.save();let l=Re(o);o.transform(s,i,n,a,0,0);let c=this._createMaskCanvas(t,e);o.setTransform(1,0,0,1,c.offsetX-l[4],c.offsetY-l[5]),this.dependencyTracker?.resetBBox(t);for(let h=0,f=r.length;h<f;h+=2){let u=xt.transform(l,[s,i,n,a,r[h],r[h+1]]);o.drawImage(c.canvas,u[4],u[5]),this.dependencyTracker?.recordBBox(t,this.ctx,u[4],u[4]+c.canvas.width,u[5],u[5]+c.canvas.height)}o.restore(),c.canvasEntry&&this.canvasFactory.destroy(c.canvasEntry),this.compose(),this.dependencyTracker?.recordOperation(t)}paintImageMaskXObjectGroup(t,e){if(!this.contentVisible)return;let s=this.ctx,i=this.current.fillColor,n=this.current.patternFill;this.dependencyTracker?.resetBBox(t).recordDependencies(t,ki.transformAndFill);for(let a of e){let{data:r,width:o,height:l,transform:c}=a,h=this.canvasFactory.create(o,l),f=h.context;f.save();let u=this.getObject(t,r,a);v1(f,u),f.globalCompositeOperation="source-in",f.fillStyle=n?i.getPattern(f,this,Hi(s),Ts.FILL,t):i,f.fillRect(0,0,o,l),f.restore(),s.save(),s.transform(...c),s.scale(1,-1),Fo(s,h.canvas,0,0,o,l,0,-1,1,1),this.canvasFactory.destroy(h),this.dependencyTracker?.recordBBox(t,s,0,o,0,l),s.restore()}this.compose(),this.dependencyTracker?.recordOperation(t)}paintImageXObject(t,e){if(!this.contentVisible)return;let s=this.getObject(t,e);if(!s){ne("Dependent image isn't ready yet");return}this.paintInlineImageXObject(t,s)}paintImageXObjectRepeat(t,e,s,i,n){if(!this.contentVisible)return;let a=this.getObject(t,e);if(!a){ne("Dependent image isn't ready yet");return}let{width:r,height:o}=a,l=[];for(let c=0,h=n.length;c<h;c+=2)l.push({transform:[s,0,0,i,n[c],n[c+1]],x:0,y:0,w:r,h:o});this.paintInlineImageXObjectGroup(t,a,l)}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:i}=t,n=this.canvasFactory.create(s,i),a=n.context;return a.filter=this.current.transferMaps,a.drawImage(e,0,0),a.filter="none",{img:n.canvas,canvasEntry:n}}paintInlineImageXObject(t,e){if(!this.contentVisible)return;let{width:s,height:i}=e,n=this.ctx;this.save(t);let{filter:a}=n;a!=="none"&&a!==""&&(n.filter="none"),n.scale(1/s,-1/i);let r,o=null;if(e.bitmap){let c=this.applyTransferMapsToBitmap(e);r=c.img,o=c.canvasEntry}else if(typeof HTMLElement=="function"&&e instanceof HTMLElement||!e.data)r=e;else{let c=this.canvasFactory.create(s,i);j1(c.context,e),r=this.applyTransferMapsToCanvas(c.context),o=c}let l=this._scaleImage(r,Hi(n));n.imageSmoothingEnabled=k1(Re(n),e.interpolate),this.dependencyTracker&&(this.dependencyTracker.resetBBox(t).recordBBox(t,n,0,s,-i,0).recordDependencies(t,ki.imageXObject).recordOperation(t),this.imagesTracker?.record(n,s,i,this.dependencyTracker.clipBox)),Fo(n,l.img,0,0,l.paintWidth,l.paintHeight,0,-i,s,i),l.tmpCanvas&&this.canvasFactory.destroy(l.tmpCanvas),o&&this.canvasFactory.destroy(o),this.compose(),this.restore(t)}paintInlineImageXObjectGroup(t,e,s){if(!this.contentVisible)return;let i=this.ctx,n,a=null;if(e.bitmap)n=e.bitmap;else{let{width:r,height:o}=e,l=this.canvasFactory.create(r,o);j1(l.context,e),n=this.applyTransferMapsToCanvas(l.context),a=l}this.dependencyTracker?.resetBBox(t);for(let r of s)i.save(),i.transform(...r.transform),i.scale(1,-1),Fo(i,n,r.x,r.y,r.w,r.h,0,-1,1,1),this.dependencyTracker?.recordBBox(t,i,0,1,-1,0),i.restore();a&&this.canvasFactory.destroy(a),this.dependencyTracker?.recordOperation(t),this.compose()}paintSolidColorImageMask(t){this.contentVisible&&(this.dependencyTracker?.resetBBox(t).recordBBox(t,this.ctx,0,1,0,1).recordDependencies(t,ki.fill).recordOperation(t),this.ctx.fillRect(0,0,1,1),this.compose())}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 i=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(s);let n=this.ctx;this.pendingClip?(i||(this.pendingClip===Yp?n.clip(e,"evenodd"):n.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=Re(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]),i=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(s,i)/e}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){let{lineWidth:t}=this.current,{a:e,b:s,c:i,d:n}=this.ctx.getTransform(),a,r;if(s===0&&i===0){let o=Math.abs(e),l=Math.abs(n);if(o===l)if(t===0)a=r=1/o;else{let c=o*t;a=r=c<1?1/c:1}else if(t===0)a=1/o,r=1/l;else{let c=o*t,h=l*t;a=c<1?1/c:1,r=h<1?1/h:1}}else{let o=Math.abs(e*n-s*i),l=Math.hypot(e,s),c=Math.hypot(i,n);if(t===0)a=c/o,r=l/o;else{let h=t*o;a=c>h?c/h:1,r=l>h?l/h:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=r}return this._cachedScaleForStroking}rescaleAndStroke(t,e){let{ctx:s,current:{lineWidth:i}}=this,[n,a]=this.getScaleForStroking();if(n===a){s.lineWidth=(i||1)*n,s.stroke(t);return}let r=s.getLineDash();e&&s.save(),s.scale(n,a),Qf.a=1/n,Qf.d=1/a;let o=new Path2D;if(o.addPath(t,Qf),r.length>0){let l=Math.max(n,a);s.setLineDash(r.map((c)=>c/l)),s.lineDashOffset/=l}s.lineWidth=i||1,s.stroke(o),e&&s.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}};for(let t in Nr)Tr.prototype[t]!==void 0&&(Tr.prototype[Nr[t]]=Tr.prototype[t]);Kl=class Kl{static{d(this,"BasePDFStream")}#t=null;#e=null;_fullReader=null;_rangeReaders=new Set;_source=null;constructor(t,e,s){this._source=t,this.#t=e,this.#e=s}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return Oe(!this._fullReader,"BasePDFStream.getFullReader can only be called once."),this._fullReader=new this.#t(this)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;let s=new this.#e(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)}};Yl=class Yl{static{d(this,"BasePDFStreamReader")}onProgress=null;_contentLength=0;_filename=null;_headersCapability=Promise.withResolvers();_isRangeSupported=!1;_isStreamingSupported=!1;_loaded=0;_stream=null;constructor(t){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(){Se("Abstract method `read` called")}cancel(t){Se("Abstract method `cancel` called")}};Xl=class Xl{static{d(this,"BasePDFStreamRangeReader")}_stream=null;constructor(t,e,s){this._stream=t}async read(){Se("Abstract method `read` called")}cancel(t){Se("Abstract method `cancel` called")}};d(L8,"getFilenameFromContentDispositionHeader");d(x0,"createHeaders");d(Ql,"getResponseOrigin");d(A0,"validateRangeRequestCapabilities");d(S0,"extractFilenameFromHeader");d(Jl,"createResponseError");d(C0,"ensureResponseOrigin");d(I0,"fetchUrl");d(T0,"ensureResponseStatus");d(Zl,"getArrayBuffer");z8=class z8 extends Kl{static{d(this,"PDFFetchStream")}_responseOrigin=null;constructor(t){super(t,U8,G8);let{httpHeaders:e,url:s}=t;Oe(/https?:/.test(s.protocol),"PDFFetchStream only supports http(s):// URLs."),this.headers=x0(!0,e)}};U8=class U8 extends Yl{static{d(this,"PDFFetchStreamReader")}_abortController=new AbortController;_reader=null;constructor(t){super(t);let{disableRange:e,disableStream:s,rangeChunkSize:i,url:n,withCredentials:a}=t._source;this._isStreamingSupported=!s;let r=new Headers(t.headers);I0(n,r,a,this._abortController).then((o)=>{t._responseOrigin=Ql(o.url),T0(o.status,n),this._reader=o.body.getReader();let l=o.headers,{contentLength:c,isRangeSupported:h}=A0({responseHeaders:l,isHttp:!0,rangeChunkSize:i,disableRange:e});this._contentLength=c,this._isRangeSupported=h,this._filename=S0(l),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new hn("Streaming is disabled.")),this._headersCapability.resolve()}).catch(this._headersCapability.reject)}async read(){await this._headersCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,this._callOnProgress(),{value:Zl(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}};G8=class G8 extends Xl{static{d(this,"PDFFetchStreamRangeReader")}_abortController=new AbortController;_readCapability=Promise.withResolvers();_reader=null;constructor(t,e,s){super(t,e,s);let{url:i,withCredentials:n}=t._source,a=new Headers(t.headers);a.append("Range",`bytes=${e}-${s-1}`),I0(i,a,n,this._abortController).then((r)=>{let o=Ql(r.url);C0(o,t._responseOrigin),T0(r.status,i),this._reader=r.body.getReader(),this._readCapability.resolve()}).catch(this._readCapability.reject)}async read(){await this._readCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:{value:Zl(t),done:!1}}cancel(t){this._reader?.cancel(t),this._abortController.abort()}};d(q1,"transport_stream_getArrayBuffer");d(tc,"endRequests");$8=class $8 extends Kl{static{d(this,"PDFDataTransportStream")}_progressiveDone=!1;_queuedChunks=[];constructor(t){super(t,V8,W8);let{pdfDataRangeTransport:e}=t,{initialData:s,progressiveDone:i}=e;if(s?.length>0){let n=q1(s);this._queuedChunks.push(n)}this._progressiveDone=i,e.addRangeListener((n,a)=>{this.#t(n,a)}),e.addProgressiveReadListener((n)=>{this.#t(void 0,n)}),e.addProgressiveDoneListener(()=>{this._fullReader?.progressiveDone(),this._progressiveDone=!0}),e.transportReady()}#t(t,e){let s=q1(e);if(t===void 0)this._fullReader?this._fullReader._enqueue(s):this._queuedChunks.push(s);else{let i=this._rangeReaders.keys().find((n)=>n._begin===t);Oe(i,"#onReceiveData - no `PDFDataTransportStreamRangeReader` instance found."),i._enqueue(s)}}getFullReader(){let t=super.getFullReader();return this._queuedChunks=null,t}getRangeReader(t,e){let s=super.getRangeReader(t,e);return s&&(s.onDone=()=>this._rangeReaders.delete(s),this._source.pdfDataRangeTransport.requestDataRange(t,e)),s}cancelAllRequests(t){super.cancelAllRequests(t),this._source.pdfDataRangeTransport.abort()}};V8=class V8 extends Yl{static{d(this,"PDFDataTransportStreamReader")}#t=tc.bind(this);_done=!1;_queuedChunks=null;_requests=[];constructor(t){super(t);let{pdfDataRangeTransport:e,disableRange:s,disableStream:i}=t._source,{length:n,contentDispositionFilename:a}=e;this._queuedChunks=t._queuedChunks||[];for(let o of this._queuedChunks)this._loaded+=o.byteLength;this._done=t._progressiveDone,this._contentLength=n,this._isStreamingSupported=!i,this._isRangeSupported=!s,Vl(a)&&(this._filename=a),this._headersCapability.resolve();let r=this._loaded;Promise.resolve().then(()=>{r>0&&this._loaded===r&&this._callOnProgress()})}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.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 t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this.#t()}progressiveDone(){this._done||=!0,this._queuedChunks.length===0&&this.#t()}};W8=class W8 extends Xl{static{d(this,"PDFDataTransportStreamRangeReader")}#t=tc.bind(this);onDone=null;_begin=-1;_done=!1;_queuedChunk=null;_requests=[];constructor(t,e,s){super(t,e,s),this._begin=e}_enqueue(t){this._done||(this._requests.length===0?this._queuedChunk=t:(this._requests.shift().resolve({value:t,done:!1}),this.#t()),this._done=!0,this.onDone?.())}async read(){if(this._queuedChunk){let e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this.#t(),this.onDone?.()}};d(K8,"network_getArrayBuffer");Y8=class Y8 extends Kl{static{d(this,"PDFNetworkStream")}#t=new WeakMap;_responseOrigin=null;constructor(t){super(t,X8,Q8);let{httpHeaders:e,url:s}=t;this.url=s,this.isHttp=/https?:/.test(s.protocol),this.headers=x0(this.isHttp,e)}_request(t){let e=new XMLHttpRequest,s={validateStatus:null,onHeadersReceived:t.onHeadersReceived,onDone:t.onDone,onError:t.onError,onProgress:t.onProgress};this.#t.set(e,s),e.open("GET",this.url),e.withCredentials=this._source.withCredentials;for(let[i,n]of this.headers)e.setRequestHeader(i,n);return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),s.validateStatus=(i)=>i===Xp||i===Jf):s.validateStatus=(i)=>i===Jf,e.responseType="arraybuffer",Oe(t.onError,"Expected `onError` callback to be provided."),e.onerror=()=>t.onError(e.status),e.onreadystatechange=this.#s.bind(this,e),e.onprogress=this.#e.bind(this,e),e.send(null),e}#e(t,e){this.#t.get(t)?.onProgress?.(e)}#s(t,e){let s=this.#t.get(t);if(!s||(t.readyState>=2&&s.onHeadersReceived&&(s.onHeadersReceived(),delete s.onHeadersReceived),t.readyState!==4)||!this.#t.has(t))return;if(this.#t.delete(t),t.status===0&&this.isHttp){s.onError(t.status);return}let i=t.status||Jf;if(!s.validateStatus(i)){s.onError(t.status);return}let n=K8(t.response);if(i===Xp){let a=t.getResponseHeader("Content-Range");/bytes (\d+)-(\d+)\/(\d+)/.test(a)?s.onDone(n):(ne('Missing or invalid "Content-Range" header.'),s.onError(0))}else n?s.onDone(n):s.onError(t.status)}_abortRequest(t){this.#t.has(t)&&(this.#t.delete(t),t.abort())}getRangeReader(t,e){let s=super.getRangeReader(t,e);return s&&(s.onClosed=()=>this._rangeReaders.delete(s)),s}};X8=class X8 extends Yl{static{d(this,"PDFNetworkStreamReader")}#t=tc.bind(this);_cachedChunks=[];_done=!1;_requests=[];_storedError=null;constructor(t){super(t),this._fullRequestXhr=t._request({onHeadersReceived:this.#e.bind(this),onDone:this.#s.bind(this),onError:this.#i.bind(this),onProgress:this.#n.bind(this)})}#e(){let t=this._stream,{disableRange:e,rangeChunkSize:s}=t._source,i=this._fullRequestXhr;t._responseOrigin=Ql(i.responseURL);let n=i.getAllResponseHeaders(),a=new Headers(n?n.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map((l)=>{let[c,...h]=l.split(": ");return[c,h.join(": ")]}):[]),{contentLength:r,isRangeSupported:o}=A0({responseHeaders:a,isHttp:t.isHttp,rangeChunkSize:s,disableRange:e});this._contentLength=r,this._isRangeSupported=o,this._filename=S0(a),this._isRangeSupported&&t._abortRequest(i),this._headersCapability.resolve()}#s(t){this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._cachedChunks.push(t),this._done=!0,this._cachedChunks.length===0&&this.#t()}#i(t){this._storedError=Jl(t,this._stream.url),this._headersCapability.reject(this._storedError);for(let e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}#n(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}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 t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersCapability.reject(t),this.#t(),this._stream._abortRequest(this._fullRequestXhr),this._fullRequestXhr=null}};Q8=class Q8 extends Xl{static{d(this,"PDFNetworkStreamRangeReader")}#t=tc.bind(this);onClosed=null;_done=!1;_queuedChunk=null;_requests=[];_storedError=null;constructor(t,e,s){super(t,e,s),this._requestXhr=t._request({begin:e,end:s,onHeadersReceived:this.#e.bind(this),onDone:this.#s.bind(this),onError:this.#i.bind(this),onProgress:null})}#e(){let t=Ql(this._requestXhr?.responseURL);try{C0(t,this._stream._responseOrigin)}catch(e){this._storedError=e,this.#i(0)}}#s(t){this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this.#t(),this.onClosed?.()}#i(t){this._storedError??=Jl(t,this._stream.url);for(let e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){let e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this.#t(),this._stream._abortRequest(this._requestXhr),this.onClosed?.()}};d(F0,"getReadableStream");J8=class J8 extends Kl{static{d(this,"PDFNodeStream")}constructor(t){super(t,Z8,t7);let{url:e}=t;Oe(e.protocol==="file:","PDFNodeStream only supports file:// URLs.")}};Z8=class Z8 extends Yl{static{d(this,"PDFNodeStreamReader")}_reader=null;constructor(t){super(t);let{disableRange:e,disableStream:s,rangeChunkSize:i,url:n}=t._source;this._isStreamingSupported=!s;let a=process.getBuiltinModule("fs");a.promises.lstat(n).then((r)=>{let o=a.createReadStream(n),l=F0(o);this._reader=l.getReader();let{size:c}=r;this._contentLength=c,this._isRangeSupported=!e&&c>2*i,!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new hn("Streaming is disabled.")),this._headersCapability.resolve()}).catch((r)=>{r.code==="ENOENT"&&(r=Jl(0,n)),this._headersCapability.reject(r)})}async read(){await this._headersCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,this._callOnProgress(),{value:Zl(t),done:!1})}cancel(t){this._reader?.cancel(t)}};t7=class t7 extends Xl{static{d(this,"PDFNodeStreamRangeReader")}_readCapability=Promise.withResolvers();_reader=null;constructor(t,e,s){super(t,e,s);let{url:i}=t._source,n=process.getBuiltinModule("fs");try{let a=n.createReadStream(i,{start:e,end:s-1}),r=F0(a);this._reader=r.getReader(),this._readCapability.resolve()}catch(a){this._readCapability.reject(a)}}async read(){await this._readCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:{value:Zl(t),done:!1}}cancel(t){this._reader?.cancel(t)}};d(e7,"getNetworkStream");Ra=class Ra{static{d(this,"GlobalWorkerOptions")}static#t=null;static#e="";static get workerPort(){return this.#t}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw Error("Invalid `workerPort` type.");this.#t=t}static get workerSrc(){return this.#e}static set workerSrc(t){if(typeof t!="string")throw Error("Invalid `workerSrc` type.");this.#e=t}};s7=class s7{static{d(this,"Metadata")}#t;#e;constructor({parsedData:t,rawData:e}){this.#t=t,this.#e=e}getRaw(){return this.#e}get(t){return this.#t.get(t)??null}[Symbol.iterator](){return this.#t.entries()}};fr=Symbol("INTERNAL");i7=class i7{static{d(this,"OptionalContentGroup")}#t=!1;#e=!1;#s=!1;#i=!0;constructor(t,{name:e,intent:s,usage:i,rbGroups:n}){this.#t=!!(t&ui.DISPLAY),this.#e=!!(t&ui.PRINT),this.name=e,this.intent=s,this.usage=i,this.rbGroups=n}get visible(){if(this.#s)return this.#i;if(!this.#i)return!1;let{print:t,view:e}=this.usage;return this.#t?e?.viewState!=="OFF":this.#e?t?.printState!=="OFF":!0}_setVisible(t,e,s=!1){t!==fr&&Se("Internal method `_setVisible` called."),this.#s=s,this.#i=e}};n7=class n7{static{d(this,"OptionalContentConfig")}#t=null;#e=new Map;#s=null;#i=null;constructor(t,e=ui.DISPLAY){if(this.renderingIntent=e,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,this.#i=t.order;for(let s of t.groups)this.#e.set(s.id,new i7(e,s));if(t.baseState==="OFF")for(let s of this.#e.values())s._setVisible(fr,!1);for(let s of t.on)this.#e.get(s)._setVisible(fr,!0);for(let s of t.off)this.#e.get(s)._setVisible(fr,!1);this.#s=this.getHash()}}#n(t){let e=t.length;if(e<2)return!0;let s=t[0];for(let i=1;i<e;i++){let n=t[i],a;if(Array.isArray(n))a=this.#n(n);else if(this.#e.has(n))a=this.#e.get(n).visible;else return ne(`Optional content group not found: ${n}`),!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"}isVisible(t){if(this.#e.size===0)return!0;if(!t)return Ll("Optional content group not defined."),!0;if(t.type==="OCG")return this.#e.has(t.id)?this.#e.get(t.id).visible:(ne(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return this.#n(t.expression);if(!t.policy||t.policy==="AnyOn"){for(let e of t.ids){if(!this.#e.has(e))return ne(`Optional content group not found: ${e}`),!0;if(this.#e.get(e).visible)return!0}return!1}else if(t.policy==="AllOn"){for(let e of t.ids){if(!this.#e.has(e))return ne(`Optional content group not found: ${e}`),!0;if(!this.#e.get(e).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(let e of t.ids){if(!this.#e.has(e))return ne(`Optional content group not found: ${e}`),!0;if(!this.#e.get(e).visible)return!0}return!1}else if(t.policy==="AllOff"){for(let e of t.ids){if(!this.#e.has(e))return ne(`Optional content group not found: ${e}`),!0;if(this.#e.get(e).visible)return!1}return!0}return ne(`Unknown optional content policy ${t.policy}.`),!0}return ne(`Unknown group type ${t.type}.`),!0}setVisibility(t,e=!0,s=!0){let i=this.#e.get(t);if(!i){ne(`Optional content group not found: ${t}`);return}if(s&&e&&i.rbGroups.length)for(let n of i.rbGroups)for(let a of n)a!==t&&this.#e.get(a)?._setVisible(fr,!1,!0);i._setVisible(fr,!!e,!0),this.#t=null}setOCGState({state:t,preserveRB:e}){let s;for(let i of t){switch(i){case"ON":case"OFF":case"Toggle":s=i;continue}let n=this.#e.get(i);if(n)switch(s){case"ON":this.setVisibility(i,!0,e);break;case"OFF":this.setVisibility(i,!1,e);break;case"Toggle":this.setVisibility(i,!n.visible,e);break}}this.#t=null}get hasInitialVisibility(){return this.#s===null||this.getHash()===this.#s}getOrder(){return this.#e.size?this.#i?this.#i.slice():[...this.#e.keys()]:null}getGroup(t){return this.#e.get(t)||null}getHash(){if(this.#t!==null)return this.#t;let t=new b0;for(let[e,s]of this.#e)t.update(`${e}:${s.visible}`);return this.#t=t.hexdigest()}[Symbol.iterator](){return this.#e.entries()}};a7=class a7{static{d(this,"PagesMapper")}#t=null;#e=null;#s=0;#i=null;#n=null;get pagesNumber(){return this.#s}set pagesNumber(t){this.#s!==t&&(this.#s=t,this.#t=null,this.#e=null)}#a(){if(this.#t)return;let t=this.#s,e=this.#t=new Uint32Array(t);for(let s=0;s<t;s++)e[s]=s+1;this.#e=new Int32Array(e)}#r(){let t=new Map,e=this.#t;for(let s=0,i=this.#s;s<i;s++){let n=e[s],a=t.get(n);a?a.push(s+1):t.set(n,[s+1])}return t}movePages(t,e,s){this.#a();let i=this.#t,n=this.#r(),a=e.length,r=new Uint32Array(a),o=0;for(let f=0;f<a;f++){let u=e[f]-1;r[f]=i[u],u<s&&o++}let l=this.#s,c=l-a,h=rs(s-o,0,c);for(let f=0,u=0;f<l;f++)t.has(f+1)||(i[u++]=i[f]);i.copyWithin(h+a,h,c),i.set(r,h),this.#o(n),i.every((f,u)=>f===u+1)&&(this.#t=null)}deletePages(t){this.#a();let e=this.#t,s=this.#r();this.#n={pageNumberToId:e.slice(),pagesNumber:this.#s,prevPageNumbers:this.#e.slice()};let i=this.#s-t.length;this.#s=i;let n=this.#t=new Uint32Array(i);this.#e=new Int32Array(i);let a=0,r=0;for(let o of t){let l=o-1;l!==a&&(n.set(e.subarray(a,l),r),r+=l-a),a=l+1}a<e.length&&n.set(e.subarray(a),r),this.#o(s,new Set(t))}cancelDelete(){this.#n&&(this.#t=this.#n.pageNumberToId,this.#s=this.#n.pagesNumber,this.#e=this.#n.prevPageNumbers,this.#n=null)}cleanSavedData(){this.#n=null}copyPages(t){this.#a(),this.#i={pageNumbers:t,pageIds:t.map((e)=>this.#t[e-1])}}cancelCopy(){this.#i=null}pastePages(t){this.#a();let e=this.#t,s=this.#r(),{pageNumbers:i,pageIds:n}=this.#i,a=this.#s+i.length;this.#s=a;let r=this.#t=new Uint32Array(a);this.#e=new Int32Array(a),r.set(e.subarray(0,t),0),r.set(n,t),r.set(e.subarray(t),t+i.length),this.#o(s,null,t,i),this.#i=null}#o(t,e=null,s=-1,i=null){let n=this.#e,a=this.#t,r=s+(i?.length??0),o=new Map;for(let l=0,c=this.#s;l<c;l++){if(l>=s&&l<r){n[l]=-i[l-s];continue}let h=a[l],f=t.get(h),u=o.get(h)||0;if(e&&f)for(;u<f.length&&e.has(f[u]);)u++;n[l]=f?.[u],o.set(h,u+1)}}hasBeenAltered(){return this.#t!==null}getPageMappingForSaving(t=null){t??=this.#r();let e=0;for(let i of t.values())e=Math.max(e,i.length);let s=Array(e);for(let i=0;i<e;i++)s[i]={document:null,pageIndices:[],includePages:[]};for(let[i,n]of t)for(let a=0,r=n.length;a<r;a++)s[a].includePages.push([i-1,n[a]-1]);for(let{includePages:i,pageIndices:n}of s){i.sort((a,r)=>a[0]-r[0]);for(let a=0,r=i.length;a<r;a++)n.push(i[a][1]),i[a]=i[a][0]}return s}extractPages(t){t=Array.from(t).sort((s,i)=>s-i);let e=new Map;for(let s=0,i=t.length;s<i;s++){let n=this.getPageId(t[s]);e.getOrInsertComputed(n,vf).push(s+1)}return this.getPageMappingForSaving(e)}getPrevPageNumber(t){return this.#e?.[t-1]??0}getPageNumber(t){if(!this.#t)return t;let e=this.#t;for(let s=0,i=this.#s;s<i;s++)if(e[s]===t)return s+1;return 0}getPageId(t){return this.#t?.[t-1]??t}getMapping(){return this.#t?.subarray(0,this.pagesNumber)}};ur=Symbol("INITIAL_DATA"),Qp=d(()=>({...Promise.withResolvers(),data:ur}),"dataObj");E0=class E0{static{d(this,"PDFObjects")}#t=new Map;get(t,e=null){if(e){let i=this.#t.getOrInsertComputed(t,Qp);return i.promise.then(()=>e(i.data)),null}let s=this.#t.get(t);if(!s||s.data===ur)throw Error(`Requesting object that isn't resolved yet ${t}.`);return s.data}has(t){let e=this.#t.get(t);return!!e&&e.data!==ur}delete(t){let e=this.#t.get(t);return!e||e.data===ur?!1:(this.#t.delete(t),!0)}resolve(t,e=null){let s=this.#t.getOrInsertComputed(t,Qp);if(s.data!==ur)throw Error(`Object already resolved ${t}.`);s.data=e,s.resolve()}clear(){for(let{data:t}of this.#t.values())t?.bitmap?.close();this.#t.clear()}*[Symbol.iterator](){for(let[t,{data:e}]of this.#t)e!==ur&&(yield[t,e])}};ti=class ti{static{d(this,"TextLayer")}#t=Promise.withResolvers();#e=null;#s=!1;#i=!!globalThis.FontInspector?.enabled;#n=null;#a=null;#r=null;#o=0;#l=0;#c=null;#u=null;#h=0;#d=0;#g=Object.create(null);#m=[];#f=null;#p=[];#b=new WeakMap;#v=null;static#y=new Map;static#q=new Map;static#C=new WeakMap;static#w=null;static#x=new Set;constructor({textContentSource:t,images:e,container:s,viewport:i}){if(t instanceof ReadableStream)this.#f=t;else if(typeof t=="object")this.#f=new ReadableStream({start(l){l.enqueue(t),l.close()}});else throw Error('No "textContentSource" parameter specified.');this.#e=this.#u=s,this.#n=e,this.#d=i.scale*Ki.pixelRatio,this.#h=i.rotation,this.#r={div:null,properties:null,ctx:null};let{pageWidth:n,pageHeight:a,pageX:r,pageY:o}=i.rawDims;this.#v=[1,0,0,-1,-r,o+a],this.#l=n,this.#o=a,ti.#B(),s.style.setProperty("--min-font-size",ti.#w),_n(s,i),this.#t.promise.finally(()=>{ti.#x.delete(this),this.#r=null,this.#g=null}).catch(()=>{})}static get fontFamilyMap(){let{isWindows:t,isFirefox:e}=es.platform;return se(this,"fontFamilyMap",new Map([["sans-serif",`${t&&e?"Calibri, ":""}sans-serif`],["monospace",`${t&&e?"Lucida Console, ":""}monospace`]]))}render(){this.#n&&this.#e.append(this.#n.render());let t=d(()=>{this.#c.read().then(({value:e,done:s})=>{if(s){this.#t.resolve();return}this.#a??=e.lang,Object.assign(this.#g,e.styles),this.#k(e.items),t()},this.#t.reject)},"pump");return this.#c=this.#f.getReader(),ti.#x.add(this),t(),this.#t.promise}update({viewport:t,onBefore:e=null}){let s=t.scale*Ki.pixelRatio,i=t.rotation;if(i!==this.#h&&(e?.(),this.#h=i,_n(this.#u,{rotation:i})),s!==this.#d){e?.(),this.#d=s;let n={div:null,properties:null,ctx:ti.#F(this.#a)};for(let a of this.#p)n.properties=this.#b.get(a),n.div=a,this.#T(n)}}cancel(){let t=new hn("TextLayer task cancelled.");this.#c?.cancel(t).catch(()=>{}),this.#c=null,this.#t.reject(t)}get textDivs(){return this.#p}get textContentItemsStr(){return this.#m}#k(t){if(this.#s)return;this.#r.ctx??=ti.#F(this.#a);let e=this.#p,s=this.#m;for(let i of t){if(e.length>bv){ne("Ignoring additional textDivs for performance reasons."),this.#s=!0;return}if(i.str===void 0){if(i.type==="beginMarkedContentProps"||i.type==="beginMarkedContent"){let n=this.#e;this.#e=document.createElement("span"),this.#e.classList.add("markedContent"),i.id&&this.#e.setAttribute("id",`${i.id}`),i.tag==="Artifact"&&(this.#e.ariaHidden=!0),n.append(this.#e)}else i.type==="endMarkedContent"&&(this.#e=this.#e.parentNode);continue}s.push(i.str),this.#S(i)}}#S(t){let e=document.createElement("span"),s={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};this.#p.push(e);let i=xt.transform(this.#v,t.transform),n=Math.atan2(i[1],i[0]),a=this.#g[t.fontName];a.vertical&&(n+=Math.PI/2);let r=this.#i&&a.fontSubstitution||a.fontFamily;r=ti.fontFamilyMap.get(r)||r;let o=Math.hypot(i[2],i[3]),l=o*ti.#E(r,a,this.#a),c,h;n===0?(c=i[4],h=i[5]-l):(c=i[4]+l*Math.sin(n),h=i[5]-l*Math.cos(n));let f=e.style;f.left=`${(100*c/this.#l).toFixed(2)}%`,f.top=`${(100*h/this.#o).toFixed(2)}%`,f.setProperty("--font-height",`${o.toFixed(2)}px`),f.fontFamily=r,s.fontSize=o,e.setAttribute("role","presentation"),e.textContent=t.str,e.dir=t.dir,this.#i&&(e.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),n!==0&&(s.angle=n*(180/Math.PI));let u=!1;if(t.str.length>1)u=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){let p=Math.abs(t.transform[0]),m=Math.abs(t.transform[3]);p!==m&&Math.max(p,m)/Math.min(p,m)>1.5&&(u=!0)}if(u&&(s.canvasWidth=a.vertical?t.height:t.width),this.#b.set(e,s),this.#r.div=e,this.#r.properties=s,this.#T(this.#r),s.hasText&&this.#e.append(e),s.hasEOL){let p=document.createElement("br");p.setAttribute("role","presentation"),this.#e.append(p)}}#T(t){let{div:e,properties:s,ctx:i}=t,{style:n}=e;if(s.canvasWidth!==0&&s.hasText){let{fontFamily:a}=n,{canvasWidth:r,fontSize:o}=s;ti.#I(i,o*this.#d,a);let{width:l}=i.measureText(e.textContent);l>0&&n.setProperty("--scale-x",r*this.#d/l)}s.angle!==0&&n.setProperty("--rotate",`${s.angle}deg`)}static cleanup(){if(!(this.#x.size>0)){this.#y.clear();for(let{canvas:t}of this.#q.values())t.remove();this.#q.clear()}}static#F(t=null){let e=this.#q.get(t||="");if(!e){let s=document.createElement("canvas");s.className="hiddenCanvasElement",s.lang=t,document.body.append(s),e=s.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#q.set(t,e),this.#C.set(e,{size:0,family:""})}return e}static#I(t,e,s){let i=this.#C.get(t);e===i.size&&s===i.family||(t.font=`${e}px ${s}`,i.size=e,i.family=s)}static#B(){if(this.#w!==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),this.#w=t.getBoundingClientRect().height,t.remove()}static#E(t,e,s){let i=this.#y.get(t);if(i)return i;let n=this.#F(s);n.canvas.width=n.canvas.height=Jp,this.#I(n,Jp,t);let a=n.measureText(""),r=a.fontBoundingBoxAscent,o=Math.abs(a.fontBoundingBoxDescent);n.canvas.width=n.canvas.height=0;let l=0.8;return r?l=r/(r+o):(es.platform.isFirefox&&ne("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),e.ascent?l=e.ascent:e.descent&&(l=1+e.descent)),this.#y.set(t,l),l}};d(M0,"getDocument");B0=class B0{static{d(this,"PDFDocumentLoadingTask")}static#t=0;_capability=Promise.withResolvers();_transport=null;_worker=null;docId=`d${B0.#t++}`;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),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()}};Cf=class Cf{static{d(this,"PDFDataRangeTransport")}#t=Promise.withResolvers();#e=[];#s=[];#i=[];constructor(t,e,s=!1,i=null){this.length=t,this.initialData=e,this.progressiveDone=s,this.contentDispositionFilename=i,Object.defineProperty(this,"onDataProgress",{value:d(()=>{e8("`PDFDataRangeTransport.prototype.onDataProgress` - method was removed, since loading progress is now reported automatically through the `PDFDataTransportStream` class (and related code).")},"value")})}addRangeListener(t){this.#i.push(t)}addProgressiveReadListener(t){this.#s.push(t)}addProgressiveDoneListener(t){this.#e.push(t)}onDataRange(t,e){for(let s of this.#i)s(t,e)}onDataProgressiveRead(t){this.#t.promise.then(()=>{for(let e of this.#s)e(t)})}onDataProgressiveDone(){this.#t.promise.then(()=>{for(let t of this.#e)t()})}transportReady(){this.#t.resolve()}requestDataRange(t,e){Se("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};r7=class r7{static{d(this,"PDFDocumentProxy")}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 se(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()}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){return this._transport.extractPages(t)}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getRawData(t){return this._transport.getRawData(t)}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}};P0=class P0{static{d(this,"PDFPageProxy")}#t=!1;#e=null;constructor(t,e,s,i,n=!1){this._pageIndex=t,this._pageInfo=e,this._transport=s,this._stats=n?new h1:null,this._pdfBug=n,this.commonObjs=s.commonObjs,this.objs=new E0,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null,this.#e=i,this.imageCoordinates=null}clone(t){let e=new P0(t,this._pageInfo,this._transport,this.#e,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:i=0,dontFlip:n=!1}={}){return new Gl({viewBox:this.view,userUnit:this.userUnit,scale:t,rotation:e,offsetX:s,offsetY:i,dontFlip:n})}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 se(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:i="display",annotationMode:n=kn.ENABLE,transform:a=null,background:r=null,optionalContentConfigPromise:o=null,annotationCanvasMap:l=null,pageColors:c=null,printAnnotationStorage:h=null,isEditing:f=!1,recordImages:u=!1,recordOperations:p=!1,operationsFilter:m=null}){this._stats?.time("Overall");let g=this._transport.getRenderingIntent(i,n,h,f),{renderingIntent:w,cacheKey:b}=g;this.#t=!1,o||=this._transport.getOptionalContentConfig(w);let j=this._intentStates.getOrInsertComputed(b,Th);j.streamReaderCancelTimeout&&(clearTimeout(j.streamReaderCancelTimeout),j.streamReaderCancelTimeout=null);let v=!!(w&ui.PRINT);j.displayReadyCapability||(j.displayReadyCapability=Promise.withResolvers(),j.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(g));let q=!!(this._pdfBug&&globalThis.StepperManager?.enabled),x=!!e&&!this.recordedBBoxes&&(p||q),k=!!e&&!this.imageCoordinates&&u,A=d((O)=>{if(j.renderTasks.delete(E),x){let $=E.gfx?.dependencyTracker.take();$&&(E.stepper?.setOperatorBBoxes($,E.gfx.dependencyTracker.takeDebugMetadata()),p&&(this.recordedBBoxes=$))}k&&!O&&(this.imageCoordinates=E.gfx?.imagesTracker.take()),v&&(this.#t=!0),this.#s(),O?(E.capability.reject(O),this._abortOperatorList({intentState:j,reason:O instanceof Error?O:Error(O)})):E.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},"complete"),S=null,I=null;(x||k)&&(I=new c8(e,j.operatorList.length)),x&&(S=new h8(I,q));let E=new qr({callback:A,params:{canvas:e,canvasContext:t,dependencyTracker:S??I,imagesTracker:k?new Bh(e):null,viewport:s,transform:a,background:r},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:j.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:c,enableHWA:this._transport.enableHWA,operationsFilter:m});(j.renderTasks||=new Set).add(E);let D=E.task;return Promise.all([j.displayReadyCapability.promise,o]).then(([O,$])=>{if(this.destroyed){A();return}if(this._stats?.time("Rendering"),!($.renderingIntent&w))throw Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");E.initializeGraphics({transparency:O,optionalContentConfig:$}),E.operatorListChanged()}).catch(A),D}getOperatorList({intent:t="display",annotationMode:e=kn.ENABLE,printAnnotationStorage:s=null,isEditing:i=!1}={}){function n(){r.operatorList.lastChunk&&(r.opListReadCapability.resolve(r.operatorList),r.renderTasks.delete(o))}d(n,"operatorListChanged");let a=this._transport.getRenderingIntent(t,e,s,i,!0),r=this._intentStates.getOrInsertComputed(a.cacheKey,Th),o;return r.opListReadCapability||(o=Object.create(null),o.operatorListChanged=n,r.opListReadCapability=Promise.withResolvers(),(r.renderTasks||=new Set).add(o),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(a)),r.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:e=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageId:this.#e.getPageId(this._pageIndex+1)-1,pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:e===!0},{highWaterMark:100,size(s){return s.items.length}})}async getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then((i)=>bl.textContent(i));let e=this.streamTextContent(t),s={items:[],styles:Object.create(null),lang:null};for await(let i of e)s.lang??=i.lang,Object.assign(s.styles,i.styles),s.items.push(...i.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:Error("Page was destroyed."),force:!0}),!e.opListReadCapability)for(let s of e.renderTasks)t.push(s.completed),s.cancel();return this.objs.clear(),this.#t=!1,Promise.all(t)}cleanup(t=!1){this.#t=!0;let e=this.#s();return t&&e&&(this._stats&&=new h1),e}#s(){if(!this.#t||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(),this.#t=!1,!0}_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,i=t.length;s<i;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&&this.#s()}_pumpOperatorList({renderingIntent:t,cacheKey:e,annotationStorageSerializable:s,modifiedIds:i}){let{map:n,transfer:a}=s,r=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageId:this.#e.getPageId(this._pageIndex+1)-1,pageIndex:this._pageIndex,intent:t,cacheKey:e,annotationStorage:n,modifiedIds:i},void 0,a).getReader(),o=this._intentStates.get(e);o.streamReader=r;let l=d(()=>{r.read().then(({value:c,done:h})=>{if(h){o.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(c,o),l())},(c)=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){o.operatorList.lastChunk=!0;for(let h of o.renderTasks)h.operatorListChanged();this.#s()}if(o.displayReadyCapability)o.displayReadyCapability.reject(c);else if(o.opListReadCapability)o.opListReadCapability.reject(c);else throw c}})},"pump");l()}_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 $l){let i=wv;e.extraDelay>0&&e.extraDelay<1000&&(i+=e.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:e,force:!0})},i);return}}if(t.streamReader.cancel(new hn(e.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(let[i,n]of this._intentStates)if(n===t){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}};ps=class ps{static{d(this,"PDFWorker")}#t=Promise.withResolvers();#e=null;#s=null;#i=null;static#n=0;static#a=!0;static#r=new WeakMap;static{Si&&(this.#a=!0,Ra.workerSrc||="./pdf.worker.mjs"),this._isSameOrigin=(t,e)=>{let s=URL.parse(t);if(!s?.origin||s.origin==="null")return!1;let i=new URL(e,s);return s.origin===i.origin},this._createCDNWrapper=(t)=>{let e=`await import("${t}");`;return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}}constructor({name:t=null,port:e=null,verbosity:s=V4()}={}){if(this.name=t,this.destroyed=!1,this.verbosity=s,e){if(ps.#r.has(e))throw Error("Cannot use more than one PDFWorker per port.");ps.#r.set(e,this),this.#l(e)}else this.#c()}get promise(){return this.#t.promise}#o(){this.#t.resolve(),this.#e.send("configure",{verbosity:this.verbosity})}get port(){return this.#s}get messageHandler(){return this.#e}#l(t){this.#s=t,this.#e=new vr("main","worker",t),this.#e.on("ready",()=>{}),this.#o()}#c(){if(ps.#a||ps.#h){this.#u();return}let{workerSrc:t}=ps;try{ps._isSameOrigin(window.location,t)||(t=ps._createCDNWrapper(new URL(t,window.location).href));let e=new Worker(t,{type:"module"}),s=new vr("main","worker",e),i=d(()=>{n.abort(),s.destroy(),e.terminate(),this.destroyed?this.#t.reject(Error("Worker was destroyed")):this.#u()},"terminateEarly"),n=new AbortController;e.addEventListener("error",()=>{this.#i||i()},{signal:n.signal}),s.on("test",(r)=>{if(n.abort(),this.destroyed||!r){i();return}this.#e=s,this.#s=e,this.#i=e,this.#o()}),s.on("ready",(r)=>{if(n.abort(),this.destroyed){i();return}try{a()}catch{this.#u()}});let a=d(()=>{let r=new Uint8Array;s.send("test",r,[r.buffer])},"sendTest");a();return}catch{Ll("The worker has been disabled.")}this.#u()}#u(){ps.#a||(ne("Setting up fake worker."),ps.#a=!0),ps._setupFakeWorkerGlobal.then((t)=>{if(this.destroyed){this.#t.reject(Error("Worker was destroyed"));return}let e=new q8;this.#s=e;let s=`fake${ps.#n++}`,i=new vr(s+"_worker",s,e);t.setup(i,e),this.#e=new vr(s,s+"_worker",e),this.#o()}).catch((t)=>{this.#t.reject(Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this.#i?.terminate(),this.#i=null,ps.#r.delete(this.#s),this.#s=null,this.#e?.destroy(),this.#e=null}static create(t){let e=this.#r.get(t?.port);if(e){if(e._pendingDestroy)throw Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return e}return new ps(t)}static get workerSrc(){if(Ra.workerSrc)return Ra.workerSrc;throw Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#h(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return se(this,"_setupFakeWorkerGlobal",d(async()=>this.#h?this.#h:__pdfjsWorker__.WorkerMessageHandler,"loader")())}};o7=class o7{static{d(this,"WorkerTransport")}downloadInfoCapability=Promise.withResolvers();#t=null;#e=new Map;#s=null;#i=new Map;#n=new Map;#a=new Map;#r=null;constructor(t,e,s,i,n,a){this.messageHandler=t,this.loadingTask=e,this.#s=s,this.commonObjs=new E0,this.fontLoader=new f8({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.enableHWA=i.enableHWA,this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=n.canvasFactory,this.filterFactory=n.filterFactory,this.binaryDataFactory=n.binaryDataFactory,this.pagesMapper=a,this.destroyed=!1,this.destroyCapability=null,this.setupMessageHandler()}updatePage(t){let{_pageIndex:e}=t;this.#i.set(e,t),this.#n.set(e,Promise.resolve(t))}#o(t,e=null){return this.#e.getOrInsertComputed(t,()=>this.messageHandler.sendWithPromise(t,e))}#l({loaded:t,total:e}){this.loadingTask.onProgress?.({loaded:t,total:e,percent:e?rs(Math.round(t/e*100),0,100):NaN})}get annotationStorage(){return se(this,"annotationStorage",new Af)}getRenderingIntent(t,e=kn.ENABLE,s=null,i=!1,n=!1){let a=ui.DISPLAY,r=yl;switch(t){case"any":a=ui.ANY;break;case"display":break;case"print":a=ui.PRINT;break;default:ne(`getRenderingIntent - invalid intent: ${t}`)}let o=a&ui.PRINT&&s instanceof w0?s:this.annotationStorage;switch(e){case kn.DISABLE:a+=ui.ANNOTATIONS_DISABLE;break;case kn.ENABLE:break;case kn.ENABLE_FORMS:a+=ui.ANNOTATIONS_FORMS;break;case kn.ENABLE_STORAGE:a+=ui.ANNOTATIONS_STORAGE,r=o.serializable;break;default:ne(`getRenderingIntent - invalid annotationMode: ${e}`)}i&&(a+=ui.IS_EDITING),n&&(a+=ui.OPLIST);let{ids:l,hash:c}=o.modifiedIds,h=[a,r.hash,c];return{renderingIntent:a,cacheKey:h.join("_"),annotationStorageSerializable:r,modifiedIds:l}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#r?.reject(Error("Worker was destroyed during onPassword callback"));let t=[];for(let s of this.#i.values())t.push(s._destroy());this.#i.clear(),this.#n.clear(),this.#a.clear(),this.hasOwnProperty("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(),this.#e.clear(),this.filterFactory.destroy(),ti.cleanup(),this.#s?.cancelAllRequests(new hn("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,i)=>{Oe(this.#s,"GetReader - no `BasePDFStream` instance available."),this.#t=this.#s.getFullReader(),this.#t.onProgress=(n)=>this.#l(n),i.onPull=()=>{this.#t.read().then(function({value:n,done:a}){if(a){i.close();return}Oe(n instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(n),1,[n])}).catch((n)=>{i.error(n)})},i.onCancel=(n)=>{this.#t.cancel(n),i.ready.catch((a)=>{if(!this.destroyed)throw a})}}),t.on("ReaderHeadersReady",async(s)=>{await this.#t.headersReady;let{isStreamingSupported:i,isRangeSupported:n,contentLength:a}=this.#t;return i&&n&&(this.#t.onProgress=null),{isStreamingSupported:i,isRangeSupported:n,contentLength:a}}),t.on("GetRangeReader",(s,i)=>{Oe(this.#s,"GetRangeReader - no `BasePDFStream` instance available.");let n=this.#s.getRangeReader(s.begin,s.end);if(!n){i.close();return}i.onPull=()=>{n.read().then(function({value:a,done:r}){if(r){i.close();return}Oe(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch((a)=>{i.error(a)})},i.onCancel=(a)=>{n.cancel(a),i.ready.catch((r)=>{if(!this.destroyed)throw r})}}),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 r7(s,this))}),t.on("DocException",(s)=>{e._capability.reject(Ls(s))}),t.on("PasswordRequest",(s)=>{this.#r=Promise.withResolvers();try{if(!e.onPassword)throw Ls(s);let i=d((n)=>{n instanceof Error?this.#r.reject(n):this.#r.resolve({password:n})},"updatePassword");e.onPassword(i,s.code)}catch(i){this.#r.reject(i)}return this.#r.promise}),t.on("DataLoaded",(s)=>{this.#l({loaded:s.length,total:s.length}),this.downloadInfoCapability.resolve(s)}),t.on("StartRenderPage",(s)=>{if(this.destroyed)return;this.#i.get(s.pageIndex)._startRenderPage(s.transparency,s.cacheKey)}),t.on("commonobj",([s,i,n])=>{if(this.destroyed||this.commonObjs.has(s))return null;switch(i){case"Font":if("error"in n){let h=n.error;ne(`Error during font loading: ${h}`),this.commonObjs.resolve(s,h);break}let a=new b8(n),r=this._params.pdfBug&&globalThis.FontInspector?.enabled?(h,f)=>globalThis.FontInspector.fontAdded(h,f):null,o=new u8(a,r,n.charProcOperatorList,n.extra);this.fontLoader.bind(o).catch(()=>t.sendWithPromise("FontFallback",{id:s})).finally(()=>{o.fontExtraProperties||o.clearData(),this.commonObjs.resolve(s,o)});break;case"CopyLocalImage":let{imageRef:l}=n;Oe(l,"The imageRef must be defined.");for(let h of this.#i.values())for(let[,f]of h.objs)if(f?.ref===l)return f.dataLen?(this.commonObjs.resolve(s,structuredClone(f)),f.dataLen):null;break;case"FontPath":this.commonObjs.resolve(s,new y8(n));break;case"Image":this.commonObjs.resolve(s,n);break;case"Pattern":let c=new w8(n);this.commonObjs.resolve(s,c.getIR());break;default:throw Error(`Got unknown common object type ${i}`)}return null}),t.on("obj",([s,i,n,a])=>{if(this.destroyed)return;let r=this.#i.get(i);if(!r.objs.has(s)){if(r._intentStates.size===0){a?.bitmap?.close();return}switch(n){case"Image":case"Pattern":r.objs.resolve(s,a);break;default:throw Error(`Got unknown object type ${n}`)}}}),t.on("DocProgress",(s)=>{this.destroyed||this.#l(s)}),t.on("PrepareWebGPU",()=>{this.destroyed||E8()}),t.on("FetchBinaryData",async(s)=>{if(this.destroyed)throw Error("Worker was destroyed.");if(!this.binaryDataFactory)throw 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&&ne("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:this.#t?.filename??null},e).finally(()=>{this.annotationStorage.resetModified()})}extractPages(t){let e={pageInfos:t},s;if(this.annotationStorage.size>0){let{map:i,transfer:n}=this.annotationStorage.serializable;e.annotationStorage=i,s=n}return this.messageHandler.sendWithPromise("ExtractPages",e,s).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this.pagesMapper.pagesNumber)return Promise.reject(Error("Invalid page request."));let e=t-1,s=this.pagesMapper.getPageId(t)-1,i=this.#n.get(e);if(i)return i;let n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:s}).then((a)=>{if(this.destroyed)throw Error("Transport destroyed");a.refStr&&this.#a.set(a.refStr,s);let r=new P0(e,a,this,this.pagesMapper,this._params.pdfBug);return this.#i.set(e,r),r});return this.#n.set(e,n),n}async getPageIndex(t){if(!g1(t))throw 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 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 this.#o("GetFieldObjects")}hasJSActions(){return this.#o("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(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)}getAnnotationsByType(t,e){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:t,pageIndexesToSkip:e})}getDocJSActions(){return this.#o("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 this.#o("GetOptionalContentConfig").then((e)=>new n7(e,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.#e.getOrInsertComputed("GetMetadata",()=>this.messageHandler.sendWithPromise("GetMetadata",null).then((e)=>({info:e[0],metadata:e[1]?new s7(e[1]):null,contentDispositionFilename:this.#t?.filename??null,contentLength:this.#t?.contentLength??null,hasStructTree:e[2]})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}getRawData(t){return this.messageHandler.sendWithPromise("GetRawData",t)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(let e of this.#i.values())if(!e.cleanup())throw Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),ti.cleanup()}}cachedPageNumber(t){if(!g1(t))return null;let e=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`,s=this.#a.get(e);if(s>=0){let i=this.pagesMapper.getPageNumber(s+1);if(i!==0)return i}return null}};l7=class l7{static{d(this,"RenderTask")}_internalRenderTask=null;onContinue=null;onError=null;constructor(t){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}};qr=class qr{static{d(this,"InternalRenderTask")}#t=null;static#e=new WeakSet;constructor({callback:t,params:e,objs:s,commonObjs:i,annotationCanvasMap:n,operatorList:a,pageIndex:r,canvasFactory:o,filterFactory:l,useRequestAnimationFrame:c=!1,pdfBug:h=!1,pageColors:f=null,enableHWA:u=!1,operationsFilter:p=null}){this.callback=t,this.params=e,this.objs=s,this.commonObjs=i,this.annotationCanvasMap=n,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=r,this.canvasFactory=o,this.filterFactory=l,this._pdfBug=h,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=c===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new l7(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=u,this._dependencyTracker=e.dependencyTracker,this._imagesTracker=e.imagesTracker,this._operationsFilter=p}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:e}){if(this.cancelled)return;if(this._canvas){if(qr.#e.has(this._canvas))throw Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");qr.#e.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:i,background:n,dependencyTracker:a,imagesTracker:r}=this.params,o=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new Tr(o,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:e},this.annotationCanvasMap,this.pageColors,a,r),this.gfx.beginDrawing({transform:i,viewport:s,transparency:t,background:n}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,e=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#t&&(window.cancelAnimationFrame(this.#t),this.#t=null),qr.#e.delete(this._canvas),t||=new $l(`Rendering cancelled, page ${this._pageIndex+1}`,e),this.callback(t),this.task.onError?.(t)}operatorListChanged(){if(!this.graphicsReady){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?this.#t=window.requestAnimationFrame(()=>{this.#t=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(),qr.#e.delete(this._canvas),this.callback())))}};di=class di{static{d(this,"ColorPicker")}#t=null;#e=null;#s;#i=null;#n=!1;#a=!1;#r=null;#o;#l=null;#c=null;static#u=null;static get _keyboardManager(){return se(this,"_keyboardManager",new Xr([[["Escape","mac+Escape"],di.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],di.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],di.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],di.prototype._moveToPrevious],[["Home","mac+Home"],di.prototype._moveToBeginning],[["End","mac+End"],di.prototype._moveToEnd]]))}constructor({editor:t=null,uiManager:e=null}){t?(this.#a=!1,this.#r=t):this.#a=!0,this.#c=t?._uiManager||e,this.#o=this.#c._eventBus,this.#s=t?.color?.toUpperCase()||this.#c?.highlightColors.values().next().value||"#FFFF98",di.#u||=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"})}renderButton(){let t=this.#t=document.createElement("button");t.className="colorPicker",t.tabIndex="0",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),t.ariaHasPopup="true",this.#r&&(t.ariaControls=`${this.#r.id}_colorpicker_dropdown`);let e=this.#c._signal;t.addEventListener("click",this.#m.bind(this),{signal:e}),t.addEventListener("keydown",this.#g.bind(this),{signal:e});let s=this.#e=document.createElement("span");return s.className="swatch",s.ariaHidden="true",s.style.backgroundColor=this.#s,t.append(s),t}renderMainDropdown(){let t=this.#i=this.#h();return t.ariaOrientation="horizontal",t.ariaLabelledBy="highlightColorPickerLabel",t}#h(){let t=document.createElement("div"),e=this.#c._signal;t.addEventListener("contextmenu",oi,{signal:e}),t.className="dropdown",t.role="listbox",t.ariaMultiSelectable="false",t.ariaOrientation="vertical",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),this.#r&&(t.id=`${this.#r.id}_colorpicker_dropdown`);for(let[s,i]of this.#c.highlightColors){let n=document.createElement("button");n.tabIndex="0",n.role="option",n.setAttribute("data-color",i),n.title=s,n.setAttribute("data-l10n-id",di.#u[s]);let a=document.createElement("span");n.append(a),a.className="swatch",a.style.backgroundColor=i,n.ariaSelected=i===this.#s,n.addEventListener("click",this.#d.bind(this,i),{signal:e}),t.append(n)}return t.addEventListener("keydown",this.#g.bind(this),{signal:e}),t}#d(t,e){e.stopPropagation(),this.#o.dispatch("switchannotationeditorparams",{source:this,type:ge.HIGHLIGHT_COLOR,value:t}),this.updateColor(t)}_colorSelectFromKeyboard(t){if(t.target===this.#t){this.#m(t);return}let e=t.target.getAttribute("data-color");e&&this.#d(e,t)}_moveToNext(t){if(!this.#p){this.#m(t);return}if(t.target===this.#t){this.#i.firstElementChild?.focus();return}t.target.nextSibling?.focus()}_moveToPrevious(t){if(t.target===this.#i?.firstElementChild||t.target===this.#t){this.#p&&this._hideDropdownFromKeyboard();return}this.#p||this.#m(t),t.target.previousSibling?.focus()}_moveToBeginning(t){if(!this.#p){this.#m(t);return}this.#i.firstElementChild?.focus()}_moveToEnd(t){if(!this.#p){this.#m(t);return}this.#i.lastElementChild?.focus()}#g(t){di._keyboardManager.exec(this,t)}#m(t){if(this.#p){this.hideDropdown();return}if(this.#n=t.detail===0,this.#l||(this.#l=new AbortController,window.addEventListener("pointerdown",this.#f.bind(this),{signal:this.#c.combinedSignal(this.#l)})),this.#t.ariaExpanded="true",this.#i){this.#i.classList.remove("hidden");return}let e=this.#i=this.#h();this.#t.append(e)}#f(t){this.#i?.contains(t.target)||this.hideDropdown()}hideDropdown(){this.#i?.classList.add("hidden"),this.#t.ariaExpanded="false",this.#l?.abort(),this.#l=null}get#p(){return this.#i&&!this.#i.classList.contains("hidden")}_hideDropdownFromKeyboard(){if(!this.#a){if(!this.#p){this.#r?.unselect();return}this.hideDropdown(),this.#t.focus({preventScroll:!0,focusVisible:this.#n})}}updateColor(t){if(this.#e&&(this.#e.style.backgroundColor=t),!this.#i)return;let e=this.#c.highlightColors.values();for(let s of this.#i.children)s.ariaSelected=e.next().value===t.toUpperCase()}destroy(){this.#t?.remove(),this.#t=null,this.#e=null,this.#i?.remove(),this.#i=null}};jl=class jl{static{d(this,"BasicColorPicker")}#t=null;#e=null;#s=null;static#i=null;constructor(t){this.#e=t,this.#s=t._uiManager,jl.#i||=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"})}renderButton(){if(this.#t)return this.#t;let{editorType:t,colorType:e,color:s}=this.#e,i=this.#t=document.createElement("input");return i.type="color",i.value=s||"#000000",i.className="basicColorPicker",i.tabIndex=0,i.setAttribute("data-l10n-id",jl.#i[t]),i.addEventListener("input",()=>{this.#s.updateParams(e,i.value)},{signal:this.#s._signal}),i}update(t){this.#t&&(this.#t.value=t)}destroy(){this.#t?.remove(),this.#t=null}hideDropdown(){}};d(x1,"makeColorComp");d(dr,"scaleAndClamp");A1=class A1{static{d(this,"ColorConverters")}static CMYK_G([t,e,s,i]){return["G",1-Math.min(1,0.3*t+0.59*s+0.11*e+i)]}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=dr(t),[t,t,t]}static G_HTML([t]){let e=x1(t);return`#${e}${e}${e}`}static RGB_G([t,e,s]){return["G",0.3*t+0.59*e+0.11*s]}static RGB_rgb(t){return t.map(dr)}static RGB_HTML(t){return`#${t.map(x1).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,e,s,i]){return["RGB",1-Math.min(1,t+i),1-Math.min(1,s+i),1-Math.min(1,e+i)]}static CMYK_rgb([t,e,s,i]){return[dr(1-Math.min(1,t+i)),dr(1-Math.min(1,s+i)),dr(1-Math.min(1,e+i))]}static CMYK_HTML(t){let e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([t,e,s]){let i=1-t,n=1-e,a=1-s,r=Math.min(i,n,a);return["CMYK",i,n,a,r]}};f7=class f7{static{d(this,"BaseSVGFactory")}create(t,e,s=!1){if(t<=0||e<=0)throw Error("Invalid SVG dimensions");let i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),s||(i.setAttribute("width",`${t}px`),i.setAttribute("height",`${e}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${t} ${e}`),i}createElement(t){if(typeof t!="string")throw Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){Se("Abstract method `_createSVG` called.")}};zr=class zr extends f7{static{d(this,"DOMSVGFactory")}_createSVG(t){return document.createElementNS(gn,t)}};La=new WeakSet,jv=new Date().getTimezoneOffset()*60*1000;Kc=class Kc{static{d(this,"AnnotationElementFactory")}static create(t){switch(t.data.annotationType){case Xe.LINK:return new If(t);case Xe.TEXT:return new d7(t);case Xe.WIDGET:switch(t.data.fieldType){case"Tx":return new p7(t);case"Btn":return t.data.radioButton?new D0(t):t.data.checkBox?new g7(t):new b7(t);case"Ch":return new w7(t);case"Sig":return new m7(t)}return new ma(t);case Xe.POPUP:return new Ph(t);case Xe.FREETEXT:return new R0(t);case Xe.LINE:return new j7(t);case Xe.SQUARE:return new v7(t);case Xe.CIRCLE:return new k7(t);case Xe.POLYLINE:return new H0(t);case Xe.CARET:return new x7(t);case Xe.INK:return new Tf(t);case Xe.POLYGON:return new q7(t);case Xe.HIGHLIGHT:return new _0(t);case Xe.UNDERLINE:return new A7(t);case Xe.SQUIGGLY:return new S7(t);case Xe.STRIKEOUT:return new C7(t);case Xe.STAMP:return new O0(t);case Xe.FILEATTACHMENT:return new I7(t);default:return new Le(t)}}};Le=class Le{static{d(this,"AnnotationElement")}#t=null;#e=!1;#s=null;constructor(t,{isRenderable:e=!1,ignoreBorder:s=!1,createQuadrilaterals:i=!1}={}){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)),i&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:t,richText:e}){return!!(t?.str||e?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Le._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:i}=this.data,n=-1/0,a=-1/0;if(e?.length>=8){for(let r=0;r<e.length;r+=8)e[r+1]>a?(a=e[r+1],n=e[r+2]):e[r+1]===a&&(n=Math.max(n,e[r+2]));return[n,a]}if(s?.length>=1){for(let r of s)for(let o=0,l=r.length;o<l;o+=2)r[o+1]>a?(a=r[o+1],n=r[o]):r[o+1]===a&&(n=Math.max(n,r[o]));if(n!==1/0)return[n,a]}return i?[i[2],i[3]]:null}_normalizePoint(t){let{page:{view:e},viewport:{rawDims:{pageWidth:s,pageHeight:i,pageX:n,pageY:a}}}=this.parent;return t[1]=e[3]-t[1]+e[1],t[0]=100*(t[0]-n)/s,t[1]=100*(t[1]-a)/i,t}get commentText(){let{data:t}=this;return this.annotationStorage.getRawValue(`${ml}${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(`${ml}${e.id}`,{id:e.id,annotationType:e.annotationType,page:this.parent.page,popup:s,popupRef:e.popupRef,modificationDate:new Date}),t||this.removePopup()}removePopup(){(this.#s?.popup||this.popup)?.remove(),this.#s=this.popup=null}updateEdited(t){if(!this.container)return;t.rect&&(this.#t||={rect:this.data.rect.slice(0)});let{rect:e,popup:s}=t;e&&this.#i(e);let i=this.#s?.popup||this.popup;!i&&s?.text&&(this._createPopup(s),i=this.#s.popup),i&&(i.updateEdited(t),s?.deleted&&(i.remove(),this.#s=null,this.popup=null))}resetEdited(){this.#t&&(this.#i(this.#t.rect),this.#s?.popup.resetEdited(),this.#t=null)}#i(t){let{container:{style:e},data:{rect:s,rotation:i},parent:{viewport:{rawDims:{pageWidth:n,pageHeight:a,pageX:r,pageY:o}}}}=this;s?.splice(0,4,...t),e.left=`${100*(t[0]-r)/n}%`,e.top=`${100*(a-t[3]+o)/a}%`,i===0?(e.width=`${100*(t[2]-t[0])/n}%`,e.height=`${100*(t[3]-t[1])/a}%`):this.setRotation(i)}_createContainer(t){let{data:e,parent:{page:s,viewport:i}}=this,n=document.createElement("section");n.setAttribute("data-annotation-id",e.id),!(this instanceof ma)&&!(this instanceof If)&&(n.tabIndex=0);let{style:a}=n;if(a.zIndex=this.parent.zIndex,this.parent.zIndex+=2,e.alternativeText&&(n.title=e.alternativeText),e.noRotate&&n.classList.add("norotate"),!e.rect||this instanceof Ph){let{rotation:m}=e;return!e.hasOwnCanvas&&m!==0&&this.setRotation(m,n),n}let{width:r,height:o}=this;if(!t&&e.borderStyle.width>0){a.borderWidth=`${e.borderStyle.width}px`;let m=e.borderStyle.horizontalCornerRadius,g=e.borderStyle.verticalCornerRadius;if(m>0||g>0){let b=`calc(${m}px * var(--total-scale-factor)) / calc(${g}px * var(--total-scale-factor))`;a.borderRadius=b}else if(this instanceof D0){let b=`calc(${r}px * var(--total-scale-factor)) / calc(${o}px * var(--total-scale-factor))`;a.borderRadius=b}switch(e.borderStyle.style){case cr.SOLID:a.borderStyle="solid";break;case cr.DASHED:a.borderStyle="dashed";break;case cr.BEVELED:ne("Unimplemented border style: beveled");break;case cr.INSET:ne("Unimplemented border style: inset");break;case cr.UNDERLINE:a.borderBottomStyle="solid";break}let w=e.borderColor||null;w?(this.#e=!0,a.borderColor=xt.makeHexColor(w[0]|0,w[1]|0,w[2]|0)):a.borderWidth=0}let l=xt.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:c,pageHeight:h,pageX:f,pageY:u}=i.rawDims;a.left=`${100*(l[0]-f)/c}%`,a.top=`${100*(l[1]-u)/h}%`;let{rotation:p}=e;return e.hasOwnCanvas||p===0?(a.width=`${100*r/c}%`,a.height=`${100*o/h}%`):this.setRotation(p,n),n}setRotation(t,e=this.container){if(!this.data.rect)return;let{pageWidth:s,pageHeight:i}=this.parent.viewport.rawDims,{width:n,height:a}=this;t%180!==0&&([n,a]=[a,n]),e.style.width=`${100*n/s}%`,e.style.height=`${100*a/i}%`,e.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){let t=d((e,s,i)=>{let n=i.detail[e],a=n[0],r=n.slice(1);i.target.style[s]=A1[`${a}_HTML`](r),this.annotationStorage.setValue(this.data.id,{[s]:A1[`${a}_rgb`](r)})},"setColor");return se(this,"_commonActions",{display:d((e)=>{let{display:s}=e.detail,i=s%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:s===1||s===2})},"display"),print:d((e)=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},"print"),hidden:d((e)=>{let{hidden:s}=e.detail;this.container.style.visibility=s?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:s,noView:s})},"hidden"),focus:d((e)=>{setTimeout(()=>e.target.focus({preventScroll:!1}),0)},"focus"),userName:d((e)=>{e.target.title=e.detail.userName},"userName"),readonly:d((e)=>{e.target.disabled=e.detail.readonly},"readonly"),required:d((e)=>{this._setRequired(e.target,e.detail.required)},"required"),bgColor:d((e)=>{t("bgColor","backgroundColor",e)},"bgColor"),fillColor:d((e)=>{t("fillColor","backgroundColor",e)},"fillColor"),fgColor:d((e)=>{t("fgColor","color",e)},"fgColor"),textColor:d((e)=>{t("textColor","color",e)},"textColor"),borderColor:d((e)=>{t("borderColor","borderColor",e)},"borderColor"),strokeColor:d((e)=>{t("strokeColor","borderColor",e)},"strokeColor"),rotation:d((e)=>{let s=e.detail.rotation;this.setRotation(s),this.annotationStorage.setValue(this.data.id,{rotation:s})},"rotation")})}_dispatchEventFromSandbox(t,e){let s=this._commonActions;for(let i of Object.keys(e.detail))(t[i]||s[i])?.(e)}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;let e=this.annotationStorage.getRawValue(this.data.id);if(!e)return;let s=this._commonActions;for(let[i,n]of Object.entries(e)){let a=s[i];if(a){let r={detail:{[i]:n},target:t};a(r),delete e[i]}}}_createQuadrilaterals(){if(!this.container)return;let{quadPoints:t}=this.data;if(!t)return;let[e,s,i,n]=this.data.rect.map((m)=>Math.fround(m));if(t.length===8){let[m,g,w,b]=t.subarray(2,6);if(i===m&&n===g&&e===w&&s===b)return}let{style:a}=this.container,r;if(this.#e){let{borderColor:m,borderWidth:g}=a;a.borderWidth=0,r=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${m}" stroke-width="${g}">`],this.container.classList.add("hasBorder")}let o=i-e,l=n-s,{svgFactory:c}=this,h=c.createElement("svg");h.classList.add("quadrilateralsContainer"),h.setAttribute("width",0),h.setAttribute("height",0),h.role="none";let f=c.createElement("defs");h.append(f);let u=c.createElement("clipPath"),p=`clippath_${this.data.id}`;u.setAttribute("id",p),u.setAttribute("clipPathUnits","objectBoundingBox"),f.append(u);for(let m=2,g=t.length;m<g;m+=8){let w=t[m],b=t[m+1],j=t[m+2],v=t[m+3],q=c.createElement("rect"),x=(j-e)/o,k=(n-b)/l,A=(w-j)/o,S=(b-v)/l;q.setAttribute("x",x),q.setAttribute("y",k),q.setAttribute("width",A),q.setAttribute("height",S),u.append(q),r?.push(`<rect vector-effect="non-scaling-stroke" x="${x}" y="${k}" width="${A}" height="${S}"/>`)}this.#e&&(r.push("</g></svg>')"),a.backgroundImage=r.join("")),this.container.append(h),this.container.style.clipPath=`url(#${p})`}_createPopup(t=null){let{data:e}=this,s,i;t?(s={str:t.text},i=t.date):(s=e.contentsObj,i=e.modificationDate),this.#s=new Ph({data:{color:e.color,titleObj:e.titleObj,modificationDate:i,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!!(this.#s||this.popup||this.data.popupRef)}get extraPopupElement(){return this.#s}render(){Se("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,e=null){let s=[];if(this._fieldObjects){let i=this._fieldObjects[t];if(i)for(let{page:n,id:a,exportValues:r}of i){if(n===-1||a===e)continue;let o=typeof r=="string"?r:null,l=document.querySelector(`[data-element-id="${a}"]`);if(l&&!La.has(l)){ne(`_getElementsByName - element not allowed: ${a}`);continue}s.push({id:a,exportValue:o,domElement:l})}return s}for(let i of document.getElementsByName(t)){let{exportValue:n}=i,a=i.getAttribute("data-element-id");a!==e&&La.has(i)&&s.push({id:a,exportValue:n,domElement:i})}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})})}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}};u7=class u7 extends Le{static{d(this,"EditorAnnotationElement")}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()}};If=class If extends Le{static{d(this,"LinkAnnotationElement")}constructor(t,e=null){super(t,{isRenderable:!0,ignoreBorder:!!e?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){let{data:t,linkService:e}=this,s=document.createElement("a");s.setAttribute("data-element-id",t.id);let i=!1;return t.url?(e.addLinkAttributes(s,t.url,t.newWindow),i=!0):t.action?(this._bindNamedAction(s,t.action,t.overlaidText),i=!0):t.attachment?(this.#e(s,t.attachment,t.overlaidText,t.attachmentDest),i=!0):t.setOCGState?(this.#s(s,t.setOCGState,t.overlaidText),i=!0):t.dest?(this._bindLink(s,t.dest,t.overlaidText),i=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(s,t),i=!0),t.resetForm?(this._bindResetFormAction(s,t.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(s,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&(this.contentElement=s,this.container.append(s)),this.container}#t(){this.container.setAttribute("data-internal-link","")}_bindLink(t,e,s=""){t.href=this.linkService.getDestinationHash(e),t.onclick=()=>(e&&this.linkService.goToDestination(e),!1),(e||e==="")&&this.#t(),s&&(t.title=s)}_bindNamedAction(t,e,s=""){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(e),!1),s&&(t.title=s),this.#t()}#e(t,e,s="",i=null){t.href=this.linkService.getAnchorUrl(""),e.description?t.title=e.description:s&&(t.title=s),t.onclick=()=>(this.downloadManager?.openOrDownloadData(e.content,e.filename,i),!1),this.#t()}#s(t,e,s=""){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(e),!1),s&&(t.title=s),this.#t()}_bindJSAction(t,e){t.href=this.linkService.getAnchorUrl("");let s=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(let i of Object.keys(e.actions)){let n=s.get(i);n&&(t[n]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e.id,name:i}}),!1))}e.overlaidText&&(t.title=e.overlaidText),t.onclick||(t.onclick=()=>!1),this.#t()}_bindResetFormAction(t,e){let s=t.onclick;if(s||(t.href=this.linkService.getAnchorUrl("")),this.#t(),!this._fieldObjects){ne('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),s||(t.onclick=()=>!1);return}t.onclick=()=>{s?.();let{fields:i,refs:n,include:a}=e,r=[];if(i.length!==0||n.length!==0){let c=new Set(n);for(let h of i){let f=this._fieldObjects[h]||[];for(let{id:u}of f)c.add(u)}for(let h of Object.values(this._fieldObjects))for(let f of h)c.has(f.id)===a&&r.push(f)}else for(let c of Object.values(this._fieldObjects))r.push(...c);let o=this.annotationStorage,l=[];for(let c of r){let{id:h}=c;switch(l.push(h),c.type){case"text":{let u=c.defaultValue||"";o.setValue(h,{value:u});break}case"checkbox":case"radiobutton":{let u=c.defaultValue===c.exportValues;o.setValue(h,{value:u});break}case"combobox":case"listbox":{let u=c.defaultValue||"";o.setValue(h,{value:u});break}default:continue}let f=document.querySelector(`[data-element-id="${h}"]`);if(f){if(!La.has(f)){ne(`_bindResetFormAction - element not allowed: ${h}`);continue}}else continue;f.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}}),!1}}};d7=class d7 extends Le{static{d(this,"TextAnnotationElement")}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}};ma=class ma extends Le{static{d(this,"WidgetAnnotationElement")}render(){return this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&(t.previousSibling?.nodeName==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return es.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,e,s,i,n){s.includes("mouse")?t.addEventListener(s,(a)=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:n(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}n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:n(a)}})})}_setEventListeners(t,e,s,i){for(let[n,a]of s)(a==="Action"||this.data.actions?.[a])&&((a==="Focus"||a==="Blur")&&(e||={focused:!1}),this._setEventListener(t,e,n,a,i),a==="Focus"&&!this.data.actions?.Blur?this._setEventListener(t,e,"blur","Blur",null):a==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(t,e,"focus","Focus",null))}_setBackgroundColor(t){let e=this.data.backgroundColor||null;t.style.backgroundColor=e===null?"transparent":xt.makeHexColor(e[0],e[1],e[2])}_setTextStyle(t){let e=["left","center","right"],{fontColor:s}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||yv,n=t.style,a,r=2,o=d((l)=>Math.round(10*l)/10,"roundToOneDecimal");if(this.data.multiLine){let l=Math.abs(this.data.rect[3]-this.data.rect[1]-2),c=Math.round(l/(Kf*i))||1,h=l/c;a=Math.min(i,o(h/Kf))}else{let l=Math.abs(this.data.rect[3]-this.data.rect[1]-2);a=Math.min(i,o(l/Kf))}n.fontSize=`calc(${a}px * var(--total-scale-factor))`,n.color=xt.makeHexColor(s[0],s[1],s[2]),this.data.textAlignment!==null&&(n.textAlign=e[this.data.textAlignment])}_setRequired(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",e)}};p7=class p7 extends ma{static{d(this,"TextWidgetAnnotationElement")}constructor(t){let e=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:e})}setPropertyOnSiblings(t,e,s,i){let n=this.annotationStorage;for(let a of this._getElementsByName(t.name,t.id))a.domElement&&(a.domElement[e]=s),n.setValue(a.id,{[i]:s})}render(){let t=this.annotationStorage,e=this.data.id;this.container.classList.add("textWidgetAnnotation");let s=null;if(this.renderForms){let i=t.getValue(e,{value:this.data.fieldValue}),n=i.value||"",a=t.getValue(e,{charLimit:this.data.maxLen}).charLimit;a&&n.length>a&&(n=n.slice(0,a));let r=i.formattedValue||this.data.textContent?.join(`
98
+ `)||null;r&&this.data.comb&&(r=r.replaceAll(/\s+/g,""));let o={userValue:n,formattedValue:r,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(s=document.createElement("textarea"),s.textContent=r??n,this.data.doNotScroll&&(s.style.overflowY="hidden")):(s=document.createElement("input"),s.type=this.data.password?"password":"text",s.setAttribute("value",r??n),this.data.doNotScroll&&(s.style.overflowX="hidden")),this.data.hasOwnCanvas&&(s.hidden=!0),La.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:l,datetimeType:c,timeStep:h}=this.data,f=!!c&&this.enableScripting;l&&(s.title=l),this._setRequired(s,this.data.required),a&&(s.maxLength=a),s.addEventListener("input",(p)=>{t.setValue(e,{value:p.target.value}),this.setPropertyOnSiblings(s,"value",p.target.value,"value"),o.formattedValue=null}),s.addEventListener("resetform",(p)=>{let m=this.data.defaultFieldValue??"";s.value=o.userValue=m,o.formattedValue=null});let u=d((p)=>{let{formattedValue:m}=o;m!=null&&(p.target.value=m),p.target.scrollLeft=0},"blurListener");if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",(m)=>{if(o.focused)return;let{target:g}=m;if(f&&(g.type=c,h&&(g.step=h)),o.userValue){let w=o.userValue;if(f)if(c==="time"){let b=new Date(w),j=[b.getHours(),b.getMinutes(),b.getSeconds()];g.value=j.map((v)=>v.toString().padStart(2,"0")).join(":")}else g.value=new Date(w-jv).toISOString().split(c==="date"?"T":".",1)[0];else g.value=w}o.lastCommittedValue=g.value,o.commitKey=1,this.data.actions?.Focus||(o.focused=!0)}),s.addEventListener("updatefromsandbox",(m)=>{this.showElementAndHideCanvas(m.target);let g={value(w){o.userValue=w.detail.value??"",f||t.setValue(e,{value:o.userValue.toString()}),w.target.value=o.userValue},formattedValue(w){let{formattedValue:b}=w.detail;o.formattedValue=b,b!=null&&w.target!==document.activeElement&&(w.target.value=b);let j={formattedValue:b};f&&(j.value=b),t.setValue(e,j)},selRange(w){w.target.setSelectionRange(...w.detail.selRange)},charLimit:d((w)=>{let{charLimit:b}=w.detail,{target:j}=w;if(b===0){j.removeAttribute("maxLength");return}j.setAttribute("maxLength",b);let v=o.userValue;!v||v.length<=b||(v=v.slice(0,b),j.value=o.userValue=v,t.setValue(e,{value:v}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:v,willCommit:!0,commitKey:1,selStart:j.selectionStart,selEnd:j.selectionEnd}}))},"charLimit")};this._dispatchEventFromSandbox(g,m)}),s.addEventListener("keydown",(m)=>{o.commitKey=1;let g=-1;if(m.key==="Escape"?g=0:m.key==="Enter"&&!this.data.multiLine?g=2:m.key==="Tab"&&(o.commitKey=3),g===-1)return;let{value:w}=m.target;o.lastCommittedValue!==w&&(o.lastCommittedValue=w,o.userValue=w,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:w,willCommit:!0,commitKey:g,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}))});let p=u;u=null,s.addEventListener("blur",(m)=>{if(!o.focused||!m.relatedTarget)return;this.data.actions?.Blur||(o.focused=!1);let{target:g}=m,{value:w}=g;if(f){if(w&&c==="time"){let b=w.split(":").map((j)=>parseInt(j,10));w=new Date(2000,0,1,b[0],b[1],b[2]||0).valueOf(),g.step=""}else w.includes("T")||(w=`${w}T00:00`),w=new Date(w).valueOf();g.type="text"}o.userValue=w,o.lastCommittedValue!==w&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:w,willCommit:!0,commitKey:o.commitKey,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}),p(m)}),this.data.actions?.Keystroke&&s.addEventListener("beforeinput",(m)=>{o.lastCommittedValue=null;let{data:g,target:w}=m,{value:b,selectionStart:j,selectionEnd:v}=w,q=j,x=v;switch(m.inputType){case"deleteWordBackward":{let k=b.substring(0,j).match(/\w*[^\w]*$/);k&&(q-=k[0].length);break}case"deleteWordForward":{let k=b.substring(j).match(/^[^\w]*\w*/);k&&(x+=k[0].length);break}case"deleteContentBackward":j===v&&(q-=1);break;case"deleteContentForward":j===v&&(x+=1);break}m.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:b,change:g||"",willCommit:!1,selStart:q,selEnd:x}})}),this._setEventListeners(s,o,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(m)=>m.target.value)}if(u&&s.addEventListener("blur",u),this.data.comb){let p=(this.data.rect[2]-this.data.rect[0])/a;s.classList.add("comb"),s.style.letterSpacing=`calc(${p}px * var(--total-scale-factor) - 1ch)`}}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}};m7=class m7 extends ma{static{d(this,"SignatureWidgetAnnotationElement")}constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}};g7=class g7 extends ma{static{d(this,"CheckboxWidgetAnnotationElement")}constructor(t){super(t,{isRenderable:t.renderForms})}render(){let t=this.annotationStorage,e=this.data,s=e.id,i=t.getValue(s,{value:e.exportValue===e.fieldValue}).value;typeof i=="string"&&(i=i!=="Off",t.setValue(s,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");let n=document.createElement("input");return La.add(n),n.setAttribute("data-element-id",s),n.disabled=e.readOnly,this._setRequired(n,this.data.required),n.type="checkbox",n.name=e.fieldName,i&&n.setAttribute("checked",!0),n.setAttribute("exportValue",e.exportValue),n.tabIndex=0,n.addEventListener("change",(a)=>{let{name:r,checked:o}=a.target;for(let l of this._getElementsByName(r,s)){let c=o&&l.exportValue===e.exportValue;l.domElement&&(l.domElement.checked=c),t.setValue(l.id,{value:c})}t.setValue(s,{value:o})}),n.addEventListener("resetform",(a)=>{let r=e.defaultFieldValue||"Off";a.target.checked=r===e.exportValue}),this.enableScripting&&this.hasJSActions&&(n.addEventListener("updatefromsandbox",(a)=>{let r={value(o){o.target.checked=o.detail.value!=="Off",t.setValue(s,{value:o.target.checked})}};this._dispatchEventFromSandbox(r,a)}),this._setEventListeners(n,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._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}};D0=class D0 extends ma{static{d(this,"RadioButtonWidgetAnnotationElement")}constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");let t=this.annotationStorage,e=this.data,s=e.id,i=t.getValue(s,{value:e.fieldValue===e.buttonValue}).value;if(typeof i=="string"&&(i=i!==e.buttonValue,t.setValue(s,{value:i})),i)for(let a of this._getElementsByName(e.fieldName,s))t.setValue(a.id,{value:!1});let n=document.createElement("input");if(La.add(n),n.setAttribute("data-element-id",s),n.disabled=e.readOnly,this._setRequired(n,this.data.required),n.type="radio",n.name=e.fieldName,i&&n.setAttribute("checked",!0),n.tabIndex=0,n.addEventListener("change",(a)=>{let{name:r,checked:o}=a.target;for(let l of this._getElementsByName(r,s))t.setValue(l.id,{value:!1});t.setValue(s,{value:o})}),n.addEventListener("resetform",(a)=>{let r=e.defaultFieldValue;a.target.checked=r!=null&&r===e.buttonValue}),this.enableScripting&&this.hasJSActions){let a=e.buttonValue;n.addEventListener("updatefromsandbox",(r)=>{let o={value:d((l)=>{let c=a===l.detail.value;for(let h of this._getElementsByName(l.target.name)){let f=c&&h.id===s;h.domElement&&(h.domElement.checked=f),t.setValue(h.id,{value:f})}},"value")};this._dispatchEventFromSandbox(o,r)}),this._setEventListeners(n,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(r)=>r.target.checked)}return this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}};b7=class b7 extends If{static{d(this,"PushButtonWidgetAnnotationElement")}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}};w7=class w7 extends ma{static{d(this,"ChoiceWidgetAnnotationElement")}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}),i=document.createElement("select");La.add(i),i.setAttribute("data-element-id",e),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=0;let n=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",(h)=>{let f=this.data.defaultFieldValue;for(let u of i.options)u.selected=u.value===f});let a=d((h,f)=>{let u=f.replaceAll(" "," ");h.textContent=u,u!==f&&h.setAttribute("display-value",f)},"fixDisplayValue");for(let h of this.data.options){let f=document.createElement("option");a(f,h.displayValue),f.value=h.exportValue,s.value.includes(h.exportValue)&&(f.setAttribute("selected",!0),n=!1),i.append(f)}let r=null;if(n){let h=document.createElement("option");h.value=" ",h.setAttribute("hidden",!0),h.setAttribute("selected",!0),i.prepend(h),r=d(()=>{h.remove(),i.removeEventListener("input",r),r=null},"removeEmptyEntry"),i.addEventListener("input",r)}let o=d((h)=>{let f=h?"value":"textContent",{options:u,multiple:p}=i;return p?Array.prototype.filter.call(u,(m)=>m.selected).map((m)=>m[f]):u.selectedIndex===-1?null:u[u.selectedIndex][f]},"getValue"),l=o(!1),c=d((h)=>{let f=h.target.options;return Array.prototype.map.call(f,(u)=>({displayValue:u.getAttribute("display-value")||u.textContent,exportValue:u.value}))},"getItems");return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",(h)=>{let f={value(u){r?.();let p=u.detail.value,m=new Set(Array.isArray(p)?p:[p]);for(let g of i.options)g.selected=m.has(g.value);t.setValue(e,{value:o(!0)}),l=o(!1)},multipleSelection(u){i.multiple=!0},remove(u){let p=i.options,m=u.detail.remove;p[m].selected=!1,i.remove(m),p.length>0&&Array.prototype.findIndex.call(p,(g)=>g.selected)===-1&&(p[0].selected=!0),t.setValue(e,{value:o(!0),items:c(u)}),l=o(!1)},clear(u){for(;i.length!==0;)i.remove(0);t.setValue(e,{value:null,items:[]}),l=o(!1)},insert(u){let{index:p,displayValue:m,exportValue:g}=u.detail.insert,w=i.children[p],b=document.createElement("option");a(b,m),b.value=g,w?w.before(b):i.append(b),t.setValue(e,{value:o(!0),items:c(u)}),l=o(!1)},items(u){let{items:p}=u.detail;for(;i.length!==0;)i.remove(0);for(let m of p){let{displayValue:g,exportValue:w}=m,b=document.createElement("option");a(b,g),b.value=w,i.append(b)}i.options.length>0&&(i.options[0].selected=!0),t.setValue(e,{value:o(!0),items:c(u)}),l=o(!1)},indices(u){let p=new Set(u.detail.indices);for(let m of u.target.options)m.selected=p.has(m.index);t.setValue(e,{value:o(!0)}),l=o(!1)},editable(u){u.target.disabled=!u.detail.editable}};this._dispatchEventFromSandbox(f,h)}),i.addEventListener("input",(h)=>{let f=o(!0),u=o(!1);t.setValue(e,{value:f}),h.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:l,change:u,changeEx:f,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(h)=>h.target.value)):i.addEventListener("input",function(h){t.setValue(e,{value:o(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}};Ph=class Ph extends Le{static{d(this,"PopupAnnotationElement")}constructor(t){let{data:e,elements:s,parent:i}=t,n=!!i._commentManager;if(super(t,{isRenderable:!n&&Le._hasPopupData(e)}),this.elements=s,n&&Le._hasPopupData(e)){let a=this.popup=this.#t();for(let r of s)r.popup=a}else this.popup=null}#t(){return new y7({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})}render(){let{container:t}=this;t.classList.add("popupAnnotation"),t.role="comment";let e=this.popup=this.#t(),s=[];for(let i of this.elements)i.popup=e,i.container.ariaHasPopup="dialog",s.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",s.map((i)=>`${jr}${i}`).join(",")),this.container}};y7=class y7{static{d(this,"PopupElement")}#t=null;#e=this.#_.bind(this);#s=this.#R.bind(this);#i=this.#j.bind(this);#n=this.#A.bind(this);#a=null;#r=null;#o=null;#l=null;#c=null;#u=null;#h=null;#d=!1;#g=null;#m=null;#f=null;#p=null;#b=null;#v=null;#y=null;#q=null;#C=null;#w=null;#x=!1;#k=null;#S=null;constructor({container:t,color:e,elements:s,titleObj:i,modificationDate:n,contentsObj:a,richText:r,parent:o,rect:l,parentRect:c,open:h,commentManager:f=null}){this.#r=t,this.#C=i,this.#o=a,this.#q=r,this.#u=o,this.#a=e,this.#y=l,this.#h=c,this.#c=s,this.#t=f,this.#k=s[0],this.#l=wl.toDateObject(n),this.trigger=s.flatMap((u)=>u.getElementsToTriggerPopup()),f||(this.#T(),this.#r.hidden=!0,h&&this.#A())}#T(){if(this.#m)return;this.#m=new AbortController;let{signal:t}=this.#m;for(let e of this.trigger)e.addEventListener("click",this.#n,{signal:t}),e.addEventListener("pointerenter",this.#i,{signal:t}),e.addEventListener("pointerleave",this.#s,{signal:t}),e.classList.add("popupTriggerArea");for(let e of this.#c)e.container?.addEventListener("keydown",this.#e,{signal:t})}#F(){let t=this.#c.find((e)=>e.hasCommentButton);t&&(this.#b=t._normalizePoint(t.commentButtonPosition))}renderCommentButton(){if(this.#p){this.#p.parentNode||this.#k.container.after(this.#p);return}if(this.#b||this.#F(),!this.#b)return;let{signal:t}=this.#m=new AbortController,e=this.#k.hasOwnCommentButton,s=d(()=>{this.#t.toggleCommentPopup(this,!0,void 0,!e)},"togglePopup"),i=d(()=>{this.#t.toggleCommentPopup(this,!1,!0,!e)},"showPopup"),n=d(()=>{this.#t.toggleCommentPopup(this,!1,!1)},"hidePopup");if(e){this.#p=this.#k.container;for(let a of this.trigger)a.ariaHasPopup="dialog",a.ariaControls="commentPopup",a.addEventListener("keydown",this.#e,{signal:t}),a.addEventListener("click",s,{signal:t}),a.addEventListener("pointerenter",i,{signal:t}),a.addEventListener("pointerleave",n,{signal:t}),a.classList.add("popupTriggerArea")}else{let a=this.#p=document.createElement("button");a.className="annotationCommentButton";let r=this.#k.container;a.style.zIndex=r.style.zIndex+1,a.tabIndex=0,a.ariaHasPopup="dialog",a.ariaControls="commentPopup",a.setAttribute("data-l10n-id","pdfjs-show-comment-button"),this.#B(),this.#I(),a.addEventListener("keydown",this.#e,{signal:t}),a.addEventListener("click",s,{signal:t}),a.addEventListener("pointerenter",i,{signal:t}),a.addEventListener("pointerleave",n,{signal:t}),r.after(a)}}#I(){if(this.#k.extraPopupElement&&!this.#k.editor)return;this.#p||this.renderCommentButton();let[t,e]=this.#b,{style:s}=this.#p;s.left=`calc(${t}%)`,s.top=`calc(${e}% - var(--comment-button-dim))`}#B(){this.#k.extraPopupElement||(this.#p||this.renderCommentButton(),this.#p.style.backgroundColor=this.commentButtonColor||"")}get commentButtonColor(){let{color:t,opacity:e}=this.#k.commentData;return t?this.#u._commentManager.makeCommentColor(t,e):null}focusCommentButton(){setTimeout(()=>{this.#p?.focus()},0)}getData(){let{richText:t,color:e,opacity:s,creationDate:i,modificationDate:n}=this.#k.commentData;return{contentsObj:{str:this.comment},richText:t,color:e,opacity:s,creationDate:i,modificationDate:n}}get elementBeforePopup(){return this.#p}get comment(){return this.#S||=this.#k.commentText,this.#S}set comment(t){t!==this.comment&&(this.#k.commentText=this.#S=t)}focus(){this.#k.container?.focus()}get parentBoundingClientRect(){return this.#k.layer.getBoundingClientRect()}setCommentButtonStates({selected:t,hasPopup:e}){this.#p&&(this.#p.classList.toggle("selected",t),this.#p.ariaExpanded=e)}setSelectedCommentButton(t){this.#p.classList.toggle("selected",t)}get commentPopupPosition(){if(this.#v)return this.#v;let{x:t,y:e,height:s}=this.#p.getBoundingClientRect(),{x:i,y:n,width:a,height:r}=this.#k.layer.getBoundingClientRect();return[(t-i)/a,(e+s-n)/r]}set commentPopupPosition(t){this.#v=t}hasDefaultPopupPosition(){return this.#v===null}get commentButtonPosition(){return this.#b}get commentButtonWidth(){return this.#p.getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(t){let[e,s]=this.#v||this.commentButtonPosition.map((l)=>l/100),i=this.parentBoundingClientRect,{x:n,y:a,width:r,height:o}=i;this.#t.showDialog(null,this,n+e*r,a+s*o,{...t,parentDimensions:i})}render(){if(this.#g)return;let t=this.#g=document.createElement("div");if(t.className="popup",this.#a){let s=t.style.outlineColor=xt.makeHexColor(...this.#a);t.style.backgroundColor=`color-mix(in srgb, ${s} 30%, white)`}let e=document.createElement("span");if(e.className="header",this.#C?.str){let s=document.createElement("span");s.className="title",e.append(s),{dir:s.dir,str:s.textContent}=this.#C}if(t.append(e),this.#l){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:this.#l.valueOf()})),s.dateTime=this.#l.toISOString(),e.append(s)}xf({html:this.#E||this.#o.str,dir:this.#o?.dir,className:"popupContent"},t),this.#r.append(t)}get#E(){let t=this.#q,e=this.#o;return t?.str&&(!e?.str||e.str===t.str)&&this.#q.html||null}get#M(){return this.#E?.attributes?.style?.fontSize||0}get#P(){return this.#E?.attributes?.style?.color||null}#H(t){let e=[],s={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:e}]}},i={style:{color:this.#P,fontSize:this.#M?`calc(${this.#M}px * var(--total-scale-factor))`:""}};for(let n of t.split(`
99
+ `))e.push({name:"span",value:n,attributes:i});return s}#_(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&this.#d)&&this.#A()}updateEdited({rect:t,popup:e,deleted:s}){if(this.#t){s?(this.remove(),this.#S=null):e&&(e.deleted?this.remove():(this.#B(),this.#S=e.text)),t&&(this.#b=null,this.#F(),this.#I());return}if(s||e?.deleted){this.remove();return}this.#T(),this.#w||={contentsObj:this.#o,richText:this.#q},t&&(this.#f=null),e&&e.text&&(this.#q=this.#H(e.text),this.#l=wl.toDateObject(e.date),this.#o=null),this.#g?.remove(),this.#g=null}resetEdited(){this.#w&&({contentsObj:this.#o,richText:this.#q}=this.#w,this.#w=null,this.#g?.remove(),this.#g=null,this.#f=null)}remove(){if(this.#m?.abort(),this.#m=null,this.#g?.remove(),this.#g=null,this.#x=!1,this.#d=!1,this.#p?.remove(),this.#p=null,this.trigger)for(let t of this.trigger)t.classList.remove("popupTriggerArea")}#z(){if(this.#f!==null)return;let{page:{view:t},viewport:{rawDims:{pageWidth:e,pageHeight:s,pageX:i,pageY:n}}}=this.#u,a=!!this.#h,r=a?this.#h:this.#y;for(let u of this.#c)if(!r||xt.intersect(u.data.rect,r)!==null){r=u.data.rect,a=!0;break}let o=xt.normalizeRect([r[0],t[3]-r[1]+t[1],r[2],t[3]-r[3]+t[1]]),l=a?r[2]-r[0]+5:0,c=o[0]+l,h=o[1];this.#f=[100*(c-i)/e,100*(h-n)/s];let{style:f}=this.#r;f.left=`${this.#f[0]}%`,f.top=`${this.#f[1]}%`}#A(){if(this.#t){this.#t.toggleCommentPopup(this,!1);return}this.#d=!this.#d,this.#d?(this.#j(),this.#r.addEventListener("click",this.#n),this.#r.addEventListener("keydown",this.#e)):(this.#R(),this.#r.removeEventListener("click",this.#n),this.#r.removeEventListener("keydown",this.#e))}#j(){this.#g||this.render(),this.isVisible?this.#d&&this.#r.classList.add("focused"):(this.#z(),this.#r.hidden=!1,this.#r.style.zIndex=parseInt(this.#r.style.zIndex)+1000)}#R(){this.#r.classList.remove("focused"),!(this.#d||!this.isVisible)&&(this.#r.hidden=!0,this.#r.style.zIndex=parseInt(this.#r.style.zIndex)-1000)}forceHide(){this.#x=this.isVisible,this.#x&&(this.#r.hidden=!0)}maybeShow(){this.#t||(this.#T(),this.#x&&(this.#g||this.#j(),this.#x=!1,this.#r.hidden=!1))}get isVisible(){return this.#t?!1:this.#r.hidden===!1}};R0=class R0 extends Le{static{d(this,"FreeTextAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=Zt.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}};j7=class j7 extends Le{static{d(this,"LineAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");let{data:t,width:e,height:s}=this,i=this.svgFactory.create(e,s,!0),n=this.#t=this.svgFactory.createElement("svg:line");return n.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),n.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),n.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),n.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),n.setAttribute("stroke-width",t.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),i.append(n),this.container.append(i),!t.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}};v7=class v7 extends Le{static{d(this,"SquareAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");let{data:t,width:e,height:s}=this,i=this.svgFactory.create(e,s,!0),n=t.borderStyle.width,a=this.#t=this.svgFactory.createElement("svg:rect");return a.setAttribute("x",n/2),a.setAttribute("y",n/2),a.setAttribute("width",e-n),a.setAttribute("height",s-n),a.setAttribute("stroke-width",n||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!t.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}};k7=class k7 extends Le{static{d(this,"CircleAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");let{data:t,width:e,height:s}=this,i=this.svgFactory.create(e,s,!0),n=t.borderStyle.width,a=this.#t=this.svgFactory.createElement("svg:ellipse");return a.setAttribute("cx",e/2),a.setAttribute("cy",s/2),a.setAttribute("rx",e/2-n/2),a.setAttribute("ry",s/2-n/2),a.setAttribute("stroke-width",n||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!t.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}};H0=class H0 extends Le{static{d(this,"PolylineAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);let{data:{rect:t,vertices:e,borderStyle:s,popupRef:i},width:n,height:a}=this;if(!e)return this.container;let r=this.svgFactory.create(n,a,!0),o=[];for(let c=0,h=e.length;c<h;c+=2){let f=e[c]-t[0],u=t[3]-e[c+1];o.push(`${f},${u}`)}o=o.join(" ");let l=this.#t=this.svgFactory.createElement(this.svgElementName);return l.setAttribute("points",o),l.setAttribute("stroke-width",s.width||1),l.setAttribute("stroke","transparent"),l.setAttribute("fill","transparent"),r.append(l),this.container.append(r),!i&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}};q7=class q7 extends H0{static{d(this,"PolygonAnnotationElement")}constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}};x7=class x7 extends Le{static{d(this,"CaretAnnotationElement")}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}};Tf=class Tf extends Le{static{d(this,"InkAnnotationElement")}#t=null;#e=[];constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?Zt.HIGHLIGHT:Zt.INK}#s(t,e){switch(t){case 90:return{transform:`rotate(90) translate(${-e[0]},${e[1]}) scale(1,-1)`,width:e[3]-e[1],height:e[2]-e[0]};case 180:return{transform:`rotate(180) translate(${-e[2]},${e[1]}) scale(1,-1)`,width:e[2]-e[0],height:e[3]-e[1]};case 270:return{transform:`rotate(270) translate(${-e[2]},${e[3]}) scale(1,-1)`,width:e[3]-e[1],height:e[2]-e[0]};default:return{transform:`translate(${-e[0]},${e[3]}) scale(1,-1)`,width:e[2]-e[0],height:e[3]-e[1]}}}render(){this.container.classList.add(this.containerClassName);let{data:{rect:t,rotation:e,inkLists:s,borderStyle:i,popupRef:n}}=this,{transform:a,width:r,height:o}=this.#s(e,t),l=this.svgFactory.create(r,o,!0),c=this.#t=this.svgFactory.createElement("svg:g");l.append(c),c.setAttribute("stroke-width",i.width||1),c.setAttribute("stroke-linecap","round"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit",10),c.setAttribute("stroke","transparent"),c.setAttribute("fill","transparent"),c.setAttribute("transform",a);for(let h=0,f=s.length;h<f;h++){let u=this.svgFactory.createElement(this.svgElementName);this.#e.push(u),u.setAttribute("points",s[h].join(",")),c.append(u)}return!n&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(l),this._editOnDoubleClick(),this.container}updateEdited(t){super.updateEdited(t);let{thickness:e,points:s,rect:i}=t,n=this.#t;if(e>=0&&n.setAttribute("stroke-width",e||1),s)for(let a=0,r=this.#e.length;a<r;a++)this.#e[a].setAttribute("points",s[a].join(","));if(i){let{transform:a,width:r,height:o}=this.#s(this.data.rotation,i);n.parentElement.setAttribute("viewBox",`0 0 ${r} ${o}`),n.setAttribute("transform",a)}}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}};_0=class _0 extends Le{static{d(this,"HighlightAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=Zt.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}};A7=class A7 extends Le{static{d(this,"UnderlineAnnotationElement")}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}};S7=class S7 extends Le{static{d(this,"SquigglyAnnotationElement")}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}};C7=class C7 extends Le{static{d(this,"StrikeOutAnnotationElement")}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}};O0=class O0 extends Le{static{d(this,"StampAnnotationElement")}constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=Zt.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}};I7=class I7 extends Le{static{d(this,"FileAttachmentAnnotationElement")}#t=null;constructor(t){super(t,{isRenderable:!0});let{file:e}=this.data;this.filename=e.filename,this.content=e.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...e})}render(){this.container.classList.add("fileAttachmentAnnotation");let{container:t,data:e}=this,s;e.hasAppearance||e.fillAlpha===0?s=document.createElement("div"):(s=document.createElement("img"),s.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(e.name)?"paperclip":"pushpin"}.svg`,e.fillAlpha&&e.fillAlpha<1&&(s.style=`filter: opacity(${Math.round(e.fillAlpha*100)}%);`)),s.addEventListener("dblclick",this.#e.bind(this)),this.#t=s;let{isMac:i}=es.platform;return t.addEventListener("keydown",(n)=>{n.key==="Enter"&&(i?n.metaKey:n.ctrlKey)&&this.#e()}),!e.popupRef&&this.hasPopupData?(this.hasOwnCommentButton=!0,this._createPopup()):s.classList.add("popupTriggerArea"),t.append(s),t}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}#e(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}};Ff=class Ff{static{d(this,"AnnotationLayer")}#t=null;#e=null;#s=null;#i=new Map;#n=null;#a=null;#r=[];#o=!1;constructor({div:t,accessibilityManager:e,annotationCanvasMap:s,annotationEditorUIManager:i,page:n,viewport:a,structTreeLayer:r,commentManager:o,linkService:l,annotationStorage:c}){this.div=t,this.#t=e,this.#e=s,this.#n=r||null,this.#a=l||null,this.#s=c||new Af,this.page=n,this.viewport=a,this.zIndex=0,this._annotationEditorUIManager=i,this._commentManager=o||null}hasEditableAnnotations(){return this.#i.size>0}async render(t){let{annotations:e}=t,s=this.div;_n(s,this.viewport);let i=new Map,n=[],a={data:null,layer:s,linkService:this.#a,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new zr,annotationStorage:this.#s,enableComment:t.enableComment===!0,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(let r of e){if(r.noHTML)continue;let o=r.annotationType===Xe.POPUP;if(o){let h=i.get(r.id);if(!h)continue;if(!this._commentManager){n.push(r);continue}a.elements=h}else if(r.rect[2]===r.rect[0]||r.rect[3]===r.rect[1])continue;a.data=r;let l=Kc.create(a);if(!l.isRenderable)continue;o||(this.#r.push(l),r.popupRef&&i.getOrInsertComputed(r.popupRef,vf).push(l));let c=l.render();r.hidden&&(c.style.visibility="hidden"),l._isEditable&&(this.#i.set(l.data.id,l),this._annotationEditorUIManager?.renderAnnotationElement(l))}await this.#l();for(let r of n){let o=a.elements=i.get(r.id);a.data=r;let l=Kc.create(a);if(!l.isRenderable)continue;let c=l.render();l.contentElement.id=`${jr}${r.id}`,r.hidden&&(c.style.visibility="hidden"),o.at(-1).container.after(c)}this.#c()}async#l(){if(this.#r.length===0)return;this.div.replaceChildren();let t=[];if(!this.#o){this.#o=!0;for(let{contentElement:s,data:{id:i}}of this.#r){let n=s.id=`${jr}${i}`;t.push(this.#n?.getAriaAttributes(n).then((a)=>{if(a)for(let[r,o]of a)s.setAttribute(r,o)}))}}this.#r.sort(({data:{rect:[s,i,n,a]}},{data:{rect:[r,o,l,c]}})=>{if(s===n&&i===a)return 1;if(r===l&&o===c)return-1;let h=a,f=i,u=(i+a)/2,p=c,m=o,g=(o+c)/2;if(u>=p&&g<=f)return-1;if(g>=h&&u<=m)return 1;let w=(s+n)/2,b=(r+l)/2;return w-b});let e=document.createDocumentFragment();for(let s of this.#r)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),this.#t)for(let s of this.#r)this.#t.addPointerInTextLayer(s.contentElement,!1)}async addLinkAnnotations(t){let e={data:null,layer:this.div,linkService:this.#a,svgFactory:new zr,parent:this};for(let s of t){s.borderStyle||=Ff._defaultBorderStyle,e.data=s;let i=Kc.create(e);i.isRenderable&&(i.render(),i.contentElement.id=`${jr}${s.id}`,this.#r.push(i))}await this.#l()}update({viewport:t}){let e=this.div;this.viewport=t,_n(e,{rotation:t.rotation}),this.#c(),e.hidden=!1}#c(){if(!this.#e)return;let t=this.div;for(let[e,s]of this.#e){let i=t.querySelector(`[data-annotation-id="${e}"]`);if(!i)continue;s.className="annotationContent";let{firstChild:n}=i;n?n.nodeName==="CANVAS"?n.replaceWith(s):n.classList.contains("annotationContent")?n.after(s):n.before(s):i.append(s);let a=this.#i.get(e);a&&(a._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(e,i.id,s),a._hasNoCanvas=!1):a.canvas=s)}this.#e.clear()}getEditableAnnotations(){return this.#i.values()}getEditableAnnotation(t){return this.#i.get(t)}addFakeAnnotation(t){let{div:e}=this,{id:s,rotation:i}=t,n=new u7({data:{id:s,rect:t.getPDFRect(),rotation:i},editor:t,layer:e,parent:this,enableComment:!!this._commentManager,linkService:this.#a,annotationStorage:this.#s});return n.render(),n.contentElement.id=`${jr}${s}`,n.createOrUpdatePopup(),this.#r.push(n),n}removeAnnotation(t){let e=this.#r.findIndex((i)=>i.data.id===t);if(e<0)return;let[s]=this.#r.splice(e,1);this.#t?.removePointerInTextLayer(s.contentElement)}updateFakeAnnotations(t){if(t.length!==0){for(let e of t)e.updateFakeAnnotationElement(this);this.#l()}}togglePointerEvents(t=!1){this.div.classList.toggle("disabled",!t)}static get _defaultBorderStyle(){return se(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:cr.SOLID,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}};qc=/\r\n?|\n/g;us=class us extends Ut{static{d(this,"FreeTextEditor")}#t="";#e=`${this.id}-editor`;#s=null;#i;_colorPicker=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){let t=us.prototype,e=d((n)=>n.isEmpty(),"arrowChecker"),s=On.TRANSLATE_SMALL,i=On.TRANSLATE_BIG;return se(this,"_keyboardManager",new Xr([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-s,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-i,0],checker:e}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[s,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[i,0],checker:e}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-s],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-i],checker:e}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,s],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,i],checker:e}]]))}static _type="freetext";static _editorType=Zt.FREETEXT;constructor(t){super({...t,name:"freeTextEditor"}),this.color=t.color||us._defaultColor||Ut._defaultLineColor,this.#i=t.fontSize||us._defaultFontSize,this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert"),this.canAddComment=!1}static initialize(t,e){Ut.initialize(t,e);let s=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(s.getPropertyValue("--freetext-padding"))}static updateDefaultParams(t,e){switch(t){case ge.FREETEXT_SIZE:us._defaultFontSize=e;break;case ge.FREETEXT_COLOR:us._defaultColor=e;break}}updateParams(t,e){switch(t){case ge.FREETEXT_SIZE:this.#n(e);break;case ge.FREETEXT_COLOR:this.#a(e);break}}static get defaultPropertiesToUpdate(){return[[ge.FREETEXT_SIZE,us._defaultFontSize],[ge.FREETEXT_COLOR,us._defaultColor||Ut._defaultLineColor]]}get propertiesToUpdate(){return[[ge.FREETEXT_SIZE,this.#i],[ge.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||=new jl(this),[["colorPicker",this._colorPicker]]}get colorType(){return ge.FREETEXT_COLOR}#n(t){let e=d((i)=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--total-scale-factor))`,this.translate(0,-(i-this.#i)*this.parentScale),this.#i=i,this.#o()},"setFontsize"),s=this.#i;this.addCommands({cmd:e.bind(this,t),undo:e.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ge.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}onUpdatedColor(){this.editorDiv.style.color=this.color,this._colorPicker?.update(this.color),super.onUpdatedColor()}#a(t){let e=d((i)=>{this.color=i,this.onUpdatedColor()},"setColor"),s=this.color;this.addCommands({cmd:e.bind(this,t),undo:e.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ge.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(t,e){this._uiManager.translateSelectedEditors(t,e,!0)}getInitialTranslation(){let t=this.parentScale;return[-us._internalPadding*t,-(us._internalPadding+this.#i)*t]}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"),this.#s=new AbortController;let t=this._uiManager.combinedSignal(this.#s);return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:t}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:t}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:t}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:t}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:t}),!0}disableEditMode(){return super.disableEditMode()?(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#e),this._isDraggable=!0,this.#s?.abort(),this.#s=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0):!1}focusin(t){this._focusEventsAllowed&&(super.focusin(t),t.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(t){this.width||(this.enableEditMode(),t&&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()}#r(){let t=[];this.editorDiv.normalize();let e=null;for(let s of this.editorDiv.childNodes)e?.nodeType===Node.TEXT_NODE&&s.nodeName==="BR"||(t.push(us.#l(s)),e=s);return t.join(`
100
+ `)}#o(){let[t,e]=this.parentDimensions,s;if(this.isAttachedToDOM)s=this.div.getBoundingClientRect();else{let{currentLayer:i,div:n}=this,a=n.style.display,r=n.classList.contains("hidden");n.classList.remove("hidden"),n.style.display="hidden",i.div.append(this.div),s=n.getBoundingClientRect(),n.remove(),n.style.display=a,n.classList.toggle("hidden",r)}this.rotation%180===this.parentRotation%180?(this.width=s.width/t,this.height=s.height/e):(this.width=s.height/t,this.height=s.width/e),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();let t=this.#t,e=this.#t=this.#r().trimEnd();if(t===e)return;let s=d((i)=>{if(this.#t=i,!i){this.remove();return}this.#c(),this._uiManager.rebuild(this),this.#o()},"setText");this.addCommands({cmd:d(()=>{s(e)},"cmd"),undo:d(()=>{s(t)},"undo"),mustExec:!1}),this.#o()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(t){t.target===this.div&&t.key==="Enter"&&(this.enterInEditMode(),t.preventDefault())}editorDivKeydown(t){us._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){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 t,e;(this._isCopy||this.annotationElementId)&&(t=this.x,e=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#e),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:s}=this.editorDiv;if(s.fontSize=`calc(${this.#i}px * var(--total-scale-factor))`,s.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[i,n]=this.parentDimensions;if(this.annotationElementId){let{position:a}=this._initialData,[r,o]=this.getInitialTranslation();[r,o]=this.pageTranslationToScreen(r,o);let[l,c]=this.pageDimensions,[h,f]=this.pageTranslation,u,p;switch(this.rotation){case 0:u=t+(a[0]-h)/l,p=e+this.height-(a[1]-f)/c;break;case 90:u=t+(a[0]-h)/l,p=e-(a[1]-f)/c,[r,o]=[o,-r];break;case 180:u=t-this.width+(a[0]-h)/l,p=e-(a[1]-f)/c,[r,o]=[-r,-o];break;case 270:u=t+(a[0]-h-this.height*c)/l,p=e+(a[1]-f-this.width*l)/c,[r,o]=[-o,r];break}this.setAt(u*i,p*n,r,o)}else this._moveAfterPaste(t,e);this.#c(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#l(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(qc,"")}editorDivPaste(t){let e=t.clipboardData||window.clipboardData,{types:s}=e;if(s.length===1&&s[0]==="text/plain")return;t.preventDefault();let i=us.#h(e.getData("text")||"").replaceAll(qc,`
101
+ `);if(!i)return;let n=window.getSelection();if(!n.rangeCount)return;this.editorDiv.normalize(),n.deleteFromDocument();let a=n.getRangeAt(0);if(!i.includes(`
102
+ `)){a.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),n.collapseToStart();return}let{startContainer:r,startOffset:o}=a,l=[],c=[];if(r.nodeType===Node.TEXT_NODE){let u=r.parentElement;if(c.push(r.nodeValue.slice(o).replaceAll(qc,"")),u!==this.editorDiv){let p=l;for(let m of this.editorDiv.childNodes){if(m===u){p=c;continue}p.push(us.#l(m))}}l.push(r.nodeValue.slice(0,o).replaceAll(qc,""))}else if(r===this.editorDiv){let u=l,p=0;for(let m of this.editorDiv.childNodes)p++===o&&(u=c),u.push(us.#l(m))}this.#t=`${l.join(`
103
+ `)}${i}${c.join(`
104
+ `)}`,this.#c();let h=new Range,f=Math.sumPrecise(l.map((u)=>u.length));for(let{firstChild:u}of this.editorDiv.childNodes)if(u.nodeType===Node.TEXT_NODE){let p=u.nodeValue.length;if(f<=p){h.setStart(u,f),h.setEnd(u,f);break}f-=p}n.removeAllRanges(),n.addRange(h)}#c(){if(this.editorDiv.replaceChildren(),!!this.#t)for(let t of this.#t.split(`
105
+ `)){let e=document.createElement("div");e.append(t?document.createTextNode(t):document.createElement("br")),this.editorDiv.append(e)}}#u(){return this.#t.replaceAll(" "," ")}static#h(t){return t.replaceAll(" "," ")}get contentDiv(){return this.editorDiv}getPDFRect(){let t=us._internalPadding*this.parentScale;return this.getRect(t,t)}static async deserialize(t,e,s){let i=null;if(t instanceof R0){let{data:{defaultAppearanceData:{fontSize:a,fontColor:r},rect:o,rotation:l,id:c,popupRef:h,richText:f,contentsObj:u,creationDate:p,modificationDate:m},textContent:g,textPosition:w,parent:{page:{pageNumber:b}}}=t;if(!g||g.length===0)return null;i=t={annotationType:Zt.FREETEXT,color:Array.from(r),fontSize:a,value:g.join(`
106
+ `),position:w,pageIndex:b-1,rect:o.slice(0),rotation:l,annotationElementId:c,id:c,deleted:!1,popupRef:h,comment:u?.str||null,richText:f,creationDate:p,modificationDate:m}}let n=await super.deserialize(t,e,s);return n.#i=t.fontSize,n.color=xt.makeHexColor(...t.color),n.#t=us.#h(t.value),n._initialData=i,t.comment&&n.setCommentData(t),n}serialize(t=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let e=Ut._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),s=Object.assign(super.serialize(t),{color:e,fontSize:this.#i,value:this.#u()});return this.addComment(s),t?(s.isCopy=!0,s):this.annotationElementId&&!this.#d(s)?null:(s.id=this.annotationElementId,s)}#d(t){let{value:e,fontSize:s,color:i,pageIndex:n}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||t.value!==e||t.fontSize!==s||t.color.some((a,r)=>a!==i[r])||t.pageIndex!==n}renderAnnotationElement(t){let e=super.renderAnnotationElement(t);if(!e)return null;let{style:s}=e;s.fontSize=`calc(${this.#i}px * var(--total-scale-factor))`,s.color=this.color,e.replaceChildren();for(let i of this.#t.split(`
107
+ `)){let n=document.createElement("div");n.append(i?document.createTextNode(i):document.createElement("br")),e.append(n)}return t.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:this.#t}}),e}resetAnnotationElement(t){super.resetAnnotationElement(t),t.resetEdited()}};Bt=class Bt{static{d(this,"Outline")}static PRECISION=0.0001;toSVGPath(){Se("Abstract method `toSVGPath` must be implemented.")}get box(){Se("Abstract getter `box` must be implemented.")}serialize(t,e){Se("Abstract method `serialize` must be implemented.")}static _rescale(t,e,s,i,n,a){a||=new Float32Array(t.length);for(let r=0,o=t.length;r<o;r+=2)a[r]=e+t[r]*i,a[r+1]=s+t[r+1]*n;return a}static _rescaleAndSwap(t,e,s,i,n,a){a||=new Float32Array(t.length);for(let r=0,o=t.length;r<o;r+=2)a[r]=e+t[r+1]*i,a[r+1]=s+t[r]*n;return a}static _translate(t,e,s,i){i||=new Float32Array(t.length);for(let n=0,a=t.length;n<a;n+=2)i[n]=e+t[n],i[n+1]=s+t[n+1];return i}static svgRound(t){return Math.round(t*1e4)}static _normalizePoint(t,e,s,i,n){switch(n){case 90:return[1-e/s,t/i];case 180:return[1-t/s,1-e/i];case 270:return[e/s,1-t/i];default:return[t/s,e/i]}}static _normalizePagePoint(t,e,s){switch(s){case 90:return[1-e,t];case 180:return[1-t,1-e];case 270:return[e,1-t];default:return[t,e]}}static createBezierPoints(t,e,s,i,n,a){return[(t+5*s)/6,(e+5*i)/6,(5*s+n)/6,(5*i+a)/6,(s+n)/2,(i+a)/2]}};Ta=class Ta{static{d(this,"FreeDrawOutliner")}#t;#e=[];#s;#i;#n=[];#a=new Float32Array(18);#r;#o;#l;#c;#u;#h;#d=[];static#g=8;static#m=2;static#f=Ta.#g+Ta.#m;constructor({x:t,y:e},s,i,n,a,r=0){this.#t=s,this.#h=n*i,this.#i=a,this.#a.set([NaN,NaN,NaN,NaN,t,e],6),this.#s=r,this.#c=Ta.#g*i,this.#l=Ta.#f*i,this.#u=i,this.#d.push(t,e)}isEmpty(){return isNaN(this.#a[8])}#p(){let t=this.#a.subarray(4,6),e=this.#a.subarray(16,18),[s,i,n,a]=this.#t;return[(this.#r+(t[0]-e[0])/2-s)/n,(this.#o+(t[1]-e[1])/2-i)/a,(this.#r+(e[0]-t[0])/2-s)/n,(this.#o+(e[1]-t[1])/2-i)/a]}add({x:t,y:e}){this.#r=t,this.#o=e;let[s,i,n,a]=this.#t,[r,o,l,c]=this.#a.subarray(8,12),h=t-l,f=e-c,u=Math.hypot(h,f);if(u<this.#l)return!1;let p=u-this.#c,m=p/u,g=m*h,w=m*f,b=r,j=o;r=l,o=c,l+=g,c+=w,this.#d?.push(t,e);let v=-w/p,q=g/p,x=v*this.#h,k=q*this.#h;return this.#a.set(this.#a.subarray(2,8),0),this.#a.set([l+x,c+k],4),this.#a.set(this.#a.subarray(14,18),12),this.#a.set([l-x,c-k],16),isNaN(this.#a[6])?(this.#n.length===0&&(this.#a.set([r+x,o+k],2),this.#n.push(NaN,NaN,NaN,NaN,(r+x-s)/n,(o+k-i)/a),this.#a.set([r-x,o-k],14),this.#e.push(NaN,NaN,NaN,NaN,(r-x-s)/n,(o-k-i)/a)),this.#a.set([b,j,r,o,l,c],6),!this.isEmpty()):(this.#a.set([b,j,r,o,l,c],6),Math.abs(Math.atan2(j-o,b-r)-Math.atan2(w,g))<Math.PI/2?([r,o,l,c]=this.#a.subarray(2,6),this.#n.push(NaN,NaN,NaN,NaN,((r+l)/2-s)/n,((o+c)/2-i)/a),[r,o,b,j]=this.#a.subarray(14,18),this.#e.push(NaN,NaN,NaN,NaN,((b+r)/2-s)/n,((j+o)/2-i)/a),!0):([b,j,r,o,l,c]=this.#a.subarray(0,6),this.#n.push(((b+5*r)/6-s)/n,((j+5*o)/6-i)/a,((5*r+l)/6-s)/n,((5*o+c)/6-i)/a,((r+l)/2-s)/n,((o+c)/2-i)/a),[l,c,r,o,b,j]=this.#a.subarray(12,18),this.#e.push(((b+5*r)/6-s)/n,((j+5*o)/6-i)/a,((5*r+l)/6-s)/n,((5*o+c)/6-i)/a,((r+l)/2-s)/n,((o+c)/2-i)/a),!0))}toSVGPath(){if(this.isEmpty())return"";let t=this.#n,e=this.#e;if(isNaN(this.#a[6])&&!this.isEmpty())return this.#b();let s=[];s.push(`M${t[4]} ${t[5]}`);for(let i=6;i<t.length;i+=6)isNaN(t[i])?s.push(`L${t[i+4]} ${t[i+5]}`):s.push(`C${t[i]} ${t[i+1]} ${t[i+2]} ${t[i+3]} ${t[i+4]} ${t[i+5]}`);this.#y(s);for(let i=e.length-6;i>=6;i-=6)isNaN(e[i])?s.push(`L${e[i+4]} ${e[i+5]}`):s.push(`C${e[i]} ${e[i+1]} ${e[i+2]} ${e[i+3]} ${e[i+4]} ${e[i+5]}`);return this.#v(s),s.join(" ")}#b(){let[t,e,s,i]=this.#t,[n,a,r,o]=this.#p();return`M${(this.#a[2]-t)/s} ${(this.#a[3]-e)/i} L${(this.#a[4]-t)/s} ${(this.#a[5]-e)/i} L${n} ${a} L${r} ${o} L${(this.#a[16]-t)/s} ${(this.#a[17]-e)/i} L${(this.#a[14]-t)/s} ${(this.#a[15]-e)/i} Z`}#v(t){let e=this.#e;t.push(`L${e[4]} ${e[5]} Z`)}#y(t){let[e,s,i,n]=this.#t,a=this.#a.subarray(4,6),r=this.#a.subarray(16,18),[o,l,c,h]=this.#p();t.push(`L${(a[0]-e)/i} ${(a[1]-s)/n} L${o} ${l} L${c} ${h} L${(r[0]-e)/i} ${(r[1]-s)/n}`)}newFreeDrawOutline(t,e,s,i,n,a){return new N0(t,e,s,i,n,a)}getOutlines(){let t=this.#n,e=this.#e,s=this.#a,[i,n,a,r]=this.#t,o=new Float32Array((this.#d?.length??0)+2);for(let h=0,f=o.length-2;h<f;h+=2)o[h]=(this.#d[h]-i)/a,o[h+1]=(this.#d[h+1]-n)/r;if(o[o.length-2]=(this.#r-i)/a,o[o.length-1]=(this.#o-n)/r,isNaN(s[6])&&!this.isEmpty())return this.#q(o);let l=new Float32Array(this.#n.length+24+this.#e.length),c=t.length;for(let h=0;h<c;h+=2){if(isNaN(t[h])){l[h]=l[h+1]=NaN;continue}l[h]=t[h],l[h+1]=t[h+1]}c=this.#w(l,c);for(let h=e.length-6;h>=6;h-=6)for(let f=0;f<6;f+=2){if(isNaN(e[h+f])){l[c]=l[c+1]=NaN,c+=2;continue}l[c]=e[h+f],l[c+1]=e[h+f+1],c+=2}return this.#C(l,c),this.newFreeDrawOutline(l,o,this.#t,this.#u,this.#s,this.#i)}#q(t){let e=this.#a,[s,i,n,a]=this.#t,[r,o,l,c]=this.#p(),h=new Float32Array(36);return h.set([NaN,NaN,NaN,NaN,(e[2]-s)/n,(e[3]-i)/a,NaN,NaN,NaN,NaN,(e[4]-s)/n,(e[5]-i)/a,NaN,NaN,NaN,NaN,r,o,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,(e[16]-s)/n,(e[17]-i)/a,NaN,NaN,NaN,NaN,(e[14]-s)/n,(e[15]-i)/a],0),this.newFreeDrawOutline(h,t,this.#t,this.#u,this.#s,this.#i)}#C(t,e){let s=this.#e;return t.set([NaN,NaN,NaN,NaN,s[4],s[5]],e),e+=6}#w(t,e){let s=this.#a.subarray(4,6),i=this.#a.subarray(16,18),[n,a,r,o]=this.#t,[l,c,h,f]=this.#p();return t.set([NaN,NaN,NaN,NaN,(s[0]-n)/r,(s[1]-a)/o,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,h,f,NaN,NaN,NaN,NaN,(i[0]-n)/r,(i[1]-a)/o],e),e+=24}};N0=class N0 extends Bt{static{d(this,"FreeDrawOutline")}#t;#e=new Float32Array(4);#s;#i;#n;#a;#r;constructor(t,e,s,i,n,a){super(),this.#r=t,this.#n=e,this.#t=s,this.#a=i,this.#s=n,this.#i=a,this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],this.#o(a);let[r,o,l,c]=this.#e;for(let h=0,f=t.length;h<f;h+=2)t[h]=(t[h]-r)/l,t[h+1]=(t[h+1]-o)/c;for(let h=0,f=e.length;h<f;h+=2)e[h]=(e[h]-r)/l,e[h+1]=(e[h+1]-o)/c}toSVGPath(){let t=[`M${this.#r[4]} ${this.#r[5]}`];for(let e=6,s=this.#r.length;e<s;e+=6){if(isNaN(this.#r[e])){t.push(`L${this.#r[e+4]} ${this.#r[e+5]}`);continue}t.push(`C${this.#r[e]} ${this.#r[e+1]} ${this.#r[e+2]} ${this.#r[e+3]} ${this.#r[e+4]} ${this.#r[e+5]}`)}return t.push("Z"),t.join(" ")}serialize([t,e,s,i],n){let a=s-t,r=i-e,o,l;switch(n){case 0:o=Bt._rescale(this.#r,t,i,a,-r),l=Bt._rescale(this.#n,t,i,a,-r);break;case 90:o=Bt._rescaleAndSwap(this.#r,t,e,a,r),l=Bt._rescaleAndSwap(this.#n,t,e,a,r);break;case 180:o=Bt._rescale(this.#r,s,e,-a,r),l=Bt._rescale(this.#n,s,e,-a,r);break;case 270:o=Bt._rescaleAndSwap(this.#r,s,i,-a,-r),l=Bt._rescaleAndSwap(this.#n,s,i,-a,-r);break}return{outline:Array.from(o),points:[Array.from(l)]}}#o(t){let e=this.#r,s=e[4],i=e[5],n=[s,i,s,i],a=s,r=i,o=s,l=i,c=t?Math.max:Math.min,h=new Float32Array(4);for(let u=6,p=e.length;u<p;u+=6){let m=e[u+4],g=e[u+5];isNaN(e[u])?(xt.pointBoundingBox(m,g,n),r>g?(a=m,r=g):r===g&&(a=c(a,m)),l<g?(o=m,l=g):l===g&&(o=c(o,m))):(h[0]=h[1]=1/0,h[2]=h[3]=-1/0,xt.bezierBoundingBox(s,i,...e.slice(u,u+6),h),xt.rectBoundingBox(h[0],h[1],h[2],h[3],n),r>h[1]?(a=h[0],r=h[1]):r===h[1]&&(a=c(a,h[0])),l<h[3]?(o=h[2],l=h[3]):l===h[3]&&(o=c(o,h[2]))),s=m,i=g}let f=this.#e;f[0]=n[0]-this.#s,f[1]=n[1]-this.#s,f[2]=n[2]-n[0]+2*this.#s,f[3]=n[3]-n[1]+2*this.#s,this.firstPoint=[a,r],this.lastPoint=[o,l]}get box(){return this.#e}newOutliner(t,e,s,i,n,a=0){return new Ta(t,e,s,i,n,a)}getNewOutline(t,e){let[s,i,n,a]=this.#e,[r,o,l,c]=this.#t,h=n*l,f=a*c,u=s*l+r,p=i*c+o,m=this.newOutliner({x:this.#n[0]*h+u,y:this.#n[1]*f+p},this.#t,this.#a,t,this.#i,e??this.#s);for(let g=2;g<this.#n.length;g+=2)m.add({x:this.#n[g]*h+u,y:this.#n[g+1]*f+p});return m.getOutlines()}};Dh=class Dh{static{d(this,"HighlightOutliner")}#t;#e;#s;#i=[];#n=[];constructor(t,e=0,s=0,i=!0){let n=[1/0,1/0,-1/0,-1/0];for(let{x:m,y:g,width:w,height:b}of t){let j=Math.floor((m-e)/0.0001)*0.0001,v=Math.ceil((m+w+e)/0.0001)*0.0001,q=Math.floor((g-e)/0.0001)*0.0001,x=Math.ceil((g+b+e)/0.0001)*0.0001,k=[j,q,x,!0],A=[v,q,x,!1];this.#i.push(k,A),xt.rectBoundingBox(j,q,v,x,n)}let r=n[2]-n[0]+2*s,o=n[3]-n[1]+2*s,l=n[0]-s,c=n[1]-s,h=i?-1/0:1/0,f=1/0,u=this.#i.at(i?-1:-2),p=[u[0],u[2]];for(let m of this.#i){let[g,w,b,j]=m;!j&&i?w<f?(f=w,h=g):w===f&&(h=Math.max(h,g)):j&&!i&&(w<f?(f=w,h=g):w===f&&(h=Math.min(h,g))),m[0]=(g-l)/r,m[1]=(w-c)/o,m[2]=(b-c)/o}this.#t=new Float32Array([l,c,r,o]),this.#e=[h,f],this.#s=p}getOutlines(){this.#i.sort((e,s)=>e[0]-s[0]||e[1]-s[1]||e[2]-s[2]);let t=[];for(let e of this.#i)e[3]?(t.push(...this.#c(e)),this.#o(e)):(this.#l(e),t.push(...this.#c(e)));return this.#a(t)}#a(t){let e=[],s=new Set;for(let a of t){let[r,o,l]=a;e.push([r,o,a],[r,l,a])}e.sort((a,r)=>a[1]-r[1]||a[0]-r[0]);for(let a=0,r=e.length;a<r;a+=2){let o=e[a][2],l=e[a+1][2];o.push(l),l.push(o),s.add(o),s.add(l)}let i=[],n;for(;s.size>0;){let a=s.values().next().value,[r,o,l,c,h]=a;s.delete(a);let f=r,u=o;for(n=[r,l],i.push(n);;){let p;if(s.has(c))p=c;else if(s.has(h))p=h;else break;s.delete(p),[r,o,l,c,h]=p,f!==r&&(n.push(f,u,r,u===o?o:l),f=r),u=u===o?l:o}n.push(f,u)}return new T7(i,this.#t,this.#e,this.#s)}#r(t){let e=this.#n,s=0,i=e.length-1;for(;s<=i;){let n=s+i>>1,a=e[n][0];if(a===t)return n;a<t?s=n+1:i=n-1}return i+1}#o([,t,e]){let s=this.#r(t);this.#n.splice(s,0,[t,e])}#l([,t,e]){let s=this.#r(t);for(let i=s;i<this.#n.length;i++){let[n,a]=this.#n[i];if(n!==t)break;if(n===t&&a===e){this.#n.splice(i,1);return}}for(let i=s-1;i>=0;i--){let[n,a]=this.#n[i];if(n!==t)break;if(n===t&&a===e){this.#n.splice(i,1);return}}}#c(t){let[e,s,i]=t,n=[[e,s,i]],a=this.#r(i);for(let r=0;r<a;r++){let[o,l]=this.#n[r];for(let c=0,h=n.length;c<h;c++){let[,f,u]=n[c];if(!(l<=f||u<=o)){if(f>=o){if(u>l)n[c][1]=l;else{if(h===1)return[];n.splice(c,1),c--,h--}continue}n[c][2]=o,u>l&&n.push([e,l,u])}}}return n}};T7=class T7 extends Bt{static{d(this,"HighlightOutline")}#t;#e;constructor(t,e,s,i){super(),this.#e=t,this.#t=e,this.firstPoint=s,this.lastPoint=i}toSVGPath(){let t=[];for(let e of this.#e){let[s,i]=e;t.push(`M${s} ${i}`);for(let n=2;n<e.length;n+=2){let a=e[n],r=e[n+1];a===s?(t.push(`V${r}`),i=r):r===i&&(t.push(`H${a}`),s=a)}t.push("Z")}return t.join(" ")}serialize([t,e,s,i],n){let a=[],r=s-t,o=i-e;for(let l of this.#e){let c=Array(l.length);for(let h=0;h<l.length;h+=2)c[h]=t+l[h]*r,c[h+1]=i-l[h+1]*o;a.push(c)}return a}get box(){return this.#t}get classNamesForOutlining(){return["highlightOutline"]}};Rh=class Rh extends Ta{static{d(this,"FreeHighlightOutliner")}newFreeDrawOutline(t,e,s,i,n,a){return new F7(t,e,s,i,n,a)}};F7=class F7 extends N0{static{d(this,"FreeHighlightOutline")}newOutliner(t,e,s,i,n,a=0){return new Rh(t,e,s,i,n,a)}};Qe=class Qe extends Ut{static{d(this,"HighlightEditor")}#t=null;#e=0;#s;#i=null;#n=null;#a=null;#r=null;#o=0;#l=null;#c=null;#u=null;#h=!1;#d=null;#g=null;#m=null;#f="";#p;#b="";static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=12;static _type="highlight";static _editorType=Zt.HIGHLIGHT;static _freeHighlightId=-1;static _freeHighlight=null;static _freeHighlightClipId="";static get _keyboardManager(){let t=Qe.prototype;return se(this,"_keyboardManager",new Xr([[["ArrowLeft","mac+ArrowLeft"],t._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],t._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],t._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],t._moveCaret,{args:[3]}]]))}constructor(t){super({...t,name:"highlightEditor"}),this.color=t.color||Qe._defaultColor,this.#p=t.thickness||Qe._defaultThickness,this.opacity=t.opacity||Qe._defaultOpacity,this.#s=t.boxes||null,this.#b=t.methodOfCreation||"",this.#f=t.text||"",this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",t.highlightId>-1?(this.#h=!0,this.#y(t),this.#k()):this.#s&&(this.#t=t.anchorNode,this.#e=t.anchorOffset,this.#r=t.focusNode,this.#o=t.focusOffset,this.#v(),this.#k(),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}get telemetryInitialData(){return{action:"added",type:this.#h?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:this.#p,methodOfCreation:this.#b}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(t){return{numberOfColors:t.get("color").size}}#v(){let t=new Dh(this.#s,0.001);this.#c=t.getOutlines(),[this.x,this.y,this.width,this.height]=this.#c.box;let e=new Dh(this.#s,0.0025,0.001,this._uiManager.direction==="ltr");this.#a=e.getOutlines();let{firstPoint:s}=this.#c;this.#d=[(s[0]-this.x)/this.width,(s[1]-this.y)/this.height];let{lastPoint:i}=this.#a;this.#g=[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height]}#y({highlightOutlines:t,highlightId:e,clipPathId:s}){this.#c=t;let i=1.5;if(this.#a=t.getNewOutline(this.#p/2+i,0.0025),e>=0)this.#u=e,this.#i=s,this.parent.drawLayer.finalizeDraw(e,{bbox:t.box,path:{d:t.toSVGPath()}}),this.#m=this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:this.#a.box,path:{d:this.#a.toSVGPath()}},!0);else if(this.parent){let h=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(this.#u,{bbox:Qe.#S(this.#c.box,(h-this.rotation+360)%360),path:{d:t.toSVGPath()}}),this.parent.drawLayer.updateProperties(this.#m,{bbox:Qe.#S(this.#a.box,h),path:{d:this.#a.toSVGPath()}})}let[n,a,r,o]=t.box;switch(this.rotation){case 0:this.x=n,this.y=a,this.width=r,this.height=o;break;case 90:{let[h,f]=this.parentDimensions;this.x=a,this.y=1-n,this.width=r*f/h,this.height=o*h/f;break}case 180:this.x=1-n,this.y=1-a,this.width=r,this.height=o;break;case 270:{let[h,f]=this.parentDimensions;this.x=1-a,this.y=n,this.width=r*f/h,this.height=o*h/f;break}}let{firstPoint:l}=t;this.#d=[(l[0]-n)/r,(l[1]-a)/o];let{lastPoint:c}=this.#a;this.#g=[(c[0]-n)/r,(c[1]-a)/o]}static initialize(t,e){Ut.initialize(t,e),Qe._defaultColor||=e.highlightColors?.values().next().value||"#fff066"}static updateDefaultParams(t,e){switch(t){case ge.HIGHLIGHT_COLOR:Qe._defaultColor=e;break;case ge.HIGHLIGHT_THICKNESS:Qe._defaultThickness=e;break}}translateInPage(t,e){}get toolbarPosition(){return this.#g}get commentButtonPosition(){return this.#d}updateParams(t,e){switch(t){case ge.HIGHLIGHT_COLOR:this.#q(e);break;case ge.HIGHLIGHT_THICKNESS:this.#C(e);break}}static get defaultPropertiesToUpdate(){return[[ge.HIGHLIGHT_COLOR,Qe._defaultColor],[ge.HIGHLIGHT_THICKNESS,Qe._defaultThickness]]}get propertiesToUpdate(){return[[ge.HIGHLIGHT_COLOR,this.color||Qe._defaultColor],[ge.HIGHLIGHT_THICKNESS,this.#p||Qe._defaultThickness],[ge.HIGHLIGHT_FREE,this.#h]]}onUpdatedColor(){this.parent?.drawLayer.updateProperties(this.#u,{root:{fill:this.color,"fill-opacity":this.opacity}}),this.#n?.updateColor(this.color),super.onUpdatedColor()}#q(t){let e=d((n,a)=>{this.color=n,this.opacity=a,this.onUpdatedColor()},"setColorAndOpacity"),s=this.color,i=this.opacity;this.addCommands({cmd:e.bind(this,t,Qe._defaultOpacity),undo:e.bind(this,s,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ge.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(t)},!0)}#C(t){let e=this.#p,s=d((i)=>{this.#p=i,this.#w(i)},"setThickness");this.addCommands({cmd:s.bind(this,t),undo:s.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ge.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:t},!0)}get toolbarButtons(){return this._uiManager.highlightColors?[["colorPicker",this.#n=new di({editor:this})]]:super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#I())}getBaseTranslation(){return[0,0]}getRect(t,e){return super.getRect(t,e,this.#I())}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),t&&this.div.focus()}remove(){this.#x(),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#k(),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){let e=!1;this.parent&&!t?this.#x():t&&(this.#k(t),e=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(t),this.show(this._isVisible),e&&this.select()}#w(t){this.#h&&(this.#y({highlightOutlines:this.#c.getNewOutline(t/2)}),this.fixAndSetPosition(),this.setDims())}#x(){this.#u===null||!this.parent||(this.parent.drawLayer.remove(this.#u),this.#u=null,this.parent.drawLayer.remove(this.#m),this.#m=null)}#k(t=this.parent){this.#u===null&&({id:this.#u,clipPathId:this.#i}=t.drawLayer.draw({bbox:this.#c.box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:this.#h},path:{d:this.#c.toSVGPath()}},!1,!0),this.#m=t.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:this.#h},bbox:this.#a.box,path:{d:this.#a.toSVGPath()}},this.#h),this.#l&&(this.#l.style.clipPath=this.#i))}static#S([t,e,s,i],n){switch(n){case 90:return[1-e-i,t,i,s];case 180:return[1-t-s,1-e-i,s,i];case 270:return[e,1-t-s,i,s]}return[t,e,s,i]}rotate(t){let{drawLayer:e}=this.parent,s;this.#h?(t=(t-this.rotation+360)%360,s=Qe.#S(this.#c.box,t)):s=Qe.#S([this.x,this.y,this.width,this.height],t),e.updateProperties(this.#u,{bbox:s,root:{"data-main-rotation":t}}),e.updateProperties(this.#m,{bbox:Qe.#S(this.#a.box,t),root:{"data-main-rotation":t}})}render(){if(this.div)return this.div;let t=super.render();this.#f&&(t.setAttribute("aria-label",this.#f),t.setAttribute("role","mark")),this.#h?t.classList.add("free"):this.div.addEventListener("keydown",this.#T.bind(this),{signal:this._uiManager._signal});let e=this.#l=document.createElement("div");return t.append(e),e.setAttribute("aria-hidden","true"),e.className="internal",e.style.clipPath=this.#i,this.setDims(),p0(this,this.#l,["pointerover","pointerleave"]),this.enableEditing(),t}pointerover(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#m,{rootClass:{hovered:!0}})}pointerleave(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#m,{rootClass:{hovered:!1}})}#T(t){Qe._keyboardManager.exec(this,t)}_moveCaret(t){switch(this.parent.unselect(this),t){case 0:case 2:this.#F(!0);break;case 1:case 3:this.#F(!1);break}}#F(t){if(!this.#t)return;let e=window.getSelection();t?e.setPosition(this.#t,this.#e):e.setPosition(this.#r,this.#o)}select(){super.select(),this.#m&&this.parent?.drawLayer.updateProperties(this.#m,{rootClass:{hovered:!1,selected:!0}})}unselect(){super.unselect(),this.#m&&(this.parent?.drawLayer.updateProperties(this.#m,{rootClass:{selected:!1}}),this.#h||this.#F(!1))}get _mustFixPosition(){return!this.#h}show(t=this._isVisible){super.show(t),this.parent&&(this.parent.drawLayer.updateProperties(this.#u,{rootClass:{hidden:!t}}),this.parent.drawLayer.updateProperties(this.#m,{rootClass:{hidden:!t}}))}#I(){return this.#h?this.rotation:0}#B(){if(this.#h)return null;let[t,e]=this.pageDimensions,[s,i]=this.pageTranslation,n=this.#s,a=new Float32Array(n.length*8),r=0;for(let{x:o,y:l,width:c,height:h}of n){let f=o*t+s,u=(1-l)*e+i;a[r]=a[r+4]=f,a[r+1]=a[r+3]=u,a[r+2]=a[r+6]=f+c*t,a[r+5]=a[r+7]=u-h*e,r+=8}return a}#E(t){return this.#c.serialize(t,this.#I())}static startHighlighting(t,e,{target:s,x:i,y:n}){let{x:a,y:r,width:o,height:l}=s.getBoundingClientRect(),c=new AbortController,h=t.combinedSignal(c),f=d((u)=>{c.abort(),this.#P(t,u)},"pointerUpCallback");window.addEventListener("blur",f,{signal:h}),window.addEventListener("pointerup",f,{signal:h}),window.addEventListener("pointerdown",He,{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",oi,{signal:h}),s.addEventListener("pointermove",this.#M.bind(this,t),{signal:h}),this._freeHighlight=new Rh({x:i,y:n},[a,r,o,l],t.scale,this._defaultThickness/2,e,0.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=t.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static#M(t,e){this._freeHighlight.add(e)&&t.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}static#P(t,e){this._freeHighlight.isEmpty()?t.drawLayer.remove(this._freeHighlightId):t.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}static async deserialize(t,e,s){let i=null;if(t instanceof _0){let{data:{quadPoints:m,rect:g,rotation:w,id:b,color:j,opacity:v,popupRef:q,richText:x,contentsObj:k,creationDate:A,modificationDate:S},parent:{page:{pageNumber:I}}}=t;i=t={annotationType:Zt.HIGHLIGHT,color:Array.from(j),opacity:v,quadPoints:m,boxes:null,pageIndex:I-1,rect:g.slice(0),rotation:w,annotationElementId:b,id:b,deleted:!1,popupRef:q,richText:x,comment:k?.str||null,creationDate:A,modificationDate:S}}else if(t instanceof Tf){let{data:{inkLists:m,rect:g,rotation:w,id:b,color:j,borderStyle:{rawWidth:v},popupRef:q,richText:x,contentsObj:k,creationDate:A,modificationDate:S},parent:{page:{pageNumber:I}}}=t;i=t={annotationType:Zt.HIGHLIGHT,color:Array.from(j),thickness:v,inkLists:m,boxes:null,pageIndex:I-1,rect:g.slice(0),rotation:w,annotationElementId:b,id:b,deleted:!1,popupRef:q,richText:x,comment:k?.str||null,creationDate:A,modificationDate:S}}let{color:n,quadPoints:a,inkLists:r,outlines:o,opacity:l}=t,c=await super.deserialize(t,e,s);c.color=xt.makeHexColor(...n),c.opacity=l||1,r&&(c.#p=t.thickness),c._initialData=i,t.comment&&c.setCommentData(t);let[h,f]=c.pageDimensions,[u,p]=c.pageTranslation;if(a){let m=c.#s=[];for(let g=0;g<a.length;g+=8)m.push({x:(a[g]-u)/h,y:1-(a[g+1]-p)/f,width:(a[g+2]-a[g])/h,height:(a[g+1]-a[g+5])/f});c.#v(),c.#k(),c.rotate(c.rotation)}else if(r||o){c.#h=!0;let m=(r||o.points)[0],g={x:m[0]-u,y:f-(m[1]-p)},w=new Rh(g,[0,0,h,f],1,c.#p/2,!0,0.001);for(let v=0,q=m.length;v<q;v+=2)g.x=m[v]-u,g.y=f-(m[v+1]-p),w.add(g);let{id:b,clipPathId:j}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:c.color,"fill-opacity":c._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:w.toSVGPath()}},!0,!0);c.#y({highlightOutlines:w.getOutlines(),highlightId:b,clipPathId:j}),c.#k(),c.rotate(c.parentRotation)}return c}serialize(t=!1){if(this.isEmpty()||t)return null;if(this.deleted)return this.serializeDeleted();let e=Ut._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),s=super.serialize(t);return Object.assign(s,{color:e,opacity:this.opacity,thickness:this.#p,quadPoints:this.#B(),outlines:this.#E(s.rect)}),this.addComment(s),this.annotationElementId&&!this.#H(s)?null:(s.id=this.annotationElementId,s)}#H(t){let{color:e}=this._initialData;return this.hasEditedComment||t.color.some((s,i)=>s!==e[i])}renderAnnotationElement(t){return this.deleted?(t.hide(),null):(t.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}};L0=class L0{static{d(this,"DrawingOptions")}#t=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){this.#t[t]=e}toSVGProperties(){let t=this.#t;return this.#t=Object.create(null),{root:t}}reset(){this.#t=Object.create(null)}updateAll(t=this){this.updateProperties(t)}clone(){Se("Not implemented")}};xe=class xe extends Ut{static{d(this,"DrawingEditor")}#t=null;#e;_colorPicker=null;_drawId=null;static _currentDrawId=-1;static _currentParent=null;static#s=null;static#i=null;static#n=null;static _INNER_MARGIN=3;constructor(t){super(t),this.#e=t.mustBeCommitted||!1,this._addOutlines(t)}onUpdatedColor(){this._colorPicker?.update(this.color),super.onUpdatedColor()}_addOutlines(t){t.drawOutlines&&(this.#a(t),this.#l())}#a({drawOutlines:t,drawId:e,drawingOptions:s}){this.#t=t,this._drawingOptions||=s,this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),e>=0?(this._drawId=e,this.parent.drawLayer.finalizeDraw(e,t.defaultProperties)):this._drawId=this.#r(t,this.parent),this.#h(t.box)}#r(t,e){let{id:s}=e.drawLayer.draw(xe._mergeSVGProperties(this._drawingOptions.toSVGProperties(),t.defaultSVGProperties),!1,!1);return s}static _mergeSVGProperties(t,e){let s=new Set(Object.keys(t));for(let[i,n]of Object.entries(e))s.has(i)?Object.assign(t[i],n):t[i]=n;return t}static getDefaultDrawingOptions(t){Se("Not implemented")}static get typesMap(){Se("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(t,e){let s=this.typesMap.get(t);s&&this._defaultDrawingOptions.updateProperty(s,e),this._currentParent&&(xe.#s.updateProperty(s,e),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(t,e){let s=this.constructor.typesMap.get(t);s&&this._updateProperty(t,s,e)}static get defaultPropertiesToUpdate(){let t=[],e=this._defaultDrawingOptions;for(let[s,i]of this.typesMap)t.push([s,e[i]]);return t}get propertiesToUpdate(){let t=[],{_drawingOptions:e}=this;for(let[s,i]of this.constructor.typesMap)t.push([s,e[i]]);return t}_updateProperty(t,e,s){let i=this._drawingOptions,n=i[e],a=d((r)=>{i.updateProperty(e,r);let o=this.#t.updateProperty(e,r);o&&this.#h(o),this.parent?.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),t===this.colorType&&this.onUpdatedColor()},"setter");this.addCommands({cmd:a.bind(this,s),undo:a.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:t,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,xe._mergeSVGProperties(this.#t.getPathResizingSVGProperties(this.#u()),{bbox:this.#d()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,xe._mergeSVGProperties(this.#t.getPathResizedSVGProperties(this.#u()),{bbox:this.#d()}))}_onTranslating(t,e){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#d()})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,xe._mergeSVGProperties(this.#t.getPathTranslatedSVGProperties(this.#u(),this.parentDimensions),{bbox:this.#d()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),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(t){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#e&&(this.#e=!1,this.commit(),this.parent.setSelected(this),t&&this.isOnScreen&&this.div.focus())}remove(){this.#o(),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#l(),this.#h(this.#t.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){let e=!1;this.parent&&!t?(this._uiManager.removeShouldRescale(this),this.#o()):t&&(this._uiManager.addShouldRescale(this),this.#l(t),e=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(t),e&&this.select()}#o(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}#l(t=this.parent){if(!(this._drawId!==null&&this.parent===t)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,t.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=this.#r(this.#t,t)}}#c([t,e,s,i]){let{parentDimensions:[n,a],rotation:r}=this;switch(r){case 90:return[e,1-t,s*(a/n),i*(n/a)];case 180:return[1-t,1-e,s,i];case 270:return[1-e,t,s*(a/n),i*(n/a)];default:return[t,e,s,i]}}#u(){let{x:t,y:e,width:s,height:i,parentDimensions:[n,a],rotation:r}=this;switch(r){case 90:return[1-e,t,s*(n/a),i*(a/n)];case 180:return[1-t,1-e,s,i];case 270:return[e,1-t,s*(n/a),i*(a/n)];default:return[t,e,s,i]}}#h(t){[this.x,this.y,this.width,this.height]=this.#c(t),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()}#d(){let{x:t,y:e,width:s,height:i,rotation:n,parentRotation:a,parentDimensions:[r,o]}=this;switch((n*4+a)/90){case 1:return[1-e-i,t,i,s];case 2:return[1-t-s,1-e-i,s,i];case 3:return[e,1-t-s,i,s];case 4:return[t,e-s*(r/o),i*(o/r),s*(r/o)];case 5:return[1-e,t,s*(r/o),i*(o/r)];case 6:return[1-t-i*(o/r),1-e,i*(o/r),s*(r/o)];case 7:return[e-s*(r/o),1-t-i*(o/r),s*(r/o),i*(o/r)];case 8:return[t-s,e-i,s,i];case 9:return[1-e,t-s,i,s];case 10:return[1-t,1-e,s,i];case 11:return[e-i,1-t,i,s];case 12:return[t-i*(o/r),e,i*(o/r),s*(r/o)];case 13:return[1-e-s*(r/o),t-i*(o/r),s*(r/o),i*(o/r)];case 14:return[1-t,1-e-s*(r/o),i*(o/r),s*(r/o)];case 15:return[e,1-t,s*(r/o),i*(o/r)];default:return[t,e,s,i]}}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,xe._mergeSVGProperties({bbox:this.#d()},this.#t.updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&this.#h(this.#t.updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let t,e;this._isCopy&&(t=this.x,e=this.y);let s=super.render();s.classList.add("draw");let i=document.createElement("div");return s.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(t,e),s}static createDrawerInstance(t,e,s,i,n){Se("Not implemented")}static startDrawing(t,e,s,i){let{target:n,offsetX:a,offsetY:r,pointerId:o,pointerType:l}=i;if(Ae.isInitializedAndDifferentPointerType(l))return;let{viewport:{rotation:c}}=t,{width:h,height:f}=n.getBoundingClientRect(),u=xe.#i=new AbortController,p=t.combinedSignal(u);if(Ae.setPointer(l,o),window.addEventListener("pointerup",(m)=>{Ae.isSamePointerIdOrRemove(m.pointerId)&&this._endDraw(m)},{signal:p}),window.addEventListener("pointercancel",(m)=>{Ae.isSamePointerIdOrRemove(m.pointerId)&&this._currentParent.endDrawingSession()},{signal:p}),window.addEventListener("pointerdown",(m)=>{Ae.isSamePointerType(m.pointerType)&&(Ae.initializeAndAddPointerId(m.pointerId),xe.#s.isCancellable()&&(xe.#s.removeLastElement(),xe.#s.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:p}),window.addEventListener("contextmenu",oi,{signal:p}),n.addEventListener("pointermove",this._drawMove.bind(this),{signal:p}),n.addEventListener("touchmove",(m)=>{Ae.isSameTimeStamp(m.timeStamp)&&He(m)},{signal:p}),t.toggleDrawing(),e._editorUndoBar?.hide(),xe.#s){t.drawLayer.updateProperties(this._currentDrawId,xe.#s.startNew(a,r,h,f,c));return}e.updateUIForDefaultProperties(this),xe.#s=this.createDrawerInstance(a,r,h,f,c),xe.#n=this.getDefaultDrawingOptions(),this._currentParent=t,{id:this._currentDrawId}=t.drawLayer.draw(this._mergeSVGProperties(xe.#n.toSVGProperties(),xe.#s.defaultSVGProperties),!0,!1)}static _drawMove(t){if(Ae.isSameTimeStamp(t.timeStamp),!xe.#s)return;let{offsetX:e,offsetY:s,pointerId:i}=t;if(Ae.isSamePointerId(i)){if(Ae.isUsingMultiplePointers()){this._endDraw(t);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,xe.#s.add(e,s)),Ae.setTimeStamp(t.timeStamp),He(t)}}static _cleanup(t){t&&(this._currentDrawId=-1,this._currentParent=null,xe.#s=null,xe.#n=null,Ae.clearTimeStamp()),xe.#i&&(xe.#i.abort(),xe.#i=null,Ae.clearPointerIds())}static _endDraw(t){let e=this._currentParent;if(e){if(e.toggleDrawing(!0),this._cleanup(!1),t?.target===e.div&&e.drawLayer.updateProperties(this._currentDrawId,xe.#s.end(t.offsetX,t.offsetY)),this.supportMultipleDrawings){let s=xe.#s,i=this._currentDrawId,n=s.getLastElement();e.addCommands({cmd:d(()=>{e.drawLayer.updateProperties(i,s.setLastElement(n))},"cmd"),undo:d(()=>{e.drawLayer.updateProperties(i,s.removeLastElement())},"undo"),mustExec:!1,type:ge.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(t){let e=this._currentParent;if(!e)return null;if(e.toggleDrawing(!0),e.cleanUndoStack(ge.DRAW_STEP),!xe.#s.isEmpty()){let{pageDimensions:[s,i],scale:n}=e,a=e.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:xe.#s.getOutlines(s*n,i*n,n,this._INNER_MARGIN),drawingOptions:xe.#n,mustBeCommitted:!t});return this._cleanup(!0),a}return e.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(t){}static deserializeDraw(t,e,s,i,n,a){Se("Not implemented")}static async deserialize(t,e,s){let{rawDims:{pageWidth:i,pageHeight:n,pageX:a,pageY:r}}=e.viewport,o=this.deserializeDraw(a,r,i,n,this._INNER_MARGIN,t),l=await super.deserialize(t,e,s);return l.createDrawingOptions(t),l.#a({drawOutlines:o}),l.#l(),l.onScaleChanging(),l.rotate(),l}serializeDraw(t){let[e,s]=this.pageTranslation,[i,n]=this.pageDimensions;return this.#t.serialize([e,s,i,n],t)}renderAnnotationElement(t){return t.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}};E7=class E7{static{d(this,"InkDrawOutliner")}#t=new Float64Array(6);#e;#s;#i;#n;#a;#r="";#o=0;#l=new Qr;#c;#u;constructor(t,e,s,i,n,a){this.#c=s,this.#u=i,this.#i=n,this.#n=a,[t,e]=this.#h(t,e);let r=this.#e=[NaN,NaN,NaN,NaN,t,e];this.#a=[t,e],this.#s=[{line:r,points:this.#a}],this.#t.set(r,0)}updateProperty(t,e){t==="stroke-width"&&(this.#n=e)}#h(t,e){return Bt._normalizePoint(t,e,this.#c,this.#u,this.#i)}isEmpty(){return!this.#s||this.#s.length===0}isCancellable(){return this.#a.length<=10}add(t,e){[t,e]=this.#h(t,e);let[s,i,n,a]=this.#t.subarray(2,6),r=t-n,o=e-a;return Math.hypot(this.#c*r,this.#u*o)<=2?null:(this.#a.push(t,e),isNaN(s)?(this.#t.set([n,a,t,e],2),this.#e.push(NaN,NaN,NaN,NaN,t,e),{path:{d:this.toSVGPath()}}):(isNaN(this.#t[0])&&this.#e.splice(6,6),this.#t.set([s,i,n,a,t,e],0),this.#e.push(...Bt.createBezierPoints(s,i,n,a,t,e)),{path:{d:this.toSVGPath()}}))}end(t,e){return this.add(t,e)||(this.#a.length===2?{path:{d:this.toSVGPath()}}:null)}startNew(t,e,s,i,n){this.#c=s,this.#u=i,this.#i=n,[t,e]=this.#h(t,e);let a=this.#e=[NaN,NaN,NaN,NaN,t,e];this.#a=[t,e];let r=this.#s.at(-1);return r&&(r.line=new Float32Array(r.line),r.points=new Float32Array(r.points)),this.#s.push({line:a,points:this.#a}),this.#t.set(a,0),this.#o=0,this.toSVGPath(),null}getLastElement(){return this.#s.at(-1)}setLastElement(t){return this.#s?(this.#s.push(t),this.#e=t.line,this.#a=t.points,this.#o=0,{path:{d:this.toSVGPath()}}):this.#l.setLastElement(t)}removeLastElement(){if(!this.#s)return this.#l.removeLastElement();this.#s.pop(),this.#r="";for(let t=0,e=this.#s.length;t<e;t++){let{line:s,points:i}=this.#s[t];this.#e=s,this.#a=i,this.#o=0,this.toSVGPath()}return{path:{d:this.#r}}}toSVGPath(){let t=Bt.svgRound(this.#e[4]),e=Bt.svgRound(this.#e[5]);if(this.#a.length===2)return this.#r=`${this.#r} M ${t} ${e} Z`,this.#r;if(this.#a.length<=6){let i=this.#r.lastIndexOf("M");this.#r=`${this.#r.slice(0,i)} M ${t} ${e}`,this.#o=6}if(this.#a.length===4){let i=Bt.svgRound(this.#e[10]),n=Bt.svgRound(this.#e[11]);return this.#r=`${this.#r} L ${i} ${n}`,this.#o=12,this.#r}let s=[];this.#o===0&&(s.push(`M ${t} ${e}`),this.#o=6);for(let i=this.#o,n=this.#e.length;i<n;i+=6){let[a,r,o,l,c,h]=this.#e.slice(i,i+6).map(Bt.svgRound);s.push(`C${a} ${r} ${o} ${l} ${c} ${h}`)}return this.#r+=s.join(" "),this.#o=this.#e.length,this.#r}getOutlines(t,e,s,i){let n=this.#s.at(-1);return n.line=new Float32Array(n.line),n.points=new Float32Array(n.points),this.#l.build(this.#s,t,e,s,this.#i,this.#n,i),this.#t=null,this.#e=null,this.#s=null,this.#r=null,this.#l}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}};Qr=class Qr extends Bt{static{d(this,"InkDrawOutline")}#t;#e=0;#s;#i;#n;#a;#r;#o;#l;build(t,e,s,i,n,a,r){this.#n=e,this.#a=s,this.#r=i,this.#o=n,this.#l=a,this.#s=r??0,this.#i=t,this.#h()}get thickness(){return this.#l}setLastElement(t){return this.#i.push(t),{path:{d:this.toSVGPath()}}}removeLastElement(){return this.#i.pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){let t=[];for(let{line:e}of this.#i){if(t.push(`M${Bt.svgRound(e[4])} ${Bt.svgRound(e[5])}`),e.length===6){t.push("Z");continue}if(e.length===12&&isNaN(e[6])){t.push(`L${Bt.svgRound(e[10])} ${Bt.svgRound(e[11])}`);continue}for(let s=6,i=e.length;s<i;s+=6){let[n,a,r,o,l,c]=e.subarray(s,s+6).map(Bt.svgRound);t.push(`C${n} ${a} ${r} ${o} ${l} ${c}`)}}return t.join("")}serialize([t,e,s,i],n){let a=[],r=[],[o,l,c,h]=this.#u(),f,u,p,m,g,w,b,j,v;switch(this.#o){case 0:v=Bt._rescale,f=t,u=e+i,p=s,m=-i,g=t+o*s,w=e+(1-l-h)*i,b=t+(o+c)*s,j=e+(1-l)*i;break;case 90:v=Bt._rescaleAndSwap,f=t,u=e,p=s,m=i,g=t+l*s,w=e+o*i,b=t+(l+h)*s,j=e+(o+c)*i;break;case 180:v=Bt._rescale,f=t+s,u=e,p=-s,m=i,g=t+(1-o-c)*s,w=e+l*i,b=t+(1-o)*s,j=e+(l+h)*i;break;case 270:v=Bt._rescaleAndSwap,f=t+s,u=e+i,p=-s,m=-i,g=t+(1-l-h)*s,w=e+(1-o-c)*i,b=t+(1-l)*s,j=e+(1-o)*i;break}for(let{line:q,points:x}of this.#i)a.push(v(q,f,u,p,m,n?Array(q.length):null)),r.push(v(x,f,u,p,m,n?Array(x.length):null));return{lines:a,points:r,rect:[g,w,b,j]}}static deserialize(t,e,s,i,n,{paths:{lines:a,points:r},rotation:o,thickness:l}){let c=[],h,f,u,p,m;switch(o){case 0:m=Bt._rescale,h=-t/s,f=e/i+1,u=1/s,p=-1/i;break;case 90:m=Bt._rescaleAndSwap,h=-e/i,f=-t/s,u=1/i,p=1/s;break;case 180:m=Bt._rescale,h=t/s+1,f=-e/i,u=-1/s,p=1/i;break;case 270:m=Bt._rescaleAndSwap,h=e/i+1,f=t/s+1,u=-1/i,p=-1/s;break}if(!a){a=[];for(let w of r){let b=w.length;if(b===2){a.push(new Float32Array([NaN,NaN,NaN,NaN,w[0],w[1]]));continue}if(b===4){a.push(new Float32Array([NaN,NaN,NaN,NaN,w[0],w[1],NaN,NaN,NaN,NaN,w[2],w[3]]));continue}let j=new Float32Array(3*(b-2));a.push(j);let[v,q,x,k]=w.subarray(0,4);j.set([NaN,NaN,NaN,NaN,v,q],0);for(let A=4;A<b;A+=2){let S=w[A],I=w[A+1];j.set(Bt.createBezierPoints(v,q,x,k,S,I),(A-2)*3),[v,q,x,k]=[x,k,S,I]}}}for(let w=0,b=a.length;w<b;w++)c.push({line:m(a[w].map((j)=>j??NaN),h,f,u,p),points:m(r[w].map((j)=>j??NaN),h,f,u,p)});let g=new this.prototype.constructor;return g.build(c,s,i,1,o,l,n),g}#c(t=this.#l){let e=this.#s+t/2*this.#r;return this.#o%180===0?[e/this.#n,e/this.#a]:[e/this.#a,e/this.#n]}#u(){let[t,e,s,i]=this.#t,[n,a]=this.#c(0);return[t+n,e+a,s-2*n,i-2*a]}#h(){let t=this.#t=new Float32Array([1/0,1/0,-1/0,-1/0]);for(let{line:i}of this.#i){if(i.length<=12){for(let r=4,o=i.length;r<o;r+=6)xt.pointBoundingBox(i[r],i[r+1],t);continue}let n=i[4],a=i[5];for(let r=6,o=i.length;r<o;r+=6){let[l,c,h,f,u,p]=i.subarray(r,r+6);xt.bezierBoundingBox(n,a,l,c,h,f,u,p,t),n=u,a=p}}let[e,s]=this.#c();t[0]=rs(t[0]-e,0,1),t[1]=rs(t[1]-s,0,1),t[2]=rs(t[2]+e,0,1),t[3]=rs(t[3]+s,0,1),t[2]-=t[0],t[3]-=t[1]}get box(){return this.#t}updateProperty(t,e){return t==="stroke-width"?this.#d(e):null}#d(t){let[e,s]=this.#c();this.#l=t;let[i,n]=this.#c(),[a,r]=[i-e,n-s],o=this.#t;return o[0]-=a,o[1]-=r,o[2]+=2*a,o[3]+=2*r,o}updateParentDimensions([t,e],s){let[i,n]=this.#c();this.#n=t,this.#a=e,this.#r=s;let[a,r]=this.#c(),o=a-i,l=r-n,c=this.#t;return c[0]-=o,c[1]-=l,c[2]+=2*o,c[3]+=2*l,c}updateRotation(t){return this.#e=t,{path:{transform:this.rotationTransform}}}get viewBox(){return this.#t.map(Bt.svgRound).join(" ")}get defaultProperties(){let[t,e]=this.#t;return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Bt.svgRound(t)} ${Bt.svgRound(e)}`}}}get rotationTransform(){let[,,t,e]=this.#t,s=0,i=0,n=0,a=0,r=0,o=0;switch(this.#e){case 90:i=e/t,n=-t/e,r=t;break;case 180:s=-1,a=-1,r=t,o=e;break;case 270:i=-e/t,n=t/e,o=e;break;default:return""}return`matrix(${s} ${i} ${n} ${a} ${Bt.svgRound(r)} ${Bt.svgRound(o)})`}getPathResizingSVGProperties([t,e,s,i]){let[n,a]=this.#c(),[r,o,l,c]=this.#t;if(Math.abs(l-n)<=Bt.PRECISION||Math.abs(c-a)<=Bt.PRECISION){let m=t+s/2-(r+l/2),g=e+i/2-(o+c/2);return{path:{"transform-origin":`${Bt.svgRound(t)} ${Bt.svgRound(e)}`,transform:`${this.rotationTransform} translate(${m} ${g})`}}}let h=(s-2*n)/(l-2*n),f=(i-2*a)/(c-2*a),u=l/s,p=c/i;return{path:{"transform-origin":`${Bt.svgRound(r)} ${Bt.svgRound(o)}`,transform:`${this.rotationTransform} scale(${u} ${p}) translate(${Bt.svgRound(n)} ${Bt.svgRound(a)}) scale(${h} ${f}) translate(${Bt.svgRound(-n)} ${Bt.svgRound(-a)})`}}}getPathResizedSVGProperties([t,e,s,i]){let[n,a]=this.#c(),r=this.#t,[o,l,c,h]=r;if(r[0]=t,r[1]=e,r[2]=s,r[3]=i,Math.abs(c-n)<=Bt.PRECISION||Math.abs(h-a)<=Bt.PRECISION){let g=t+s/2-(o+c/2),w=e+i/2-(l+h/2);for(let{line:b,points:j}of this.#i)Bt._translate(b,g,w,b),Bt._translate(j,g,w,j);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Bt.svgRound(t)} ${Bt.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}let f=(s-2*n)/(c-2*n),u=(i-2*a)/(h-2*a),p=-f*(o+n)+t+n,m=-u*(l+a)+e+a;if(f!==1||u!==1||p!==0||m!==0)for(let{line:g,points:w}of this.#i)Bt._rescale(g,p,m,f,u,g),Bt._rescale(w,p,m,f,u,w);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Bt.svgRound(t)} ${Bt.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([t,e],s){let[i,n]=s,a=this.#t,r=t-a[0],o=e-a[1];if(this.#n===i&&this.#a===n)for(let{line:l,points:c}of this.#i)Bt._translate(l,r,o,l),Bt._translate(c,r,o,c);else{let l=this.#n/i,c=this.#a/n;this.#n=i,this.#a=n;for(let{line:h,points:f}of this.#i)Bt._rescale(h,r,o,l,c,h),Bt._rescale(f,r,o,l,c,f);a[2]*=l,a[3]*=c}return a[0]=t,a[1]=e,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${Bt.svgRound(t)} ${Bt.svgRound(e)}`}}}get defaultSVGProperties(){let t=this.#t;return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${Bt.svgRound(t[0])} ${Bt.svgRound(t[1])}`,transform:this.rotationTransform||null},bbox:t}}};Ef=class Ef extends L0{static{d(this,"InkDrawingOptions")}constructor(t){super(),this._viewParameters=t,super.updateProperties({fill:"none",stroke:Ut._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(t,e){t==="stroke-width"&&(e??=this["stroke-width"],e*=this._viewParameters.realScale),super.updateSVGProperty(t,e)}clone(){let t=new Ef(this._viewParameters);return t.updateAll(this),t}};z0=class z0 extends xe{static{d(this,"InkEditor")}static _type="ink";static _editorType=Zt.INK;static _defaultDrawingOptions=null;constructor(t){super({...t,name:"inkEditor"}),this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(t,e){Ut.initialize(t,e),this._defaultDrawingOptions=new Ef(e.viewParameters)}static getDefaultDrawingOptions(t){let e=this._defaultDrawingOptions.clone();return e.updateProperties(t),e}static get supportMultipleDrawings(){return!0}static get typesMap(){return se(this,"typesMap",new Map([[ge.INK_THICKNESS,"stroke-width"],[ge.INK_COLOR,"stroke"],[ge.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(t,e,s,i,n){return new E7(t,e,s,i,n,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(t,e,s,i,n,a){return Qr.deserialize(t,e,s,i,n,a)}static async deserialize(t,e,s){let i=null;if(t instanceof Tf){let{data:{inkLists:a,rect:r,rotation:o,id:l,color:c,opacity:h,borderStyle:{rawWidth:f},popupRef:u,richText:p,contentsObj:m,creationDate:g,modificationDate:w},parent:{page:{pageNumber:b}}}=t;i=t={annotationType:Zt.INK,color:Array.from(c),thickness:f,opacity:h,paths:{points:a},boxes:null,pageIndex:b-1,rect:r.slice(0),rotation:o,annotationElementId:l,id:l,deleted:!1,popupRef:u,richText:p,comment:m?.str||null,creationDate:g,modificationDate:w}}let n=await super.deserialize(t,e,s);return n._initialData=i,t.comment&&n.setCommentData(t),n}get toolbarButtons(){return this._colorPicker||=new jl(this),[["colorPicker",this._colorPicker]]}get colorType(){return ge.INK_COLOR}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();let{_drawId:t,_drawingOptions:e,parent:s}=this;e.updateSVGProperty("stroke-width"),s.drawLayer.updateProperties(t,e.toSVGProperties())}static onScaleChangingWhenDrawing(){let t=this._currentParent;t&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),t.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:t,thickness:e,opacity:s}){this._drawingOptions=z0.getDefaultDrawingOptions({stroke:xt.makeHexColor(...t),"stroke-width":e,"stroke-opacity":s})}serialize(t=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let{lines:e,points:s}=this.serializeDraw(t),{_drawingOptions:{stroke:i,"stroke-opacity":n,"stroke-width":a}}=this,r=Object.assign(super.serialize(t),{color:Ut._colorManager.convert(i),opacity:n,thickness:a,paths:{lines:e,points:s}});return this.addComment(r),t?(r.isCopy=!0,r):this.annotationElementId&&!this.#t(r)?null:(r.id=this.annotationElementId,r)}#t(t){let{color:e,thickness:s,opacity:i,pageIndex:n}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||t.color.some((a,r)=>a!==e[r])||t.thickness!==s||t.opacity!==i||t.pageIndex!==n}renderAnnotationElement(t){if(this.deleted)return t.hide(),null;let{points:e,rect:s}=this.serializeDraw(!1);return t.updateEdited({rect:s,thickness:this._drawingOptions["stroke-width"],points:e,popup:this.comment}),null}};Hh=class Hh extends Qr{static{d(this,"ContourDrawOutline")}toSVGPath(){let t=super.toSVGPath();return t.endsWith("Z")||(t+="Z"),t}};Zn=class Zn{static{d(this,"SignatureExtractor")}static#t={maxDim:512,sigmaSFactor:0.02,sigmaR:25,kernelSize:16};static#e(t,e,s,i){return s-=t,i-=e,s===0?i>0?0:4:s===1?i+6:2-i}static#s=new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]);static#i(t,e,s,i,n,a,r){let o=this.#e(s,i,n,a);for(let l=0;l<8;l++){let c=(-l+o-r+16)%8,h=this.#s[2*c],f=this.#s[2*c+1];if(t[(s+h)*e+(i+f)]!==0)return c}return-1}static#n(t,e,s,i,n,a,r){let o=this.#e(s,i,n,a);for(let l=0;l<8;l++){let c=(l+o+r+16)%8,h=this.#s[2*c],f=this.#s[2*c+1];if(t[(s+h)*e+(i+f)]!==0)return c}return-1}static#a(t,e,s,i){let n=t.length,a=new Int32Array(n);for(let c=0;c<n;c++)a[c]=t[c]<=i?1:0;for(let c=1;c<s-1;c++)a[c*e]=a[c*e+e-1]=0;for(let c=0;c<e;c++)a[c]=a[e*s-1-c]=0;let r=1,o,l=[];for(let c=1;c<s-1;c++){o=1;for(let h=1;h<e-1;h++){let f=c*e+h,u=a[f];if(u===0)continue;let p=c,m=h;if(u===1&&a[f-1]===0)r+=1,m-=1;else if(u>=1&&a[f+1]===0)r+=1,m+=1,u>1&&(o=u);else{u!==1&&(o=Math.abs(u));continue}let g=[h,c],w=m===h+1,b={isHole:w,points:g,id:r,parent:0};l.push(b);let j;for(let E of l)if(E.id===o){j=E;break}j?j.isHole?b.parent=w?j.parent:o:b.parent=w?o:j.parent:b.parent=w?o:0;let v=this.#i(a,e,c,h,p,m,0);if(v===-1){a[f]=-r,a[f]!==1&&(o=Math.abs(a[f]));continue}let q=this.#s[2*v],x=this.#s[2*v+1],k=c+q,A=h+x;p=k,m=A;let S=c,I=h;for(;;){let E=this.#n(a,e,S,I,p,m,1);q=this.#s[2*E],x=this.#s[2*E+1];let D=S+q,O=I+x;g.push(O,D);let $=S*e+I;if(a[$+1]===0?a[$]=-r:a[$]===1&&(a[$]=r),D===c&&O===h&&S===k&&I===A){a[f]!==1&&(o=Math.abs(a[f]));break}else p=S,m=I,S=D,I=O}}}return l}static#r(t,e,s,i){if(s-e<=4){for(let k=e;k<s-2;k+=2)i.push(t[k],t[k+1]);return}let n=t[e],a=t[e+1],r=t[s-4]-n,o=t[s-3]-a,l=Math.hypot(r,o),c=r/l,h=o/l,f=c*a-h*n,u=o/r,p=1/l,m=Math.atan(u),g=Math.cos(m),w=Math.sin(m),b=p*(Math.abs(g)+Math.abs(w)),j=p*(1-b+b**2),v=Math.max(Math.atan(Math.abs(w+g)*j),Math.atan(Math.abs(w-g)*j)),q=0,x=e;for(let k=e+2;k<s-2;k+=2){let A=Math.abs(f-c*t[k+1]+h*t[k]);A>q&&(x=k,q=A)}q>(l*v)**2?(this.#r(t,e,x+2,i),this.#r(t,x,s,i)):i.push(n,a)}static#o(t){let e=[],s=t.length;return this.#r(t,0,s,e),e.push(t[s-2],t[s-1]),e.length<=4?null:e}static#l(t,e,s,i,n,a){let r=new Float32Array(a**2),o=-2*i**2,l=a>>1;for(let m=0;m<a;m++){let g=(m-l)**2;for(let w=0;w<a;w++)r[m*a+w]=Math.exp((g+(w-l)**2)/o)}let c=new Float32Array(256),h=-2*n**2;for(let m=0;m<256;m++)c[m]=Math.exp(m**2/h);let f=t.length,u=new Uint8Array(f),p=new Uint32Array(256);for(let m=0;m<s;m++)for(let g=0;g<e;g++){let w=m*e+g,b=t[w],j=0,v=0;for(let x=0;x<a;x++){let k=m+x-l;if(!(k<0||k>=s))for(let A=0;A<a;A++){let S=g+A-l;if(S<0||S>=e)continue;let I=t[k*e+S],E=r[x*a+A]*c[Math.abs(I-b)];j+=I*E,v+=E}}let q=u[w]=Math.round(j/v);p[q]++}return[u,p]}static#c(t){let e=new Uint32Array(256);for(let s of t)e[s]++;return e}static#u(t){let e=t.length,s=new Uint8ClampedArray(e>>2),i=-1/0,n=1/0;for(let r=0,o=s.length;r<o;r++){let l=s[r]=t[r<<2];i=Math.max(i,l),n=Math.min(n,l)}let a=255/(i-n);for(let r=0,o=s.length;r<o;r++)s[r]=(s[r]-n)*a;return s}static#h(t){let e,s=-1/0,i=-1/0,n=t.findIndex((o)=>o!==0),a=n,r=n;for(e=n;e<256;e++){let o=t[e];o>s&&(e-a>i&&(i=e-a,r=e-1),s=o,a=e)}for(e=r-1;e>=0&&!(t[e]>t[e+1]);e--);return e}static#d(t){let e=t,{width:s,height:i}=t,{maxDim:n}=this.#t,a=s,r=i;if(s>n||i>n){let c=s,h=i,f=Math.log2(Math.max(s,i)/n),u=Math.floor(f);f=f===u?u-1:u;for(let m=0;m<f;m++){a=Math.ceil(c/2),r=Math.ceil(h/2);let g=new OffscreenCanvas(a,r);g.getContext("2d").drawImage(t,0,0,c,h,0,0,a,r),c=a,h=r,t!==e&&t.close(),t=g.transferToImageBitmap()}let p=Math.min(n/a,n/r);a=Math.round(a*p),r=Math.round(r*p)}let o=new OffscreenCanvas(a,r).getContext("2d",{willReadFrequently:!0});o.fillStyle="white",o.fillRect(0,0,a,r),o.filter="grayscale(1)",o.drawImage(t,0,0,t.width,t.height,0,0,a,r);let l=o.getImageData(0,0,a,r).data;return[this.#u(l),a,r]}static extractContoursFromText(t,{fontFamily:e,fontStyle:s,fontWeight:i},n,a,r,o){let l=new OffscreenCanvas(1,1),c=l.getContext("2d",{alpha:!1}),h=200,f=c.font=`${s} ${i} ${h}px ${e}`,{actualBoundingBoxLeft:u,actualBoundingBoxRight:p,actualBoundingBoxAscent:m,actualBoundingBoxDescent:g,fontBoundingBoxAscent:w,fontBoundingBoxDescent:b,width:j}=c.measureText(t),v=1.5,q=Math.ceil(Math.max(Math.abs(u)+Math.abs(p)||0,j)*v),x=Math.ceil(Math.max(Math.abs(m)+Math.abs(g)||h,Math.abs(w)+Math.abs(b)||h)*v);l=new OffscreenCanvas(q,x),c=l.getContext("2d",{alpha:!0,willReadFrequently:!0}),c.font=f,c.filter="grayscale(1)",c.fillStyle="white",c.fillRect(0,0,q,x),c.fillStyle="black",c.fillText(t,q*(v-1)/2,x*(3-v)/2);let k=this.#u(c.getImageData(0,0,q,x).data),A=this.#c(k),S=this.#h(A),I=this.#a(k,q,x,S);return this.processDrawnLines({lines:{curves:I,width:q,height:x},pageWidth:n,pageHeight:a,rotation:r,innerMargin:o,mustSmooth:!0,areContours:!0})}static process(t,e,s,i,n){let[a,r,o]=this.#d(t),[l,c]=this.#l(a,r,o,Math.hypot(r,o)*this.#t.sigmaSFactor,this.#t.sigmaR,this.#t.kernelSize),h=this.#h(c),f=this.#a(l,r,o,h);return this.processDrawnLines({lines:{curves:f,width:r,height:o},pageWidth:e,pageHeight:s,rotation:i,innerMargin:n,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:t,pageWidth:e,pageHeight:s,rotation:i,innerMargin:n,mustSmooth:a,areContours:r}){i%180!==0&&([e,s]=[s,e]);let{curves:o,width:l,height:c}=t,h=t.thickness??0,f=[],u=Math.min(e/l,s/c),p=u/e,m=u/s,g=[];for(let{points:b}of o){let j=a?this.#o(b):b;if(!j)continue;g.push(j);let v=j.length,q=new Float32Array(v),x=new Float32Array(3*(v===2?2:v-2));if(f.push({line:x,points:q}),v===2){q[0]=j[0]*p,q[1]=j[1]*m,x.set([NaN,NaN,NaN,NaN,q[0],q[1]],0);continue}let[k,A,S,I]=j;k*=p,A*=m,S*=p,I*=m,q.set([k,A,S,I],0),x.set([NaN,NaN,NaN,NaN,k,A],0);for(let E=4;E<v;E+=2){let D=q[E]=j[E]*p,O=q[E+1]=j[E+1]*m;x.set(Bt.createBezierPoints(k,A,S,I,D,O),(E-2)*3),[k,A,S,I]=[S,I,D,O]}}if(f.length===0)return null;let w=r?new Hh:new Qr;return w.build(f,e,s,1,i,r?0:h,n),{outline:w,newCurves:g,areContours:r,thickness:h,width:l,height:c}}static async compressSignature({outlines:t,areContours:e,thickness:s,width:i,height:n}){let a=1/0,r=-1/0,o=0;for(let w of t){o+=w.length;for(let b=2,j=w.length;b<j;b++){let v=w[b]-w[b-2];a=Math.min(a,v),r=Math.max(r,v)}}let l;a>=-128&&r<=127?l=Int8Array:a>=-32768&&r<=32767?l=Int16Array:l=Int32Array;let c=t.length,h=xc+wo*c,f=new Uint32Array(h),u=0;f[u++]=h*Uint32Array.BYTES_PER_ELEMENT+(o-2*c)*l.BYTES_PER_ELEMENT,f[u++]=0,f[u++]=i,f[u++]=n,f[u++]=e?0:1,f[u++]=Math.max(0,Math.floor(s??0)),f[u++]=c,f[u++]=l.BYTES_PER_ELEMENT;for(let w of t)f[u++]=w.length-2,f[u++]=w[0],f[u++]=w[1];let p=new CompressionStream("deflate-raw"),m=p.writable.getWriter();await m.ready,m.write(f);let g=l.prototype.constructor;for(let w of t){let b=new g(w.length-2);for(let j=2,v=w.length;j<v;j++)b[j-2]=w[j]-w[j-2];m.write(b)}return m.close(),(await new Response(p.readable).bytes()).toBase64()}static async decompressSignature(t){try{let e=Uint8Array.fromBase64(t),{readable:s,writable:i}=new DecompressionStream("deflate-raw"),n=i.getWriter();await n.ready,n.write(e).then(async()=>{await n.ready,await n.close()}).catch(()=>{});let a=null,r=0;for await(let j of s)a||=new Uint8Array(new Uint32Array(j.buffer,0,4)[0]),a.set(j,r),r+=j.length;let o=new Uint32Array(a.buffer,0,a.length>>2),l=o[1];if(l!==0)throw Error(`Invalid version: ${l}`);let c=o[2],h=o[3],f=o[4]===0,u=o[5],p=o[6],m=o[7],g=[],w=(xc+wo*p)*Uint32Array.BYTES_PER_ELEMENT,b;switch(m){case Int8Array.BYTES_PER_ELEMENT:b=new Int8Array(a.buffer,w);break;case Int16Array.BYTES_PER_ELEMENT:b=new Int16Array(a.buffer,w);break;case Int32Array.BYTES_PER_ELEMENT:b=new Int32Array(a.buffer,w);break}r=0;for(let j=0;j<p;j++){let v=o[wo*j+xc],q=new Float32Array(v+2);g.push(q);for(let x=0;x<wo-1;x++)q[x]=o[wo*j+xc+x+1];for(let x=0;x<v;x++)q[x+2]=q[x]+b[r++]}return{areContours:f,thickness:u,outlines:g,width:c,height:h}}catch(e){return ne(`decompressSignature: ${e}`),null}}};U0=class U0 extends L0{static{d(this,"SignatureOptions")}constructor(){super(),super.updateProperties({fill:Ut._defaultLineColor,"stroke-width":0})}clone(){let t=new U0;return t.updateAll(this),t}};G0=class G0 extends Ef{static{d(this,"DrawnSignatureOptions")}constructor(t){super(t),super.updateProperties({stroke:Ut._defaultLineColor,"stroke-width":1})}clone(){let t=new G0(this._viewParameters);return t.updateAll(this),t}};Zi=class Zi extends xe{static{d(this,"SignatureEditor")}#t=!1;#e=null;#s=null;#i=null;static _type="signature";static _editorType=Zt.SIGNATURE;static _defaultDrawingOptions=null;constructor(t){super({...t,mustBeCommitted:!0,name:"signatureEditor"}),this._willKeepAspectRatio=!0,this.#s=t.signatureData||null,this.#e=null,this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(t,e){Ut.initialize(t,e),this._defaultDrawingOptions=new U0,this._defaultDrawnSignatureOptions=new G0(e.viewParameters)}static getDefaultDrawingOptions(t){let e=this._defaultDrawingOptions.clone();return e.updateProperties(t),e}static get supportMultipleDrawings(){return!1}static get typesMap(){return se(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!this.#e}}static computeTelemetryFinalData(t){let e=t.get("hasDescription");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let t,e,{_isCopy:s}=this;if(s&&(this._isCopy=!1,t=this.x,e=this.y),super.render(),this._drawId===null)if(this.#s){let{lines:i,mustSmooth:n,areContours:a,description:r,uuid:o,heightInPage:l}=this.#s,{rawDims:{pageWidth:c,pageHeight:h},rotation:f}=this.parent.viewport,u=Zn.processDrawnLines({lines:i,pageWidth:c,pageHeight:h,rotation:f,innerMargin:Zi._INNER_MARGIN,mustSmooth:n,areContours:a});this.addSignature(u,l,r,o)}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:this.#e||""}));return s&&(this._isCopy=!0,this._moveAfterPaste(t,e)),this.div}setUuid(t){this.#i=t,this.addEditToolbar()}getUuid(){return this.#i}get description(){return this.#e}set description(t){this.#e=t,this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:t})),super.addEditToolbar().then((e)=>{e?.updateEditSignatureButton(t)}))}getSignaturePreview(){let{newCurves:t,areContours:e,thickness:s,width:i,height:n}=this.#s,a=Math.max(i,n),r=Zn.processDrawnLines({lines:{curves:t.map((o)=>({points:o})),thickness:s,width:i,height:n},pageWidth:a,pageHeight:a,rotation:0,innerMargin:0,mustSmooth:!1,areContours:e});return{areContours:e,outline:r.outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(t,e,s,i){let{x:n,y:a}=this,{outline:r}=this.#s=t;this.#t=r instanceof Hh,this.description=s;let o;this.#t?o=Zi.getDefaultDrawingOptions():(o=Zi._defaultDrawnSignatureOptions.clone(),o.updateProperties({"stroke-width":r.thickness})),this._addOutlines({drawOutlines:r,drawingOptions:o});let[,l]=this.pageDimensions,c=e/l;c=c>=1?0.5:c,this.width*=c/this.height,this.width>=1&&(c*=0.9/this.width,this.width=0.9),this.height=c,this.setDims(),this.x=n,this.y=a,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!s}}),this.div.hidden=!1}getFromImage(t){let{rawDims:{pageWidth:e,pageHeight:s},rotation:i}=this.parent.viewport;return Zn.process(t,e,s,i,Zi._INNER_MARGIN)}getFromText(t,e){let{rawDims:{pageWidth:s,pageHeight:i},rotation:n}=this.parent.viewport;return Zn.extractContoursFromText(t,e,s,i,n,Zi._INNER_MARGIN)}getDrawnSignature(t){let{rawDims:{pageWidth:e,pageHeight:s},rotation:i}=this.parent.viewport;return Zn.processDrawnLines({lines:t,pageWidth:e,pageHeight:s,rotation:i,innerMargin:Zi._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:t,thickness:e}){t?this._drawingOptions=Zi.getDefaultDrawingOptions():(this._drawingOptions=Zi._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":e}))}serialize(t=!1){if(this.isEmpty())return null;let{lines:e,points:s}=this.serializeDraw(t),{_drawingOptions:{"stroke-width":i}}=this,n=Object.assign(super.serialize(t),{isSignature:!0,areContours:this.#t,color:[0,0,0],thickness:this.#t?0:i});return this.addComment(n),t?(n.paths={lines:e,points:s},n.uuid=this.#i,n.isCopy=!0):n.lines=e,this.#e&&(n.accessibilityData={type:"Figure",alt:this.#e}),n}static deserializeDraw(t,e,s,i,n,a){return a.areContours?Hh.deserialize(t,e,s,i,n,a):Qr.deserialize(t,e,s,i,n,a)}static async deserialize(t,e,s){let i=await super.deserialize(t,e,s);return i.#t=t.areContours,i.description=t.accessibilityData?.alt||"",i.#i=t.uuid,i}};M7=class M7 extends Ut{static{d(this,"StampEditor")}#t=null;#e=null;#s=null;#i=null;#n=null;#a="";#r=null;#o=!1;#l=null;#c=!1;#u=!1;static _type="stamp";static _editorType=Zt.STAMP;constructor(t){super({...t,name:"stampEditor"}),this.#i=t.bitmapUrl,this.#n=t.bitmapFile,this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(t,e){Ut.initialize(t,e)}static isHandlingMimeForPasting(t){return Fh.includes(t)}static paste(t,e){e.pasteEditor({mode:Zt.STAMP},{bitmapFile:t.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(t){let e=t.get("hasAltText");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}#h(t,e=!1){if(!t){this.remove();return}this.#t=t.bitmap,e||(this.#e=t.id,this.#c=t.isSvg),t.file&&(this.#a=t.file.name),this.#m()}#d(){if(this.#s=null,this._uiManager.enableWaiting(!1),!!this.#r){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#t){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#t){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}async mlGuessAltText(t=null,e=!0){if(this.hasAltTextData())return null;let{mlManager:s}=this._uiManager;if(!s)throw Error("No ML.");if(!await s.isEnabledFor("altText"))throw Error("ML isn't enabled for alt text.");let{data:i,width:n,height:a}=t||this.copyCanvas(null,null,!0).imageData,r=await s.guess({name:"altText",request:{data:i,width:n,height:a,channels:i.length/(n*a)}});if(!r)throw Error("No response from the AI service.");if(r.error)throw Error("Error from the AI service.");if(r.cancel)return null;if(!r.output)throw Error("No valid response from the AI service.");let o=r.output;return await this.setGuessedAltText(o),e&&!this.hasAltTextData()&&(this.altTextData={alt:o,decorative:!1}),o}#g(){if(this.#e){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(this.#e).then((s)=>this.#h(s,!0)).finally(()=>this.#d());return}if(this.#i){let s=this.#i;this.#i=null,this._uiManager.enableWaiting(!0),this.#s=this._uiManager.imageManager.getFromUrl(s).then((i)=>this.#h(i)).finally(()=>this.#d());return}if(this.#n){let s=this.#n;this.#n=null,this._uiManager.enableWaiting(!0),this.#s=this._uiManager.imageManager.getFromFile(s).then((i)=>this.#h(i)).finally(()=>this.#d());return}let t=document.createElement("input");t.type="file",t.accept=Fh.join(",");let e=this._uiManager._signal;this.#s=new Promise((s)=>{t.addEventListener("change",async()=>{if(!t.files||t.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);let i=await this._uiManager.imageManager.getFromFile(t.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#h(i)}s()},{signal:e}),t.addEventListener("cancel",()=>{this.remove(),s()},{signal:e})}).finally(()=>this.#d()),t.click()}remove(){this.#e&&(this.#t=null,this._uiManager.imageManager.deleteId(this.#e),this.#r?.remove(),this.#r=null,this.#l&&(clearTimeout(this.#l),this.#l=null)),super.remove()}rebuild(){if(!this.parent){this.#e&&this.#g();return}super.rebuild(),this.div!==null&&(this.#e&&this.#r===null&&this.#g(),this.isAttachedToDOM||this.parent.add(this))}onceAdded(t){this._isDraggable=!0,t&&this.div.focus()}isEmpty(){return!(this.#s||this.#t||this.#i||this.#n||this.#e||this.#o)}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let t,e;return this._isCopy&&(t=this.x,e=this.y),super.render(),this.div.hidden=!0,this.createAltText(),this.#o||(this.#t?this.#m():this.#g()),this._isCopy&&this._moveAfterPaste(t,e),this._uiManager.addShouldRescale(this),this.div}setCanvas(t,e){let{id:s,bitmap:i}=this._uiManager.imageManager.getFromCanvas(t,e);e.remove(),s&&this._uiManager.imageManager.isValidId(s)&&(this.#e=s,i&&(this.#t=i),this.#o=!1,this.#m())}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;this.#l!==null&&clearTimeout(this.#l);let t=200;this.#l=setTimeout(()=>{this.#l=null,this.#p()},t)}#m(){let{div:t}=this,{width:e,height:s}=this.#t,[i,n]=this.pageDimensions,a=0.75;if(this.width)e=this.width*i,s=this.height*n;else if(e>0.75*i||s>0.75*n){let o=Math.min(0.75*i/e,0.75*n/s);e*=o,s*=o}this._uiManager.enableWaiting(!1);let r=this.#r=document.createElement("canvas");r.setAttribute("role","img"),this.addContainer(r),this.width=e/i,this.height=s/n,this.setDims(),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(t.hidden=!1),this.#p(),this.#u||(this.parent.addUndoableEditor(this),this.#u=!0),this._reportTelemetry({action:"inserted_image"}),this.#a&&this.div.setAttribute("aria-description",this.#a),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")}copyCanvas(t,e,s=!1){t||(t=224);let{width:i,height:n}=this.#t,a=new Ki,r=this.#t,o=i,l=n,c=null;if(e){if(i>e||n>e){let x=Math.min(e/i,e/n);o=Math.floor(i*x),l=Math.floor(n*x)}c=document.createElement("canvas");let f=c.width=Math.ceil(o*a.sx),u=c.height=Math.ceil(l*a.sy);this.#c||(r=this.#f(f,u));let p=c.getContext("2d");p.filter=this._uiManager.hcmFilter;let m="white",g="#cfcfd8";this._uiManager.hcmFilter!=="none"?g="black":i8.isDarkMode&&(m="#8f8f9d",g="#42414d");let w=15,b=w*a.sx,j=w*a.sy,v=new OffscreenCanvas(b*2,j*2),q=v.getContext("2d");q.fillStyle=m,q.fillRect(0,0,b*2,j*2),q.fillStyle=g,q.fillRect(0,0,b,j),q.fillRect(b,j,b,j),p.fillStyle=p.createPattern(v,"repeat"),p.fillRect(0,0,f,u),p.drawImage(r,0,0,r.width,r.height,0,0,f,u)}let h=null;if(s){let f,u;if(a.symmetric&&r.width<t&&r.height<t)f=r.width,u=r.height;else if(r=this.#t,i>t||n>t){let m=Math.min(t/i,t/n);f=Math.floor(i*m),u=Math.floor(n*m),this.#c||(r=this.#f(f,u))}let p=new OffscreenCanvas(f,u).getContext("2d",{willReadFrequently:!0});p.drawImage(r,0,0,r.width,r.height,0,0,f,u),h={width:f,height:u,data:p.getImageData(0,0,f,u).data}}return{canvas:c,width:o,height:l,imageData:h}}#f(t,e){let{width:s,height:i}=this.#t,n=s,a=i,r=this.#t;for(;n>2*t||a>2*e;){let o=n,l=a;n>2*t&&(n=n>=16384?Math.floor(n/2)-1:Math.ceil(n/2)),a>2*e&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));let c=new OffscreenCanvas(n,a);c.getContext("2d").drawImage(r,0,0,o,l,0,0,n,a),r=c.transferToImageBitmap()}return r}#p(){let[t,e]=this.parentDimensions,{width:s,height:i}=this,n=new Ki,a=Math.ceil(s*t*n.sx),r=Math.ceil(i*e*n.sy),o=this.#r;if(!o||o.width===a&&o.height===r)return;o.width=a,o.height=r;let l=this.#c?this.#t:this.#f(a,r),c=o.getContext("2d");c.filter=this._uiManager.hcmFilter,c.drawImage(l,0,0,l.width,l.height,0,0,a,r)}#b(t){if(t){if(this.#c){let s=this._uiManager.imageManager.getSvgUrl(this.#e);if(s)return s}let e=document.createElement("canvas");return{width:e.width,height:e.height}=this.#t,e.getContext("2d").drawImage(this.#t,0,0),e.toDataURL()}if(this.#c){let[e,s]=this.pageDimensions,i=Math.round(this.width*e*da.PDF_TO_CSS_UNITS),n=Math.round(this.height*s*da.PDF_TO_CSS_UNITS),a=new OffscreenCanvas(i,n);return a.getContext("2d").drawImage(this.#t,0,0,this.#t.width,this.#t.height,0,0,i,n),a.transferToImageBitmap()}return structuredClone(this.#t)}static async deserialize(t,e,s){let i=null,n=!1;if(t instanceof O0){let{data:{rect:m,rotation:g,id:w,structParent:b,popupRef:j,richText:v,contentsObj:q,creationDate:x,modificationDate:k},container:A,parent:{page:{pageNumber:S}},canvas:I}=t,E,D;I?(delete t.canvas,{id:E,bitmap:D}=s.imageManager.getFromCanvas(A.id,I),I.remove()):(n=!0,t._hasNoCanvas=!0);let O=(await e._structTree.getAriaAttributes(`${jr}${w}`))?.get("aria-label")||"";i=t={annotationType:Zt.STAMP,bitmapId:E,bitmap:D,pageIndex:S-1,rect:m.slice(0),rotation:g,annotationElementId:w,id:w,deleted:!1,accessibilityData:{decorative:!1,altText:O},isSvg:!1,structParent:b,popupRef:j,richText:v,comment:q?.str||null,creationDate:x,modificationDate:k}}let a=await super.deserialize(t,e,s),{rect:r,bitmap:o,bitmapUrl:l,bitmapId:c,isSvg:h,accessibilityData:f}=t;n?(s.addMissingCanvas(t.id,a),a.#o=!0):c&&s.imageManager.isValidId(c)?(a.#e=c,o&&(a.#t=o)):a.#i=l,a.#c=h;let[u,p]=a.pageDimensions;return a.width=(r[2]-r[0])/u,a.height=(r[3]-r[1])/p,f&&(a.altTextData=f),a._initialData=i,t.comment&&a.setCommentData(t),a.#u=!!i,a}serialize(t=!1,e=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let s=Object.assign(super.serialize(t),{bitmapId:this.#e,isSvg:this.#c});if(this.addComment(s),t)return s.bitmapUrl=this.#b(!0),s.accessibilityData=this.serializeAltText(!0),s.isCopy=!0,s;let{decorative:i,altText:n}=this.serializeAltText(!1);if(!i&&n&&(s.accessibilityData={type:"Figure",alt:n}),this.annotationElementId){let r=this.#v(s);return r.isSame?null:(r.isSameAltText?delete s.accessibilityData:s.accessibilityData.structParent=this._initialData.structParent??-1,s.id=this.annotationElementId,delete s.bitmapId,s)}if(e===null)return s;e.stamps||=new Map;let a=this.#c?(s.rect[2]-s.rect[0])*(s.rect[3]-s.rect[1]):null;if(!e.stamps.has(this.#e))e.stamps.set(this.#e,{area:a,serialized:s}),s.bitmap=this.#b(!1);else if(this.#c){let r=e.stamps.get(this.#e);a>r.area&&(r.area=a,r.serialized.bitmap.close(),r.serialized.bitmap=this.#b(!1))}return s}#v(t){let{pageIndex:e,accessibilityData:{altText:s}}=this._initialData,i=t.pageIndex===e,n=(t.accessibilityData?.alt||"")===s;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&i&&n,isSameAltText:n}}renderAnnotationElement(t){return this.deleted?(t.hide(),null):(t.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}};en=class en{static{d(this,"AnnotationEditorLayer")}#t;#e=!1;#s=null;#i=null;#n=null;#a=new Map;#r=!1;#o=!1;#l=!1;#c=null;#u=null;#h=null;#d=null;#g=null;#m=-1;#f;static _initialized=!1;static#p=new Map([us,z0,M7,Qe,Zi].map((t)=>[t._editorType,t]));constructor({uiManager:t,pageIndex:e,div:s,structTreeLayer:i,accessibilityManager:n,annotationLayer:a,drawLayer:r,textLayer:o,viewport:l,l10n:c}){let h=[...en.#p.values()];if(!en._initialized){en._initialized=!0;for(let f of h)f.initialize(c,t)}t.registerEditorTypes(h),this.#f=t,this.pageIndex=e,this.div=s,this.#t=n,this.#s=a,this.viewport=l,this.#h=o,this.drawLayer=r,this._structTree=i,this.#f.addLayer(this)}get isEmpty(){return this.#a.size===0}get isInvisible(){return this.isEmpty&&this.#f.getMode()===Zt.NONE}updateToolbar(t){this.#f.updateToolbar(t)}updateMode(t=this.#f.getMode()){switch(this.#w(),t){case Zt.NONE:this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case Zt.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case Zt.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===Zt.POPUP)e.toggle("commentEditing",!0);else{e.toggle("commentEditing",!1);for(let s of en.#p.values())e.toggle(`${s._type}Editing`,t===s._editorType)}this.div.hidden=!1}hasTextLayer(t){return t===this.#h?.div}setEditingState(t){this.#f.setEditingState(t)}addCommands(t){this.#f.addCommands(t)}cleanUndoStack(t){this.#f.cleanUndoStack(t)}toggleDrawing(t=!1){this.div.classList.toggle("drawing",!t)}togglePointerEvents(t=!1){this.div.classList.toggle("disabled",!t)}toggleAnnotationLayerPointerEvents(t=!1){this.#s?.togglePointerEvents(t)}get#b(){return this.#a.size!==0?this.#a.values():this.#f.getEditors(this.pageIndex)}async enable(){this.#l=!0,this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),this.#g?.abort(),this.#g=null;let t=new Set;for(let s of this.#b)s.enableEditing(),s.show(!0),s.annotationElementId&&(this.#f.removeChangedExistingAnnotation(s),t.add(s.annotationElementId));let e=this.#s;if(e)for(let s of e.getEditableAnnotations()){if(s.hide(),this.#f.isDeletedAnnotationElement(s.data.id)||t.has(s.data.id))continue;let i=await this.deserialize(s);i&&(this.addOrRebuild(i),i.enableEditing())}this.#l=!1,this.#f._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){if(this.#o=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),this.#h&&!this.#g){this.#g=new AbortController;let i=this.#f.combinedSignal(this.#g);this.#h.div.addEventListener("pointerdown",(n)=>{let{clientX:a,clientY:r,timeStamp:o}=n,l=this.#m;if(o-l>500){this.#m=o;return}this.#m=-1;let{classList:c}=this.div;c.toggle("getElements",!0);let h=document.elementsFromPoint(a,r);if(c.toggle("getElements",!1),!this.div.contains(h[0]))return;let f,u=new RegExp(`^${ml}[0-9]+$`);for(let m of h)if(u.test(m.id)){f=m.id;break}if(!f)return;let p=this.#a.get(f);p?.annotationElementId===null&&(n.stopPropagation(),n.preventDefault(),p.dblclick(n))},{signal:i,capture:!0})}let t=this.#s,e=[];if(t){let i=new Map,n=new Map;for(let a of this.#b){if(a.disableEditing(),!a.annotationElementId){e.push(a);continue}if(a.serialize()!==null){i.set(a.annotationElementId,a);continue}else n.set(a.annotationElementId,a);this.getEditableAnnotation(a.annotationElementId)?.show(),a.remove()}for(let a of t.getEditableAnnotations()){let{id:r}=a.data;if(this.#f.isDeletedAnnotationElement(r)){a.updateEdited({deleted:!0});continue}let o=n.get(r);if(o){o.resetAnnotationElement(a),o.show(!1),a.show();continue}o=i.get(r),o&&(this.#f.addChangedExistingAnnotation(o),o.renderAnnotationElement(a)&&o.show(!1)),a.show()}}this.#w(),this.isEmpty&&(this.div.hidden=!0);let{classList:s}=this.div;for(let i of en.#p.values())s.remove(`${i._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),t?.updateFakeAnnotations(e),this.#o=!1}getEditableAnnotation(t){return this.#s?.getEditableAnnotation(t)||null}setActiveEditor(t){this.#f.getActive()!==t&&this.#f.setActiveEditor(t)}enableTextSelection(){if(this.div.tabIndex=-1,this.#h?.div&&!this.#d){this.#d=new AbortController;let t=this.#f.combinedSignal(this.#d);this.#h.div.addEventListener("pointerdown",this.#v.bind(this),{signal:t}),this.#h.div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,this.#h?.div&&this.#d&&(this.#d.abort(),this.#d=null,this.#h.div.classList.remove("highlighting"))}#v(t){this.#f.unselectAll();let{target:e}=t;if(e===this.#h.div||(e.getAttribute("role")==="img"||e.classList.contains("endOfContent"))&&this.#h.div.contains(e)){let{isMac:s}=es.platform;if(t.button!==0||t.ctrlKey&&s)return;this.#f.showAllEditors("highlight",!0,!0),this.#h.div.classList.add("free"),this.toggleDrawing(),Qe.startHighlighting(this,this.#f.direction==="ltr",{target:this.#h.div,x:t.x,y:t.y}),this.#h.div.addEventListener("pointerup",()=>{this.#h.div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:this.#f._signal}),t.preventDefault()}}enableClick(){if(this.#i)return;this.#i=new AbortController;let t=this.#f.combinedSignal(this.#i);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(){this.#i?.abort(),this.#i=null}attach(t){this.#a.set(t.id,t);let{annotationElementId:e}=t;e&&this.#f.isDeletedAnnotationElement(e)&&this.#f.removeDeletedAnnotationElement(t)}detach(t){this.#a.delete(t.id),this.#t?.removePointerInTextLayer(t.contentDiv),!this.#o&&t.annotationElementId&&this.#f.addDeletedAnnotationElement(t)}remove(t){this.detach(t),this.#f.removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1}changeParent(t){t.parent!==this&&(t.parent&&t.annotationElementId&&(this.#f.addDeletedAnnotationElement(t),Ut.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),this.#f.addEditor(t),this.attach(t),!t.isAttachedToDOM){let e=t.render();this.div.append(e),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(!this.#l),this.#f.addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){if(!t.isAttachedToDOM)return;let{activeElement:e}=document;t.div.contains(e)&&!this.#n&&(t._focusEventsAllowed=!1,this.#n=setTimeout(()=>{this.#n=null,t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this.#f._signal}),e.focus())},0)),t._structTreeParentId=this.#t?.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?(t.parent||=this,t.rebuild(),t.show()):this.add(t)}addUndoableEditor(t){let e=d(()=>t._uiManager.rebuild(t),"cmd"),s=d(()=>{t.remove()},"undo");this.addCommands({cmd:e,undo:s,mustExec:!1})}getEditorByUID(t){for(let e of this.#a.values())if(e.uid===t)return e;return null}get#y(){return en.#p.get(this.#f.getMode())}combinedSignal(t){return this.#f.combinedSignal(t)}#q(t){let e=this.#y;return e?new e.prototype.constructor(t):null}canCreateNewEmptyEditor(){return this.#y?.canCreateNewEmptyEditor()}async pasteEditor(t,e){this.updateToolbar(t),await this.#f.updateMode(t.mode);let{offsetX:s,offsetY:i}=this.#C(),n=this.#f.getId(),a=this.#q({parent:this,id:n,x:s,y:i,uiManager:this.#f,isCentered:!0,...e});a&&this.add(a)}async deserialize(t){return await en.#p.get(t.annotationType??t.annotationEditorType)?.deserialize(t,this,this.#f)||null}createAndAddNewEditor(t,e,s={}){let i=this.#f.getId(),n=this.#q({parent:this,id:i,x:t.offsetX,y:t.offsetY,uiManager:this.#f,isCentered:e,...s});return n&&this.add(n),n}get boundingClientRect(){return this.div.getBoundingClientRect()}#C(){let{x:t,y:e,width:s,height:i}=this.boundingClientRect,n=Math.max(0,t),a=Math.max(0,e),r=Math.min(window.innerWidth,t+s),o=Math.min(window.innerHeight,e+i),l=(n+r)/2-t,c=(a+o)/2-e,[h,f]=this.viewport.rotation%180===0?[l,c]:[c,l];return{offsetX:h,offsetY:f}}addNewEditor(t={}){this.createAndAddNewEditor(this.#C(),!0,t)}setSelected(t){this.#f.setSelected(t)}toggleSelected(t){this.#f.toggleSelected(t)}unselect(t){this.#f.unselect(t)}pointerup(t){let{isMac:e}=es.platform;if(t.button!==0||t.ctrlKey&&e||t.target!==this.div||!this.#r||(this.#r=!1,this.#y?.isDrawer&&this.#y.supportMultipleDrawings))return;if(!this.#e){this.#e=!0;return}let s=this.#f.getMode();if(s===Zt.STAMP||s===Zt.POPUP||s===Zt.SIGNATURE){this.#f.unselectAll();return}this.createAndAddNewEditor(t,!1)}pointerdown(t){if(this.#f.getMode()===Zt.HIGHLIGHT&&this.enableTextSelection(),this.#r){this.#r=!1;return}let{isMac:e}=es.platform;if(t.button!==0||t.ctrlKey&&e||t.target!==this.div)return;if(this.#r=!0,this.#y?.isDrawer){this.startDrawingSession(t);return}let s=this.#f.getActive();this.#e=!s||s.isEmpty()}startDrawingSession(t){if(this.div.focus({preventScroll:!0}),this.#c){this.#y.startDrawing(this,this.#f,!1,t);return}this.#f.setCurrentDrawingSession(this),this.#c=new AbortController;let e=this.#f.combinedSignal(this.#c);this.div.addEventListener("blur",({relatedTarget:s})=>{s&&!this.div.contains(s)&&(this.#u=null,this.commitOrRemove())},{signal:e}),this.#y.startDrawing(this,this.#f,!1,t)}pause(t){if(t){let{activeElement:e}=document;this.div.contains(e)&&(this.#u=e);return}this.#u&&setTimeout(()=>{this.#u?.focus(),this.#u=null},0)}endDrawingSession(t=!1){return this.#c?(this.#f.setCurrentDrawingSession(null),this.#c.abort(),this.#c=null,this.#u=null,this.#y.endDrawing(t)):null}findNewParent(t,e,s){let i=this.#f.findParent(e,s);return i===null||i===this?!1:(i.changeParent(t),!0)}commitOrRemove(){return this.#c?(this.endDrawingSession(),!0):!1}onScaleChanging(){this.#c&&this.#y.onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),this.#f.getActive()?.parent===this&&(this.#f.commitOrRemove(),this.#f.setActiveEditor(null)),this.#n&&(clearTimeout(this.#n),this.#n=null);for(let t of this.#a.values())this.#t?.removePointerInTextLayer(t.contentDiv),t.setParent(null),t.isAttachedToDOM=!1,t.div.remove();this.div=null,this.#a.clear(),this.#f.removeLayer(this)}#w(){for(let t of this.#a.values())t.isEmpty()&&t.remove()}async render({viewport:t}){this.viewport=t,_n(this.div,t);for(let e of this.#f.getEditors(this.pageIndex))this.add(e),e.rebuild();await this.#f.findClonesForPage(this),this.div.hidden=this.isEmpty,this.updateMode()}update({viewport:t}){this.#f.commitOrRemove(),this.#w();let e=this.viewport.rotation,s=t.rotation;if(this.viewport=t,_n(this.div,{rotation:s}),e!==s)for(let i of this.#a.values())i.rotate(s)}get pageDimensions(){let{pageWidth:t,pageHeight:e}=this.viewport.rawDims;return[t,e]}get scale(){return this.#f.viewParameters.realScale}};ds=class ds{static{d(this,"DrawLayer")}#t=null;#e=new Map;#s=new Map;static#i=0;setParent(t){if(!this.#t){this.#t=t;return}if(this.#t!==t){if(this.#e.size>0)for(let e of this.#e.values())e.remove(),t.append(e);this.#t=t}}static get _svgFactory(){return se(this,"_svgFactory",new zr)}static#n(t,[e,s,i,n]){let{style:a}=t;a.top=`${100*s}%`,a.left=`${100*e}%`,a.width=`${100*i}%`,a.height=`${100*n}%`}#a(){let t=ds._svgFactory.create(1,1,!0);return this.#t.append(t),t.setAttribute("aria-hidden",!0),t}#r(t,e){let s=ds._svgFactory.createElement("clipPath");t.append(s);let i=`clip_${e}`;s.setAttribute("id",i),s.setAttribute("clipPathUnits","objectBoundingBox");let n=ds._svgFactory.createElement("use");return s.append(n),n.setAttribute("href",`#${e}`),n.classList.add("clip"),i}#o(t,e){for(let[s,i]of Object.entries(e))i===null?t.removeAttribute(s):t.setAttribute(s,i)}draw(t,e=!1,s=!1){let i=ds.#i++,n=this.#a(),a=ds._svgFactory.createElement("defs");n.append(a);let r=ds._svgFactory.createElement("path");a.append(r);let o=`path_${i}`;r.setAttribute("id",o),r.setAttribute("vector-effect","non-scaling-stroke"),e&&this.#s.set(i,r);let l=s?this.#r(a,o):null,c=ds._svgFactory.createElement("use");return n.append(c),c.setAttribute("href",`#${o}`),this.updateProperties(n,t),this.#e.set(i,n),{id:i,clipPathId:`url(#${l})`}}drawOutline(t,e){let s=ds.#i++,i=this.#a(),n=ds._svgFactory.createElement("defs");i.append(n);let a=ds._svgFactory.createElement("path");n.append(a);let r=`path_${s}`;a.setAttribute("id",r),a.setAttribute("vector-effect","non-scaling-stroke");let o;if(e){let h=ds._svgFactory.createElement("mask");n.append(h),o=`mask_${s}`,h.setAttribute("id",o),h.setAttribute("maskUnits","objectBoundingBox");let f=ds._svgFactory.createElement("rect");h.append(f),f.setAttribute("width","1"),f.setAttribute("height","1"),f.setAttribute("fill","white");let u=ds._svgFactory.createElement("use");h.append(u),u.setAttribute("href",`#${r}`),u.setAttribute("stroke","none"),u.setAttribute("fill","black"),u.setAttribute("fill-rule","nonzero"),u.classList.add("mask")}let l=ds._svgFactory.createElement("use");i.append(l),l.setAttribute("href",`#${r}`),o&&l.setAttribute("mask",`url(#${o})`);let c=l.cloneNode();return i.append(c),l.classList.add("mainOutline"),c.classList.add("secondaryOutline"),this.updateProperties(i,t),this.#e.set(s,i),s}finalizeDraw(t,e){this.#s.delete(t),this.updateProperties(t,e)}updateProperties(t,e){if(!e)return;let{root:s,bbox:i,rootClass:n,path:a}=e,r=typeof t=="number"?this.#e.get(t):t;if(r){if(s&&this.#o(r,s),i&&ds.#n(r,i),n){let{classList:o}=r;for(let[l,c]of Object.entries(n))o.toggle(l,c)}if(a){let o=r.firstElementChild.firstElementChild;this.#o(o,a)}}}updateParent(t,e){if(e===this)return;let s=this.#e.get(t);s&&(e.#t.append(s),this.#e.delete(t),e.#e.set(t,s))}remove(t){this.#s.delete(t),this.#t!==null&&(this.#e.get(t).remove(),this.#e.delete(t))}destroy(){this.#t=null;for(let t of this.#e.values())t.remove();this.#e.clear(),this.#s.clear()}};d(Mo,"percentage");vl=class vl{static{d(this,"TextLayerImages")}#t=[];#e=new Map;#s=null;#i=0;#n=0;#a=0;static#r=null;constructor(t,e,s,i){this.#i=t,this.#t=e,this.#n=s.rawDims.pageWidth,this.#a=s.rawDims.pageHeight,this.#s=i}render(){let t=document.createElement("div");t.className="textLayerImages";for(let e=0;e<this.#t.length;e+=6){let s=this.#o(this.#t.subarray(e,e+6));s&&t.append(s)}return t.addEventListener("contextmenu",(e)=>{if(!(e.target instanceof HTMLCanvasElement))return;let s=e.target,i=this.#e.get(s);if(!i)return;let n=vl.#r?.deref();if(n===s)return;n&&(n.width=0,n.height=0),vl.#r=new WeakRef(s);let{inverseTransform:a,x1:r,y1:o,width:l,height:c}=i,h=this.#s(),f=Math.ceil(r*h.width),u=Math.ceil(o*h.height),p=Math.floor((r+l/this.#n)*h.width),m=Math.floor((o+c/this.#a)*h.height);s.width=p-f,s.height=m-u;let g=s.getContext("2d");g.setTransform(...a),g.translate(-f,-u),g.drawImage(h,0,0)}),t}#o([t,e,s,i,n,a]){let r=Math.hypot((n-t)*this.#n,(a-e)*this.#a),o=Math.hypot((s-t)*this.#n,(i-e)*this.#a);if(r<this.#i||o<this.#i)return null;let l=[(n-t)*this.#n/r,(a-e)*this.#a/r,(s-t)*this.#n/o,(i-e)*this.#a/o,0,0],c=xt.inverseTransform(l),h=document.createElement("canvas");return h.className="textLayerImagePlaceholder",h.width=0,h.height=0,Object.assign(h.style,{opacity:0,position:"absolute",left:Mo(t),top:Mo(e),width:Mo(r/this.#n),height:Mo(o/this.#a),transformOrigin:"0% 0%",transform:`matrix(${l.join(",")})`}),this.#e.set(h,{inverseTransform:c,width:r,height:o,x1:t,y1:e}),h}};globalThis._pdfjsTestingUtils={HighlightOutliner:Dh},globalThis.pdfjsLib={AbortException:hn,AnnotationEditorLayer:en,AnnotationEditorParamsType:ge,AnnotationEditorType:Zt,AnnotationEditorUIManager:On,AnnotationLayer:Ff,AnnotationMode:kn,AnnotationType:Xe,applyOpacity:f0,build:h7,ColorPicker:di,createValidAbsoluteUrl:wf,CSSConstants:h0,DOMSVGFactory:zr,DrawLayer:ds,FeatureTest:es,fetchData:Ul,findContrastColor:u0,getDocument:M0,getFilenameFromUrl:o0,getPdfFilenameFromUrl:l0,getRGB:Va,getUuid:jf,getXfaPageViewport:c0,GlobalWorkerOptions:Ra,ImageKind:zo,InvalidPDFException:gl,isDataScheme:Yr,isPdfFile:Vl,isValidExplicitDest:k8,makeArr:vf,makeMap:kf,makeObj:Th,MathClamp:rs,noContextMenu:oi,normalizeUnicode:r0,OPS:Nr,OutputScale:Ki,PasswordResponses:G4,PDFDataRangeTransport:Cf,PDFDateString:wl,PDFWorker:ps,PermissionFlag:U4,PixelsPerInch:da,RenderingCancelledException:$l,renderRichText:xf,ResponseException:Lr,setLayerDimensions:_n,shadow:se,SignatureExtractor:Zn,stopEvent:He,SupportedImageMimeTypes:Fh,TextLayer:ti,TextLayerImages:vl,TouchManager:Wl,updateUrlHash:yf,Util:xt,VerbosityLevel:Nl,version:c7,XfaLayer:qf}});import{logger as D7,Service as Iv,ServiceType as R7}from"@elizaos/core";function vv(){if(typeof globalThis.DOMMatrix<"u")return;globalThis.DOMMatrix=class{a;b;c;d;e;f;constructor(e){if(Array.isArray(e)&&e.length===6)this.a=e[0],this.b=e[1],this.c=e[2],this.d=e[3],this.e=e[4],this.f=e[5];else this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0}translateSelf(e,s=0){return this.e=this.a*e+this.c*s+this.e,this.f=this.b*e+this.d*s+this.f,this}scaleSelf(e,s=e){return this.a*=e,this.b*=e,this.c*=s,this.d*=s,this}}}function kv(){vv()}var ec,qv=globalThis.process?.release?.name==="node";async function Mf(t,e={}){let{getDocument:s}=await xv(),i={};if(qv)try{let a=import.meta.resolve("pdfjs-dist/package.json");i={disableFontFace:!0,standardFontDataUrl:new URL("./standard_fonts/",a).href}}catch{}return await s({data:t,isEvalSupported:!1,useSystemFonts:!0,...i,...e}).promise}async function xv(){if(!ec)await Av();return ec}async function Av(t,{reload:e=!1}={}){if(ec&&!e)return;if(kv(),t)try{ec=await Sv(t());return}catch(s){throw Error(`PDF.js could not be resolved: ${s}`)}try{ec=await Promise.resolve().then(() => (P7(),B7))}catch(s){throw Error(`Serverless PDF.js bundle could not be resolved: ${s}`)}}async function Sv(t){let e=await t;return e.default||e}class Cv{#t=!1;constructor({enableHWA:t=!1}={}){this.#t=t}create(t,e){let s=this._createCanvas(t,e);return{canvas:s,context:s.getContext("2d",{willReadFrequently:!this.#t})}}reset({canvas:t},e,s){if(!t)throw Error("Canvas is not specified");t.width=e,t.height=s}destroy(t){if(!t.canvas)throw Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=void 0,t.context=void 0}_createCanvas(t,e){throw Error("Not implemented")}}function Tv(t){return typeof t==="object"&&t!==null&&"str"in t&&typeof t.str==="string"}function $0(t){let e=[];for(let s of t)if(Tv(s))e.push(s.str);return e}class sc extends Iv{static serviceType=R7.PDF;capabilityDescription="The agent is able to convert PDF files to text";static async start(t){return new sc(t)}static async stop(t){let e=t.getService(R7.PDF);if(e)await e.stop()}async stop(){}async convertPdfToText(t){try{let e=new Uint8Array(t),s=await Mf(e),i=s.numPages,n=[];for(let r=1;r<=i;r++){let l=await(await s.getPage(r)).getTextContent(),c=$0(l.items).join(" ");n.push(c)}let a=n.join(`
108
+ `);return this.cleanUpContent(a)}catch(e){throw D7.error(`PdfService: Failed to convert PDF to text - error: ${e}, bufferSize: ${t.length}`),e}}async convertPdfToTextWithOptions(t,e={}){try{let s=new Uint8Array(t),i=await Mf(s),n=i.numPages,a=Math.max(1,e.startPage||1),r=Math.min(n,e.endPage||n),o=[];for(let c=a;c<=r;c++){let f=await(await i.getPage(c)).getTextContent(),u=$0(f.items).join(e.preserveWhitespace?"":" ");o.push(u)}let l=o.join(`
109
+ `);if(e.cleanContent!==!1)l=this.cleanUpContent(l);return{success:!0,text:l,pageCount:n}}catch(s){return{success:!1,error:s instanceof Error?s.message:String(s)}}}async getDocumentInfo(t){let e=new Uint8Array(t),s=await Mf(e),i=s.numPages,a=(await s.getMetadata()).info,r={title:a.Title,author:a.Author,subject:a.Subject,keywords:a.Keywords,creator:a.Creator,producer:a.Producer,creationDate:a.CreationDate?new Date(a.CreationDate):void 0,modificationDate:a.ModDate?new Date(a.ModDate):void 0},o=[],l=[];for(let c=1;c<=i;c++){let h=await s.getPage(c),f=h.getViewport({scale:1}),u=await h.getTextContent(),p=$0(u.items).join(" ");o.push({pageNumber:c,width:f.width,height:f.height,text:this.cleanUpContent(p)}),l.push(p)}return{pageCount:i,metadata:r,text:this.cleanUpContent(l.join(`
110
+ `)),pages:o}}cleanUpContent(t){try{return t.split("").filter((i)=>{let n=i.charCodeAt(0);return!(n===0||n>=1&&n<=8||n>=11&&n<=12||n>=14&&n<=31||n===127)}).join("").replace(/[^\S\r\n]+/g," ").replace(/[ \t]+(\r?\n)/g,"$1").trim()}catch(e){return D7.error(`PdfService: Failed to clean up content - error: ${e}, contentLength: ${t.length}`),t}}}var H7={name:"pdf",description:"Plugin for PDF reading and text extraction",services:[sc],actions:[]};var Fv=H7,pk=Fv;export{H7 as pdfPlugin,pk as default,sc as PdfService};
111
+
112
+ //# debugId=252BC57D054D0FEB64756E2164756E21