|
- var ha=Object.defineProperty;var ua=Object.getPrototypeOf;var fa=Reflect.get;var Lt=Math.pow,da=(Ot,Mt,vt)=>Mt in Ot?ha(Ot,Mt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Ot[Mt]=vt;var _t=(Ot,Mt,vt)=>(da(Ot,typeof Mt!="symbol"?Mt+"":Mt,vt),vt),jn=(Ot,Mt,vt)=>{if(!Mt.has(Ot))throw TypeError("Cannot "+vt)};var jt=(Ot,Mt,vt)=>(jn(Ot,Mt,"read from private field"),vt?vt.call(Ot):Mt.get(Ot)),kt=(Ot,Mt,vt)=>{if(Mt.has(Ot))throw TypeError("Cannot add the same private member more than once");Mt instanceof WeakSet?Mt.add(Ot):Mt.set(Ot,vt)},bn=(Ot,Mt,vt,qt)=>(jn(Ot,Mt,"write to private field"),qt?qt.call(Ot,vt):Mt.set(Ot,vt),vt);var st=(Ot,Mt,vt)=>(jn(Ot,Mt,"access private method"),vt),nn=(Ot,Mt,vt)=>fa(ua(Ot),vt,Mt);var Ue=(Ot,Mt,vt)=>new Promise((qt,Vt)=>{var Qt=ce=>{try{b(vt.next(ce))}catch(n){Vt(n)}},Re=ce=>{try{b(vt.throw(ce))}catch(n){Vt(n)}},b=ce=>ce.done?qt(ce.value):Promise.resolve(ce.value).then(Qt,Re);b((vt=vt.apply(Ot,Mt)).next())});function ga(Ot,Mt){for(var vt=0;vt<Mt.length;vt++){const qt=Mt[vt];if(typeof qt!="string"&&!Array.isArray(qt)){for(const Vt in qt)if(Vt!=="default"&&!(Vt in Ot)){const Qt=Object.getOwnPropertyDescriptor(qt,Vt);Qt&&Object.defineProperty(Ot,Vt,Qt.get?Qt:{enumerable:!0,get:()=>qt[Vt]})}}}return Object.freeze(Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"}))}var Kn={},Yn={exports:{}};(function(Ot,Mt){(function(qt,Vt){Ot.exports=qt.pdfjsWorker=Vt()})(globalThis,()=>(()=>{var vt=[,(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.WorkerTask=b.WorkerMessageHandler=void 0;var n=ce(2),P=ce(3),D=ce(4),e=ce(6),t=ce(10),c=ce(68),Y=ce(73),ee=ce(104),N=ce(105),I=ce(72);class f{constructor(w){this.name=w,this.terminated=!1,this._capability=new n.PromiseCapability}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}b.WorkerTask=f;class x{static setup(w,O){let M=!1;w.on("test",function(B){M||(M=!0,w.send("test",B instanceof Uint8Array))}),w.on("configure",function(B){(0,n.setVerbosityLevel)(B.verbosity)}),w.on("GetDocRequest",function(B){return x.createDocumentHandler(B,O)})}static createDocumentHandler(w,O){let M,B=!1,z=null;const W=new Set,d=(0,n.getVerbosityLevel)(),{docId:T,apiVersion:o}=w,l="3.11.174";if(o!==l)throw new Error(`The API version "${o}" does not match the Worker version "${l}".`);const F=[];for(const y in[])F.push(y);if(F.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+F.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");const s=T+"_worker";let r=new ee.MessageHandler(s,T,O);function u(){if(B)throw new Error("Worker was terminated")}function C(y){W.add(y)}function g(y){y.finish(),W.delete(y)}function p(y){return Ue(this,null,function*(){yield M.ensureDoc("checkHeader"),yield M.ensureDoc("parseStartXRef"),yield M.ensureDoc("parse",[y]),yield M.ensureDoc("checkFirstPage",[y]),yield M.ensureDoc("checkLastPage",[y]);const v=yield M.ensureDoc("isPureXfa");if(v){const j=new f("loadXfaFonts");C(j),yield Promise.all([M.loadXfaFonts(r,j).catch(H=>{}).then(()=>g(j)),M.loadXfaImages()])}const[m,h]=yield Promise.all([M.ensureDoc("numPages"),M.ensureDoc("fingerprints")]),A=v?yield M.ensureDoc("htmlForXfa"):null;return{numPages:m,fingerprints:h,htmlForXfa:A}})}function X({data:y,password:v,disableAutoFetch:m,rangeChunkSize:h,length:A,docBaseUrl:j,enableXfa:H,evaluatorOptions:J}){const oe={source:null,disableAutoFetch:m,docBaseUrl:j,docId:T,enableXfa:H,evaluatorOptions:J,handler:r,length:A,password:v,rangeChunkSize:h},q=new n.PromiseCapability;let re;if(y){try{oe.source=y,re=new e.LocalPdfManager(oe),q.resolve(re)}catch(G){q.reject(G)}return q.promise}let Z,K=[];try{Z=new N.PDFWorkerStream(r)}catch(G){return q.reject(G),q.promise}const S=Z.getFullReader();S.headersReady.then(function(){if(!!S.isRangeSupported){oe.source=Z,oe.length=S.contentLength,oe.disableAutoFetch||(oe.disableAutoFetch=S.isStreamingSupported),re=new e.NetworkPdfManager(oe);for(const G of K)re.sendProgressiveData(G);K=[],q.resolve(re),z=null}}).catch(function(G){q.reject(G),z=null});let k=0;const _=function(){const G=(0,P.arrayBuffersToBytes)(K);A&&G.length!==A&&(0,n.warn)("reported HTTP length is different from actual");try{oe.source=G,re=new e.LocalPdfManager(oe),q.resolve(re)}catch(Q){q.reject(Q)}K=[]};return new Promise(function(G,Q){const ie=function({value:ae,done:U}){try{if(u(),U){re||_(),z=null;return}k+=ae.byteLength,S.isStreamingSupported||r.send("DocProgress",{loaded:k,total:Math.max(k,S.contentLength||0)}),re?re.sendProgressiveData(ae):K.push(ae),S.read().then(ie,Q)}catch(ne){Q(ne)}};S.read().then(ie,Q)}).catch(function(G){q.reject(G),z=null}),z=function(G){Z.cancelAllRequests(G)},q.promise}function $(y){function v(A){u(),r.send("GetDoc",{pdfInfo:A})}function m(A){if(u(),A instanceof n.PasswordException){const j=new f(`PasswordException: response ${A.code}`);C(j),r.sendWithPromise("PasswordRequest",A).then(function({password:H}){g(j),M.updatePassword(H),h()}).catch(function(){g(j),r.send("DocException",A)})}else A instanceof n.InvalidPDFException||A instanceof n.MissingPDFException||A instanceof n.UnexpectedResponseException||A instanceof n.UnknownErrorException?r.send("DocException",A):r.send("DocException",new n.UnknownErrorException(A.message,A.toString()))}function h(){u(),p(!1).then(v,function(A){if(u(),!(A instanceof P.XRefParseException)){m(A);return}M.requestLoadedStream().then(function(){u(),p(!0).then(v,m)})})}u(),X(y).then(function(A){if(B)throw A.terminate(new n.AbortException("Worker was terminated.")),new Error("Worker was terminated");M=A,M.requestLoadedStream(!0).then(j=>{r.send("DataLoaded",{length:j.bytes.byteLength})})}).then(h,m)}return r.on("GetPage",function(y){return M.getPage(y.pageIndex).then(function(v){return Promise.all([M.ensure(v,"rotate"),M.ensure(v,"ref"),M.ensure(v,"userUnit"),M.ensure(v,"view")]).then(function([m,h,A,j]){return{rotate:m,ref:h,userUnit:A,view:j}})})}),r.on("GetPageIndex",function(y){const v=D.Ref.get(y.num,y.gen);return M.ensureCatalog("getPageIndex",[v])}),r.on("GetDestinations",function(y){return M.ensureCatalog("destinations")}),r.on("GetDestination",function(y){return M.ensureCatalog("getDestination",[y.id])}),r.on("GetPageLabels",function(y){return M.ensureCatalog("pageLabels")}),r.on("GetPageLayout",function(y){return M.ensureCatalog("pageLayout")}),r.on("GetPageMode",function(y){return M.ensureCatalog("pageMode")}),r.on("GetViewerPreferences",function(y){return M.ensureCatalog("viewerPreferences")}),r.on("GetOpenAction",function(y){return M.ensureCatalog("openAction")}),r.on("GetAttachments",function(y){return M.ensureCatalog("attachments")}),r.on("GetDocJSActions",function(y){return M.ensureCatalog("jsActions")}),r.on("GetPageJSActions",function({pageIndex:y}){return M.getPage(y).then(function(v){return M.ensure(v,"jsActions")})}),r.on("GetOutline",function(y){return M.ensureCatalog("documentOutline")}),r.on("GetOptionalContentConfig",function(y){return M.ensureCatalog("optionalContentConfig")}),r.on("GetPermissions",function(y){return M.ensureCatalog("permissions")}),r.on("GetMetadata",function(y){return Promise.all([M.ensureDoc("documentInfo"),M.ensureCatalog("metadata")])}),r.on("GetMarkInfo",function(y){return M.ensureCatalog("markInfo")}),r.on("GetData",function(y){return M.requestLoadedStream().then(function(v){return v.bytes})}),r.on("GetAnnotations",function({pageIndex:y,intent:v}){return M.getPage(y).then(function(m){const h=new f(`GetAnnotations: page ${y}`);return C(h),m.getAnnotationsData(r,h,v).then(A=>(g(h),A),A=>{throw g(h),A})})}),r.on("GetFieldObjects",function(y){return M.ensureDoc("fieldObjects")}),r.on("HasJSActions",function(y){return M.ensureDoc("hasJSActions")}),r.on("GetCalculationOrderIds",function(y){return M.ensureDoc("calculationOrderIds")}),r.on("SaveDocument",function(A){return Ue(this,arguments,function*({isPureXfa:y,numPages:v,annotationStorage:m,filename:h}){var se;const j=[M.requestLoadedStream(),M.ensureCatalog("acroForm"),M.ensureCatalog("acroFormRef"),M.ensureDoc("startXRef"),M.ensureDoc("xref"),M.ensureDoc("linearization"),M.ensureCatalog("structTreeRoot")],H=[],J=y?null:(0,P.getNewAnnotationsMap)(m),[oe,q,re,Z,K,S,k]=yield Promise.all(j),_=K.trailer.getRaw("Root")||null;let G;if(J){k?(yield k.canUpdateStructTree({pdfManager:M,newAnnotationsByPage:J}))&&(G=k):(yield I.StructTreeRoot.canCreateStructureTree({catalogRef:_,pdfManager:M,newAnnotationsByPage:J}))&&(G=null);const le=t.AnnotationFactory.generateImages(m.values(),K,M.evaluatorOptions.isOffscreenCanvasSupported),ue=G===void 0?H:[];for(const[fe,ge]of J)ue.push(M.getPage(fe).then(xe=>{const me=new f(`Save (editor): page ${fe}`);return xe.saveNewAnnotations(r,me,ge,le).finally(function(){g(me)})}));G===null?H.push(Promise.all(ue).then(fe=>Ue(this,null,function*(){return yield I.StructTreeRoot.createStructureTree({newAnnotationsByPage:J,xref:K,catalogRef:_,pdfManager:M,newRefs:fe}),fe}))):G&&H.push(Promise.all(ue).then(fe=>Ue(this,null,function*(){return yield G.updateStructureTree({newAnnotationsByPage:J,pdfManager:M,newRefs:fe}),fe})))}if(y)H.push(M.serializeXfaData(m));else for(let le=0;le<v;le++)H.push(M.getPage(le).then(function(ue){const fe=new f(`Save: page ${le}`);return ue.save(r,fe,m).finally(function(){g(fe)})}));const Q=yield Promise.all(H);let ie=[],ae=null;if(y){if(ae=Q[0],!ae)return oe.bytes}else if(ie=Q.flat(2),ie.length===0)return oe.bytes;const U=re&&q instanceof D.Dict&&ie.some(le=>le.needAppearances),ne=q instanceof D.Dict&&q.get("XFA")||null;let V=null,L=!1;if(Array.isArray(ne)){for(let le=0,ue=ne.length;le<ue;le+=2)ne[le]==="datasets"&&(V=ne[le+1],L=!0);V===null&&(V=K.getNewTemporaryRef())}else ne&&(0,n.warn)("Unsupported XFA type.");let te=Object.create(null);if(K.trailer){const le=Object.create(null),ue=K.trailer.get("Info")||null;ue instanceof D.Dict&&ue.forEach((fe,ge)=>{typeof ge=="string"&&(le[fe]=(0,n.stringToPDFString)(ge))}),te={rootRef:_,encryptRef:K.trailer.getRaw("Encrypt")||null,newRef:K.getNewTemporaryRef(),infoRef:K.trailer.getRaw("Info")||null,info:le,fileIds:K.trailer.get("ID")||null,startXRef:S?Z:(se=K.lastXRefStreamPos)!=null?se:Z,filename:h}}return(0,Y.incrementalUpdate)({originalData:oe.bytes,xrefInfo:te,newRefs:ie,xref:K,hasXfa:!!ne,xfaDatasetsRef:V,hasXfaDatasetsEntry:L,needAppearances:U,acroFormRef:re,acroForm:q,xfaData:ae}).finally(()=>{K.resetNewTemporaryRef()})})}),r.on("GetOperatorList",function(y,v){const m=y.pageIndex;M.getPage(m).then(function(h){const A=new f(`GetOperatorList: page ${m}`);C(A);const j=d>=n.VerbosityLevel.INFOS?Date.now():0;h.getOperatorList({handler:r,sink:v,task:A,intent:y.intent,cacheKey:y.cacheKey,annotationStorage:y.annotationStorage}).then(function(H){g(A),j&&(0,n.info)(`page=${m+1} - getOperatorList: time=${Date.now()-j}ms, len=${H.length}`),v.close()},function(H){g(A),!A.terminated&&v.error(H)})})}),r.on("GetTextContent",function(y,v){const{pageIndex:m,includeMarkedContent:h,disableNormalization:A}=y;M.getPage(m).then(function(j){const H=new f("GetTextContent: page "+m);C(H);const J=d>=n.VerbosityLevel.INFOS?Date.now():0;j.extractTextContent({handler:r,task:H,sink:v,includeMarkedContent:h,disableNormalization:A}).then(function(){g(H),J&&(0,n.info)(`page=${m+1} - getTextContent: time=${Date.now()-J}ms`),v.close()},function(oe){g(H),!H.terminated&&v.error(oe)})})}),r.on("GetStructTree",function(y){return M.getPage(y.pageIndex).then(function(v){return M.ensure(v,"getStructTree")})}),r.on("FontFallback",function(y){return M.fontFallback(y.id,r)}),r.on("Cleanup",function(y){return M.cleanup(!0)}),r.on("Terminate",function(y){B=!0;const v=[];if(M){M.terminate(new n.AbortException("Worker was terminated."));const m=M.cleanup();v.push(m),M=null}else(0,c.clearGlobalCaches)();z&&z(new n.AbortException("Worker was terminated."));for(const m of W)v.push(m.finished),m.terminate();return Promise.all(v).then(function(){r.destroy(),r=null})}),r.on("Ready",function(y){$(w),w=null}),s}static initializeFromPort(w){const O=new ee.MessageHandler("worker","main",w);x.setup(O,w),O.send("ready",null)}}b.WorkerMessageHandler=x;function a(E){return typeof E.postMessage=="function"&&"onmessage"in E}typeof window=="undefined"&&!n.isNodeJS&&typeof self!="undefined"&&a(self)&&x.initializeFromPort(self)},(Re,b)=>{var Se;Object.defineProperty(b,"__esModule",{value:!0}),b.VerbosityLevel=b.Util=b.UnknownErrorException=b.UnexpectedResponseException=b.TextRenderingMode=b.RenderingIntentFlag=b.PromiseCapability=b.PermissionFlag=b.PasswordResponses=b.PasswordException=b.PageActionEventType=b.OPS=b.MissingPDFException=b.MAX_IMAGE_SIZE_TO_CACHE=b.LINE_FACTOR=b.LINE_DESCENT_FACTOR=b.InvalidPDFException=b.ImageKind=b.IDENTITY_MATRIX=b.FormatError=b.FeatureTest=b.FONT_IDENTITY_MATRIX=b.DocumentActionEventType=b.CMapCompressionType=b.BaseException=b.BASELINE_FACTOR=b.AnnotationType=b.AnnotationReplyType=b.AnnotationPrefix=b.AnnotationMode=b.AnnotationFlag=b.AnnotationFieldFlag=b.AnnotationEditorType=b.AnnotationEditorPrefix=b.AnnotationEditorParamsType=b.AnnotationBorderStyleType=b.AnnotationActionEventType=b.AbortException=void 0,b.assert=$,b.bytesToString=Z,b.createValidAbsoluteUrl=v,b.getModificationDate=ue,b.getUuid=be,b.getVerbosityLevel=C,b.info=g,b.isArrayBuffer=se,b.isArrayEqual=le,b.isNodeJS=void 0,b.normalizeUnicode=me,b.objectFromMap=_,b.objectSize=k,b.setVerbosityLevel=u,b.shadow=m,b.string32=S,b.stringToBytes=K,b.stringToPDFString=V,b.stringToUTF8String=L,b.unreachable=X,b.utf8StringToString=te,b.warn=p;const ce=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");b.isNodeJS=ce;const n=[1,0,0,1,0,0];b.IDENTITY_MATRIX=n;const P=[.001,0,0,.001,0,0];b.FONT_IDENTITY_MATRIX=P;const D=1e7;b.MAX_IMAGE_SIZE_TO_CACHE=D;const e=1.35;b.LINE_FACTOR=e;const t=.35;b.LINE_DESCENT_FACTOR=t;const c=t/e;b.BASELINE_FACTOR=c;const Y={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};b.RenderingIntentFlag=Y;const ee={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};b.AnnotationMode=ee;const N="pdfjs_internal_editor_";b.AnnotationEditorPrefix=N;const I={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};b.AnnotationEditorType=I;const f={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};b.AnnotationEditorParamsType=f;const x={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};b.PermissionFlag=x;const a={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};b.TextRenderingMode=a;const E={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};b.ImageKind=E;const w={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};b.AnnotationType=w;const O={GROUP:"Group",REPLY:"R"};b.AnnotationReplyType=O;const M={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};b.AnnotationFlag=M;const B={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};b.AnnotationFieldFlag=B;const z={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};b.AnnotationBorderStyleType=z;const W={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"};b.AnnotationActionEventType=W;const d={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};b.DocumentActionEventType=d;const T={O:"PageOpen",C:"PageClose"};b.PageActionEventType=T;const o={ERRORS:0,WARNINGS:1,INFOS:5};b.VerbosityLevel=o;const l={NONE:0,BINARY:1};b.CMapCompressionType=l;const F={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};b.OPS=F;const s={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};b.PasswordResponses=s;let r=o.WARNINGS;function u(pe){Number.isInteger(pe)&&(r=pe)}function C(){return r}function g(pe){r>=o.INFOS&&console.log(`Info: ${pe}`)}function p(pe){r>=o.WARNINGS&&console.log(`Warning: ${pe}`)}function X(pe){throw new Error(pe)}function $(pe,he){pe||X(he)}function y(pe){switch(pe==null?void 0:pe.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function v(pe,he=null,de=null){if(!pe)return null;try{if(de&&typeof pe=="string"){if(de.addDefaultProtocol&&pe.startsWith("www.")){const we=pe.match(/\./g);(we==null?void 0:we.length)>=2&&(pe=`http://${pe}`)}if(de.tryConvertEncoding)try{pe=L(pe)}catch(we){}}const Ce=he?new URL(pe,he):new URL(pe);if(y(Ce))return Ce}catch(Ce){}return null}function m(pe,he,de,Ce=!1){return Object.defineProperty(pe,he,{value:de,enumerable:!Ce,configurable:!0,writable:!1}),de}const h=function(){function he(de,Ce){this.constructor===he&&X("Cannot initialize BaseException."),this.message=de,this.name=Ce}return he.prototype=new Error,he.constructor=he,he}();b.BaseException=h;class A extends h{constructor(he,de){super(he,"PasswordException"),this.code=de}}b.PasswordException=A;class j extends h{constructor(he,de){super(he,"UnknownErrorException"),this.details=de}}b.UnknownErrorException=j;class H extends h{constructor(he){super(he,"InvalidPDFException")}}b.InvalidPDFException=H;class J extends h{constructor(he){super(he,"MissingPDFException")}}b.MissingPDFException=J;class oe extends h{constructor(he,de){super(he,"UnexpectedResponseException"),this.status=de}}b.UnexpectedResponseException=oe;class q extends h{constructor(he){super(he,"FormatError")}}b.FormatError=q;class re extends h{constructor(he){super(he,"AbortException")}}b.AbortException=re;function Z(pe){(typeof pe!="object"||(pe==null?void 0:pe.length)===void 0)&&X("Invalid argument for bytesToString");const he=pe.length,de=8192;if(he<de)return String.fromCharCode.apply(null,pe);const Ce=[];for(let we=0;we<he;we+=de){const Le=Math.min(we+de,he),Be=pe.subarray(we,Le);Ce.push(String.fromCharCode.apply(null,Be))}return Ce.join("")}function K(pe){typeof pe!="string"&&X("Invalid argument for stringToBytes");const he=pe.length,de=new Uint8Array(he);for(let Ce=0;Ce<he;++Ce)de[Ce]=pe.charCodeAt(Ce)&255;return de}function S(pe){return String.fromCharCode(pe>>24&255,pe>>16&255,pe>>8&255,pe&255)}function k(pe){return Object.keys(pe).length}function _(pe){const he=Object.create(null);for(const[de,Ce]of pe)he[de]=Ce;return he}function G(){const pe=new Uint8Array(4);return pe[0]=1,new Uint32Array(pe.buffer,0,1)[0]===1}function Q(){try{return new Function(""),!0}catch(pe){return!1}}class ie{static get isLittleEndian(){return m(this,"isLittleEndian",G())}static get isEvalSupported(){return m(this,"isEvalSupported",Q())}static get isOffscreenCanvasSupported(){return m(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas!="undefined")}static get platform(){return typeof navigator=="undefined"?m(this,"platform",{isWin:!1,isMac:!1}):m(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var he,de;return m(this,"isCSSRoundSupported",(de=(he=globalThis.CSS)==null?void 0:he.supports)==null?void 0:de.call(he,"width: round(1.5px, 1px)"))}}b.FeatureTest=ie;const ae=[...Array(256).keys()].map(pe=>pe.toString(16).padStart(2,"0"));class U{static makeHexColor(he,de,Ce){return`#${ae[he]}${ae[de]}${ae[Ce]}`}static scaleMinMax(he,de){let Ce;he[0]?(he[0]<0&&(Ce=de[0],de[0]=de[1],de[1]=Ce),de[0]*=he[0],de[1]*=he[0],he[3]<0&&(Ce=de[2],de[2]=de[3],de[3]=Ce),de[2]*=he[3],de[3]*=he[3]):(Ce=de[0],de[0]=de[2],de[2]=Ce,Ce=de[1],de[1]=de[3],de[3]=Ce,he[1]<0&&(Ce=de[2],de[2]=de[3],de[3]=Ce),de[2]*=he[1],de[3]*=he[1],he[2]<0&&(Ce=de[0],de[0]=de[1],de[1]=Ce),de[0]*=he[2],de[1]*=he[2]),de[0]+=he[4],de[1]+=he[4],de[2]+=he[5],de[3]+=he[5]}static transform(he,de){return[he[0]*de[0]+he[2]*de[1],he[1]*de[0]+he[3]*de[1],he[0]*de[2]+he[2]*de[3],he[1]*de[2]+he[3]*de[3],he[0]*de[4]+he[2]*de[5]+he[4],he[1]*de[4]+he[3]*de[5]+he[5]]}static applyTransform(he,de){const Ce=he[0]*de[0]+he[1]*de[2]+de[4],we=he[0]*de[1]+he[1]*de[3]+de[5];return[Ce,we]}static applyInverseTransform(he,de){const Ce=de[0]*de[3]-de[1]*de[2],we=(he[0]*de[3]-he[1]*de[2]+de[2]*de[5]-de[4]*de[3])/Ce,Le=(-he[0]*de[1]+he[1]*de[0]+de[4]*de[1]-de[5]*de[0])/Ce;return[we,Le]}static getAxialAlignedBoundingBox(he,de){const Ce=this.applyTransform(he,de),we=this.applyTransform(he.slice(2,4),de),Le=this.applyTransform([he[0],he[3]],de),Be=this.applyTransform([he[2],he[1]],de);return[Math.min(Ce[0],we[0],Le[0],Be[0]),Math.min(Ce[1],we[1],Le[1],Be[1]),Math.max(Ce[0],we[0],Le[0],Be[0]),Math.max(Ce[1],we[1],Le[1],Be[1])]}static inverseTransform(he){const de=he[0]*he[3]-he[1]*he[2];return[he[3]/de,-he[1]/de,-he[2]/de,he[0]/de,(he[2]*he[5]-he[4]*he[3])/de,(he[4]*he[1]-he[5]*he[0])/de]}static singularValueDecompose2dScale(he){const de=[he[0],he[2],he[1],he[3]],Ce=he[0]*de[0]+he[1]*de[2],we=he[0]*de[1]+he[1]*de[3],Le=he[2]*de[0]+he[3]*de[2],Be=he[2]*de[1]+he[3]*de[3],at=(Ce+Be)/2,Oe=Math.sqrt(Lt(Ce+Be,2)-4*(Ce*Be-Le*we))/2,Ze=at+Oe||1,Ke=at-Oe||1;return[Math.sqrt(Ze),Math.sqrt(Ke)]}static normalizeRect(he){const de=he.slice(0);return he[0]>he[2]&&(de[0]=he[2],de[2]=he[0]),he[1]>he[3]&&(de[1]=he[3],de[3]=he[1]),de}static intersect(he,de){const Ce=Math.max(Math.min(he[0],he[2]),Math.min(de[0],de[2])),we=Math.min(Math.max(he[0],he[2]),Math.max(de[0],de[2]));if(Ce>we)return null;const Le=Math.max(Math.min(he[1],he[3]),Math.min(de[1],de[3])),Be=Math.min(Math.max(he[1],he[3]),Math.max(de[1],de[3]));return Le>Be?null:[Ce,Le,we,Be]}static bezierBoundingBox(he,de,Ce,we,Le,Be,at,Oe){const Ze=[],Ke=[[],[]];let Pe,qe,gt,De,et,rt,St,Pt;for(let yt=0;yt<2;++yt){if(yt===0?(qe=6*he-12*Ce+6*Le,Pe=-3*he+9*Ce-9*Le+3*at,gt=3*Ce-3*he):(qe=6*de-12*we+6*Be,Pe=-3*de+9*we-9*Be+3*Oe,gt=3*we-3*de),Math.abs(Pe)<1e-12){if(Math.abs(qe)<1e-12)continue;De=-gt/qe,0<De&&De<1&&Ze.push(De);continue}St=qe*qe-4*gt*Pe,Pt=Math.sqrt(St),!(St<0)&&(et=(-qe+Pt)/(2*Pe),0<et&&et<1&&Ze.push(et),rt=(-qe-Pt)/(2*Pe),0<rt&&rt<1&&Ze.push(rt))}let Ge=Ze.length,We;const _e=Ge;for(;Ge--;)De=Ze[Ge],We=1-De,Ke[0][Ge]=We*We*We*he+3*We*We*De*Ce+3*We*De*De*Le+De*De*De*at,Ke[1][Ge]=We*We*We*de+3*We*We*De*we+3*We*De*De*Be+De*De*De*Oe;return Ke[0][_e]=he,Ke[1][_e]=de,Ke[0][_e+1]=at,Ke[1][_e+1]=Oe,Ke[0].length=Ke[1].length=_e+2,[Math.min(...Ke[0]),Math.min(...Ke[1]),Math.max(...Ke[0]),Math.max(...Ke[1])]}}b.Util=U;const ne=[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];function V(pe){if(pe[0]>="\xEF"){let de;if(pe[0]==="\xFE"&&pe[1]==="\xFF"?de="utf-16be":pe[0]==="\xFF"&&pe[1]==="\xFE"?de="utf-16le":pe[0]==="\xEF"&&pe[1]==="\xBB"&&pe[2]==="\xBF"&&(de="utf-8"),de)try{const Ce=new TextDecoder(de,{fatal:!0}),we=K(pe);return Ce.decode(we)}catch(Ce){p(`stringToPDFString: "${Ce}".`)}}const he=[];for(let de=0,Ce=pe.length;de<Ce;de++){const we=ne[pe.charCodeAt(de)];he.push(we?String.fromCharCode(we):pe.charAt(de))}return he.join("")}function L(pe){return decodeURIComponent(escape(pe))}function te(pe){return unescape(encodeURIComponent(pe))}function se(pe){return typeof pe=="object"&&(pe==null?void 0:pe.byteLength)!==void 0}function le(pe,he){if(pe.length!==he.length)return!1;for(let de=0,Ce=pe.length;de<Ce;de++)if(pe[de]!==he[de])return!1;return!0}function ue(pe=new Date){return[pe.getUTCFullYear().toString(),(pe.getUTCMonth()+1).toString().padStart(2,"0"),pe.getUTCDate().toString().padStart(2,"0"),pe.getUTCHours().toString().padStart(2,"0"),pe.getUTCMinutes().toString().padStart(2,"0"),pe.getUTCSeconds().toString().padStart(2,"0")].join("")}class fe{constructor(){kt(this,Se,!1);this.promise=new Promise((he,de)=>{this.resolve=Ce=>{bn(this,Se,!0),he(Ce)},this.reject=Ce=>{bn(this,Se,!0),de(Ce)}})}get settled(){return jt(this,Se)}}Se=new WeakMap,b.PromiseCapability=fe;let ge=null,xe=null;function me(pe){return ge||(ge=/([\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,xe=new Map([["\uFB05","\u017Ft"]])),pe.replaceAll(ge,(he,de,Ce)=>de?de.normalize("NFKC"):xe.get(Ce))}function be(){if(typeof crypto!="undefined"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const pe=new Uint8Array(32);if(typeof crypto!="undefined"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(pe);else for(let he=0;he<32;he++)pe[he]=Math.floor(Math.random()*255);return Z(pe)}const ye="pdfjs_internal_id_";b.AnnotationPrefix=ye},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.XRefParseException=b.XRefEntryException=b.ParserEOFException=b.PDF_VERSION_REGEXP=b.MissingDataException=void 0,b.arrayBuffersToBytes=I,b.collectActions=o,b.encodeToXmlString=F,b.escapePDFName=W,b.escapeString=d,b.getInheritableProperty=f,b.getLookupTableFactory=t,b.getNewAnnotationsMap=g,b.getRotationMatrix=y,b.isAscii=p,b.isWhiteSpace=B,b.log2=E,b.numberToString=C,b.parseXFAPath=z,b.readInt8=w,b.readUint16=O,b.readUint32=M,b.recoverJsURL=u,b.stringToUTF16HexString=X,b.stringToUTF16String=$,b.toRomanNumerals=a,b.validateCSSFont=r,b.validateFontName=s;var n=ce(2),P=ce(4),D=ce(5);const e=/^[1-9]\.\d$/;b.PDF_VERSION_REGEXP=e;function t(v){let m;return function(){return v&&(m=Object.create(null),v(m),v=null),m}}class c extends n.BaseException{constructor(m,h){super(`Missing data [${m}, ${h})`,"MissingDataException"),this.begin=m,this.end=h}}b.MissingDataException=c;class Y extends n.BaseException{constructor(m){super(m,"ParserEOFException")}}b.ParserEOFException=Y;class ee extends n.BaseException{constructor(m){super(m,"XRefEntryException")}}b.XRefEntryException=ee;class N extends n.BaseException{constructor(m){super(m,"XRefParseException")}}b.XRefParseException=N;function I(v){const m=v.length;if(m===0)return new Uint8Array(0);if(m===1)return new Uint8Array(v[0]);let h=0;for(let H=0;H<m;H++)h+=v[H].byteLength;const A=new Uint8Array(h);let j=0;for(let H=0;H<m;H++){const J=new Uint8Array(v[H]);A.set(J,j),j+=J.byteLength}return A}function f({dict:v,key:m,getArray:h=!1,stopWhenFound:A=!0}){let j;const H=new P.RefSet;for(;v instanceof P.Dict&&!(v.objId&&H.has(v.objId));){v.objId&&H.put(v.objId);const J=h?v.getArray(m):v.get(m);if(J!==void 0){if(A)return J;(j||(j=[])).push(J)}v=v.get("Parent")}return j}const x=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function a(v,m=!1){(0,n.assert)(Number.isInteger(v)&&v>0,"The number should be a positive integer.");const h=[];let A;for(;v>=1e3;)v-=1e3,h.push("M");A=v/100|0,v%=100,h.push(x[A]),A=v/10|0,v%=10,h.push(x[10+A]),h.push(x[20+v]);const j=h.join("");return m?j.toLowerCase():j}function E(v){return v<=0?0:Math.ceil(Math.log2(v))}function w(v,m){return v[m]<<24>>24}function O(v,m){return v[m]<<8|v[m+1]}function M(v,m){return(v[m]<<24|v[m+1]<<16|v[m+2]<<8|v[m+3])>>>0}function B(v){return v===32||v===9||v===13||v===10}function z(v){const m=/(.+)\[(\d+)\]$/;return v.split(".").map(h=>{const A=h.match(m);return A?{name:A[1],pos:parseInt(A[2],10)}:{name:h,pos:0}})}function W(v){const m=[];let h=0;for(let A=0,j=v.length;A<j;A++){const H=v.charCodeAt(A);(H<33||H>126||H===35||H===40||H===41||H===60||H===62||H===91||H===93||H===123||H===125||H===47||H===37)&&(h<A&&m.push(v.substring(h,A)),m.push(`#${H.toString(16)}`),h=A+1)}return m.length===0?v:(h<v.length&&m.push(v.substring(h,v.length)),m.join(""))}function d(v){return v.replaceAll(/([()\\\n\r])/g,m=>m===`
- `?"\\n":m==="\r"?"\\r":`\\${m}`)}function T(v,m,h,A){if(!v)return;let j=null;if(v instanceof P.Ref){if(A.has(v))return;j=v,A.put(j),v=m.fetch(v)}if(Array.isArray(v))for(const H of v)T(H,m,h,A);else if(v instanceof P.Dict){if((0,P.isName)(v.get("S"),"JavaScript")){const H=v.get("JS");let J;H instanceof D.BaseStream?J=H.getString():typeof H=="string"&&(J=H),J&&(J=(0,n.stringToPDFString)(J).replaceAll("\0","")),J&&h.push(J)}T(v.getRaw("Next"),m,h,A)}j&&A.remove(j)}function o(v,m,h){const A=Object.create(null),j=f({dict:m,key:"AA",stopWhenFound:!1});if(j)for(let H=j.length-1;H>=0;H--){const J=j[H];if(J instanceof P.Dict)for(const oe of J.getKeys()){const q=h[oe];if(!q)continue;const re=J.getRaw(oe),Z=new P.RefSet,K=[];T(re,v,K,Z),K.length>0&&(A[q]=K)}}if(m.has("A")){const H=m.get("A"),J=new P.RefSet,oe=[];T(H,v,oe,J),oe.length>0&&(A.Action=oe)}return(0,n.objectSize)(A)>0?A:null}const l={60:"<",62:">",38:"&",34:""",39:"'"};function F(v){const m=[];let h=0;for(let A=0,j=v.length;A<j;A++){const H=v.codePointAt(A);if(32<=H&&H<=126){const J=l[H];J&&(h<A&&m.push(v.substring(h,A)),m.push(J),h=A+1)}else h<A&&m.push(v.substring(h,A)),m.push(`&#x${H.toString(16).toUpperCase()};`),H>55295&&(H<57344||H>65533)&&A++,h=A+1}return m.length===0?v:(h<v.length&&m.push(v.substring(h,v.length)),m.join(""))}function s(v,m=!1){const h=/^("|').*("|')$/.exec(v);if(h&&h[1]===h[2]){if(new RegExp(`[^\\\\]${h[1]}`).test(v.slice(1,-1)))return m&&(0,n.warn)(`FontFamily contains unescaped ${h[1]}: ${v}.`),!1}else for(const A of v.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(A)||!/^[\w-\\]+$/.test(A))return m&&(0,n.warn)(`FontFamily contains invalid <custom-ident>: ${v}.`),!1;return!0}function r(v){const m="14",h="400",A=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:j,fontWeight:H,italicAngle:J}=v;if(!s(j,!0))return!1;const oe=H?H.toString():"";v.fontWeight=A.has(oe)?oe:h;const q=parseFloat(J);return v.italicAngle=isNaN(q)||q<-90||q>90?m:J.toString(),!0}function u(v){const m=["app.launchURL","window.open","xfa.host.gotoURL"],A=new RegExp("^\\s*("+m.join("|").replaceAll(".","\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec(v);if(A!=null&&A[2]){const j=A[2];let H=!1;return A[3]==="true"&&A[1]==="app.launchURL"&&(H=!0),{url:j,newWindow:H}}return null}function C(v){if(Number.isInteger(v))return v.toString();const m=Math.round(v*100);return m%100===0?(m/100).toString():m%10===0?v.toFixed(1):v.toFixed(2)}function g(v){if(!v)return null;const m=new Map;for(const[h,A]of v){if(!h.startsWith(n.AnnotationEditorPrefix))continue;let j=m.get(A.pageIndex);j||(j=[],m.set(A.pageIndex,j)),j.push(A)}return m.size>0?m:null}function p(v){return/^[\x00-\x7F]*$/.test(v)}function X(v){const m=[];for(let h=0,A=v.length;h<A;h++){const j=v.charCodeAt(h);m.push((j>>8&255).toString(16).padStart(2,"0"),(j&255).toString(16).padStart(2,"0"))}return m.join("")}function $(v,m=!1){const h=[];m&&h.push("\xFE\xFF");for(let A=0,j=v.length;A<j;A++){const H=v.charCodeAt(A);h.push(String.fromCharCode(H>>8&255),String.fromCharCode(H&255))}return h.join("")}function y(v,m,h){switch(v){case 90:return[0,1,-1,0,m,0];case 180:return[-1,0,0,-1,m,h];case 270:return[0,-1,1,0,0,h];default:throw new Error("Invalid rotation")}}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.RefSetCache=b.RefSet=b.Ref=b.Name=b.EOF=b.Dict=b.Cmd=b.CIRCULAR_REF=void 0,b.clearPrimitiveCaches=Y,b.isCmd=O,b.isDict=M,b.isName=w,b.isRefsEqual=B;var n=ce(2);const P=Symbol("CIRCULAR_REF");b.CIRCULAR_REF=P;const D=Symbol("EOF");b.EOF=D;let e=Object.create(null),t=Object.create(null),c=Object.create(null);function Y(){e=Object.create(null),t=Object.create(null),c=Object.create(null)}class ee{constructor(W){this.name=W}static get(W){return t[W]||(t[W]=new ee(W))}}b.Name=ee;class N{constructor(W){this.cmd=W}static get(W){return e[W]||(e[W]=new N(W))}}b.Cmd=N;const I=function(){return I};class f{constructor(W=null){this._map=Object.create(null),this.xref=W,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=I}assignXref(W){this.xref=W}get size(){return Object.keys(this._map).length}get(W,d,T){let o=this._map[W];return o===void 0&&d!==void 0&&(o=this._map[d],o===void 0&&T!==void 0&&(o=this._map[T])),o instanceof x&&this.xref?this.xref.fetch(o,this.suppressEncryption):o}getAsync(W,d,T){return Ue(this,null,function*(){let o=this._map[W];return o===void 0&&d!==void 0&&(o=this._map[d],o===void 0&&T!==void 0&&(o=this._map[T])),o instanceof x&&this.xref?this.xref.fetchAsync(o,this.suppressEncryption):o})}getArray(W,d,T){let o=this._map[W];if(o===void 0&&d!==void 0&&(o=this._map[d],o===void 0&&T!==void 0&&(o=this._map[T])),o instanceof x&&this.xref&&(o=this.xref.fetch(o,this.suppressEncryption)),Array.isArray(o)){o=o.slice();for(let l=0,F=o.length;l<F;l++)o[l]instanceof x&&this.xref&&(o[l]=this.xref.fetch(o[l],this.suppressEncryption))}return o}getRaw(W){return this._map[W]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(W,d){this._map[W]=d}has(W){return this._map[W]!==void 0}forEach(W){for(const d in this._map)W(d,this.get(d))}static get empty(){const W=new f(null);return W.set=(d,T)=>{(0,n.unreachable)("Should not call `set` on the empty dictionary.")},(0,n.shadow)(this,"empty",W)}static merge({xref:W,dictArray:d,mergeSubDicts:T=!1}){const o=new f(W),l=new Map;for(const F of d)if(F instanceof f)for(const[s,r]of Object.entries(F._map)){let u=l.get(s);if(u===void 0)u=[],l.set(s,u);else if(!T||!(r instanceof f))continue;u.push(r)}for(const[F,s]of l){if(s.length===1||!(s[0]instanceof f)){o._map[F]=s[0];continue}const r=new f(W);for(const u of s)for(const[C,g]of Object.entries(u._map))r._map[C]===void 0&&(r._map[C]=g);r.size>0&&(o._map[F]=r)}return l.clear(),o.size>0?o:f.empty}clone(){const W=new f(this.xref);for(const d of this.getKeys())W.set(d,this.getRaw(d));return W}}b.Dict=f;class x{constructor(W,d){this.num=W,this.gen=d}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(W){const d=c[W];if(d)return d;const T=/^(\d+)R(\d*)$/.exec(W);return!T||T[1]==="0"?null:c[W]=new x(parseInt(T[1]),T[2]?parseInt(T[2]):0)}static get(W,d){const T=d===0?`${W}R`:`${W}R${d}`;return c[T]||(c[T]=new x(W,d))}}b.Ref=x;class a{constructor(W=null){this._set=new Set(W==null?void 0:W._set)}has(W){return this._set.has(W.toString())}put(W){this._set.add(W.toString())}remove(W){this._set.delete(W.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}b.RefSet=a;class E{constructor(){this._map=new Map}get size(){return this._map.size}get(W){return this._map.get(W.toString())}has(W){return this._map.has(W.toString())}put(W,d){this._map.set(W.toString(),d)}putAlias(W,d){this._map.set(W.toString(),this.get(d))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}b.RefSetCache=E;function w(z,W){return z instanceof ee&&(W===void 0||z.name===W)}function O(z,W){return z instanceof N&&(W===void 0||z.cmd===W)}function M(z,W){return z instanceof f&&(W===void 0||w(z.get("Type"),W))}function B(z,W){return z.num===W.num&&z.gen===W.gen}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.BaseStream=void 0;var n=ce(2);class P{constructor(){this.constructor===P&&(0,n.unreachable)("Cannot initialize BaseStream.")}get length(){(0,n.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,n.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,n.shadow)(this,"isDataLoaded",!0)}getByte(){(0,n.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,n.unreachable)("Abstract method `getBytes` called")}peekByte(){const e=this.getByte();return e!==-1&&this.pos--,e}peekBytes(e){const t=this.getBytes(e);return this.pos-=t.length,t}getUint16(){const e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}getInt32(){const e=this.getByte(),t=this.getByte(),c=this.getByte(),Y=this.getByte();return(e<<24)+(t<<16)+(c<<8)+Y}getByteRange(e,t){(0,n.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,n.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,n.unreachable)("Abstract method `reset` called")}moveStart(){(0,n.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t,c=null){(0,n.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}b.BaseStream=P},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.NetworkPdfManager=b.LocalPdfManager=void 0;var n=ce(2),P=ce(7),D=ce(3),e=ce(9),t=ce(8);function c(I){if(I){const f=(0,n.createValidAbsoluteUrl)(I);if(f)return f.href;(0,n.warn)(`Invalid absolute docBaseUrl: "${I}".`)}return null}class Y{constructor(f){var x;this.constructor===Y&&(0,n.unreachable)("Cannot initialize BasePdfManager."),this._docBaseUrl=c(f.docBaseUrl),this._docId=f.docId,this._password=f.password,this.enableXfa=f.enableXfa,(x=f.evaluatorOptions).isOffscreenCanvasSupported&&(x.isOffscreenCanvasSupported=n.FeatureTest.isOffscreenCanvasSupported),this.evaluatorOptions=f.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}get catalog(){return this.pdfDocument.catalog}ensureDoc(f,x){return this.ensure(this.pdfDocument,f,x)}ensureXRef(f,x){return this.ensure(this.pdfDocument.xref,f,x)}ensureCatalog(f,x){return this.ensure(this.pdfDocument.catalog,f,x)}getPage(f){return this.pdfDocument.getPage(f)}fontFallback(f,x){return this.pdfDocument.fontFallback(f,x)}loadXfaFonts(f,x){return this.pdfDocument.loadXfaFonts(f,x)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(f){return this.pdfDocument.serializeXfaData(f)}cleanup(f=!1){return this.pdfDocument.cleanup(f)}ensure(f,x,a){return Ue(this,null,function*(){(0,n.unreachable)("Abstract method `ensure` called")})}requestRange(f,x){(0,n.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(f=!1){(0,n.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(f){(0,n.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(f){this._password=f}terminate(f){(0,n.unreachable)("Abstract method `terminate` called")}}class ee extends Y{constructor(f){super(f);const x=new t.Stream(f.source);this.pdfDocument=new e.PDFDocument(this,x),this._loadedStreamPromise=Promise.resolve(x)}ensure(f,x,a){return Ue(this,null,function*(){const E=f[x];return typeof E=="function"?E.apply(f,a):E})}requestRange(f,x){return Promise.resolve()}requestLoadedStream(f=!1){return this._loadedStreamPromise}terminate(f){}}b.LocalPdfManager=ee;class N extends Y{constructor(f){super(f),this.streamManager=new P.ChunkedStreamManager(f.source,{msgHandler:f.handler,length:f.length,disableAutoFetch:f.disableAutoFetch,rangeChunkSize:f.rangeChunkSize}),this.pdfDocument=new e.PDFDocument(this,this.streamManager.getStream())}ensure(f,x,a){return Ue(this,null,function*(){try{const E=f[x];return typeof E=="function"?E.apply(f,a):E}catch(E){if(!(E instanceof D.MissingDataException))throw E;return yield this.requestRange(E.begin,E.end),this.ensure(f,x,a)}})}requestRange(f,x){return this.streamManager.requestRange(f,x)}requestLoadedStream(f=!1){return this.streamManager.requestAllChunks(f)}sendProgressiveData(f){this.streamManager.onReceiveData({chunk:f})}terminate(f){this.streamManager.abort(f)}}b.NetworkPdfManager=N},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ChunkedStreamManager=b.ChunkedStream=void 0;var n=ce(3),P=ce(2),D=ce(8);class e extends D.Stream{constructor(Y,ee,N){super(new Uint8Array(Y),0,Y,null),this.chunkSize=ee,this._loadedChunks=new Set,this.numChunks=Math.ceil(Y/ee),this.manager=N,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const Y=[];for(let ee=0,N=this.numChunks;ee<N;++ee)this._loadedChunks.has(ee)||Y.push(ee);return Y}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(Y,ee){const N=this.chunkSize;if(Y%N!==0)throw new Error(`Bad begin offset: ${Y}`);const I=Y+ee.byteLength;if(I%N!==0&&I!==this.bytes.length)throw new Error(`Bad end offset: ${I}`);this.bytes.set(new Uint8Array(ee),Y);const f=Math.floor(Y/N),x=Math.floor((I-1)/N)+1;for(let a=f;a<x;++a)this._loadedChunks.add(a)}onReceiveProgressiveData(Y){let ee=this.progressiveDataLength;const N=Math.floor(ee/this.chunkSize);this.bytes.set(new Uint8Array(Y),ee),ee+=Y.byteLength,this.progressiveDataLength=ee;const I=ee>=this.end?this.numChunks:Math.floor(ee/this.chunkSize);for(let f=N;f<I;++f)this._loadedChunks.add(f)}ensureByte(Y){if(Y<this.progressiveDataLength)return;const ee=Math.floor(Y/this.chunkSize);if(!(ee>this.numChunks)&&ee!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(ee))throw new n.MissingDataException(Y,Y+1);this.lastSuccessfulEnsureByteChunk=ee}}ensureRange(Y,ee){if(Y>=ee||ee<=this.progressiveDataLength)return;const N=Math.floor(Y/this.chunkSize);if(N>this.numChunks)return;const I=Math.min(Math.floor((ee-1)/this.chunkSize)+1,this.numChunks);for(let f=N;f<I;++f)if(!this._loadedChunks.has(f))throw new n.MissingDataException(Y,ee)}nextEmptyChunk(Y){const ee=this.numChunks;for(let N=0;N<ee;++N){const I=(Y+N)%ee;if(!this._loadedChunks.has(I))return I}return null}hasChunk(Y){return this._loadedChunks.has(Y)}getByte(){const Y=this.pos;return Y>=this.end?-1:(Y>=this.progressiveDataLength&&this.ensureByte(Y),this.bytes[this.pos++])}getBytes(Y){const ee=this.bytes,N=this.pos,I=this.end;if(!Y)return I>this.progressiveDataLength&&this.ensureRange(N,I),ee.subarray(N,I);let f=N+Y;return f>I&&(f=I),f>this.progressiveDataLength&&this.ensureRange(N,f),this.pos=f,ee.subarray(N,f)}getByteRange(Y,ee){return Y<0&&(Y=0),ee>this.end&&(ee=this.end),ee>this.progressiveDataLength&&this.ensureRange(Y,ee),this.bytes.subarray(Y,ee)}makeSubStream(Y,ee,N=null){ee?Y+ee>this.progressiveDataLength&&this.ensureRange(Y,Y+ee):Y>=this.progressiveDataLength&&this.ensureByte(Y);function I(){}I.prototype=Object.create(this),I.prototype.getMissingChunks=function(){const x=this.chunkSize,a=Math.floor(this.start/x),E=Math.floor((this.end-1)/x)+1,w=[];for(let O=a;O<E;++O)this._loadedChunks.has(O)||w.push(O);return w},Object.defineProperty(I.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0},configurable:!0});const f=new I;return f.pos=f.start=Y,f.end=Y+ee||this.end,f.dict=N,f}getBaseStreams(){return[this]}}b.ChunkedStream=e;class t{constructor(Y,ee){this.length=ee.length,this.chunkSize=ee.rangeChunkSize,this.stream=new e(this.length,this.chunkSize,this),this.pdfNetworkStream=Y,this.disableAutoFetch=ee.disableAutoFetch,this.msgHandler=ee.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=new P.PromiseCapability}sendRequest(Y,ee){const N=this.pdfNetworkStream.getRangeReader(Y,ee);N.isStreamingSupported||(N.onProgress=this.onProgress.bind(this));let I=[],f=0;return new Promise((x,a)=>{const E=({value:w,done:O})=>{try{if(O){const M=(0,n.arrayBuffersToBytes)(I);I=null,x(M);return}f+=w.byteLength,N.isStreamingSupported&&this.onProgress({loaded:f}),I.push(w),N.read().then(E,a)}catch(M){a(M)}};N.read().then(E,a)}).then(x=>{this.aborted||this.onReceiveData({chunk:x,begin:Y})})}requestAllChunks(Y=!1){if(!Y){const ee=this.stream.getMissingChunks();this._requestChunks(ee)}return this._loadedStreamCapability.promise}_requestChunks(Y){const ee=this.currRequestId++,N=new Set;this._chunksNeededByRequest.set(ee,N);for(const x of Y)this.stream.hasChunk(x)||N.add(x);if(N.size===0)return Promise.resolve();const I=new P.PromiseCapability;this._promisesByRequest.set(ee,I);const f=[];for(const x of N){let a=this._requestsByChunk.get(x);a||(a=[],this._requestsByChunk.set(x,a),f.push(x)),a.push(ee)}if(f.length>0){const x=this.groupChunks(f);for(const a of x){const E=a.beginChunk*this.chunkSize,w=Math.min(a.endChunk*this.chunkSize,this.length);this.sendRequest(E,w).catch(I.reject)}}return I.promise.catch(x=>{if(!this.aborted)throw x})}getStream(){return this.stream}requestRange(Y,ee){ee=Math.min(ee,this.length);const N=this.getBeginChunk(Y),I=this.getEndChunk(ee),f=[];for(let x=N;x<I;++x)f.push(x);return this._requestChunks(f)}requestRanges(Y=[]){const ee=[];for(const N of Y){const I=this.getBeginChunk(N.begin),f=this.getEndChunk(N.end);for(let x=I;x<f;++x)ee.includes(x)||ee.push(x)}return ee.sort(function(N,I){return N-I}),this._requestChunks(ee)}groupChunks(Y){const ee=[];let N=-1,I=-1;for(let f=0,x=Y.length;f<x;++f){const a=Y[f];N<0&&(N=a),I>=0&&I+1!==a&&(ee.push({beginChunk:N,endChunk:I+1}),N=a),f+1===Y.length&&ee.push({beginChunk:N,endChunk:a+1}),I=a}return ee}onProgress(Y){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+Y.loaded,total:this.length})}onReceiveData(Y){const ee=Y.chunk,N=Y.begin===void 0,I=N?this.progressiveDataLength:Y.begin,f=I+ee.byteLength,x=Math.floor(I/this.chunkSize),a=f<this.length?Math.floor(f/this.chunkSize):Math.ceil(f/this.chunkSize);N?(this.stream.onReceiveProgressiveData(ee),this.progressiveDataLength=f):this.stream.onReceiveData(I,ee),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);const E=[];for(let w=x;w<a;++w){const O=this._requestsByChunk.get(w);if(!!O){this._requestsByChunk.delete(w);for(const M of O){const B=this._chunksNeededByRequest.get(M);B.has(w)&&B.delete(w),!(B.size>0)&&E.push(M)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let w;if(this.stream.numChunksLoaded===1){const O=this.stream.numChunks-1;this.stream.hasChunk(O)||(w=O)}else w=this.stream.nextEmptyChunk(a);Number.isInteger(w)&&this._requestChunks([w])}for(const w of E){const O=this._promisesByRequest.get(w);this._promisesByRequest.delete(w),O.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(Y){this._loadedStreamCapability.reject(Y)}getBeginChunk(Y){return Math.floor(Y/this.chunkSize)}getEndChunk(Y){return Math.floor((Y-1)/this.chunkSize)+1}abort(Y){var ee;this.aborted=!0,(ee=this.pdfNetworkStream)==null||ee.cancelAllRequests(Y);for(const N of this._promisesByRequest.values())N.reject(Y)}}b.ChunkedStreamManager=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.StringStream=b.Stream=b.NullStream=void 0;var n=ce(5),P=ce(2);class D extends n.BaseStream{constructor(Y,ee,N,I){super(),this.bytes=Y instanceof Uint8Array?Y:new Uint8Array(Y),this.start=ee||0,this.pos=this.start,this.end=ee+N||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(Y){const ee=this.bytes,N=this.pos,I=this.end;if(!Y)return ee.subarray(N,I);let f=N+Y;return f>I&&(f=I),this.pos=f,ee.subarray(N,f)}getByteRange(Y,ee){return Y<0&&(Y=0),ee>this.end&&(ee=this.end),this.bytes.subarray(Y,ee)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(Y,ee,N=null){return new D(this.bytes.buffer,Y,ee,N)}}b.Stream=D;class e extends D{constructor(Y){super((0,P.stringToBytes)(Y))}}b.StringStream=e;class t extends D{constructor(){super(new Uint8Array(0))}}b.NullStream=t},(Re,b,ce)=>{var p,Un,$,_n;Object.defineProperty(b,"__esModule",{value:!0}),b.Page=b.PDFDocument=void 0;var n=ce(2),P=ce(10),D=ce(3),e=ce(4),t=ce(51),c=ce(5),Y=ce(74),ee=ce(66),N=ce(68),I=ce(102),f=ce(16),x=ce(8),a=ce(76),E=ce(64),w=ce(13),O=ce(18),M=ce(72),B=ce(73),z=ce(77),W=ce(103);const d=1,T=[0,0,612,792];class o{constructor({pdfManager:m,xref:h,pageIndex:A,pageDict:j,ref:H,globalIdFactory:J,fontCache:oe,builtInCMapCache:q,standardFontDataCache:re,globalImageCache:Z,systemFontCache:K,nonBlendModesSet:S,xfaFactory:k}){kt(this,p);this.pdfManager=m,this.pageIndex=A,this.pageDict=j,this.xref=h,this.ref=H,this.fontCache=oe,this.builtInCMapCache=q,this.standardFontDataCache=re,this.globalImageCache=Z,this.systemFontCache=K,this.nonBlendModesSet=S,this.evaluatorOptions=m.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=k;const _={obj:0};this._localIdFactory=class extends J{static createObjId(){return`p${A}_${++_.obj}`}static getPageObjId(){return`p${H.toString()}`}}}_getInheritableProperty(m,h=!1){const A=(0,D.getInheritableProperty)({dict:this.pageDict,key:m,getArray:h,stopWhenFound:!1});return Array.isArray(A)?A.length===1||!(A[0]instanceof e.Dict)?A[0]:e.Dict.merge({xref:this.xref,dictArray:A}):A}get content(){return this.pageDict.getArray("Contents")}get resources(){const m=this._getInheritableProperty("Resources");return(0,n.shadow)(this,"resources",m instanceof e.Dict?m:e.Dict.empty)}_getBoundingBox(m){if(this.xfaData)return this.xfaData.bbox;let h=this._getInheritableProperty(m,!0);if(Array.isArray(h)&&h.length===4){if(h=n.Util.normalizeRect(h),h[2]-h[0]>0&&h[3]-h[1]>0)return h;(0,n.warn)(`Empty, or invalid, /${m} entry.`)}return null}get mediaBox(){return(0,n.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||T)}get cropBox(){return(0,n.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let m=this.pageDict.get("UserUnit");return(typeof m!="number"||m<=0)&&(m=d),(0,n.shadow)(this,"userUnit",m)}get view(){const{cropBox:m,mediaBox:h}=this;if(m!==h&&!(0,n.isArrayEqual)(m,h)){const A=n.Util.intersect(m,h);if(A&&A[2]-A[0]>0&&A[3]-A[1]>0)return(0,n.shadow)(this,"view",A);(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.shadow)(this,"view",h)}get rotate(){let m=this._getInheritableProperty("Rotate")||0;return m%90!==0?m=0:m>=360?m%=360:m<0&&(m=(m%360+360)%360),(0,n.shadow)(this,"rotate",m)}_onSubStreamError(m,h){if(this.evaluatorOptions.ignoreErrors){(0,n.warn)(`getContentStream - ignoring sub-stream (${h}): "${m}".`);return}throw m}getContentStream(){return this.pdfManager.ensure(this,"content").then(m=>m instanceof c.BaseStream?m:Array.isArray(m)?new O.StreamsSequenceStream(m,this._onSubStreamError.bind(this)):new x.NullStream)}get xfaData(){return(0,n.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}saveNewAnnotations(m,h,A,j){return Ue(this,null,function*(){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const H=new w.PartialEvaluator({xref:this.xref,handler:m,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),J=new e.RefSet,oe=new e.RefSet;st(this,p,Un).call(this,A,J,oe);const q=this.pageDict,re=this.annotations.filter(_=>!(_ instanceof e.Ref&&J.has(_))),Z=yield P.AnnotationFactory.saveNewAnnotations(H,h,A,j);for(const{ref:_}of Z.annotations)_ instanceof e.Ref&&!oe.has(_)&&re.push(_);const K=q.get("Annots");q.set("Annots",re);const S=[];yield(0,B.writeObject)(this.ref,q,S,this.xref),K&&q.set("Annots",K);const k=Z.dependencies;return k.push({ref:this.ref,data:S.join("")},...Z.annotations),k})}save(m,h,A){const j=new w.PartialEvaluator({xref:this.xref,handler:m,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then(function(H){const J=[];for(const oe of H)!oe.mustBePrinted(A)||J.push(oe.save(j,h,A).catch(function(q){return(0,n.warn)(`save - ignoring annotation data during "${h.name}" task: "${q}".`),null}));return Promise.all(J).then(function(oe){return oe.filter(q=>!!q)})})}loadResources(m){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new a.ObjectLoader(this.resources,m,this.xref).load())}getOperatorList({handler:m,sink:h,task:A,intent:j,cacheKey:H,annotationStorage:J=null}){const oe=this.getContentStream(),q=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),re=new w.PartialEvaluator({xref:this.xref,handler:m,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),Z=this.xfaFactory?null:(0,D.getNewAnnotationsMap)(J);let K=null,S=Promise.resolve(null);if(Z){const G=Z.get(this.pageIndex);if(G){const Q=this.pdfManager.ensureDoc("annotationGlobals");let ie;const ae=new Set;for(const{bitmapId:ne,bitmap:V}of G)ne&&!V&&!ae.has(ne)&&ae.add(ne);const{isOffscreenCanvasSupported:U}=this.evaluatorOptions;if(ae.size>0){const ne=G.slice();for(const[V,L]of J)!V.startsWith(n.AnnotationEditorPrefix)||L.bitmap&&ae.has(L.bitmapId)&&ne.push(L);ie=P.AnnotationFactory.generateImages(ne,this.xref,U)}else ie=P.AnnotationFactory.generateImages(G,this.xref,U);K=new e.RefSet,st(this,p,Un).call(this,G,K,null),S=Q.then(ne=>ne?P.AnnotationFactory.printNewAnnotations(ne,re,A,G,ie):null)}}const _=Promise.all([oe,q]).then(([G])=>{const Q=new E.OperatorList(j,h);return m.send("StartRenderPage",{transparency:re.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:H}),re.getOperatorList({stream:G,task:A,resources:this.resources,operatorList:Q}).then(function(){return Q})});return Promise.all([_,this._parsedAnnotations,S]).then(function([G,Q,ie]){if(ie){Q=Q.filter(te=>!(te.ref&&K.has(te.ref)));for(let te=0,se=ie.length;te<se;te++){const le=ie[te];if(le.refToReplace){const ue=Q.findIndex(fe=>fe.ref&&(0,e.isRefsEqual)(fe.ref,le.refToReplace));ue>=0&&(Q.splice(ue,1,le),ie.splice(te--,1),se--)}}Q=Q.concat(ie)}if(Q.length===0||j&n.RenderingIntentFlag.ANNOTATIONS_DISABLE)return G.flush(!0),{length:G.totalLength};const ae=!!(j&n.RenderingIntentFlag.ANNOTATIONS_FORMS),U=!!(j&n.RenderingIntentFlag.ANY),ne=!!(j&n.RenderingIntentFlag.DISPLAY),V=!!(j&n.RenderingIntentFlag.PRINT),L=[];for(const te of Q)(U||ne&&te.mustBeViewed(J,ae)||V&&te.mustBePrinted(J))&&L.push(te.getOperatorList(re,A,j,ae,J).catch(function(se){return(0,n.warn)(`getOperatorList - ignoring annotation data during "${A.name}" task: "${se}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));return Promise.all(L).then(function(te){let se=!1,le=!1;for(const{opList:ue,separateForm:fe,separateCanvas:ge}of te)G.addOpList(ue),se||(se=fe),le||(le=ge);return G.flush(!0,{form:se,canvas:le}),{length:G.totalLength}})})}extractTextContent({handler:m,task:h,includeMarkedContent:A,disableNormalization:j,sink:H}){const J=this.getContentStream(),oe=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([J,oe]).then(([re])=>new w.PartialEvaluator({xref:this.xref,handler:m,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}).getTextContent({stream:re,task:h,resources:this.resources,includeMarkedContent:A,disableNormalization:j,sink:H,viewBox:this.view}))}getStructTree(){return Ue(this,null,function*(){const m=yield this.pdfManager.ensureCatalog("structTreeRoot");return m?(yield this._parsedAnnotations,(yield this.pdfManager.ensure(this,"_parseStructTree",[m])).serializable):null})}_parseStructTree(m){const h=new M.StructTreePage(m,this.pageDict);return h.parse(this.ref),h}getAnnotationsData(m,h,A){return Ue(this,null,function*(){const j=yield this._parsedAnnotations;if(j.length===0)return j;const H=[],J=[];let oe;const q=!!(A&n.RenderingIntentFlag.ANY),re=!!(A&n.RenderingIntentFlag.DISPLAY),Z=!!(A&n.RenderingIntentFlag.PRINT);for(const K of j){const S=q||re&&K.viewable;(S||Z&&K.printable)&&H.push(K.data),K.hasTextContent&&S&&(oe||(oe=new w.PartialEvaluator({xref:this.xref,handler:m,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})),J.push(K.extractTextContent(oe,h,[-1/0,-1/0,1/0,1/0]).catch(function(k){(0,n.warn)(`getAnnotationsData - ignoring textContent during "${h.name}" task: "${k}".`)})))}return yield Promise.all(J),H})}get annotations(){const m=this._getInheritableProperty("Annots");return(0,n.shadow)(this,"annotations",Array.isArray(m)?m:[])}get _parsedAnnotations(){const m=this.pdfManager.ensure(this,"annotations").then(h=>Ue(this,null,function*(){if(h.length===0)return h;const A=yield this.pdfManager.ensureDoc("annotationGlobals");if(!A)return[];const j=[];for(const oe of h)j.push(P.AnnotationFactory.create(this.xref,oe,A,this._localIdFactory,!1,this.ref).catch(function(q){return(0,n.warn)(`_parsedAnnotations: "${q}".`),null}));const H=[];let J;for(const oe of yield Promise.all(j))if(!!oe){if(oe instanceof P.PopupAnnotation){(J||(J=[])).push(oe);continue}H.push(oe)}return J&&H.push(...J),H}));return(0,n.shadow)(this,"_parsedAnnotations",m)}get jsActions(){const m=(0,D.collectActions)(this.xref,this.pageDict,n.PageActionEventType);return(0,n.shadow)(this,"jsActions",m)}}p=new WeakSet,Un=function(m,h,A){for(const j of m)if(j.id){const H=e.Ref.fromString(j.id);if(!H){(0,n.warn)(`A non-linked annotation cannot be modified: ${j.id}`);continue}if(j.deleted){h.put(H);continue}A==null||A.put(H),j.ref=H,delete j.id}},b.Page=o;const l=new Uint8Array([37,80,68,70,45]),F=new Uint8Array([115,116,97,114,116,120,114,101,102]),s=new Uint8Array([101,110,100,111,98,106]),r=1024,u="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";function C(v,m,h=1024,A=!1){const j=m.length,H=v.peekBytes(h),J=H.length-j;if(J<=0)return!1;if(A){const oe=j-1;let q=H.length-1;for(;q>=oe;){let re=0;for(;re<j&&H[q-re]===m[oe-re];)re++;if(re>=j)return v.pos+=q-oe,!0;q--}}else{let oe=0;for(;oe<=J;){let q=0;for(;q<j&&H[oe+q]===m[q];)q++;if(q>=j)return v.pos+=oe,!0;oe++}}return!1}class g{constructor(m,h){kt(this,$);if(h.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=m,this.stream=h,this.xref=new W.XRef(h,m),this._pagePromises=new Map,this._version=null;const A={font:0};this._globalIdFactory=class{static getDocId(){return`g_${m.docId}`}static createFontId(){return`f${++A.font}`}static createObjId(){(0,n.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,n.unreachable)("Abstract method `getPageObjId` called.")}}}parse(m){this.xref.parse(m),this.catalog=new ee.Catalog(this.pdfManager,this.xref)}get linearization(){let m=null;try{m=f.Linearization.create(this.stream)}catch(h){if(h instanceof D.MissingDataException)throw h;(0,n.info)(h)}return(0,n.shadow)(this,"linearization",m)}get startXRef(){const m=this.stream;let h=0;if(this.linearization)m.reset(),C(m,s)&&(h=m.pos+6-m.start);else{const j=F.length;let H=!1,J=m.end;for(;!H&&J>0;)J-=1024-j,J<0&&(J=0),m.pos=J,H=C(m,F,1024,!0);if(H){m.skip(9);let oe;do oe=m.getByte();while((0,D.isWhiteSpace)(oe));let q="";for(;oe>=32&&oe<=57;)q+=String.fromCharCode(oe),oe=m.getByte();h=parseInt(q,10),isNaN(h)&&(h=0)}}return(0,n.shadow)(this,"startXRef",h)}checkHeader(){const m=this.stream;if(m.reset(),!C(m,l))return;m.moveStart(),m.skip(l.length);let h="",A;for(;(A=m.getByte())>32&&h.length<7;)h+=String.fromCharCode(A);D.PDF_VERSION_REGEXP.test(h)?this._version=h:(0,n.warn)(`Invalid PDF header version: ${h}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let m=0;return this.catalog.hasActualNumPages?m=this.catalog.numPages:this.xfaFactory?m=this.xfaFactory.getNumPages():this.linearization?m=this.linearization.numPages:m=this.catalog.numPages,(0,n.shadow)(this,"numPages",m)}_hasOnlyDocumentSignatures(m,h=0){return Array.isArray(m)?m.every(j=>{if(j=this.xref.fetchIfRef(j),!(j instanceof e.Dict))return!1;if(j.has("Kids"))return++h>10?((0,n.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(j.get("Kids"),h);const H=(0,e.isName)(j.get("FT"),"Sig"),J=j.get("Rect"),oe=Array.isArray(J)&&J.every(q=>q===0);return H&&oe}):!1}get _xfaStreams(){const m=this.catalog.acroForm;if(!m)return null;const h=m.get("XFA"),A={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(h instanceof c.BaseStream&&!h.isEmpty)return A["xdp:xdp"]=h,A;if(!Array.isArray(h)||h.length===0)return null;for(let j=0,H=h.length;j<H;j+=2){let J;if(j===0?J="xdp:xdp":j===H-2?J="/xdp:xdp":J=h[j],!A.hasOwnProperty(J))continue;const oe=this.xref.fetchIfRef(h[j+1]);!(oe instanceof c.BaseStream)||oe.isEmpty||(A[J]=oe)}return A}get xfaDatasets(){const m=this._xfaStreams;if(!m)return(0,n.shadow)(this,"xfaDatasets",null);for(const h of["datasets","xdp:xdp"]){const A=m[h];if(!!A)try{const j=(0,n.stringToUTF8String)(A.getString()),H={[h]:j};return(0,n.shadow)(this,"xfaDatasets",new I.DatasetReader(H))}catch(j){(0,n.warn)("XFA - Invalid utf-8 string.");break}}return(0,n.shadow)(this,"xfaDatasets",null)}get xfaData(){const m=this._xfaStreams;if(!m)return null;const h=Object.create(null);for(const[A,j]of Object.entries(m))if(!!j)try{h[A]=(0,n.stringToUTF8String)(j.getString())}catch(H){return(0,n.warn)("XFA - Invalid utf-8 string."),null}return h}get xfaFactory(){let m;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(m=this.xfaData),(0,n.shadow)(this,"xfaFactory",m?new z.XFAFactory(m):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():!1}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}loadXfaImages(){return Ue(this,null,function*(){const m=yield this.pdfManager.ensureCatalog("xfaImages");if(!m)return;const h=m.getKeys();yield new a.ObjectLoader(m,h,this.xref).load();const j=new Map;for(const H of h){const J=m.get(H);J instanceof c.BaseStream&&j.set(H,J.getBytes())}this.xfaFactory.setImages(j)})}loadXfaFonts(m,h){return Ue(this,null,function*(){const A=yield this.pdfManager.ensureCatalog("acroForm");if(!A)return;const j=yield A.getAsync("DR");if(!(j instanceof e.Dict))return;yield new a.ObjectLoader(j,["Font"],this.xref).load();const J=j.get("Font");if(!(J instanceof e.Dict))return;const oe=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions);oe.useSystemFonts=!1;const q=new w.PartialEvaluator({xref:this.xref,handler:m,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:oe}),re=new E.OperatorList,Z=[],K={get font(){return Z.at(-1)},set font(Q){Z.push(Q)},clone(){return this}},S=new Map;J.forEach((Q,ie)=>{S.set(Q,ie)});const k=[];for(const[Q,ie]of S){const ae=ie.get("FontDescriptor");if(!(ae instanceof e.Dict))continue;let U=ae.get("FontFamily");U=U.replaceAll(/[ ]+(\d)/g,"$1");const ne=ae.get("FontWeight"),V=-ae.get("ItalicAngle"),L={fontFamily:U,fontWeight:ne,italicAngle:V};!(0,D.validateCSSFont)(L)||k.push(q.handleSetFont(j,[e.Name.get(Q),1],null,re,h,K,null,L).catch(function(te){return(0,n.warn)(`loadXfaFonts: "${te}".`),null}))}yield Promise.all(k);const _=this.xfaFactory.setFonts(Z);if(!_)return;oe.ignoreErrors=!0,k.length=0,Z.length=0;const G=new Set;for(const Q of _)(0,t.getXfaFontName)(`${Q}-Regular`)||G.add(Q);G.size&&_.push("PdfJS-Fallback");for(const Q of _)if(!G.has(Q))for(const ie 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}]){const ae=`${Q}-${ie.name}`,U=(0,t.getXfaFontDict)(ae);k.push(q.handleSetFont(j,[e.Name.get(ae),1],null,re,h,K,U,{fontFamily:Q,fontWeight:ie.fontWeight,italicAngle:ie.italicAngle}).catch(function(ne){return(0,n.warn)(`loadXfaFonts: "${ne}".`),null}))}yield Promise.all(k),this.xfaFactory.appendFonts(Z,G)})}serializeXfaData(m){return Ue(this,null,function*(){return this.xfaFactory?this.xfaFactory.serializeData(m):null})}get version(){return this.catalog.version||this._version}get formInfo(){const m={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},h=this.catalog.acroForm;if(!h)return(0,n.shadow)(this,"formInfo",m);try{const A=h.get("Fields"),j=Array.isArray(A)&&A.length>0;m.hasFields=j;const H=h.get("XFA");m.hasXfa=Array.isArray(H)&&H.length>0||H instanceof c.BaseStream&&!H.isEmpty;const oe=!!(h.get("SigFlags")&1),q=oe&&this._hasOnlyDocumentSignatures(A);m.hasAcroForm=j&&!q,m.hasSignatures=oe}catch(A){if(A instanceof D.MissingDataException)throw A;(0,n.warn)(`Cannot fetch form information: "${A}".`)}return(0,n.shadow)(this,"formInfo",m)}get documentInfo(){const m={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let h;try{h=this.xref.trailer.get("Info")}catch(A){if(A instanceof D.MissingDataException)throw A;(0,n.info)("The document information dictionary is invalid.")}if(!(h instanceof e.Dict))return(0,n.shadow)(this,"documentInfo",m);for(const A of h.getKeys()){const j=h.get(A);switch(A){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof j=="string"){m[A]=(0,n.stringToPDFString)(j);continue}break;case"Trapped":if(j instanceof e.Name){m[A]=j;continue}break;default:let H;switch(typeof j){case"string":H=(0,n.stringToPDFString)(j);break;case"number":case"boolean":H=j;break;default:j instanceof e.Name&&(H=j);break}if(H===void 0){(0,n.warn)(`Bad value, for custom key "${A}", in Info: ${j}.`);continue}m.Custom||(m.Custom=Object.create(null)),m.Custom[A]=H;continue}(0,n.warn)(`Bad value, for key "${A}", in Info: ${j}.`)}return(0,n.shadow)(this,"documentInfo",m)}get fingerprints(){function m(J){return typeof J=="string"&&J.length>0&&J!==u}function h(J){const oe=[];for(const q of J){const re=q.toString(16);oe.push(re.padStart(2,"0"))}return oe.join("")}const A=this.xref.trailer.get("ID");let j,H;return Array.isArray(A)&&m(A[0])?(j=(0,n.stringToBytes)(A[0]),A[1]!==A[0]&&m(A[1])&&(H=(0,n.stringToBytes)(A[1]))):j=(0,Y.calculateMD5)(this.stream.getByteRange(0,r),0,r),(0,n.shadow)(this,"fingerprints",[h(j),H?h(H):null])}_getLinearizationPage(m){return Ue(this,null,function*(){const{catalog:h,linearization:A,xref:j}=this,H=e.Ref.get(A.objectNumberFirst,0);try{const J=yield j.fetchAsync(H);if(J instanceof e.Dict){let oe=J.getRaw("Type");if(oe instanceof e.Ref&&(oe=yield j.fetchAsync(oe)),(0,e.isName)(oe,"Page")||!J.has("Type")&&!J.has("Kids"))return h.pageKidsCountCache.has(H)||h.pageKidsCountCache.put(H,1),h.pageIndexCache.has(H)||h.pageIndexCache.put(H,0),[J,H]}throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(J){return(0,n.warn)(`_getLinearizationPage: "${J.message}".`),h.getPageDict(m)}})}getPage(m){const h=this._pagePromises.get(m);if(h)return h;const{catalog:A,linearization:j,xfaFactory:H}=this;let J;return H?J=Promise.resolve([e.Dict.empty,null]):(j==null?void 0:j.pageFirst)===m?J=this._getLinearizationPage(m):J=A.getPageDict(m),J=J.then(([oe,q])=>new o({pdfManager:this.pdfManager,xref:this.xref,pageIndex:m,pageDict:oe,ref:q,globalIdFactory:this._globalIdFactory,fontCache:A.fontCache,builtInCMapCache:A.builtInCMapCache,standardFontDataCache:A.standardFontDataCache,globalImageCache:A.globalImageCache,systemFontCache:A.systemFontCache,nonBlendModesSet:A.nonBlendModesSet,xfaFactory:H})),this._pagePromises.set(m,J),J}checkFirstPage(m=!1){return Ue(this,null,function*(){if(!m)try{yield this.getPage(0)}catch(h){if(h instanceof D.XRefEntryException)throw this._pagePromises.delete(0),yield this.cleanup(),new D.XRefParseException}})}checkLastPage(m=!1){return Ue(this,null,function*(){const{catalog:h,pdfManager:A}=this;h.setActualNumPages();let j;try{if(yield Promise.all([A.ensureDoc("xfaFactory"),A.ensureDoc("linearization"),A.ensureCatalog("numPages")]),this.xfaFactory)return;if(this.linearization?j=this.linearization.numPages:j=h.numPages,Number.isInteger(j)){if(j<=1)return}else throw new n.FormatError("Page count is not an integer.");yield this.getPage(j-1)}catch(H){if(this._pagePromises.delete(j-1),yield this.cleanup(),H instanceof D.XRefEntryException&&!m)throw new D.XRefParseException;(0,n.warn)(`checkLastPage - invalid /Pages tree /Count: ${j}.`);let J;try{J=yield h.getAllPageDicts(m)}catch(oe){if(oe instanceof D.XRefEntryException&&!m)throw new D.XRefParseException;h.setActualNumPages(1);return}for(const[oe,[q,re]]of J){let Z;q instanceof Error?(Z=Promise.reject(q),Z.catch(()=>{})):Z=Promise.resolve(new o({pdfManager:A,xref:this.xref,pageIndex:oe,pageDict:q,ref:re,globalIdFactory:this._globalIdFactory,fontCache:h.fontCache,builtInCMapCache:h.builtInCMapCache,standardFontDataCache:h.standardFontDataCache,globalImageCache:h.globalImageCache,systemFontCache:h.systemFontCache,nonBlendModesSet:h.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(oe,Z)}h.setActualNumPages(J.size)}})}fontFallback(m,h){return this.catalog.fontFallback(m,h)}cleanup(m=!1){return Ue(this,null,function*(){return this.catalog?this.catalog.cleanup(m):(0,N.clearGlobalCaches)()})}get fieldObjects(){if(!this.formInfo.hasFields)return(0,n.shadow)(this,"fieldObjects",Promise.resolve(null));const m=this.pdfManager.ensureDoc("annotationGlobals").then(h=>Ue(this,null,function*(){if(!h)return null;const A=Object.create(null),j=new Map;for(const J of this.catalog.acroForm.get("Fields"))st(this,$,_n).call(this,"",J,j,h);const H=[];for(const[J,oe]of j)H.push(Promise.all(oe).then(q=>{q=q.filter(re=>!!re),q.length>0&&(A[J]=q)}));return yield Promise.all(H),A}));return(0,n.shadow)(this,"fieldObjects",m)}get hasJSActions(){const m=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,n.shadow)(this,"hasJSActions",m)}_parseHasJSActions(){return Ue(this,null,function*(){const[m,h]=yield Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return m?!0:h?Object.values(h).some(A=>A.some(j=>j.actions!==null)):!1})}get calculationOrderIds(){const m=this.catalog.acroForm;if(!(m!=null&&m.has("CO")))return(0,n.shadow)(this,"calculationOrderIds",null);const h=m.get("CO");if(!Array.isArray(h)||h.length===0)return(0,n.shadow)(this,"calculationOrderIds",null);const A=[];for(const j of h)j instanceof e.Ref&&A.push(j.toString());return A.length===0?(0,n.shadow)(this,"calculationOrderIds",null):(0,n.shadow)(this,"calculationOrderIds",A)}get annotationGlobals(){return(0,n.shadow)(this,"annotationGlobals",P.AnnotationFactory.createGlobals(this.pdfManager))}}$=new WeakSet,_n=function(m,h,A,j){const H=this.xref.fetchIfRef(h);if(H.has("T")){const J=(0,n.stringToPDFString)(H.get("T"));m=m===""?J:`${m}.${J}`}if(A.has(m)||A.set(m,[]),A.get(m).push(P.AnnotationFactory.create(this.xref,h,j,this._localIdFactory,!0,null).then(J=>J==null?void 0:J.getFieldObject()).catch(function(J){return(0,n.warn)(`#collectFieldObjects: "${J}".`),null})),H.has("Kids"))for(const J of H.get("Kids"))st(this,$,_n).call(this,m,J,A,j)},b.PDFDocument=g},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.PopupAnnotation=b.MarkupAnnotation=b.AnnotationFactory=b.AnnotationBorderStyle=b.Annotation=void 0,b.getQuadPoints=z;var n=ce(2),P=ce(3),D=ce(11),e=ce(4),t=ce(8),c=ce(5),Y=ce(60),ee=ce(66),N=ce(12),I=ce(69),f=ce(26),x=ce(76),a=ce(64),E=ce(73),w=ce(77);class O{static createGlobals(S){return Promise.all([S.ensureCatalog("acroForm"),S.ensureDoc("xfaDatasets"),S.ensureCatalog("structTreeRoot"),S.ensureCatalog("baseUrl"),S.ensureCatalog("attachments")]).then(([k,_,G,Q,ie])=>({pdfManager:S,acroForm:k instanceof e.Dict?k:e.Dict.empty,xfaDatasets:_,structTreeRoot:G,baseUrl:Q,attachments:ie}),k=>((0,n.warn)(`createGlobals: "${k}".`),null))}static create(S,k,_,G,Q,ie){return Ue(this,null,function*(){const ae=Q?yield this._getPageIndex(S,k,_.pdfManager):null;return _.pdfManager.ensure(this,"_create",[S,k,_,G,Q,ae,ie])})}static _create(S,k,_,G,Q=!1,ie=null,ae=null){const U=S.fetchIfRef(k);if(!(U instanceof e.Dict))return;const{acroForm:ne,pdfManager:V}=_,L=k instanceof e.Ref?k.toString():`annot_${G.createObjId()}`;let te=U.get("Subtype");te=te instanceof e.Name?te.name:null;const se={xref:S,ref:k,dict:U,subtype:te,id:L,annotationGlobals:_,collectFields:Q,needAppearances:!Q&&ne.get("NeedAppearances")===!0,pageIndex:ie,evaluatorOptions:V.evaluatorOptions,pageRef:ae};switch(te){case"Link":return new g(se);case"Text":return new C(se);case"Widget":let le=(0,P.getInheritableProperty)({dict:U,key:"FT"});switch(le=le instanceof e.Name?le.name:null,le){case"Tx":return new F(se);case"Btn":return new s(se);case"Ch":return new r(se);case"Sig":return new u(se)}return(0,n.warn)(`Unimplemented widget field type "${le}", falling back to base field type.`),new l(se);case"Popup":return new p(se);case"FreeText":return new X(se);case"Line":return new $(se);case"Square":return new y(se);case"Circle":return new v(se);case"PolyLine":return new m(se);case"Polygon":return new h(se);case"Caret":return new A(se);case"Ink":return new j(se);case"Highlight":return new H(se);case"Underline":return new J(se);case"Squiggly":return new oe(se);case"StrikeOut":return new q(se);case"Stamp":return new re(se);case"FileAttachment":return new Z(se);default:return Q||(te?(0,n.warn)(`Unimplemented annotation type "${te}", falling back to base annotation.`):(0,n.warn)("Annotation is missing the required /Subtype.")),new d(se)}}static _getPageIndex(S,k,_){return Ue(this,null,function*(){try{const G=yield S.fetchIfRefAsync(k);if(!(G instanceof e.Dict))return-1;const Q=G.getRaw("P");if(Q instanceof e.Ref)try{return yield _.ensureCatalog("getPageIndex",[Q])}catch(ae){(0,n.info)(`_getPageIndex -- not a valid page reference: "${ae}".`)}if(G.has("Kids"))return-1;const ie=yield _.ensureDoc("numPages");for(let ae=0;ae<ie;ae++){const U=yield _.getPage(ae),ne=yield _.ensure(U,"annotations");for(const V of ne)if(V instanceof e.Ref&&(0,e.isRefsEqual)(V,k))return ae}}catch(G){(0,n.warn)(`_getPageIndex: "${G}".`)}return-1})}static generateImages(S,k,_){if(!_)return(0,n.warn)("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;let G;for(const{bitmapId:Q,bitmap:ie}of S)!ie||(G||(G=new Map),G.set(Q,re.createImage(ie,k)));return G}static saveNewAnnotations(S,k,_,G){return Ue(this,null,function*(){const Q=S.xref;let ie;const ae=[],U=[],{isOffscreenCanvasSupported:ne}=S.options;for(const V of _)if(!V.deleted)switch(V.annotationType){case n.AnnotationEditorType.FREETEXT:if(!ie){const te=new e.Dict(Q);te.set("BaseFont",e.Name.get("Helvetica")),te.set("Type",e.Name.get("Font")),te.set("Subtype",e.Name.get("Type1")),te.set("Encoding",e.Name.get("WinAnsiEncoding"));const se=[];ie=Q.getNewTemporaryRef(),yield(0,E.writeObject)(ie,te,se,Q),ae.push({ref:ie,data:se.join("")})}U.push(X.createNewAnnotation(Q,V,ae,{evaluator:S,task:k,baseFontRef:ie}));break;case n.AnnotationEditorType.INK:U.push(j.createNewAnnotation(Q,V,ae));break;case n.AnnotationEditorType.STAMP:if(!ne)break;const L=yield G.get(V.bitmapId);if(L.imageStream){const{imageStream:te,smaskStream:se}=L,le=[];if(se){const fe=Q.getNewTemporaryRef();yield(0,E.writeObject)(fe,se,le,Q),ae.push({ref:fe,data:le.join("")}),te.dict.set("SMask",fe),le.length=0}const ue=L.imageRef=Q.getNewTemporaryRef();yield(0,E.writeObject)(ue,te,le,Q),ae.push({ref:ue,data:le.join("")}),L.imageStream=L.smaskStream=null}U.push(re.createNewAnnotation(Q,V,ae,{image:L}));break}return{annotations:yield Promise.all(U),dependencies:ae}})}static printNewAnnotations(S,k,_,G,Q){return Ue(this,null,function*(){if(!G)return null;const{options:ie,xref:ae}=k,U=[];for(const ne of G)if(!ne.deleted)switch(ne.annotationType){case n.AnnotationEditorType.FREETEXT:U.push(X.createNewPrintAnnotation(S,ae,ne,{evaluator:k,task:_,evaluatorOptions:ie}));break;case n.AnnotationEditorType.INK:U.push(j.createNewPrintAnnotation(S,ae,ne,{evaluatorOptions:ie}));break;case n.AnnotationEditorType.STAMP:if(!ie.isOffscreenCanvasSupported)break;const V=yield Q.get(ne.bitmapId);if(V.imageStream){const{imageStream:L,smaskStream:te}=V;te&&L.dict.set("SMask",te),V.imageRef=new f.JpegStream(L,L.length),V.imageStream=V.smaskStream=null}U.push(re.createNewPrintAnnotation(S,ae,ne,{image:V,evaluatorOptions:ie}));break}return Promise.all(U)})}}b.AnnotationFactory=O;function M(K,S=new Uint8ClampedArray(3)){if(!Array.isArray(K))return S;const k=S||new Uint8ClampedArray(3);switch(K.length){case 0:return null;case 1:return N.ColorSpace.singletons.gray.getRgbItem(K,0,k,0),k;case 3:return N.ColorSpace.singletons.rgb.getRgbItem(K,0,k,0),k;case 4:return N.ColorSpace.singletons.cmyk.getRgbItem(K,0,k,0),k;default:return S}}function B(K){return Array.from(K,S=>S/255)}function z(K,S){const k=K.getArray("QuadPoints");if(!Array.isArray(k)||k.length===0||k.length%8>0)return null;const _=[];for(let G=0,Q=k.length/8;G<Q;G++){let ie=1/0,ae=-1/0,U=1/0,ne=-1/0;for(let V=G*8,L=G*8+8;V<L;V+=2){const te=k[V],se=k[V+1];ie=Math.min(te,ie),ae=Math.max(te,ae),U=Math.min(se,U),ne=Math.max(se,ne)}if(S!==null&&(ie<S[0]||ae>S[2]||U<S[1]||ne>S[3]))return null;_.push([{x:ie,y:ne},{x:ae,y:ne},{x:ie,y:U},{x:ae,y:U}])}return _}function W(K,S,k){const[_,G,Q,ie]=n.Util.getAxialAlignedBoundingBox(S,k);if(_===Q||G===ie)return[1,0,0,1,K[0],K[1]];const ae=(K[2]-K[0])/(Q-_),U=(K[3]-K[1])/(ie-G);return[ae,0,0,U,K[0]-_*ae,K[1]-G*U]}class d{constructor(S){const{dict:k,xref:_,annotationGlobals:G}=S;this.setTitle(k.get("T")),this.setContents(k.get("Contents")),this.setModificationDate(k.get("M")),this.setFlags(k.get("F")),this.setRectangle(k.getArray("Rect")),this.setColor(k.getArray("C")),this.setBorderStyle(k),this.setAppearance(k),this.setOptionalContent(k);const Q=k.get("MK");this.setBorderAndBackgroundColors(Q),this.setRotation(Q,k),this.ref=S.ref instanceof e.Ref?S.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);const ie=!!(this.flags&n.AnnotationFlag.LOCKED),ae=!!(this.flags&n.AnnotationFlag.LOCKEDCONTENTS);if(G.structTreeRoot){let U=k.get("StructParent");U=Number.isInteger(U)&&U>=0?U:-1,G.structTreeRoot.addAnnotationIdToPage(S.pageRef,U)}if(this.data={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:S.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:S.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&n.AnnotationFlag.NOROTATE),noHTML:ie&&ae},S.collectFields){const U=k.get("Kids");if(Array.isArray(U)){const ne=[];for(const V of U)V instanceof e.Ref&&ne.push(V.toString());ne.length!==0&&(this.data.kidIds=ne)}this.data.actions=(0,P.collectActions)(_,k,n.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(k),this.data.pageIndex=S.pageIndex}this._isOffscreenCanvasSupported=S.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(S,k){return!!(S&k)}_isViewable(S){return!this._hasFlag(S,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(S,n.AnnotationFlag.NOVIEW)}_isPrintable(S){return this._hasFlag(S,n.AnnotationFlag.PRINT)&&!this._hasFlag(S,n.AnnotationFlag.HIDDEN)&&!this._hasFlag(S,n.AnnotationFlag.INVISIBLE)}mustBeViewed(S,k){var G;const _=(G=S==null?void 0:S.get(this.data.id))==null?void 0:G.noView;return _!==void 0?!_:this.viewable&&!this._hasFlag(this.flags,n.AnnotationFlag.HIDDEN)}mustBePrinted(S){var _;const k=(_=S==null?void 0:S.get(this.data.id))==null?void 0:_.noPrint;return k!==void 0?!k:this.printable}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(S){const k=typeof S=="string"?(0,n.stringToPDFString)(S):"",_=k&&(0,Y.bidi)(k).dir==="rtl"?"rtl":"ltr";return{str:k,dir:_}}setDefaultAppearance(S){const{dict:k,annotationGlobals:_}=S,G=(0,P.getInheritableProperty)({dict:k,key:"DA"})||_.acroForm.get("DA");this._defaultAppearance=typeof G=="string"?G:"",this.data.defaultAppearanceData=(0,D.parseDefaultAppearance)(this._defaultAppearance)}setTitle(S){this._title=this._parseStringHelper(S)}setContents(S){this._contents=this._parseStringHelper(S)}setModificationDate(S){this.modificationDate=typeof S=="string"?S:null}setFlags(S){this.flags=Number.isInteger(S)&&S>0?S:0}hasFlag(S){return this._hasFlag(this.flags,S)}setRectangle(S){this.rectangle=Array.isArray(S)&&S.length===4?n.Util.normalizeRect(S):[0,0,0,0]}setColor(S){this.color=M(S)}setLineEndings(S){if(this.lineEndings=["None","None"],Array.isArray(S)&&S.length===2)for(let k=0;k<2;k++){const _=S[k];if(_ instanceof e.Name)switch(_.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[k]=_.name;continue}(0,n.warn)(`Ignoring invalid lineEnding: ${_}`)}}setRotation(S,k){this.rotation=0;let _=S instanceof e.Dict?S.get("R")||0:k.get("Rotate")||0;Number.isInteger(_)&&_!==0&&(_%=360,_<0&&(_+=360),_%90===0&&(this.rotation=_))}setBorderAndBackgroundColors(S){S instanceof e.Dict?(this.borderColor=M(S.getArray("BC"),null),this.backgroundColor=M(S.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(S){if(this.borderStyle=new T,S instanceof e.Dict)if(S.has("BS")){const k=S.get("BS"),_=k.get("Type");(!_||(0,e.isName)(_,"Border"))&&(this.borderStyle.setWidth(k.get("W"),this.rectangle),this.borderStyle.setStyle(k.get("S")),this.borderStyle.setDashArray(k.getArray("D")))}else if(S.has("Border")){const k=S.getArray("Border");Array.isArray(k)&&k.length>=3&&(this.borderStyle.setHorizontalCornerRadius(k[0]),this.borderStyle.setVerticalCornerRadius(k[1]),this.borderStyle.setWidth(k[2],this.rectangle),k.length===4&&this.borderStyle.setDashArray(k[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(S){this.appearance=null;const k=S.get("AP");if(!(k instanceof e.Dict))return;const _=k.get("N");if(_ instanceof c.BaseStream){this.appearance=_;return}if(!(_ instanceof e.Dict))return;const G=S.get("AS");if(!(G instanceof e.Name)||!_.has(G.name))return;const Q=_.get(G.name);Q instanceof c.BaseStream&&(this.appearance=Q)}setOptionalContent(S){this.oc=null;const k=S.get("OC");k instanceof e.Name?(0,n.warn)("setOptionalContent: Support for /Name-entry is not implemented."):k instanceof e.Dict&&(this.oc=k)}loadResources(S,k){return k.dict.getAsync("Resources").then(_=>_?new x.ObjectLoader(_,S,_.xref).load().then(function(){return _}):void 0)}getOperatorList(S,k,_,G,Q){return Ue(this,null,function*(){const ie=this.data;let ae=this.appearance;const U=!!(this.data.hasOwnCanvas&&_&n.RenderingIntentFlag.DISPLAY);if(!ae){if(!U)return{opList:new a.OperatorList,separateForm:!1,separateCanvas:!1};ae=new t.StringStream(""),ae.dict=new e.Dict}const ne=ae.dict,V=yield this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],ae),L=ne.getArray("BBox")||[0,0,1,1],te=ne.getArray("Matrix")||[1,0,0,1,0,0],se=W(ie.rect,L,te),le=new a.OperatorList;let ue;return this.oc&&(ue=yield S.parseMarkedContentProps(this.oc,null)),ue!==void 0&&le.addOp(n.OPS.beginMarkedContentProps,["OC",ue]),le.addOp(n.OPS.beginAnnotation,[ie.id,ie.rect,se,te,U]),yield S.getOperatorList({stream:ae,task:k,resources:V,operatorList:le,fallbackFontDict:this._fallbackFontDict}),le.addOp(n.OPS.endAnnotation,[]),ue!==void 0&&le.addOp(n.OPS.endMarkedContent,[]),this.reset(),{opList:le,separateForm:!1,separateCanvas:U}})}save(S,k,_){return Ue(this,null,function*(){return null})}get hasTextContent(){return!1}extractTextContent(S,k,_){return Ue(this,null,function*(){if(!this.appearance)return;const G=yield this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),Q=[],ie=[];let ae=null;const U={desiredSize:Math.Infinity,ready:!0,enqueue(ne,V){for(const L of ne.items)L.str!==void 0&&(ae||(ae=L.transform.slice(-2)),ie.push(L.str),L.hasEOL&&(Q.push(ie.join("")),ie.length=0))}};if(yield S.getTextContent({stream:this.appearance,task:k,resources:G,includeMarkedContent:!0,sink:U,viewBox:_}),this.reset(),ie.length&&Q.push(ie.join("")),Q.length>1||Q[0]){const ne=this.appearance.dict,V=ne.getArray("BBox")||[0,0,1,1],L=ne.getArray("Matrix")||[1,0,0,1,0,0],te=this.data.rect,se=W(te,V,L);se[4]-=te[0],se[5]-=te[1],ae=n.Util.applyTransform(ae,se),ae=n.Util.applyTransform(ae,L),this.data.textPosition=ae,this.data.textContent=Q}})}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(const S of this._streams)S.reset()}_constructFieldName(S){if(!S.has("T")&&!S.has("Parent"))return(0,n.warn)("Unknown field name, falling back to empty field name."),"";if(!S.has("Parent"))return(0,n.stringToPDFString)(S.get("T"));const k=[];S.has("T")&&k.unshift((0,n.stringToPDFString)(S.get("T")));let _=S;const G=new e.RefSet;for(S.objId&&G.put(S.objId);_.has("Parent")&&(_=_.get("Parent"),!(!(_ instanceof e.Dict)||_.objId&&G.has(_.objId)));)_.objId&&G.put(_.objId),_.has("T")&&k.unshift((0,n.stringToPDFString)(_.get("T")));return k.join(".")}}b.Annotation=d;class T{constructor(){this.width=1,this.style=n.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(S,k=[0,0,0,0]){if(S instanceof e.Name){this.width=0;return}if(typeof S=="number"){if(S>0){const _=(k[2]-k[0])/2,G=(k[3]-k[1])/2;_>0&&G>0&&(S>_||S>G)&&((0,n.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${S}`),S=1)}this.width=S}}setStyle(S){if(S instanceof e.Name)switch(S.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(S,k=!1){if(Array.isArray(S)&&S.length>0){let _=!0,G=!0;for(const Q of S)if(+Q>=0)Q>0&&(G=!1);else{_=!1;break}_&&!G?(this.dashArray=S,k&&this.setStyle(e.Name.get("D"))):this.width=0}else S&&(this.width=0)}setHorizontalCornerRadius(S){Number.isInteger(S)&&(this.horizontalCornerRadius=S)}setVerticalCornerRadius(S){Number.isInteger(S)&&(this.verticalCornerRadius=S)}}b.AnnotationBorderStyle=T;class o extends d{constructor(S){super(S);const{dict:k}=S;if(k.has("IRT")){const G=k.getRaw("IRT");this.data.inReplyTo=G instanceof e.Ref?G.toString():null;const Q=k.get("RT");this.data.replyType=Q instanceof e.Name?Q.name:n.AnnotationReplyType.REPLY}let _=null;if(this.data.replyType===n.AnnotationReplyType.GROUP){const G=k.get("IRT");this.setTitle(G.get("T")),this.data.titleObj=this._title,this.setContents(G.get("Contents")),this.data.contentsObj=this._contents,G.has("CreationDate")?(this.setCreationDate(G.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,G.has("M")?(this.setModificationDate(G.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,_=G.getRaw("Popup"),G.has("C")?(this.setColor(G.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(k.get("CreationDate")),this.data.creationDate=this.creationDate,_=k.getRaw("Popup"),k.has("C")||(this.data.color=null);this.data.popupRef=_ instanceof e.Ref?_.toString():null,k.has("RC")&&(this.data.richText=w.XFAFactory.getRichTextAsHtml(k.get("RC")))}setCreationDate(S){this.creationDate=typeof S=="string"?S:null}_setDefaultAppearance({xref:S,extra:k,strokeColor:_,fillColor:G,blendMode:Q,strokeAlpha:ie,fillAlpha:ae,pointsCallback:U}){let ne=Number.MAX_VALUE,V=Number.MAX_VALUE,L=Number.MIN_VALUE,te=Number.MIN_VALUE;const se=["q"];k&&se.push(k),_&&se.push(`${_[0]} ${_[1]} ${_[2]} RG`),G&&se.push(`${G[0]} ${G[1]} ${G[2]} rg`);let le=this.data.quadPoints;le||(le=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);for(const pe of le){const[he,de,Ce,we]=U(se,pe);ne=Math.min(ne,he),L=Math.max(L,de),V=Math.min(V,Ce),te=Math.max(te,we)}se.push("Q");const ue=new e.Dict(S),fe=new e.Dict(S);fe.set("Subtype",e.Name.get("Form"));const ge=new t.StringStream(se.join(" "));ge.dict=fe,ue.set("Fm0",ge);const xe=new e.Dict(S);Q&&xe.set("BM",e.Name.get(Q)),typeof ie=="number"&&xe.set("CA",ie),typeof ae=="number"&&xe.set("ca",ae);const me=new e.Dict(S);me.set("GS0",xe);const be=new e.Dict(S);be.set("ExtGState",me),be.set("XObject",ue);const ye=new e.Dict(S);ye.set("Resources",be);const Se=this.data.rect=[ne,V,L,te];ye.set("BBox",Se),this.appearance=new t.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=ye,this._streams.push(this.appearance,ge)}static createNewAnnotation(S,k,_,G){return Ue(this,null,function*(){const Q=k.ref||(k.ref=S.getNewTemporaryRef()),ie=yield this.createNewAppearanceStream(k,S,G),ae=[];let U;if(ie){const ne=S.getNewTemporaryRef();U=this.createNewDict(k,S,{apRef:ne}),yield(0,E.writeObject)(ne,ie,ae,S),_.push({ref:ne,data:ae.join("")})}else U=this.createNewDict(k,S,{});return Number.isInteger(k.parentTreeId)&&U.set("StructParent",k.parentTreeId),ae.length=0,yield(0,E.writeObject)(Q,U,ae,S),{ref:Q,data:ae.join("")}})}static createNewPrintAnnotation(S,k,_,G){return Ue(this,null,function*(){const Q=yield this.createNewAppearanceStream(_,k,G),ie=this.createNewDict(_,k,{ap:Q}),ae=new this.prototype.constructor({dict:ie,xref:k,annotationGlobals:S,evaluatorOptions:G.evaluatorOptions});return _.ref&&(ae.ref=ae.refToReplace=_.ref),ae})}}b.MarkupAnnotation=o;class l extends d{constructor(S){var te;super(S);const{dict:k,xref:_,annotationGlobals:G}=S,Q=this.data;this._needAppearances=S.needAppearances,Q.annotationType=n.AnnotationType.WIDGET,Q.fieldName===void 0&&(Q.fieldName=this._constructFieldName(k)),Q.actions===void 0&&(Q.actions=(0,P.collectActions)(_,k,n.AnnotationActionEventType));let ie=(0,P.getInheritableProperty)({dict:k,key:"V",getArray:!0});Q.fieldValue=this._decodeFormValue(ie);const ae=(0,P.getInheritableProperty)({dict:k,key:"DV",getArray:!0});if(Q.defaultFieldValue=this._decodeFormValue(ae),ie===void 0&&G.xfaDatasets){const se=this._title.str;se&&(this._hasValueFromXFA=!0,Q.fieldValue=ie=G.xfaDatasets.getValue(se))}ie===void 0&&Q.defaultFieldValue!==null&&(Q.fieldValue=Q.defaultFieldValue),Q.alternativeText=(0,n.stringToPDFString)(k.get("TU")||""),this.setDefaultAppearance(S),Q.hasAppearance||(Q.hasAppearance=this._needAppearances&&Q.fieldValue!==void 0&&Q.fieldValue!==null);const U=(0,P.getInheritableProperty)({dict:k,key:"FT"});Q.fieldType=U instanceof e.Name?U.name:null;const ne=(0,P.getInheritableProperty)({dict:k,key:"DR"}),V=G.acroForm.get("DR"),L=(te=this.appearance)==null?void 0:te.dict.get("Resources");this._fieldResources={localResources:ne,acroFormResources:V,appearanceResources:L,mergedResources:e.Dict.merge({xref:_,dictArray:[ne,L,V],mergeSubDicts:!0})},Q.fieldFlags=(0,P.getInheritableProperty)({dict:k,key:"Ff"}),(!Number.isInteger(Q.fieldFlags)||Q.fieldFlags<0)&&(Q.fieldFlags=0),Q.readOnly=this.hasFieldFlag(n.AnnotationFieldFlag.READONLY),Q.required=this.hasFieldFlag(n.AnnotationFieldFlag.REQUIRED),Q.hidden=this._hasFlag(Q.annotationFlags,n.AnnotationFlag.HIDDEN)||this._hasFlag(Q.annotationFlags,n.AnnotationFlag.NOVIEW)}_decodeFormValue(S){return Array.isArray(S)?S.filter(k=>typeof k=="string").map(k=>(0,n.stringToPDFString)(k)):S instanceof e.Name?(0,n.stringToPDFString)(S.name):typeof S=="string"?(0,n.stringToPDFString)(S):null}hasFieldFlag(S){return!!(this.data.fieldFlags&S)}_isViewable(S){return!this._hasFlag(S,n.AnnotationFlag.INVISIBLE)}mustBeViewed(S,k){return k?this.viewable:super.mustBeViewed(S,k)&&!this._hasFlag(this.flags,n.AnnotationFlag.NOVIEW)}getRotationMatrix(S){var Q;let k=(Q=S==null?void 0:S.get(this.data.id))==null?void 0:Q.rotation;if(k===void 0&&(k=this.rotation),k===0)return n.IDENTITY_MATRIX;const _=this.data.rect[2]-this.data.rect[0],G=this.data.rect[3]-this.data.rect[1];return(0,P.getRotationMatrix)(k,_,G)}getBorderAndBackgroundAppearances(S){var ae;let k=(ae=S==null?void 0:S.get(this.data.id))==null?void 0:ae.rotation;if(k===void 0&&(k=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const _=this.data.rect[2]-this.data.rect[0],G=this.data.rect[3]-this.data.rect[1],Q=k===0||k===180?`0 0 ${_} ${G} re`:`0 0 ${G} ${_} re`;let ie="";if(this.backgroundColor&&(ie=`${(0,D.getPdfColor)(this.backgroundColor,!0)} ${Q} f `),this.borderColor){const U=this.borderStyle.width||1;ie+=`${U} w ${(0,D.getPdfColor)(this.borderColor,!1)} ${Q} S `}return ie}getOperatorList(S,k,_,G,Q){return Ue(this,null,function*(){if(G&&!(this instanceof u)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new a.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return nn(l.prototype,this,"getOperatorList").call(this,S,k,_,G,Q);const ie=yield this._getAppearance(S,k,_,Q);if(this.appearance&&ie===null)return nn(l.prototype,this,"getOperatorList").call(this,S,k,_,G,Q);const ae=new a.OperatorList;if(!this._defaultAppearance||ie===null)return{opList:ae,separateForm:!1,separateCanvas:!1};const U=!!(this.data.hasOwnCanvas&&_&n.RenderingIntentFlag.DISPLAY),ne=[1,0,0,1,0,0],V=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],L=W(this.data.rect,V,ne);let te;this.oc&&(te=yield S.parseMarkedContentProps(this.oc,null)),te!==void 0&&ae.addOp(n.OPS.beginMarkedContentProps,["OC",te]),ae.addOp(n.OPS.beginAnnotation,[this.data.id,this.data.rect,L,this.getRotationMatrix(Q),U]);const se=new t.StringStream(ie);return yield S.getOperatorList({stream:se,task:k,resources:this._fieldResources.mergedResources,operatorList:ae}),ae.addOp(n.OPS.endAnnotation,[]),te!==void 0&&ae.addOp(n.OPS.endMarkedContent,[]),{opList:ae,separateForm:!1,separateCanvas:U}})}_getMKDict(S){const k=new e.Dict(null);return S&&k.set("R",S),this.borderColor&&k.set("BC",B(this.borderColor)),this.backgroundColor&&k.set("BG",B(this.backgroundColor)),k.size>0?k:null}amendSavedDict(S,k){}save(S,k,_){return Ue(this,null,function*(){const G=_==null?void 0:_.get(this.data.id);let Q=G==null?void 0:G.value,ie=G==null?void 0:G.rotation;if(Q===this.data.fieldValue||Q===void 0){if(!this._hasValueFromXFA&&ie===void 0)return null;Q||(Q=this.data.fieldValue)}if(ie===void 0&&!this._hasValueFromXFA&&Array.isArray(Q)&&Array.isArray(this.data.fieldValue)&&Q.length===this.data.fieldValue.length&&Q.every((ge,xe)=>ge===this.data.fieldValue[xe]))return null;ie===void 0&&(ie=this.rotation);let ae=null;if(!this._needAppearances&&(ae=yield this._getAppearance(S,k,n.RenderingIntentFlag.SAVE,_),ae===null))return null;let U=!1;ae!=null&&ae.needAppearances&&(U=!0,ae=null);const{xref:ne}=S,V=ne.fetchIfRef(this.ref);if(!(V instanceof e.Dict))return null;const L=new e.Dict(ne);for(const ge of V.getKeys())ge!=="AP"&&L.set(ge,V.getRaw(ge));const te={path:this.data.fieldName,value:Q},se=ge=>(0,P.isAscii)(ge)?ge:(0,P.stringToUTF16String)(ge,!0);L.set("V",Array.isArray(Q)?Q.map(se):se(Q)),this.amendSavedDict(_,L);const le=this._getMKDict(ie);le&&L.set("MK",le);const ue=[],fe=[{ref:this.ref,data:"",xfa:te,needAppearances:U}];if(ae!==null){const ge=ne.getNewTemporaryRef(),xe=new e.Dict(ne);L.set("AP",xe),xe.set("N",ge);const me=this._getSaveFieldResources(ne),be=new t.StringStream(ae),ye=be.dict=new e.Dict(ne);ye.set("Subtype",e.Name.get("Form")),ye.set("Resources",me),ye.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);const Se=this.getRotationMatrix(_);Se!==n.IDENTITY_MATRIX&&ye.set("Matrix",Se),yield(0,E.writeObject)(ge,be,ue,ne),fe.push({ref:ge,data:ue.join(""),xfa:null,needAppearances:!1}),ue.length=0}return L.set("M",`D:${(0,n.getModificationDate)()}`),yield(0,E.writeObject)(this.ref,L,ue,ne),fe[0].data=ue.join(""),fe})}_getAppearance(S,k,_,G){return Ue(this,null,function*(){if(this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD))return null;const ie=G==null?void 0:G.get(this.data.id);let ae,U;if(ie&&(ae=ie.formattedValue||ie.value,U=ie.rotation),U===void 0&&ae===void 0&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const ne=this.getBorderAndBackgroundAppearances(G);if(ae===void 0&&(ae=this.data.fieldValue,!ae))return`/Tx BMC q ${ne}Q EMC`;if(Array.isArray(ae)&&ae.length===1&&(ae=ae[0]),(0,n.assert)(typeof ae=="string","Expected `value` to be a string."),ae=ae.trim(),this.data.combo){const Le=this.data.options.find(({exportValue:Be})=>ae===Be);ae=(Le==null?void 0:Le.displayValue)||ae}if(ae==="")return`/Tx BMC q ${ne}Q EMC`;U===void 0&&(U=this.rotation);let V=-1,L;this.data.multiLine?(L=ae.split(/\r\n?|\n/).map(Le=>Le.normalize("NFC")),V=L.length):L=[ae.replace(/\r\n?|\n/,"").normalize("NFC")];const te=1,se=2;let le=this.data.rect[3]-this.data.rect[1],ue=this.data.rect[2]-this.data.rect[0];(U===90||U===270)&&([ue,le]=[le,ue]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,D.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let fe=yield l._getFontData(S,k,this.data.defaultAppearanceData,this._fieldResources.mergedResources),ge,xe,me;const be=[];let ye=!1;for(const Le of L){const Be=fe.encodeString(Le);Be.length>1&&(ye=!0),be.push(Be.join(""))}if(ye&&_&n.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(ye&&this._isOffscreenCanvasSupported){const Le=this.data.comb?"monospace":"sans-serif",Be=new D.FakeUnicodeFont(S.xref,Le),at=Be.createFontResources(L.join("")),Oe=at.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const Pe=this._fieldResources.mergedResources.get("Font");for(const qe of Oe.getKeys())Pe.set(qe,Oe.getRaw(qe))}else this._fieldResources.mergedResources.set("Font",Oe);const Ze=Be.fontName.name;fe=yield l._getFontData(S,k,{fontName:Ze,fontSize:0},at);for(let Pe=0,qe=be.length;Pe<qe;Pe++)be[Pe]=(0,P.stringToUTF16String)(L[Pe]);const Ke=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=Ze,[ge,xe,me]=this._computeFontSize(le-2*te,ue-2*se,ae,fe,V),this.data.defaultAppearanceData=Ke}else this._isOffscreenCanvasSupported||(0,n.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[ge,xe,me]=this._computeFontSize(le-2*te,ue-2*se,ae,fe,V);let Se=fe.descent;isNaN(Se)?Se=n.BASELINE_FACTOR*me:Se=Math.max(n.BASELINE_FACTOR*me,Math.abs(Se)*xe);const pe=Math.min(Math.floor((le-xe)/2),te),he=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(ge,be,fe,xe,ue,le,he,se,pe,Se,me,G);if(this.data.comb)return this._getCombAppearance(ge,fe,be[0],xe,ue,le,se,pe,Se,me,G);const de=pe+Se;if(he===0||he>2)return`/Tx BMC q ${ne}BT `+ge+` 1 0 0 1 ${(0,P.numberToString)(se)} ${(0,P.numberToString)(de)} Tm (${(0,P.escapeString)(be[0])}) Tj ET Q EMC`;const Ce={shift:0},we=this._renderText(be[0],fe,xe,ue,he,Ce,se,de);return`/Tx BMC q ${ne}BT `+ge+` 1 0 0 1 0 0 Tm ${we} ET Q EMC`})}static _getFontData(S,k,_,G){return Ue(this,null,function*(){const Q=new a.OperatorList,ie={font:null,clone(){return this}},{fontName:ae,fontSize:U}=_;return yield S.handleSetFont(G,[ae&&e.Name.get(ae),U],null,Q,k,ie,null),ie.font})}_getTextWidth(S,k){return k.charsToGlyphs(S).reduce((_,G)=>_+G.width,0)/1e3}_computeFontSize(S,k,_,G,Q){let{fontSize:ie}=this.data.defaultAppearanceData,ae=(ie||12)*n.LINE_FACTOR,U=Math.round(S/ae);if(!ie){const ne=te=>Math.floor(te*100)/100;if(Q===-1){const te=this._getTextWidth(_,G);ie=ne(Math.min(S/n.LINE_FACTOR,te>k?k/te:1/0)),U=1}else{const te=_.split(/\r\n?|\n/),se=[];for(const ue of te){const fe=G.encodeString(ue).join(""),ge=G.charsToGlyphs(fe),xe=G.getCharPositions(fe);se.push({line:fe,glyphs:ge,positions:xe})}const le=ue=>{let fe=0;for(const ge of se){const xe=this._splitLine(null,G,ue,k,ge);if(fe+=xe.length*ue,fe>S)return!0}return!1};for(U=Math.max(U,Q);;){if(ae=S/U,ie=ne(ae/n.LINE_FACTOR),le(ie)){U++;continue}break}}const{fontName:V,fontColor:L}=this.data.defaultAppearanceData;this._defaultAppearance=(0,D.createDefaultAppearance)({fontSize:ie,fontName:V,fontColor:L})}return[this._defaultAppearance,ie,S/U]}_renderText(S,k,_,G,Q,ie,ae,U){let ne;if(Q===1){const L=this._getTextWidth(S,k)*_;ne=(G-L)/2}else if(Q===2){const L=this._getTextWidth(S,k)*_;ne=G-L-ae}else ne=ae;const V=(0,P.numberToString)(ne-ie.shift);return ie.shift=ne,U=(0,P.numberToString)(U),`${V} ${U} Td (${(0,P.escapeString)(S)}) Tj`}_getSaveFieldResources(S){var ie;const{localResources:k,appearanceResources:_,acroFormResources:G}=this._fieldResources,Q=(ie=this.data.defaultAppearanceData)==null?void 0:ie.fontName;if(!Q)return k||e.Dict.empty;for(const ae of[k,_])if(ae instanceof e.Dict){const U=ae.get("Font");if(U instanceof e.Dict&&U.has(Q))return ae}if(G instanceof e.Dict){const ae=G.get("Font");if(ae instanceof e.Dict&&ae.has(Q)){const U=new e.Dict(S);U.set(Q,ae.getRaw(Q));const ne=new e.Dict(S);return ne.set("Font",U),e.Dict.merge({xref:S,dictArray:[ne,k],mergeSubDicts:!0})}}return k||e.Dict.empty}getFieldObject(){return null}}class F extends l{constructor(S){super(S),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0;const k=S.dict;typeof this.data.fieldValue!="string"&&(this.data.fieldValue="");let _=(0,P.getInheritableProperty)({dict:k,key:"Q"});(!Number.isInteger(_)||_<0||_>2)&&(_=null),this.data.textAlignment=_;let G=(0,P.getInheritableProperty)({dict:k,key:"MaxLen"});(!Number.isInteger(G)||G<0)&&(G=0),this.data.maxLen=G,this.data.multiLine=this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(n.AnnotationFieldFlag.DONOTSCROLL)}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(S,k,_,G,Q,ie,ae,U,ne,V,L){const te=Q/this.data.maxLen,se=this.getBorderAndBackgroundAppearances(L),le=[],ue=k.getCharPositions(_);for(const[ge,xe]of ue)le.push(`(${(0,P.escapeString)(_.substring(ge,xe))}) Tj`);const fe=le.join(` ${(0,P.numberToString)(te)} 0 Td `);return`/Tx BMC q ${se}BT `+S+` 1 0 0 1 ${(0,P.numberToString)(ae)} ${(0,P.numberToString)(U+ne)} Tm ${fe} ET Q EMC`}_getMultilineAppearance(S,k,_,G,Q,ie,ae,U,ne,V,L,te){const se=[],le=Q-2*U,ue={shift:0};for(let xe=0,me=k.length;xe<me;xe++){const be=k[xe],ye=this._splitLine(be,_,G,le);for(let Se=0,pe=ye.length;Se<pe;Se++){const he=ye[Se],de=xe===0&&Se===0?-ne-(L-V):-L;se.push(this._renderText(he,_,G,Q,ae,ue,U,de))}}const fe=this.getBorderAndBackgroundAppearances(te),ge=se.join(`
- `);return`/Tx BMC q ${fe}BT `+S+` 1 0 0 1 0 ${(0,P.numberToString)(ie)} Tm ${ge} ET Q EMC`}_splitLine(S,k,_,G,Q={}){S=Q.line||S;const ie=Q.glyphs||k.charsToGlyphs(S);if(ie.length<=1)return[S];const ae=Q.positions||k.getCharPositions(S),U=_/1e3,ne=[];let V=-1,L=-1,te=-1,se=0,le=0;for(let ue=0,fe=ie.length;ue<fe;ue++){const[ge,xe]=ae[ue],me=ie[ue],be=me.width*U;me.unicode===" "?le+be>G?(ne.push(S.substring(se,ge)),se=ge,le=be,V=-1,te=-1):(le+=be,V=ge,L=xe,te=ue):le+be>G?V!==-1?(ne.push(S.substring(se,L)),se=L,ue=te+1,V=-1,le=0):(ne.push(S.substring(se,ge)),se=ge,le=be):le+=be}return se<S.length&&ne.push(S.substring(se,S.length)),ne}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(n.AnnotationFieldFlag.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,type:"text"}}}class s extends l{constructor(S){super(S),this.checkedAppearance=null,this.uncheckedAppearance=null,this.data.checkBox=!this.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(S):this.data.radioButton?this._processRadioButton(S):this.data.pushButton?(this.data.hasOwnCanvas=!0,this._processPushButton(S)):(0,n.warn)("Invalid field flags for button widget annotation")}getOperatorList(S,k,_,G,Q){return Ue(this,null,function*(){if(this.data.pushButton)return nn(s.prototype,this,"getOperatorList").call(this,S,k,_,!1,Q);let ie=null,ae=null;if(Q){const ne=Q.get(this.data.id);ie=ne?ne.value:null,ae=ne?ne.rotation:null}if(ie===null&&this.appearance)return nn(s.prototype,this,"getOperatorList").call(this,S,k,_,G,Q);ie==null&&(ie=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);const U=ie?this.checkedAppearance:this.uncheckedAppearance;if(U){const ne=this.appearance,V=U.dict.getArray("Matrix")||n.IDENTITY_MATRIX;ae&&U.dict.set("Matrix",this.getRotationMatrix(Q)),this.appearance=U;const L=nn(s.prototype,this,"getOperatorList").call(this,S,k,_,G,Q);return this.appearance=ne,U.dict.set("Matrix",V),L}return{opList:new a.OperatorList,separateForm:!1,separateCanvas:!1}})}save(S,k,_){return Ue(this,null,function*(){return this.data.checkBox?this._saveCheckbox(S,k,_):this.data.radioButton?this._saveRadioButton(S,k,_):null})}_saveCheckbox(S,k,_){return Ue(this,null,function*(){if(!_)return null;const G=_.get(this.data.id);let Q=G==null?void 0:G.rotation,ie=G==null?void 0:G.value;if(Q===void 0&&(ie===void 0||this.data.fieldValue===this.data.exportValue===ie))return null;const ae=S.xref.fetchIfRef(this.ref);if(!(ae instanceof e.Dict))return null;Q===void 0&&(Q=this.rotation),ie===void 0&&(ie=this.data.fieldValue===this.data.exportValue);const U={path:this.data.fieldName,value:ie?this.data.exportValue:""},ne=e.Name.get(ie?this.data.exportValue:"Off");ae.set("V",ne),ae.set("AS",ne),ae.set("M",`D:${(0,n.getModificationDate)()}`);const V=this._getMKDict(Q);V&&ae.set("MK",V);const L=[];return yield(0,E.writeObject)(this.ref,ae,L,S.xref),[{ref:this.ref,data:L.join(""),xfa:U}]})}_saveRadioButton(S,k,_){return Ue(this,null,function*(){if(!_)return null;const G=_.get(this.data.id);let Q=G==null?void 0:G.rotation,ie=G==null?void 0:G.value;if(Q===void 0&&(ie===void 0||this.data.fieldValue===this.data.buttonValue===ie))return null;const ae=S.xref.fetchIfRef(this.ref);if(!(ae instanceof e.Dict))return null;ie===void 0&&(ie=this.data.fieldValue===this.data.buttonValue),Q===void 0&&(Q=this.rotation);const U={path:this.data.fieldName,value:ie?this.data.buttonValue:""},ne=e.Name.get(ie?this.data.buttonValue:"Off"),V=[];let L=null;if(ie)if(this.parent instanceof e.Ref){const le=S.xref.fetch(this.parent);le.set("V",ne),yield(0,E.writeObject)(this.parent,le,V,S.xref),L=V.join(""),V.length=0}else this.parent instanceof e.Dict&&this.parent.set("V",ne);ae.set("AS",ne),ae.set("M",`D:${(0,n.getModificationDate)()}`);const te=this._getMKDict(Q);te&&ae.set("MK",te),yield(0,E.writeObject)(this.ref,ae,V,S.xref);const se=[{ref:this.ref,data:V.join(""),xfa:U}];return L&&se.push({ref:this.parent,data:L,xfa:null}),se})}_getDefaultCheckedAppearance(S,k){const _=this.data.rect[2]-this.data.rect[0],G=this.data.rect[3]-this.data.rect[1],Q=[0,0,_,G],ie=.8,ae=Math.min(_,G)*ie;let U,ne;k==="check"?(U={width:.755*ae,height:.705*ae},ne="3"):k==="disc"?(U={width:.791*ae,height:.705*ae},ne="l"):(0,n.unreachable)(`_getDefaultCheckedAppearance - unsupported type: ${k}`);const V=(0,P.numberToString)((_-U.width)/2),L=(0,P.numberToString)((G-U.height)/2),te=`q BT /PdfJsZaDb ${ae} Tf 0 g ${V} ${L} Td (${ne}) Tj ET Q`,se=new e.Dict(S.xref);se.set("FormType",1),se.set("Subtype",e.Name.get("Form")),se.set("Type",e.Name.get("XObject")),se.set("BBox",Q),se.set("Matrix",[1,0,0,1,0,0]),se.set("Length",te.length);const le=new e.Dict(S.xref),ue=new e.Dict(S.xref);ue.set("PdfJsZaDb",this.fallbackFontDict),le.set("Font",ue),se.set("Resources",le),this.checkedAppearance=new t.StringStream(te),this.checkedAppearance.dict=se,this._streams.push(this.checkedAppearance)}_processCheckBox(S){const k=S.dict.get("AP");if(!(k instanceof e.Dict))return;const _=k.get("N");if(!(_ instanceof e.Dict))return;const G=this._decodeFormValue(S.dict.get("AS"));typeof G=="string"&&(this.data.fieldValue=G);const Q=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes",ie=_.getKeys();if(ie.length===0)ie.push("Off",Q);else if(ie.length===1)ie[0]==="Off"?ie.push(Q):ie.unshift("Off");else if(ie.includes(Q))ie.length=0,ie.push("Off",Q);else{const ne=ie.find(V=>V!=="Off");ie.length=0,ie.push("Off",ne)}ie.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=ie[1];const ae=_.get(this.data.exportValue);this.checkedAppearance=ae instanceof c.BaseStream?ae:null;const U=_.get("Off");this.uncheckedAppearance=U instanceof c.BaseStream?U:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(S,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processRadioButton(S){this.data.fieldValue=this.data.buttonValue=null;const k=S.dict.get("Parent");if(k instanceof e.Dict){this.parent=S.dict.getRaw("Parent");const ae=k.get("V");ae instanceof e.Name&&(this.data.fieldValue=this._decodeFormValue(ae))}const _=S.dict.get("AP");if(!(_ instanceof e.Dict))return;const G=_.get("N");if(!(G instanceof e.Dict))return;for(const ae of G.getKeys())if(ae!=="Off"){this.data.buttonValue=this._decodeFormValue(ae);break}const Q=G.get(this.data.buttonValue);this.checkedAppearance=Q instanceof c.BaseStream?Q:null;const ie=G.get("Off");this.uncheckedAppearance=ie instanceof c.BaseStream?ie:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(S,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,this.data.defaultFieldValue===null&&(this.data.defaultFieldValue="Off")}_processPushButton(S){const{dict:k,annotationGlobals:_}=S;if(!k.has("A")&&!k.has("AA")&&!this.data.alternativeText){(0,n.warn)("Push buttons without action dictionaries are not supported");return}this.data.isTooltipOnly=!k.has("A")&&!k.has("AA"),ee.Catalog.parseDestDictionary({destDict:k,resultObj:this.data,docBaseUrl:_.baseUrl,docAttachments:_.attachments})}getFieldObject(){let S="button",k;return this.data.checkBox?(S="checkbox",k=this.data.exportValue):this.data.radioButton&&(S="radiobutton",k=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:k,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:S}}get fallbackFontDict(){const S=new e.Dict;return S.set("BaseFont",e.Name.get("ZapfDingbats")),S.set("Type",e.Name.get("FallbackType")),S.set("Subtype",e.Name.get("FallbackType")),S.set("Encoding",e.Name.get("ZapfDingbatsEncoding")),(0,n.shadow)(this,"fallbackFontDict",S)}}class r extends l{constructor(S){super(S);const{dict:k,xref:_}=S;this.indices=k.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];const G=(0,P.getInheritableProperty)({dict:k,key:"Opt"});if(Array.isArray(G))for(let Q=0,ie=G.length;Q<ie;Q++){const ae=_.fetchIfRef(G[Q]),U=Array.isArray(ae);this.data.options[Q]={exportValue:this._decodeFormValue(U?_.fetchIfRef(ae[0]):ae),displayValue:this._decodeFormValue(U?_.fetchIfRef(ae[1]):ae)}}if(!this.hasIndices)typeof this.data.fieldValue=="string"?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||(this.data.fieldValue=[]);else{this.data.fieldValue=[];const Q=this.data.options.length;for(const ie of this.indices)Number.isInteger(ie)&&ie>=0&&ie<Q&&this.data.fieldValue.push(this.data.options[ie].exportValue)}this.data.combo=this.hasFieldFlag(n.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(n.AnnotationFieldFlag.MULTISELECT),this._hasText=!0}getFieldObject(){const S=this.data.combo?"combobox":"listbox",k=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:k,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:S}}amendSavedDict(S,k){var ie;if(!this.hasIndices)return;let _=(ie=S==null?void 0:S.get(this.data.id))==null?void 0:ie.value;Array.isArray(_)||(_=[_]);const G=[],{options:Q}=this.data;for(let ae=0,U=0,ne=Q.length;ae<ne;ae++)Q[ae].exportValue===_[U]&&(G.push(ae),U+=1);k.set("I",G)}_getAppearance(S,k,_,G){return Ue(this,null,function*(){if(this.data.combo)return nn(r.prototype,this,"_getAppearance").call(this,S,k,_,G);let Q,ie;const ae=G==null?void 0:G.get(this.data.id);if(ae&&(ie=ae.rotation,Q=ae.value),ie===void 0&&Q===void 0&&!this._needAppearances)return null;Q===void 0?Q=this.data.fieldValue:Array.isArray(Q)||(Q=[Q]);const U=1,ne=2;let V=this.data.rect[3]-this.data.rect[1],L=this.data.rect[2]-this.data.rect[0];(ie===90||ie===270)&&([L,V]=[V,L]);const te=this.data.options.length,se=[];for(let he=0;he<te;he++){const{exportValue:de}=this.data.options[he];Q.includes(de)&&se.push(he)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,D.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const le=yield l._getFontData(S,k,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let ue,{fontSize:fe}=this.data.defaultAppearanceData;if(fe)ue=this._defaultAppearance;else{const he=(V-U)/te;let de=-1,Ce;for(const{displayValue:we}of this.data.options){const Le=this._getTextWidth(we,le);Le>de&&(de=Le,Ce=we)}[ue,fe]=this._computeFontSize(he,L-2*ne,Ce,le,-1)}const ge=fe*n.LINE_FACTOR,xe=(ge-fe)/2,me=Math.floor(V/ge);let be=0;if(se.length>0){const he=Math.min(...se),de=Math.max(...se);be=Math.max(0,de-me+1),be>he&&(be=he)}const ye=Math.min(be+me+1,te),Se=["/Tx BMC q",`1 1 ${L} ${V} re W n`];if(se.length){Se.push("0.600006 0.756866 0.854904 rg");for(const he of se)be<=he&&he<ye&&Se.push(`1 ${V-(he-be+1)*ge} ${L} ${ge} re f`)}Se.push("BT",ue,`1 0 0 1 0 ${V} Tm`);const pe={shift:0};for(let he=be;he<ye;he++){const{displayValue:de}=this.data.options[he],Ce=he===be?xe:0;Se.push(this._renderText(de,le,fe,L,0,pe,ne,-ge+Ce))}return Se.push("ET Q EMC"),Se.join(`
- `)})}}class u extends l{constructor(S){super(S),this.data.fieldValue=null,this.data.hasOwnCanvas=this.data.noRotate}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class C extends o{constructor(S){super(S),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate;const{dict:_}=S;this.data.annotationType=n.AnnotationType.TEXT,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=_.has("Name")?_.get("Name").name:"Note"),_.has("State")?(this.data.state=_.get("State")||null,this.data.stateModel=_.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class g extends d{constructor(S){var Q;super(S);const{dict:k,annotationGlobals:_}=S;this.data.annotationType=n.AnnotationType.LINK;const G=z(k,this.rectangle);G&&(this.data.quadPoints=G),(Q=this.data).borderColor||(Q.borderColor=this.data.color),ee.Catalog.parseDestDictionary({destDict:k,resultObj:this.data,docBaseUrl:_.baseUrl,docAttachments:_.attachments})}}class p extends d{constructor(S){super(S);const{dict:k}=S;this.data.annotationType=n.AnnotationType.POPUP,(this.data.rect[0]===this.data.rect[2]||this.data.rect[1]===this.data.rect[3])&&(this.data.rect=null);let _=k.get("Parent");if(!_){(0,n.warn)("Popup annotation has a missing or invalid parent annotation.");return}const G=_.getArray("Rect");this.data.parentRect=Array.isArray(G)&&G.length===4?n.Util.normalizeRect(G):null;const Q=_.get("RT");if((0,e.isName)(Q,n.AnnotationReplyType.GROUP)&&(_=_.get("IRT")),_.has("M")?(this.setModificationDate(_.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,_.has("C")?(this.setColor(_.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const ie=_.get("F");this._isViewable(ie)&&this.setFlags(ie)}this.setTitle(_.get("T")),this.data.titleObj=this._title,this.setContents(_.get("Contents")),this.data.contentsObj=this._contents,_.has("RC")&&(this.data.richText=w.XFAFactory.getRichTextAsHtml(_.get("RC"))),this.data.open=!!k.get("Open")}}b.PopupAnnotation=p;class X extends o{constructor(S){var G;super(S),this.data.hasOwnCanvas=!0;const{evaluatorOptions:k,xref:_}=S;if(this.data.annotationType=n.AnnotationType.FREETEXT,this.setDefaultAppearance(S),this.appearance){const{fontColor:Q,fontSize:ie}=(0,D.parseAppearanceStream)(this.appearance,k,_);this.data.defaultAppearanceData.fontColor=Q,this.data.defaultAppearanceData.fontSize=ie||10}else if(this._isOffscreenCanvasSupported){const Q=S.dict.get("CA"),ie=new D.FakeUnicodeFont(_,"sans-serif");(G=this.data.defaultAppearanceData).fontSize||(G.fontSize=10);const{fontColor:ae,fontSize:U}=this.data.defaultAppearanceData;this.appearance=ie.createAppearance(this._contents.str,this.rectangle,this.rotation,U,ae,Q),this._streams.push(this.appearance,D.FakeUnicodeFont.toUnicodeStream)}else(0,n.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}get hasTextContent(){return!!this.appearance}static createNewDict(S,k,{apRef:_,ap:G}){const{color:Q,fontSize:ie,rect:ae,rotation:U,user:ne,value:V}=S,L=new e.Dict(k);L.set("Type",e.Name.get("Annot")),L.set("Subtype",e.Name.get("FreeText")),L.set("CreationDate",`D:${(0,n.getModificationDate)()}`),L.set("Rect",ae);const te=`/Helv ${ie} Tf ${(0,D.getPdfColor)(Q,!0)}`;if(L.set("DA",te),L.set("Contents",(0,P.isAscii)(V)?V:(0,P.stringToUTF16String)(V,!0)),L.set("F",4),L.set("Border",[0,0,0]),L.set("Rotate",U),ne&&L.set("T",(0,P.isAscii)(ne)?ne:(0,P.stringToUTF16String)(ne,!0)),_||G){const se=new e.Dict(k);L.set("AP",se),_?se.set("N",_):se.set("N",G)}return L}static createNewAppearanceStream(S,k,_){return Ue(this,null,function*(){const{baseFontRef:G,evaluator:Q,task:ie}=_,{color:ae,fontSize:U,rect:ne,rotation:V,value:L}=S,te=new e.Dict(k),se=new e.Dict(k);if(G)se.set("Helv",G);else{const St=new e.Dict(k);St.set("BaseFont",e.Name.get("Helvetica")),St.set("Type",e.Name.get("Font")),St.set("Subtype",e.Name.get("Type1")),St.set("Encoding",e.Name.get("WinAnsiEncoding")),se.set("Helv",St)}te.set("Font",se);const le=yield l._getFontData(Q,ie,{fontName:"Helv",fontSize:U},te),[ue,fe,ge,xe]=ne;let me=ge-ue,be=xe-fe;V%180!==0&&([me,be]=[be,me]);const ye=L.split(`
- `),Se=U/1e3;let pe=-1/0;const he=[];for(let St of ye){const Pt=le.encodeString(St);if(Pt.length>1)return null;St=Pt.join(""),he.push(St);let Ge=0;const We=le.charsToGlyphs(St);for(const _e of We)Ge+=_e.width*Se;pe=Math.max(pe,Ge)}let de=1;pe>me&&(de=me/pe);let Ce=1;const we=n.LINE_FACTOR*U,Le=(n.LINE_FACTOR-n.LINE_DESCENT_FACTOR)*U,Be=we*ye.length;Be>be&&(Ce=be/Be);const at=Math.min(de,Ce),Oe=U*at;let Ze,Ke,Pe;switch(V){case 0:Pe=[1,0,0,1],Ke=[ne[0],ne[1],me,be],Ze=[ne[0],ne[3]-Le];break;case 90:Pe=[0,1,-1,0],Ke=[ne[1],-ne[2],me,be],Ze=[ne[1],-ne[0]-Le];break;case 180:Pe=[-1,0,0,-1],Ke=[-ne[2],-ne[3],me,be],Ze=[-ne[2],-ne[1]-Le];break;case 270:Pe=[0,-1,1,0],Ke=[-ne[3],ne[0],me,be],Ze=[-ne[3],ne[2]-Le];break}const qe=["q",`${Pe.join(" ")} 0 0 cm`,`${Ke.join(" ")} re W n`,"BT",`${(0,D.getPdfColor)(ae,!0)}`,`0 Tc /Helv ${(0,P.numberToString)(Oe)} Tf`];qe.push(`${Ze.join(" ")} Td (${(0,P.escapeString)(he[0])}) Tj`);const gt=(0,P.numberToString)(we);for(let St=1,Pt=he.length;St<Pt;St++){const Ge=he[St];qe.push(`0 -${gt} Td (${(0,P.escapeString)(Ge)}) Tj`)}qe.push("ET","Q");const De=qe.join(`
- `),et=new e.Dict(k);et.set("FormType",1),et.set("Subtype",e.Name.get("Form")),et.set("Type",e.Name.get("XObject")),et.set("BBox",ne),et.set("Resources",te),et.set("Matrix",[1,0,0,1,-ne[0],-ne[1]]);const rt=new t.StringStream(De);return rt.dict=et,rt})}}class $ extends o{constructor(S){super(S);const{dict:k,xref:_}=S;this.data.annotationType=n.AnnotationType.LINE,this.data.hasOwnCanvas=this.data.noRotate;const G=k.getArray("L");if(this.data.lineCoordinates=n.Util.normalizeRect(G),this.setLineEndings(k.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const Q=this.color?B(this.color):[0,0,0],ie=k.get("CA"),ae=M(k.getArray("IC"),null),U=ae?B(ae):null,ne=U?ie:null,V=this.borderStyle.width||1,L=2*V,te=[this.data.lineCoordinates[0]-L,this.data.lineCoordinates[1]-L,this.data.lineCoordinates[2]+L,this.data.lineCoordinates[3]+L];n.Util.intersect(this.rectangle,te)||(this.rectangle=te),this._setDefaultAppearance({xref:_,extra:`${V} w`,strokeColor:Q,fillColor:U,strokeAlpha:ie,fillAlpha:ne,pointsCallback:(se,le)=>(se.push(`${G[0]} ${G[1]} m`,`${G[2]} ${G[3]} l`,"S"),[le[0].x-V,le[1].x+V,le[3].y-V,le[1].y+V])})}}}class y extends o{constructor(S){super(S);const{dict:k,xref:_}=S;if(this.data.annotationType=n.AnnotationType.SQUARE,this.data.hasOwnCanvas=this.data.noRotate,!this.appearance){const G=this.color?B(this.color):[0,0,0],Q=k.get("CA"),ie=M(k.getArray("IC"),null),ae=ie?B(ie):null,U=ae?Q:null;if(this.borderStyle.width===0&&!ae)return;this._setDefaultAppearance({xref:_,extra:`${this.borderStyle.width} w`,strokeColor:G,fillColor:ae,strokeAlpha:Q,fillAlpha:U,pointsCallback:(ne,V)=>{const L=V[2].x+this.borderStyle.width/2,te=V[2].y+this.borderStyle.width/2,se=V[3].x-V[2].x-this.borderStyle.width,le=V[1].y-V[3].y-this.borderStyle.width;return ne.push(`${L} ${te} ${se} ${le} re`),ae?ne.push("B"):ne.push("S"),[V[0].x,V[1].x,V[3].y,V[1].y]}})}}}class v extends o{constructor(S){super(S);const{dict:k,xref:_}=S;if(this.data.annotationType=n.AnnotationType.CIRCLE,!this.appearance){const G=this.color?B(this.color):[0,0,0],Q=k.get("CA"),ie=M(k.getArray("IC"),null),ae=ie?B(ie):null,U=ae?Q:null;if(this.borderStyle.width===0&&!ae)return;const ne=4/3*Math.tan(Math.PI/(2*4));this._setDefaultAppearance({xref:_,extra:`${this.borderStyle.width} w`,strokeColor:G,fillColor:ae,strokeAlpha:Q,fillAlpha:U,pointsCallback:(V,L)=>{const te=L[0].x+this.borderStyle.width/2,se=L[0].y-this.borderStyle.width/2,le=L[3].x-this.borderStyle.width/2,ue=L[3].y+this.borderStyle.width/2,fe=te+(le-te)/2,ge=se+(ue-se)/2,xe=(le-te)/2*ne,me=(ue-se)/2*ne;return V.push(`${fe} ${ue} m`,`${fe+xe} ${ue} ${le} ${ge+me} ${le} ${ge} c`,`${le} ${ge-me} ${fe+xe} ${se} ${fe} ${se} c`,`${fe-xe} ${se} ${te} ${ge-me} ${te} ${ge} c`,`${te} ${ge+me} ${fe-xe} ${ue} ${fe} ${ue} c`,"h"),ae?V.push("B"):V.push("S"),[L[0].x,L[1].x,L[3].y,L[1].y]}})}}}class m extends o{constructor(S){super(S);const{dict:k,xref:_}=S;this.data.annotationType=n.AnnotationType.POLYLINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.vertices=[],this instanceof h||(this.setLineEndings(k.getArray("LE")),this.data.lineEndings=this.lineEndings);const G=k.getArray("Vertices");if(!!Array.isArray(G)){for(let Q=0,ie=G.length;Q<ie;Q+=2)this.data.vertices.push({x:G[Q],y:G[Q+1]});if(!this.appearance){const Q=this.color?B(this.color):[0,0,0],ie=k.get("CA"),ae=this.borderStyle.width||1,U=2*ae,ne=[1/0,1/0,-1/0,-1/0];for(const V of this.data.vertices)ne[0]=Math.min(ne[0],V.x-U),ne[1]=Math.min(ne[1],V.y-U),ne[2]=Math.max(ne[2],V.x+U),ne[3]=Math.max(ne[3],V.y+U);n.Util.intersect(this.rectangle,ne)||(this.rectangle=ne),this._setDefaultAppearance({xref:_,extra:`${ae} w`,strokeColor:Q,strokeAlpha:ie,pointsCallback:(V,L)=>{const te=this.data.vertices;for(let se=0,le=te.length;se<le;se++)V.push(`${te[se].x} ${te[se].y} ${se===0?"m":"l"}`);return V.push("S"),[L[0].x,L[1].x,L[3].y,L[1].y]}})}}}}class h extends m{constructor(S){super(S),this.data.annotationType=n.AnnotationType.POLYGON}}class A extends o{constructor(S){super(S),this.data.annotationType=n.AnnotationType.CARET}}class j extends o{constructor(S){super(S),this.data.hasOwnCanvas=this.data.noRotate;const{dict:k,xref:_}=S;this.data.annotationType=n.AnnotationType.INK,this.data.inkLists=[];const G=k.getArray("InkList");if(!!Array.isArray(G)){for(let Q=0,ie=G.length;Q<ie;++Q){this.data.inkLists.push([]);for(let ae=0,U=G[Q].length;ae<U;ae+=2)this.data.inkLists[Q].push({x:_.fetchIfRef(G[Q][ae]),y:_.fetchIfRef(G[Q][ae+1])})}if(!this.appearance){const Q=this.color?B(this.color):[0,0,0],ie=k.get("CA"),ae=this.borderStyle.width||1,U=2*ae,ne=[1/0,1/0,-1/0,-1/0];for(const V of this.data.inkLists)for(const L of V)ne[0]=Math.min(ne[0],L.x-U),ne[1]=Math.min(ne[1],L.y-U),ne[2]=Math.max(ne[2],L.x+U),ne[3]=Math.max(ne[3],L.y+U);n.Util.intersect(this.rectangle,ne)||(this.rectangle=ne),this._setDefaultAppearance({xref:_,extra:`${ae} w`,strokeColor:Q,strokeAlpha:ie,pointsCallback:(V,L)=>{for(const te of this.data.inkLists){for(let se=0,le=te.length;se<le;se++)V.push(`${te[se].x} ${te[se].y} ${se===0?"m":"l"}`);V.push("S")}return[L[0].x,L[1].x,L[3].y,L[1].y]}})}}}static createNewDict(S,k,{apRef:_,ap:G}){const{color:Q,opacity:ie,paths:ae,rect:U,rotation:ne,thickness:V}=S,L=new e.Dict(k);L.set("Type",e.Name.get("Annot")),L.set("Subtype",e.Name.get("Ink")),L.set("CreationDate",`D:${(0,n.getModificationDate)()}`),L.set("Rect",U),L.set("InkList",ae.map(le=>le.points)),L.set("F",4),L.set("Rotate",ne);const te=new e.Dict(k);L.set("BS",te),te.set("W",V),L.set("C",Array.from(Q,le=>le/255)),L.set("CA",ie);const se=new e.Dict(k);return L.set("AP",se),_?se.set("N",_):se.set("N",G),L}static createNewAppearanceStream(S,k,_){return Ue(this,null,function*(){const{color:G,rect:Q,paths:ie,thickness:ae,opacity:U}=S,ne=[`${ae} w 1 J 1 j`,`${(0,D.getPdfColor)(G,!1)}`];U!==1&&ne.push("/R0 gs");const V=[];for(const{bezier:le}of ie){V.length=0,V.push(`${(0,P.numberToString)(le[0])} ${(0,P.numberToString)(le[1])} m`);for(let ue=2,fe=le.length;ue<fe;ue+=6){const ge=le.slice(ue,ue+6).map(P.numberToString).join(" ");V.push(`${ge} c`)}V.push("S"),ne.push(V.join(`
- `))}const L=ne.join(`
- `),te=new e.Dict(k);if(te.set("FormType",1),te.set("Subtype",e.Name.get("Form")),te.set("Type",e.Name.get("XObject")),te.set("BBox",Q),te.set("Length",L.length),U!==1){const le=new e.Dict(k),ue=new e.Dict(k),fe=new e.Dict(k);fe.set("CA",U),fe.set("Type",e.Name.get("ExtGState")),ue.set("R0",fe),le.set("ExtGState",ue),te.set("Resources",le)}const se=new t.StringStream(L);return se.dict=te,se})}}class H extends o{constructor(S){var Q;super(S);const{dict:k,xref:_}=S;if(this.data.annotationType=n.AnnotationType.HIGHLIGHT,this.data.quadPoints=z(k,null)){const ie=(Q=this.appearance)==null?void 0:Q.dict.get("Resources");if(!this.appearance||!(ie!=null&&ie.has("ExtGState"))){this.appearance&&(0,n.warn)("HighlightAnnotation - ignoring built-in appearance stream.");const ae=this.color?B(this.color):[1,1,0],U=k.get("CA");this._setDefaultAppearance({xref:_,fillColor:ae,blendMode:"Multiply",fillAlpha:U,pointsCallback:(ne,V)=>(ne.push(`${V[0].x} ${V[0].y} m`,`${V[1].x} ${V[1].y} l`,`${V[3].x} ${V[3].y} l`,`${V[2].x} ${V[2].y} l`,"f"),[V[0].x,V[1].x,V[3].y,V[1].y])})}}else this.data.popupRef=null}}class J extends o{constructor(S){super(S);const{dict:k,xref:_}=S;if(this.data.annotationType=n.AnnotationType.UNDERLINE,this.data.quadPoints=z(k,null)){if(!this.appearance){const Q=this.color?B(this.color):[0,0,0],ie=k.get("CA");this._setDefaultAppearance({xref:_,extra:"[] 0 d 0.571 w",strokeColor:Q,strokeAlpha:ie,pointsCallback:(ae,U)=>(ae.push(`${U[2].x} ${U[2].y+1.3} m`,`${U[3].x} ${U[3].y+1.3} l`,"S"),[U[0].x,U[1].x,U[3].y,U[1].y])})}}else this.data.popupRef=null}}class oe extends o{constructor(S){super(S);const{dict:k,xref:_}=S;if(this.data.annotationType=n.AnnotationType.SQUIGGLY,this.data.quadPoints=z(k,null)){if(!this.appearance){const Q=this.color?B(this.color):[0,0,0],ie=k.get("CA");this._setDefaultAppearance({xref:_,extra:"[] 0 d 1 w",strokeColor:Q,strokeAlpha:ie,pointsCallback:(ae,U)=>{const ne=(U[0].y-U[2].y)/6;let V=ne,L=U[2].x;const te=U[2].y,se=U[3].x;ae.push(`${L} ${te+V} m`);do L+=2,V=V===0?ne:0,ae.push(`${L} ${te+V} l`);while(L<se);return ae.push("S"),[U[2].x,se,te-2*ne,te+2*ne]}})}}else this.data.popupRef=null}}class q extends o{constructor(S){super(S);const{dict:k,xref:_}=S;if(this.data.annotationType=n.AnnotationType.STRIKEOUT,this.data.quadPoints=z(k,null)){if(!this.appearance){const Q=this.color?B(this.color):[0,0,0],ie=k.get("CA");this._setDefaultAppearance({xref:_,extra:"[] 0 d 1 w",strokeColor:Q,strokeAlpha:ie,pointsCallback:(ae,U)=>(ae.push(`${(U[0].x+U[2].x)/2} ${(U[0].y+U[2].y)/2} m`,`${(U[1].x+U[3].x)/2} ${(U[1].y+U[3].y)/2} l`,"S"),[U[0].x,U[1].x,U[3].y,U[1].y])})}}else this.data.popupRef=null}}class re extends o{constructor(S){super(S),this.data.annotationType=n.AnnotationType.STAMP,this.data.hasOwnCanvas=this.data.noRotate}static createImage(S,k){return Ue(this,null,function*(){const{width:_,height:G}=S,Q=new OffscreenCanvas(_,G),ie=Q.getContext("2d",{alpha:!0});ie.drawImage(S,0,0);const ae=ie.getImageData(0,0,_,G).data,U=new Uint32Array(ae.buffer),ne=U.some(n.FeatureTest.isLittleEndian?fe=>fe>>>24!==255:fe=>(fe&255)!==255);ne&&(ie.fillStyle="white",ie.fillRect(0,0,_,G),ie.drawImage(S,0,0));const V=Q.convertToBlob({type:"image/jpeg",quality:1}).then(fe=>fe.arrayBuffer()),L=e.Name.get("XObject"),te=e.Name.get("Image"),se=new e.Dict(k);se.set("Type",L),se.set("Subtype",te),se.set("BitsPerComponent",8),se.set("ColorSpace",e.Name.get("DeviceRGB")),se.set("Filter",e.Name.get("DCTDecode")),se.set("BBox",[0,0,_,G]),se.set("Width",_),se.set("Height",G);let le=null;if(ne){const fe=new Uint8Array(U.length);if(n.FeatureTest.isLittleEndian)for(let xe=0,me=U.length;xe<me;xe++)fe[xe]=U[xe]>>>24;else for(let xe=0,me=U.length;xe<me;xe++)fe[xe]=U[xe]&255;const ge=new e.Dict(k);ge.set("Type",L),ge.set("Subtype",te),ge.set("BitsPerComponent",8),ge.set("ColorSpace",e.Name.get("DeviceGray")),ge.set("Width",_),ge.set("Height",G),le=new t.Stream(fe,0,0,ge)}return{imageStream:new t.Stream(yield V,0,0,se),smaskStream:le,width:_,height:G}})}static createNewDict(S,k,{apRef:_,ap:G}){const{rect:Q,rotation:ie,user:ae}=S,U=new e.Dict(k);if(U.set("Type",e.Name.get("Annot")),U.set("Subtype",e.Name.get("Stamp")),U.set("CreationDate",`D:${(0,n.getModificationDate)()}`),U.set("Rect",Q),U.set("F",4),U.set("Border",[0,0,0]),U.set("Rotate",ie),ae&&U.set("T",(0,P.isAscii)(ae)?ae:(0,P.stringToUTF16String)(ae,!0)),_||G){const ne=new e.Dict(k);U.set("AP",ne),_?ne.set("N",_):ne.set("N",G)}return U}static createNewAppearanceStream(S,k,_){return Ue(this,null,function*(){const{rotation:G}=S,{imageRef:Q,width:ie,height:ae}=_.image,U=new e.Dict(k),ne=new e.Dict(k);U.set("XObject",ne),ne.set("Im0",Q);const V=`q ${ie} 0 0 ${ae} 0 0 cm /Im0 Do Q`,L=new e.Dict(k);if(L.set("FormType",1),L.set("Subtype",e.Name.get("Form")),L.set("Type",e.Name.get("XObject")),L.set("BBox",[0,0,ie,ae]),L.set("Resources",U),G){const se=(0,P.getRotationMatrix)(G,ie,ae);L.set("Matrix",se)}const te=new t.StringStream(V);return te.dict=L,te})}}class Z extends o{constructor(S){super(S);const{dict:k,xref:_}=S,G=new I.FileSpec(k.get("FS"),_);this.data.annotationType=n.AnnotationType.FILEATTACHMENT,this.data.hasOwnCanvas=this.data.noRotate,this.data.file=G.serializable;const Q=k.get("Name");this.data.name=Q instanceof e.Name?(0,n.stringToPDFString)(Q.name):"PushPin";const ie=k.get("ca");this.data.fillAlpha=typeof ie=="number"&&ie>=0&&ie<=1?ie:null}}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.FakeUnicodeFont=void 0,b.createDefaultAppearance=E,b.getPdfColor=a,b.parseAppearanceStream=x,b.parseDefaultAppearance=I;var n=ce(4),P=ce(3),D=ce(2),e=ce(12),t=ce(13),c=ce(59),Y=ce(57),ee=ce(8);class N extends t.EvaluatorPreprocessor{constructor(M){super(new ee.StringStream(M))}parse(){const M={fn:0,args:[]},B={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;M.args.length=0,!!this.read(M);){if(this.savedStatesDepth!==0)continue;const{fn:z,args:W}=M;switch(z|0){case D.OPS.setFont:const[d,T]=W;d instanceof n.Name&&(B.fontName=d.name),typeof T=="number"&&T>0&&(B.fontSize=T);break;case D.OPS.setFillRGBColor:e.ColorSpace.singletons.rgb.getRgbItem(W,0,B.fontColor,0);break;case D.OPS.setFillGray:e.ColorSpace.singletons.gray.getRgbItem(W,0,B.fontColor,0);break;case D.OPS.setFillCMYKColor:e.ColorSpace.singletons.cmyk.getRgbItem(W,0,B.fontColor,0);break}}}catch(z){(0,D.warn)(`parseDefaultAppearance - ignoring errors: "${z}".`)}return B}}function I(O){return new N(O).parse()}class f extends t.EvaluatorPreprocessor{constructor(M,B,z){var W;super(M),this.stream=M,this.evaluatorOptions=B,this.xref=z,this.resources=(W=M.dict)==null?void 0:W.get("Resources")}parse(){const M={fn:0,args:[]};let B={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:e.ColorSpace.singletons.gray},z=!1;const W=[];try{for(;M.args.length=0,!(z||!this.read(M));){const{fn:d,args:T}=M;switch(d|0){case D.OPS.save:W.push({scaleFactor:B.scaleFactor,fontSize:B.fontSize,fontName:B.fontName,fontColor:B.fontColor.slice(),fillColorSpace:B.fillColorSpace});break;case D.OPS.restore:B=W.pop()||B;break;case D.OPS.setTextMatrix:B.scaleFactor*=Math.hypot(T[0],T[1]);break;case D.OPS.setFont:const[o,l]=T;o instanceof n.Name&&(B.fontName=o.name),typeof l=="number"&&l>0&&(B.fontSize=l*B.scaleFactor);break;case D.OPS.setFillColorSpace:B.fillColorSpace=e.ColorSpace.parse({cs:T[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case D.OPS.setFillColor:B.fillColorSpace.getRgbItem(T,0,B.fontColor,0);break;case D.OPS.setFillRGBColor:e.ColorSpace.singletons.rgb.getRgbItem(T,0,B.fontColor,0);break;case D.OPS.setFillGray:e.ColorSpace.singletons.gray.getRgbItem(T,0,B.fontColor,0);break;case D.OPS.setFillCMYKColor:e.ColorSpace.singletons.cmyk.getRgbItem(T,0,B.fontColor,0);break;case D.OPS.showText:case D.OPS.showSpacedText:case D.OPS.nextLineShowText:case D.OPS.nextLineSetSpacingShowText:z=!0;break}}}catch(d){(0,D.warn)(`parseAppearanceStream - ignoring errors: "${d}".`)}return this.stream.reset(),delete B.scaleFactor,delete B.fillColorSpace,B}get _localColorSpaceCache(){return(0,D.shadow)(this,"_localColorSpaceCache",new c.LocalColorSpaceCache)}get _pdfFunctionFactory(){const M=new Y.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return(0,D.shadow)(this,"_pdfFunctionFactory",M)}}function x(O,M,B){return new f(O,M,B).parse()}function a(O,M){if(O[0]===O[1]&&O[1]===O[2]){const B=O[0]/255;return`${(0,P.numberToString)(B)} ${M?"g":"G"}`}return Array.from(O,B=>(0,P.numberToString)(B/255)).join(" ")+` ${M?"rg":"RG"}`}function E({fontSize:O,fontName:M,fontColor:B}){return`/${(0,P.escapePDFName)(M)} ${O} Tf ${a(B,!0)}`}class w{constructor(M,B){this.xref=M,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=B;const z=new OffscreenCanvas(1,1);this.ctxMeasure=z.getContext("2d"),w._fontNameId||(w._fontNameId=1),this.fontName=n.Name.get(`InvalidPDFjsFont_${B}_${w._fontNameId++}`)}get toUnicodeRef(){if(!w._toUnicodeRef){const M=`/CIDInit /ProcSet findresource begin
- 12 dict begin
- begincmap
- /CIDSystemInfo
- << /Registry (Adobe)
- /Ordering (UCS) /Supplement 0 >> def
- /CMapName /Adobe-Identity-UCS def
- /CMapType 2 def
- 1 begincodespacerange
- <0000> <FFFF>
- endcodespacerange
- 1 beginbfrange
- <0000> <FFFF> <0000>
- endbfrange
- endcmap CMapName currentdict /CMap defineresource pop end end`,B=w.toUnicodeStream=new ee.StringStream(M),z=new n.Dict(this.xref);B.dict=z,z.set("Length",M.length),w._toUnicodeRef=this.xref.getNewPersistentRef(B)}return w._toUnicodeRef}get fontDescriptorRef(){if(!w._fontDescriptorRef){const M=new n.Dict(this.xref);M.set("Type",n.Name.get("FontDescriptor")),M.set("FontName",this.fontName),M.set("FontFamily","MyriadPro Regular"),M.set("FontBBox",[0,0,0,0]),M.set("FontStretch",n.Name.get("Normal")),M.set("FontWeight",400),M.set("ItalicAngle",0),w._fontDescriptorRef=this.xref.getNewPersistentRef(M)}return w._fontDescriptorRef}get descendantFontRef(){const M=new n.Dict(this.xref);M.set("BaseFont",this.fontName),M.set("Type",n.Name.get("Font")),M.set("Subtype",n.Name.get("CIDFontType0")),M.set("CIDToGIDMap",n.Name.get("Identity")),M.set("FirstChar",this.firstChar),M.set("LastChar",this.lastChar),M.set("FontDescriptor",this.fontDescriptorRef),M.set("DW",1e3);const B=[],z=[...this.widths.entries()].sort();let W=null,d=null;for(const[o,l]of z){if(!W){W=o,d=[l];continue}o===W+d.length?d.push(l):(B.push(W,d),W=o,d=[l])}W&&B.push(W,d),M.set("W",B);const T=new n.Dict(this.xref);return T.set("Ordering","Identity"),T.set("Registry","Adobe"),T.set("Supplement",0),M.set("CIDSystemInfo",T),this.xref.getNewPersistentRef(M)}get baseFontRef(){const M=new n.Dict(this.xref);return M.set("BaseFont",this.fontName),M.set("Type",n.Name.get("Font")),M.set("Subtype",n.Name.get("Type0")),M.set("Encoding",n.Name.get("Identity-H")),M.set("DescendantFonts",[this.descendantFontRef]),M.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(M)}get resources(){const M=new n.Dict(this.xref),B=new n.Dict(this.xref);return B.set(this.fontName.name,this.baseFontRef),M.set("Font",B),M}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(M){const B=this._createContext();for(const z of M.split(/\r\n?|\n/))for(const W of z.split("")){const d=W.charCodeAt(0);if(this.widths.has(d))continue;const T=B.measureText(W),o=Math.ceil(T.width);this.widths.set(d,o),this.firstChar=Math.min(d,this.firstChar),this.lastChar=Math.max(d,this.lastChar)}return this.resources}createAppearance(M,B,z,W,d,T){const o=this._createContext(),l=[];let F=-1/0;for(const Z of M.split(/\r\n?|\n/)){l.push(Z);const K=o.measureText(Z).width;F=Math.max(F,K);for(const S of Z.split("")){const k=S.charCodeAt(0);let _=this.widths.get(k);if(_===void 0){const G=o.measureText(S);_=Math.ceil(G.width),this.widths.set(k,_),this.firstChar=Math.min(k,this.firstChar),this.lastChar=Math.max(k,this.lastChar)}}}F*=W/1e3;const[s,r,u,C]=B;let g=u-s,p=C-r;z%180!==0&&([g,p]=[p,g]);let X=1;F>g&&(X=g/F);let $=1;const y=D.LINE_FACTOR*W,v=D.LINE_DESCENT_FACTOR*W,m=y*l.length;m>p&&($=p/m);const h=Math.min(X,$),A=W*h,j=["q",`0 0 ${(0,P.numberToString)(g)} ${(0,P.numberToString)(p)} re W n`,"BT",`1 0 0 1 0 ${(0,P.numberToString)(p+v)} Tm 0 Tc ${a(d,!0)}`,`/${this.fontName.name} ${(0,P.numberToString)(A)} Tf`],{resources:H}=this;if(T=typeof T=="number"&&T>=0&&T<=1?T:1,T!==1){j.push("/R0 gs");const Z=new n.Dict(this.xref),K=new n.Dict(this.xref);K.set("ca",T),K.set("CA",T),K.set("Type",n.Name.get("ExtGState")),Z.set("R0",K),H.set("ExtGState",Z)}const J=(0,P.numberToString)(y);for(const Z of l)j.push(`0 -${J} Td <${(0,P.stringToUTF16HexString)(Z)}> Tj`);j.push("ET","Q");const oe=j.join(`
- `),q=new n.Dict(this.xref);if(q.set("Subtype",n.Name.get("Form")),q.set("Type",n.Name.get("XObject")),q.set("BBox",[0,0,g,p]),q.set("Length",oe.length),q.set("Resources",H),z){const Z=(0,P.getRotationMatrix)(z,g,p);q.set("Matrix",Z)}const re=new ee.StringStream(oe);return re.dict=q,re}}b.FakeUnicodeFont=w},(Re,b,ce)=>{var O,Xn,B,Hn,W,d,T,o,l,F,s,r,u,on,g,Jn,X,Zn,y,yn,m,cn,A,ln,H,Qn,oe,ea,re,ta,K,zn,_,wn,Q,Sn,ae,Gn;Object.defineProperty(b,"__esModule",{value:!0}),b.ColorSpace=void 0;var n=ce(2),P=ce(4),D=ce(5),e=ce(3);function t(ne,V,L,te,se,le,ue){ue=ue!==1?0:ue;const ge=L/se,xe=te/le;let me=0,be;const ye=new Uint16Array(se),Se=L*3;for(let pe=0;pe<se;pe++)ye[pe]=Math.floor(pe*ge)*3;for(let pe=0;pe<le;pe++){const he=Math.floor(pe*xe)*Se;for(let de=0;de<se;de++)be=he+ye[de],V[me++]=ne[be++],V[me++]=ne[be++],V[me++]=ne[be++],me+=ue}}class c{constructor(V,L){this.constructor===c&&(0,n.unreachable)("Cannot initialize ColorSpace."),this.name=V,this.numComps=L}getRgb(V,L){const te=new Uint8ClampedArray(3);return this.getRgbItem(V,L,te,0),te}getRgbItem(V,L,te,se){(0,n.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(V,L,te,se,le,ue,fe){(0,n.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(V,L){(0,n.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(V){return!1}isDefaultDecode(V,L){return c.isDefaultDecode(V,this.numComps)}fillRgb(V,L,te,se,le,ue,fe,ge,xe){const me=L*te;let be=null;const ye=1<<fe,Se=te!==le||L!==se;if(this.isPassthrough(fe))be=ge;else if(this.numComps===1&&me>ye&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const pe=fe<=8?new Uint8Array(ye):new Uint16Array(ye);for(let de=0;de<ye;de++)pe[de]=de;const he=new Uint8ClampedArray(ye*3);if(this.getRgbBuffer(pe,0,ye,he,0,fe,0),Se){be=new Uint8Array(me*3);let de=0;for(let Ce=0;Ce<me;++Ce){const we=ge[Ce]*3;be[de++]=he[we],be[de++]=he[we+1],be[de++]=he[we+2]}}else{let de=0;for(let Ce=0;Ce<me;++Ce){const we=ge[Ce]*3;V[de++]=he[we],V[de++]=he[we+1],V[de++]=he[we+2],de+=xe}}}else Se?(be=new Uint8ClampedArray(me*3),this.getRgbBuffer(ge,0,me,be,0,fe,0)):this.getRgbBuffer(ge,0,se*ue,V,0,fe,xe);if(be)if(Se)t(be,V,L,te,se,le,xe);else{let pe=0,he=0;for(let de=0,Ce=se*ue;de<Ce;de++)V[pe++]=be[he++],V[pe++]=be[he++],V[pe++]=be[he++],pe+=xe}}get usesZeroToOneRange(){return(0,n.shadow)(this,"usesZeroToOneRange",!0)}static _cache(V,L,te,se){if(!te)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!se)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');let le,ue;V instanceof P.Ref&&(ue=V,V=L.fetch(V)),V instanceof P.Name&&(le=V.name),(le||ue)&&te.set(le,ue,se)}static getCached(V,L,te){if(!te)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(V instanceof P.Ref){const se=te.getByRef(V);if(se)return se;try{V=L.fetch(V)}catch(le){if(le instanceof e.MissingDataException)throw le}}if(V instanceof P.Name){const se=te.getByName(V.name);if(se)return se}return null}static parseAsync(ue){return Ue(this,arguments,function*({cs:V,xref:L,resources:te=null,pdfFunctionFactory:se,localColorSpaceCache:le}){const fe=this._parse(V,L,te,se);return this._cache(V,L,le,fe),fe})}static parse({cs:V,xref:L,resources:te=null,pdfFunctionFactory:se,localColorSpaceCache:le}){const ue=this.getCached(V,L,le);if(ue)return ue;const fe=this._parse(V,L,te,se);return this._cache(V,L,le,fe),fe}static _parse(V,L,te=null,se){if(V=L.fetchIfRef(V),V instanceof P.Name)switch(V.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new ee(null);default:if(te instanceof P.Dict){const le=te.get("ColorSpace");if(le instanceof P.Dict){const ue=le.get(V.name);if(ue){if(ue instanceof P.Name)return this._parse(ue,L,te,se);V=ue;break}}}throw new n.FormatError(`Unrecognized ColorSpace: ${V.name}`)}if(Array.isArray(V)){const le=L.fetchIfRef(V[0]).name;let ue,fe,ge,xe,me,be;switch(le){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return ue=L.fetchIfRef(V[1]),xe=ue.getArray("WhitePoint"),me=ue.getArray("BlackPoint"),be=ue.get("Gamma"),new a(xe,me,be);case"CalRGB":ue=L.fetchIfRef(V[1]),xe=ue.getArray("WhitePoint"),me=ue.getArray("BlackPoint"),be=ue.getArray("Gamma");const ye=ue.getArray("Matrix");return new E(xe,me,be,ye);case"ICCBased":const pe=L.fetchIfRef(V[1]).dict;fe=pe.get("N");const he=pe.get("Alternate");if(he){const at=this._parse(he,L,te,se);if(at.numComps===fe)return at;(0,n.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(fe===1)return this.singletons.gray;if(fe===3)return this.singletons.rgb;if(fe===4)return this.singletons.cmyk;break;case"Pattern":return ge=V[1]||null,ge&&(ge=this._parse(ge,L,te,se)),new ee(ge);case"I":case"Indexed":ge=this._parse(V[1],L,te,se);const de=L.fetchIfRef(V[2])+1,Ce=L.fetchIfRef(V[3]);return new N(ge,de,Ce);case"Separation":case"DeviceN":const we=L.fetchIfRef(V[1]);fe=Array.isArray(we)?we.length:1,ge=this._parse(V[2],L,te,se);const Le=se.create(V[3]);return new Y(fe,ge,Le);case"Lab":ue=L.fetchIfRef(V[1]),xe=ue.getArray("WhitePoint"),me=ue.getArray("BlackPoint");const Be=ue.getArray("Range");return new w(xe,me,Be);default:throw new n.FormatError(`Unimplemented ColorSpace object: ${le}`)}}throw new n.FormatError(`Unrecognized ColorSpace object: ${V}`)}static isDefaultDecode(V,L){if(!Array.isArray(V))return!0;if(L*2!==V.length)return(0,n.warn)("The decode map is not the correct length"),!0;for(let te=0,se=V.length;te<se;te+=2)if(V[te]!==0||V[te+1]!==1)return!1;return!0}static get singletons(){return(0,n.shadow)(this,"singletons",{get gray(){return(0,n.shadow)(this,"gray",new I)},get rgb(){return(0,n.shadow)(this,"rgb",new f)},get cmyk(){return(0,n.shadow)(this,"cmyk",new x)}})}}b.ColorSpace=c;class Y extends c{constructor(V,L,te){super("Alternate",V),this.base=L,this.tintFn=te,this.tmpBuf=new Float32Array(L.numComps)}getRgbItem(V,L,te,se){const le=this.tmpBuf;this.tintFn(V,L,le,0),this.base.getRgbItem(le,0,te,se)}getRgbBuffer(V,L,te,se,le,ue,fe){const ge=this.tintFn,xe=this.base,me=1/((1<<ue)-1),be=xe.numComps,ye=xe.usesZeroToOneRange,Se=(xe.isPassthrough(8)||!ye)&&fe===0;let pe=Se?le:0;const he=Se?se:new Uint8ClampedArray(be*te),de=this.numComps,Ce=new Float32Array(de),we=new Float32Array(be);let Le,Be;for(Le=0;Le<te;Le++){for(Be=0;Be<de;Be++)Ce[Be]=V[L++]*me;if(ge(Ce,0,we,0),ye)for(Be=0;Be<be;Be++)he[pe++]=we[Be]*255;else xe.getRgbItem(we,0,he,pe),pe+=be}Se||xe.getRgbBuffer(he,0,te,se,le,8,fe)}getOutputLength(V,L){return this.base.getOutputLength(V*this.base.numComps/this.numComps,L)}}class ee extends c{constructor(V){super("Pattern",null),this.base=V}isDefaultDecode(V,L){(0,n.unreachable)("Should not call PatternCS.isDefaultDecode")}}class N extends c{constructor(V,L,te){super("Indexed",1),this.base=V,this.highVal=L;const se=V.numComps*L;if(this.lookup=new Uint8Array(se),te instanceof D.BaseStream){const le=te.getBytes(se);this.lookup.set(le)}else if(typeof te=="string")for(let le=0;le<se;++le)this.lookup[le]=te.charCodeAt(le)&255;else throw new n.FormatError(`IndexedCS - unrecognized lookup table: ${te}`)}getRgbItem(V,L,te,se){const le=this.base.numComps,ue=V[L]*le;this.base.getRgbBuffer(this.lookup,ue,1,te,se,8,0)}getRgbBuffer(V,L,te,se,le,ue,fe){const ge=this.base,xe=ge.numComps,me=ge.getOutputLength(xe,fe),be=this.lookup;for(let ye=0;ye<te;++ye){const Se=V[L++]*xe;ge.getRgbBuffer(be,Se,1,se,le,8,fe),le+=me}}getOutputLength(V,L){return this.base.getOutputLength(V*this.base.numComps,L)}isDefaultDecode(V,L){return Array.isArray(V)?V.length!==2?((0,n.warn)("Decode map length is not correct"),!0):!Number.isInteger(L)||L<1?((0,n.warn)("Bits per component is not correct"),!0):V[0]===0&&V[1]===(1<<L)-1:!0}}class I extends c{constructor(){super("DeviceGray",1)}getRgbItem(V,L,te,se){const le=V[L]*255;te[se]=te[se+1]=te[se+2]=le}getRgbBuffer(V,L,te,se,le,ue,fe){const ge=255/((1<<ue)-1);let xe=L,me=le;for(let be=0;be<te;++be){const ye=ge*V[xe++];se[me++]=ye,se[me++]=ye,se[me++]=ye,me+=fe}}getOutputLength(V,L){return V*(3+L)}}class f extends c{constructor(){super("DeviceRGB",3)}getRgbItem(V,L,te,se){te[se]=V[L]*255,te[se+1]=V[L+1]*255,te[se+2]=V[L+2]*255}getRgbBuffer(V,L,te,se,le,ue,fe){if(ue===8&&fe===0){se.set(V.subarray(L,L+te*3),le);return}const ge=255/((1<<ue)-1);let xe=L,me=le;for(let be=0;be<te;++be)se[me++]=ge*V[xe++],se[me++]=ge*V[xe++],se[me++]=ge*V[xe++],me+=fe}getOutputLength(V,L){return V*(3+L)/3|0}isPassthrough(V){return V===8}}class x extends c{constructor(){super("DeviceCMYK",4);kt(this,O)}getRgbItem(L,te,se,le){st(this,O,Xn).call(this,L,te,1,se,le)}getRgbBuffer(L,te,se,le,ue,fe,ge){const xe=1/((1<<fe)-1);for(let me=0;me<se;me++)st(this,O,Xn).call(this,L,te,xe,le,ue),te+=4,ue+=3+ge}getOutputLength(L,te){return L/4*(3+te)|0}}O=new WeakSet,Xn=function(L,te,se,le,ue){const fe=L[te]*se,ge=L[te+1]*se,xe=L[te+2]*se,me=L[te+3]*se;le[ue]=255+fe*(-4.387332384609988*fe+54.48615194189176*ge+18.82290502165302*xe+212.25662451639585*me+-285.2331026137004)+ge*(1.7149763477362134*ge-5.6096736904047315*xe+-17.873870861415444*me-5.497006427196366)+xe*(-2.5217340131683033*xe-21.248923337353073*me+17.5119270841813)+me*(-21.86122147463605*me-189.48180835922747),le[ue+1]=255+fe*(8.841041422036149*fe+60.118027045597366*ge+6.871425592049007*xe+31.159100130055922*me+-79.2970844816548)+ge*(-15.310361306967817*ge+17.575251261109482*xe+131.35250912493976*me-190.9453302588951)+xe*(4.444339102852739*xe+9.8632861493405*me-24.86741582555878)+me*(-20.737325471181034*me-187.80453709719578),le[ue+2]=255+fe*(.8842522430003296*fe+8.078677503112928*ge+30.89978309703729*xe-.23883238689178934*me+-14.183576799673286)+ge*(10.49593273432072*ge+63.02378494754052*xe+50.606957656360734*me-112.23884253719248)+xe*(.03296041114873217*xe+115.60384449646641*me+-193.58209356861505)+me*(-22.33816807309886*me-180.12613974708367)};class a extends c{constructor(L,te,se){super("CalGray",1);kt(this,B);if(!L)throw new n.FormatError("WhitePoint missing - required for color space CalGray");if([this.XW,this.YW,this.ZW]=L,[this.XB,this.YB,this.ZB]=te||[0,0,0],this.G=se||1,this.XW<0||this.ZW<0||this.YW!==1)throw new n.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,n.info)(`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)&&(0,n.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,n.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}getRgbItem(L,te,se,le){st(this,B,Hn).call(this,L,te,se,le,1)}getRgbBuffer(L,te,se,le,ue,fe,ge){const xe=1/((1<<fe)-1);for(let me=0;me<se;++me)st(this,B,Hn).call(this,L,te,le,ue,xe),te+=1,ue+=3+ge}getOutputLength(L,te){return L*(3+te)}}B=new WeakSet,Hn=function(L,te,se,le,ue){const fe=L[te]*ue,ge=Lt(fe,this.G),xe=this.YW*ge,me=Math.max(295.8*Lt(xe,.3333333333333333)-40.8,0);se[le]=me,se[le+1]=me,se[le+2]=me};const k=class extends c{constructor(L,te,se,le){super("CalRGB",3);kt(this,u);kt(this,g);kt(this,X);kt(this,y);kt(this,m);kt(this,A);kt(this,H);kt(this,oe);kt(this,re);kt(this,K);if(!L)throw new n.FormatError("WhitePoint missing - required for color space CalRGB");const[ue,fe,ge]=this.whitePoint=L,[xe,me,be]=this.blackPoint=te||new Float32Array(3);if([this.GR,this.GG,this.GB]=se||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=le||new Float32Array([1,0,0,0,1,0,0,0,1]),ue<0||ge<0||fe!==1)throw new n.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(xe<0||me<0||be<0)&&((0,n.info)(`Invalid BlackPoint for ${this.name} [${xe}, ${me}, ${be}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,n.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(L,te,se,le){st(this,K,zn).call(this,L,te,se,le,1)}getRgbBuffer(L,te,se,le,ue,fe,ge){const xe=1/((1<<fe)-1);for(let me=0;me<se;++me)st(this,K,zn).call(this,L,te,le,ue,xe),te+=3,ue+=3+ge}getOutputLength(L,te){return L*(3+te)/3|0}};let E=k;W=new WeakMap,d=new WeakMap,T=new WeakMap,o=new WeakMap,l=new WeakMap,F=new WeakMap,s=new WeakMap,r=new WeakMap,u=new WeakSet,on=function(L,te,se){se[0]=L[0]*te[0]+L[1]*te[1]+L[2]*te[2],se[1]=L[3]*te[0]+L[4]*te[1]+L[5]*te[2],se[2]=L[6]*te[0]+L[7]*te[1]+L[8]*te[2]},g=new WeakSet,Jn=function(L,te,se){se[0]=te[0]*1/L[0],se[1]=te[1]*1/L[1],se[2]=te[2]*1/L[2]},X=new WeakSet,Zn=function(L,te,se){se[0]=te[0]*.95047/L[0],se[1]=te[1]*1/L[1],se[2]=te[2]*1.08883/L[2]},y=new WeakSet,yn=function(L){return L<=.0031308?st(this,m,cn).call(this,0,1,12.92*L):L>=.99554525?1:st(this,m,cn).call(this,0,1,1.055*Lt(L,.4166666666666667)-.055)},m=new WeakSet,cn=function(L,te,se){return Math.max(L,Math.min(te,se))},A=new WeakSet,ln=function(L){return L<0?-st(this,A,ln).call(this,-L):L>8?Lt((L+16)/116,3):L*jt(k,r)},H=new WeakSet,Qn=function(L,te,se){if(L[0]===0&&L[1]===0&&L[2]===0){se[0]=te[0],se[1]=te[1],se[2]=te[2];return}const le=st(this,A,ln).call(this,0),ue=le,fe=st(this,A,ln).call(this,L[0]),ge=le,xe=st(this,A,ln).call(this,L[1]),me=le,be=st(this,A,ln).call(this,L[2]),ye=(1-ue)/(1-fe),Se=1-ye,pe=(1-ge)/(1-xe),he=1-pe,de=(1-me)/(1-be),Ce=1-de;se[0]=te[0]*ye+Se,se[1]=te[1]*pe+he,se[2]=te[2]*de+Ce},oe=new WeakSet,ea=function(L,te,se){if(L[0]===1&&L[2]===1){se[0]=te[0],se[1]=te[1],se[2]=te[2];return}const le=se;st(this,u,on).call(this,jt(k,W),te,le);const ue=jt(k,l);st(this,g,Jn).call(this,L,le,ue),st(this,u,on).call(this,jt(k,d),ue,se)},re=new WeakSet,ta=function(L,te,se){const le=se;st(this,u,on).call(this,jt(k,W),te,le);const ue=jt(k,l);st(this,X,Zn).call(this,L,le,ue),st(this,u,on).call(this,jt(k,d),ue,se)},K=new WeakSet,zn=function(L,te,se,le,ue){const fe=st(this,m,cn).call(this,0,1,L[te]*ue),ge=st(this,m,cn).call(this,0,1,L[te+1]*ue),xe=st(this,m,cn).call(this,0,1,L[te+2]*ue),me=fe===1?1:Lt(fe,this.GR),be=ge===1?1:Lt(ge,this.GG),ye=xe===1?1:Lt(xe,this.GB),Se=this.MXA*me+this.MXB*be+this.MXC*ye,pe=this.MYA*me+this.MYB*be+this.MYC*ye,he=this.MZA*me+this.MZB*be+this.MZC*ye,de=jt(k,F);de[0]=Se,de[1]=pe,de[2]=he;const Ce=jt(k,s);st(this,oe,ea).call(this,this.whitePoint,de,Ce);const we=jt(k,F);st(this,H,Qn).call(this,this.blackPoint,Ce,we);const Le=jt(k,s);st(this,re,ta).call(this,jt(k,o),we,Le);const Be=jt(k,F);st(this,u,on).call(this,jt(k,T),Le,Be),se[le]=st(this,y,yn).call(this,Be[0])*255,se[le+1]=st(this,y,yn).call(this,Be[1])*255,se[le+2]=st(this,y,yn).call(this,Be[2])*255},kt(E,W,new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])),kt(E,d,new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])),kt(E,T,new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])),kt(E,o,new Float32Array([1,1,1])),kt(E,l,new Float32Array(3)),kt(E,F,new Float32Array(3)),kt(E,s,new Float32Array(3)),kt(E,r,.0011070564598794539);class w extends c{constructor(L,te,se){super("Lab",3);kt(this,_);kt(this,Q);kt(this,ae);if(!L)throw new n.FormatError("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=L,[this.amin,this.amax,this.bmin,this.bmax]=se||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=te||[0,0,0],this.XW<0||this.ZW<0||this.YW!==1)throw new n.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,n.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,n.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(L,te,se,le){st(this,ae,Gn).call(this,L,te,!1,se,le)}getRgbBuffer(L,te,se,le,ue,fe,ge){const xe=(1<<fe)-1;for(let me=0;me<se;me++)st(this,ae,Gn).call(this,L,te,xe,le,ue),te+=3,ue+=3+ge}getOutputLength(L,te){return L*(3+te)/3|0}isDefaultDecode(L,te){return!0}get usesZeroToOneRange(){return(0,n.shadow)(this,"usesZeroToOneRange",!1)}}_=new WeakSet,wn=function(L){return L>=.20689655172413793?Lt(L,3):.12841854934601665*(L-.13793103448275862)},Q=new WeakSet,Sn=function(L,te,se,le){return se+L*(le-se)/te},ae=new WeakSet,Gn=function(L,te,se,le,ue){let fe=L[te],ge=L[te+1],xe=L[te+2];se!==!1&&(fe=st(this,Q,Sn).call(this,fe,se,0,100),ge=st(this,Q,Sn).call(this,ge,se,this.amin,this.amax),xe=st(this,Q,Sn).call(this,xe,se,this.bmin,this.bmax)),ge>this.amax?ge=this.amax:ge<this.amin&&(ge=this.amin),xe>this.bmax?xe=this.bmax:xe<this.bmin&&(xe=this.bmin);const me=(fe+16)/116,be=me+ge/500,ye=me-xe/200,Se=this.XW*st(this,_,wn).call(this,be),pe=this.YW*st(this,_,wn).call(this,me),he=this.ZW*st(this,_,wn).call(this,ye);let de,Ce,we;this.ZW<1?(de=Se*3.1339+pe*-1.617+he*-.4906,Ce=Se*-.9785+pe*1.916+he*.0333,we=Se*.072+pe*-.229+he*1.4057):(de=Se*3.2406+pe*-1.5372+he*-.4986,Ce=Se*-.9689+pe*1.8758+he*.0415,we=Se*.0557+pe*-.204+he*1.057),le[ue]=Math.sqrt(de)*255,le[ue+1]=Math.sqrt(Ce)*255,le[ue+2]=Math.sqrt(we)*255}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.PartialEvaluator=b.EvaluatorPreprocessor=void 0;var n=ce(2),P=ce(14),D=ce(4),e=ce(34),t=ce(37),c=ce(41),Y=ce(50),ee=ce(51),N=ce(42),I=ce(57),f=ce(16),x=ce(59),a=ce(8),E=ce(5),w=ce(60),O=ce(12),M=ce(18),B=ce(38),z=ce(61),W=ce(39),d=ce(45),T=ce(40),o=ce(62),l=ce(63),F=ce(64),s=ce(65);const r=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),u={TILING:1,SHADING:2},C=10,g=Promise.resolve();function p(oe,q=!1){if(Array.isArray(oe)){for(const re of oe){const Z=p(re,!0);if(Z)return Z}return(0,n.warn)(`Unsupported blend mode Array: ${oe}`),"source-over"}if(!(oe instanceof D.Name))return q?null:"source-over";switch(oe.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 q?null:((0,n.warn)(`Unsupported blend mode: ${oe.name}`),"source-over")}function X(oe){var q;oe.fn===n.OPS.paintImageMaskXObject&&((q=oe.args[0])==null?void 0:q.count)>0&&oe.args[0].count++}const H=class{constructor(){this.reset()}check(){return++this.checked<H.CHECK_TIME_EVERY?!1:(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+H.TIME_SLOT_DURATION_MS,this.checked=0}};let $=H;_t($,"TIME_SLOT_DURATION_MS",20),_t($,"CHECK_TIME_EVERY",100);class y{constructor({xref:q,handler:re,pageIndex:Z,idFactory:K,fontCache:S,builtInCMapCache:k,standardFontDataCache:_,globalImageCache:G,systemFontCache:Q,options:ie=null}){this.xref=q,this.handler=re,this.pageIndex=Z,this.idFactory=K,this.fontCache=S,this.builtInCMapCache=k,this.standardFontDataCache=_,this.globalImageCache=G,this.systemFontCache=Q,this.options=ie||r,this.parsingType3Font=!1,this._regionalImageCache=new x.RegionalImageCache,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this),o.ImageResizer.setMaxArea(this.options.canvasMaxAreaInBytes)}get _pdfFunctionFactory(){const q=new I.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,n.shadow)(this,"_pdfFunctionFactory",q)}clone(q=null){const re=Object.create(this);return re.options=Object.assign(Object.create(null),this.options,q),re}hasBlendModes(q,re){if(!(q instanceof D.Dict)||q.objId&&re.has(q.objId))return!1;const Z=new D.RefSet(re);q.objId&&Z.put(q.objId);const K=[q],S=this.xref;for(;K.length;){const k=K.shift(),_=k.get("ExtGState");if(_ instanceof D.Dict)for(let Q of _.getRawValues()){if(Q instanceof D.Ref){if(Z.has(Q))continue;try{Q=S.fetch(Q)}catch(ae){Z.put(Q),(0,n.info)(`hasBlendModes - ignoring ExtGState: "${ae}".`);continue}}if(!(Q instanceof D.Dict))continue;Q.objId&&Z.put(Q.objId);const ie=Q.get("BM");if(ie instanceof D.Name){if(ie.name!=="Normal")return!0;continue}if(ie!==void 0&&Array.isArray(ie)){for(const ae of ie)if(ae instanceof D.Name&&ae.name!=="Normal")return!0}}const G=k.get("XObject");if(G instanceof D.Dict)for(let Q of G.getRawValues()){if(Q instanceof D.Ref){if(Z.has(Q))continue;try{Q=S.fetch(Q)}catch(ae){Z.put(Q),(0,n.info)(`hasBlendModes - ignoring XObject: "${ae}".`);continue}}if(!(Q instanceof E.BaseStream))continue;Q.dict.objId&&Z.put(Q.dict.objId);const ie=Q.dict.get("Resources");ie instanceof D.Dict&&(ie.objId&&Z.has(ie.objId)||(K.push(ie),ie.objId&&Z.put(ie.objId)))}}for(const k of Z)re.put(k);return!1}fetchBuiltInCMap(q){return Ue(this,null,function*(){const re=this.builtInCMapCache.get(q);if(re)return re;let Z;if(this.options.cMapUrl!==null){const K=`${this.options.cMapUrl}${q}.bcmap`,S=yield fetch(K);if(!S.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${K}" with "${S.statusText}".`);Z={cMapData:new Uint8Array(yield S.arrayBuffer()),compressionType:n.CMapCompressionType.BINARY}}else Z=yield this.handler.sendWithPromise("FetchBuiltInCMap",{name:q});return Z.compressionType!==n.CMapCompressionType.NONE&&this.builtInCMapCache.set(q,Z),Z})}fetchStandardFontData(q){return Ue(this,null,function*(){const re=this.standardFontDataCache.get(q);if(re)return new a.Stream(re);if(this.options.useSystemFonts&&q!=="Symbol"&&q!=="ZapfDingbats")return null;const Z=(0,c.getFontNameToFileMap)(),K=Z[q];let S;if(this.options.standardFontDataUrl!==null){const k=`${this.options.standardFontDataUrl}${K}`,_=yield fetch(k);_.ok?S=yield _.arrayBuffer():(0,n.warn)(`fetchStandardFontData: failed to fetch file "${k}" with "${_.statusText}".`)}else try{S=yield this.handler.sendWithPromise("FetchStandardFontData",{filename:K})}catch(k){(0,n.warn)(`fetchStandardFontData: failed to fetch file "${K}" with "${k}".`)}return S?(this.standardFontDataCache.set(q,S),new a.Stream(S)):null})}buildFormXObject(q,re,Z,K,S,k,_){return Ue(this,null,function*(){const G=re.dict,Q=G.getArray("Matrix");let ie=G.getArray("BBox");ie=Array.isArray(ie)&&ie.length===4?n.Util.normalizeRect(ie):null;let ae,U;G.has("OC")&&(ae=yield this.parseMarkedContentProps(G.get("OC"),q)),ae!==void 0&&K.addOp(n.OPS.beginMarkedContentProps,["OC",ae]);const ne=G.get("Group");if(ne){U={matrix:Q,bbox:ie,smask:Z,isolated:!1,knockout:!1};const L=ne.get("S");let te=null;if((0,D.isName)(L,"Transparency")&&(U.isolated=ne.get("I")||!1,U.knockout=ne.get("K")||!1,ne.has("CS"))){const se=ne.getRaw("CS"),le=O.ColorSpace.getCached(se,this.xref,_);le?te=le:te=yield this.parseColorSpace({cs:se,resources:q,localColorSpaceCache:_})}Z!=null&&Z.backdrop&&(te||(te=O.ColorSpace.singletons.rgb),Z.backdrop=te.getRgb(Z.backdrop,0)),K.addOp(n.OPS.beginGroup,[U])}const V=ne?[Q,null]:[Q,ie];return K.addOp(n.OPS.paintFormXObjectBegin,V),this.getOperatorList({stream:re,task:S,resources:G.get("Resources")||q,operatorList:K,initialState:k}).then(function(){K.addOp(n.OPS.paintFormXObjectEnd,[]),ne&&K.addOp(n.OPS.endGroup,[U]),ae!==void 0&&K.addOp(n.OPS.endMarkedContent,[])})})}_sendImgData(q,re,Z=!1){const K=re?[re.bitmap||re.data.buffer]:null;return this.parsingType3Font||Z?this.handler.send("commonobj",[q,"Image",re],K):this.handler.send("obj",[q,this.pageIndex,"Image",re],K)}buildPaintImageXObject(G){return Ue(this,arguments,function*({resources:q,image:re,isInline:Z=!1,operatorList:K,cacheKey:S,localImageCache:k,localColorSpaceCache:_}){const Q=re.dict,ie=Q.objId,ae=Q.get("W","Width"),U=Q.get("H","Height");if(!(ae&&typeof ae=="number")||!(U&&typeof U=="number")){(0,n.warn)("Image dimensions are missing, or not numbers.");return}const ne=this.options.maxImageSize;if(ne!==-1&&ae*U>ne){const ge="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,n.warn)(ge);return}throw new Error(ge)}let V;Q.has("OC")&&(V=yield this.parseMarkedContentProps(Q.get("OC"),q));const L=Q.get("IM","ImageMask")||!1;let te,se;if(L){const ge=Q.get("I","Interpolate"),xe=ae+7>>3,me=re.getBytes(xe*U),be=Q.getArray("D","Decode");if(this.parsingType3Font){if(te=s.PDFImage.createRawMask({imgArray:me,width:ae,height:U,imageIsFromDecodeStream:re instanceof M.DecodeStream,inverseDecode:(be==null?void 0:be[0])>0,interpolate:ge}),te.cached=!!S,se=[te],K.addImageOps(n.OPS.paintImageMaskXObject,se,V),S){const Se={fn:n.OPS.paintImageMaskXObject,args:se,optionalContent:V};k.set(S,ie,Se),ie&&this._regionalImageCache.set(null,ie,Se)}return}if(te=yield s.PDFImage.createMask({imgArray:me,width:ae,height:U,imageIsFromDecodeStream:re instanceof M.DecodeStream,inverseDecode:(be==null?void 0:be[0])>0,interpolate:ge,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported}),te.isSingleOpaquePixel){if(K.addImageOps(n.OPS.paintSolidColorImageMask,[],V),S){const Se={fn:n.OPS.paintSolidColorImageMask,args:[],optionalContent:V};k.set(S,ie,Se),ie&&this._regionalImageCache.set(null,ie,Se)}return}const ye=`mask_${this.idFactory.createObjId()}`;if(K.addDependency(ye),this._sendImgData(ye,te),se=[{data:ye,width:te.width,height:te.height,interpolate:te.interpolate,count:1}],K.addImageOps(n.OPS.paintImageMaskXObject,se,V),S){const Se={fn:n.OPS.paintImageMaskXObject,args:se,optionalContent:V};k.set(S,ie,Se),ie&&this._regionalImageCache.set(null,ie,Se)}return}const le=200;if(Z&&!Q.has("SMask")&&!Q.has("Mask")&&ae+U<le){te=yield new s.PDFImage({xref:this.xref,res:q,image:re,isInline:Z,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:_}).createImageData(!0,!1),K.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,K.addImageOps(n.OPS.paintInlineImageXObject,[te],V);return}let ue=`img_${this.idFactory.createObjId()}`,fe=!1;if(this.parsingType3Font?ue=`${this.idFactory.getDocId()}_type3_${ue}`:ie&&(fe=this.globalImageCache.shouldCache(ie,this.pageIndex),fe&&(ue=`${this.idFactory.getDocId()}_${ue}`)),K.addDependency(ue),se=[ue,ae,U],s.PDFImage.buildImage({xref:this.xref,res:q,image:re,isInline:Z,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:_}).then(ge=>Ue(this,null,function*(){if(te=yield ge.createImageData(!1,this.options.isOffscreenCanvasSupported),S&&ie&&fe){const xe=te.bitmap?te.width*te.height*4:te.data.length;this.globalImageCache.addByteSize(ie,xe)}return this._sendImgData(ue,te,fe)})).catch(ge=>((0,n.warn)(`Unable to decode image "${ue}": "${ge}".`),this._sendImgData(ue,null,fe))),K.addImageOps(n.OPS.paintImageXObject,se,V),S){const ge={fn:n.OPS.paintImageXObject,args:se,optionalContent:V};k.set(S,ie,ge),ie&&(this._regionalImageCache.set(null,ie,ge),fe&&((0,n.assert)(!Z,"Cannot cache an inline image globally."),this.globalImageCache.setData(ie,{objId:ue,fn:n.OPS.paintImageXObject,args:se,optionalContent:V,byteSize:0})))}})}handleSMask(q,re,Z,K,S,k){const _=q.get("G"),G={subtype:q.get("S").name,backdrop:q.get("BC")},Q=q.get("TR");if((0,I.isPDFFunction)(Q)){const ie=this._pdfFunctionFactory.create(Q),ae=new Uint8Array(256),U=new Float32Array(1);for(let ne=0;ne<256;ne++)U[0]=ne/255,ie(U,0,U,0),ae[ne]=U[0]*255|0;G.transferMap=ae}return this.buildFormXObject(re,_,G,Z,K,S.state.clone(),k)}handleTransferFunction(q){let re;if(Array.isArray(q))re=q;else if((0,I.isPDFFunction)(q))re=[q];else return null;const Z=[];let K=0,S=0;for(const k of re){const _=this.xref.fetchIfRef(k);if(K++,(0,D.isName)(_,"Identity")){Z.push(null);continue}else if(!(0,I.isPDFFunction)(_))return null;const G=this._pdfFunctionFactory.create(_),Q=new Uint8Array(256),ie=new Float32Array(1);for(let ae=0;ae<256;ae++)ie[0]=ae/255,G(ie,0,ie,0),Q[ae]=ie[0]*255|0;Z.push(Q),S++}return!(K===1||K===4)||S===0?null:Z}handleTilingType(q,re,Z,K,S,k,_,G){const Q=new F.OperatorList,ie=D.Dict.merge({xref:this.xref,dictArray:[S.get("Resources"),Z]});return this.getOperatorList({stream:K,task:_,resources:ie,operatorList:Q}).then(function(){const ae=Q.getIR(),U=(0,Y.getTilingPatternIR)(ae,S,re);k.addDependencies(Q.dependencies),k.addOp(q,U),S.objId&&G.set(null,S.objId,{operatorListIR:ae,dict:S})}).catch(ae=>{if(!(ae instanceof n.AbortException)){if(this.options.ignoreErrors){(0,n.warn)(`handleTilingType - ignoring pattern: "${ae}".`);return}throw ae}})}handleSetFont(q,re,Z,K,S,k,_=null,G=null){const Q=(re==null?void 0:re[0])instanceof D.Name?re[0].name:null;return this.loadFont(Q,Z,q,_,G).then(ie=>ie.font.isType3Font?ie.loadType3Data(this,q,S).then(function(){return K.addDependencies(ie.type3Dependencies),ie}).catch(ae=>new v({loadedName:"g_font_error",font:new e.ErrorFont(`Type3 font load error: ${ae}`),dict:ie.font,evaluatorOptions:this.options})):ie).then(ie=>(k.font=ie.font,ie.send(this.handler),ie.loadedName))}handleText(q,re){const Z=re.font,K=Z.charsToGlyphs(q);return Z.data&&(!!(re.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG)||re.fillColorSpace.name==="Pattern"||Z.disableFontFace||this.options.disableFontFace)&&y.buildFontPaths(Z,K,this.handler,this.options),K}ensureStateFont(q){if(q.font)return;const re=new n.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){(0,n.warn)(`ensureStateFont: "${re}".`);return}throw re}setGState(Q){return Ue(this,arguments,function*({resources:q,gState:re,operatorList:Z,cacheKey:K,task:S,stateManager:k,localGStateCache:_,localColorSpaceCache:G}){const ie=re.objId;let ae=!0;const U=[];let ne=Promise.resolve();for(const V of re.getKeys()){const L=re.get(V);switch(V){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":U.push([V,L]);break;case"Font":ae=!1,ne=ne.then(()=>this.handleSetFont(q,null,L[0],Z,S,k.state).then(function(se){Z.addDependency(se),U.push([V,[se,L[1]]])}));break;case"BM":U.push([V,p(L)]);break;case"SMask":if((0,D.isName)(L,"None")){U.push([V,!1]);break}L instanceof D.Dict?(ae=!1,ne=ne.then(()=>this.handleSMask(L,q,Z,S,k,G)),U.push([V,!0])):(0,n.warn)("Unsupported SMask type");break;case"TR":const te=this.handleTransferFunction(L);U.push([V,te]);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":(0,n.info)("graphic state operator "+V);break;default:(0,n.info)("Unknown graphic state operator "+V);break}}return ne.then(function(){U.length>0&&Z.addOp(n.OPS.setGState,[U]),ae&&_.set(K,ie,U)})})}loadFont(q,re,Z,K=null,S=null){const k=()=>Ue(this,null,function*(){return new v({loadedName:"g_font_error",font:new e.ErrorFont(`Font "${q}" is not available.`),dict:re,evaluatorOptions:this.options})});let _;if(re)re instanceof D.Ref&&(_=re);else{const V=Z.get("Font");V&&(_=V.getRaw(q))}if(_){if(this.parsingType3Font&&this.type3FontRefs.has(_))return k();if(this.fontCache.has(_))return this.fontCache.get(_);re=this.xref.fetchIfRef(_)}if(!(re instanceof D.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,n.warn)(`Font "${q}" is not available.`),k();(0,n.warn)(`Font "${q}" is not available -- attempting to fallback to a default font.`),re=K||y.fallbackFontDict}if(re.cacheKey&&this.fontCache.has(re.cacheKey))return this.fontCache.get(re.cacheKey);const G=new n.PromiseCapability;let Q;try{Q=this.preEvaluateFont(re),Q.cssFontInfo=S}catch(V){return(0,n.warn)(`loadFont - preEvaluateFont failed: "${V}".`),k()}const{descriptor:ie,hash:ae}=Q,U=_ instanceof D.Ref;let ne;if(ae&&ie instanceof D.Dict){const V=ie.fontAliases||(ie.fontAliases=Object.create(null));if(V[ae]){const L=V[ae].aliasRef;if(U&&L&&this.fontCache.has(L))return this.fontCache.putAlias(_,L),this.fontCache.get(_)}else V[ae]={fontID:this.idFactory.createFontId()};U&&(V[ae].aliasRef=_),ne=V[ae].fontID}else ne=this.idFactory.createFontId();return(0,n.assert)(ne==null?void 0:ne.startsWith("f"),'The "fontID" must be (correctly) defined.'),U?this.fontCache.put(_,G.promise):(re.cacheKey=`cacheKey_${ne}`,this.fontCache.put(re.cacheKey,G.promise)),re.loadedName=`${this.idFactory.getDocId()}_${ne}`,this.translateFont(Q).then(V=>{G.resolve(new v({loadedName:re.loadedName,font:V,dict:re,evaluatorOptions:this.options}))}).catch(V=>{(0,n.warn)(`loadFont - translateFont failed: "${V}".`),G.resolve(new v({loadedName:re.loadedName,font:new e.ErrorFont(V instanceof Error?V.message:V),dict:re,evaluatorOptions:this.options}))}),G.promise}buildPath(q,re,Z,K=!1){const S=q.length-1;if(Z||(Z=[]),S<0||q.fnArray[S]!==n.OPS.constructPath){K&&((0,n.warn)(`Encountered path operator "${re}" inside of a text object.`),q.addOp(n.OPS.save,null));let k;switch(re){case n.OPS.rectangle:const _=Z[0]+Z[2],G=Z[1]+Z[3];k=[Math.min(Z[0],_),Math.max(Z[0],_),Math.min(Z[1],G),Math.max(Z[1],G)];break;case n.OPS.moveTo:case n.OPS.lineTo:k=[Z[0],Z[0],Z[1],Z[1]];break;default:k=[1/0,-1/0,1/0,-1/0];break}q.addOp(n.OPS.constructPath,[[re],Z,k]),K&&q.addOp(n.OPS.restore,null)}else{const k=q.argsArray[S];k[0].push(re),k[1].push(...Z);const _=k[2];switch(re){case n.OPS.rectangle:const G=Z[0]+Z[2],Q=Z[1]+Z[3];_[0]=Math.min(_[0],Z[0],G),_[1]=Math.max(_[1],Z[0],G),_[2]=Math.min(_[2],Z[1],Q),_[3]=Math.max(_[3],Z[1],Q);break;case n.OPS.moveTo:case n.OPS.lineTo:_[0]=Math.min(_[0],Z[0]),_[1]=Math.max(_[1],Z[0]),_[2]=Math.min(_[2],Z[1]),_[3]=Math.max(_[3],Z[1]);break}}}parseColorSpace({cs:q,resources:re,localColorSpaceCache:Z}){return O.ColorSpace.parseAsync({cs:q,xref:this.xref,resources:re,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:Z}).catch(K=>{if(K instanceof n.AbortException)return null;if(this.options.ignoreErrors)return(0,n.warn)(`parseColorSpace - ignoring ColorSpace: "${K}".`),null;throw K})}parseShading({shading:q,resources:re,localColorSpaceCache:Z,localShadingPatternCache:K}){let S=K.get(q);if(!S){var k=Y.Pattern.parseShading(q,this.xref,re,this._pdfFunctionFactory,Z);const _=k.getIR();S=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(S=`${this.idFactory.getDocId()}_type3_${S}`),K.set(q,S),this.parsingType3Font?this.handler.send("commonobj",[S,"Pattern",_]):this.handler.send("obj",[S,this.pageIndex,"Pattern",_])}return S}handleColorN(q,re,Z,K,S,k,_,G,Q,ie){const ae=Z.pop();if(ae instanceof D.Name){const U=S.getRaw(ae.name),ne=U instanceof D.Ref&&Q.getByRef(U);if(ne)try{const L=K.base?K.base.getRgb(Z,0):null,te=(0,Y.getTilingPatternIR)(ne.operatorListIR,ne.dict,L);q.addOp(re,te);return}catch(L){}const V=this.xref.fetchIfRef(U);if(V){const L=V instanceof E.BaseStream?V.dict:V,te=L.get("PatternType");if(te===u.TILING){const se=K.base?K.base.getRgb(Z,0):null;return this.handleTilingType(re,se,k,V,L,q,_,Q)}else if(te===u.SHADING){const se=L.get("Shading"),le=L.getArray("Matrix"),ue=this.parseShading({shading:se,resources:k,localColorSpaceCache:G,localShadingPatternCache:ie});q.addOp(re,["Shading",ue,le]);return}throw new n.FormatError(`Unknown PatternType: ${te}`)}}throw new n.FormatError(`Unknown PatternName: ${ae}`)}_parseVisibilityExpression(q,re,Z){if(++re>10){(0,n.warn)("Visibility expression is too deeply nested");return}const S=q.length,k=this.xref.fetchIfRef(q[0]);if(S<2||!(k instanceof D.Name)){(0,n.warn)("Invalid visibility expression");return}switch(k.name){case"And":case"Or":case"Not":Z.push(k.name);break;default:(0,n.warn)(`Invalid operator ${k.name} in visibility expression`);return}for(let _=1;_<S;_++){const G=q[_],Q=this.xref.fetchIfRef(G);if(Array.isArray(Q)){const ie=[];Z.push(ie),this._parseVisibilityExpression(Q,re,ie)}else G instanceof D.Ref&&Z.push(G.toString())}}parseMarkedContentProps(q,re){return Ue(this,null,function*(){var S;let Z;if(q instanceof D.Name)Z=re.get("Properties").get(q.name);else if(q instanceof D.Dict)Z=q;else throw new n.FormatError("Optional content properties malformed.");const K=(S=Z.get("Type"))==null?void 0:S.name;if(K==="OCG")return{type:K,id:Z.objId};if(K==="OCMD"){const k=Z.get("VE");if(Array.isArray(k)){const G=[];if(this._parseVisibilityExpression(k,0,G),G.length>0)return{type:"OCMD",expression:G}}const _=Z.get("OCGs");if(Array.isArray(_)||_ instanceof D.Dict){const G=[];if(Array.isArray(_))for(const Q of _)G.push(Q.toString());else G.push(_.objId);return{type:K,ids:G,policy:Z.get("P")instanceof D.Name?Z.get("P").name:null,expression:null}}else if(_ instanceof D.Ref)return{type:K,id:_.toString()}}return null})}getOperatorList({stream:q,task:re,resources:Z,operatorList:K,initialState:S=null,fallbackFontDict:k=null}){if(Z||(Z=D.Dict.empty),S||(S=new A),!K)throw new Error('getOperatorList: missing "operatorList" parameter');const _=this,G=this.xref;let Q=!1;const ie=new x.LocalImageCache,ae=new x.LocalColorSpaceCache,U=new x.LocalGStateCache,ne=new x.LocalTilingPatternCache,V=new Map,L=Z.get("XObject")||D.Dict.empty,te=Z.get("Pattern")||D.Dict.empty,se=new m(S),le=new j(q,G,se),ue=new $;function fe(ge){for(let xe=0,me=le.savedStatesDepth;xe<me;xe++)K.addOp(n.OPS.restore,[])}return new Promise(function ge(xe,me){const be=function(Pe){Promise.all([Pe,K.ready]).then(function(){try{ge(xe,me)}catch(qe){me(qe)}},me)};re.ensureNotTerminated(),ue.reset();const ye={};let Se,pe,he,de,Ce,we;for(;!(Se=ue.check())&&(ye.args=null,!!le.read(ye));){let Pe=ye.args,qe=ye.fn;switch(qe|0){case n.OPS.paintXObject:if(we=Pe[0]instanceof D.Name,Ce=Pe[0].name,we){const De=ie.getByName(Ce);if(De){K.addImageOps(De.fn,De.args,De.optionalContent),X(De),Pe=null;continue}}be(new Promise(function(De,et){if(!we)throw new n.FormatError("XObject must be referred to by name.");let rt=L.getRaw(Ce);if(rt instanceof D.Ref){const Pt=ie.getByRef(rt)||_._regionalImageCache.getByRef(rt);if(Pt){K.addImageOps(Pt.fn,Pt.args,Pt.optionalContent),X(Pt),De();return}const Ge=_.globalImageCache.getData(rt,_.pageIndex);if(Ge){K.addDependency(Ge.objId),K.addImageOps(Ge.fn,Ge.args,Ge.optionalContent),De();return}rt=G.fetch(rt)}if(!(rt instanceof E.BaseStream))throw new n.FormatError("XObject should be a stream");const St=rt.dict.get("Subtype");if(!(St instanceof D.Name))throw new n.FormatError("XObject should have a Name subtype");if(St.name==="Form"){se.save(),_.buildFormXObject(Z,rt,null,K,re,se.state.clone(),ae).then(function(){se.restore(),De()},et);return}else if(St.name==="Image"){_.buildPaintImageXObject({resources:Z,image:rt,operatorList:K,cacheKey:Ce,localImageCache:ie,localColorSpaceCache:ae}).then(De,et);return}else if(St.name==="PS")(0,n.info)("Ignored XObject subtype PS");else throw new n.FormatError(`Unhandled XObject subtype ${St.name}`);De()}).catch(function(De){if(!(De instanceof n.AbortException)){if(_.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring XObject: "${De}".`);return}throw De}}));return;case n.OPS.setFont:var Le=Pe[1];be(_.handleSetFont(Z,Pe,null,K,re,se.state,k).then(function(De){K.addDependency(De),K.addOp(n.OPS.setFont,[De,Le])}));return;case n.OPS.beginText:Q=!0;break;case n.OPS.endText:Q=!1;break;case n.OPS.endInlineImage:var Be=Pe[0].cacheKey;if(Be){const De=ie.getByName(Be);if(De){K.addImageOps(De.fn,De.args,De.optionalContent),X(De),Pe=null;continue}}be(_.buildPaintImageXObject({resources:Z,image:Pe[0],isInline:!0,operatorList:K,cacheKey:Be,localImageCache:ie,localColorSpaceCache:ae}));return;case n.OPS.showText:if(!se.state.font){_.ensureStateFont(se.state);continue}Pe[0]=_.handleText(Pe[0],se.state);break;case n.OPS.showSpacedText:if(!se.state.font){_.ensureStateFont(se.state);continue}var at=[],Oe=se.state;for(const De of Pe[0])typeof De=="string"?at.push(..._.handleText(De,Oe)):typeof De=="number"&&at.push(De);Pe[0]=at,qe=n.OPS.showText;break;case n.OPS.nextLineShowText:if(!se.state.font){_.ensureStateFont(se.state);continue}K.addOp(n.OPS.nextLine),Pe[0]=_.handleText(Pe[0],se.state),qe=n.OPS.showText;break;case n.OPS.nextLineSetSpacingShowText:if(!se.state.font){_.ensureStateFont(se.state);continue}K.addOp(n.OPS.nextLine),K.addOp(n.OPS.setWordSpacing,[Pe.shift()]),K.addOp(n.OPS.setCharSpacing,[Pe.shift()]),Pe[0]=_.handleText(Pe[0],se.state),qe=n.OPS.showText;break;case n.OPS.setTextRenderingMode:se.state.textRenderingMode=Pe[0];break;case n.OPS.setFillColorSpace:{const De=O.ColorSpace.getCached(Pe[0],G,ae);if(De){se.state.fillColorSpace=De;continue}be(_.parseColorSpace({cs:Pe[0],resources:Z,localColorSpaceCache:ae}).then(function(et){et&&(se.state.fillColorSpace=et)}));return}case n.OPS.setStrokeColorSpace:{const De=O.ColorSpace.getCached(Pe[0],G,ae);if(De){se.state.strokeColorSpace=De;continue}be(_.parseColorSpace({cs:Pe[0],resources:Z,localColorSpaceCache:ae}).then(function(et){et&&(se.state.strokeColorSpace=et)}));return}case n.OPS.setFillColor:de=se.state.fillColorSpace,Pe=de.getRgb(Pe,0),qe=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColor:de=se.state.strokeColorSpace,Pe=de.getRgb(Pe,0),qe=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillGray:se.state.fillColorSpace=O.ColorSpace.singletons.gray,Pe=O.ColorSpace.singletons.gray.getRgb(Pe,0),qe=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeGray:se.state.strokeColorSpace=O.ColorSpace.singletons.gray,Pe=O.ColorSpace.singletons.gray.getRgb(Pe,0),qe=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillCMYKColor:se.state.fillColorSpace=O.ColorSpace.singletons.cmyk,Pe=O.ColorSpace.singletons.cmyk.getRgb(Pe,0),qe=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeCMYKColor:se.state.strokeColorSpace=O.ColorSpace.singletons.cmyk,Pe=O.ColorSpace.singletons.cmyk.getRgb(Pe,0),qe=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillRGBColor:se.state.fillColorSpace=O.ColorSpace.singletons.rgb,Pe=O.ColorSpace.singletons.rgb.getRgb(Pe,0);break;case n.OPS.setStrokeRGBColor:se.state.strokeColorSpace=O.ColorSpace.singletons.rgb,Pe=O.ColorSpace.singletons.rgb.getRgb(Pe,0);break;case n.OPS.setFillColorN:if(de=se.state.fillColorSpace,de.name==="Pattern"){be(_.handleColorN(K,n.OPS.setFillColorN,Pe,de,te,Z,re,ae,ne,V));return}Pe=de.getRgb(Pe,0),qe=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColorN:if(de=se.state.strokeColorSpace,de.name==="Pattern"){be(_.handleColorN(K,n.OPS.setStrokeColorN,Pe,de,te,Z,re,ae,ne,V));return}Pe=de.getRgb(Pe,0),qe=n.OPS.setStrokeRGBColor;break;case n.OPS.shadingFill:var Ze=Z.get("Shading");if(!Ze)throw new n.FormatError("No shading resource found");var Ke=Ze.get(Pe[0].name);if(!Ke)throw new n.FormatError("No shading object found");Pe=[_.parseShading({shading:Ke,resources:Z,localColorSpaceCache:ae,localShadingPatternCache:V})],qe=n.OPS.shadingFill;break;case n.OPS.setGState:if(we=Pe[0]instanceof D.Name,Ce=Pe[0].name,we){const De=U.getByName(Ce);if(De){De.length>0&&K.addOp(n.OPS.setGState,[De]),Pe=null;continue}}be(new Promise(function(De,et){if(!we)throw new n.FormatError("GState must be referred to by name.");const rt=Z.get("ExtGState");if(!(rt instanceof D.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const St=rt.get(Ce);if(!(St instanceof D.Dict))throw new n.FormatError("GState should be a dictionary.");_.setGState({resources:Z,gState:St,operatorList:K,cacheKey:Ce,task:re,stateManager:se,localGStateCache:U,localColorSpaceCache:ae}).then(De,et)}).catch(function(De){if(!(De instanceof n.AbortException)){if(_.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring ExtGState: "${De}".`);return}throw De}}));return;case n.OPS.moveTo:case n.OPS.lineTo:case n.OPS.curveTo:case n.OPS.curveTo2:case n.OPS.curveTo3:case n.OPS.closePath:case n.OPS.rectangle:_.buildPath(K,qe,Pe,Q);continue;case n.OPS.markPoint:case n.OPS.markPointProps:case n.OPS.beginCompat:case n.OPS.endCompat:continue;case n.OPS.beginMarkedContentProps:if(!(Pe[0]instanceof D.Name)){(0,n.warn)(`Expected name for beginMarkedContentProps arg0=${Pe[0]}`);continue}if(Pe[0].name==="OC"){be(_.parseMarkedContentProps(Pe[1],Z).then(De=>{K.addOp(n.OPS.beginMarkedContentProps,["OC",De])}).catch(De=>{if(!(De instanceof n.AbortException)){if(_.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${De}".`);return}throw De}}));return}Pe=[Pe[0].name,Pe[1]instanceof D.Dict?Pe[1].get("MCID"):null];break;case n.OPS.beginMarkedContent:case n.OPS.endMarkedContent:default:if(Pe!==null){for(pe=0,he=Pe.length;pe<he&&!(Pe[pe]instanceof D.Dict);pe++);if(pe<he){(0,n.warn)("getOperatorList - ignoring operator: "+qe);continue}}}K.addOp(qe,Pe)}if(Se){be(g);return}fe(),xe()}).catch(ge=>{if(!(ge instanceof n.AbortException)){if(this.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring errors during "${re.name}" task: "${ge}".`),fe();return}throw ge}})}getTextContent({stream:q,task:re,resources:Z,stateManager:K=null,includeMarkedContent:S=!1,sink:k,seenStyles:_=new Set,viewBox:G,markedContentData:Q=null,disableNormalization:ie=!1}){Z||(Z=D.Dict.empty),K||(K=new m(new h)),S&&(Q||(Q={level:0}));const ae={items:[],styles:Object.create(null)},U={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},ne=[" "," "];let V=0;function L(Ge){const We=(V+1)%2,_e=ne[V]!==" "&&ne[We]===" ";return ne[V]=Ge,V=We,_e}function te(){return ne[V]!==" "&&ne[(V+1)%2]===" "}function se(){ne[0]=ne[1]=" ",V=0}const le=.102,ue=.03,fe=-.2,ge=.102,xe=.6,me=.25,be=this,ye=this.xref,Se=[];let pe=null;const he=new x.LocalImageCache,de=new x.LocalGStateCache,Ce=new j(q,ye,K);let we;function Le({width:Ge=0,height:We=0,transform:_e=U.prevTransform,fontName:yt=U.fontName}){ae.items.push({str:" ",dir:"ltr",width:Ge,height:We,transform:_e,fontName:yt,hasEOL:!1})}function Be(){const Ge=we.font,We=[we.fontSize*we.textHScale,0,0,we.fontSize,0,we.textRise];if(Ge.isType3Font&&(we.fontSize<=1||Ge.isCharBBox)&&!(0,n.isArrayEqual)(we.fontMatrix,n.FONT_IDENTITY_MATRIX)){const _e=Ge.bbox[3]-Ge.bbox[1];_e>0&&(We[3]*=_e*we.fontMatrix[3])}return n.Util.transform(we.ctm,n.Util.transform(we.textMatrix,We))}function at(){if(U.initialized)return U;const{font:Ge,loadedName:We}=we;_.has(We)||(_.add(We),ae.styles[We]={fontFamily:Ge.fallbackName,ascent:Ge.ascent,descent:Ge.descent,vertical:Ge.vertical}),U.fontName=We;const _e=U.transform=Be();Ge.vertical?(U.width=U.totalWidth=Math.hypot(_e[0],_e[1]),U.height=U.totalHeight=0,U.vertical=!0):(U.width=U.totalWidth=0,U.height=U.totalHeight=Math.hypot(_e[2],_e[3]),U.vertical=!1);const yt=Math.hypot(we.textLineMatrix[0],we.textLineMatrix[1]),Tt=Math.hypot(we.ctm[0],we.ctm[1]);U.textAdvanceScale=Tt*yt;const{fontSize:Ct}=we;return U.trackingSpaceMin=Ct*le,U.notASpace=Ct*ue,U.negativeSpaceMax=Ct*fe,U.spaceInFlowMin=Ct*ge,U.spaceInFlowMax=Ct*xe,U.hasEOL=!1,U.initialized=!0,U}function Oe(){if(!U.initialized)return;const Ge=Math.hypot(we.textLineMatrix[0],we.textLineMatrix[1]),_e=Math.hypot(we.ctm[0],we.ctm[1])*Ge;_e!==U.textAdvanceScale&&(U.vertical?(U.totalHeight+=U.height*U.textAdvanceScale,U.height=0):(U.totalWidth+=U.width*U.textAdvanceScale,U.width=0),U.textAdvanceScale=_e)}function Ze(Ge){let We=Ge.str.join("");ie||(We=(0,n.normalizeUnicode)(We));const _e=(0,w.bidi)(We,-1,Ge.vertical);return{str:_e.str,dir:_e.dir,width:Math.abs(Ge.totalWidth),height:Math.abs(Ge.totalHeight),transform:Ge.transform,fontName:Ge.fontName,hasEOL:Ge.hasEOL}}function Ke(Ge,We){return be.loadFont(Ge,We,Z).then(function(_e){return _e.font.isType3Font?_e.loadType3Data(be,Z,re).catch(function(){}).then(function(){return _e}):_e}).then(function(_e){we.loadedName=_e.loadedName,we.font=_e.font,we.fontMatrix=_e.font.fontMatrix||n.FONT_IDENTITY_MATRIX})}function Pe(Ge,We,_e){const yt=Math.hypot(_e[0],_e[1]);return[(_e[0]*Ge+_e[1]*We)/yt,(_e[2]*Ge+_e[3]*We)/yt]}function qe(Ge){var Fe;const We=Be();let _e=We[4],yt=We[5];if((Fe=we.font)!=null&&Fe.vertical){if(_e<G[0]||_e>G[2]||yt+Ge<G[1]||yt>G[3])return!1}else if(_e+Ge<G[0]||_e>G[2]||yt<G[1]||yt>G[3])return!1;if(!we.font||!U.prevTransform)return!0;let Tt=U.prevTransform[4],Ct=U.prevTransform[5];if(Tt===_e&&Ct===yt)return!0;let ut=-1;switch(We[0]&&We[1]===0&&We[2]===0?ut=We[0]>0?0:180:We[1]&&We[0]===0&&We[3]===0&&(ut=We[1]>0?90:270),ut){case 0:break;case 90:[_e,yt]=[yt,_e],[Tt,Ct]=[Ct,Tt];break;case 180:[_e,yt,Tt,Ct]=[-_e,-yt,-Tt,-Ct];break;case 270:[_e,yt]=[-yt,-_e],[Tt,Ct]=[-Ct,-Tt];break;default:[_e,yt]=Pe(_e,yt,We),[Tt,Ct]=Pe(Tt,Ct,U.prevTransform)}if(we.font.vertical){const Me=(Ct-yt)/U.textAdvanceScale,Ne=_e-Tt,je=Math.sign(U.height);return Me<je*U.negativeSpaceMax?Math.abs(Ne)>.5*U.width?(De(),!0):(se(),rt(),!0):Math.abs(Ne)>U.width?(De(),!0):(Me<=je*U.notASpace&&se(),Me<=je*U.trackingSpaceMin?te()?(se(),rt(),Le({height:Math.abs(Me)})):U.height+=Me:et(Me,U.prevTransform,je)||(U.str.length===0?(se(),Le({height:Math.abs(Me)})):U.height+=Me),Math.abs(Ne)>U.width*me&&rt(),!0)}const Bt=(_e-Tt)/U.textAdvanceScale,Xt=yt-Ct,Ie=Math.sign(U.width);return Bt<Ie*U.negativeSpaceMax?Math.abs(Xt)>.5*U.height?(De(),!0):(se(),rt(),!0):Math.abs(Xt)>U.height?(De(),!0):(Bt<=Ie*U.notASpace&&se(),Bt<=Ie*U.trackingSpaceMin?te()?(se(),rt(),Le({width:Math.abs(Bt)})):U.width+=Bt:et(Bt,U.prevTransform,Ie)||(U.str.length===0?(se(),Le({width:Math.abs(Bt)})):U.width+=Bt),Math.abs(Xt)>U.height*me&&rt(),!0)}function gt({chars:Ge,extraSpacing:We}){const _e=we.font;if(!Ge){const Ct=we.charSpacing+We;Ct&&(_e.vertical?we.translateTextMatrix(0,-Ct):we.translateTextMatrix(Ct*we.textHScale,0));return}const yt=_e.charsToGlyphs(Ge),Tt=we.fontMatrix[0]*we.fontSize;for(let Ct=0,ut=yt.length;Ct<ut;Ct++){const Bt=yt[Ct],{category:Xt}=Bt;if(Xt.isInvisibleFormatMark)continue;let Ie=we.charSpacing+(Ct+1===ut?We:0),Fe=Bt.width;_e.vertical&&(Fe=Bt.vmetric?Bt.vmetric[0]:-Fe);let Me=Fe*Tt;if(Xt.isWhitespace){_e.vertical?(Ie+=-Me+we.wordSpacing,we.translateTextMatrix(0,-Ie)):(Ie+=Me+we.wordSpacing,we.translateTextMatrix(Ie*we.textHScale,0)),L(" ");continue}if(!Xt.isZeroWidthDiacritic&&!qe(Me)){_e.vertical?we.translateTextMatrix(0,Me):we.translateTextMatrix(Me*we.textHScale,0);continue}const Ne=at();Xt.isZeroWidthDiacritic&&(Me=0),_e.vertical?(we.translateTextMatrix(0,Me),Me=Math.abs(Me),Ne.height+=Me):(Me*=we.textHScale,we.translateTextMatrix(Me,0),Ne.width+=Me),Me&&(Ne.prevTransform=Be());const je=Bt.unicode;L(je)&&Ne.str.push(" "),Ne.str.push(je),Ie&&(_e.vertical?we.translateTextMatrix(0,-Ie):we.translateTextMatrix(Ie*we.textHScale,0))}}function De(){se(),U.initialized?(U.hasEOL=!0,rt()):ae.items.push({str:"",dir:"ltr",width:0,height:0,transform:Be(),fontName:we.loadedName,hasEOL:!0})}function et(Ge,We,_e){if(_e*U.spaceInFlowMin<=Ge&&Ge<=_e*U.spaceInFlowMax)return U.initialized&&(se(),U.str.push(" ")),!1;const yt=U.fontName;let Tt=0;return U.vertical&&(Tt=Ge,Ge=0),rt(),se(),Le({width:Math.abs(Ge),height:Math.abs(Tt),transform:We||Be(),fontName:yt}),!0}function rt(){!U.initialized||!U.str||(U.vertical?U.totalHeight+=U.height*U.textAdvanceScale:U.totalWidth+=U.width*U.textAdvanceScale,ae.items.push(Ze(U)),U.initialized=!1,U.str.length=0)}function St(Ge=!1){const We=ae.items.length;We!==0&&(Ge&&We<C||(k.enqueue(ae,We),ae.items=[],ae.styles=Object.create(null)))}const Pt=new $;return new Promise(function Ge(We,_e){const yt=function(Me){St(!0),Promise.all([Me,k.ready]).then(function(){try{Ge(We,_e)}catch(Ne){_e(Ne)}},_e)};re.ensureNotTerminated(),Pt.reset();const Tt={};let Ct,ut=[];for(;!(Ct=Pt.check())&&(ut.length=0,Tt.args=ut,!!Ce.read(Tt));){const Me=we;we=K.state;const Ne=Tt.fn;switch(ut=Tt.args,Ne|0){case n.OPS.setFont:var Bt=ut[0].name,Xt=ut[1];if(we.font&&Bt===we.fontName&&Xt===we.fontSize)break;rt(),we.fontName=Bt,we.fontSize=Xt,yt(Ke(Bt,null));return;case n.OPS.setTextRise:we.textRise=ut[0];break;case n.OPS.setHScale:we.textHScale=ut[0]/100;break;case n.OPS.setLeading:we.leading=ut[0];break;case n.OPS.moveText:we.translateTextLineMatrix(ut[0],ut[1]),we.textMatrix=we.textLineMatrix.slice();break;case n.OPS.setLeadingMoveText:we.leading=-ut[1],we.translateTextLineMatrix(ut[0],ut[1]),we.textMatrix=we.textLineMatrix.slice();break;case n.OPS.nextLine:we.carriageReturn();break;case n.OPS.setTextMatrix:we.setTextMatrix(ut[0],ut[1],ut[2],ut[3],ut[4],ut[5]),we.setTextLineMatrix(ut[0],ut[1],ut[2],ut[3],ut[4],ut[5]),Oe();break;case n.OPS.setCharSpacing:we.charSpacing=ut[0];break;case n.OPS.setWordSpacing:we.wordSpacing=ut[0];break;case n.OPS.beginText:we.textMatrix=n.IDENTITY_MATRIX.slice(),we.textLineMatrix=n.IDENTITY_MATRIX.slice();break;case n.OPS.showSpacedText:if(!K.state.font){be.ensureStateFont(K.state);continue}const je=(we.font.vertical?1:-1)*we.fontSize/1e3,tt=ut[0];for(let $e=0,Ee=tt.length;$e<Ee;$e++){const ze=tt[$e];if(typeof ze=="string")Se.push(ze);else if(typeof ze=="number"&&ze!==0){const ot=Se.join("");Se.length=0,gt({chars:ot,extraSpacing:ze*je})}}if(Se.length>0){const $e=Se.join("");Se.length=0,gt({chars:$e,extraSpacing:0})}break;case n.OPS.showText:if(!K.state.font){be.ensureStateFont(K.state);continue}gt({chars:ut[0],extraSpacing:0});break;case n.OPS.nextLineShowText:if(!K.state.font){be.ensureStateFont(K.state);continue}we.carriageReturn(),gt({chars:ut[0],extraSpacing:0});break;case n.OPS.nextLineSetSpacingShowText:if(!K.state.font){be.ensureStateFont(K.state);continue}we.wordSpacing=ut[0],we.charSpacing=ut[1],we.carriageReturn(),gt({chars:ut[2],extraSpacing:0});break;case n.OPS.paintXObject:rt(),pe||(pe=Z.get("XObject")||D.Dict.empty);var Ie=ut[0]instanceof D.Name,Fe=ut[0].name;if(Ie&&he.getByName(Fe))break;yt(new Promise(function($e,Ee){if(!Ie)throw new n.FormatError("XObject must be referred to by name.");let ze=pe.getRaw(Fe);if(ze instanceof D.Ref){if(he.getByRef(ze)){$e();return}if(be.globalImageCache.getData(ze,be.pageIndex)){$e();return}ze=ye.fetch(ze)}if(!(ze instanceof E.BaseStream))throw new n.FormatError("XObject should be a stream");const ot=ze.dict.get("Subtype");if(!(ot instanceof D.Name))throw new n.FormatError("XObject should have a Name subtype");if(ot.name!=="Form"){he.set(Fe,ze.dict.objId,!0),$e();return}const pt=K.state.clone(),nt=new m(pt),it=ze.dict.getArray("Matrix");Array.isArray(it)&&it.length===6&&nt.transform(it),St();const dt={enqueueInvoked:!1,enqueue(Ve,ct){this.enqueueInvoked=!0,k.enqueue(Ve,ct)},get desiredSize(){return k.desiredSize},get ready(){return k.ready}};be.getTextContent({stream:ze,task:re,resources:ze.dict.get("Resources")||Z,stateManager:nt,includeMarkedContent:S,sink:dt,seenStyles:_,viewBox:G,markedContentData:Q,disableNormalization:ie}).then(function(){dt.enqueueInvoked||he.set(Fe,ze.dict.objId,!0),$e()},Ee)}).catch(function($e){if(!($e instanceof n.AbortException)){if(be.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring XObject: "${$e}".`);return}throw $e}}));return;case n.OPS.setGState:if(Ie=ut[0]instanceof D.Name,Fe=ut[0].name,Ie&&de.getByName(Fe))break;yt(new Promise(function($e,Ee){if(!Ie)throw new n.FormatError("GState must be referred to by name.");const ze=Z.get("ExtGState");if(!(ze instanceof D.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const ot=ze.get(Fe);if(!(ot instanceof D.Dict))throw new n.FormatError("GState should be a dictionary.");const pt=ot.get("Font");if(!pt){de.set(Fe,ot.objId,!0),$e();return}rt(),we.fontName=null,we.fontSize=pt[1],Ke(null,pt[0]).then($e,Ee)}).catch(function($e){if(!($e instanceof n.AbortException)){if(be.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring ExtGState: "${$e}".`);return}throw $e}}));return;case n.OPS.beginMarkedContent:rt(),S&&(Q.level++,ae.items.push({type:"beginMarkedContent",tag:ut[0]instanceof D.Name?ut[0].name:null}));break;case n.OPS.beginMarkedContentProps:if(rt(),S){Q.level++;let $e=null;ut[1]instanceof D.Dict&&($e=ut[1].get("MCID")),ae.items.push({type:"beginMarkedContentProps",id:Number.isInteger($e)?`${be.idFactory.getPageObjId()}_mc${$e}`:null,tag:ut[0]instanceof D.Name?ut[0].name:null})}break;case n.OPS.endMarkedContent:if(rt(),S){if(Q.level===0)break;Q.level--,ae.items.push({type:"endMarkedContent"})}break;case n.OPS.restore:Me&&(Me.font!==we.font||Me.fontSize!==we.fontSize||Me.fontName!==we.fontName)&&rt();break}if(ae.items.length>=k.desiredSize){Ct=!0;break}}if(Ct){yt(g);return}rt(),St(),We()}).catch(Ge=>{if(!(Ge instanceof n.AbortException)){if(this.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring errors during "${re.name}" task: "${Ge}".`),rt(),St();return}throw Ge}})}extractDataStructures(q,re,Z){const K=this.xref;let S;const k=this.readToUnicode(Z.toUnicode||q.get("ToUnicode")||re.get("ToUnicode"));if(Z.composite){const U=q.get("CIDSystemInfo");U instanceof D.Dict&&(Z.cidSystemInfo={registry:(0,n.stringToPDFString)(U.get("Registry")),ordering:(0,n.stringToPDFString)(U.get("Ordering")),supplement:U.get("Supplement")});try{const ne=q.get("CIDToGIDMap");ne instanceof E.BaseStream&&(S=ne.getBytes())}catch(ne){if(!this.options.ignoreErrors)throw ne;(0,n.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${ne}".`)}}const _=[];let G=null,Q;if(q.has("Encoding")){if(Q=q.get("Encoding"),Q instanceof D.Dict){if(G=Q.get("BaseEncoding"),G=G instanceof D.Name?G.name:null,Q.has("Differences")){const U=Q.get("Differences");let ne=0;for(const V of U){const L=K.fetchIfRef(V);if(typeof L=="number")ne=L;else if(L instanceof D.Name)_[ne++]=L.name;else throw new n.FormatError(`Invalid entry in 'Differences' array: ${L}`)}}}else if(Q instanceof D.Name)G=Q.name;else{const U="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new n.FormatError(U);(0,n.warn)(U)}G!=="MacRomanEncoding"&&G!=="MacExpertEncoding"&&G!=="WinAnsiEncoding"&&(G=null)}const ie=!Z.file||Z.isInternalFont,ae=(0,c.getSymbolsFonts)()[Z.name];if(G&&ie&&ae&&(G=null),G)Z.defaultEncoding=(0,t.getEncoding)(G);else{const U=!!(Z.flags&B.FontFlags.Symbolic),ne=!!(Z.flags&B.FontFlags.Nonsymbolic);Q=t.StandardEncoding,Z.type==="TrueType"&&!ne&&(Q=t.WinAnsiEncoding),(U||ae)&&(Q=t.MacRomanEncoding,ie&&(/Symbol/i.test(Z.name)?Q=t.SymbolSetEncoding:/Dingbats/i.test(Z.name)?Q=t.ZapfDingbatsEncoding:/Wingdings/i.test(Z.name)&&(Q=t.WinAnsiEncoding))),Z.defaultEncoding=Q}return Z.differences=_,Z.baseEncodingName=G,Z.hasEncoding=!!G||_.length>0,Z.dict=q,k.then(U=>(Z.toUnicode=U,this.buildToUnicode(Z))).then(U=>(Z.toUnicode=U,S&&(Z.cidToGidMap=this.readCidToGidMap(S,U)),Z))}_simpleFontToUnicode(q,re=!1){(0,n.assert)(!q.composite,"Must be a simple font.");const Z=[],K=q.defaultEncoding.slice(),S=q.baseEncodingName,k=q.differences;for(const G in k){const Q=k[G];Q!==".notdef"&&(K[G]=Q)}const _=(0,W.getGlyphsUnicode)();for(const G in K){let Q=K[G];if(Q==="")continue;let ie=_[Q];if(ie!==void 0){Z[G]=String.fromCharCode(ie);continue}let ae=0;switch(Q[0]){case"G":Q.length===3&&(ae=parseInt(Q.substring(1),16));break;case"g":Q.length===5&&(ae=parseInt(Q.substring(1),16));break;case"C":case"c":if(Q.length>=3&&Q.length<=4){const U=Q.substring(1);if(re){ae=parseInt(U,16);break}if(ae=+U,Number.isNaN(ae)&&Number.isInteger(parseInt(U,16)))return this._simpleFontToUnicode(q,!0)}break;case"u":ie=(0,T.getUnicodeForGlyph)(Q,_),ie!==-1&&(ae=ie);break;default:switch(Q){case"f_h":case"f_t":case"T_h":Z[G]=Q.replaceAll("_","");continue}break}if(ae>0&&ae<=1114111&&Number.isInteger(ae)){if(S&&ae===+G){const U=(0,t.getEncoding)(S);if(U&&(Q=U[G])){Z[G]=String.fromCharCode(_[Q]);continue}}Z[G]=String.fromCodePoint(ae)}}return Z}buildToUnicode(q){return Ue(this,null,function*(){var re;if(q.hasIncludedToUnicodeMap=((re=q.toUnicode)==null?void 0:re.length)>0,q.hasIncludedToUnicodeMap)return!q.composite&&q.hasEncoding&&(q.fallbackToUnicode=this._simpleFontToUnicode(q)),q.toUnicode;if(!q.composite)return new N.ToUnicodeMap(this._simpleFontToUnicode(q));if(q.composite&&(q.cMap.builtInCMap&&!(q.cMap instanceof P.IdentityCMap)||q.cidSystemInfo.registry==="Adobe"&&(q.cidSystemInfo.ordering==="GB1"||q.cidSystemInfo.ordering==="CNS1"||q.cidSystemInfo.ordering==="Japan1"||q.cidSystemInfo.ordering==="Korea1"))){const{registry:Z,ordering:K}=q.cidSystemInfo,S=D.Name.get(`${Z}-${K}-UCS2`),k=yield P.CMapFactory.create({encoding:S,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),_=[],G=[];return q.cMap.forEach(function(Q,ie){if(ie>65535)throw new n.FormatError("Max size of CID is 65,535");const ae=k.lookup(ie);if(ae){G.length=0;for(let U=0,ne=ae.length;U<ne;U+=2)G.push((ae.charCodeAt(U)<<8)+ae.charCodeAt(U+1));_[Q]=String.fromCharCode(...G)}}),new N.ToUnicodeMap(_)}return new N.IdentityToUnicodeMap(q.firstChar,q.lastChar)})}readToUnicode(q){return q?q instanceof D.Name?P.CMapFactory.create({encoding:q,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(re){return re instanceof P.IdentityCMap?new N.IdentityToUnicodeMap(0,65535):new N.ToUnicodeMap(re.getMap())}):q instanceof E.BaseStream?P.CMapFactory.create({encoding:q,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(re){if(re instanceof P.IdentityCMap)return new N.IdentityToUnicodeMap(0,65535);const Z=new Array(re.length);return re.forEach(function(K,S){if(typeof S=="number"){Z[K]=String.fromCodePoint(S);return}const k=[];for(let _=0;_<S.length;_+=2){const G=S.charCodeAt(_)<<8|S.charCodeAt(_+1);if((G&63488)!==55296){k.push(G);continue}_+=2;const Q=S.charCodeAt(_)<<8|S.charCodeAt(_+1);k.push(((G&1023)<<10)+(Q&1023)+65536)}Z[K]=String.fromCodePoint(...k)}),new N.ToUnicodeMap(Z)},re=>{if(re instanceof n.AbortException)return null;if(this.options.ignoreErrors)return(0,n.warn)(`readToUnicode - ignoring ToUnicode data: "${re}".`),null;throw re}):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(q,re){const Z=[];for(let K=0,S=q.length;K<S;K++){const k=q[K++]<<8|q[K],_=K>>1;k===0&&!re.has(_)||(Z[_]=k)}return Z}extractWidths(q,re,Z){const K=this.xref;let S=[],k=0;const _=[];let G,Q,ie,ae,U,ne,V,L;if(Z.composite){if(k=q.has("DW")?q.get("DW"):1e3,L=q.get("W"),L)for(Q=0,ie=L.length;Q<ie;Q++)if(ne=K.fetchIfRef(L[Q++]),V=K.fetchIfRef(L[Q]),Array.isArray(V))for(ae=0,U=V.length;ae<U;ae++)S[ne++]=K.fetchIfRef(V[ae]);else{const le=K.fetchIfRef(L[++Q]);for(ae=ne;ae<=V;ae++)S[ae]=le}if(Z.vertical){let le=q.getArray("DW2")||[880,-1e3];if(G=[le[1],k*.5,le[0]],le=q.get("W2"),le)for(Q=0,ie=le.length;Q<ie;Q++)if(ne=K.fetchIfRef(le[Q++]),V=K.fetchIfRef(le[Q]),Array.isArray(V))for(ae=0,U=V.length;ae<U;ae++)_[ne++]=[K.fetchIfRef(V[ae++]),K.fetchIfRef(V[ae++]),K.fetchIfRef(V[ae])];else{const ue=[K.fetchIfRef(le[++Q]),K.fetchIfRef(le[++Q]),K.fetchIfRef(le[++Q])];for(ae=ne;ae<=V;ae++)_[ae]=ue}}}else{const le=Z.firstChar;if(L=q.get("Widths"),L){for(ae=le,Q=0,ie=L.length;Q<ie;Q++)S[ae++]=K.fetchIfRef(L[Q]);k=parseFloat(re.get("MissingWidth"))||0}else{const ue=q.get("BaseFont");if(ue instanceof D.Name){const fe=this.getBaseFontMetrics(ue.name);S=this.buildCharCodeToWidth(fe.widths,Z),k=fe.defaultWidth}}}let te=!0,se=k;for(const le in S){const ue=S[le];if(!!ue){if(!se){se=ue;continue}if(se!==ue){te=!1;break}}}te?Z.flags|=B.FontFlags.FixedPitch:Z.flags&=~B.FontFlags.FixedPitch,Z.defaultWidth=k,Z.widths=S,Z.defaultVMetrics=G,Z.vmetrics=_}isSerifFont(q){const re=q.split("-")[0];return re in(0,c.getSerifFonts)()||/serif/gi.test(re)}getBaseFontMetrics(q){let re=0,Z=Object.create(null),K=!1,k=(0,c.getStdFontMap)()[q]||q;const _=(0,d.getMetrics)();k in _||(k=this.isSerifFont(q)?"Times-Roman":"Helvetica");const G=_[k];return typeof G=="number"?(re=G,K=!0):Z=G(),{defaultWidth:re,monospace:K,widths:Z}}buildCharCodeToWidth(q,re){const Z=Object.create(null),K=re.differences,S=re.defaultEncoding;for(let k=0;k<256;k++){if(k in K&&q[K[k]]){Z[k]=q[K[k]];continue}if(k in S&&q[S[k]]){Z[k]=q[S[k]];continue}}return Z}preEvaluateFont(q){const re=q;let Z=q.get("Subtype");if(!(Z instanceof D.Name))throw new n.FormatError("invalid font Subtype");let K=!1,S,k;if(Z.name==="Type0"){const ie=q.get("DescendantFonts");if(!ie)throw new n.FormatError("Descendant fonts are not specified");if(q=Array.isArray(ie)?this.xref.fetchIfRef(ie[0]):ie,!(q instanceof D.Dict))throw new n.FormatError("Descendant font is not a dictionary.");if(Z=q.get("Subtype"),!(Z instanceof D.Name))throw new n.FormatError("invalid font Subtype");K=!0}const _=q.get("FirstChar")||0,G=q.get("LastChar")||(K?65535:255),Q=q.get("FontDescriptor");if(Q){S=new l.MurmurHash3_64;const ie=re.getRaw("Encoding");if(ie instanceof D.Name)S.update(ie.name);else if(ie instanceof D.Ref)S.update(ie.toString());else if(ie instanceof D.Dict){for(const U of ie.getRawValues())if(U instanceof D.Name)S.update(U.name);else if(U instanceof D.Ref)S.update(U.toString());else if(Array.isArray(U)){const ne=U.length,V=new Array(ne);for(let L=0;L<ne;L++){const te=U[L];te instanceof D.Name?V[L]=te.name:(typeof te=="number"||te instanceof D.Ref)&&(V[L]=te.toString())}S.update(V.join())}}if(S.update(`${_}-${G}`),k=q.get("ToUnicode")||re.get("ToUnicode"),k instanceof E.BaseStream){const U=k.str||k,ne=U.buffer?new Uint8Array(U.buffer.buffer,0,U.bufferLength):new Uint8Array(U.bytes.buffer,U.start,U.end-U.start);S.update(ne)}else k instanceof D.Name&&S.update(k.name);const ae=q.get("Widths")||re.get("Widths");if(Array.isArray(ae)){const U=[];for(const ne of ae)(typeof ne=="number"||ne instanceof D.Ref)&&U.push(ne.toString());S.update(U.join())}if(K){S.update("compositeFont");const U=q.get("W")||re.get("W");if(Array.isArray(U)){const V=[];for(const L of U)if(typeof L=="number"||L instanceof D.Ref)V.push(L.toString());else if(Array.isArray(L)){const te=[];for(const se of L)(typeof se=="number"||se instanceof D.Ref)&&te.push(se.toString());V.push(`[${te.join()}]`)}S.update(V.join())}const ne=q.getRaw("CIDToGIDMap")||re.getRaw("CIDToGIDMap");ne instanceof D.Name?S.update(ne.name):ne instanceof D.Ref?S.update(ne.toString()):ne instanceof E.BaseStream&&S.update(ne.peekBytes())}}return{descriptor:Q,dict:q,baseDict:re,composite:K,type:Z.name,firstChar:_,lastChar:G,toUnicode:k,hash:S?S.hexdigest():""}}translateFont(ie){return Ue(this,arguments,function*({descriptor:q,dict:re,baseDict:Z,composite:K,type:S,firstChar:k,lastChar:_,toUnicode:G,cssFontInfo:Q}){const ae=S==="Type3";let U;if(!q)if(ae)q=new D.Dict(null),q.set("FontName",D.Name.get(S)),q.set("FontBBox",re.getArray("FontBBox")||[0,0,0,0]);else{let ye=re.get("BaseFont");if(!(ye instanceof D.Name))throw new n.FormatError("Base font is not specified");ye=ye.name.replaceAll(/[,_]/g,"-");const Se=this.getBaseFontMetrics(ye),pe=ye.split("-")[0],he=(this.isSerifFont(pe)?B.FontFlags.Serif:0)|(Se.monospace?B.FontFlags.FixedPitch:0)|((0,c.getSymbolsFonts)()[pe]?B.FontFlags.Symbolic:B.FontFlags.Nonsymbolic);U={type:S,name:ye,loadedName:Z.loadedName,systemFontInfo:null,widths:Se.widths,defaultWidth:Se.defaultWidth,isSimulatedFlags:!0,flags:he,firstChar:k,lastChar:_,toUnicode:G,xHeight:0,capHeight:0,italicAngle:0,isType3Font:ae};const de=re.get("Widths"),Ce=(0,c.getStandardFontName)(ye);let we=null;return Ce&&(we=yield this.fetchStandardFontData(Ce),U.isInternalFont=!!we),!U.isInternalFont&&this.options.useSystemFonts&&(U.systemFontInfo=(0,z.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,ye,Ce)),this.extractDataStructures(re,re,U).then(Le=>{if(de){const Be=[];let at=k;for(const Oe of de)Be[at++]=this.xref.fetchIfRef(Oe);Le.widths=Be}else Le.widths=this.buildCharCodeToWidth(Se.widths,Le);return new e.Font(ye,we,Le)})}let ne=q.get("FontName"),V=re.get("BaseFont");typeof ne=="string"&&(ne=D.Name.get(ne)),typeof V=="string"&&(V=D.Name.get(V));const L=ne==null?void 0:ne.name,te=V==null?void 0:V.name;if(!ae&&L!==te&&((0,n.info)(`The FontDescriptor's FontName is "${L}" but should be the same as the Font's BaseFont "${te}".`),L&&te&&(te.startsWith(L)||!(0,c.isKnownFontName)(L)&&(0,c.isKnownFontName)(te))&&(ne=null)),ne||(ne=V),!(ne instanceof D.Name))throw new n.FormatError("invalid font name");let se,le,ue,fe,ge;try{se=q.get("FontFile","FontFile2","FontFile3")}catch(ye){if(!this.options.ignoreErrors)throw ye;(0,n.warn)(`translateFont - fetching "${ne.name}" font file: "${ye}".`),se=new a.NullStream}let xe=!1,me=null,be=null;if(se){if(se.dict){const ye=se.dict.get("Subtype");ye instanceof D.Name&&(le=ye.name),ue=se.dict.get("Length1"),fe=se.dict.get("Length2"),ge=se.dict.get("Length3")}}else if(Q){const ye=(0,ee.getXfaFontName)(ne.name);ye&&(Q.fontFamily=`${Q.fontFamily}-PdfJS-XFA`,Q.metrics=ye.metrics||null,me=ye.factors||null,se=yield this.fetchStandardFontData(ye.name),xe=!!se,Z=re=(0,ee.getXfaFontDict)(ne.name),K=!0)}else if(!ae){const ye=(0,c.getStandardFontName)(ne.name);ye&&(se=yield this.fetchStandardFontData(ye),xe=!!se),!xe&&this.options.useSystemFonts&&(be=(0,z.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,ne.name,ye))}if(U={type:S,name:ne.name,subtype:le,file:se,length1:ue,length2:fe,length3:ge,isInternalFont:xe,loadedName:Z.loadedName,composite:K,fixedPitch:!1,fontMatrix:re.getArray("FontMatrix")||n.FONT_IDENTITY_MATRIX,firstChar:k,lastChar:_,toUnicode:G,bbox:q.getArray("FontBBox")||re.getArray("FontBBox"),ascent:q.get("Ascent"),descent:q.get("Descent"),xHeight:q.get("XHeight")||0,capHeight:q.get("CapHeight")||0,flags:q.get("Flags"),italicAngle:q.get("ItalicAngle")||0,isType3Font:ae,cssFontInfo:Q,scaleFactors:me,systemFontInfo:be},K){const ye=Z.get("Encoding");ye instanceof D.Name&&(U.cidEncoding=ye.name);const Se=yield P.CMapFactory.create({encoding:ye,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});U.cMap=Se,U.vertical=U.cMap.vertical}return this.extractDataStructures(re,Z,U).then(ye=>(this.extractWidths(re,q,ye),new e.Font(ne.name,se,ye)))})}static buildFontPaths(q,re,Z,K){function S(k){const _=`${q.loadedName}_path_${k}`;try{if(q.renderer.hasBuiltPath(k))return;Z.send("commonobj",[_,"FontPath",q.renderer.getPathJs(k)])}catch(G){if(K.ignoreErrors){(0,n.warn)(`buildFontPaths - ignoring ${_} glyph: "${G}".`);return}throw G}}for(const k of re){S(k.fontChar);const _=k.accent;_!=null&&_.fontChar&&S(_.fontChar)}}static get fallbackFontDict(){const q=new D.Dict;return q.set("BaseFont",D.Name.get("Helvetica")),q.set("Type",D.Name.get("FallbackType")),q.set("Subtype",D.Name.get("FallbackType")),q.set("Encoding",D.Name.get("WinAnsiEncoding")),(0,n.shadow)(this,"fallbackFontDict",q)}}b.PartialEvaluator=y;class v{constructor({loadedName:q,font:re,dict:Z,evaluatorOptions:K}){this.loadedName=q,this.font=re,this.dict=Z,this._evaluatorOptions=K||r,this.type3Loaded=null,this.type3Dependencies=re.isType3Font?new Set:null,this.sent=!1}send(q){this.sent||(this.sent=!0,q.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(q){!this.font.data||(this.font.disableFontFace=!0,y.buildFontPaths(this.font,this.font.glyphCacheValues,q,this._evaluatorOptions))}loadType3Data(q,re,Z){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const K=q.clone({ignoreErrors:!1});K.parsingType3Font=!0;const S=new D.RefSet(q.type3FontRefs);this.dict.objId&&!S.has(this.dict.objId)&&S.put(this.dict.objId),K.type3FontRefs=S;const k=this.font,_=this.type3Dependencies;let G=Promise.resolve();const Q=this.dict.get("CharProcs"),ie=this.dict.get("Resources")||re,ae=Object.create(null),U=n.Util.normalizeRect(k.bbox||[0,0,0,0]),ne=U[2]-U[0],V=U[3]-U[1],L=Math.hypot(ne,V);for(const te of Q.getKeys())G=G.then(()=>{const se=Q.get(te),le=new F.OperatorList;return K.getOperatorList({stream:se,task:Z,resources:ie,operatorList:le}).then(()=>{le.fnArray[0]===n.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(le,L),ae[te]=le.getIR();for(const ue of le.dependencies)_.add(ue)}).catch(function(ue){(0,n.warn)(`Type3 font resource "${te}" is not available.`);const fe=new F.OperatorList;ae[te]=fe.getIR()})});return this.type3Loaded=G.then(()=>{k.charProcOperatorList=ae,this._bbox&&(k.isCharBBox=!0,k.bbox=this._bbox)}),this.type3Loaded}_removeType3ColorOperators(q,re=NaN){const Z=n.Util.normalizeRect(q.argsArray[0].slice(2)),K=Z[2]-Z[0],S=Z[3]-Z[1],k=Math.hypot(K,S);K===0||S===0?(q.fnArray.splice(0,1),q.argsArray.splice(0,1)):(re===0||Math.round(k/re)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],Z[0]),this._bbox[1]=Math.min(this._bbox[1],Z[1]),this._bbox[2]=Math.max(this._bbox[2],Z[2]),this._bbox[3]=Math.max(this._bbox[3],Z[3]));let _=0,G=q.length;for(;_<G;){switch(q.fnArray[_]){case n.OPS.setCharWidthAndBounds:break;case n.OPS.setStrokeColorSpace:case n.OPS.setFillColorSpace:case n.OPS.setStrokeColor:case n.OPS.setStrokeColorN:case n.OPS.setFillColor:case n.OPS.setFillColorN:case n.OPS.setStrokeGray:case n.OPS.setFillGray:case n.OPS.setStrokeRGBColor:case n.OPS.setFillRGBColor:case n.OPS.setStrokeCMYKColor:case n.OPS.setFillCMYKColor:case n.OPS.shadingFill:case n.OPS.setRenderingIntent:q.fnArray.splice(_,1),q.argsArray.splice(_,1),G--;continue;case n.OPS.setGState:const[Q]=q.argsArray[_];let ie=0,ae=Q.length;for(;ie<ae;){const[U]=Q[ie];switch(U){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":Q.splice(ie,1),ae--;continue}ie++}break}_++}}}class m{constructor(q=new A){this.state=q,this.stateStack=[]}save(){const q=this.state;this.stateStack.push(this.state),this.state=q.clone()}restore(){const q=this.stateStack.pop();q&&(this.state=q)}transform(q){this.state.ctm=n.Util.transform(this.state.ctm,q)}}class h{constructor(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.textMatrix=n.IDENTITY_MATRIX.slice(),this.textLineMatrix=n.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(q,re,Z,K,S,k){const _=this.textMatrix;_[0]=q,_[1]=re,_[2]=Z,_[3]=K,_[4]=S,_[5]=k}setTextLineMatrix(q,re,Z,K,S,k){const _=this.textLineMatrix;_[0]=q,_[1]=re,_[2]=Z,_[3]=K,_[4]=S,_[5]=k}translateTextMatrix(q,re){const Z=this.textMatrix;Z[4]=Z[0]*q+Z[2]*re+Z[4],Z[5]=Z[1]*q+Z[3]*re+Z[5]}translateTextLineMatrix(q,re){const Z=this.textLineMatrix;Z[4]=Z[0]*q+Z[2]*re+Z[4],Z[5]=Z[1]*q+Z[3]*re+Z[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const q=Object.create(this);return q.textMatrix=this.textMatrix.slice(),q.textLineMatrix=this.textLineMatrix.slice(),q.fontMatrix=this.fontMatrix.slice(),q}}class A{constructor(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=n.TextRenderingMode.FILL,this.fillColorSpace=O.ColorSpace.singletons.gray,this.strokeColorSpace=O.ColorSpace.singletons.gray}clone(){return Object.create(this)}}const J=class{static get opMap(){return(0,n.shadow)(this,"opMap",{w:{id:n.OPS.setLineWidth,numArgs:1,variableArgs:!1},J:{id:n.OPS.setLineCap,numArgs:1,variableArgs:!1},j:{id:n.OPS.setLineJoin,numArgs:1,variableArgs:!1},M:{id:n.OPS.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:n.OPS.setDash,numArgs:2,variableArgs:!1},ri:{id:n.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:n.OPS.setFlatness,numArgs:1,variableArgs:!1},gs:{id:n.OPS.setGState,numArgs:1,variableArgs:!1},q:{id:n.OPS.save,numArgs:0,variableArgs:!1},Q:{id:n.OPS.restore,numArgs:0,variableArgs:!1},cm:{id:n.OPS.transform,numArgs:6,variableArgs:!1},m:{id:n.OPS.moveTo,numArgs:2,variableArgs:!1},l:{id:n.OPS.lineTo,numArgs:2,variableArgs:!1},c:{id:n.OPS.curveTo,numArgs:6,variableArgs:!1},v:{id:n.OPS.curveTo2,numArgs:4,variableArgs:!1},y:{id:n.OPS.curveTo3,numArgs:4,variableArgs:!1},h:{id:n.OPS.closePath,numArgs:0,variableArgs:!1},re:{id:n.OPS.rectangle,numArgs:4,variableArgs:!1},S:{id:n.OPS.stroke,numArgs:0,variableArgs:!1},s:{id:n.OPS.closeStroke,numArgs:0,variableArgs:!1},f:{id:n.OPS.fill,numArgs:0,variableArgs:!1},F:{id:n.OPS.fill,numArgs:0,variableArgs:!1},"f*":{id:n.OPS.eoFill,numArgs:0,variableArgs:!1},B:{id:n.OPS.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:n.OPS.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:n.OPS.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:n.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:n.OPS.endPath,numArgs:0,variableArgs:!1},W:{id:n.OPS.clip,numArgs:0,variableArgs:!1},"W*":{id:n.OPS.eoClip,numArgs:0,variableArgs:!1},BT:{id:n.OPS.beginText,numArgs:0,variableArgs:!1},ET:{id:n.OPS.endText,numArgs:0,variableArgs:!1},Tc:{id:n.OPS.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:n.OPS.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:n.OPS.setHScale,numArgs:1,variableArgs:!1},TL:{id:n.OPS.setLeading,numArgs:1,variableArgs:!1},Tf:{id:n.OPS.setFont,numArgs:2,variableArgs:!1},Tr:{id:n.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:n.OPS.setTextRise,numArgs:1,variableArgs:!1},Td:{id:n.OPS.moveText,numArgs:2,variableArgs:!1},TD:{id:n.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:n.OPS.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:n.OPS.nextLine,numArgs:0,variableArgs:!1},Tj:{id:n.OPS.showText,numArgs:1,variableArgs:!1},TJ:{id:n.OPS.showSpacedText,numArgs:1,variableArgs:!1},"'":{id:n.OPS.nextLineShowText,numArgs:1,variableArgs:!1},'"':{id:n.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:n.OPS.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:n.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:n.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:n.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:n.OPS.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:n.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:n.OPS.setFillColor,numArgs:4,variableArgs:!0},scn:{id:n.OPS.setFillColorN,numArgs:33,variableArgs:!0},G:{id:n.OPS.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:n.OPS.setFillGray,numArgs:1,variableArgs:!1},RG:{id:n.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:n.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:n.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:n.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:n.OPS.shadingFill,numArgs:1,variableArgs:!1},BI:{id:n.OPS.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:n.OPS.beginImageData,numArgs:0,variableArgs:!1},EI:{id:n.OPS.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:n.OPS.paintXObject,numArgs:1,variableArgs:!1},MP:{id:n.OPS.markPoint,numArgs:1,variableArgs:!1},DP:{id:n.OPS.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:n.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:n.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:n.OPS.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:n.OPS.beginCompat,numArgs:0,variableArgs:!1},EX:{id:n.OPS.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})}constructor(q,re,Z=new m){this.parser=new f.Parser({lexer:new f.Lexer(q,J.opMap),xref:re}),this.stateManager=Z,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(q){let re=q.args;for(;;){const Z=this.parser.getObj();if(Z instanceof D.Cmd){const K=Z.cmd,S=J.opMap[K];if(!S){(0,n.warn)(`Unknown command "${K}".`);continue}const k=S.id,_=S.numArgs;let G=re!==null?re.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=k>=n.OPS.moveTo&&k<=n.OPS.endPath,S.variableArgs)G>_&&(0,n.info)(`Command ${K}: expected [0, ${_}] args, but received ${G} args.`);else{if(G!==_){const Q=this.nonProcessedArgs;for(;G>_;)Q.push(re.shift()),G--;for(;G<_&&Q.length!==0;)re===null&&(re=[]),re.unshift(Q.pop()),G++}if(G<_){const Q=`command ${K}: expected ${_} args, but received ${G} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>J.MAX_INVALID_PATH_OPS)throw new n.FormatError(`Invalid ${Q}`);(0,n.warn)(`Skipping ${Q}`),re!==null&&(re.length=0);continue}}return this.preprocessCommand(k,re),q.fn=k,q.args=re,!0}if(Z===D.EOF)return!1;if(Z!==null&&(re===null&&(re=[]),re.push(Z),re.length>33))throw new n.FormatError("Too many arguments")}}preprocessCommand(q,re){switch(q|0){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(re);break}}};let j=J;_t(j,"MAX_INVALID_PATH_OPS",10),b.EvaluatorPreprocessor=j},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.IdentityCMap=b.CMapFactory=b.CMap=void 0;var n=ce(2),P=ce(4),D=ce(5),e=ce(15),t=ce(16),c=ce(3),Y=ce(8);const ee=["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"],N=Lt(2,24)-1;class I{constructor(r=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=r}addCodespaceRange(r,u,C){this.codespaceRanges[r-1].push(u,C),this.numCodespaceRanges++}mapCidRange(r,u,C){if(u-r>N)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;r<=u;)this._map[r++]=C++}mapBfRange(r,u,C){if(u-r>N)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const g=C.length-1;for(;r<=u;){this._map[r++]=C;const p=C.charCodeAt(g)+1;if(p>255){C=C.substring(0,g-1)+String.fromCharCode(C.charCodeAt(g-1)+1)+"\0";continue}C=C.substring(0,g)+String.fromCharCode(p)}}mapBfRangeToArray(r,u,C){if(u-r>N)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const g=C.length;let p=0;for(;r<=u&&p<g;)this._map[r]=C[p++],++r}mapOne(r,u){this._map[r]=u}lookup(r){return this._map[r]}contains(r){return this._map[r]!==void 0}forEach(r){const u=this._map,C=u.length;if(C<=65536)for(let g=0;g<C;g++)u[g]!==void 0&&r(g,u[g]);else for(const g in u)r(g,u[g])}charCodeOf(r){const u=this._map;if(u.length<=65536)return u.indexOf(r);for(const C in u)if(u[C]===r)return C|0;return-1}getMap(){return this._map}readCharCode(r,u,C){let g=0;const p=this.codespaceRanges;for(let X=0,$=p.length;X<$;X++){g=(g<<8|r.charCodeAt(u+X))>>>0;const y=p[X];for(let v=0,m=y.length;v<m;){const h=y[v++],A=y[v++];if(g>=h&&g<=A){C.charcode=g,C.length=X+1;return}}}C.charcode=0,C.length=1}getCharCodeLength(r){const u=this.codespaceRanges;for(let C=0,g=u.length;C<g;C++){const p=u[C];for(let X=0,$=p.length;X<$;){const y=p[X++],v=p[X++];if(r>=y&&r<=v)return C+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 r=0;r<65536;r++)if(this._map[r]!==r)return!1;return!0}}b.CMap=I;class f extends I{constructor(r,u){super(),this.vertical=r,this.addCodespaceRange(u,0,65535)}mapCidRange(r,u,C){(0,n.unreachable)("should not call mapCidRange")}mapBfRange(r,u,C){(0,n.unreachable)("should not call mapBfRange")}mapBfRangeToArray(r,u,C){(0,n.unreachable)("should not call mapBfRangeToArray")}mapOne(r,u){(0,n.unreachable)("should not call mapCidOne")}lookup(r){return Number.isInteger(r)&&r<=65535?r:void 0}contains(r){return Number.isInteger(r)&&r<=65535}forEach(r){for(let u=0;u<=65535;u++)r(u,u)}charCodeOf(r){return Number.isInteger(r)&&r<=65535?r:-1}getMap(){const r=new Array(65536);for(let u=0;u<=65535;u++)r[u]=u;return r}get length(){return 65536}get isIdentityCMap(){(0,n.unreachable)("should not access .isIdentityCMap")}}b.IdentityCMap=f;function x(s){let r=0;for(let u=0;u<s.length;u++)r=r<<8|s.charCodeAt(u);return r>>>0}function a(s){if(typeof s!="string")throw new n.FormatError("Malformed CMap: expected string.")}function E(s){if(!Number.isInteger(s))throw new n.FormatError("Malformed CMap: expected int.")}function w(s,r){for(;;){let u=r.getObj();if(u===P.EOF)break;if((0,P.isCmd)(u,"endbfchar"))return;a(u);const C=x(u);u=r.getObj(),a(u);const g=u;s.mapOne(C,g)}}function O(s,r){for(;;){let u=r.getObj();if(u===P.EOF)break;if((0,P.isCmd)(u,"endbfrange"))return;a(u);const C=x(u);u=r.getObj(),a(u);const g=x(u);if(u=r.getObj(),Number.isInteger(u)||typeof u=="string"){const p=Number.isInteger(u)?String.fromCharCode(u):u;s.mapBfRange(C,g,p)}else if((0,P.isCmd)(u,"[")){u=r.getObj();const p=[];for(;!(0,P.isCmd)(u,"]")&&u!==P.EOF;)p.push(u),u=r.getObj();s.mapBfRangeToArray(C,g,p)}else break}throw new n.FormatError("Invalid bf range.")}function M(s,r){for(;;){let u=r.getObj();if(u===P.EOF)break;if((0,P.isCmd)(u,"endcidchar"))return;a(u);const C=x(u);u=r.getObj(),E(u);const g=u;s.mapOne(C,g)}}function B(s,r){for(;;){let u=r.getObj();if(u===P.EOF)break;if((0,P.isCmd)(u,"endcidrange"))return;a(u);const C=x(u);u=r.getObj(),a(u);const g=x(u);u=r.getObj(),E(u);const p=u;s.mapCidRange(C,g,p)}}function z(s,r){for(;;){let u=r.getObj();if(u===P.EOF)break;if((0,P.isCmd)(u,"endcodespacerange"))return;if(typeof u!="string")break;const C=x(u);if(u=r.getObj(),typeof u!="string")break;const g=x(u);s.addCodespaceRange(u.length,C,g)}throw new n.FormatError("Invalid codespace range.")}function W(s,r){const u=r.getObj();Number.isInteger(u)&&(s.vertical=!!u)}function d(s,r){const u=r.getObj();u instanceof P.Name&&(s.name=u.name)}function T(s,r,u,C){return Ue(this,null,function*(){let g,p;e:for(;;)try{const X=r.getObj();if(X===P.EOF)break;if(X instanceof P.Name)X.name==="WMode"?W(s,r):X.name==="CMapName"&&d(s,r),g=X;else if(X instanceof P.Cmd)switch(X.cmd){case"endcmap":break e;case"usecmap":g instanceof P.Name&&(p=g.name);break;case"begincodespacerange":z(s,r);break;case"beginbfchar":w(s,r);break;case"begincidchar":M(s,r);break;case"beginbfrange":O(s,r);break;case"begincidrange":B(s,r);break}}catch(X){if(X instanceof c.MissingDataException)throw X;(0,n.warn)("Invalid cMap data: "+X);continue}return!C&&p&&(C=p),C?o(s,u,C):s})}function o(s,r,u){return Ue(this,null,function*(){if(s.useCMap=yield l(u,r),s.numCodespaceRanges===0){const C=s.useCMap.codespaceRanges;for(let g=0;g<C.length;g++)s.codespaceRanges[g]=C[g].slice();s.numCodespaceRanges=s.useCMap.numCodespaceRanges}return s.useCMap.forEach(function(C,g){s.contains(C)||s.mapOne(C,s.useCMap.lookup(C))}),s})}function l(s,r){return Ue(this,null,function*(){if(s==="Identity-H")return new f(!1,2);if(s==="Identity-V")return new f(!0,2);if(!ee.includes(s))throw new Error("Unknown CMap name: "+s);if(!r)throw new Error("Built-in CMap parameters are not provided.");const{cMapData:u,compressionType:C}=yield r(s),g=new I(!0);if(C===n.CMapCompressionType.BINARY)return new e.BinaryCMapReader().process(u,g,p=>o(g,r,p));if(C===n.CMapCompressionType.NONE){const p=new t.Lexer(new Y.Stream(u));return T(g,p,r,null)}throw new Error(`Invalid CMap "compressionType" value: ${C}`)})}class F{static create(g){return Ue(this,arguments,function*({encoding:r,fetchBuiltInCMap:u,useCMap:C}){if(r instanceof P.Name)return l(r.name,u);if(r instanceof D.BaseStream){const p=yield T(new I,new t.Lexer(r),u,C);return p.isIdentityCMap?l(p.name,u):p}throw new Error("Encoding required.")})}}b.CMapFactory=F},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.BinaryCMapReader=void 0;var n=ce(2);function P(I,f){let x=0;for(let a=0;a<=f;a++)x=x<<8|I[a];return x>>>0}function D(I,f){return f===1?String.fromCharCode(I[0],I[1]):f===3?String.fromCharCode(I[0],I[1],I[2],I[3]):String.fromCharCode(...I.subarray(0,f+1))}function e(I,f,x){let a=0;for(let E=x;E>=0;E--)a+=I[E]+f[E],I[E]=a&255,a>>=8}function t(I,f){let x=1;for(let a=f;a>=0&&x>0;a--)x+=I[a],I[a]=x&255,x>>=8}const c=16,Y=19;class ee{constructor(f){this.buffer=f,this.pos=0,this.end=f.length,this.tmpBuf=new Uint8Array(Y)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let f=0,x;do{const a=this.readByte();if(a<0)throw new n.FormatError("unexpected EOF in bcmap");x=!(a&128),f=f<<7|a&127}while(!x);return f}readSigned(){const f=this.readNumber();return f&1?~(f>>>1):f>>>1}readHex(f,x){f.set(this.buffer.subarray(this.pos,this.pos+x+1)),this.pos+=x+1}readHexNumber(f,x){let a;const E=this.tmpBuf;let w=0;do{const z=this.readByte();if(z<0)throw new n.FormatError("unexpected EOF in bcmap");a=!(z&128),E[w++]=z&127}while(!a);let O=x,M=0,B=0;for(;O>=0;){for(;B<8&&E.length>0;)M|=E[--w]<<B,B+=7;f[O]=M&255,O--,M>>=8,B-=8}}readHexSigned(f,x){this.readHexNumber(f,x);const a=f[x]&1?255:0;let E=0;for(let w=0;w<=x;w++)E=(E&1)<<8|f[w],f[w]=E>>1^a}readString(){const f=this.readNumber(),x=new Array(f);for(let a=0;a<f;a++)x[a]=this.readNumber();return String.fromCharCode(...x)}}class N{process(f,x,a){return Ue(this,null,function*(){const E=new ee(f),w=E.readByte();x.vertical=!!(w&1);let O=null;const M=new Uint8Array(c),B=new Uint8Array(c),z=new Uint8Array(c),W=new Uint8Array(c),d=new Uint8Array(c);let T,o;for(;(o=E.readByte())>=0;){const l=o>>5;if(l===7){switch(o&31){case 0:E.readString();break;case 1:O=E.readString();break}continue}const F=!!(o&16),s=o&15;if(s+1>c)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const r=1,u=E.readNumber();switch(l){case 0:E.readHex(M,s),E.readHexNumber(B,s),e(B,M,s),x.addCodespaceRange(s+1,P(M,s),P(B,s));for(let C=1;C<u;C++)t(B,s),E.readHexNumber(M,s),e(M,B,s),E.readHexNumber(B,s),e(B,M,s),x.addCodespaceRange(s+1,P(M,s),P(B,s));break;case 1:E.readHex(M,s),E.readHexNumber(B,s),e(B,M,s),E.readNumber();for(let C=1;C<u;C++)t(B,s),E.readHexNumber(M,s),e(M,B,s),E.readHexNumber(B,s),e(B,M,s),E.readNumber();break;case 2:E.readHex(z,s),T=E.readNumber(),x.mapOne(P(z,s),T);for(let C=1;C<u;C++)t(z,s),F||(E.readHexNumber(d,s),e(z,d,s)),T=E.readSigned()+(T+1),x.mapOne(P(z,s),T);break;case 3:E.readHex(M,s),E.readHexNumber(B,s),e(B,M,s),T=E.readNumber(),x.mapCidRange(P(M,s),P(B,s),T);for(let C=1;C<u;C++)t(B,s),F?M.set(B):(E.readHexNumber(M,s),e(M,B,s)),E.readHexNumber(B,s),e(B,M,s),T=E.readNumber(),x.mapCidRange(P(M,s),P(B,s),T);break;case 4:E.readHex(z,r),E.readHex(W,s),x.mapOne(P(z,r),D(W,s));for(let C=1;C<u;C++)t(z,r),F||(E.readHexNumber(d,r),e(z,d,r)),t(W,s),E.readHexSigned(d,s),e(W,d,s),x.mapOne(P(z,r),D(W,s));break;case 5:E.readHex(M,r),E.readHexNumber(B,r),e(B,M,r),E.readHex(W,s),x.mapBfRange(P(M,r),P(B,r),D(W,s));for(let C=1;C<u;C++)t(B,r),F?M.set(B):(E.readHexNumber(M,r),e(M,B,r)),E.readHexNumber(B,r),e(B,M,r),E.readHex(W,s),x.mapBfRange(P(M,r),P(B,r),D(W,s));break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${l}`)}}return O?a(O):x})}}b.BinaryCMapReader=N},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Parser=b.Linearization=b.Lexer=void 0;var n=ce(2),P=ce(4),D=ce(3),e=ce(8),t=ce(17),c=ce(19),Y=ce(20),ee=ce(22),N=ce(23),I=ce(26),f=ce(29),x=ce(31),a=ce(32),E=ce(33);const w=1e3;function O(T){const o=[],l=T.length;let F=0;for(;F<l-1;)o.push(T[F++]<<8|T[F++]);return F<l&&o.push(T[F]),l+"_"+String.fromCharCode.apply(null,o)}class M{constructor({lexer:o,xref:l,allowStreams:F=!1,recoveryMode:s=!1}){this.lexer=o,this.xref=l,this.allowStreams=F,this.recoveryMode=s,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 P.Cmd&&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(o){if(o instanceof D.MissingDataException)throw o;return!1}}getObj(o=null){const l=this.buf1;if(this.shift(),l instanceof P.Cmd)switch(l.cmd){case"BI":return this.makeInlineImage(o);case"[":const F=[];for(;!(0,P.isCmd)(this.buf1,"]")&&this.buf1!==P.EOF;)F.push(this.getObj(o));if(this.buf1===P.EOF){if(this.recoveryMode)return F;throw new D.ParserEOFException("End of file inside array.")}return this.shift(),F;case"<<":const s=new P.Dict(this.xref);for(;!(0,P.isCmd)(this.buf1,">>")&&this.buf1!==P.EOF;){if(!(this.buf1 instanceof P.Name)){(0,n.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const r=this.buf1.name;if(this.shift(),this.buf1===P.EOF)break;s.set(r,this.getObj(o))}if(this.buf1===P.EOF){if(this.recoveryMode)return s;throw new D.ParserEOFException("End of file inside dictionary.")}return(0,P.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(s,o):s:(this.shift(),s);default:return l}if(Number.isInteger(l)){if(Number.isInteger(this.buf1)&&(0,P.isCmd)(this.buf2,"R")){const F=P.Ref.get(l,this.buf1);return this.shift(),this.shift(),F}return l}return typeof l=="string"&&o?o.decryptString(l):l}findDefaultInlineStreamEnd(o){const{knownCommands:g}=this.lexer,p=o.pos,X=15;let $=0,y,v;for(;(y=o.getByte())!==-1;)if($===0)$=y===69?1:0;else if($===1)$=y===73?2:0;else if(y===32||y===10||y===13){v=o.pos;const h=o.peekBytes(X),A=h.length;if(A===0)break;for(let J=0;J<A;J++)if(y=h[J],!(y===0&&h[J+1]!==0)&&y!==10&&y!==13&&(y<32||y>127)){$=0;break}if($!==2)continue;if(!g){(0,n.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}const j=new W(new e.Stream(h.slice()),g);j._hexStringWarn=()=>{};let H=0;for(;;){const J=j.getObj();if(J===P.EOF){$=0;break}if(J instanceof P.Cmd){const oe=g[J.cmd];if(oe){if(oe.variableArgs?H<=oe.numArgs:H===oe.numArgs)break}else{$=0;break}H=0;continue}H++}if($===2)break}else $=0;y===-1&&((0,n.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),v&&((0,n.warn)('... trying to recover by using the last "EI" occurrence.'),o.skip(-(o.pos-v))));let m=4;return o.skip(-m),y=o.peekByte(),o.skip(m),(0,D.isWhiteSpace)(y)||m--,o.pos-m-p}findDCTDecodeInlineStreamEnd(o){const l=o.pos;let F=!1,s,r;for(;(s=o.getByte())!==-1;)if(s===255){switch(o.getByte()){case 0:break;case 255:o.skip(-1);break;case 217:F=!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:r=o.getUint16(),r>2?o.skip(r-2):o.skip(-2);break}if(F)break}const u=o.pos-l;return s===-1?((0,n.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),o.skip(-u),this.findDefaultInlineStreamEnd(o)):(this.inlineStreamSkipEI(o),u)}findASCII85DecodeInlineStreamEnd(o){const s=o.pos;let r;for(;(r=o.getByte())!==-1;)if(r===126){const C=o.pos;for(r=o.peekByte();(0,D.isWhiteSpace)(r);)o.skip(),r=o.peekByte();if(r===62){o.skip();break}if(o.pos>C){const g=o.peekBytes(2);if(g[0]===69&&g[1]===73)break}}const u=o.pos-s;return r===-1?((0,n.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),o.skip(-u),this.findDefaultInlineStreamEnd(o)):(this.inlineStreamSkipEI(o),u)}findASCIIHexDecodeInlineStreamEnd(o){const F=o.pos;let s;for(;(s=o.getByte())!==-1&&s!==62;);const r=o.pos-F;return s===-1?((0,n.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),o.skip(-r),this.findDefaultInlineStreamEnd(o)):(this.inlineStreamSkipEI(o),r)}inlineStreamSkipEI(o){let s=0,r;for(;(r=o.getByte())!==-1;)if(s===0)s=r===69?1:0;else if(s===1)s=r===73?2:0;else if(s===2)break}makeInlineImage(o){const l=this.lexer,F=l.stream,s=Object.create(null);let r;for(;!(0,P.isCmd)(this.buf1,"ID")&&this.buf1!==P.EOF;){if(!(this.buf1 instanceof P.Name))throw new n.FormatError("Dictionary key must be a name object");const v=this.buf1.name;if(this.shift(),this.buf1===P.EOF)break;s[v]=this.getObj(o)}l.beginInlineImagePos!==-1&&(r=F.pos-l.beginInlineImagePos);const u=this.xref.fetchIfRef(s.F||s.Filter);let C;if(u instanceof P.Name)C=u.name;else if(Array.isArray(u)){const v=this.xref.fetchIfRef(u[0]);v instanceof P.Name&&(C=v.name)}const g=F.pos;let p;switch(C){case"DCT":case"DCTDecode":p=this.findDCTDecodeInlineStreamEnd(F);break;case"A85":case"ASCII85Decode":p=this.findASCII85DecodeInlineStreamEnd(F);break;case"AHx":case"ASCIIHexDecode":p=this.findASCIIHexDecodeInlineStreamEnd(F);break;default:p=this.findDefaultInlineStreamEnd(F)}let X;if(p<w&&r>0){const v=F.pos;F.pos=l.beginInlineImagePos,X=O(F.getBytes(r+p)),F.pos=v;const m=this.imageCache[X];if(m!==void 0)return this.buf2=P.Cmd.get("EI"),this.shift(),m.reset(),m}const $=new P.Dict(this.xref);for(const v in s)$.set(v,s[v]);let y=F.makeSubStream(g,p,$);return o&&(y=o.createStream(y,p)),y=this.filter(y,$,p),y.dict=$,X!==void 0&&(y.cacheKey=`inline_img_${++this._imageId}`,this.imageCache[X]=y),this.buf2=P.Cmd.get("EI"),this.shift(),y}_findStreamLength(o,l){const{stream:F}=this.lexer;F.pos=o;const s=2048,r=l.length;for(;F.pos<F.end;){const u=F.peekBytes(s),C=u.length-r;if(C<=0)break;let g=0;for(;g<C;){let p=0;for(;p<r&&u[g+p]===l[p];)p++;if(p>=r)return F.pos+=g,F.pos-o;g++}F.pos+=C}return-1}makeStream(o,l){const F=this.lexer;let s=F.stream;F.skipToNextLine();const r=s.pos-1;let u=o.get("Length");if(Number.isInteger(u)||((0,n.info)(`Bad length "${u&&u.toString()}" in stream.`),u=0),s.pos=r+u,F.nextChar(),this.tryShift()&&(0,P.isCmd)(this.buf2,"endstream"))this.shift();else{const C=new Uint8Array([101,110,100,115,116,114,101,97,109]);let g=this._findStreamLength(r,C);if(g<0){for(let X=1;X<=1;X++){const $=C.length-X,y=C.slice(0,$),v=this._findStreamLength(r,y);if(v>=0){const m=s.peekBytes($+1)[$];if(!(0,D.isWhiteSpace)(m))break;(0,n.info)(`Found "${(0,n.bytesToString)(y)}" when searching for endstream command.`),g=v;break}}if(g<0)throw new n.FormatError("Missing endstream command.")}u=g,F.nextChar(),this.shift(),this.shift()}return this.shift(),s=s.makeSubStream(r,u,o),l&&(s=l.createStream(s,u)),s=this.filter(s,o,u),s.dict=o,s}filter(o,l,F){let s=l.get("F","Filter"),r=l.get("DP","DecodeParms");if(s instanceof P.Name)return Array.isArray(r)&&(0,n.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(o,s.name,F,r);let u=F;if(Array.isArray(s)){const C=s,g=r;for(let p=0,X=C.length;p<X;++p){if(s=this.xref.fetchIfRef(C[p]),!(s instanceof P.Name))throw new n.FormatError(`Bad filter name "${s}"`);r=null,Array.isArray(g)&&p in g&&(r=this.xref.fetchIfRef(g[p])),o=this.makeFilter(o,s.name,u,r),u=null}}return o}makeFilter(o,l,F,s){if(F===0)return(0,n.warn)(`Empty "${l}" stream.`),new e.NullStream;try{switch(l){case"Fl":case"FlateDecode":return s?new a.PredictorStream(new ee.FlateStream(o,F),F,s):new ee.FlateStream(o,F);case"LZW":case"LZWDecode":let r=1;return s?(s.has("EarlyChange")&&(r=s.get("EarlyChange")),new a.PredictorStream(new x.LZWStream(o,F,r),F,s)):new x.LZWStream(o,F,r);case"DCT":case"DCTDecode":return new I.JpegStream(o,F,s);case"JPX":case"JPXDecode":return new f.JpxStream(o,F,s);case"A85":case"ASCII85Decode":return new t.Ascii85Stream(o,F);case"AHx":case"ASCIIHexDecode":return new c.AsciiHexStream(o,F);case"CCF":case"CCITTFaxDecode":return new Y.CCITTFaxStream(o,F,s);case"RL":case"RunLengthDecode":return new E.RunLengthStream(o,F);case"JBIG2Decode":return new N.Jbig2Stream(o,F,s)}return(0,n.warn)(`Filter "${l}" is not supported.`),o}catch(r){if(r instanceof D.MissingDataException)throw r;return(0,n.warn)(`Invalid stream: "${r}"`),new e.NullStream}}}b.Parser=M;const B=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function z(T){return T>=48&&T<=57?T&15:T>=65&&T<=70||T>=97&&T<=102?(T&15)+9:-1}class W{constructor(o,l=null){this.stream=o,this.nextChar(),this.strBuf=[],this.knownCommands=l,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let o=this.currentChar,l=!1,F=0,s=1;if(o===45?(s=-1,o=this.nextChar(),o===45&&(o=this.nextChar())):o===43&&(o=this.nextChar()),o===10||o===13)do o=this.nextChar();while(o===10||o===13);if(o===46&&(F=10,o=this.nextChar()),o<48||o>57){const g=`Invalid number: ${String.fromCharCode(o)} (charCode ${o})`;if((0,D.isWhiteSpace)(o)||o===-1)return(0,n.info)(`Lexer.getNumber - "${g}".`),0;throw new n.FormatError(g)}let r=o-48,u=0,C=1;for(;(o=this.nextChar())>=0;)if(o>=48&&o<=57){const g=o-48;l?u=u*10+g:(F!==0&&(F*=10),r=r*10+g)}else if(o===46)if(F===0)F=1;else break;else if(o===45)(0,n.warn)("Badly formatted number: minus sign in the middle");else if(o===69||o===101){if(o=this.peekChar(),o===43||o===45)C=o===45?-1:1,this.nextChar();else if(o<48||o>57)break;l=!0}else break;return F!==0&&(r/=F),l&&(r*=Lt(10,C*u)),s*r}getString(){let o=1,l=!1;const F=this.strBuf;F.length=0;let s=this.nextChar();for(;;){let r=!1;switch(s|0){case-1:(0,n.warn)("Unterminated string"),l=!0;break;case 40:++o,F.push("(");break;case 41:--o===0?(this.nextChar(),l=!0):F.push(")");break;case 92:switch(s=this.nextChar(),s){case-1:(0,n.warn)("Unterminated string"),l=!0;break;case 110:F.push(`
- `);break;case 114:F.push("\r");break;case 116:F.push(" ");break;case 98:F.push("\b");break;case 102:F.push("\f");break;case 92:case 40:case 41:F.push(String.fromCharCode(s));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let u=s&15;s=this.nextChar(),r=!0,s>=48&&s<=55&&(u=(u<<3)+(s&15),s=this.nextChar(),s>=48&&s<=55&&(r=!1,u=(u<<3)+(s&15))),F.push(String.fromCharCode(u));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:F.push(String.fromCharCode(s));break}break;default:F.push(String.fromCharCode(s));break}if(l)break;r||(s=this.nextChar())}return F.join("")}getName(){let o,l;const F=this.strBuf;for(F.length=0;(o=this.nextChar())>=0&&!B[o];)if(o===35){if(o=this.nextChar(),B[o]){(0,n.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),F.push("#");break}const s=z(o);if(s!==-1){l=o,o=this.nextChar();const r=z(o);if(r===-1){if((0,n.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(o)}) in hexadecimal number.`),F.push("#",String.fromCharCode(l)),B[o])break;F.push(String.fromCharCode(o));continue}F.push(String.fromCharCode(s<<4|r))}else F.push("#",String.fromCharCode(o))}else F.push(String.fromCharCode(o));return F.length>127&&(0,n.warn)(`Name token is longer than allowed by the spec: ${F.length}`),P.Name.get(F.join(""))}_hexStringWarn(o){if(this._hexStringNumWarn++===5){(0,n.warn)("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||(0,n.warn)(`getHexString - ignoring invalid character: ${o}`)}getHexString(){const o=this.strBuf;o.length=0;let l=this.currentChar,F=!0,s,r;for(this._hexStringNumWarn=0;;)if(l<0){(0,n.warn)("Unterminated hex string");break}else if(l===62){this.nextChar();break}else if(B[l]===1){l=this.nextChar();continue}else{if(F){if(s=z(l),s===-1){this._hexStringWarn(l),l=this.nextChar();continue}}else{if(r=z(l),r===-1){this._hexStringWarn(l),l=this.nextChar();continue}o.push(String.fromCharCode(s<<4|r))}F=!F,l=this.nextChar()}return o.join("")}getObj(){let o=!1,l=this.currentChar;for(;;){if(l<0)return P.EOF;if(o)(l===10||l===13)&&(o=!1);else if(l===37)o=!0;else if(B[l]!==1)break;l=this.nextChar()}switch(l|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(),P.Cmd.get("[");case 93:return this.nextChar(),P.Cmd.get("]");case 60:return l=this.nextChar(),l===60?(this.nextChar(),P.Cmd.get("<<")):this.getHexString();case 62:return l=this.nextChar(),l===62?(this.nextChar(),P.Cmd.get(">>")):P.Cmd.get(">");case 123:return this.nextChar(),P.Cmd.get("{");case 125:return this.nextChar(),P.Cmd.get("}");case 41:throw this.nextChar(),new n.FormatError(`Illegal character: ${l}`)}let F=String.fromCharCode(l);if(l<32||l>127){const u=this.peekChar();if(u>=32&&u<=127)return this.nextChar(),P.Cmd.get(F)}const s=this.knownCommands;let r=(s==null?void 0:s[F])!==void 0;for(;(l=this.nextChar())>=0&&!B[l];){const u=F+String.fromCharCode(l);if(r&&s[u]===void 0)break;if(F.length===128)throw new n.FormatError(`Command token too long: ${F.length}`);F=u,r=(s==null?void 0:s[F])!==void 0}return F==="true"?!0:F==="false"?!1:F==="null"?null:(F==="BI"&&(this.beginInlineImagePos=this.stream.pos),P.Cmd.get(F))}skipToNextLine(){let o=this.currentChar;for(;o>=0;){if(o===13){o=this.nextChar(),o===10&&this.nextChar();break}else if(o===10){this.nextChar();break}o=this.nextChar()}}}b.Lexer=W;class d{static create(o){function l($,y,v=!1){const m=$.get(y);if(Number.isInteger(m)&&(v?m>=0:m>0))return m;throw new Error(`The "${y}" parameter in the linearization dictionary is invalid.`)}function F($){const y=$.get("H");let v;if(Array.isArray(y)&&((v=y.length)===2||v===4)){for(let m=0;m<v;m++){const h=y[m];if(!(Number.isInteger(h)&&h>0))throw new Error(`Hint (${m}) in the linearization dictionary is invalid.`)}return y}throw new Error("Hint array in the linearization dictionary is invalid.")}const s=new M({lexer:new W(o),xref:null}),r=s.getObj(),u=s.getObj(),C=s.getObj(),g=s.getObj();let p,X;if(Number.isInteger(r)&&Number.isInteger(u)&&(0,P.isCmd)(C,"obj")&&g instanceof P.Dict&&typeof(p=g.get("Linearized"))=="number"&&p>0){if((X=l(g,"L"))!==o.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:X,hints:F(g),objectNumberFirst:l(g,"O"),endFirst:l(g,"E"),numPages:l(g,"N"),mainXRefEntriesOffset:l(g,"T"),pageFirst:g.has("P")?l(g,"P",!0):0}}}b.Linearization=d},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Ascii85Stream=void 0;var n=ce(18),P=ce(3);class D extends n.DecodeStream{constructor(t,c){c&&(c*=.8),super(c),this.str=t,this.dict=t.dict,this.input=new Uint8Array(5)}readBlock(){const ee=this.str;let N=ee.getByte();for(;(0,P.isWhiteSpace)(N);)N=ee.getByte();if(N===-1||N===126){this.eof=!0;return}const I=this.bufferLength;let f,x;if(N===122){for(f=this.ensureBuffer(I+4),x=0;x<4;++x)f[I+x]=0;this.bufferLength+=4}else{const a=this.input;for(a[0]=N,x=1;x<5;++x){for(N=ee.getByte();(0,P.isWhiteSpace)(N);)N=ee.getByte();if(a[x]=N,N===-1||N===126)break}if(f=this.ensureBuffer(I+x-1),this.bufferLength+=x-1,x<5){for(;x<5;++x)a[x]=117;this.eof=!0}let E=0;for(x=0;x<5;++x)E=E*85+(a[x]-33);for(x=3;x>=0;--x)f[I+x]=E&255,E>>=8}}}b.Ascii85Stream=D},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.StreamsSequenceStream=b.DecodeStream=void 0;var n=ce(5),P=ce(8);const D=new Uint8Array(0);class e extends n.BaseStream{constructor(Y){if(super(),this._rawMinBufferLength=Y||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=D,this.minBufferLength=512,Y)for(;this.minBufferLength<Y;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}ensureBuffer(Y){const ee=this.buffer;if(Y<=ee.byteLength)return ee;let N=this.minBufferLength;for(;N<Y;)N*=2;const I=new Uint8Array(N);return I.set(ee),this.buffer=I}getByte(){const Y=this.pos;for(;this.bufferLength<=Y;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(Y){const ee=this.pos;let N;if(Y){for(this.ensureBuffer(ee+Y),N=ee+Y;!this.eof&&this.bufferLength<N;)this.readBlock();const I=this.bufferLength;N>I&&(N=I)}else{for(;!this.eof;)this.readBlock();N=this.bufferLength}return this.pos=N,this.buffer.subarray(ee,N)}reset(){this.pos=0}makeSubStream(Y,ee,N=null){if(ee===void 0)for(;!this.eof;)this.readBlock();else{const I=Y+ee;for(;this.bufferLength<=I&&!this.eof;)this.readBlock()}return new P.Stream(this.buffer,Y,ee,N)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}b.DecodeStream=e;class t extends e{constructor(Y,ee=null){let N=0;for(const I of Y)N+=I instanceof e?I._rawMinBufferLength:I.length;super(N),this.streams=Y,this._onError=ee}readBlock(){var a;const Y=this.streams;if(Y.length===0){this.eof=!0;return}const ee=Y.shift();let N;try{N=ee.getBytes()}catch(E){if(this._onError){this._onError(E,(a=ee.dict)==null?void 0:a.objId);return}throw E}const I=this.bufferLength,f=I+N.length;this.ensureBuffer(f).set(N,I),this.bufferLength=f}getBaseStreams(){const Y=[];for(const ee of this.streams){const N=ee.getBaseStreams();N&&Y.push(...N)}return Y.length>0?Y:null}}b.StreamsSequenceStream=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.AsciiHexStream=void 0;var n=ce(18);class P extends n.DecodeStream{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){const t=this.str.getBytes(8e3);if(!t.length){this.eof=!0;return}const c=t.length+1>>1,Y=this.ensureBuffer(this.bufferLength+c);let ee=this.bufferLength,N=this.firstDigit;for(const I of t){let f;if(I>=48&&I<=57)f=I&15;else if(I>=65&&I<=70||I>=97&&I<=102)f=(I&15)+9;else if(I===62){this.eof=!0;break}else continue;N<0?N=f:(Y[ee++]=N<<4|f,N=-1)}N>=0&&this.eof&&(Y[ee++]=N<<4,N=-1),this.firstDigit=N,this.bufferLength=ee}}b.AsciiHexStream=P},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.CCITTFaxStream=void 0;var n=ce(21),P=ce(18),D=ce(4);class e extends P.DecodeStream{constructor(c,Y,ee){super(Y),this.str=c,this.dict=c.dict,ee instanceof D.Dict||(ee=D.Dict.empty);const N={next(){return c.getByte()}};this.ccittFaxDecoder=new n.CCITTFaxDecoder(N,{K:ee.get("K"),EndOfLine:ee.get("EndOfLine"),EncodedByteAlign:ee.get("EncodedByteAlign"),Columns:ee.get("Columns"),Rows:ee.get("Rows"),EndOfBlock:ee.get("EndOfBlock"),BlackIs1:ee.get("BlackIs1")})}readBlock(){for(;!this.eof;){const c=this.ccittFaxDecoder.readNextChar();if(c===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=c}}}b.CCITTFaxStream=e},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.CCITTFaxDecoder=void 0;var n=ce(2);const P=-2,D=-1,e=0,t=1,c=2,Y=3,ee=4,N=5,I=6,f=7,x=8,a=[[-1,-1],[-1,-1],[7,x],[7,f],[6,I],[6,I],[6,N],[6,N],[4,e],[4,e],[4,e],[4,e],[4,e],[4,e],[4,e],[4,e],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,t],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,ee],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[3,Y],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c]],E=[[-1,-1],[12,P],[-1,-1],[-1,-1],[-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]],w=[[-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]],O=[[-1,-1],[-1,-1],[12,P],[12,P],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-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]],M=[[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]],B=[[-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]];class z{constructor(d,T={}){var l;if(!d||typeof d.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=d,this.eof=!1,this.encoding=T.K||0,this.eoline=T.EndOfLine||!1,this.byteAlign=T.EncodedByteAlign||!1,this.columns=T.Columns||1728,this.rows=T.Rows||0,this.eoblock=(l=T.EndOfBlock)!=null?l:!0,this.black=T.BlackIs1||!1,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 o;for(;(o=this._lookBits(12))===0;)this._eatBits(1);o===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;const d=this.refLine,T=this.codingLine,o=this.columns;let l,F,s,r;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let C,g,p;if(this.nextLine2D){for(r=0;T[r]<o;++r)d[r]=T[r];for(d[r++]=o,d[r]=o,T[0]=0,this.codingPos=0,l=0,F=0;T[this.codingPos]<o;)switch(C=this._getTwoDimCode(),C){case e:this._addPixels(d[l+1],F),d[l+1]<o&&(l+=2);break;case t:if(C=g=0,F){do C+=p=this._getBlackCode();while(p>=64);do g+=p=this._getWhiteCode();while(p>=64)}else{do C+=p=this._getWhiteCode();while(p>=64);do g+=p=this._getBlackCode();while(p>=64)}for(this._addPixels(T[this.codingPos]+C,F),T[this.codingPos]<o&&this._addPixels(T[this.codingPos]+g,F^1);d[l]<=T[this.codingPos]&&d[l]<o;)l+=2;break;case f:if(this._addPixels(d[l]+3,F),F^=1,T[this.codingPos]<o)for(++l;d[l]<=T[this.codingPos]&&d[l]<o;)l+=2;break;case N:if(this._addPixels(d[l]+2,F),F^=1,T[this.codingPos]<o)for(++l;d[l]<=T[this.codingPos]&&d[l]<o;)l+=2;break;case Y:if(this._addPixels(d[l]+1,F),F^=1,T[this.codingPos]<o)for(++l;d[l]<=T[this.codingPos]&&d[l]<o;)l+=2;break;case c:if(this._addPixels(d[l],F),F^=1,T[this.codingPos]<o)for(++l;d[l]<=T[this.codingPos]&&d[l]<o;)l+=2;break;case x:if(this._addPixelsNeg(d[l]-3,F),F^=1,T[this.codingPos]<o)for(l>0?--l:++l;d[l]<=T[this.codingPos]&&d[l]<o;)l+=2;break;case I:if(this._addPixelsNeg(d[l]-2,F),F^=1,T[this.codingPos]<o)for(l>0?--l:++l;d[l]<=T[this.codingPos]&&d[l]<o;)l+=2;break;case ee:if(this._addPixelsNeg(d[l]-1,F),F^=1,T[this.codingPos]<o)for(l>0?--l:++l;d[l]<=T[this.codingPos]&&d[l]<o;)l+=2;break;case D:this._addPixels(o,0),this.eof=!0;break;default:(0,n.info)("bad 2d code"),this._addPixels(o,0),this.err=!0}}else for(T[0]=0,this.codingPos=0,F=0;T[this.codingPos]<o;){if(C=0,F)do C+=p=this._getBlackCode();while(p>=64);else do C+=p=this._getWhiteCode();while(p>=64);this._addPixels(T[this.codingPos]+C,F),F^=1}let X=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(C=this._lookBits(12),this.eoline)for(;C!==D&&C!==1;)this._eatBits(1),C=this._lookBits(12);else for(;C===0;)this._eatBits(1),C=this._lookBits(12);C===1?(this._eatBits(12),X=!0):C===D&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&X&&this.byteAlign){if(C=this._lookBits(12),C===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(r=0;r<4;++r)C=this._lookBits(12),C!==1&&(0,n.info)("bad rtc code: "+C),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(C=this._lookBits(13),C===D)return this.eof=!0,-1;if(C>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(C&1))}this.outputBits=T[0]>0?T[this.codingPos=0]:T[this.codingPos=1],this.row++}let u;if(this.outputBits>=8)u=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&T[this.codingPos]<o&&(this.codingPos++,this.outputBits=T[this.codingPos]-T[this.codingPos-1]);else{s=8,u=0;do{if(typeof this.outputBits!="number")throw new n.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>s?(u<<=s,this.codingPos&1||(u|=255>>8-s),this.outputBits-=s,s=0):(u<<=this.outputBits,this.codingPos&1||(u|=255>>8-this.outputBits),s-=this.outputBits,this.outputBits=0,T[this.codingPos]<o?(this.codingPos++,this.outputBits=T[this.codingPos]-T[this.codingPos-1]):s>0&&(u<<=s,s=0))}while(s)}return this.black&&(u^=255),u}_addPixels(d,T){const o=this.codingLine;let l=this.codingPos;d>o[l]&&(d>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,d=this.columns),l&1^T&&++l,o[l]=d),this.codingPos=l}_addPixelsNeg(d,T){const o=this.codingLine;let l=this.codingPos;if(d>o[l])d>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,d=this.columns),l&1^T&&++l,o[l]=d;else if(d<o[l]){for(d<0&&((0,n.info)("invalid code"),this.err=!0,d=0);l>0&&d<o[l-1];)--l;o[l]=d}this.codingPos=l}_findTableCode(d,T,o,l){const F=l||0;for(let s=d;s<=T;++s){let r=this._lookBits(s);if(r===D)return[!0,1,!1];if(s<T&&(r<<=T-s),!F||r>=F){const u=o[r-F];if(u[0]===s)return this._eatBits(s),[!0,u[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let d=0,T;if(this.eoblock){if(d=this._lookBits(7),T=a[d],(T==null?void 0:T[0])>0)return this._eatBits(T[0]),T[1]}else{const o=this._findTableCode(1,7,a);if(o[0]&&o[2])return o[1]}return(0,n.info)("Bad two dim code"),D}_getWhiteCode(){let d=0,T;if(this.eoblock){if(d=this._lookBits(12),d===D)return 1;if(T=d>>5===0?E[d]:w[d>>3],T[0]>0)return this._eatBits(T[0]),T[1]}else{let o=this._findTableCode(1,9,w);if(o[0]||(o=this._findTableCode(11,12,E),o[0]))return o[1]}return(0,n.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let d,T;if(this.eoblock){if(d=this._lookBits(13),d===D)return 1;if(d>>7===0?T=O[d]:d>>9===0&&d>>7!==0?T=M[(d>>1)-64]:T=B[d>>7],T[0]>0)return this._eatBits(T[0]),T[1]}else{let o=this._findTableCode(2,6,B);if(o[0]||(o=this._findTableCode(7,12,M,64),o[0])||(o=this._findTableCode(10,13,O),o[0]))return o[1]}return(0,n.info)("bad black code"),this._eatBits(1),1}_lookBits(d){let T;for(;this.inputBits<d;){if((T=this.source.next())===-1)return this.inputBits===0?D:this.inputBuf<<d-this.inputBits&65535>>16-d;this.inputBuf=this.inputBuf<<8|T,this.inputBits+=8}return this.inputBuf>>this.inputBits-d&65535>>16-d}_eatBits(d){(this.inputBits-=d)<0&&(this.inputBits=0)}}b.CCITTFaxDecoder=z},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.FlateStream=void 0;var n=ce(18),P=ce(2);const D=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=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]),t=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]),c=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],Y=[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];class ee extends n.DecodeStream{constructor(I,f){super(f),this.str=I,this.dict=I.dict;const x=I.getByte(),a=I.getByte();if(x===-1||a===-1)throw new P.FormatError(`Invalid header in flate stream: ${x}, ${a}`);if((x&15)!==8)throw new P.FormatError(`Unknown compression method in flate stream: ${x}, ${a}`);if(((x<<8)+a)%31!==0)throw new P.FormatError(`Bad FCHECK in flate stream: ${x}, ${a}`);if(a&32)throw new P.FormatError(`FDICT bit set in flate stream: ${x}, ${a}`);this.codeSize=0,this.codeBuf=0}getBits(I){const f=this.str;let x=this.codeSize,a=this.codeBuf,E;for(;x<I;){if((E=f.getByte())===-1)throw new P.FormatError("Bad encoding in flate stream");a|=E<<x,x+=8}return E=a&(1<<I)-1,this.codeBuf=a>>I,this.codeSize=x-=I,E}getCode(I){const f=this.str,x=I[0],a=I[1];let E=this.codeSize,w=this.codeBuf,O;for(;E<a&&(O=f.getByte())!==-1;)w|=O<<E,E+=8;const M=x[w&(1<<a)-1],B=M>>16,z=M&65535;if(B<1||E<B)throw new P.FormatError("Bad encoding in flate stream");return this.codeBuf=w>>B,this.codeSize=E-B,z}generateHuffmanTable(I){const f=I.length;let x=0,a;for(a=0;a<f;++a)I[a]>x&&(x=I[a]);const E=1<<x,w=new Int32Array(E);for(let O=1,M=0,B=2;O<=x;++O,M<<=1,B<<=1)for(let z=0;z<f;++z)if(I[z]===O){let W=0,d=M;for(a=0;a<O;++a)W=W<<1|d&1,d>>=1;for(a=W;a<E;a+=B)w[a]=O<<16|z;++M}return[w,x]}readBlock(){let I,f;const x=this.str;let a=this.getBits(3);if(a&1&&(this.eof=!0),a>>=1,a===0){let B;if((B=x.getByte())===-1)throw new P.FormatError("Bad block header in flate stream");let z=B;if((B=x.getByte())===-1)throw new P.FormatError("Bad block header in flate stream");if(z|=B<<8,(B=x.getByte())===-1)throw new P.FormatError("Bad block header in flate stream");let W=B;if((B=x.getByte())===-1)throw new P.FormatError("Bad block header in flate stream");if(W|=B<<8,W!==(~z&65535)&&(z!==0||W!==0))throw new P.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const d=this.bufferLength,T=d+z;if(I=this.ensureBuffer(T),this.bufferLength=T,z===0)x.peekByte()===-1&&(this.eof=!0);else{const o=x.getBytes(z);I.set(o,d),o.length<z&&(this.eof=!0)}return}let E,w;if(a===1)E=c,w=Y;else if(a===2){const B=this.getBits(5)+257,z=this.getBits(5)+1,W=this.getBits(4)+4,d=new Uint8Array(D.length);let T;for(T=0;T<W;++T)d[D[T]]=this.getBits(3);const o=this.generateHuffmanTable(d);f=0,T=0;const l=B+z,F=new Uint8Array(l);let s,r,u;for(;T<l;){const C=this.getCode(o);if(C===16)s=2,r=3,u=f;else if(C===17)s=3,r=3,u=f=0;else if(C===18)s=7,r=11,u=f=0;else{F[T++]=f=C;continue}let g=this.getBits(s)+r;for(;g-- >0;)F[T++]=u}E=this.generateHuffmanTable(F.subarray(0,B)),w=this.generateHuffmanTable(F.subarray(B,l))}else throw new P.FormatError("Unknown block type in flate stream");I=this.buffer;let O=I?I.length:0,M=this.bufferLength;for(;;){let B=this.getCode(E);if(B<256){M+1>=O&&(I=this.ensureBuffer(M+1),O=I.length),I[M++]=B;continue}if(B===256){this.bufferLength=M;return}B-=257,B=e[B];let z=B>>16;z>0&&(z=this.getBits(z)),f=(B&65535)+z,B=this.getCode(w),B=t[B],z=B>>16,z>0&&(z=this.getBits(z));const W=(B&65535)+z;M+f>=O&&(I=this.ensureBuffer(M+f),O=I.length);for(let d=0;d<f;++d,++M)I[M]=I[M-W]}}}b.FlateStream=ee},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Jbig2Stream=void 0;var n=ce(5),P=ce(18),D=ce(4),e=ce(24),t=ce(2);class c extends P.DecodeStream{constructor(ee,N,I){super(N),this.stream=ee,this.dict=ee.dict,this.maybeLength=N,this.params=I}get bytes(){return(0,t.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(ee){}readBlock(){if(this.eof)return;const ee=new e.Jbig2Image,N=[];if(this.params instanceof D.Dict){const x=this.params.get("JBIG2Globals");if(x instanceof n.BaseStream){const a=x.getBytes();N.push({data:a,start:0,end:a.length})}}N.push({data:this.bytes,start:0,end:this.bytes.length});const I=ee.parseChunks(N),f=I.length;for(let x=0;x<f;x++)I[x]^=255;this.buffer=I,this.bufferLength=f,this.eof=!0}}b.Jbig2Stream=c},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Jbig2Image=void 0;var n=ce(2),P=ce(3),D=ce(25),e=ce(21);class t extends n.BaseException{constructor(K){super(`JBIG2 error: ${K}`,"Jbig2Error")}}class c{getContexts(K){return K in this?this[K]:this[K]=new Int8Array(65536)}}class Y{constructor(K,S,k){this.data=K,this.start=S,this.end=k}get decoder(){const K=new D.ArithmeticDecoder(this.data,this.start,this.end);return(0,n.shadow)(this,"decoder",K)}get contextCache(){const K=new c;return(0,n.shadow)(this,"contextCache",K)}}const ee=Lt(2,31)-1,N=-Lt(2,31);function I(Z,K,S){const k=Z.getContexts(K);let _=1;function G(U){let ne=0;for(let V=0;V<U;V++){const L=S.readBit(k,_);_=_<256?_<<1|L:(_<<1|L)&511|256,ne=ne<<1|L}return ne>>>0}const Q=G(1),ie=G(1)?G(1)?G(1)?G(1)?G(1)?G(32)+4436:G(12)+340:G(8)+84:G(6)+20:G(4)+4:G(2);let ae;return Q===0?ae=ie:ie>0&&(ae=-ie),ae>=N&&ae<=ee?ae:null}function f(Z,K,S){const k=Z.getContexts("IAID");let _=1;for(let G=0;G<S;G++){const Q=K.readBit(k,_);_=_<<1|Q}return S<31?_&(1<<S)-1:_&2147483647}const x=["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"],a=[[{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}]],E=[{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}]}],w=[39717,1941,229,405],O=[32,8];function M(Z,K,S){const k=S.decoder,_=S.contextCache.getContexts("GB"),G=[];let Q,ie,ae,U,ne,V,L;const te=31735;for(ie=0;ie<K;ie++)for(ne=G[ie]=new Uint8Array(Z),V=ie<1?ne:G[ie-1],L=ie<2?ne:G[ie-2],Q=L[0]<<13|L[1]<<12|L[2]<<11|V[0]<<7|V[1]<<6|V[2]<<5|V[3]<<4,ae=0;ae<Z;ae++)ne[ae]=U=k.readBit(_,Q),Q=(Q&te)<<1|(ae+3<Z?L[ae+3]<<11:0)|(ae+4<Z?V[ae+4]<<4:0)|U;return G}function B(Z,K,S,k,_,G,Q,ie){if(Z){const et=new A(ie.data,ie.start,ie.end);return q(et,K,S,!1)}if(k===0&&!G&&!_&&Q.length===4&&Q[0].x===3&&Q[0].y===-1&&Q[1].x===-3&&Q[1].y===-1&&Q[2].x===2&&Q[2].y===-2&&Q[3].x===-2&&Q[3].y===-2)return M(K,S,ie);const ae=!!G,U=a[k].concat(Q);U.sort(function(et,rt){return et.y-rt.y||et.x-rt.x});const ne=U.length,V=new Int8Array(ne),L=new Int8Array(ne),te=[];let se=0,le=0,ue=0,fe=0,ge,xe;for(xe=0;xe<ne;xe++)V[xe]=U[xe].x,L[xe]=U[xe].y,le=Math.min(le,U[xe].x),ue=Math.max(ue,U[xe].x),fe=Math.min(fe,U[xe].y),xe<ne-1&&U[xe].y===U[xe+1].y&&U[xe].x===U[xe+1].x-1?se|=1<<ne-1-xe:te.push(xe);const me=te.length,be=new Int8Array(me),ye=new Int8Array(me),Se=new Uint16Array(me);for(ge=0;ge<me;ge++)xe=te[ge],be[ge]=U[xe].x,ye[ge]=U[xe].y,Se[ge]=1<<ne-1-xe;const pe=-le,he=-fe,de=K-ue,Ce=w[k];let we=new Uint8Array(K);const Le=[],Be=ie.decoder,at=ie.contextCache.getContexts("GB");let Oe=0,Ze,Ke,Pe,qe=0,gt,De;for(let et=0;et<S;et++){if(_){const rt=Be.readBit(at,Ce);if(Oe^=rt,Oe){Le.push(we);continue}}for(we=new Uint8Array(we),Le.push(we),Ze=0;Ze<K;Ze++){if(ae&&G[et][Ze]){we[Ze]=0;continue}if(Ze>=pe&&Ze<de&&et>=he)for(qe=qe<<1&se,xe=0;xe<me;xe++)Ke=et+ye[xe],Pe=Ze+be[xe],gt=Le[Ke][Pe],gt&&(gt=Se[xe],qe|=gt);else for(qe=0,De=ne-1,xe=0;xe<ne;xe++,De--)Pe=Ze+V[xe],Pe>=0&&Pe<K&&(Ke=et+L[xe],Ke>=0&&(gt=Le[Ke][Pe],gt&&(qe|=gt<<De)));const rt=Be.readBit(at,qe);we[Ze]=rt}}return Le}function z(Z,K,S,k,_,G,Q,ie,ae){let U=E[S].coding;S===0&&(U=U.concat([ie[0]]));const ne=U.length,V=new Int32Array(ne),L=new Int32Array(ne);let te;for(te=0;te<ne;te++)V[te]=U[te].x,L[te]=U[te].y;let se=E[S].reference;S===0&&(se=se.concat([ie[1]]));const le=se.length,ue=new Int32Array(le),fe=new Int32Array(le);for(te=0;te<le;te++)ue[te]=se[te].x,fe[te]=se[te].y;const ge=k[0].length,xe=k.length,me=O[S],be=[],ye=ae.decoder,Se=ae.contextCache.getContexts("GR");let pe=0;for(let he=0;he<K;he++){if(Q){const Ce=ye.readBit(Se,me);if(pe^=Ce,pe)throw new t("prediction is not supported")}const de=new Uint8Array(Z);be.push(de);for(let Ce=0;Ce<Z;Ce++){let we,Le,Be=0;for(te=0;te<ne;te++)we=he+L[te],Le=Ce+V[te],we<0||Le<0||Le>=Z?Be<<=1:Be=Be<<1|be[we][Le];for(te=0;te<le;te++)we=he+fe[te]-G,Le=Ce+ue[te]-_,we<0||we>=xe||Le<0||Le>=ge?Be<<=1:Be=Be<<1|k[we][Le];const at=ye.readBit(Se,Be);de[Ce]=at}}return be}function W(Z,K,S,k,_,G,Q,ie,ae,U,ne,V){if(Z&&K)throw new t("symbol refinement with Huffman is not supported");const L=[];let te=0,se=(0,P.log2)(S.length+k);const le=ne.decoder,ue=ne.contextCache;let fe,ge;for(Z&&(fe=h(1),ge=[],se=Math.max(se,1));L.length<k;){const he=Z?G.tableDeltaHeight.decode(V):I(ue,"IADH",le);te+=he;let de=0,Ce=0;const we=Z?ge.length:0;for(;;){const Le=Z?G.tableDeltaWidth.decode(V):I(ue,"IADW",le);if(Le===null)break;de+=Le,Ce+=de;let Be;if(K){const at=I(ue,"IAAI",le);if(at>1)Be=d(Z,K,de,te,0,at,1,S.concat(L),se,0,0,1,0,G,ae,U,ne,0,V);else{const Oe=f(ue,le,se),Ze=I(ue,"IARDX",le),Ke=I(ue,"IARDY",le),Pe=Oe<S.length?S[Oe]:L[Oe-S.length];Be=z(de,te,ae,Pe,Ze,Ke,!1,U,ne)}L.push(Be)}else Z?ge.push(de):(Be=B(!1,de,te,Q,!1,null,ie,ne),L.push(Be))}if(Z&&!K){const Le=G.tableBitmapSize.decode(V);V.byteAlign();let Be;if(Le===0)Be=oe(V,Ce,te);else{const Oe=V.end,Ze=V.position+Le;V.end=Ze,Be=q(V,Ce,te,!1),V.end=Oe,V.position=Ze}const at=ge.length;if(we===at-1)L.push(Be);else{let Oe,Ze,Ke=0,Pe,qe,gt;for(Oe=we;Oe<at;Oe++){for(qe=ge[Oe],Pe=Ke+qe,gt=[],Ze=0;Ze<te;Ze++)gt.push(Be[Ze].subarray(Ke,Pe));L.push(gt),Ke=Pe}}}}const xe=[],me=[];let be=!1,ye,Se;const pe=S.length+k;for(;me.length<pe;){let he=Z?fe.decode(V):I(ue,"IAEX",le);for(;he--;)me.push(be);be=!be}for(ye=0,Se=S.length;ye<Se;ye++)me[ye]&&xe.push(S[ye]);for(let he=0;he<k;ye++,he++)me[ye]&&xe.push(L[he]);return xe}function d(Z,K,S,k,_,G,Q,ie,ae,U,ne,V,L,te,se,le,ue,fe,ge){if(Z&&K)throw new t("refinement with Huffman is not supported");const xe=[];let me,be;for(me=0;me<k;me++){if(be=new Uint8Array(S),_)for(let de=0;de<S;de++)be[de]=_;xe.push(be)}const ye=ue.decoder,Se=ue.contextCache;let pe=Z?-te.tableDeltaT.decode(ge):-I(Se,"IADT",ye),he=0;for(me=0;me<G;){const de=Z?te.tableDeltaT.decode(ge):I(Se,"IADT",ye);pe+=de;const Ce=Z?te.tableFirstS.decode(ge):I(Se,"IAFS",ye);he+=Ce;let we=he;do{let Le=0;Q>1&&(Le=Z?ge.readBits(fe):I(Se,"IAIT",ye));const Be=Q*pe+Le,at=Z?te.symbolIDTable.decode(ge):f(Se,ye,ae),Oe=K&&(Z?ge.readBit():I(Se,"IARI",ye));let Ze=ie[at],Ke=Ze[0].length,Pe=Ze.length;if(Oe){const Pt=I(Se,"IARDW",ye),Ge=I(Se,"IARDH",ye),We=I(Se,"IARDX",ye),_e=I(Se,"IARDY",ye);Ke+=Pt,Pe+=Ge,Ze=z(Ke,Pe,se,Ze,(Pt>>1)+We,(Ge>>1)+_e,!1,le,ue)}const qe=Be-(V&1?0:Pe-1),gt=we-(V&2?Ke-1:0);let De,et,rt;if(U){for(De=0;De<Pe;De++){if(be=xe[gt+De],!be)continue;rt=Ze[De];const Pt=Math.min(S-qe,Ke);switch(L){case 0:for(et=0;et<Pt;et++)be[qe+et]|=rt[et];break;case 2:for(et=0;et<Pt;et++)be[qe+et]^=rt[et];break;default:throw new t(`operator ${L} is not supported`)}}we+=Pe-1}else{for(et=0;et<Pe;et++)if(be=xe[qe+et],!!be)switch(rt=Ze[et],L){case 0:for(De=0;De<Ke;De++)be[gt+De]|=rt[De];break;case 2:for(De=0;De<Ke;De++)be[gt+De]^=rt[De];break;default:throw new t(`operator ${L} is not supported`)}we+=Ke-1}me++;const St=Z?te.tableDeltaS.decode(ge):I(Se,"IADS",ye);if(St===null)break;we+=St+ne}while(!0)}return xe}function T(Z,K,S,k,_,G){const Q=[];Z||(Q.push({x:-K,y:0}),_===0&&Q.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const ie=(k+1)*K,ae=B(Z,ie,S,_,!1,null,Q,G),U=[];for(let ne=0;ne<=k;ne++){const V=[],L=K*ne,te=L+K;for(let se=0;se<S;se++)V.push(ae[se].subarray(L,te));U.push(V)}return U}function o(Z,K,S,k,_,G,Q,ie,ae,U,ne,V,L,te,se){if(Q)throw new t("skip is not supported");if(ie!==0)throw new t(`operator "${ie}" is not supported in halftone region`);const ue=[];let fe,ge,xe;for(fe=0;fe<_;fe++){if(xe=new Uint8Array(k),G)for(ge=0;ge<k;ge++)xe[ge]=G;ue.push(xe)}const me=K.length,be=K[0],ye=be[0].length,Se=be.length,pe=(0,P.log2)(me),he=[];Z||(he.push({x:S<=1?3:2,y:-1}),S===0&&he.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const de=[];let Ce,we;for(Z&&(Ce=new A(se.data,se.start,se.end)),fe=pe-1;fe>=0;fe--)Z?we=q(Ce,ae,U,!0):we=B(!1,ae,U,S,!1,null,he,se),de[fe]=we;let Le,Be,at,Oe,Ze,Ke,Pe,qe,gt;for(Le=0;Le<U;Le++)for(Be=0;Be<ae;Be++){for(at=0,Oe=0,ge=pe-1;ge>=0;ge--)at^=de[ge][Le][Be],Oe|=at<<ge;if(Ze=K[Oe],Ke=ne+Le*te+Be*L>>8,Pe=V+Le*L-Be*te>>8,Ke>=0&&Ke+ye<=k&&Pe>=0&&Pe+Se<=_)for(fe=0;fe<Se;fe++)for(gt=ue[Pe+fe],qe=Ze[fe],ge=0;ge<ye;ge++)gt[Ke+ge]|=qe[ge];else{let De,et;for(fe=0;fe<Se;fe++)if(et=Pe+fe,!(et<0||et>=_))for(gt=ue[et],qe=Ze[fe],ge=0;ge<ye;ge++)De=Ke+ge,De>=0&&De<k&&(gt[De]|=qe[ge])}}return ue}function l(Z,K){const S={};S.number=(0,P.readUint32)(Z,K);const k=Z[K+4],_=k&63;if(!x[_])throw new t("invalid segment type: "+_);S.type=_,S.typeName=x[_],S.deferredNonRetain=!!(k&128);const G=!!(k&64),Q=Z[K+5];let ie=Q>>5&7;const ae=[Q&31];let U=K+6;if(Q===7){ie=(0,P.readUint32)(Z,U-1)&536870911,U+=3;let se=ie+7>>3;for(ae[0]=Z[U++];--se>0;)ae.push(Z[U++])}else if(Q===5||Q===6)throw new t("invalid referred-to flags");S.retainBits=ae;let ne=4;S.number<=256?ne=1:S.number<=65536&&(ne=2);const V=[];let L,te;for(L=0;L<ie;L++){let se;ne===1?se=Z[U]:ne===2?se=(0,P.readUint16)(Z,U):se=(0,P.readUint32)(Z,U),V.push(se),U+=ne}if(S.referredTo=V,G?(S.pageAssociation=(0,P.readUint32)(Z,U),U+=4):S.pageAssociation=Z[U++],S.length=(0,P.readUint32)(Z,U),U+=4,S.length===4294967295)if(_===38){const se=s(Z,U),ue=!!(Z[U+r]&1),fe=6,ge=new Uint8Array(fe);for(ue||(ge[0]=255,ge[1]=172),ge[2]=se.height>>>24&255,ge[3]=se.height>>16&255,ge[4]=se.height>>8&255,ge[5]=se.height&255,L=U,te=Z.length;L<te;L++){let xe=0;for(;xe<fe&&ge[xe]===Z[L+xe];)xe++;if(xe===fe){S.length=L+fe;break}}if(S.length===4294967295)throw new t("segment end was not found")}else throw new t("invalid unknown segment length");return S.headerEnd=U,S}function F(Z,K,S,k){const _=[];let G=S;for(;G<k;){const Q=l(K,G);G=Q.headerEnd;const ie={header:Q,data:K};if(Z.randomAccess||(ie.start=G,G+=Q.length,ie.end=G),_.push(ie),Q.type===51)break}if(Z.randomAccess)for(let Q=0,ie=_.length;Q<ie;Q++)_[Q].start=G,G+=_[Q].header.length,_[Q].end=G;return _}function s(Z,K){return{width:(0,P.readUint32)(Z,K),height:(0,P.readUint32)(Z,K+4),x:(0,P.readUint32)(Z,K+8),y:(0,P.readUint32)(Z,K+12),combinationOperator:Z[K+16]&7}}const r=17;function u(Z,K){const S=Z.header,k=Z.data,_=Z.end;let G=Z.start,Q,ie,ae,U;switch(S.type){case 0:const V={},L=(0,P.readUint16)(k,G);if(V.huffman=!!(L&1),V.refinement=!!(L&2),V.huffmanDHSelector=L>>2&3,V.huffmanDWSelector=L>>4&3,V.bitmapSizeSelector=L>>6&1,V.aggregationInstancesSelector=L>>7&1,V.bitmapCodingContextUsed=!!(L&256),V.bitmapCodingContextRetained=!!(L&512),V.template=L>>10&3,V.refinementTemplate=L>>12&1,G+=2,!V.huffman){for(U=V.template===0?4:1,ie=[],ae=0;ae<U;ae++)ie.push({x:(0,P.readInt8)(k,G),y:(0,P.readInt8)(k,G+1)}),G+=2;V.at=ie}if(V.refinement&&!V.refinementTemplate){for(ie=[],ae=0;ae<2;ae++)ie.push({x:(0,P.readInt8)(k,G),y:(0,P.readInt8)(k,G+1)}),G+=2;V.refinementAt=ie}V.numberOfExportedSymbols=(0,P.readUint32)(k,G),G+=4,V.numberOfNewSymbols=(0,P.readUint32)(k,G),G+=4,Q=[V,S.number,S.referredTo,k,G,_];break;case 6:case 7:const te={};te.info=s(k,G),G+=r;const se=(0,P.readUint16)(k,G);if(G+=2,te.huffman=!!(se&1),te.refinement=!!(se&2),te.logStripSize=se>>2&3,te.stripSize=1<<te.logStripSize,te.referenceCorner=se>>4&3,te.transposed=!!(se&64),te.combinationOperator=se>>7&3,te.defaultPixelValue=se>>9&1,te.dsOffset=se<<17>>27,te.refinementTemplate=se>>15&1,te.huffman){const Se=(0,P.readUint16)(k,G);G+=2,te.huffmanFS=Se&3,te.huffmanDS=Se>>2&3,te.huffmanDT=Se>>4&3,te.huffmanRefinementDW=Se>>6&3,te.huffmanRefinementDH=Se>>8&3,te.huffmanRefinementDX=Se>>10&3,te.huffmanRefinementDY=Se>>12&3,te.huffmanRefinementSizeSelector=!!(Se&16384)}if(te.refinement&&!te.refinementTemplate){for(ie=[],ae=0;ae<2;ae++)ie.push({x:(0,P.readInt8)(k,G),y:(0,P.readInt8)(k,G+1)}),G+=2;te.refinementAt=ie}te.numberOfSymbolInstances=(0,P.readUint32)(k,G),G+=4,Q=[te,S.referredTo,k,G,_];break;case 16:const le={},ue=k[G++];le.mmr=!!(ue&1),le.template=ue>>1&3,le.patternWidth=k[G++],le.patternHeight=k[G++],le.maxPatternIndex=(0,P.readUint32)(k,G),G+=4,Q=[le,S.number,k,G,_];break;case 22:case 23:const fe={};fe.info=s(k,G),G+=r;const ge=k[G++];fe.mmr=!!(ge&1),fe.template=ge>>1&3,fe.enableSkip=!!(ge&8),fe.combinationOperator=ge>>4&7,fe.defaultPixelValue=ge>>7&1,fe.gridWidth=(0,P.readUint32)(k,G),G+=4,fe.gridHeight=(0,P.readUint32)(k,G),G+=4,fe.gridOffsetX=(0,P.readUint32)(k,G)&4294967295,G+=4,fe.gridOffsetY=(0,P.readUint32)(k,G)&4294967295,G+=4,fe.gridVectorX=(0,P.readUint16)(k,G),G+=2,fe.gridVectorY=(0,P.readUint16)(k,G),G+=2,Q=[fe,S.referredTo,k,G,_];break;case 38:case 39:const xe={};xe.info=s(k,G),G+=r;const me=k[G++];if(xe.mmr=!!(me&1),xe.template=me>>1&3,xe.prediction=!!(me&8),!xe.mmr){for(U=xe.template===0?4:1,ie=[],ae=0;ae<U;ae++)ie.push({x:(0,P.readInt8)(k,G),y:(0,P.readInt8)(k,G+1)}),G+=2;xe.at=ie}Q=[xe,k,G,_];break;case 48:const be={width:(0,P.readUint32)(k,G),height:(0,P.readUint32)(k,G+4),resolutionX:(0,P.readUint32)(k,G+8),resolutionY:(0,P.readUint32)(k,G+12)};be.height===4294967295&&delete be.height;const ye=k[G+16];(0,P.readUint16)(k,G+17),be.lossless=!!(ye&1),be.refinement=!!(ye&2),be.defaultPixelValue=ye>>2&1,be.combinationOperator=ye>>3&3,be.requiresBuffer=!!(ye&32),be.combinationOperatorOverride=!!(ye&64),Q=[be];break;case 49:break;case 50:break;case 51:break;case 53:Q=[S.number,k,G,_];break;case 62:break;default:throw new t(`segment type ${S.typeName}(${S.type}) is not implemented`)}const ne="on"+S.typeName;ne in K&&K[ne].apply(K,Q)}function C(Z,K){for(let S=0,k=Z.length;S<k;S++)u(Z[S],K)}function g(Z){const K=new p;for(let S=0,k=Z.length;S<k;S++){const _=Z[S],G=F({},_.data,_.start,_.end);C(G,K)}return K.buffer}class p{onPageInformation(K){this.currentPageInfo=K;const S=K.width+7>>3,k=new Uint8ClampedArray(S*K.height);K.defaultPixelValue&&k.fill(255),this.buffer=k}drawBitmap(K,S){const k=this.currentPageInfo,_=K.width,G=K.height,Q=k.width+7>>3,ie=k.combinationOperatorOverride?K.combinationOperator:k.combinationOperator,ae=this.buffer,U=128>>(K.x&7);let ne=K.y*Q+(K.x>>3),V,L,te,se;switch(ie){case 0:for(V=0;V<G;V++){for(te=U,se=ne,L=0;L<_;L++)S[V][L]&&(ae[se]|=te),te>>=1,te||(te=128,se++);ne+=Q}break;case 2:for(V=0;V<G;V++){for(te=U,se=ne,L=0;L<_;L++)S[V][L]&&(ae[se]^=te),te>>=1,te||(te=128,se++);ne+=Q}break;default:throw new t(`operator ${ie} is not supported`)}}onImmediateGenericRegion(K,S,k,_){const G=K.info,Q=new Y(S,k,_),ie=B(K.mmr,G.width,G.height,K.template,K.prediction,null,K.at,Q);this.drawBitmap(G,ie)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(K,S,k,_,G,Q){let ie,ae;K.huffman&&(ie=J(K,k,this.customTables),ae=new A(_,G,Q));let U=this.symbols;U||(this.symbols=U={});const ne=[];for(const L of k){const te=U[L];te&&ne.push(...te)}const V=new Y(_,G,Q);U[S]=W(K.huffman,K.refinement,ne,K.numberOfNewSymbols,K.numberOfExportedSymbols,ie,K.template,K.at,K.refinementTemplate,K.refinementAt,V,ae)}onImmediateTextRegion(K,S,k,_,G){const Q=K.info;let ie,ae;const U=this.symbols,ne=[];for(const se of S){const le=U[se];le&&ne.push(...le)}const V=(0,P.log2)(ne.length);K.huffman&&(ae=new A(k,_,G),ie=H(K,S,this.customTables,ne.length,ae));const L=new Y(k,_,G),te=d(K.huffman,K.refinement,Q.width,Q.height,K.defaultPixelValue,K.numberOfSymbolInstances,K.stripSize,ne,V,K.transposed,K.dsOffset,K.referenceCorner,K.combinationOperator,ie,K.refinementTemplate,K.refinementAt,L,K.logStripSize,ae);this.drawBitmap(Q,te)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(K,S,k,_,G){let Q=this.patterns;Q||(this.patterns=Q={});const ie=new Y(k,_,G);Q[S]=T(K.mmr,K.patternWidth,K.patternHeight,K.maxPatternIndex,K.template,ie)}onImmediateHalftoneRegion(K,S,k,_,G){const Q=this.patterns[S[0]],ie=K.info,ae=new Y(k,_,G),U=o(K.mmr,Q,K.template,ie.width,ie.height,K.defaultPixelValue,K.enableSkip,K.combinationOperator,K.gridWidth,K.gridHeight,K.gridOffsetX,K.gridOffsetY,K.gridVectorX,K.gridVectorY,ae);this.drawBitmap(ie,U)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(K,S,k,_){let G=this.customTables;G||(this.customTables=G={}),G[K]=v(S,k,_)}}class X{constructor(K){K.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=K[0],this.rangeLength=0,this.prefixCode=K[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=K[0],this.prefixLength=K[1],this.rangeLength=K[2],this.prefixCode=K[3],this.isLowerRange=K[4]==="lower")}}class ${constructor(K){this.children=[],K?(this.isLeaf=!0,this.rangeLength=K.rangeLength,this.rangeLow=K.rangeLow,this.isLowerRange=K.isLowerRange,this.isOOB=K.isOOB):this.isLeaf=!1}buildTree(K,S){const k=K.prefixCode>>S&1;if(S<=0)this.children[k]=new $(K);else{let _=this.children[k];_||(this.children[k]=_=new $(null)),_.buildTree(K,S-1)}}decodeNode(K){if(this.isLeaf){if(this.isOOB)return null;const k=K.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-k:k)}const S=this.children[K.readBit()];if(!S)throw new t("invalid Huffman data");return S.decodeNode(K)}}class y{constructor(K,S){S||this.assignPrefixCodes(K),this.rootNode=new $(null);for(let k=0,_=K.length;k<_;k++){const G=K[k];G.prefixLength>0&&this.rootNode.buildTree(G,G.prefixLength-1)}}decode(K){return this.rootNode.decodeNode(K)}assignPrefixCodes(K){const S=K.length;let k=0;for(let ne=0;ne<S;ne++)k=Math.max(k,K[ne].prefixLength);const _=new Uint32Array(k+1);for(let ne=0;ne<S;ne++)_[K[ne].prefixLength]++;let G=1,Q=0,ie,ae,U;for(_[0]=0;G<=k;){for(Q=Q+_[G-1]<<1,ie=Q,ae=0;ae<S;)U=K[ae],U.prefixLength===G&&(U.prefixCode=ie,ie++),ae++;G++}}}function v(Z,K,S){const k=Z[K],_=(0,P.readUint32)(Z,K+1)&4294967295,G=(0,P.readUint32)(Z,K+5)&4294967295,Q=new A(Z,K+9,S),ie=(k>>1&7)+1,ae=(k>>4&7)+1,U=[];let ne,V,L=_;do ne=Q.readBits(ie),V=Q.readBits(ae),U.push(new X([L,ne,V,0])),L+=1<<V;while(L<G);return ne=Q.readBits(ie),U.push(new X([_-1,ne,32,0,"lower"])),ne=Q.readBits(ie),U.push(new X([G,ne,32,0])),k&1&&(ne=Q.readBits(ie),U.push(new X([ne,0]))),new y(U,!1)}const m={};function h(Z){let K=m[Z];if(K)return K;let S;switch(Z){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 t(`standard table B.${Z} does not exist`)}for(let k=0,_=S.length;k<_;k++)S[k]=new X(S[k]);return K=new y(S,!0),m[Z]=K,K}class A{constructor(K,S,k){this.data=K,this.start=S,this.end=k,this.position=S,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new t("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const K=this.currentByte>>this.shift&1;return this.shift--,K}readBits(K){let S=0,k;for(k=K-1;k>=0;k--)S|=this.readBit()<<k;return S}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function j(Z,K,S){let k=0;for(let _=0,G=K.length;_<G;_++){const Q=S[K[_]];if(Q){if(Z===k)return Q;k++}}throw new t("can't find custom Huffman table")}function H(Z,K,S,k,_){const G=[];for(let L=0;L<=34;L++){const te=_.readBits(4);G.push(new X([L,te,0,0]))}const Q=new y(G,!1);G.length=0;for(let L=0;L<k;){const te=Q.decode(_);if(te>=32){let se,le,ue;switch(te){case 32:if(L===0)throw new t("no previous value in symbol ID table");le=_.readBits(2)+3,se=G[L-1].prefixLength;break;case 33:le=_.readBits(3)+3,se=0;break;case 34:le=_.readBits(7)+11,se=0;break;default:throw new t("invalid code length in symbol ID table")}for(ue=0;ue<le;ue++)G.push(new X([L,se,0,0])),L++}else G.push(new X([L,te,0,0])),L++}_.byteAlign();const ie=new y(G,!1);let ae=0,U,ne,V;switch(Z.huffmanFS){case 0:case 1:U=h(Z.huffmanFS+6);break;case 3:U=j(ae,K,S),ae++;break;default:throw new t("invalid Huffman FS selector")}switch(Z.huffmanDS){case 0:case 1:case 2:ne=h(Z.huffmanDS+8);break;case 3:ne=j(ae,K,S),ae++;break;default:throw new t("invalid Huffman DS selector")}switch(Z.huffmanDT){case 0:case 1:case 2:V=h(Z.huffmanDT+11);break;case 3:V=j(ae,K,S),ae++;break;default:throw new t("invalid Huffman DT selector")}if(Z.refinement)throw new t("refinement with Huffman is not supported");return{symbolIDTable:ie,tableFirstS:U,tableDeltaS:ne,tableDeltaT:V}}function J(Z,K,S){let k=0,_,G;switch(Z.huffmanDHSelector){case 0:case 1:_=h(Z.huffmanDHSelector+4);break;case 3:_=j(k,K,S),k++;break;default:throw new t("invalid Huffman DH selector")}switch(Z.huffmanDWSelector){case 0:case 1:G=h(Z.huffmanDWSelector+2);break;case 3:G=j(k,K,S),k++;break;default:throw new t("invalid Huffman DW selector")}let Q,ie;return Z.bitmapSizeSelector?(Q=j(k,K,S),k++):Q=h(1),Z.aggregationInstancesSelector?ie=j(k,K,S):ie=h(1),{tableDeltaHeight:_,tableDeltaWidth:G,tableBitmapSize:Q,tableAggregateInstances:ie}}function oe(Z,K,S){const k=[];for(let _=0;_<S;_++){const G=new Uint8Array(K);k.push(G);for(let Q=0;Q<K;Q++)G[Q]=Z.readBit();Z.byteAlign()}return k}function q(Z,K,S,k){const _={K:-1,Columns:K,Rows:S,BlackIs1:!0,EndOfBlock:k},G=new e.CCITTFaxDecoder(Z,_),Q=[];let ie,ae=!1;for(let U=0;U<S;U++){const ne=new Uint8Array(K);Q.push(ne);let V=-1;for(let L=0;L<K;L++)V<0&&(ie=G.readNextChar(),ie===-1&&(ie=0,ae=!0),V=7),ne[L]=ie>>V&1,V--}if(k&&!ae)for(let ne=0;ne<5&&G.readNextChar()!==-1;ne++);return Q}class re{parseChunks(K){return g(K)}parse(K){throw new Error("Not implemented: Jbig2Image.parse")}}b.Jbig2Image=re},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ArithmeticDecoder=void 0;const ce=[{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}];class n{constructor(D,e,t){this.data=D,this.bp=e,this.dataEnd=t,this.chigh=D[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(){const D=this.data;let e=this.bp;D[e]===255?D[e+1]>143?(this.clow+=65280,this.ct=8):(e++,this.clow+=D[e]<<9,this.ct=7,this.bp=e):(e++,this.clow+=e<this.dataEnd?D[e]<<8:65280,this.ct=8,this.bp=e),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(D,e){let t=D[e]>>1,c=D[e]&1;const Y=ce[t],ee=Y.qe;let N,I=this.a-ee;if(this.chigh<ee)I<ee?(I=ee,N=c,t=Y.nmps):(I=ee,N=1^c,Y.switchFlag===1&&(c=N),t=Y.nlps);else{if(this.chigh-=ee,(I&32768)!==0)return this.a=I,c;I<ee?(N=1^c,Y.switchFlag===1&&(c=N),t=Y.nlps):(N=c,t=Y.nmps)}do this.ct===0&&this.byteIn(),I<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while((I&32768)===0);return this.a=I,D[e]=t<<1|c,N}}b.ArithmeticDecoder=n},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.JpegStream=void 0;var n=ce(18),P=ce(4),D=ce(27),e=ce(2);class t extends n.DecodeStream{constructor(Y,ee,N){let I;for(;(I=Y.getByte())!==-1;)if(I===255){Y.skip(-1);break}super(ee),this.stream=Y,this.dict=Y.dict,this.maybeLength=ee,this.params=N}get bytes(){return(0,e.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(Y){}readBlock(){if(this.eof)return;const Y={decodeTransform:void 0,colorTransform:void 0},ee=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(ee)){const f=this.dict.get("BPC","BitsPerComponent")||8,x=ee.length,a=new Int32Array(x);let E=!1;const w=(1<<f)-1;for(let O=0;O<x;O+=2)a[O]=(ee[O+1]-ee[O])*256|0,a[O+1]=ee[O]*w|0,(a[O]!==256||a[O+1]!==0)&&(E=!0);E&&(Y.decodeTransform=a)}if(this.params instanceof P.Dict){const f=this.params.get("ColorTransform");Number.isInteger(f)&&(Y.colorTransform=f)}const N=new D.JpegImage(Y);N.parse(this.bytes);const I=N.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=I,this.bufferLength=I.length,this.eof=!0}}b.JpegStream=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.JpegImage=void 0;var n=ce(2),P=ce(28),D=ce(3);class e extends n.BaseException{constructor(l){super(`JPEG error: ${l}`,"JpegError")}}class t extends n.BaseException{constructor(l,F){super(l,"DNLMarkerError"),this.scanLines=F}}class c extends n.BaseException{constructor(l){super(l,"EOIMarkerError")}}const Y=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]),ee=4017,N=799,I=3406,f=2276,x=1567,a=3784,E=5793,w=2896;function O(o,l){let F=0,s,r,u=16;for(;u>0&&!o[u-1];)u--;const C=[{children:[],index:0}];let g=C[0],p;for(s=0;s<u;s++){for(r=0;r<o[s];r++){for(g=C.pop(),g.children[g.index]=l[F];g.index>0;)g=C.pop();for(g.index++,C.push(g);C.length<=s;)C.push(p={children:[],index:0}),g.children[g.index]=p.children,g=p;F++}s+1<u&&(C.push(p={children:[],index:0}),g.children[g.index]=p.children,g=p)}return C[0].children}function M(o,l,F){return 64*((o.blocksPerLine+1)*l+F)}function B(o,l,F,s,r,u,C,g,p,X=!1){const $=F.mcusPerLine,y=F.progressive,v=l;let m=0,h=0;function A(){if(h>0)return h--,m>>h&1;if(m=o[l++],m===255){const me=o[l++];if(me){if(me===220&&X){l+=2;const be=(0,D.readUint16)(o,l);if(l+=2,be>0&&be!==F.scanLines)throw new t("Found DNL marker (0xFFDC) while parsing scan data",be)}else if(me===217){if(X){const be=G*(F.precision===8?8:0);if(be>0&&Math.round(F.scanLines/be)>=5)throw new t("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",be)}throw new c("Found EOI marker (0xFFD9) while parsing scan data")}throw new e(`unexpected marker ${(m<<8|me).toString(16)}`)}}return h=7,m>>>7}function j(me){let be=me;for(;;){switch(be=be[A()],typeof be){case"number":return be;case"object":continue}throw new e("invalid huffman sequence")}}function H(me){let be=0;for(;me>0;)be=be<<1|A(),me--;return be}function J(me){if(me===1)return A()===1?1:-1;const be=H(me);return be>=1<<me-1?be:be+(-1<<me)+1}function oe(me,be){const ye=j(me.huffmanTableDC),Se=ye===0?0:J(ye);me.blockData[be]=me.pred+=Se;let pe=1;for(;pe<64;){const he=j(me.huffmanTableAC),de=he&15,Ce=he>>4;if(de===0){if(Ce<15)break;pe+=16;continue}pe+=Ce;const we=Y[pe];me.blockData[be+we]=J(de),pe++}}function q(me,be){const ye=j(me.huffmanTableDC),Se=ye===0?0:J(ye)<<p;me.blockData[be]=me.pred+=Se}function re(me,be){me.blockData[be]|=A()<<p}let Z=0;function K(me,be){if(Z>0){Z--;return}let ye=u;const Se=C;for(;ye<=Se;){const pe=j(me.huffmanTableAC),he=pe&15,de=pe>>4;if(he===0){if(de<15){Z=H(de)+(1<<de)-1;break}ye+=16;continue}ye+=de;const Ce=Y[ye];me.blockData[be+Ce]=J(he)*(1<<p),ye++}}let S=0,k;function _(me,be){let ye=u;const Se=C;let pe=0,he,de;for(;ye<=Se;){const Ce=be+Y[ye],we=me.blockData[Ce]<0?-1:1;switch(S){case 0:if(de=j(me.huffmanTableAC),he=de&15,pe=de>>4,he===0)pe<15?(Z=H(pe)+(1<<pe),S=4):(pe=16,S=1);else{if(he!==1)throw new e("invalid ACn encoding");k=J(he),S=pe?2:3}continue;case 1:case 2:me.blockData[Ce]?me.blockData[Ce]+=we*(A()<<p):(pe--,pe===0&&(S=S===2?3:0));break;case 3:me.blockData[Ce]?me.blockData[Ce]+=we*(A()<<p):(me.blockData[Ce]=k<<p,S=0);break;case 4:me.blockData[Ce]&&(me.blockData[Ce]+=we*(A()<<p));break}ye++}S===4&&(Z--,Z===0&&(S=0))}let G=0;function Q(me,be,ye,Se,pe){const he=ye/$|0,de=ye%$;G=he*me.v+Se;const Ce=de*me.h+pe,we=M(me,G,Ce);be(me,we)}function ie(me,be,ye){G=ye/me.blocksPerLine|0;const Se=ye%me.blocksPerLine,pe=M(me,G,Se);be(me,pe)}const ae=s.length;let U,ne,V,L,te,se;y?u===0?se=g===0?q:re:se=g===0?K:_:se=oe;let le=0,ue;const fe=ae===1?s[0].blocksPerLine*s[0].blocksPerColumn:$*F.mcusPerColumn;let ge,xe;for(;le<=fe;){const me=r?Math.min(fe-le,r):fe;if(me>0){for(ne=0;ne<ae;ne++)s[ne].pred=0;if(Z=0,ae===1)for(U=s[0],te=0;te<me;te++)ie(U,se,le),le++;else for(te=0;te<me;te++){for(ne=0;ne<ae;ne++)for(U=s[ne],ge=U.h,xe=U.v,V=0;V<xe;V++)for(L=0;L<ge;L++)Q(U,se,le,V,L);le++}}if(h=0,ue=d(o,l),!ue)break;if(ue.invalid){const be=me>0?"unexpected":"excessive";(0,n.warn)(`decodeScan - ${be} MCU data, current marker is: ${ue.invalid}`),l=ue.offset}if(ue.marker>=65488&&ue.marker<=65495)l+=2;else break}return l-v}function z(o,l,F){const s=o.quantizationTable,r=o.blockData;let u,C,g,p,X,$,y,v,m,h,A,j,H,J,oe,q,re;if(!s)throw new e("missing required Quantization Table.");for(let Z=0;Z<64;Z+=8){if(m=r[l+Z],h=r[l+Z+1],A=r[l+Z+2],j=r[l+Z+3],H=r[l+Z+4],J=r[l+Z+5],oe=r[l+Z+6],q=r[l+Z+7],m*=s[Z],(h|A|j|H|J|oe|q)===0){re=E*m+512>>10,F[Z]=re,F[Z+1]=re,F[Z+2]=re,F[Z+3]=re,F[Z+4]=re,F[Z+5]=re,F[Z+6]=re,F[Z+7]=re;continue}h*=s[Z+1],A*=s[Z+2],j*=s[Z+3],H*=s[Z+4],J*=s[Z+5],oe*=s[Z+6],q*=s[Z+7],u=E*m+128>>8,C=E*H+128>>8,g=A,p=oe,X=w*(h-q)+128>>8,v=w*(h+q)+128>>8,$=j<<4,y=J<<4,u=u+C+1>>1,C=u-C,re=g*a+p*x+128>>8,g=g*x-p*a+128>>8,p=re,X=X+y+1>>1,y=X-y,v=v+$+1>>1,$=v-$,u=u+p+1>>1,p=u-p,C=C+g+1>>1,g=C-g,re=X*f+v*I+2048>>12,X=X*I-v*f+2048>>12,v=re,re=$*N+y*ee+2048>>12,$=$*ee-y*N+2048>>12,y=re,F[Z]=u+v,F[Z+7]=u-v,F[Z+1]=C+y,F[Z+6]=C-y,F[Z+2]=g+$,F[Z+5]=g-$,F[Z+3]=p+X,F[Z+4]=p-X}for(let Z=0;Z<8;++Z){if(m=F[Z],h=F[Z+8],A=F[Z+16],j=F[Z+24],H=F[Z+32],J=F[Z+40],oe=F[Z+48],q=F[Z+56],(h|A|j|H|J|oe|q)===0){re=E*m+8192>>14,re<-2040?re=0:re>=2024?re=255:re=re+2056>>4,r[l+Z]=re,r[l+Z+8]=re,r[l+Z+16]=re,r[l+Z+24]=re,r[l+Z+32]=re,r[l+Z+40]=re,r[l+Z+48]=re,r[l+Z+56]=re;continue}u=E*m+2048>>12,C=E*H+2048>>12,g=A,p=oe,X=w*(h-q)+2048>>12,v=w*(h+q)+2048>>12,$=j,y=J,u=(u+C+1>>1)+4112,C=u-C,re=g*a+p*x+2048>>12,g=g*x-p*a+2048>>12,p=re,X=X+y+1>>1,y=X-y,v=v+$+1>>1,$=v-$,u=u+p+1>>1,p=u-p,C=C+g+1>>1,g=C-g,re=X*f+v*I+2048>>12,X=X*I-v*f+2048>>12,v=re,re=$*N+y*ee+2048>>12,$=$*ee-y*N+2048>>12,y=re,m=u+v,q=u-v,h=C+y,oe=C-y,A=g+$,J=g-$,j=p+X,H=p-X,m<16?m=0:m>=4080?m=255:m>>=4,h<16?h=0:h>=4080?h=255:h>>=4,A<16?A=0:A>=4080?A=255:A>>=4,j<16?j=0:j>=4080?j=255:j>>=4,H<16?H=0:H>=4080?H=255:H>>=4,J<16?J=0:J>=4080?J=255:J>>=4,oe<16?oe=0:oe>=4080?oe=255:oe>>=4,q<16?q=0:q>=4080?q=255:q>>=4,r[l+Z]=m,r[l+Z+8]=h,r[l+Z+16]=A,r[l+Z+24]=j,r[l+Z+32]=H,r[l+Z+40]=J,r[l+Z+48]=oe,r[l+Z+56]=q}}function W(o,l){const F=l.blocksPerLine,s=l.blocksPerColumn,r=new Int16Array(64);for(let u=0;u<s;u++)for(let C=0;C<F;C++){const g=M(l,u,C);z(l,g,r)}return l.blockData}function d(o,l,F=l){const s=o.length-1;let r=F<l?F:l;if(l>=s)return null;const u=(0,D.readUint16)(o,l);if(u>=65472&&u<=65534)return{invalid:null,marker:u,offset:l};let C=(0,D.readUint16)(o,r);for(;!(C>=65472&&C<=65534);){if(++r>=s)return null;C=(0,D.readUint16)(o,r)}return{invalid:u.toString(16),marker:C,offset:r}}class T{constructor({decodeTransform:l=null,colorTransform:F=-1}={}){this._decodeTransform=l,this._colorTransform=F}parse(l,{dnlScanLines:F=null}={}){function s(){const A=(0,D.readUint16)(l,u);u+=2;let j=u+A-2;const H=d(l,j,u);H!=null&&H.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+H.invalid),j=H.offset);const J=l.subarray(u,j);return u+=J.length,J}function r(A){const j=Math.ceil(A.samplesPerLine/8/A.maxH),H=Math.ceil(A.scanLines/8/A.maxV);for(const J of A.components){const oe=Math.ceil(Math.ceil(A.samplesPerLine/8)*J.h/A.maxH),q=Math.ceil(Math.ceil(A.scanLines/8)*J.v/A.maxV),re=j*J.h,K=64*(H*J.v)*(re+1);J.blockData=new Int16Array(K),J.blocksPerLine=oe,J.blocksPerColumn=q}A.mcusPerLine=j,A.mcusPerColumn=H}let u=0,C=null,g=null,p,X,$=0;const y=[],v=[],m=[];let h=(0,D.readUint16)(l,u);if(u+=2,h!==65496)throw new e("SOI not found");h=(0,D.readUint16)(l,u),u+=2;e:for(;h!==65497;){let A,j,H;switch(h){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:const J=s();h===65504&&J[0]===74&&J[1]===70&&J[2]===73&&J[3]===70&&J[4]===0&&(C={version:{major:J[5],minor:J[6]},densityUnits:J[7],xDensity:J[8]<<8|J[9],yDensity:J[10]<<8|J[11],thumbWidth:J[12],thumbHeight:J[13],thumbData:J.subarray(14,14+3*J[12]*J[13])}),h===65518&&J[0]===65&&J[1]===100&&J[2]===111&&J[3]===98&&J[4]===101&&(g={version:J[5]<<8|J[6],flags0:J[7]<<8|J[8],flags1:J[9]<<8|J[10],transformCode:J[11]});break;case 65499:const oe=(0,D.readUint16)(l,u);u+=2;const q=oe+u-2;let re;for(;u<q;){const L=l[u++],te=new Uint16Array(64);if(L>>4===0)for(j=0;j<64;j++)re=Y[j],te[re]=l[u++];else if(L>>4===1)for(j=0;j<64;j++)re=Y[j],te[re]=(0,D.readUint16)(l,u),u+=2;else throw new e("DQT - invalid table spec");y[L&15]=te}break;case 65472:case 65473:case 65474:if(p)throw new e("Only single frame JPEGs supported");u+=2,p={},p.extended=h===65473,p.progressive=h===65474,p.precision=l[u++];const Z=(0,D.readUint16)(l,u);u+=2,p.scanLines=F||Z,p.samplesPerLine=(0,D.readUint16)(l,u),u+=2,p.components=[],p.componentIds={};const K=l[u++];let S=0,k=0;for(A=0;A<K;A++){const L=l[u],te=l[u+1]>>4,se=l[u+1]&15;S<te&&(S=te),k<se&&(k=se);const le=l[u+2];H=p.components.push({h:te,v:se,quantizationId:le,quantizationTable:null}),p.componentIds[L]=H-1,u+=3}p.maxH=S,p.maxV=k,r(p);break;case 65476:const _=(0,D.readUint16)(l,u);for(u+=2,A=2;A<_;){const L=l[u++],te=new Uint8Array(16);let se=0;for(j=0;j<16;j++,u++)se+=te[j]=l[u];const le=new Uint8Array(se);for(j=0;j<se;j++,u++)le[j]=l[u];A+=17+se,(L>>4===0?m:v)[L&15]=O(te,le)}break;case 65501:u+=2,X=(0,D.readUint16)(l,u),u+=2;break;case 65498:const G=++$===1&&!F;u+=2;const Q=l[u++],ie=[];for(A=0;A<Q;A++){const L=l[u++],te=p.componentIds[L],se=p.components[te];se.index=L;const le=l[u++];se.huffmanTableDC=m[le>>4],se.huffmanTableAC=v[le&15],ie.push(se)}const ae=l[u++],U=l[u++],ne=l[u++];try{const L=B(l,u,p,ie,X,ae,U,ne>>4,ne&15,G);u+=L}catch(L){if(L instanceof t)return(0,n.warn)(`${L.message} -- attempting to re-parse the JPEG image.`),this.parse(l,{dnlScanLines:L.scanLines});if(L instanceof c){(0,n.warn)(`${L.message} -- ignoring the rest of the image data.`);break e}throw L}break;case 65500:u+=4;break;case 65535:l[u]!==255&&u--;break;default:const V=d(l,u-2,u-3);if(V!=null&&V.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+V.invalid),u=V.offset;break}if(!V||u>=l.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new e("JpegImage.parse - unknown marker: "+h.toString(16))}h=(0,D.readUint16)(l,u),u+=2}this.width=p.samplesPerLine,this.height=p.scanLines,this.jfif=C,this.adobe=g,this.components=[];for(const A of p.components){const j=y[A.quantizationId];j&&(A.quantizationTable=j),this.components.push({index:A.index,output:W(p,A),scaleX:A.h/p.maxH,scaleY:A.v/p.maxV,blocksPerLine:A.blocksPerLine,blocksPerColumn:A.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(l,F,s=!1){const r=this.width/l,u=this.height/F;let C,g,p,X,$,y,v,m,h,A,j=0,H;const J=this.components.length,oe=l*F*J,q=new Uint8ClampedArray(oe),re=new Uint32Array(l),Z=4294967288;let K;for(v=0;v<J;v++){if(C=this.components[v],g=C.scaleX*r,p=C.scaleY*u,j=v,H=C.output,X=C.blocksPerLine+1<<3,g!==K){for($=0;$<l;$++)m=0|$*g,re[$]=(m&Z)<<3|m&7;K=g}for(y=0;y<F;y++)for(m=0|y*p,A=X*(m&Z)|(m&7)<<3,$=0;$<l;$++)q[j]=H[A+re[$]],j+=J}let S=this._decodeTransform;if(!s&&J===4&&!S&&(S=new Int32Array([-256,255,-256,255,-256,255,-256,255])),S)for(v=0;v<oe;)for(m=0,h=0;m<J;m++,v++,h+=2)q[v]=(q[v]*S[h]>>8)+S[h+1];return q}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(l){let F,s,r;for(let u=0,C=l.length;u<C;u+=3)F=l[u],s=l[u+1],r=l[u+2],l[u]=F-179.456+1.402*r,l[u+1]=F+135.459-.344*s-.714*r,l[u+2]=F-226.816+1.772*s;return l}_convertYccToRgba(l,F){for(let s=0,r=0,u=l.length;s<u;s+=3,r+=4){const C=l[s],g=l[s+1],p=l[s+2];F[r]=C-179.456+1.402*p,F[r+1]=C+135.459-.344*g-.714*p,F[r+2]=C-226.816+1.772*g,F[r+3]=255}return F}_convertYcckToRgb(l){let F,s,r,u,C=0;for(let g=0,p=l.length;g<p;g+=4)F=l[g],s=l[g+1],r=l[g+2],u=l[g+3],l[C++]=-122.67195406894+s*(-660635669420364e-19*s+.000437130475926232*r-54080610064599e-18*F+.00048449797120281*u-.154362151871126)+r*(-.000957964378445773*r+.000817076911346625*F-.00477271405408747*u+1.53380253221734)+F*(.000961250184130688*F-.00266257332283933*u+.48357088451265)+u*(-.000336197177618394*u+.484791561490776),l[C++]=107.268039397724+s*(219927104525741e-19*s-.000640992018297945*r+.000659397001245577*F+.000426105652938837*u-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*F+.000770482631801132*u-.151051492775562)+F*(.00126935368114843*F-.00265090189010898*u+.25802910206845)+u*(-.000318913117588328*u-.213742400323665),l[C++]=-20.810012546947+s*(-.000570115196973677*s-263409051004589e-19*r+.0020741088115012*F-.00288260236853442*u+.814272968359295)+r*(-153496057440975e-19*r-.000132689043961446*F+.000560833691242812*u-.195152027534049)+F*(.00174418132927582*F-.00255243321439347*u+.116935020465145)+u*(-.000343531996510555*u+.24165260232407);return l.subarray(0,C)}_convertYcckToRgba(l){for(let F=0,s=l.length;F<s;F+=4){const r=l[F],u=l[F+1],C=l[F+2],g=l[F+3];l[F]=-122.67195406894+u*(-660635669420364e-19*u+.000437130475926232*C-54080610064599e-18*r+.00048449797120281*g-.154362151871126)+C*(-.000957964378445773*C+.000817076911346625*r-.00477271405408747*g+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*g+.48357088451265)+g*(-.000336197177618394*g+.484791561490776),l[F+1]=107.268039397724+u*(219927104525741e-19*u-.000640992018297945*C+.000659397001245577*r+.000426105652938837*g-.176491792462875)+C*(-.000778269941513683*C+.00130872261408275*r+.000770482631801132*g-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*g+.25802910206845)+g*(-.000318913117588328*g-.213742400323665),l[F+2]=-20.810012546947+u*(-.000570115196973677*u-263409051004589e-19*C+.0020741088115012*r-.00288260236853442*g+.814272968359295)+C*(-153496057440975e-19*C-.000132689043961446*r+.000560833691242812*g-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*g+.116935020465145)+g*(-.000343531996510555*g+.24165260232407),l[F+3]=255}return l}_convertYcckToCmyk(l){let F,s,r;for(let u=0,C=l.length;u<C;u+=4)F=l[u],s=l[u+1],r=l[u+2],l[u]=434.456-F-1.402*r,l[u+1]=119.541-F+.344*s+.714*r,l[u+2]=481.816-F-1.772*s;return l}_convertCmykToRgb(l){let F,s,r,u,C=0;for(let g=0,p=l.length;g<p;g+=4)F=l[g],s=l[g+1],r=l[g+2],u=l[g+3],l[C++]=255+F*(-6747147073602441e-20*F+.0008379262121013727*s+.0002894718188643294*r+.003264231057537806*u-1.1185611867203937)+s*(26374107616089405e-21*s-8626949158638572e-20*r-.0002748769067499491*u-.02155688794978967)+r*(-3878099212869363e-20*r-.0003267808279485286*u+.0686742238595345)-u*(.0003361971776183937*u+.7430659151342254),l[C++]=255+F*(.00013596372813588848*F+.000924537132573585*s+.00010567359618683593*r+.0004791864687436512*u-.3109689587515875)+s*(-.00023545346108370344*s+.0002702845253534714*r+.0020200308977307156*u-.7488052167015494)+r*(6834815998235662e-20*r+.00015168452363460973*u-.09751927774728933)-u*(.0003189131175883281*u+.7364883807733168),l[C++]=255+F*(13598650411385307e-21*F+.00012423956175490851*s+.0004751985097583589*r-36729317476630422e-22*u-.05562186980264034)+s*(.00016141380598724676*s+.0009692239130725186*r+.0007782692450036253*u-.44015232367526463)+r*(5068882914068769e-22*r+.0017778369011375071*u-.7591454649749609)-u*(.0003435319965105553*u+.7063770186160144);return l.subarray(0,C)}_convertCmykToRgba(l){for(let F=0,s=l.length;F<s;F+=4){const r=l[F],u=l[F+1],C=l[F+2],g=l[F+3];l[F]=255+r*(-6747147073602441e-20*r+.0008379262121013727*u+.0002894718188643294*C+.003264231057537806*g-1.1185611867203937)+u*(26374107616089405e-21*u-8626949158638572e-20*C-.0002748769067499491*g-.02155688794978967)+C*(-3878099212869363e-20*C-.0003267808279485286*g+.0686742238595345)-g*(.0003361971776183937*g+.7430659151342254),l[F+1]=255+r*(.00013596372813588848*r+.000924537132573585*u+.00010567359618683593*C+.0004791864687436512*g-.3109689587515875)+u*(-.00023545346108370344*u+.0002702845253534714*C+.0020200308977307156*g-.7488052167015494)+C*(6834815998235662e-20*C+.00015168452363460973*g-.09751927774728933)-g*(.0003189131175883281*g+.7364883807733168),l[F+2]=255+r*(13598650411385307e-21*r+.00012423956175490851*u+.0004751985097583589*C-36729317476630422e-22*g-.05562186980264034)+u*(.00016141380598724676*u+.0009692239130725186*C+.0007782692450036253*g-.44015232367526463)+C*(5068882914068769e-22*C+.0017778369011375071*g-.7591454649749609)-g*(.0003435319965105553*g+.7063770186160144),l[F+3]=255}return l}getData({width:l,height:F,forceRGBA:s=!1,forceRGB:r=!1,isSourcePDF:u=!1}){if(this.numComponents>4)throw new e("Unsupported color mode");const C=this._getLinearizedBlockData(l,F,u);if(this.numComponents===1&&(s||r)){const g=C.length*(s?4:3),p=new Uint8ClampedArray(g);let X=0;if(s)(0,P.grayToRGBA)(C,new Uint32Array(p.buffer));else for(const $ of C)p[X++]=$,p[X++]=$,p[X++]=$;return p}else if(this.numComponents===3&&this._isColorConversionNeeded){if(s){const g=new Uint8ClampedArray(C.length/3*4);return this._convertYccToRgba(C,g)}return this._convertYccToRgb(C)}else if(this.numComponents===4){if(this._isColorConversionNeeded)return s?this._convertYcckToRgba(C):r?this._convertYcckToRgb(C):this._convertYcckToCmyk(C);if(s)return this._convertCmykToRgba(C);if(r)return this._convertCmykToRgb(C)}return C}}b.JpegImage=T},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.convertBlackAndWhiteToRGBA=D,b.convertToRGBA=P,b.grayToRGBA=t;var n=ce(2);function P(c){switch(c.kind){case n.ImageKind.GRAYSCALE_1BPP:return D(c);case n.ImageKind.RGB_24BPP:return e(c)}return null}function D({src:c,srcPos:Y=0,dest:ee,width:N,height:I,nonBlackColor:f=4294967295,inverseDecode:x=!1}){const a=n.FeatureTest.isLittleEndian?4278190080:255,[E,w]=x?[f,a]:[a,f],O=N>>3,M=N&7,B=c.length;ee=new Uint32Array(ee.buffer);let z=0;for(let W=0;W<I;W++){for(const T=Y+O;Y<T;Y++){const o=Y<B?c[Y]:255;ee[z++]=o&128?w:E,ee[z++]=o&64?w:E,ee[z++]=o&32?w:E,ee[z++]=o&16?w:E,ee[z++]=o&8?w:E,ee[z++]=o&4?w:E,ee[z++]=o&2?w:E,ee[z++]=o&1?w:E}if(M===0)continue;const d=Y<B?c[Y++]:255;for(let T=0;T<M;T++)ee[z++]=d&1<<7-T?w:E}return{srcPos:Y,destPos:z}}function e({src:c,srcPos:Y=0,dest:ee,destPos:N=0,width:I,height:f}){let x=0;const a=c.length>>2,E=new Uint32Array(c.buffer,Y,a);if(n.FeatureTest.isLittleEndian){for(;x<a-2;x+=3,N+=4){const w=E[x],O=E[x+1],M=E[x+2];ee[N]=w|4278190080,ee[N+1]=w>>>24|O<<8|4278190080,ee[N+2]=O>>>16|M<<16|4278190080,ee[N+3]=M>>>8|4278190080}for(let w=x*4,O=c.length;w<O;w+=3)ee[N++]=c[w]|c[w+1]<<8|c[w+2]<<16|4278190080}else{for(;x<a-2;x+=3,N+=4){const w=E[x],O=E[x+1],M=E[x+2];ee[N]=w|255,ee[N+1]=w<<24|O>>>8|255,ee[N+2]=O<<16|M>>>16|255,ee[N+3]=M<<8|255}for(let w=x*4,O=c.length;w<O;w+=3)ee[N++]=c[w]<<24|c[w+1]<<16|c[w+2]<<8|255}return{srcPos:Y,destPos:N}}function t(c,Y){if(n.FeatureTest.isLittleEndian)for(let ee=0,N=c.length;ee<N;ee++)Y[ee]=c[ee]*65793|4278190080;else for(let ee=0,N=c.length;ee<N;ee++)Y[ee]=c[ee]*16843008|255}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.JpxStream=void 0;var n=ce(18),P=ce(30),D=ce(2);class e extends n.DecodeStream{constructor(c,Y,ee){super(Y),this.stream=c,this.dict=c.dict,this.maybeLength=Y,this.params=ee}get bytes(){return(0,D.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(c){}readBlock(){if(this.eof)return;const c=new P.JpxImage;c.parse(this.bytes);const Y=c.width,ee=c.height,N=c.componentsCount,I=c.tiles.length;if(I===1)this.buffer=c.tiles[0].items;else{const f=new Uint8ClampedArray(Y*ee*N);for(let x=0;x<I;x++){const a=c.tiles[x],E=a.width,w=a.height,O=a.left,M=a.top,B=a.items;let z=0,W=(Y*M+O)*N;const d=Y*N,T=E*N;for(let o=0;o<w;o++){const l=B.subarray(z,z+T);f.set(l,W),z+=T,W+=d}}this.buffer=f}this.bufferLength=this.buffer.length,this.eof=!0}}b.JpxStream=e},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.JpxImage=void 0;var n=ce(2),P=ce(3),D=ce(25);class e extends n.BaseException{constructor(y){super(`JPX error: ${y}`,"JpxError")}}const t={LL:0,LH:1,HL:1,HH:2};class c{constructor(){this.failOnCorruptedImage=!1}parse(y){if((0,P.readUint16)(y,0)===65359){this.parseCodestream(y,0,y.length);return}const m=y.length;let h=0;for(;h<m;){let A=8,j=(0,P.readUint32)(y,h);const H=(0,P.readUint32)(y,h+4);if(h+=A,j===1&&(j=(0,P.readUint32)(y,h)*4294967296+(0,P.readUint32)(y,h+4),h+=8,A+=8),j===0&&(j=m-h+A),j<A)throw new e("Invalid box field size");const J=j-A;let oe=!0;switch(H){case 1785737832:oe=!1;break;case 1668246642:const q=y[h];if(q===1){const Z=(0,P.readUint32)(y,h+3);switch(Z){case 16:case 17:case 18:break;default:(0,n.warn)("Unknown colorspace "+Z);break}}else q===2&&(0,n.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(y,h,h+J);break;case 1783636e3:(0,P.readUint32)(y,h)!==218793738&&(0,n.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:const re=String.fromCharCode(H>>24&255,H>>16&255,H>>8&255,H&255);(0,n.warn)(`Unsupported header type ${H} (${re}).`);break}oe&&(h+=J)}}parseImageProperties(y){let v=y.getByte();for(;v>=0;){const m=v;if(v=y.getByte(),(m<<8|v)===65361){y.skip(4);const A=y.getInt32()>>>0,j=y.getInt32()>>>0,H=y.getInt32()>>>0,J=y.getInt32()>>>0;y.skip(16);const oe=y.getUint16();this.width=A-H,this.height=j-J,this.componentsCount=oe,this.bitsPerComponent=8;return}}throw new e("No size marker found in JPX stream")}parseCodestream(y,v,m){const h={};let A=!1;try{let j=v;for(;j+1<m;){const H=(0,P.readUint16)(y,j);j+=2;let J=0,oe,q,re,Z,K,S;switch(H){case 65359:h.mainHeader=!0;break;case 65497:break;case 65361:J=(0,P.readUint16)(y,j);const k={};k.Xsiz=(0,P.readUint32)(y,j+4),k.Ysiz=(0,P.readUint32)(y,j+8),k.XOsiz=(0,P.readUint32)(y,j+12),k.YOsiz=(0,P.readUint32)(y,j+16),k.XTsiz=(0,P.readUint32)(y,j+20),k.YTsiz=(0,P.readUint32)(y,j+24),k.XTOsiz=(0,P.readUint32)(y,j+28),k.YTOsiz=(0,P.readUint32)(y,j+32);const _=(0,P.readUint16)(y,j+36);k.Csiz=_;const G=[];oe=j+38;for(let te=0;te<_;te++){const se={precision:(y[oe]&127)+1,isSigned:!!(y[oe]&128),XRsiz:y[oe+1],YRsiz:y[oe+2]};oe+=3,Y(se,k),G.push(se)}h.SIZ=k,h.components=G,ee(h,G),h.QCC=[],h.COC=[];break;case 65372:J=(0,P.readUint16)(y,j);const Q={};switch(oe=j+2,q=y[oe++],q&31){case 0:Z=8,K=!0;break;case 1:Z=16,K=!1;break;case 2:Z=16,K=!0;break;default:throw new Error("Invalid SQcd value "+q)}for(Q.noQuantization=Z===8,Q.scalarExpounded=K,Q.guardBits=q>>5,re=[];oe<J+j;){const te={};Z===8?(te.epsilon=y[oe++]>>3,te.mu=0):(te.epsilon=y[oe]>>3,te.mu=(y[oe]&7)<<8|y[oe+1],oe+=2),re.push(te)}Q.SPqcds=re,h.mainHeader?h.QCD=Q:(h.currentTile.QCD=Q,h.currentTile.QCC=[]);break;case 65373:J=(0,P.readUint16)(y,j);const ie={};oe=j+2;let ae;switch(h.SIZ.Csiz<257?ae=y[oe++]:(ae=(0,P.readUint16)(y,oe),oe+=2),q=y[oe++],q&31){case 0:Z=8,K=!0;break;case 1:Z=16,K=!1;break;case 2:Z=16,K=!0;break;default:throw new Error("Invalid SQcd value "+q)}for(ie.noQuantization=Z===8,ie.scalarExpounded=K,ie.guardBits=q>>5,re=[];oe<J+j;){const te={};Z===8?(te.epsilon=y[oe++]>>3,te.mu=0):(te.epsilon=y[oe]>>3,te.mu=(y[oe]&7)<<8|y[oe+1],oe+=2),re.push(te)}ie.SPqcds=re,h.mainHeader?h.QCC[ae]=ie:h.currentTile.QCC[ae]=ie;break;case 65362:J=(0,P.readUint16)(y,j);const U={};oe=j+2;const ne=y[oe++];U.entropyCoderWithCustomPrecincts=!!(ne&1),U.sopMarkerUsed=!!(ne&2),U.ephMarkerUsed=!!(ne&4),U.progressionOrder=y[oe++],U.layersCount=(0,P.readUint16)(y,oe),oe+=2,U.multipleComponentTransform=y[oe++],U.decompositionLevelsCount=y[oe++],U.xcb=(y[oe++]&15)+2,U.ycb=(y[oe++]&15)+2;const V=y[oe++];if(U.selectiveArithmeticCodingBypass=!!(V&1),U.resetContextProbabilities=!!(V&2),U.terminationOnEachCodingPass=!!(V&4),U.verticallyStripe=!!(V&8),U.predictableTermination=!!(V&16),U.segmentationSymbolUsed=!!(V&32),U.reversibleTransformation=y[oe++],U.entropyCoderWithCustomPrecincts){const te=[];for(;oe<J+j;){const se=y[oe++];te.push({PPx:se&15,PPy:se>>4})}U.precinctsSizes=te}const L=[];U.selectiveArithmeticCodingBypass&&L.push("selectiveArithmeticCodingBypass"),U.terminationOnEachCodingPass&&L.push("terminationOnEachCodingPass"),U.verticallyStripe&&L.push("verticallyStripe"),U.predictableTermination&&L.push("predictableTermination"),L.length>0&&(A=!0,(0,n.warn)(`JPX: Unsupported COD options (${L.join(", ")}).`)),h.mainHeader?h.COD=U:(h.currentTile.COD=U,h.currentTile.COC=[]);break;case 65424:J=(0,P.readUint16)(y,j),S={},S.index=(0,P.readUint16)(y,j+2),S.length=(0,P.readUint32)(y,j+4),S.dataEnd=S.length+j-2,S.partIndex=y[j+8],S.partsCount=y[j+9],h.mainHeader=!1,S.partIndex===0&&(S.COD=h.COD,S.COC=h.COC.slice(0),S.QCD=h.QCD,S.QCC=h.QCC.slice(0)),h.currentTile=S;break;case 65427:S=h.currentTile,S.partIndex===0&&(F(h,S.index),W(h)),J=S.dataEnd-j,d(h,y,j,J);break;case 65363:(0,n.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:J=(0,P.readUint16)(y,j);break;default:throw new Error("Unknown codestream code: "+H.toString(16))}j+=J}}catch(j){if(A||this.failOnCorruptedImage)throw new e(j.message);(0,n.warn)(`JPX: Trying to recover from: "${j.message}".`)}this.tiles=l(h),this.width=h.SIZ.Xsiz-h.SIZ.XOsiz,this.height=h.SIZ.Ysiz-h.SIZ.YOsiz,this.componentsCount=h.SIZ.Csiz}}b.JpxImage=c;function Y($,y){$.x0=Math.ceil(y.XOsiz/$.XRsiz),$.x1=Math.ceil(y.Xsiz/$.XRsiz),$.y0=Math.ceil(y.YOsiz/$.YRsiz),$.y1=Math.ceil(y.Ysiz/$.YRsiz),$.width=$.x1-$.x0,$.height=$.y1-$.y0}function ee($,y){const v=$.SIZ,m=[];let h;const A=Math.ceil((v.Xsiz-v.XTOsiz)/v.XTsiz),j=Math.ceil((v.Ysiz-v.YTOsiz)/v.YTsiz);for(let J=0;J<j;J++)for(let oe=0;oe<A;oe++)h={},h.tx0=Math.max(v.XTOsiz+oe*v.XTsiz,v.XOsiz),h.ty0=Math.max(v.YTOsiz+J*v.YTsiz,v.YOsiz),h.tx1=Math.min(v.XTOsiz+(oe+1)*v.XTsiz,v.Xsiz),h.ty1=Math.min(v.YTOsiz+(J+1)*v.YTsiz,v.Ysiz),h.width=h.tx1-h.tx0,h.height=h.ty1-h.ty0,h.components=[],m.push(h);$.tiles=m;const H=v.Csiz;for(let J=0,oe=H;J<oe;J++){const q=y[J];for(let re=0,Z=m.length;re<Z;re++){const K={};h=m[re],K.tcx0=Math.ceil(h.tx0/q.XRsiz),K.tcy0=Math.ceil(h.ty0/q.YRsiz),K.tcx1=Math.ceil(h.tx1/q.XRsiz),K.tcy1=Math.ceil(h.ty1/q.YRsiz),K.width=K.tcx1-K.tcx0,K.height=K.tcy1-K.tcy0,h.components[J]=K}}}function N($,y,v){const m=y.codingStyleParameters,h={};return m.entropyCoderWithCustomPrecincts?(h.PPx=m.precinctsSizes[v].PPx,h.PPy=m.precinctsSizes[v].PPy):(h.PPx=15,h.PPy=15),h.xcb_=v>0?Math.min(m.xcb,h.PPx-1):Math.min(m.xcb,h.PPx),h.ycb_=v>0?Math.min(m.ycb,h.PPy-1):Math.min(m.ycb,h.PPy),h}function I($,y,v){const m=1<<v.PPx,h=1<<v.PPy,A=y.resLevel===0,j=1<<v.PPx+(A?0:-1),H=1<<v.PPy+(A?0:-1),J=y.trx1>y.trx0?Math.ceil(y.trx1/m)-Math.floor(y.trx0/m):0,oe=y.try1>y.try0?Math.ceil(y.try1/h)-Math.floor(y.try0/h):0,q=J*oe;y.precinctParameters={precinctWidth:m,precinctHeight:h,numprecinctswide:J,numprecinctshigh:oe,numprecincts:q,precinctWidthInSubband:j,precinctHeightInSubband:H}}function f($,y,v){const m=v.xcb_,h=v.ycb_,A=1<<m,j=1<<h,H=y.tbx0>>m,J=y.tby0>>h,oe=y.tbx1+A-1>>m,q=y.tby1+j-1>>h,re=y.resolution.precinctParameters,Z=[],K=[];let S,k,_,G;for(k=J;k<q;k++)for(S=H;S<oe;S++){_={cbx:S,cby:k,tbx0:A*S,tby0:j*k,tbx1:A*(S+1),tby1:j*(k+1)},_.tbx0_=Math.max(y.tbx0,_.tbx0),_.tby0_=Math.max(y.tby0,_.tby0),_.tbx1_=Math.min(y.tbx1,_.tbx1),_.tby1_=Math.min(y.tby1,_.tby1);const Q=Math.floor((_.tbx0_-y.tbx0)/re.precinctWidthInSubband),ie=Math.floor((_.tby0_-y.tby0)/re.precinctHeightInSubband);if(G=Q+ie*re.numprecinctswide,_.precinctNumber=G,_.subbandType=y.type,_.Lblock=3,_.tbx1_<=_.tbx0_||_.tby1_<=_.tby0_)continue;Z.push(_);let ae=K[G];ae!==void 0?(S<ae.cbxMin?ae.cbxMin=S:S>ae.cbxMax&&(ae.cbxMax=S),k<ae.cbyMin?ae.cbxMin=k:k>ae.cbyMax&&(ae.cbyMax=k)):K[G]=ae={cbxMin:S,cbyMin:k,cbxMax:S,cbyMax:k},_.precinct=ae}y.codeblockParameters={codeblockWidth:m,codeblockHeight:h,numcodeblockwide:oe-H+1,numcodeblockhigh:q-J+1},y.codeblocks=Z,y.precincts=K}function x($,y,v){const m=[],h=$.subbands;for(let A=0,j=h.length;A<j;A++){const J=h[A].codeblocks;for(let oe=0,q=J.length;oe<q;oe++){const re=J[oe];re.precinctNumber===y&&m.push(re)}}return{layerNumber:v,codeblocks:m}}function a($){const y=$.SIZ,v=$.currentTile.index,m=$.tiles[v],h=m.codingStyleDefaultParameters.layersCount,A=y.Csiz;let j=0;for(let re=0;re<A;re++)j=Math.max(j,m.components[re].codingStyleParameters.decompositionLevelsCount);let H=0,J=0,oe=0,q=0;this.nextPacket=function(){for(;H<h;H++){for(;J<=j;J++){for(;oe<A;oe++){const Z=m.components[oe];if(J>Z.codingStyleParameters.decompositionLevelsCount)continue;const K=Z.resolutions[J],S=K.precinctParameters.numprecincts;for(;q<S;){const k=x(K,q,H);return q++,k}q=0}oe=0}J=0}throw new e("Out of packets")}}function E($){const y=$.SIZ,v=$.currentTile.index,m=$.tiles[v],h=m.codingStyleDefaultParameters.layersCount,A=y.Csiz;let j=0;for(let re=0;re<A;re++)j=Math.max(j,m.components[re].codingStyleParameters.decompositionLevelsCount);let H=0,J=0,oe=0,q=0;this.nextPacket=function(){for(;H<=j;H++){for(;J<h;J++){for(;oe<A;oe++){const Z=m.components[oe];if(H>Z.codingStyleParameters.decompositionLevelsCount)continue;const K=Z.resolutions[H],S=K.precinctParameters.numprecincts;for(;q<S;){const k=x(K,q,J);return q++,k}q=0}oe=0}J=0}throw new e("Out of packets")}}function w($){const y=$.SIZ,v=$.currentTile.index,m=$.tiles[v],h=m.codingStyleDefaultParameters.layersCount,A=y.Csiz;let j,H,J,oe,q=0;for(J=0;J<A;J++){const Z=m.components[J];q=Math.max(q,Z.codingStyleParameters.decompositionLevelsCount)}const re=new Int32Array(q+1);for(H=0;H<=q;++H){let Z=0;for(J=0;J<A;++J){const K=m.components[J].resolutions;H<K.length&&(Z=Math.max(Z,K[H].precinctParameters.numprecincts))}re[H]=Z}j=0,H=0,J=0,oe=0,this.nextPacket=function(){for(;H<=q;H++){for(;oe<re[H];oe++){for(;J<A;J++){const K=m.components[J];if(H>K.codingStyleParameters.decompositionLevelsCount)continue;const S=K.resolutions[H],k=S.precinctParameters.numprecincts;if(!(oe>=k)){for(;j<h;){const _=x(S,oe,j);return j++,_}j=0}}J=0}oe=0}throw new e("Out of packets")}}function O($){const y=$.SIZ,v=$.currentTile.index,m=$.tiles[v],h=m.codingStyleDefaultParameters.layersCount,A=y.Csiz,j=z(m),H=j;let J=0,oe=0,q=0,re=0,Z=0;this.nextPacket=function(){for(;Z<H.maxNumHigh;Z++){for(;re<H.maxNumWide;re++){for(;q<A;q++){const S=m.components[q],k=S.codingStyleParameters.decompositionLevelsCount;for(;oe<=k;oe++){const _=S.resolutions[oe],G=j.components[q].resolutions[oe],Q=B(re,Z,G,H,_);if(Q!==null){for(;J<h;){const ie=x(_,Q,J);return J++,ie}J=0}}oe=0}q=0}re=0}throw new e("Out of packets")}}function M($){const y=$.SIZ,v=$.currentTile.index,m=$.tiles[v],h=m.codingStyleDefaultParameters.layersCount,A=y.Csiz,j=z(m);let H=0,J=0,oe=0,q=0,re=0;this.nextPacket=function(){for(;oe<A;++oe){const K=m.components[oe],S=j.components[oe],k=K.codingStyleParameters.decompositionLevelsCount;for(;re<S.maxNumHigh;re++){for(;q<S.maxNumWide;q++){for(;J<=k;J++){const _=K.resolutions[J],G=S.resolutions[J],Q=B(q,re,G,S,_);if(Q!==null){for(;H<h;){const ie=x(_,Q,H);return H++,ie}H=0}}J=0}q=0}re=0}throw new e("Out of packets")}}function B($,y,v,m,h){const A=$*m.minWidth,j=y*m.minHeight;if(A%v.width!==0||j%v.height!==0)return null;const H=j/v.width*h.precinctParameters.numprecinctswide;return A/v.height+H}function z($){const y=$.components.length;let v=Number.MAX_VALUE,m=Number.MAX_VALUE,h=0,A=0;const j=new Array(y);for(let H=0;H<y;H++){const J=$.components[H],oe=J.codingStyleParameters.decompositionLevelsCount,q=new Array(oe+1);let re=Number.MAX_VALUE,Z=Number.MAX_VALUE,K=0,S=0,k=1;for(let _=oe;_>=0;--_){const G=J.resolutions[_],Q=k*G.precinctParameters.precinctWidth,ie=k*G.precinctParameters.precinctHeight;re=Math.min(re,Q),Z=Math.min(Z,ie),K=Math.max(K,G.precinctParameters.numprecinctswide),S=Math.max(S,G.precinctParameters.numprecinctshigh),q[_]={width:Q,height:ie},k<<=1}v=Math.min(v,re),m=Math.min(m,Z),h=Math.max(h,K),A=Math.max(A,S),j[H]={resolutions:q,minWidth:re,minHeight:Z,maxNumWide:K,maxNumHigh:S}}return{components:j,minWidth:v,minHeight:m,maxNumWide:h,maxNumHigh:A}}function W($){const y=$.SIZ,v=$.currentTile.index,m=$.tiles[v],h=y.Csiz;for(let j=0;j<h;j++){const H=m.components[j],J=H.codingStyleParameters.decompositionLevelsCount,oe=[],q=[];for(let re=0;re<=J;re++){const Z=N($,H,re),K={},S=1<<J-re;K.trx0=Math.ceil(H.tcx0/S),K.try0=Math.ceil(H.tcy0/S),K.trx1=Math.ceil(H.tcx1/S),K.try1=Math.ceil(H.tcy1/S),K.resLevel=re,I($,K,Z),oe.push(K);let k;if(re===0)k={},k.type="LL",k.tbx0=Math.ceil(H.tcx0/S),k.tby0=Math.ceil(H.tcy0/S),k.tbx1=Math.ceil(H.tcx1/S),k.tby1=Math.ceil(H.tcy1/S),k.resolution=K,f($,k,Z),q.push(k),K.subbands=[k];else{const _=1<<J-re+1,G=[];k={},k.type="HL",k.tbx0=Math.ceil(H.tcx0/_-.5),k.tby0=Math.ceil(H.tcy0/_),k.tbx1=Math.ceil(H.tcx1/_-.5),k.tby1=Math.ceil(H.tcy1/_),k.resolution=K,f($,k,Z),q.push(k),G.push(k),k={},k.type="LH",k.tbx0=Math.ceil(H.tcx0/_),k.tby0=Math.ceil(H.tcy0/_-.5),k.tbx1=Math.ceil(H.tcx1/_),k.tby1=Math.ceil(H.tcy1/_-.5),k.resolution=K,f($,k,Z),q.push(k),G.push(k),k={},k.type="HH",k.tbx0=Math.ceil(H.tcx0/_-.5),k.tby0=Math.ceil(H.tcy0/_-.5),k.tbx1=Math.ceil(H.tcx1/_-.5),k.tby1=Math.ceil(H.tcy1/_-.5),k.resolution=K,f($,k,Z),q.push(k),G.push(k),K.subbands=G}}H.resolutions=oe,H.subbands=q}const A=m.codingStyleDefaultParameters.progressionOrder;switch(A){case 0:m.packetsIterator=new a($);break;case 1:m.packetsIterator=new E($);break;case 2:m.packetsIterator=new w($);break;case 3:m.packetsIterator=new O($);break;case 4:m.packetsIterator=new M($);break;default:throw new e(`Unsupported progression order ${A}`)}}function d($,y,v,m){let h=0,A,j=0,H=!1;function J(Q){for(;j<Q;){const ie=y[v+h];h++,H?(A=A<<7|ie,j+=7,H=!1):(A=A<<8|ie,j+=8),ie===255&&(H=!0)}return j-=Q,A>>>j&(1<<Q)-1}function oe(Q){return y[v+h-1]===255&&y[v+h]===Q?(q(1),!0):y[v+h]===255&&y[v+h+1]===Q?(q(2),!0):!1}function q(Q){h+=Q}function re(){j=0,H&&(h++,H=!1)}function Z(){if(J(1)===0)return 1;if(J(1)===0)return 2;let Q=J(2);return Q<3?Q+3:(Q=J(5),Q<31?Q+6:(Q=J(7),Q+37))}const K=$.currentTile.index,S=$.tiles[K],k=$.COD.sopMarkerUsed,_=$.COD.ephMarkerUsed,G=S.packetsIterator;for(;h<m;){re(),k&&oe(145)&&q(4);const Q=G.nextPacket();if(!J(1))continue;const ie=Q.layerNumber,ae=[];let U;for(let ne=0,V=Q.codeblocks.length;ne<V;ne++){U=Q.codeblocks[ne];let L=U.precinct;const te=U.cbx-L.cbxMin,se=U.cby-L.cbyMin;let le=!1,ue=!1,fe,ge;if(U.included!==void 0)le=!!J(1);else{L=U.precinct;let Se;if(L.inclusionTree!==void 0)Se=L.inclusionTree;else{const pe=L.cbxMax-L.cbxMin+1,he=L.cbyMax-L.cbyMin+1;Se=new r(pe,he,ie),ge=new s(pe,he),L.inclusionTree=Se,L.zeroBitPlanesTree=ge;for(let de=0;de<ie;de++)if(J(1)!==0)throw new e("Invalid tag tree")}if(Se.reset(te,se,ie))for(;;)if(J(1)){if(fe=!Se.nextLevel(),fe){U.included=!0,le=ue=!0;break}}else{Se.incrementValue(ie);break}}if(!le)continue;if(ue){for(ge=L.zeroBitPlanesTree,ge.reset(te,se);;)if(J(1)){if(fe=!ge.nextLevel(),fe)break}else ge.incrementValue();U.zeroBitPlanes=ge.value}const xe=Z();for(;J(1);)U.Lblock++;const me=(0,P.log2)(xe),be=(xe<1<<me?me-1:me)+U.Lblock,ye=J(be);ae.push({codeblock:U,codingpasses:xe,dataLength:ye})}for(re(),_&&oe(146);ae.length>0;){const ne=ae.shift();U=ne.codeblock,U.data===void 0&&(U.data=[]),U.data.push({data:y,start:v+h,end:v+h+ne.dataLength,codingpasses:ne.codingpasses}),h+=ne.dataLength}}return h}function T($,y,v,m,h,A,j,H,J){const oe=m.tbx0,q=m.tby0,re=m.tbx1-m.tbx0,Z=m.codeblocks,K=m.type.charAt(0)==="H"?1:0,S=m.type.charAt(1)==="H"?y:0;for(let k=0,_=Z.length;k<_;++k){const G=Z[k],Q=G.tbx1_-G.tbx0_,ie=G.tby1_-G.tby0_;if(Q===0||ie===0||G.data===void 0)continue;const ae=new u(Q,ie,G.subbandType,G.zeroBitPlanes,A);let U=2;const ne=G.data;let V=0,L=0,te,se,le;for(te=0,se=ne.length;te<se;te++)le=ne[te],V+=le.end-le.start,L+=le.codingpasses;const ue=new Uint8Array(V);let fe=0;for(te=0,se=ne.length;te<se;te++){le=ne[te];const we=le.data.subarray(le.start,le.end);ue.set(we,fe),fe+=we.length}const ge=new D.ArithmeticDecoder(ue,0,V);for(ae.setDecoder(ge),te=0;te<L;te++){switch(U){case 0:ae.runSignificancePropagationPass();break;case 1:ae.runMagnitudeRefinementPass();break;case 2:ae.runCleanupPass(),H&&ae.checkSegmentationSymbol();break}J&&ae.reset(),U=(U+1)%3}let xe=G.tbx0_-oe+(G.tby0_-q)*re;const me=ae.coefficentsSign,be=ae.coefficentsMagnitude,ye=ae.bitsDecoded,Se=j?0:.5;let pe,he,de;fe=0;const Ce=m.type!=="LL";for(te=0;te<ie;te++){const Le=2*(xe/re|0)*(y-re)+K+S;for(pe=0;pe<Q;pe++){if(he=be[fe],he!==0){he=(he+Se)*h,me[fe]!==0&&(he=-he),de=ye[fe];const Be=Ce?Le+(xe<<1):xe;$[Be]=j&&de>=A?he:he*(1<<A-de)}xe++,fe++}xe+=re-Q}}}function o($,y,v){const m=y.components[v],h=m.codingStyleParameters,A=m.quantizationParameters,j=h.decompositionLevelsCount,H=A.SPqcds,J=A.scalarExpounded,oe=A.guardBits,q=h.segmentationSymbolUsed,re=h.resetContextProbabilities,Z=$.components[v].precision,K=h.reversibleTransformation,S=K?new p:new g,k=[];let _=0;for(let Q=0;Q<=j;Q++){const ie=m.resolutions[Q],ae=ie.trx1-ie.trx0,U=ie.try1-ie.try0,ne=new Float32Array(ae*U);for(let V=0,L=ie.subbands.length;V<L;V++){let te,se;J?(te=H[_].mu,se=H[_].epsilon,_++):(te=H[0].mu,se=H[0].epsilon+(Q>0?1-Q:0));const le=ie.subbands[V],ue=t[le.type],fe=K?1:Lt(2,Z+ue-se)*(1+te/2048),ge=oe+se-1;T(ne,ae,U,le,fe,ge,K,q,re)}k.push({width:ae,height:U,items:ne})}const G=S.calculate(k,m.tcx0,m.tcy0);return{left:m.tcx0,top:m.tcy0,width:G.width,height:G.height,items:G.items}}function l($){const y=$.SIZ,v=$.components,m=y.Csiz,h=[];for(let A=0,j=$.tiles.length;A<j;A++){const H=$.tiles[A],J=[];for(let ae=0;ae<m;ae++)J[ae]=o($,H,ae);const oe=J[0],q=new Uint8ClampedArray(oe.items.length*m),re={left:oe.left,top:oe.top,width:oe.width,height:oe.height,items:q};let Z,K,S=0,k,_,G,Q,ie;if(H.codingStyleDefaultParameters.multipleComponentTransform){const ae=m===4,U=J[0].items,ne=J[1].items,V=J[2].items,L=ae?J[3].items:null;Z=v[0].precision-8,K=(128<<Z)+.5;const te=H.components[0],se=m-3;if(_=U.length,te.codingStyleParameters.reversibleTransformation)for(k=0;k<_;k++,S+=se){G=U[k]+K,Q=ne[k],ie=V[k];const le=G-(ie+Q>>2);q[S++]=le+ie>>Z,q[S++]=le>>Z,q[S++]=le+Q>>Z}else for(k=0;k<_;k++,S+=se)G=U[k]+K,Q=ne[k],ie=V[k],q[S++]=G+1.402*ie>>Z,q[S++]=G-.34413*Q-.71414*ie>>Z,q[S++]=G+1.772*Q>>Z;if(ae)for(k=0,S=3;k<_;k++,S+=4)q[S]=L[k]+K>>Z}else for(let ae=0;ae<m;ae++){const U=J[ae].items;for(Z=v[ae].precision-8,K=(128<<Z)+.5,S=ae,k=0,_=U.length;k<_;k++)q[S]=U[k]+K>>Z,S+=m}h.push(re)}return h}function F($,y){const m=$.SIZ.Csiz,h=$.tiles[y];for(let A=0;A<m;A++){const j=h.components[A],H=$.currentTile.QCC[A]!==void 0?$.currentTile.QCC[A]:$.currentTile.QCD;j.quantizationParameters=H;const J=$.currentTile.COC[A]!==void 0?$.currentTile.COC[A]:$.currentTile.COD;j.codingStyleParameters=J}h.codingStyleDefaultParameters=$.currentTile.COD}class s{constructor(y,v){const m=(0,P.log2)(Math.max(y,v))+1;this.levels=[];for(let h=0;h<m;h++){const A={width:y,height:v,items:[]};this.levels.push(A),y=Math.ceil(y/2),v=Math.ceil(v/2)}}reset(y,v){let m=0,h=0,A;for(;m<this.levels.length;){A=this.levels[m];const j=y+v*A.width;if(A.items[j]!==void 0){h=A.items[j];break}A.index=j,y>>=1,v>>=1,m++}m--,A=this.levels[m],A.items[A.index]=h,this.currentLevel=m,delete this.value}incrementValue(){const y=this.levels[this.currentLevel];y.items[y.index]++}nextLevel(){let y=this.currentLevel,v=this.levels[y];const m=v.items[v.index];return y--,y<0?(this.value=m,!1):(this.currentLevel=y,v=this.levels[y],v.items[v.index]=m,!0)}}class r{constructor(y,v,m){const h=(0,P.log2)(Math.max(y,v))+1;this.levels=[];for(let A=0;A<h;A++){const j=new Uint8Array(y*v);for(let J=0,oe=j.length;J<oe;J++)j[J]=m;const H={width:y,height:v,items:j};this.levels.push(H),y=Math.ceil(y/2),v=Math.ceil(v/2)}}reset(y,v,m){let h=0;for(;h<this.levels.length;){const A=this.levels[h],j=y+v*A.width;A.index=j;const H=A.items[j];if(H===255)break;if(H>m)return this.currentLevel=h,this.propagateValues(),!1;y>>=1,v>>=1,h++}return this.currentLevel=h-1,!0}incrementValue(y){const v=this.levels[this.currentLevel];v.items[v.index]=y+1,this.propagateValues()}propagateValues(){let y=this.currentLevel,v=this.levels[y];const m=v.items[v.index];for(;--y>=0;)v=this.levels[y],v.items[v.index]=m}nextLevel(){let y=this.currentLevel,v=this.levels[y];const m=v.items[v.index];return v.items[v.index]=255,y--,y<0?!1:(this.currentLevel=y,v=this.levels[y],v.items[v.index]=m,!0)}}const X=class{constructor(y,v,m,h,A){this.width=y,this.height=v;let j;m==="HH"?j=X.HHContextLabel:m==="HL"?j=X.HLContextLabel:j=X.LLAndLHContextsLabel,this.contextLabelTable=j;const H=y*v;this.neighborsSignificance=new Uint8Array(H),this.coefficentsSign=new Uint8Array(H);let J;A>14?J=new Uint32Array(H):A>6?J=new Uint16Array(H):J=new Uint8Array(H),this.coefficentsMagnitude=J,this.processingFlags=new Uint8Array(H);const oe=new Uint8Array(H);if(h!==0)for(let q=0;q<H;q++)oe[q]=h;this.bitsDecoded=oe,this.reset()}setDecoder(y){this.decoder=y}reset(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[X.UNIFORM_CONTEXT]=92,this.contexts[X.RUNLENGTH_CONTEXT]=6}setNeighborsSignificance(y,v,m){const h=this.neighborsSignificance,A=this.width,j=this.height,H=v>0,J=v+1<A;let oe;y>0&&(oe=m-A,H&&(h[oe-1]+=16),J&&(h[oe+1]+=16),h[oe]+=4),y+1<j&&(oe=m+A,H&&(h[oe-1]+=16),J&&(h[oe+1]+=16),h[oe]+=4),H&&(h[m-1]+=1),J&&(h[m+1]+=1),h[m]|=128}runSignificancePropagationPass(){const y=this.decoder,v=this.width,m=this.height,h=this.coefficentsMagnitude,A=this.coefficentsSign,j=this.neighborsSignificance,H=this.processingFlags,J=this.contexts,oe=this.contextLabelTable,q=this.bitsDecoded,re=-2,Z=1,K=2;for(let S=0;S<m;S+=4)for(let k=0;k<v;k++){let _=S*v+k;for(let G=0;G<4;G++,_+=v){const Q=S+G;if(Q>=m)break;if(H[_]&=re,h[_]||!j[_])continue;const ie=oe[j[_]];if(y.readBit(J,ie)){const U=this.decodeSignBit(Q,k,_);A[_]=U,h[_]=1,this.setNeighborsSignificance(Q,k,_),H[_]|=K}q[_]++,H[_]|=Z}}}decodeSignBit(y,v,m){const h=this.width,A=this.height,j=this.coefficentsMagnitude,H=this.coefficentsSign;let J,oe,q,re,Z,K;re=v>0&&j[m-1]!==0,v+1<h&&j[m+1]!==0?(q=H[m+1],re?(oe=H[m-1],J=1-q-oe):J=1-q-q):re?(oe=H[m-1],J=1-oe-oe):J=0;const S=3*J;return re=y>0&&j[m-h]!==0,y+1<A&&j[m+h]!==0?(q=H[m+h],re?(oe=H[m-h],J=1-q-oe+S):J=1-q-q+S):re?(oe=H[m-h],J=1-oe-oe+S):J=S,J>=0?(Z=9+J,K=this.decoder.readBit(this.contexts,Z)):(Z=9-J,K=this.decoder.readBit(this.contexts,Z)^1),K}runMagnitudeRefinementPass(){const y=this.decoder,v=this.width,m=this.height,h=this.coefficentsMagnitude,A=this.neighborsSignificance,j=this.contexts,H=this.bitsDecoded,J=this.processingFlags,oe=1,q=2,re=v*m,Z=v*4;for(let K=0,S;K<re;K=S){S=Math.min(re,K+Z);for(let k=0;k<v;k++)for(let _=K+k;_<S;_+=v){if(!h[_]||(J[_]&oe)!==0)continue;let G=16;(J[_]&q)!==0&&(J[_]^=q,G=(A[_]&127)===0?15:14);const Q=y.readBit(j,G);h[_]=h[_]<<1|Q,H[_]++,J[_]|=oe}}}runCleanupPass(){const y=this.decoder,v=this.width,m=this.height,h=this.neighborsSignificance,A=this.coefficentsMagnitude,j=this.coefficentsSign,H=this.contexts,J=this.contextLabelTable,oe=this.bitsDecoded,q=this.processingFlags,re=1,Z=2,K=v,S=v*2,k=v*3;let _;for(let G=0;G<m;G=_){_=Math.min(G+4,m);const Q=G*v,ie=G+3<m;for(let ae=0;ae<v;ae++){const U=Q+ae,ne=ie&&q[U]===0&&q[U+K]===0&&q[U+S]===0&&q[U+k]===0&&h[U]===0&&h[U+K]===0&&h[U+S]===0&&h[U+k]===0;let V=0,L=U,te=G,se;if(ne){if(!y.readBit(H,X.RUNLENGTH_CONTEXT)){oe[U]++,oe[U+K]++,oe[U+S]++,oe[U+k]++;continue}V=y.readBit(H,X.UNIFORM_CONTEXT)<<1|y.readBit(H,X.UNIFORM_CONTEXT),V!==0&&(te=G+V,L+=V*v),se=this.decodeSignBit(te,ae,L),j[L]=se,A[L]=1,this.setNeighborsSignificance(te,ae,L),q[L]|=Z,L=U;for(let ue=G;ue<=te;ue++,L+=v)oe[L]++;V++}for(te=G+V;te<_;te++,L+=v){if(A[L]||(q[L]&re)!==0)continue;const le=J[h[L]];y.readBit(H,le)===1&&(se=this.decodeSignBit(te,ae,L),j[L]=se,A[L]=1,this.setNeighborsSignificance(te,ae,L),q[L]|=Z),oe[L]++}}}}checkSegmentationSymbol(){const y=this.decoder,v=this.contexts;if((y.readBit(v,X.UNIFORM_CONTEXT)<<3|y.readBit(v,X.UNIFORM_CONTEXT)<<2|y.readBit(v,X.UNIFORM_CONTEXT)<<1|y.readBit(v,X.UNIFORM_CONTEXT))!==10)throw new e("Invalid segmentation symbol")}};let u=X;_t(u,"UNIFORM_CONTEXT",17),_t(u,"RUNLENGTH_CONTEXT",18),_t(u,"LLAndLHContextsLabel",new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8])),_t(u,"HLContextLabel",new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8])),_t(u,"HHContextLabel",new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]));class C{constructor(){this.constructor===C&&(0,n.unreachable)("Cannot initialize Transform.")}calculate(y,v,m){let h=y[0];for(let A=1,j=y.length;A<j;A++)h=this.iterate(h,y[A],v,m);return h}extend(y,v,m){let h=v-1,A=v+1,j=v+m-2,H=v+m;y[h--]=y[A++],y[H++]=y[j--],y[h--]=y[A++],y[H++]=y[j--],y[h--]=y[A++],y[H++]=y[j--],y[h]=y[A],y[H]=y[j]}filter(y,v,m){(0,n.unreachable)("Abstract method `filter` called")}iterate(y,v,m,h){const A=y.width,j=y.height;let H=y.items;const J=v.width,oe=v.height,q=v.items;let re,Z,K,S,k,_;for(K=0,re=0;re<j;re++)for(S=re*2*J,Z=0;Z<A;Z++,K++,S+=2)q[S]=H[K];H=y.items=null;const G=4,Q=new Float32Array(J+2*G);if(J===1){if((m&1)!==0)for(_=0,K=0;_<oe;_++,K+=J)q[K]*=.5}else for(_=0,K=0;_<oe;_++,K+=J)Q.set(q.subarray(K,K+J),G),this.extend(Q,G,J),this.filter(Q,G,J),q.set(Q.subarray(G,G+J),K);let ie=16;const ae=[];for(re=0;re<ie;re++)ae.push(new Float32Array(oe+2*G));let U,ne=0;if(y=G+oe,oe===1){if((h&1)!==0)for(k=0;k<J;k++)q[k]*=.5}else for(k=0;k<J;k++){if(ne===0){for(ie=Math.min(J-k,ie),K=k,S=G;S<y;K+=J,S++)for(U=0;U<ie;U++)ae[U][S]=q[K+U];ne=ie}ne--;const V=ae[ne];if(this.extend(V,G,oe),this.filter(V,G,oe),ne===0)for(K=k-ie+1,S=G;S<y;K+=J,S++)for(U=0;U<ie;U++)q[K+U]=ae[U][S]}return{width:J,height:oe,items:q}}}class g extends C{filter(y,v,m){const h=m>>1;v|=0;let A,j,H,J;const oe=-1.586134342059924,q=-.052980118572961,re=.882911075530934,Z=.443506852043971,K=1.230174104914001,S=1/K;for(A=v-3,j=h+4;j--;A+=2)y[A]*=S;for(A=v-2,H=Z*y[A-1],j=h+3;j--&&(J=Z*y[A+1],y[A]=K*y[A]-H-J,j--);A+=2)A+=2,H=Z*y[A+1],y[A]=K*y[A]-H-J;for(A=v-1,H=re*y[A-1],j=h+2;j--&&(J=re*y[A+1],y[A]-=H+J,j--);A+=2)A+=2,H=re*y[A+1],y[A]-=H+J;for(A=v,H=q*y[A-1],j=h+1;j--&&(J=q*y[A+1],y[A]-=H+J,j--);A+=2)A+=2,H=q*y[A+1],y[A]-=H+J;if(h!==0)for(A=v+1,H=oe*y[A-1],j=h;j--&&(J=oe*y[A+1],y[A]-=H+J,j--);A+=2)A+=2,H=oe*y[A+1],y[A]-=H+J}}class p extends C{filter(y,v,m){const h=m>>1;v|=0;let A,j;for(A=v,j=h+1;j--;A+=2)y[A]-=y[A-1]+y[A+1]+2>>2;for(A=v+1,j=h;j--;A+=2)y[A]+=y[A-1]+y[A+1]>>1}}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.LZWStream=void 0;var n=ce(18);class P extends n.DecodeStream{constructor(e,t,c){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;const Y=4096,ee={earlyChange:c,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(Y),dictionaryLengths:new Uint16Array(Y),dictionaryPrevCodes:new Uint16Array(Y),currentSequence:new Uint8Array(Y),currentSequenceLength:0};for(let N=0;N<256;++N)ee.dictionaryValues[N]=N,ee.dictionaryLengths[N]=1;this.lzwState=ee}readBits(e){let t=this.bitsCached,c=this.cachedData;for(;t<e;){const Y=this.str.getByte();if(Y===-1)return this.eof=!0,null;c=c<<8|Y,t+=8}return this.bitsCached=t-=e,this.cachedData=c,this.lastCode=null,c>>>t&(1<<e)-1}readBlock(){let c=1024,Y,ee,N;const I=this.lzwState;if(!I)return;const f=I.earlyChange;let x=I.nextCode;const a=I.dictionaryValues,E=I.dictionaryLengths,w=I.dictionaryPrevCodes;let O=I.codeLength,M=I.prevCode;const B=I.currentSequence;let z=I.currentSequenceLength,W=0,d=this.bufferLength,T=this.ensureBuffer(this.bufferLength+c);for(Y=0;Y<512;Y++){const o=this.readBits(O),l=z>0;if(o<256)B[0]=o,z=1;else if(o>=258)if(o<x)for(z=E[o],ee=z-1,N=o;ee>=0;ee--)B[ee]=a[N],N=w[N];else B[z++]=B[0];else if(o===256){O=9,x=258,z=0;continue}else{this.eof=!0,delete this.lzwState;break}if(l&&(w[x]=M,E[x]=E[M]+1,a[x]=B[0],x++,O=x+f&x+f-1?O:Math.min(Math.log(x+f)/.6931471805599453+1,12)|0),M=o,W+=z,c<W){do c+=512;while(c<W);T=this.ensureBuffer(this.bufferLength+c)}for(ee=0;ee<z;ee++)T[d++]=B[ee]}I.nextCode=x,I.codeLength=O,I.prevCode=M,I.currentSequenceLength=z,this.bufferLength=d}}b.LZWStream=P},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.PredictorStream=void 0;var n=ce(18),P=ce(4),D=ce(2);class e extends n.DecodeStream{constructor(c,Y,ee){if(super(Y),!(ee instanceof P.Dict))return c;const N=this.predictor=ee.get("Predictor")||1;if(N<=1)return c;if(N!==2&&(N<10||N>15))throw new D.FormatError(`Unsupported predictor: ${N}`);this.readBlock=N===2?this.readBlockTiff:this.readBlockPng,this.str=c,this.dict=c.dict;const I=this.colors=ee.get("Colors")||1,f=this.bits=ee.get("BPC","BitsPerComponent")||8,x=this.columns=ee.get("Columns")||1;return this.pixBytes=I*f+7>>3,this.rowBytes=x*I*f+7>>3,this}readBlockTiff(){const c=this.rowBytes,Y=this.bufferLength,ee=this.ensureBuffer(Y+c),N=this.bits,I=this.colors,f=this.str.getBytes(c);if(this.eof=!f.length,this.eof)return;let x=0,a=0,E=0,w=0,O=Y,M;if(N===1&&I===1)for(M=0;M<c;++M){let B=f[M]^x;B^=B>>1,B^=B>>2,B^=B>>4,x=(B&1)<<7,ee[O++]=B}else if(N===8){for(M=0;M<I;++M)ee[O++]=f[M];for(;M<c;++M)ee[O]=ee[O-I]+f[M],O++}else if(N===16){const B=I*2;for(M=0;M<B;++M)ee[O++]=f[M];for(;M<c;M+=2){const z=((f[M]&255)<<8)+(f[M+1]&255)+((ee[O-B]&255)<<8)+(ee[O-B+1]&255);ee[O++]=z>>8&255,ee[O++]=z&255}}else{const B=new Uint8Array(I+1),z=(1<<N)-1;let W=0,d=Y;const T=this.columns;for(M=0;M<T;++M)for(let o=0;o<I;++o)E<N&&(x=x<<8|f[W++]&255,E+=8),B[o]=B[o]+(x>>E-N)&z,E-=N,a=a<<N|B[o],w+=N,w>=8&&(ee[d++]=a>>w-8&255,w-=8);w>0&&(ee[d++]=(a<<8-w)+(x&(1<<8-w)-1))}this.bufferLength+=c}readBlockPng(){const c=this.rowBytes,Y=this.pixBytes,ee=this.str.getByte(),N=this.str.getBytes(c);if(this.eof=!N.length,this.eof)return;const I=this.bufferLength,f=this.ensureBuffer(I+c);let x=f.subarray(I-c,I);x.length===0&&(x=new Uint8Array(c));let a,E=I,w,O;switch(ee){case 0:for(a=0;a<c;++a)f[E++]=N[a];break;case 1:for(a=0;a<Y;++a)f[E++]=N[a];for(;a<c;++a)f[E]=f[E-Y]+N[a]&255,E++;break;case 2:for(a=0;a<c;++a)f[E++]=x[a]+N[a]&255;break;case 3:for(a=0;a<Y;++a)f[E++]=(x[a]>>1)+N[a];for(;a<c;++a)f[E]=(x[a]+f[E-Y]>>1)+N[a]&255,E++;break;case 4:for(a=0;a<Y;++a)w=x[a],O=N[a],f[E++]=w+O;for(;a<c;++a){w=x[a];const M=x[a-Y],B=f[E-Y],z=B+w-M;let W=z-B;W<0&&(W=-W);let d=z-w;d<0&&(d=-d);let T=z-M;T<0&&(T=-T),O=N[a],W<=d&&W<=T?f[E++]=B+O:d<=T?f[E++]=w+O:f[E++]=M+O}break;default:throw new D.FormatError(`Unsupported predictor: ${ee}`)}this.bufferLength+=c}}b.PredictorStream=e},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.RunLengthStream=void 0;var n=ce(18);class P extends n.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){const e=this.str.getBytes(2);if(!e||e.length<2||e[0]===128){this.eof=!0;return}let t,c=this.bufferLength,Y=e[0];if(Y<128){if(t=this.ensureBuffer(c+Y+1),t[c++]=e[1],Y>0){const ee=this.str.getBytes(Y);t.set(ee,c),c+=Y}}else{Y=257-Y;const ee=e[1];t=this.ensureBuffer(c+Y+1);for(let N=0;N<Y;N++)t[c++]=ee}this.bufferLength=c}}b.RunLengthStream=P},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Font=b.ErrorFont=void 0;var n=ce(2),P=ce(35),D=ce(38),e=ce(40),t=ce(39),c=ce(37),Y=ce(41),ee=ce(42),N=ce(43),I=ce(44),f=ce(45),x=ce(46),a=ce(14),E=ce(47),w=ce(3),O=ce(8),M=ce(48);const B=[[57344,63743],[1048576,1114109]],z=1e3,W=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","systemFontInfo","type","vertical"],d=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function T(U){if(!U.fontMatrix||U.fontMatrix[0]===n.FONT_IDENTITY_MATRIX[0])return;const ne=.001/U.fontMatrix[0],V=U.widths;for(const L in V)V[L]*=ne;U.defaultWidth*=ne}function o(U,ne,V){if(U.isInternalFont||U.hasIncludedToUnicodeMap||U.hasEncoding||U.toUnicode instanceof ee.IdentityToUnicodeMap||!ne||V.length===0||U.defaultEncoding===c.WinAnsiEncoding)return;for(const le of V)if(!oe(le))return;const L=c.WinAnsiEncoding,te=[],se=(0,t.getGlyphsUnicode)();for(const le in L){const ue=L[le];if(ue==="")continue;const fe=se[ue];fe!==void 0&&(te[le]=String.fromCharCode(fe))}te.length>0&&U.toUnicode.amend(te)}function l(U,ne){if(U.isInternalFont||U.hasIncludedToUnicodeMap||ne===U.defaultEncoding||U.toUnicode instanceof ee.IdentityToUnicodeMap)return;const V=[],L=(0,t.getGlyphsUnicode)();for(const te in ne){if(U.hasEncoding&&(U.baseEncodingName||U.differences[te]!==void 0))continue;const se=ne[te],le=(0,e.getUnicodeForGlyph)(se,L);le!==-1&&(V[te]=String.fromCharCode(le))}V.length>0&&U.toUnicode.amend(V)}function F(U){if(!U.fallbackToUnicode||U.toUnicode instanceof ee.IdentityToUnicodeMap)return;const ne=[];for(const V in U.fallbackToUnicode)U.toUnicode.has(V)||(ne[V]=U.fallbackToUnicode[V]);ne.length>0&&U.toUnicode.amend(ne)}class s{constructor(ne,V,L,te,se,le,ue,fe,ge){this.originalCharCode=ne,this.fontChar=V,this.unicode=L,this.accent=te,this.width=se,this.vmetric=le,this.operatorListId=ue,this.isSpace=fe,this.isInFont=ge}get category(){return(0,n.shadow)(this,"category",(0,e.getCharUnicodeCategory)(this.unicode),!0)}}function r(U,ne){return(U<<8)+ne}function u(U,ne,V){U[ne+1]=V,U[ne]=V>>>8}function C(U,ne){const V=(U<<8)+ne;return V&32768?V-65536:V}function g(U,ne,V,L){return(U<<24)+(ne<<16)+(V<<8)+L}function p(U){return String.fromCharCode(U>>8&255,U&255)}function X(U){return U>32767?U=32767:U<-32768&&(U=-32768),String.fromCharCode(U>>8&255,U&255)}function $(U){const ne=U.peekBytes(4);return(0,w.readUint32)(ne,0)===65536||(0,n.bytesToString)(ne)==="true"}function y(U){const ne=U.peekBytes(4);return(0,n.bytesToString)(ne)==="ttcf"}function v(U){const ne=U.peekBytes(4);return(0,n.bytesToString)(ne)==="OTTO"}function m(U){const ne=U.peekBytes(2);return ne[0]===37&&ne[1]===33||ne[0]===128&&ne[1]===1}function h(U){const ne=U.peekBytes(4);return ne[0]>=1&&ne[3]>=1&&ne[3]<=4}function A(U,{type:ne,subtype:V,composite:L}){let te,se;return $(U)||y(U)?te=L?"CIDFontType2":"TrueType":v(U)?te=L?"CIDFontType2":"OpenType":m(U)?L?te="CIDFontType0":te=ne==="MMType1"?"MMType1":"Type1":h(U)?L?(te="CIDFontType0",se="CIDFontType0C"):(te=ne==="MMType1"?"MMType1":"Type1",se="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),te=ne,se=V),[te,se]}function j(U,ne){for(const V in ne)U[+V]=ne[V]}function H(U,ne,V){const L=[];let te;for(let se=0,le=U.length;se<le;se++)te=(0,e.getUnicodeForGlyph)(U[se],ne),te!==-1&&(L[se]=te);for(const se in V)te=(0,e.getUnicodeForGlyph)(V[se],ne),te!==-1&&(L[+se]=te);return L}function J(U){return U.platform===1&&U.encoding===0&&U.language===0}function oe(U){return U.platform===3&&U.encoding===1&&U.language===1033}function q(U,ne,V=!1){switch(ne.length){case 1:return ne.charCodeAt(0);case 2:return ne.charCodeAt(0)<<8|ne.charCodeAt(1)}const L=`Unsupported CID string (charCode ${U}): "${ne}".`;if(V)throw new n.FormatError(L);return(0,n.warn)(L),ne}function re(U,ne,V,L){const te=Object.create(null),se=new Map,le=[],ue=new Set;let fe=0,xe=B[fe][0],me=B[fe][1];const be=ye=>B[0][0]<=ye&&ye<=B[0][1]||B[1][0]<=ye&&ye<=B[1][1];for(let ye in U){ye|=0;let Se=U[ye];if(!ne(Se))continue;if(xe>me){if(fe++,fe>=B.length){(0,n.warn)("Ran out of space in font private use area.");break}xe=B[fe][0],me=B[fe][1]}const pe=xe++;Se===0&&(Se=V);let he=L.get(ye);typeof he=="string"&&(he=he.codePointAt(0)),he&&!be(he)&&!ue.has(Se)&&(se.set(he,Se),ue.add(Se)),te[pe]=Se,le[ye]=pe}return{toFontChar:le,charCodeToGlyphId:te,toUnicodeExtraMap:se,nextAvailableFontCharCode:xe}}function Z(U,ne,V){const L=[];for(const le in U)U[le]>=V||L.push({fontCharCode:le|0,glyphId:U[le]});if(ne)for(const[le,ue]of ne)ue>=V||L.push({fontCharCode:le,glyphId:ue});L.length===0&&L.push({fontCharCode:0,glyphId:0}),L.sort(function(ue,fe){return ue.fontCharCode-fe.fontCharCode});const te=[],se=L.length;for(let le=0;le<se;){const ue=L[le].fontCharCode,fe=[L[le].glyphId];++le;let ge=ue;for(;le<se&&ge+1===L[le].fontCharCode&&(fe.push(L[le].glyphId),++ge,++le,ge!==65535););te.push([ue,ge,fe])}return te}function K(U,ne,V){const L=Z(U,ne,V),te=L.at(-1)[1]>65535?2:1;let se="\0\0"+p(te)+"\0\0"+(0,n.string32)(4+te*8),le,ue,fe,ge;for(le=L.length-1;le>=0&&!(L[le][0]<=65535);--le);const xe=le+1;L[le][0]<65535&&L[le][1]===65535&&(L[le][1]=65534);const me=L[le][1]<65535?1:0,be=xe+me,ye=E.OpenTypeFileBuilder.getSearchParams(be,2);let Se="",pe="",he="",de="",Ce="",we=0,Le,Be,at,Oe;for(le=0,ue=xe;le<ue;le++){Le=L[le],Be=Le[0],at=Le[1],Se+=p(Be),pe+=p(at),Oe=Le[2];let qe=!0;for(fe=1,ge=Oe.length;fe<ge;++fe)if(Oe[fe]!==Oe[fe-1]+1){qe=!1;break}if(qe){const gt=Oe[0];he+=p(gt-Be&65535),de+=p(0)}else{const gt=(be-le)*2+we*2;for(we+=at-Be+1,he+=p(0),de+=p(gt),fe=0,ge=Oe.length;fe<ge;++fe)Ce+=p(Oe[fe])}}me>0&&(pe+="\xFF\xFF",Se+="\xFF\xFF",he+="\0",de+="\0\0");const Ze="\0\0"+p(2*be)+p(ye.range)+p(ye.entry)+p(ye.rangeShift)+pe+"\0\0"+Se+he+de+Ce;let Ke="",Pe="";if(te>1){for(se+=`\0\0
- `+(0,n.string32)(4+te*8+4+Ze.length),Ke="",le=0,ue=L.length;le<ue;le++){Le=L[le],Be=Le[0],Oe=Le[2];let qe=Oe[0];for(fe=1,ge=Oe.length;fe<ge;++fe)Oe[fe]!==Oe[fe-1]+1&&(at=Le[0]+fe-1,Ke+=(0,n.string32)(Be)+(0,n.string32)(at)+(0,n.string32)(qe),Be=at+1,qe=Oe[fe]);Ke+=(0,n.string32)(Be)+(0,n.string32)(Le[1])+(0,n.string32)(qe)}Pe="\0\f\0\0"+(0,n.string32)(Ke.length+16)+"\0\0\0\0"+(0,n.string32)(Ke.length/12)}return se+"\0"+p(Ze.length+4)+Ze+Pe+Ke}function S(U,ne){ne.pos=(ne.start||0)+U.offset;const V=ne.getUint16();ne.skip(60);const L=ne.getUint16();if(V<4&&L&768)return!1;const te=ne.getUint16(),se=ne.getUint16();return te>se||(ne.skip(6),ne.getUint16()===0)?!1:(U.data[8]=U.data[9]=0,!0)}function k(U,ne,V){V||(V={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0});let L=0,te=0,se=0,le=0,ue=null,fe=0,ge=-1;if(ne){for(let de in ne)if(de|=0,(ue>de||!ue)&&(ue=de),fe<de&&(fe=de),ge=(0,e.getUnicodeRangeFor)(de,ge),ge<32)L|=1<<ge;else if(ge<64)te|=1<<ge-32;else if(ge<96)se|=1<<ge-64;else if(ge<123)le|=1<<ge-96;else throw new n.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");fe>65535&&(fe=65535)}else ue=0,fe=255;const xe=U.bbox||[0,0,0,0],me=V.unitsPerEm||1/(U.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],be=U.ascentScaled?1:me/z,ye=V.ascent||Math.round(be*(U.ascent||xe[3]));let Se=V.descent||Math.round(be*(U.descent||xe[1]));Se>0&&U.descent>0&&xe[1]<0&&(Se=-Se);const pe=V.yMax||ye,he=-V.yMin||-Se;return"\0$\xF4\0\0\0\x8A\xBB\0\0\0\x8C\x8A\xBB\0\0\xDF\x001\0\0\0\0"+String.fromCharCode(U.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(L)+(0,n.string32)(te)+(0,n.string32)(se)+(0,n.string32)(le)+"*21*"+p(U.italicAngle?1:0)+p(ue||U.firstChar)+p(fe||U.lastChar)+p(ye)+p(Se)+"\0d"+p(pe)+p(he)+"\0\0\0\0\0\0\0\0"+p(U.xHeight)+p(U.capHeight)+p(0)+p(ue||U.firstChar)+"\0"}function _(U){const ne=Math.floor(U.italicAngle*65536);return"\0\0\0"+(0,n.string32)(ne)+"\0\0\0\0"+(0,n.string32)(U.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function G(U){return U.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function Q(U,ne){ne||(ne=[[],[]]);const V=[ne[0][0]||"Original licence",ne[0][1]||U,ne[0][2]||"Unknown",ne[0][3]||"uniqueID",ne[0][4]||U,ne[0][5]||"Version 0.11",ne[0][6]||G(U),ne[0][7]||"Unknown",ne[0][8]||"Unknown",ne[0][9]||"Unknown"],L=[];let te,se,le,ue,fe;for(te=0,se=V.length;te<se;te++){fe=ne[1][te]||V[te];const he=[];for(le=0,ue=fe.length;le<ue;le++)he.push(p(fe.charCodeAt(le)));L.push(he.join(""))}const ge=[V,L],xe=["\0","\0"],me=["\0\0","\0"],be=["\0\0"," "],ye=V.length*xe.length;let Se="\0\0"+p(ye)+p(ye*12+6),pe=0;for(te=0,se=xe.length;te<se;te++){const he=ge[te];for(le=0,ue=he.length;le<ue;le++){fe=he[le];const de=xe[te]+me[te]+be[te]+p(le)+p(fe.length)+p(pe);Se+=de,pe+=fe.length}}return Se+=V.join("")+L.join(""),Se}class ie{constructor(ne,V,L){var ge;this.name=ne,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=L.loadedName,this.isType3Font=L.isType3Font,this.missingFile=!1,this.cssFontInfo=L.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let te=!!(L.flags&D.FontFlags.Serif);if(!te&&!L.isSimulatedFlags){const xe=ne.replaceAll(/[,_]/g,"-").split("-")[0],me=(0,Y.getSerifFonts)();for(const be of xe.split("+"))if(me[be]){te=!0;break}}this.isSerifFont=te,this.isSymbolicFont=!!(L.flags&D.FontFlags.Symbolic),this.isMonospace=!!(L.flags&D.FontFlags.FixedPitch);let{type:se,subtype:le}=L;this.type=se,this.subtype=le,this.systemFontInfo=L.systemFontInfo;const ue=ne.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!ue,this.isInvalidPDFjsFont?this.fallbackName=ue[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",(ge=this.systemFontInfo)!=null&&ge.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=`,${this.fallbackName}`),this.differences=L.differences,this.widths=L.widths,this.defaultWidth=L.defaultWidth,this.composite=L.composite,this.cMap=L.cMap,this.capHeight=L.capHeight/z,this.ascent=L.ascent/z,this.descent=L.descent/z,this.lineHeight=this.ascent-this.descent,this.fontMatrix=L.fontMatrix,this.bbox=L.bbox,this.defaultEncoding=L.defaultEncoding,this.toUnicode=L.toUnicode,this.toFontChar=[],L.type==="Type3"){for(let xe=0;xe<256;xe++)this.toFontChar[xe]=this.differences[xe]||L.defaultEncoding[xe];return}if(this.cidEncoding=L.cidEncoding||"",this.vertical=!!L.vertical,this.vertical&&(this.vmetrics=L.vmetrics,this.defaultVMetrics=L.defaultVMetrics),!V||V.isEmpty){V&&(0,n.warn)('Font file is empty in "'+ne+'" ('+this.loadedName+")"),this.fallbackToSystemFont(L);return}[se,le]=A(V,L),(se!==this.type||le!==this.subtype)&&(0,n.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${se}/${le}.`);let fe;try{switch(se){case"MMType1":(0,n.info)("MMType1 font ("+ne+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const xe=le==="Type1C"||le==="CIDFontType0C"?new N.CFFFont(V,L):new M.Type1Font(ne,V,L);T(L),fe=this.convert(ne,xe,L);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",fe=this.checkAndRepair(ne,V,L),this.isOpenType&&(T(L),se="OpenType");break;default:throw new n.FormatError(`Font ${se} is not supported`)}}catch(xe){(0,n.warn)(xe),this.fallbackToSystemFont(L);return}F(L),this.data=fe,this.type=se,this.subtype=le,this.fontMatrix=L.fontMatrix,this.widths=L.widths,this.defaultWidth=L.defaultWidth,this.toUnicode=L.toUnicode,this.seacMap=L.seacMap}get renderer(){const ne=I.FontRendererFactory.create(this,D.SEAC_ANALYSIS_ENABLED);return(0,n.shadow)(this,"renderer",ne)}exportData(ne=!1){const V=ne?[...W,...d]:W,L=Object.create(null);let te,se;for(te of V)se=this[te],se!==void 0&&(L[te]=se);return L}fallbackToSystemFont(ne){this.missingFile=!0;const{name:V,type:L}=this;let te=(0,D.normalizeFontName)(V);const se=(0,Y.getStdFontMap)(),le=(0,Y.getNonStdFontMap)(),ue=!!se[te],fe=!!(le[te]&&se[le[te]]);te=se[te]||le[te]||te;const xe=(0,f.getFontBasicMetrics)()[te];xe&&(isNaN(this.ascent)&&(this.ascent=xe.ascent/z),isNaN(this.descent)&&(this.descent=xe.descent/z),isNaN(this.capHeight)&&(this.capHeight=xe.capHeight/z)),this.bold=/bold/gi.test(te),this.italic=/oblique|italic/gi.test(te),this.black=/Black/g.test(V);const me=/Narrow/g.test(V);if(this.remeasure=(!ue||me)&&Object.keys(this.widths).length>0,(ue||fe)&&L==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const be=ne.cidToGidMap,ye=[];if(j(ye,(0,Y.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(V)?j(ye,(0,Y.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(V)&&j(ye,(0,Y.getSupplementalGlyphMapForCalibri)()),be){for(const Se in ye){const pe=ye[Se];be[pe]!==void 0&&(ye[+Se]=be[pe])}be.length!==this.toUnicode.length&&ne.hasIncludedToUnicodeMap&&this.toUnicode instanceof ee.IdentityToUnicodeMap&&this.toUnicode.forEach(function(Se,pe){const he=ye[Se];be[he]===void 0&&(ye[+Se]=pe)})}this.toUnicode instanceof ee.IdentityToUnicodeMap||this.toUnicode.forEach(function(Se,pe){ye[+Se]=pe}),this.toFontChar=ye,this.toUnicode=new ee.ToUnicodeMap(ye)}else if(/Symbol/i.test(te))this.toFontChar=H(c.SymbolSetEncoding,(0,t.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(te))this.toFontChar=H(c.ZapfDingbatsEncoding,(0,t.getDingbatsGlyphsUnicode)(),this.differences);else if(ue){const be=H(this.defaultEncoding,(0,t.getGlyphsUnicode)(),this.differences);L==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof ee.IdentityToUnicodeMap)&&this.toUnicode.forEach(function(ye,Se){be[+ye]=Se}),this.toFontChar=be}else{const be=(0,t.getGlyphsUnicode)(),ye=[];this.toUnicode.forEach((Se,pe)=>{if(!this.composite){const he=this.differences[Se]||this.defaultEncoding[Se],de=(0,e.getUnicodeForGlyph)(he,be);de!==-1&&(pe=de)}ye[+Se]=pe}),this.composite&&this.toUnicode instanceof ee.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(V)&&j(ye,(0,Y.getGlyphMapForStandardFonts)()),this.toFontChar=ye}F(ne),this.loadedName=te.split("-")[0]}checkAndRepair(ne,V,L){var ut,Bt,Xt;const te=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function se(Ie,Fe){const Me=Object.create(null);Me["OS/2"]=null,Me.cmap=null,Me.head=null,Me.hhea=null,Me.hmtx=null,Me.maxp=null,Me.name=null,Me.post=null;for(let Ne=0;Ne<Fe;Ne++){const je=le(Ie);!te.includes(je.tag)||je.length!==0&&(Me[je.tag]=je)}return Me}function le(Ie){const Fe=Ie.getString(4),Me=Ie.getInt32()>>>0,Ne=Ie.getInt32()>>>0,je=Ie.getInt32()>>>0,tt=Ie.pos;Ie.pos=Ie.start||0,Ie.skip(Ne);const $e=Ie.getBytes(je);return Ie.pos=tt,Fe==="head"&&($e[8]=$e[9]=$e[10]=$e[11]=0,$e[17]|=32),{tag:Fe,checksum:Me,length:je,offset:Ne,data:$e}}function ue(Ie){return{version:Ie.getString(4),numTables:Ie.getUint16(),searchRange:Ie.getUint16(),entrySelector:Ie.getUint16(),rangeShift:Ie.getUint16()}}function fe(Ie){const Fe=Ie.getString(4);(0,n.assert)(Fe==="ttcf","Must be a TrueType Collection font.");const Me=Ie.getUint16(),Ne=Ie.getUint16(),je=Ie.getInt32()>>>0,tt=[];for(let Ee=0;Ee<je;Ee++)tt.push(Ie.getInt32()>>>0);const $e={ttcTag:Fe,majorVersion:Me,minorVersion:Ne,numFonts:je,offsetTable:tt};switch(Me){case 1:return $e;case 2:return $e.dsigTag=Ie.getInt32()>>>0,$e.dsigLength=Ie.getInt32()>>>0,$e.dsigOffset=Ie.getInt32()>>>0,$e}throw new n.FormatError(`Invalid TrueType Collection majorVersion: ${Me}.`)}function ge(Ie,Fe){var $e;const{numFonts:Me,offsetTable:Ne}=fe(Ie),je=Fe.split("+");let tt;for(let Ee=0;Ee<Me;Ee++){Ie.pos=(Ie.start||0)+Ne[Ee];const ze=ue(Ie),ot=se(Ie,ze.numTables);if(!ot.name)throw new n.FormatError('TrueType Collection font must contain a "name" table.');const[pt]=he(ot.name);for(let nt=0,it=pt.length;nt<it;nt++)for(let dt=0,Ve=pt[nt].length;dt<Ve;dt++){const ct=($e=pt[nt][dt])==null?void 0:$e.replaceAll(/\s/g,"");if(!!ct){if(ct===Fe)return{header:ze,tables:ot};if(!(je.length<2))for(const He of je)ct===He&&(tt={name:He,header:ze,tables:ot})}}}if(tt)return(0,n.warn)(`TrueType Collection does not contain "${Fe}" font, falling back to "${tt.name}" font instead.`),{header:tt.header,tables:tt.tables};throw new n.FormatError(`TrueType Collection does not contain "${Fe}" font.`)}function xe(Ie,Fe,Me,Ne){if(!Ie)return(0,n.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let je,tt=(Fe.start||0)+Ie.offset;Fe.pos=tt,Fe.skip(2);const $e=Fe.getUint16();let Ee,ze=!1;for(let Ve=0;Ve<$e;Ve++){const ct=Fe.getUint16(),He=Fe.getUint16(),ft=Fe.getInt32()>>>0;let bt=!1;if(!((Ee==null?void 0:Ee.platformId)===ct&&(Ee==null?void 0:Ee.encodingId)===He)){if(ct===0&&(He===0||He===1||He===3))bt=!0;else if(ct===1&&He===0)bt=!0;else if(ct===3&&He===1&&(Ne||!Ee))bt=!0,Me||(ze=!0);else if(Me&&ct===3&&He===0){bt=!0;let Ut=!0;if(Ve<$e-1){const lt=Fe.peekBytes(2);r(lt[0],lt[1])<ct&&(Ut=!1)}Ut&&(ze=!0)}if(bt&&(Ee={platformId:ct,encodingId:He,offset:ft}),ze)break}}if(Ee&&(Fe.pos=tt+Ee.offset),!Ee||Fe.peekByte()===-1)return(0,n.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};const ot=Fe.getUint16();let pt=!1;const nt=[];let it,dt;if(ot===0){for(Fe.skip(4),it=0;it<256;it++){const Ve=Fe.getByte();!Ve||nt.push({charCode:it,glyphId:Ve})}pt=!0}else if(ot===2){Fe.skip(4);const Ve=[];let ct=0;for(let ft=0;ft<256;ft++){const bt=Fe.getUint16()>>3;Ve.push(bt),ct=Math.max(bt,ct)}const He=[];for(let ft=0;ft<=ct;ft++)He.push({firstCode:Fe.getUint16(),entryCount:Fe.getUint16(),idDelta:C(Fe.getByte(),Fe.getByte()),idRangePos:Fe.pos+Fe.getUint16()});for(let ft=0;ft<256;ft++)if(Ve[ft]===0)Fe.pos=He[0].idRangePos+2*ft,dt=Fe.getUint16(),nt.push({charCode:ft,glyphId:dt});else{const bt=He[Ve[ft]];for(it=0;it<bt.entryCount;it++){const Ut=(ft<<8)+it+bt.firstCode;Fe.pos=bt.idRangePos+2*it,dt=Fe.getUint16(),dt!==0&&(dt=(dt+bt.idDelta)%65536),nt.push({charCode:Ut,glyphId:dt})}}}else if(ot===4){Fe.skip(4);const Ve=Fe.getUint16()>>1;Fe.skip(6);const ct=[];let He;for(He=0;He<Ve;He++)ct.push({end:Fe.getUint16()});for(Fe.skip(2),He=0;He<Ve;He++)ct[He].start=Fe.getUint16();for(He=0;He<Ve;He++)ct[He].delta=Fe.getUint16();let ft=0,bt;for(He=0;He<Ve;He++){je=ct[He];const lt=Fe.getUint16();if(!lt){je.offsetIndex=-1;continue}bt=(lt>>1)-(Ve-He),je.offsetIndex=bt,ft=Math.max(ft,bt+je.end-je.start+1)}const Ut=[];for(it=0;it<ft;it++)Ut.push(Fe.getUint16());for(He=0;He<Ve;He++){je=ct[He],tt=je.start;const lt=je.end,ht=je.delta;for(bt=je.offsetIndex,it=tt;it<=lt;it++)it!==65535&&(dt=bt<0?it:Ut[bt+it-tt],dt=dt+ht&65535,nt.push({charCode:it,glyphId:dt}))}}else if(ot===6){Fe.skip(4);const Ve=Fe.getUint16(),ct=Fe.getUint16();for(it=0;it<ct;it++){dt=Fe.getUint16();const He=Ve+it;nt.push({charCode:He,glyphId:dt})}}else if(ot===12){Fe.skip(10);const Ve=Fe.getInt32()>>>0;for(it=0;it<Ve;it++){const ct=Fe.getInt32()>>>0,He=Fe.getInt32()>>>0;let ft=Fe.getInt32()>>>0;for(let bt=ct;bt<=He;bt++)nt.push({charCode:bt,glyphId:ft++})}}else return(0,n.warn)("cmap table has unsupported format: "+ot),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};nt.sort(function(Ve,ct){return Ve.charCode-ct.charCode});for(let Ve=1;Ve<nt.length;Ve++)nt[Ve-1].charCode===nt[Ve].charCode&&(nt.splice(Ve,1),Ve--);return{platformId:Ee.platformId,encodingId:Ee.encodingId,mappings:nt,hasShortCmap:pt}}function me(Ie,Fe,Me,Ne,je,tt){if(!Fe){Me&&(Me.data=null);return}Ie.pos=(Ie.start||0)+Fe.offset,Ie.pos+=4,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2,Ie.pos+=2;const $e=Ie.getUint16();Ie.pos+=8,Ie.pos+=2;let Ee=Ie.getUint16();$e!==0&&(r(Ne.data[44],Ne.data[45])&2||(Fe.data[22]=0,Fe.data[23]=0)),Ee>je&&((0,n.info)(`The numOfMetrics (${Ee}) should not be greater than the numGlyphs (${je}).`),Ee=je,Fe.data[34]=(Ee&65280)>>8,Fe.data[35]=Ee&255);const ot=je-Ee-(Me.length-Ee*4>>1);if(ot>0){const pt=new Uint8Array(Me.length+ot*2);pt.set(Me.data),tt&&(pt[Me.length]=Me.data[2],pt[Me.length+1]=Me.data[3]),Me.data=pt}}function be(Ie,Fe,Me,Ne,je,tt){const $e={length:0,sizeOfInstructions:0};if(Fe<0||Fe>=Ie.length||Me>Ie.length||Me-Fe<=12)return $e;const Ee=Ie.subarray(Fe,Me),ze=C(Ee[2],Ee[3]),ot=C(Ee[4],Ee[5]),pt=C(Ee[6],Ee[7]),nt=C(Ee[8],Ee[9]);ze>pt&&(u(Ee,2,pt),u(Ee,6,ze)),ot>nt&&(u(Ee,4,nt),u(Ee,8,ot));const it=C(Ee[0],Ee[1]);if(it<0)return it<-1||(Ne.set(Ee,je),$e.length=Ee.length),$e;let dt,Ve=10,ct=0;for(dt=0;dt<it;dt++)ct=(Ee[Ve]<<8|Ee[Ve+1])+1,Ve+=2;const He=Ve,ft=Ee[Ve]<<8|Ee[Ve+1];$e.sizeOfInstructions=ft,Ve+=2+ft;const bt=Ve;let Ut=0;for(dt=0;dt<ct;dt++){const ht=Ee[Ve++];ht&192&&(Ee[Ve-1]=ht&63);let Ft=2;ht&2?Ft=1:ht&16&&(Ft=0);let Dt=2;ht&4?Dt=1:ht&32&&(Dt=0);const Wt=Ft+Dt;if(Ut+=Wt,ht&8){const tn=Ee[Ve++];tn===0&&(Ee[Ve-1]^=8),dt+=tn,Ut+=tn*Wt}}if(Ut===0)return $e;let lt=Ve+Ut;return lt>Ee.length?$e:!tt&&ft>0?(Ne.set(Ee.subarray(0,He),je),Ne.set([0,0],je+He),Ne.set(Ee.subarray(bt,lt),je+He+2),lt-=ft,Ee.length-lt>3&&(lt=lt+3&-4),$e.length=lt,$e):Ee.length-lt>3?(lt=lt+3&-4,Ne.set(Ee.subarray(0,lt),je),$e.length=lt,$e):(Ne.set(Ee,je),$e.length=Ee.length,$e)}function ye(Ie,Fe,Me){const Ne=Ie.data,je=g(Ne[0],Ne[1],Ne[2],Ne[3]);je>>16!==1&&((0,n.info)("Attempting to fix invalid version in head table: "+je),Ne[0]=0,Ne[1]=1,Ne[2]=0,Ne[3]=0);const tt=r(Ne[50],Ne[51]);if(tt<0||tt>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+tt);const $e=Fe+1;if(Me===$e<<1)Ne[50]=0,Ne[51]=0;else if(Me===$e<<2)Ne[50]=0,Ne[51]=1;else throw new n.FormatError("Could not fix indexToLocFormat: "+tt)}}function Se(Ie,Fe,Me,Ne,je,tt,$e){let Ee,ze,ot;Ne?(Ee=4,ze=function(Ft,Dt){return Ft[Dt]<<24|Ft[Dt+1]<<16|Ft[Dt+2]<<8|Ft[Dt+3]},ot=function(Ft,Dt,Wt){Ft[Dt]=Wt>>>24&255,Ft[Dt+1]=Wt>>16&255,Ft[Dt+2]=Wt>>8&255,Ft[Dt+3]=Wt&255}):(Ee=2,ze=function(Ft,Dt){return Ft[Dt]<<9|Ft[Dt+1]<<1},ot=function(Ft,Dt,Wt){Ft[Dt]=Wt>>9&255,Ft[Dt+1]=Wt>>1&255});const pt=tt?Me+1:Me,nt=Ee*(1+pt),it=new Uint8Array(nt);it.set(Ie.data.subarray(0,nt)),Ie.data=it;const dt=Fe.data,Ve=dt.length,ct=new Uint8Array(Ve);let He,ft;const bt=[];for(He=0,ft=0;He<Me+1;He++,ft+=Ee){let ht=ze(it,ft);ht>Ve&&(ht=Ve),bt.push({index:He,offset:ht,endOffset:0})}for(bt.sort((ht,Ft)=>ht.offset-Ft.offset),He=0;He<Me;He++)bt[He].endOffset=bt[He+1].offset;for(bt.sort((ht,Ft)=>ht.index-Ft.index),He=0;He<Me;He++){const{offset:ht,endOffset:Ft}=bt[He];if(ht!==0||Ft!==0)break;const Dt=bt[He+1].offset;if(Dt!==0){bt[He].endOffset=Dt;break}}const Ut=Object.create(null);let lt=0;for(ot(it,0,lt),He=0,ft=Ee;He<Me;He++,ft+=Ee){const ht=be(dt,bt[He].offset,bt[He].endOffset,ct,lt,je),Ft=ht.length;Ft===0&&(Ut[He]=!0),ht.sizeOfInstructions>$e&&($e=ht.sizeOfInstructions),lt+=Ft,ot(it,ft,lt)}if(lt===0){const ht=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(He=0,ft=Ee;He<pt;He++,ft+=Ee)ot(it,ft,ht.length);Fe.data=ht}else if(tt){const ht=ze(it,Ee);ct.length>ht+lt?Fe.data=ct.subarray(0,ht+lt):(Fe.data=new Uint8Array(ht+lt),Fe.data.set(ct.subarray(0,lt))),Fe.data.set(ct.subarray(0,ht),lt),ot(Ie.data,it.length-Ee,lt+ht)}else Fe.data=ct.subarray(0,lt);return{missingGlyphs:Ut,maxSizeOfInstructions:$e}}function pe(Ie,Fe,Me){const Ne=(V.start||0)+Ie.offset;V.pos=Ne;const je=Ie.length,tt=Ne+je,$e=V.getInt32();V.skip(28);let Ee,ze=!0,ot;switch($e){case 65536:Ee=D.MacStandardGlyphOrdering;break;case 131072:const pt=V.getUint16();if(pt!==Me){ze=!1;break}const nt=[];for(ot=0;ot<pt;++ot){const Ve=V.getUint16();if(Ve>=32768){ze=!1;break}nt.push(Ve)}if(!ze)break;const it=[],dt=[];for(;V.pos<tt;){const Ve=V.getByte();for(dt.length=Ve,ot=0;ot<Ve;++ot)dt[ot]=String.fromCharCode(V.getByte());it.push(dt.join(""))}for(Ee=[],ot=0;ot<pt;++ot){const Ve=nt[ot];if(Ve<258){Ee.push(D.MacStandardGlyphOrdering[Ve]);continue}Ee.push(it[Ve-258])}break;case 196608:break;default:(0,n.warn)("Unknown/unsupported post table version "+$e),ze=!1,Fe.defaultEncoding&&(Ee=Fe.defaultEncoding);break}return Fe.glyphNames=Ee,ze}function he(Ie){const Fe=(V.start||0)+Ie.offset;V.pos=Fe;const Me=[[],[]],Ne=[],je=Ie.length,tt=Fe+je;if(V.getUint16()!==0||je<6)return[Me,Ne];const ze=V.getUint16(),ot=V.getUint16(),pt=12;let nt,it;for(nt=0;nt<ze&&V.pos+pt<=tt;nt++){const dt={platform:V.getUint16(),encoding:V.getUint16(),language:V.getUint16(),name:V.getUint16(),length:V.getUint16(),offset:V.getUint16()};(J(dt)||oe(dt))&&Ne.push(dt)}for(nt=0,it=Ne.length;nt<it;nt++){const dt=Ne[nt];if(dt.length<=0)continue;const Ve=Fe+ot+dt.offset;if(Ve+dt.length>tt)continue;V.pos=Ve;const ct=dt.name;if(dt.encoding){let He="";for(let ft=0,bt=dt.length;ft<bt;ft+=2)He+=String.fromCharCode(V.getUint16());Me[1][ct]=He}else Me[0][ct]=V.getString(dt.length)}return[Me,Ne]}const de=[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 Ce(Ie,Fe){let Me=Ie.data,Ne=0,je,tt,$e,Ee,ze,ot=0,pt=0;const nt=[],it=[],dt=[];let Ve=Fe.tooComplexToFollowFunctions,ct=!1,He=0,ft=0;for(let Ut=Me.length;Ne<Ut;){const lt=Me[Ne++];if(lt===64)if(tt=Me[Ne++],ct||ft)Ne+=tt;else for(je=0;je<tt;je++)nt.push(Me[Ne++]);else if(lt===65)if(tt=Me[Ne++],ct||ft)Ne+=tt*2;else for(je=0;je<tt;je++)$e=Me[Ne++],nt.push($e<<8|Me[Ne++]);else if((lt&248)===176)if(tt=lt-176+1,ct||ft)Ne+=tt;else for(je=0;je<tt;je++)nt.push(Me[Ne++]);else if((lt&248)===184)if(tt=lt-184+1,ct||ft)Ne+=tt*2;else for(je=0;je<tt;je++)$e=Me[Ne++],nt.push($e<<8|Me[Ne++]);else if(lt===43&&!Ve){if(!ct&&!ft){if(Ee=nt.at(-1),isNaN(Ee))(0,n.info)("TT: CALL empty stack (or invalid entry).");else if(Fe.functionsUsed[Ee]=!0,Ee in Fe.functionsStackDeltas){const ht=nt.length+Fe.functionsStackDeltas[Ee];if(ht<0){(0,n.warn)("TT: CALL invalid functions stack delta."),Fe.hintsValid=!1;return}nt.length=ht}else if(Ee in Fe.functionsDefined&&!dt.includes(Ee)){if(it.push({data:Me,i:Ne,stackTop:nt.length-1}),dt.push(Ee),ze=Fe.functionsDefined[Ee],!ze){(0,n.warn)("TT: CALL non-existent function"),Fe.hintsValid=!1;return}Me=ze.data,Ne=ze.i}}}else if(lt===44&&!Ve)(ct||ft)&&((0,n.warn)("TT: nested FDEFs not allowed"),Ve=!0),ct=!0,pt=Ne,Ee=nt.pop(),Fe.functionsDefined[Ee]={data:Me,i:Ne};else if(lt===45)if(ct)ct=!1,ot=Ne;else{if(ze=it.pop(),!ze){(0,n.warn)("TT: ENDF bad stack"),Fe.hintsValid=!1;return}Ee=dt.pop(),Me=ze.data,Ne=ze.i,Fe.functionsStackDeltas[Ee]=nt.length-ze.stackTop}else if(lt===137)(ct||ft)&&((0,n.warn)("TT: nested IDEFs not allowed"),Ve=!0),ct=!0,pt=Ne;else if(lt===88)++He;else if(lt===27)ft=He;else if(lt===89)ft===He&&(ft=0),--He;else if(lt===28&&!ct&&!ft){const ht=nt.at(-1);ht>0&&(Ne+=ht-1)}if(!ct&&!ft){let ht=0;for(lt<=142?ht=de[lt]:lt>=192&<<=223?ht=-1:lt>=224&&(ht=-2),lt>=113&<<=117&&(tt=nt.pop(),isNaN(tt)||(ht=-tt*2));ht<0&&nt.length>0;)nt.pop(),ht++;for(;ht>0;)nt.push(NaN),ht--}}Fe.tooComplexToFollowFunctions=Ve;const bt=[Me];Ne>Me.length&&bt.push(new Uint8Array(Ne-Me.length)),pt>ot&&((0,n.warn)("TT: complementing a missing function tail"),bt.push(new Uint8Array([34,45]))),Le(Ie,bt)}function we(Ie,Fe){if(!Ie.tooComplexToFollowFunctions){if(Ie.functionsDefined.length>Fe){(0,n.warn)("TT: more functions defined than expected"),Ie.hintsValid=!1;return}for(let Me=0,Ne=Ie.functionsUsed.length;Me<Ne;Me++){if(Me>Fe){(0,n.warn)("TT: invalid function id: "+Me),Ie.hintsValid=!1;return}if(Ie.functionsUsed[Me]&&!Ie.functionsDefined[Me]){(0,n.warn)("TT: undefined function: "+Me),Ie.hintsValid=!1;return}}}}function Le(Ie,Fe){if(Fe.length>1){let Me=0,Ne,je;for(Ne=0,je=Fe.length;Ne<je;Ne++)Me+=Fe[Ne].length;Me=Me+3&-4;const tt=new Uint8Array(Me);let $e=0;for(Ne=0,je=Fe.length;Ne<je;Ne++)tt.set(Fe[Ne],$e),$e+=Fe[Ne].length;Ie.data=tt,Ie.length=Me}}function Be(Ie,Fe,Me,Ne){const je={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(Ie&&Ce(Ie,je),Fe&&Ce(Fe,je),Ie&&we(je,Ne),Me&&Me.length&1){const tt=new Uint8Array(Me.length+1);tt.set(Me.data),Me.data=tt}return je.hintsValid}V=new O.Stream(new Uint8Array(V.getBytes()));let at,Oe;if(y(V)){const Ie=ge(V,this.name);at=Ie.header,Oe=Ie.tables}else at=ue(V),Oe=se(V,at.numTables);let Ze,Ke;const Pe=!Oe["CFF "];if(Pe){if(!Oe.loca)throw new n.FormatError('Required "loca" table is not found');Oe.glyf||((0,n.warn)('Required "glyf" table is not found -- trying to recover.'),Oe.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const Ie=L.composite&&(((ut=L.cidToGidMap)==null?void 0:ut.length)>0||!(L.cMap instanceof a.IdentityCMap));if(at.version==="OTTO"&&!Ie||!Oe.head||!Oe.hhea||!Oe.maxp||!Oe.post)return Ke=new O.Stream(Oe["CFF "].data),Ze=new N.CFFFont(Ke,L),T(L),this.convert(ne,Ze,L);delete Oe.glyf,delete Oe.loca,delete Oe.fpgm,delete Oe.prep,delete Oe["cvt "],this.isOpenType=!0}if(!Oe.maxp)throw new n.FormatError('Required "maxp" table is not found');V.pos=(V.start||0)+Oe.maxp.offset;const qe=V.getInt32(),gt=V.getUint16();if(((Bt=L.scaleFactors)==null?void 0:Bt.length)===gt&&Pe){const{scaleFactors:Ie}=L,Fe=r(Oe.head.data[50],Oe.head.data[51]),Me=new x.GlyfTable({glyfTable:Oe.glyf.data,isGlyphLocationsLong:Fe,locaTable:Oe.loca.data,numGlyphs:gt});Me.scale(Ie);const{glyf:Ne,loca:je,isLocationLong:tt}=Me.write();Oe.glyf.data=Ne,Oe.loca.data=je,tt!==!!Fe&&(Oe.head.data[50]=0,Oe.head.data[51]=tt?1:0);const $e=Oe.hmtx.data;for(let Ee=0;Ee<gt;Ee++){const ze=4*Ee,ot=Math.round(Ie[Ee]*r($e[ze],$e[ze+1]));$e[ze]=ot>>8&255,$e[ze+1]=ot&255;const pt=Math.round(Ie[Ee]*C($e[ze+2],$e[ze+3]));u($e,ze+2,pt)}}let De=gt+1,et=!0;De>65535&&(et=!1,De=gt,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));let rt=0,St=0;qe>=65536&&Oe.maxp.length>=22&&(V.pos+=8,V.getUint16()>2&&(Oe.maxp.data[14]=0,Oe.maxp.data[15]=2),V.pos+=4,rt=V.getUint16(),V.pos+=4,St=V.getUint16()),Oe.maxp.data[4]=De>>8,Oe.maxp.data[5]=De&255;const Pt=Be(Oe.fpgm,Oe.prep,Oe["cvt "],rt);if(Pt||(delete Oe.fpgm,delete Oe.prep,delete Oe["cvt "]),me(V,Oe.hhea,Oe.hmtx,Oe.head,De,et),!Oe.head)throw new n.FormatError('Required "head" table is not found');ye(Oe.head,gt,Pe?Oe.loca.length:0);let Ge=Object.create(null);if(Pe){const Ie=r(Oe.head.data[50],Oe.head.data[51]),Fe=Se(Oe.loca,Oe.glyf,gt,Ie,Pt,et,St);Ge=Fe.missingGlyphs,qe>=65536&&Oe.maxp.length>=22&&(Oe.maxp.data[26]=Fe.maxSizeOfInstructions>>8,Oe.maxp.data[27]=Fe.maxSizeOfInstructions&255)}if(!Oe.hhea)throw new n.FormatError('Required "hhea" table is not found');Oe.hhea.data[10]===0&&Oe.hhea.data[11]===0&&(Oe.hhea.data[10]=255,Oe.hhea.data[11]=255);const We={unitsPerEm:r(Oe.head.data[18],Oe.head.data[19]),yMax:C(Oe.head.data[42],Oe.head.data[43]),yMin:C(Oe.head.data[38],Oe.head.data[39]),ascent:C(Oe.hhea.data[4],Oe.hhea.data[5]),descent:C(Oe.hhea.data[6],Oe.hhea.data[7]),lineGap:C(Oe.hhea.data[8],Oe.hhea.data[9])};this.ascent=We.ascent/We.unitsPerEm,this.descent=We.descent/We.unitsPerEm,this.lineGap=We.lineGap/We.unitsPerEm,(Xt=this.cssFontInfo)!=null&&Xt.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,Oe.post&&pe(Oe.post,L,gt),Oe.post={tag:"post",data:_(L)};const _e=[];function yt(Ie){return!Ge[Ie]}if(L.composite){const Ie=L.cidToGidMap||[],Fe=Ie.length===0;L.cMap.forEach(function(Me,Ne){if(typeof Ne=="string"&&(Ne=q(Me,Ne,!0)),Ne>65535)throw new n.FormatError("Max size of CID is 65,535");let je=-1;Fe?je=Ne:Ie[Ne]!==void 0&&(je=Ie[Ne]),je>=0&&je<gt&&yt(je)&&(_e[Me]=je)})}else{const Ie=xe(Oe.cmap,V,this.isSymbolicFont,L.hasEncoding),Fe=Ie.platformId,Me=Ie.encodingId,Ne=Ie.mappings;let je=[],tt=!1;if(L.hasEncoding&&(L.baseEncodingName==="MacRomanEncoding"||L.baseEncodingName==="WinAnsiEncoding")&&(je=(0,c.getEncoding)(L.baseEncodingName)),L.hasEncoding&&!this.isSymbolicFont&&(Fe===3&&Me===1||Fe===1&&Me===0)){const $e=(0,t.getGlyphsUnicode)();for(let Ee=0;Ee<256;Ee++){let ze;if(this.differences[Ee]!==void 0?ze=this.differences[Ee]:je.length&&je[Ee]!==""?ze=je[Ee]:ze=c.StandardEncoding[Ee],!ze)continue;const ot=(0,D.recoverGlyphName)(ze,$e);let pt;if(Fe===3&&Me===1?pt=$e[ot]:Fe===1&&Me===0&&(pt=c.MacRomanEncoding.indexOf(ot)),pt===void 0){if(!L.glyphNames&&L.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof ee.IdentityToUnicodeMap)){const nt=this.toUnicode.get(Ee);nt&&(pt=nt.codePointAt(0))}if(pt===void 0)continue}for(const nt of Ne)if(nt.charCode===pt){_e[Ee]=nt.glyphId;break}}}else if(Fe===0){for(const $e of Ne)_e[$e.charCode]=$e.glyphId;tt=!0}else for(const $e of Ne){let Ee=$e.charCode;Fe===3&&Ee>=61440&&Ee<=61695&&(Ee&=255),_e[Ee]=$e.glyphId}if(L.glyphNames&&(je.length||this.differences.length))for(let $e=0;$e<256;++$e){if(!tt&&_e[$e]!==void 0)continue;const Ee=this.differences[$e]||je[$e];if(!Ee)continue;const ze=L.glyphNames.indexOf(Ee);ze>0&&yt(ze)&&(_e[$e]=ze)}}_e.length===0&&(_e[0]=0);let Tt=De-1;if(et||(Tt=0),!L.cssFontInfo){const Ie=re(_e,yt,Tt,this.toUnicode);this.toFontChar=Ie.toFontChar,Oe.cmap={tag:"cmap",data:K(Ie.charCodeToGlyphId,Ie.toUnicodeExtraMap,De)},(!Oe["OS/2"]||!S(Oe["OS/2"],V))&&(Oe["OS/2"]={tag:"OS/2",data:k(L,Ie.charCodeToGlyphId,We)})}if(!Pe)try{Ke=new O.Stream(Oe["CFF "].data),Ze=new P.CFFParser(Ke,L,D.SEAC_ANALYSIS_ENABLED).parse(),Ze.duplicateFirstGlyph();const Fe=new P.CFFCompiler(Ze);Oe["CFF "].data=Fe.compile()}catch(Ie){(0,n.warn)("Failed to compile font "+L.loadedName)}if(!Oe.name)Oe.name={tag:"name",data:Q(this.name)};else{const[Ie,Fe]=he(Oe.name);Oe.name.data=Q(ne,Ie),this.psName=Ie[0][6]||null,L.composite||o(L,this.isSymbolicFont,Fe)}const Ct=new E.OpenTypeFileBuilder(at.version);for(const Ie in Oe)Ct.addTable(Ie,Oe[Ie].data);return Ct.toArray()}convert(ne,V,L){L.fixedPitch=!1,L.builtInEncoding&&l(L,L.builtInEncoding);let te=1;V instanceof N.CFFFont&&(te=V.numGlyphs-1);const se=V.getGlyphMapping(L);let le=null,ue=se,fe=null;L.cssFontInfo||(le=re(se,V.hasGlyphId.bind(V),te,this.toUnicode),this.toFontChar=le.toFontChar,ue=le.charCodeToGlyphId,fe=le.toUnicodeExtraMap);const ge=V.numGlyphs;function xe(pe,he){let de=null;for(const Ce in pe)he===pe[Ce]&&(de||(de=[])).push(Ce|0);return de}function me(pe,he){for(const de in pe)if(he===pe[de])return de|0;return le.charCodeToGlyphId[le.nextAvailableFontCharCode]=he,le.nextAvailableFontCharCode++}const be=V.seacs;if(le&&D.SEAC_ANALYSIS_ENABLED&&(be==null?void 0:be.length)){const pe=L.fontMatrix||n.FONT_IDENTITY_MATRIX,he=V.getCharset(),de=Object.create(null);for(let Ce in be){Ce|=0;const we=be[Ce],Le=c.StandardEncoding[we[2]],Be=c.StandardEncoding[we[3]],at=he.indexOf(Le),Oe=he.indexOf(Be);if(at<0||Oe<0)continue;const Ze={x:we[0]*pe[0]+we[1]*pe[2]+pe[4],y:we[0]*pe[1]+we[1]*pe[3]+pe[5]},Ke=xe(se,Ce);if(!!Ke)for(const Pe of Ke){const qe=le.charCodeToGlyphId,gt=me(qe,at),De=me(qe,Oe);de[Pe]={baseFontCharCode:gt,accentFontCharCode:De,accentOffset:Ze}}}L.seacMap=de}const ye=1/(L.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],Se=new E.OpenTypeFileBuilder("OTTO");return Se.addTable("CFF ",V.data),Se.addTable("OS/2",k(L,ue)),Se.addTable("cmap",K(ue,fe,ge)),Se.addTable("head","\0\0\0\0\0\0\0\0\0\0_<\xF5\0\0"+X(ye)+"\0\0\0\0\x9E\v~'\0\0\0\0\x9E\v~'\0\0"+X(L.descent)+"\xFF"+X(L.ascent)+p(L.italicAngle?2:0)+"\0\0\0\0\0\0\0"),Se.addTable("hhea","\0\0\0"+X(L.ascent)+X(L.descent)+"\0\0\xFF\xFF\0\0\0\0\0\0"+X(L.capHeight)+X(Math.tan(L.italicAngle)*L.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+p(ge)),Se.addTable("hmtx",function(){const he=V.charstrings,de=V.cff?V.cff.widths:null;let Ce="\0\0\0\0";for(let we=1,Le=ge;we<Le;we++){let Be=0;if(he){const at=he[we-1];Be="width"in at?at.width:0}else de&&(Be=Math.ceil(de[we]||0));Ce+=p(Be)+p(0)}return Ce}()),Se.addTable("maxp","\0\0P\0"+p(ge)),Se.addTable("name",Q(ne)),Se.addTable("post",_(L)),Se.toArray()}get spaceWidth(){const ne=["space","minus","one","i","I"];let V;for(const L of ne){if(L in this.widths){V=this.widths[L];break}const se=(0,t.getGlyphsUnicode)()[L];let le=0;if(this.composite&&this.cMap.contains(se)&&(le=this.cMap.lookup(se),typeof le=="string"&&(le=q(se,le))),!le&&this.toUnicode&&(le=this.toUnicode.charCodeOf(se)),le<=0&&(le=se),V=this.widths[le],V)break}return(0,n.shadow)(this,"spaceWidth",V||this.defaultWidth)}_charToGlyph(ne,V=!1){var ye,Se,pe;let L=this._glyphCache[ne];if((L==null?void 0:L.isSpace)===V)return L;let te,se,le,ue=ne;(ye=this.cMap)!=null&&ye.contains(ne)&&(ue=this.cMap.lookup(ne),typeof ue=="string"&&(ue=q(ne,ue))),se=this.widths[ue],typeof se!="number"&&(se=this.defaultWidth);const fe=(Se=this.vmetrics)==null?void 0:Se[ue];let ge=this.toUnicode.get(ne)||ne;typeof ge=="number"&&(ge=String.fromCharCode(ge));let xe=this.toFontChar[ne]!==void 0;if(te=this.toFontChar[ne]||ne,this.missingFile){const he=this.differences[ne]||this.defaultEncoding[ne];(he===".notdef"||he==="")&&this.type==="Type1"&&(te=32),te=(0,e.mapSpecialUnicodeValues)(te)}this.isType3Font&&(le=te);let me=null;if((pe=this.seacMap)!=null&&pe[ne]){xe=!0;const he=this.seacMap[ne];te=he.baseFontCharCode,me={fontChar:String.fromCodePoint(he.accentFontCharCode),offset:he.accentOffset}}let be="";return typeof te=="number"&&(te<=1114111?be=String.fromCodePoint(te):(0,n.warn)(`charToGlyph - invalid fontCharCode: ${te}`)),L=new s(ne,be,ge,me,se,fe,le,V,xe),this._glyphCache[ne]=L}charsToGlyphs(ne){let V=this._charsCache[ne];if(V)return V;if(V=[],this.cMap){const L=Object.create(null),te=ne.length;let se=0;for(;se<te;){this.cMap.readCharCode(ne,se,L);const{charcode:le,length:ue}=L;se+=ue;const fe=this._charToGlyph(le,ue===1&&ne.charCodeAt(se-1)===32);V.push(fe)}}else for(let L=0,te=ne.length;L<te;++L){const se=ne.charCodeAt(L),le=this._charToGlyph(se,se===32);V.push(le)}return this._charsCache[ne]=V}getCharPositions(ne){const V=[];if(this.cMap){const L=Object.create(null);let te=0;for(;te<ne.length;){this.cMap.readCharCode(ne,te,L);const se=L.length;V.push([te,te+se]),te+=se}}else for(let L=0,te=ne.length;L<te;++L)V.push([L,L+1]);return V}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(ne){const V=[],L=[],te=()=>V.length%2===1,se=this.toUnicode instanceof ee.IdentityToUnicodeMap?le=>this.toUnicode.charCodeOf(le):le=>this.toUnicode.charCodeOf(String.fromCodePoint(le));for(let le=0,ue=ne.length;le<ue;le++){const fe=ne.codePointAt(le);if(fe>55295&&(fe<57344||fe>65533)&&le++,this.toUnicode){const ge=se(fe);if(ge!==-1){te()&&(V.push(L.join("")),L.length=0);const xe=this.cMap?this.cMap.getCharCodeLength(ge):1;for(let me=xe-1;me>=0;me--)L.push(String.fromCharCode(ge>>8*me&255));continue}}te()||(V.push(L.join("")),L.length=0),L.push(String.fromCodePoint(fe))}return V.push(L.join("")),V}}b.Font=ie;class ae{constructor(ne){this.error=ne,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(ne){return[ne]}exportData(ne=!1){return{error:this.error}}}b.ErrorFont=ae},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.CFFTopDict=b.CFFStrings=b.CFFStandardStrings=b.CFFPrivateDict=b.CFFParser=b.CFFIndex=b.CFFHeader=b.CFFFDSelect=b.CFFCompiler=b.CFFCharset=b.CFF=void 0;var n=ce(2),P=ce(36),D=ce(37);const e=10,t=[".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"];b.CFFStandardStrings=t;const c=391,Y=[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,undefStack:!0},{id:"return",min:0,undefStack:!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,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],ee=[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(F,s){F[s-2]=F[s-2]+F[s-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(F,s){F[s-2]=F[s-2]-F[s-1]}},{id:"div",min:2,stackDelta:-1,stackFn(F,s){F[s-2]=F[s-2]/F[s-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(F,s){F[s-1]=-F[s-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(F,s){F[s-2]=F[s-2]*F[s-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}];class N{constructor(s,r,u){this.bytes=s.getBytes(),this.properties=r,this.seacAnalysisEnabled=!!u}parse(){const s=this.properties,r=new I;this.cff=r;const u=this.parseHeader(),C=this.parseIndex(u.endPos),g=this.parseIndex(C.endPos),p=this.parseIndex(g.endPos),X=this.parseIndex(p.endPos),$=this.parseDict(g.obj.get(0)),y=this.createDict(O,$,r.strings);r.header=u.obj,r.names=this.parseNameIndex(C.obj),r.strings=this.parseStringIndex(p.obj),r.topDict=y,r.globalSubrIndex=X.obj,this.parsePrivateDict(r.topDict),r.isCIDFont=y.hasName("ROS");const v=y.getByName("CharStrings"),m=this.parseIndex(v).obj,h=y.getByName("FontMatrix");h&&(s.fontMatrix=h);const A=y.getByName("FontBBox");A&&(s.ascent=Math.max(A[3],A[1]),s.descent=Math.min(A[1],A[3]),s.ascentScaled=!0);let j,H;if(r.isCIDFont){const oe=this.parseIndex(y.getByName("FDArray")).obj;for(let q=0,re=oe.count;q<re;++q){const Z=oe.get(q),K=this.createDict(O,this.parseDict(Z),r.strings);this.parsePrivateDict(K),r.fdArray.push(K)}H=null,j=this.parseCharsets(y.getByName("charset"),m.count,r.strings,!0),r.fdSelect=this.parseFDSelect(y.getByName("FDSelect"),m.count)}else j=this.parseCharsets(y.getByName("charset"),m.count,r.strings,!1),H=this.parseEncoding(y.getByName("Encoding"),s,r.strings,j.charset);r.charset=j,r.encoding=H;const J=this.parseCharStrings({charStrings:m,localSubrIndex:y.privateDict.subrsIndex,globalSubrIndex:X.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:y.privateDict});return r.charStrings=J.charStrings,r.seacs=J.seacs,r.widths=J.widths,r}parseHeader(){let s=this.bytes;const r=s.length;let u=0;for(;u<r&&s[u]!==1;)++u;if(u>=r)throw new n.FormatError("Invalid CFF header");u!==0&&((0,n.info)("cff data is shifted"),s=s.subarray(u),this.bytes=s);const C=s[0],g=s[1],p=s[2],X=s[3];return{obj:new f(C,g,p,X),endPos:p}}parseDict(s){let r=0;function u(){let $=s[r++];return $===30?C():$===28?($=s[r++],$=($<<24|s[r++]<<16)>>16,$):$===29?($=s[r++],$=$<<8|s[r++],$=$<<8|s[r++],$=$<<8|s[r++],$):$>=32&&$<=246?$-139:$>=247&&$<=250?($-247)*256+s[r++]+108:$>=251&&$<=254?-(($-251)*256)-s[r++]-108:((0,n.warn)('CFFParser_parseDict: "'+$+'" is a reserved command.'),NaN)}function C(){let $="";const v=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],m=s.length;for(;r<m;){const h=s[r++],A=h>>4,j=h&15;if(A===15||($+=v[A],j===15))break;$+=v[j]}return parseFloat($)}let g=[];const p=[];r=0;const X=s.length;for(;r<X;){let $=s[r];$<=21?($===12&&($=$<<8|s[++r]),p.push([$,g]),g=[],++r):g.push(u())}return p}parseIndex(s){const r=new a,u=this.bytes,C=u[s++]<<8|u[s++],g=[];let p=s,X,$;if(C!==0){const y=u[s++],v=s+(C+1)*y-1;for(X=0,$=C+1;X<$;++X){let m=0;for(let h=0;h<y;++h)m<<=8,m+=u[s++];g.push(v+m)}p=g[C]}for(X=0,$=g.length-1;X<$;++X){const y=g[X],v=g[X+1];r.add(u.subarray(y,v))}return{obj:r,endPos:p}}parseNameIndex(s){const r=[];for(let u=0,C=s.count;u<C;++u){const g=s.get(u);r.push((0,n.bytesToString)(g))}return r}parseStringIndex(s){const r=new x;for(let u=0,C=s.count;u<C;++u){const g=s.get(u);r.add((0,n.bytesToString)(g))}return r}createDict(s,r,u){const C=new s(u);for(const[g,p]of r)C.setByKey(g,p);return C}parseCharString(s,r,u,C){if(!r||s.callDepth>e)return!1;let g=s.stackSize;const p=s.stack;let X=r.length;for(let $=0;$<X;){const y=r[$++];let v=null;if(y===12){const m=r[$++];m===0?(r[$-2]=139,r[$-1]=22,g=0):v=ee[m]}else if(y===28)p[g]=(r[$]<<24|r[$+1]<<16)>>16,$+=2,g++;else if(y===14){if(g>=4&&(g-=4,this.seacAnalysisEnabled))return s.seac=p.slice(g,g+4),!1;v=Y[y]}else if(y>=32&&y<=246)p[g]=y-139,g++;else if(y>=247&&y<=254)p[g]=y<251?(y-247<<8)+r[$]+108:-(y-251<<8)-r[$]-108,$++,g++;else if(y===255)p[g]=(r[$]<<24|r[$+1]<<16|r[$+2]<<8|r[$+3])/65536,$+=4,g++;else if(y===19||y===20){if(s.hints+=g>>1,s.hints===0){r.copyWithin($-1,$,-1),$-=1,X-=1;continue}$+=s.hints+7>>3,g%=2,v=Y[y]}else if(y===10||y===29){const m=y===10?u:C;if(!m)return v=Y[y],(0,n.warn)("Missing subrsIndex for "+v.id),!1;let h=32768;m.count<1240?h=107:m.count<33900&&(h=1131);const A=p[--g]+h;if(A<0||A>=m.count||isNaN(A))return v=Y[y],(0,n.warn)("Out of bounds subrIndex for "+v.id),!1;if(s.stackSize=g,s.callDepth++,!this.parseCharString(s,m.get(A),u,C))return!1;s.callDepth--,g=s.stackSize;continue}else{if(y===11)return s.stackSize=g,!0;if(y===0&&$===r.length)r[$-1]=14,v=Y[14];else if(y===9){r.copyWithin($-1,$,-1),$-=1,X-=1;continue}else v=Y[y]}if(v){if(v.stem&&(s.hints+=g>>1,y===3||y===23?s.hasVStems=!0:s.hasVStems&&(y===1||y===18)&&((0,n.warn)("CFF stem hints are in wrong order"),r[$-1]=y===1?3:23)),"min"in v&&!s.undefStack&&g<v.min)return(0,n.warn)("Not enough parameters for "+v.id+"; actual: "+g+", expected: "+v.min),g===0?(r[$-1]=14,!0):!1;s.firstStackClearing&&v.stackClearing&&(s.firstStackClearing=!1,g-=v.min,g>=2&&v.stem?g%=2:g>1&&(0,n.warn)("Found too many parameters for stack-clearing command"),g>0&&(s.width=p[g-1])),"stackDelta"in v?("stackFn"in v&&v.stackFn(p,g),g+=v.stackDelta):v.stackClearing?g=0:v.resetStack?(g=0,s.undefStack=!1):v.undefStack&&(g=0,s.undefStack=!0,s.firstStackClearing=!1)}}return X<r.length&&r.fill(14,X),s.stackSize=g,!0}parseCharStrings({charStrings:s,localSubrIndex:r,globalSubrIndex:u,fdSelect:C,fdArray:g,privateDict:p}){const X=[],$=[],y=s.count;for(let v=0;v<y;v++){const m=s.get(v),h={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let A=!0,j=null,H=p;if(C&&g.length){const J=C.getFDIndex(v);J===-1&&((0,n.warn)("Glyph index is not in fd select."),A=!1),J>=g.length&&((0,n.warn)("Invalid fd index for glyph index."),A=!1),A&&(H=g[J].privateDict,j=H.subrsIndex)}else r&&(j=r);if(A&&(A=this.parseCharString(h,m,j,u)),h.width!==null){const J=H.getByName("nominalWidthX");$[v]=J+h.width}else{const J=H.getByName("defaultWidthX");$[v]=J}h.seac!==null&&(X[v]=h.seac),A||s.set(v,new Uint8Array([14]))}return{charStrings:s,seacs:X,widths:$}}emptyPrivateDictionary(s){const r=this.createDict(B,[],s.strings);s.setByKey(18,[0,0]),s.privateDict=r}parsePrivateDict(s){if(!s.hasName("Private")){this.emptyPrivateDictionary(s);return}const r=s.getByName("Private");if(!Array.isArray(r)||r.length!==2){s.removeByName("Private");return}const u=r[0],C=r[1];if(u===0||C>=this.bytes.length){this.emptyPrivateDictionary(s);return}const g=C+u,p=this.bytes.subarray(C,g),X=this.parseDict(p),$=this.createDict(B,X,s.strings);if(s.privateDict=$,$.getByName("ExpansionFactor")===0&&$.setByName("ExpansionFactor",.06),!$.getByName("Subrs"))return;const y=$.getByName("Subrs"),v=C+y;if(y===0||v>=this.bytes.length){this.emptyPrivateDictionary(s);return}const m=this.parseIndex(v);$.subrsIndex=m.obj}parseCharsets(s,r,u,C){if(s===0)return new W(!0,z.ISO_ADOBE,P.ISOAdobeCharset);if(s===1)return new W(!0,z.EXPERT,P.ExpertCharset);if(s===2)return new W(!0,z.EXPERT_SUBSET,P.ExpertSubsetCharset);const g=this.bytes,p=s,X=g[s++],$=[C?0:".notdef"];let y,v,m;switch(r-=1,X){case 0:for(m=0;m<r;m++)y=g[s++]<<8|g[s++],$.push(C?y:u.get(y));break;case 1:for(;$.length<=r;)for(y=g[s++]<<8|g[s++],v=g[s++],m=0;m<=v;m++)$.push(C?y++:u.get(y++));break;case 2:for(;$.length<=r;)for(y=g[s++]<<8|g[s++],v=g[s++]<<8|g[s++],m=0;m<=v;m++)$.push(C?y++:u.get(y++));break;default:throw new n.FormatError("Unknown charset format")}const h=s,A=g.subarray(p,h);return new W(!1,X,$,A)}parseEncoding(s,r,u,C){const g=Object.create(null),p=this.bytes;let X=!1,$,y,v,m=null;function h(){const A=p[s++];for(y=0;y<A;y++){const j=p[s++],H=(p[s++]<<8)+(p[s++]&255);g[j]=C.indexOf(u.get(H))}}if(s===0||s===1){X=!0,$=s;const A=s?D.ExpertEncoding:D.StandardEncoding;for(y=0,v=C.length;y<v;y++){const j=A.indexOf(C[y]);j!==-1&&(g[j]=y)}}else{const A=s;switch($=p[s++],$&127){case 0:const H=p[s++];for(y=1;y<=H;y++)g[p[s++]]=y;break;case 1:const J=p[s++];let oe=1;for(y=0;y<J;y++){const q=p[s++],re=p[s++];for(let Z=q;Z<=q+re;Z++)g[Z]=oe++}break;default:throw new n.FormatError(`Unknown encoding format: ${$} in CFF`)}const j=s;$&128&&(p[A]&=127,h()),m=p.subarray(A,j)}return $&=127,new d(X,$,g,m)}parseFDSelect(s,r){const u=this.bytes,C=u[s++],g=[];let p;switch(C){case 0:for(p=0;p<r;++p){const $=u[s++];g.push($)}break;case 3:const X=u[s++]<<8|u[s++];for(p=0;p<X;++p){let $=u[s++]<<8|u[s++];p===0&&$!==0&&((0,n.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),$=0);const y=u[s++],v=u[s]<<8|u[s+1];for(let m=$;m<v;++m)g.push(y)}s+=2;break;default:throw new n.FormatError(`parseFDSelect: Unknown format "${C}".`)}if(g.length!==r)throw new n.FormatError("parseFDSelect: Invalid font data.");return new T(C,g)}}b.CFFParser=N;class I{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new x,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}duplicateFirstGlyph(){if(this.charStrings.count>=65535){(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");return}const s=this.charStrings.get(0);this.charStrings.add(s),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(s){return s<0||s>=this.charStrings.count?!1:this.charStrings.get(s).length>0}}b.CFF=I;class f{constructor(s,r,u,C){this.major=s,this.minor=r,this.hdrSize=u,this.offSize=C}}b.CFFHeader=f;class x{constructor(){this.strings=[]}get(s){return s>=0&&s<=c-1?t[s]:s-c<=this.strings.length?this.strings[s-c]:t[0]}getSID(s){let r=t.indexOf(s);return r!==-1?r:(r=this.strings.indexOf(s),r!==-1?r+c:-1)}add(s){this.strings.push(s)}get count(){return this.strings.length}}b.CFFStrings=x;class a{constructor(){this.objects=[],this.length=0}add(s){this.length+=s.length,this.objects.push(s)}set(s,r){this.length+=r.length-this.objects[s].length,this.objects[s]=r}get(s){return this.objects[s]}get count(){return this.objects.length}}b.CFFIndex=a;class E{constructor(s,r){this.keyToNameMap=s.keyToNameMap,this.nameToKeyMap=s.nameToKeyMap,this.defaults=s.defaults,this.types=s.types,this.opcodes=s.opcodes,this.order=s.order,this.strings=r,this.values=Object.create(null)}setByKey(s,r){if(!(s in this.keyToNameMap))return!1;if(r.length===0)return!0;for(const C of r)if(isNaN(C))return(0,n.warn)(`Invalid CFFDict value: "${r}" for key "${s}".`),!0;const u=this.types[s];return(u==="num"||u==="sid"||u==="offset")&&(r=r[0]),this.values[s]=r,!0}setByName(s,r){if(!(s in this.nameToKeyMap))throw new n.FormatError(`Invalid dictionary name "${s}"`);this.values[this.nameToKeyMap[s]]=r}hasName(s){return this.nameToKeyMap[s]in this.values}getByName(s){if(!(s in this.nameToKeyMap))throw new n.FormatError(`Invalid dictionary name ${s}"`);const r=this.nameToKeyMap[s];return r in this.values?this.values[r]:this.defaults[r]}removeByName(s){delete this.values[this.nameToKeyMap[s]]}static createTables(s){const r={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const u of s){const C=Array.isArray(u[0])?(u[0][0]<<8)+u[0][1]:u[0];r.keyToNameMap[C]=u[1],r.nameToKeyMap[u[1]]=C,r.types[C]=u[2],r.defaults[C]=u[3],r.opcodes[C]=Array.isArray(u[0])?u[0]:[u[0]],r.order.push(C)}return r}}const w=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class O extends E{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(w))}constructor(s){super(O.tables,s),this.privateDict=null}}b.CFFTopDict=O;const M=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.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",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class B extends E{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(M))}constructor(s){super(B.tables,s),this.subrsIndex=null}}b.CFFPrivateDict=B;const z={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class W{constructor(s,r,u,C){this.predefined=s,this.format=r,this.charset=u,this.raw=C}}b.CFFCharset=W;class d{constructor(s,r,u,C){this.predefined=s,this.format=r,this.encoding=u,this.raw=C}}class T{constructor(s,r){this.format=s,this.fdSelect=r}getFDIndex(s){return s<0||s>=this.fdSelect.length?-1:this.fdSelect[s]}}b.CFFFDSelect=T;class o{constructor(){this.offsets=Object.create(null)}isTracking(s){return s in this.offsets}track(s,r){if(s in this.offsets)throw new n.FormatError(`Already tracking location of ${s}`);this.offsets[s]=r}offset(s){for(const r in this.offsets)this.offsets[r]+=s}setEntryLocation(s,r,u){if(!(s in this.offsets))throw new n.FormatError(`Not tracking location of ${s}`);const C=u.data,g=this.offsets[s],p=5;for(let X=0,$=r.length;X<$;++X){const y=X*p+g,v=y+1,m=y+2,h=y+3,A=y+4;if(C[y]!==29||C[v]!==0||C[m]!==0||C[h]!==0||C[A]!==0)throw new n.FormatError("writing to an offset that is not empty");const j=r[X];C[y]=29,C[v]=j>>24&255,C[m]=j>>16&255,C[h]=j>>8&255,C[A]=j&255}}}class l{constructor(s){this.cff=s}compile(){const s=this.cff,r={data:[],length:0,add(h){try{this.data.push(...h)}catch(A){this.data=this.data.concat(h)}this.length=this.data.length}},u=this.compileHeader(s.header);r.add(u);const C=this.compileNameIndex(s.names);if(r.add(C),s.isCIDFont&&s.topDict.hasName("FontMatrix")){const h=s.topDict.getByName("FontMatrix");s.topDict.removeByName("FontMatrix");for(const A of s.fdArray){let j=h.slice(0);A.hasName("FontMatrix")&&(j=n.Util.transform(j,A.getByName("FontMatrix"))),A.setByName("FontMatrix",j)}}const g=s.topDict.getByName("XUID");(g==null?void 0:g.length)>16&&s.topDict.removeByName("XUID"),s.topDict.setByName("charset",0);let p=this.compileTopDicts([s.topDict],r.length,s.isCIDFont);r.add(p.output);const X=p.trackers[0],$=this.compileStringIndex(s.strings.strings);r.add($);const y=this.compileIndex(s.globalSubrIndex);if(r.add(y),s.encoding&&s.topDict.hasName("Encoding"))if(s.encoding.predefined)X.setEntryLocation("Encoding",[s.encoding.format],r);else{const h=this.compileEncoding(s.encoding);X.setEntryLocation("Encoding",[r.length],r),r.add(h)}const v=this.compileCharset(s.charset,s.charStrings.count,s.strings,s.isCIDFont);X.setEntryLocation("charset",[r.length],r),r.add(v);const m=this.compileCharStrings(s.charStrings);if(X.setEntryLocation("CharStrings",[r.length],r),r.add(m),s.isCIDFont){X.setEntryLocation("FDSelect",[r.length],r);const h=this.compileFDSelect(s.fdSelect);r.add(h),p=this.compileTopDicts(s.fdArray,r.length,!0),X.setEntryLocation("FDArray",[r.length],r),r.add(p.output);const A=p.trackers;this.compilePrivateDicts(s.fdArray,A,r)}return this.compilePrivateDicts([s.topDict],[X],r),r.add([0]),r.data}encodeNumber(s){return Number.isInteger(s)?this.encodeInteger(s):this.encodeFloat(s)}static get EncodeFloatRegExp(){return(0,n.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(s){let r=s.toString();const u=l.EncodeFloatRegExp.exec(r);if(u){const $=parseFloat("1e"+((u[2]?+u[2]:0)+u[1].length));r=(Math.round(s*$)/$).toString()}let C="",g,p;for(g=0,p=r.length;g<p;++g){const $=r[g];$==="e"?C+=r[++g]==="-"?"c":"b":$==="."?C+="a":$==="-"?C+="e":C+=$}C+=C.length&1?"f":"ff";const X=[30];for(g=0,p=C.length;g<p;g+=2)X.push(parseInt(C.substring(g,g+2),16));return X}encodeInteger(s){let r;return s>=-107&&s<=107?r=[s+139]:s>=108&&s<=1131?(s-=108,r=[(s>>8)+247,s&255]):s>=-1131&&s<=-108?(s=-s-108,r=[(s>>8)+251,s&255]):s>=-32768&&s<=32767?r=[28,s>>8&255,s&255]:r=[29,s>>24&255,s>>16&255,s>>8&255,s&255],r}compileHeader(s){return[s.major,s.minor,4,s.offSize]}compileNameIndex(s){const r=new a;for(const u of s){const C=Math.min(u.length,127);let g=new Array(C);for(let p=0;p<C;p++){let X=u[p];(X<"!"||X>"~"||X==="["||X==="]"||X==="("||X===")"||X==="{"||X==="}"||X==="<"||X===">"||X==="/"||X==="%")&&(X="_"),g[p]=X}g=g.join(""),g===""&&(g="Bad_Font_Name"),r.add((0,n.stringToBytes)(g))}return this.compileIndex(r)}compileTopDicts(s,r,u){const C=[];let g=new a;for(const p of s){u&&(p.removeByName("CIDFontVersion"),p.removeByName("CIDFontRevision"),p.removeByName("CIDFontType"),p.removeByName("CIDCount"),p.removeByName("UIDBase"));const X=new o,$=this.compileDict(p,X);C.push(X),g.add($),X.offset(r)}return g=this.compileIndex(g,C),{trackers:C,output:g}}compilePrivateDicts(s,r,u){for(let C=0,g=s.length;C<g;++C){const p=s[C],X=p.privateDict;if(!X||!p.hasName("Private"))throw new n.FormatError("There must be a private dictionary.");const $=new o,y=this.compileDict(X,$);let v=u.length;if($.offset(v),y.length||(v=0),r[C].setEntryLocation("Private",[y.length,v],u),u.add(y),X.subrsIndex&&X.hasName("Subrs")){const m=this.compileIndex(X.subrsIndex);$.setEntryLocation("Subrs",[y.length],u),u.add(m)}}}compileDict(s,r){const u=[];for(const C of s.order){if(!(C in s.values))continue;let g=s.values[C],p=s.types[C];if(Array.isArray(p)||(p=[p]),Array.isArray(g)||(g=[g]),g.length!==0){for(let X=0,$=p.length;X<$;++X){const y=p[X],v=g[X];switch(y){case"num":case"sid":u.push(...this.encodeNumber(v));break;case"offset":const m=s.keyToNameMap[C];r.isTracking(m)||r.track(m,u.length),u.push(29,0,0,0,0);break;case"array":case"delta":u.push(...this.encodeNumber(v));for(let h=1,A=g.length;h<A;++h)u.push(...this.encodeNumber(g[h]));break;default:throw new n.FormatError(`Unknown data type of ${y}`)}}u.push(...s.opcodes[C])}}return u}compileStringIndex(s){const r=new a;for(const u of s)r.add((0,n.stringToBytes)(u));return this.compileIndex(r)}compileCharStrings(s){const r=new a;for(let u=0;u<s.count;u++){const C=s.get(u);if(C.length===0){r.add(new Uint8Array([139,14]));continue}r.add(C)}return this.compileIndex(r)}compileCharset(s,r,u,C){let g;const p=r-1;if(C)g=new Uint8Array([2,0,0,p>>8&255,p&255]);else{const X=1+p*2;g=new Uint8Array(X),g[0]=0;let $=0;const y=s.charset.length;let v=!1;for(let m=1;m<g.length;m+=2){let h=0;if($<y){const A=s.charset[$++];h=u.getSID(A),h===-1&&(h=0,v||(v=!0,(0,n.warn)(`Couldn't find ${A} in CFF strings`)))}g[m]=h>>8&255,g[m+1]=h&255}}return this.compileTypedArray(g)}compileEncoding(s){return this.compileTypedArray(s.raw)}compileFDSelect(s){const r=s.format;let u,C;switch(r){case 0:for(u=new Uint8Array(1+s.fdSelect.length),u[0]=r,C=0;C<s.fdSelect.length;C++)u[C+1]=s.fdSelect[C];break;case 3:const g=0;let p=s.fdSelect[0];const X=[r,0,0,g>>8&255,g&255,p];for(C=1;C<s.fdSelect.length;C++){const y=s.fdSelect[C];y!==p&&(X.push(C>>8&255,C&255,y),p=y)}const $=(X.length-3)/3;X[1]=$>>8&255,X[2]=$&255,X.push(C>>8&255,C&255),u=new Uint8Array(X);break}return this.compileTypedArray(u)}compileTypedArray(s){return Array.from(s)}compileIndex(s,r=[]){const u=s.objects,C=u.length;if(C===0)return[0,0];const g=[C>>8&255,C&255];let p=1,X;for(X=0;X<C;++X)p+=u[X].length;let $;p<256?$=1:p<65536?$=2:p<16777216?$=3:$=4,g.push($);let y=1;for(X=0;X<C+1;X++)$===1?g.push(y&255):$===2?g.push(y>>8&255,y&255):$===3?g.push(y>>16&255,y>>8&255,y&255):g.push(y>>>24&255,y>>16&255,y>>8&255,y&255),u[X]&&(y+=u[X].length);for(X=0;X<C;X++)r[X]&&r[X].offset(g.length),g.push(...u[X]);return g}}b.CFFCompiler=l},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ISOAdobeCharset=b.ExpertSubsetCharset=b.ExpertCharset=void 0;const ce=[".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"];b.ISOAdobeCharset=ce;const n=[".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"];b.ExpertCharset=n;const P=[".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"];b.ExpertSubsetCharset=P},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ZapfDingbatsEncoding=b.WinAnsiEncoding=b.SymbolSetEncoding=b.StandardEncoding=b.MacRomanEncoding=b.ExpertEncoding=void 0,b.getEncoding=Y;const ce=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];b.ExpertEncoding=ce;const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],P=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];b.MacRomanEncoding=P;const D=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];b.StandardEncoding=D;const e=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];b.WinAnsiEncoding=e;const t=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];b.SymbolSetEncoding=t;const c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];b.ZapfDingbatsEncoding=c;function Y(ee){switch(ee){case"WinAnsiEncoding":return e;case"StandardEncoding":return D;case"MacRomanEncoding":return P;case"SymbolSetEncoding":return t;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return ce;case"MacExpertEncoding":return n;default:return null}}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SEAC_ANALYSIS_ENABLED=b.MacStandardGlyphOrdering=b.FontFlags=void 0,b.normalizeFontName=I,b.recoverGlyphName=ee,b.type1FontGlyphMapping=N;var n=ce(37),P=ce(39),D=ce(40),e=ce(2);const t=!0;b.SEAC_ANALYSIS_ENABLED=t;const c={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};b.FontFlags=c;const Y=[".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"];b.MacStandardGlyphOrdering=Y;function ee(f,x){if(x[f]!==void 0)return f;const a=(0,D.getUnicodeForGlyph)(f,x);if(a!==-1){for(const E in x)if(x[E]===a)return E}return(0,e.info)("Unable to recover a standard glyph name for: "+f),f}function N(f,x,a){const E=Object.create(null);let w,O,M;const B=!!(f.flags&c.Symbolic);if(f.isInternalFont)for(M=x,O=0;O<M.length;O++)w=a.indexOf(M[O]),E[O]=w>=0?w:0;else if(f.baseEncodingName)for(M=(0,n.getEncoding)(f.baseEncodingName),O=0;O<M.length;O++)w=a.indexOf(M[O]),E[O]=w>=0?w:0;else if(B)for(O in x)E[O]=x[O];else for(M=n.StandardEncoding,O=0;O<M.length;O++)w=a.indexOf(M[O]),E[O]=w>=0?w:0;const z=f.differences;let W;if(z)for(O in z){const d=z[O];if(w=a.indexOf(d),w===-1){W||(W=(0,P.getGlyphsUnicode)());const T=ee(d,W);T!==d&&(w=a.indexOf(T))}E[O]=w>=0?w:0}return E}function I(f){return f.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.getGlyphsUnicode=b.getDingbatsGlyphsUnicode=void 0;var n=ce(3);const P=(0,n.getLookupTableFactory)(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052,e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36,e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.f_f_i=64259,e.ffl=64260,e.f_f_l=64260,e.fi=64257,e.f_i=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.f_l=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.planckover2pi=8463,e.planckover2pi1=8463,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739});b.getGlyphsUnicode=P;const D=(0,n.getLookupTableFactory)(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0});b.getDingbatsGlyphsUnicode=D},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.clearUnicodeCaches=I,b.getCharUnicodeCategory=N,b.getUnicodeForGlyph=e,b.getUnicodeRangeFor=c,b.mapSpecialUnicodeValues=D;var n=ce(3);const P=(0,n.getLookupTableFactory)(function(f){f[63721]=169,f[63193]=169,f[63720]=174,f[63194]=174,f[63722]=8482,f[63195]=8482,f[63729]=9127,f[63730]=9128,f[63731]=9129,f[63740]=9131,f[63741]=9132,f[63742]=9133,f[63726]=9121,f[63727]=9122,f[63728]=9123,f[63737]=9124,f[63738]=9125,f[63739]=9126,f[63723]=9115,f[63724]=9116,f[63725]=9117,f[63734]=9118,f[63735]=9119,f[63736]=9120});function D(f){return f>=65520&&f<=65535?0:f>=62976&&f<=63743?P()[f]||f:f===173?45:f}function e(f,x){let a=x[f];if(a!==void 0)return a;if(!f)return-1;if(f[0]==="u"){const E=f.length;let w;if(E===7&&f[1]==="n"&&f[2]==="i")w=f.substring(3);else if(E>=5&&E<=7)w=f.substring(1);else return-1;if(w===w.toUpperCase()&&(a=parseInt(w,16),a>=0))return a}return-1}const t=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];function c(f,x=-1){if(x!==-1){const a=t[x];for(let E=0,w=a.length;E<w;E+=2)if(f>=a[E]&&f<=a[E+1])return x}for(let a=0,E=t.length;a<E;a++){const w=t[a];for(let O=0,M=w.length;O<M;O+=2)if(f>=w[O]&&f<=w[O+1])return a}return-1}const Y=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),ee=new Map;function N(f){const x=ee.get(f);if(x)return x;const a=f.match(Y),E={isWhitespace:!!(a!=null&&a[1]),isZeroWidthDiacritic:!!(a!=null&&a[2]),isInvisibleFormatMark:!!(a!=null&&a[3])};return ee.set(f,E),E}function I(){ee.clear()}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.getSerifFonts=b.getNonStdFontMap=b.getGlyphMapForStandardFonts=b.getFontNameToFileMap=void 0,b.getStandardFontName=f,b.getSymbolsFonts=b.getSupplementalGlyphMapForCalibri=b.getSupplementalGlyphMapForArialBlack=b.getStdFontMap=void 0,b.isKnownFontName=x;var n=ce(3),P=ce(38);const D=(0,n.getLookupTableFactory)(function(a){a["Times-Roman"]="Times-Roman",a.Helvetica="Helvetica",a.Courier="Courier",a.Symbol="Symbol",a["Times-Bold"]="Times-Bold",a["Helvetica-Bold"]="Helvetica-Bold",a["Courier-Bold"]="Courier-Bold",a.ZapfDingbats="ZapfDingbats",a["Times-Italic"]="Times-Italic",a["Helvetica-Oblique"]="Helvetica-Oblique",a["Courier-Oblique"]="Courier-Oblique",a["Times-BoldItalic"]="Times-BoldItalic",a["Helvetica-BoldOblique"]="Helvetica-BoldOblique",a["Courier-BoldOblique"]="Courier-BoldOblique",a.ArialNarrow="Helvetica",a["ArialNarrow-Bold"]="Helvetica-Bold",a["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",a["ArialNarrow-Italic"]="Helvetica-Oblique",a.ArialBlack="Helvetica",a["ArialBlack-Bold"]="Helvetica-Bold",a["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",a["ArialBlack-Italic"]="Helvetica-Oblique",a["Arial-Black"]="Helvetica",a["Arial-Black-Bold"]="Helvetica-Bold",a["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",a["Arial-Black-Italic"]="Helvetica-Oblique",a.Arial="Helvetica",a["Arial-Bold"]="Helvetica-Bold",a["Arial-BoldItalic"]="Helvetica-BoldOblique",a["Arial-Italic"]="Helvetica-Oblique",a.ArialMT="Helvetica",a["Arial-BoldItalicMT"]="Helvetica-BoldOblique",a["Arial-BoldMT"]="Helvetica-Bold",a["Arial-ItalicMT"]="Helvetica-Oblique",a["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",a["Arial-BoldMT-Bold"]="Helvetica-Bold",a["Arial-ItalicMT-Italic"]="Helvetica-Oblique",a.ArialUnicodeMS="Helvetica",a["ArialUnicodeMS-Bold"]="Helvetica-Bold",a["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",a["ArialUnicodeMS-Italic"]="Helvetica-Oblique",a["Courier-BoldItalic"]="Courier-BoldOblique",a["Courier-Italic"]="Courier-Oblique",a.CourierNew="Courier",a["CourierNew-Bold"]="Courier-Bold",a["CourierNew-BoldItalic"]="Courier-BoldOblique",a["CourierNew-Italic"]="Courier-Oblique",a["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",a["CourierNewPS-BoldMT"]="Courier-Bold",a["CourierNewPS-ItalicMT"]="Courier-Oblique",a.CourierNewPSMT="Courier",a["Helvetica-BoldItalic"]="Helvetica-BoldOblique",a["Helvetica-Italic"]="Helvetica-Oblique",a["Symbol-Bold"]="Symbol",a["Symbol-BoldItalic"]="Symbol",a["Symbol-Italic"]="Symbol",a.TimesNewRoman="Times-Roman",a["TimesNewRoman-Bold"]="Times-Bold",a["TimesNewRoman-BoldItalic"]="Times-BoldItalic",a["TimesNewRoman-Italic"]="Times-Italic",a.TimesNewRomanPS="Times-Roman",a["TimesNewRomanPS-Bold"]="Times-Bold",a["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",a["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",a["TimesNewRomanPS-BoldMT"]="Times-Bold",a["TimesNewRomanPS-Italic"]="Times-Italic",a["TimesNewRomanPS-ItalicMT"]="Times-Italic",a.TimesNewRomanPSMT="Times-Roman",a["TimesNewRomanPSMT-Bold"]="Times-Bold",a["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",a["TimesNewRomanPSMT-Italic"]="Times-Italic"});b.getStdFontMap=D;const e=(0,n.getLookupTableFactory)(function(a){a.Courier="FoxitFixed.pfb",a["Courier-Bold"]="FoxitFixedBold.pfb",a["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",a["Courier-Oblique"]="FoxitFixedItalic.pfb",a.Helvetica="LiberationSans-Regular.ttf",a["Helvetica-Bold"]="LiberationSans-Bold.ttf",a["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",a["Helvetica-Oblique"]="LiberationSans-Italic.ttf",a["Times-Roman"]="FoxitSerif.pfb",a["Times-Bold"]="FoxitSerifBold.pfb",a["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",a["Times-Italic"]="FoxitSerifItalic.pfb",a.Symbol="FoxitSymbol.pfb",a.ZapfDingbats="FoxitDingbats.pfb",a["LiberationSans-Regular"]="LiberationSans-Regular.ttf",a["LiberationSans-Bold"]="LiberationSans-Bold.ttf",a["LiberationSans-Italic"]="LiberationSans-Italic.ttf",a["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"});b.getFontNameToFileMap=e;const t=(0,n.getLookupTableFactory)(function(a){a.Calibri="Helvetica",a["Calibri-Bold"]="Helvetica-Bold",a["Calibri-BoldItalic"]="Helvetica-BoldOblique",a["Calibri-Italic"]="Helvetica-Oblique",a.CenturyGothic="Helvetica",a["CenturyGothic-Bold"]="Helvetica-Bold",a["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",a["CenturyGothic-Italic"]="Helvetica-Oblique",a.ComicSansMS="Comic Sans MS",a["ComicSansMS-Bold"]="Comic Sans MS-Bold",a["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",a["ComicSansMS-Italic"]="Comic Sans MS-Italic",a.Impact="Helvetica",a["ItcSymbol-Bold"]="Helvetica-Bold",a["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",a["ItcSymbol-Book"]="Helvetica",a["ItcSymbol-BookItalic"]="Helvetica-Oblique",a["ItcSymbol-Medium"]="Helvetica",a["ItcSymbol-MediumItalic"]="Helvetica-Oblique",a.LucidaConsole="Courier",a["LucidaConsole-Bold"]="Courier-Bold",a["LucidaConsole-BoldItalic"]="Courier-BoldOblique",a["LucidaConsole-Italic"]="Courier-Oblique",a["LucidaSans-Demi"]="Helvetica-Bold",a["MS-Gothic"]="MS Gothic",a["MS-Gothic-Bold"]="MS Gothic-Bold",a["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",a["MS-Gothic-Italic"]="MS Gothic-Italic",a["MS-Mincho"]="MS Mincho",a["MS-Mincho-Bold"]="MS Mincho-Bold",a["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",a["MS-Mincho-Italic"]="MS Mincho-Italic",a["MS-PGothic"]="MS PGothic",a["MS-PGothic-Bold"]="MS PGothic-Bold",a["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",a["MS-PGothic-Italic"]="MS PGothic-Italic",a["MS-PMincho"]="MS PMincho",a["MS-PMincho-Bold"]="MS PMincho-Bold",a["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",a["MS-PMincho-Italic"]="MS PMincho-Italic",a.NuptialScript="Times-Italic",a.SegoeUISymbol="Helvetica"});b.getNonStdFontMap=t;const c=(0,n.getLookupTableFactory)(function(a){a["Adobe Jenson"]=!0,a["Adobe Text"]=!0,a.Albertus=!0,a.Aldus=!0,a.Alexandria=!0,a.Algerian=!0,a["American Typewriter"]=!0,a.Antiqua=!0,a.Apex=!0,a.Arno=!0,a.Aster=!0,a.Aurora=!0,a.Baskerville=!0,a.Bell=!0,a.Bembo=!0,a["Bembo Schoolbook"]=!0,a.Benguiat=!0,a["Berkeley Old Style"]=!0,a["Bernhard Modern"]=!0,a["Berthold City"]=!0,a.Bodoni=!0,a["Bauer Bodoni"]=!0,a["Book Antiqua"]=!0,a.Bookman=!0,a["Bordeaux Roman"]=!0,a["Californian FB"]=!0,a.Calisto=!0,a.Calvert=!0,a.Capitals=!0,a.Cambria=!0,a.Cartier=!0,a.Caslon=!0,a.Catull=!0,a.Centaur=!0,a["Century Old Style"]=!0,a["Century Schoolbook"]=!0,a.Chaparral=!0,a["Charis SIL"]=!0,a.Cheltenham=!0,a["Cholla Slab"]=!0,a.Clarendon=!0,a.Clearface=!0,a.Cochin=!0,a.Colonna=!0,a["Computer Modern"]=!0,a["Concrete Roman"]=!0,a.Constantia=!0,a["Cooper Black"]=!0,a.Corona=!0,a.Ecotype=!0,a.Egyptienne=!0,a.Elephant=!0,a.Excelsior=!0,a.Fairfield=!0,a["FF Scala"]=!0,a.Folkard=!0,a.Footlight=!0,a.FreeSerif=!0,a["Friz Quadrata"]=!0,a.Garamond=!0,a.Gentium=!0,a.Georgia=!0,a.Gloucester=!0,a["Goudy Old Style"]=!0,a["Goudy Schoolbook"]=!0,a["Goudy Pro Font"]=!0,a.Granjon=!0,a["Guardian Egyptian"]=!0,a.Heather=!0,a.Hercules=!0,a["High Tower Text"]=!0,a.Hiroshige=!0,a["Hoefler Text"]=!0,a["Humana Serif"]=!0,a.Imprint=!0,a["Ionic No. 5"]=!0,a.Janson=!0,a.Joanna=!0,a.Korinna=!0,a.Lexicon=!0,a.LiberationSerif=!0,a["Liberation Serif"]=!0,a["Linux Libertine"]=!0,a.Literaturnaya=!0,a.Lucida=!0,a["Lucida Bright"]=!0,a.Melior=!0,a.Memphis=!0,a.Miller=!0,a.Minion=!0,a.Modern=!0,a["Mona Lisa"]=!0,a["Mrs Eaves"]=!0,a["MS Serif"]=!0,a["Museo Slab"]=!0,a["New York"]=!0,a["Nimbus Roman"]=!0,a["NPS Rawlinson Roadway"]=!0,a.NuptialScript=!0,a.Palatino=!0,a.Perpetua=!0,a.Plantin=!0,a["Plantin Schoolbook"]=!0,a.Playbill=!0,a["Poor Richard"]=!0,a["Rawlinson Roadway"]=!0,a.Renault=!0,a.Requiem=!0,a.Rockwell=!0,a.Roman=!0,a["Rotis Serif"]=!0,a.Sabon=!0,a.Scala=!0,a.Seagull=!0,a.Sistina=!0,a.Souvenir=!0,a.STIX=!0,a["Stone Informal"]=!0,a["Stone Serif"]=!0,a.Sylfaen=!0,a.Times=!0,a.Trajan=!0,a.Trinit\u00E9=!0,a["Trump Mediaeval"]=!0,a.Utopia=!0,a["Vale Type"]=!0,a["Bitstream Vera"]=!0,a["Vera Serif"]=!0,a.Versailles=!0,a.Wanted=!0,a.Weiss=!0,a["Wide Latin"]=!0,a.Windsor=!0,a.XITS=!0});b.getSerifFonts=c;const Y=(0,n.getLookupTableFactory)(function(a){a.Dingbats=!0,a.Symbol=!0,a.ZapfDingbats=!0,a.Wingdings=!0,a["Wingdings-Bold"]=!0,a["Wingdings-Regular"]=!0});b.getSymbolsFonts=Y;const ee=(0,n.getLookupTableFactory)(function(a){a[2]=10,a[3]=32,a[4]=33,a[5]=34,a[6]=35,a[7]=36,a[8]=37,a[9]=38,a[10]=39,a[11]=40,a[12]=41,a[13]=42,a[14]=43,a[15]=44,a[16]=45,a[17]=46,a[18]=47,a[19]=48,a[20]=49,a[21]=50,a[22]=51,a[23]=52,a[24]=53,a[25]=54,a[26]=55,a[27]=56,a[28]=57,a[29]=58,a[30]=894,a[31]=60,a[32]=61,a[33]=62,a[34]=63,a[35]=64,a[36]=65,a[37]=66,a[38]=67,a[39]=68,a[40]=69,a[41]=70,a[42]=71,a[43]=72,a[44]=73,a[45]=74,a[46]=75,a[47]=76,a[48]=77,a[49]=78,a[50]=79,a[51]=80,a[52]=81,a[53]=82,a[54]=83,a[55]=84,a[56]=85,a[57]=86,a[58]=87,a[59]=88,a[60]=89,a[61]=90,a[62]=91,a[63]=92,a[64]=93,a[65]=94,a[66]=95,a[67]=96,a[68]=97,a[69]=98,a[70]=99,a[71]=100,a[72]=101,a[73]=102,a[74]=103,a[75]=104,a[76]=105,a[77]=106,a[78]=107,a[79]=108,a[80]=109,a[81]=110,a[82]=111,a[83]=112,a[84]=113,a[85]=114,a[86]=115,a[87]=116,a[88]=117,a[89]=118,a[90]=119,a[91]=120,a[92]=121,a[93]=122,a[94]=123,a[95]=124,a[96]=125,a[97]=126,a[98]=196,a[99]=197,a[100]=199,a[101]=201,a[102]=209,a[103]=214,a[104]=220,a[105]=225,a[106]=224,a[107]=226,a[108]=228,a[109]=227,a[110]=229,a[111]=231,a[112]=233,a[113]=232,a[114]=234,a[115]=235,a[116]=237,a[117]=236,a[118]=238,a[119]=239,a[120]=241,a[121]=243,a[122]=242,a[123]=244,a[124]=246,a[125]=245,a[126]=250,a[127]=249,a[128]=251,a[129]=252,a[130]=8224,a[131]=176,a[132]=162,a[133]=163,a[134]=167,a[135]=8226,a[136]=182,a[137]=223,a[138]=174,a[139]=169,a[140]=8482,a[141]=180,a[142]=168,a[143]=8800,a[144]=198,a[145]=216,a[146]=8734,a[147]=177,a[148]=8804,a[149]=8805,a[150]=165,a[151]=181,a[152]=8706,a[153]=8721,a[154]=8719,a[156]=8747,a[157]=170,a[158]=186,a[159]=8486,a[160]=230,a[161]=248,a[162]=191,a[163]=161,a[164]=172,a[165]=8730,a[166]=402,a[167]=8776,a[168]=8710,a[169]=171,a[170]=187,a[171]=8230,a[179]=8220,a[180]=8221,a[181]=8216,a[182]=8217,a[200]=193,a[203]=205,a[207]=211,a[210]=218,a[223]=711,a[224]=321,a[225]=322,a[226]=352,a[227]=353,a[228]=381,a[229]=382,a[233]=221,a[234]=253,a[252]=263,a[253]=268,a[254]=269,a[258]=258,a[260]=260,a[261]=261,a[265]=280,a[266]=281,a[267]=282,a[268]=283,a[269]=313,a[275]=323,a[276]=324,a[278]=328,a[283]=344,a[284]=345,a[285]=346,a[286]=347,a[292]=367,a[295]=377,a[296]=378,a[298]=380,a[305]=963,a[306]=964,a[307]=966,a[308]=8215,a[309]=8252,a[310]=8319,a[311]=8359,a[312]=8592,a[313]=8593,a[337]=9552,a[493]=1039,a[494]=1040,a[672]=1488,a[673]=1489,a[674]=1490,a[675]=1491,a[676]=1492,a[677]=1493,a[678]=1494,a[679]=1495,a[680]=1496,a[681]=1497,a[682]=1498,a[683]=1499,a[684]=1500,a[685]=1501,a[686]=1502,a[687]=1503,a[688]=1504,a[689]=1505,a[690]=1506,a[691]=1507,a[692]=1508,a[693]=1509,a[694]=1510,a[695]=1511,a[696]=1512,a[697]=1513,a[698]=1514,a[705]=1524,a[706]=8362,a[710]=64288,a[711]=64298,a[759]=1617,a[761]=1776,a[763]=1778,a[775]=1652,a[777]=1764,a[778]=1780,a[779]=1781,a[780]=1782,a[782]=771,a[783]=64726,a[786]=8363,a[788]=8532,a[790]=768,a[791]=769,a[792]=768,a[795]=803,a[797]=64336,a[798]=64337,a[799]=64342,a[800]=64343,a[801]=64344,a[802]=64345,a[803]=64362,a[804]=64363,a[805]=64364,a[2424]=7821,a[2425]=7822,a[2426]=7823,a[2427]=7824,a[2428]=7825,a[2429]=7826,a[2430]=7827,a[2433]=7682,a[2678]=8045,a[2679]=8046,a[2830]=1552,a[2838]=686,a[2840]=751,a[2842]=753,a[2843]=754,a[2844]=755,a[2846]=757,a[2856]=767,a[2857]=848,a[2858]=849,a[2862]=853,a[2863]=854,a[2864]=855,a[2865]=861,a[2866]=862,a[2906]=7460,a[2908]=7462,a[2909]=7463,a[2910]=7464,a[2912]=7466,a[2913]=7467,a[2914]=7468,a[2916]=7470,a[2917]=7471,a[2918]=7472,a[2920]=7474,a[2921]=7475,a[2922]=7476,a[2924]=7478,a[2925]=7479,a[2926]=7480,a[2928]=7482,a[2929]=7483,a[2930]=7484,a[2932]=7486,a[2933]=7487,a[2934]=7488,a[2936]=7490,a[2937]=7491,a[2938]=7492,a[2940]=7494,a[2941]=7495,a[2942]=7496,a[2944]=7498,a[2946]=7500,a[2948]=7502,a[2950]=7504,a[2951]=7505,a[2952]=7506,a[2954]=7508,a[2955]=7509,a[2956]=7510,a[2958]=7512,a[2959]=7513,a[2960]=7514,a[2962]=7516,a[2963]=7517,a[2964]=7518,a[2966]=7520,a[2967]=7521,a[2968]=7522,a[2970]=7524,a[2971]=7525,a[2972]=7526,a[2974]=7528,a[2975]=7529,a[2976]=7530,a[2978]=1537,a[2979]=1538,a[2980]=1539,a[2982]=1549,a[2983]=1551,a[2984]=1552,a[2986]=1554,a[2987]=1555,a[2988]=1556,a[2990]=1623,a[2991]=1624,a[2995]=1775,a[2999]=1791,a[3002]=64290,a[3003]=64291,a[3004]=64292,a[3006]=64294,a[3007]=64295,a[3008]=64296,a[3011]=1900,a[3014]=8223,a[3015]=8244,a[3017]=7532,a[3018]=7533,a[3019]=7534,a[3075]=7590,a[3076]=7591,a[3079]=7594,a[3080]=7595,a[3083]=7598,a[3084]=7599,a[3087]=7602,a[3088]=7603,a[3091]=7606,a[3092]=7607,a[3095]=7610,a[3096]=7611,a[3099]=7614,a[3100]=7615,a[3103]=7618,a[3104]=7619,a[3107]=8337,a[3108]=8338,a[3116]=1884,a[3119]=1885,a[3120]=1885,a[3123]=1886,a[3124]=1886,a[3127]=1887,a[3128]=1887,a[3131]=1888,a[3132]=1888,a[3135]=1889,a[3136]=1889,a[3139]=1890,a[3140]=1890,a[3143]=1891,a[3144]=1891,a[3147]=1892,a[3148]=1892,a[3153]=580,a[3154]=581,a[3157]=584,a[3158]=585,a[3161]=588,a[3162]=589,a[3165]=891,a[3166]=892,a[3169]=1274,a[3170]=1275,a[3173]=1278,a[3174]=1279,a[3181]=7622,a[3182]=7623,a[3282]=11799,a[3316]=578,a[3379]=42785,a[3393]=1159,a[3416]=8377});b.getGlyphMapForStandardFonts=ee;const N=(0,n.getLookupTableFactory)(function(a){a[227]=322,a[264]=261,a[291]=346});b.getSupplementalGlyphMapForArialBlack=N;const I=(0,n.getLookupTableFactory)(function(a){a[1]=32,a[4]=65,a[5]=192,a[6]=193,a[9]=196,a[17]=66,a[18]=67,a[21]=268,a[24]=68,a[28]=69,a[29]=200,a[30]=201,a[32]=282,a[38]=70,a[39]=71,a[44]=72,a[47]=73,a[48]=204,a[49]=205,a[58]=74,a[60]=75,a[62]=76,a[68]=77,a[69]=78,a[75]=79,a[76]=210,a[80]=214,a[87]=80,a[89]=81,a[90]=82,a[92]=344,a[94]=83,a[97]=352,a[100]=84,a[104]=85,a[109]=220,a[115]=86,a[116]=87,a[121]=88,a[122]=89,a[124]=221,a[127]=90,a[129]=381,a[258]=97,a[259]=224,a[260]=225,a[263]=228,a[268]=261,a[271]=98,a[272]=99,a[273]=263,a[275]=269,a[282]=100,a[286]=101,a[287]=232,a[288]=233,a[290]=283,a[295]=281,a[296]=102,a[336]=103,a[346]=104,a[349]=105,a[350]=236,a[351]=237,a[361]=106,a[364]=107,a[367]=108,a[371]=322,a[373]=109,a[374]=110,a[381]=111,a[382]=242,a[383]=243,a[386]=246,a[393]=112,a[395]=113,a[396]=114,a[398]=345,a[400]=115,a[401]=347,a[403]=353,a[410]=116,a[437]=117,a[442]=252,a[448]=118,a[449]=119,a[454]=120,a[455]=121,a[457]=253,a[460]=122,a[462]=382,a[463]=380,a[853]=44,a[855]=58,a[856]=46,a[876]=47,a[878]=45,a[882]=45,a[894]=40,a[895]=41,a[896]=91,a[897]=93,a[923]=64,a[1004]=48,a[1005]=49,a[1006]=50,a[1007]=51,a[1008]=52,a[1009]=53,a[1010]=54,a[1011]=55,a[1012]=56,a[1013]=57,a[1081]=37,a[1085]=43,a[1086]=45});b.getSupplementalGlyphMapForCalibri=I;function f(a){const E=(0,P.normalizeFontName)(a);return D()[E]}function x(a){const E=(0,P.normalizeFontName)(a);return!!(D()[E]||t()[E]||c()[E]||Y()[E])}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ToUnicodeMap=b.IdentityToUnicodeMap=void 0;var n=ce(2);class P{constructor(t=[]){this._map=t}get length(){return this._map.length}forEach(t){for(const c in this._map)t(c,this._map[c].charCodeAt(0))}has(t){return this._map[t]!==void 0}get(t){return this._map[t]}charCodeOf(t){const c=this._map;if(c.length<=65536)return c.indexOf(t);for(const Y in c)if(c[Y]===t)return Y|0;return-1}amend(t){for(const c in t)this._map[c]=t[c]}}b.ToUnicodeMap=P;class D{constructor(t,c){this.firstChar=t,this.lastChar=c}get length(){return this.lastChar+1-this.firstChar}forEach(t){for(let c=this.firstChar,Y=this.lastChar;c<=Y;c++)t(c,c)}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){(0,n.unreachable)("Should not call amend()")}}b.IdentityToUnicodeMap=D},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.CFFFont=void 0;var n=ce(35),P=ce(38),D=ce(2);class e{constructor(c,Y){this.properties=Y;const ee=new n.CFFParser(c,Y,P.SEAC_ANALYSIS_ENABLED);this.cff=ee.parse(),this.cff.duplicateFirstGlyph();const N=new n.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=N.compile()}catch(I){(0,D.warn)("Failed to compile font "+Y.loadedName),this.data=c}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const c=this.cff,Y=this.properties,{cidToGidMap:ee,cMap:N}=Y,I=c.charset.charset;let f,x;if(Y.composite){let E;if((ee==null?void 0:ee.length)>0){E=Object.create(null);for(let O=0,M=ee.length;O<M;O++){const B=ee[O];B!==void 0&&(E[B]=O)}}f=Object.create(null);let w;if(c.isCIDFont)for(x=0;x<I.length;x++){const O=I[x];w=N.charCodeOf(O),(E==null?void 0:E[w])!==void 0&&(w=E[w]),f[w]=x}else for(x=0;x<c.charStrings.count;x++)w=N.charCodeOf(x),f[w]=x;return f}let a=c.encoding?c.encoding.encoding:null;return Y.isInternalFont&&(a=Y.defaultEncoding),f=(0,P.type1FontGlyphMapping)(Y,a,I),f}hasGlyphId(c){return this.cff.hasGlyphId(c)}_createBuiltInEncoding(){const{charset:c,encoding:Y}=this.cff;if(!c||!Y)return;const ee=c.charset,N=Y.encoding,I=[];for(const f in N){const x=N[f];if(x>=0){const a=ee[x];a&&(I[f]=a)}}I.length>0&&(this.properties.builtInEncoding=I)}}b.CFFFont=e},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.FontRendererFactory=void 0;var n=ce(2),P=ce(35),D=ce(39),e=ce(37),t=ce(8);function c(o,l){return(o[l]<<24|o[l+1]<<16|o[l+2]<<8|o[l+3])>>>0}function Y(o,l){return o[l]<<8|o[l+1]}function ee(o,l){return(o[l]<<24|o[l+1]<<16)>>16}function N(o,l){return o[l]<<24>>24}function I(o,l){return ee(o,l)/16384}function f(o){const l=o.length;let F=32768;return l<1240?F=107:l<33900&&(F=1131),F}function x(o,l,F){const s=Y(o,l+2)===1?c(o,l+8):c(o,l+16),r=Y(o,l+s);let u,C,g;if(r===4){Y(o,l+s+2);const p=Y(o,l+s+6)>>1;for(C=l+s+14,u=[],g=0;g<p;g++,C+=2)u[g]={end:Y(o,C)};for(C+=2,g=0;g<p;g++,C+=2)u[g].start=Y(o,C);for(g=0;g<p;g++,C+=2)u[g].idDelta=Y(o,C);for(g=0;g<p;g++,C+=2){let X=Y(o,C);if(X!==0){u[g].ids=[];for(let $=0,y=u[g].end-u[g].start+1;$<y;$++)u[g].ids[$]=Y(o,C+X),X+=2}}return u}else if(r===12){const p=c(o,l+s+12);for(C=l+s+16,u=[],g=0;g<p;g++)l=c(o,C),u.push({start:l,end:c(o,C+4),idDelta:c(o,C+8)-l}),C+=12;return u}throw new n.FormatError(`unsupported cmap: ${r}`)}function a(o,l,F,s){var g,p,X;const r={},C=new P.CFFParser(new t.Stream(o,l,F-l),r,s).parse();return{glyphs:C.charStrings.objects,subrs:(p=(g=C.topDict.privateDict)==null?void 0:g.subrsIndex)==null?void 0:p.objects,gsubrs:(X=C.globalSubrIndex)==null?void 0:X.objects,isCFFCIDFont:C.isCIDFont,fdSelect:C.fdSelect,fdArray:C.fdArray}}function E(o,l,F){let s,r;F?(s=4,r=c):(s=2,r=(g,p)=>2*Y(g,p));const u=[];let C=r(l,0);for(let g=s;g<l.length;g+=s){const p=r(l,g);u.push(o.subarray(C,p)),C=p}return u}function w(o,l){const F=l.codePointAt(0);let s=0,r=0,u=o.length-1;for(;r<u;){const C=r+u+1>>1;F<o[C].start?u=C-1:r=C}return o[r].start<=F&&F<=o[r].end&&(s=o[r].idDelta+(o[r].ids?o[r].ids[F-o[r].start]:F)&65535),{charCode:F,glyphId:s}}function O(o,l,F){function s(y,v){l.push({cmd:"moveTo",args:[y,v]})}function r(y,v){l.push({cmd:"lineTo",args:[y,v]})}function u(y,v,m,h){l.push({cmd:"quadraticCurveTo",args:[y,v,m,h]})}let C=0;const g=ee(o,C);let p,X=0,$=0;if(C+=10,g<0)do{p=Y(o,C);const y=Y(o,C+2);C+=4;let v,m;p&1?(p&2?(v=ee(o,C),m=ee(o,C+2)):(v=Y(o,C),m=Y(o,C+2)),C+=4):p&2?(v=N(o,C++),m=N(o,C++)):(v=o[C++],m=o[C++]),p&2?(X=v,$=m):(X=0,$=0);let h=1,A=1,j=0,H=0;p&8?(h=A=I(o,C),C+=2):p&64?(h=I(o,C),A=I(o,C+2),C+=4):p&128&&(h=I(o,C),j=I(o,C+2),H=I(o,C+4),A=I(o,C+6),C+=8);const J=F.glyphs[y];J&&(l.push({cmd:"save"},{cmd:"transform",args:[h,j,H,A,X,$]}),O(J,l,F),l.push({cmd:"restore"}))}while(p&32);else{const y=[];let v,m;for(v=0;v<g;v++)y.push(Y(o,C)),C+=2;const h=Y(o,C);C+=2+h;const A=y.at(-1)+1,j=[];for(;j.length<A;){p=o[C++];let J=1;for(p&8&&(J+=o[C++]);J-- >0;)j.push({flags:p})}for(v=0;v<A;v++){switch(j[v].flags&18){case 0:X+=ee(o,C),C+=2;break;case 2:X-=o[C++];break;case 18:X+=o[C++];break}j[v].x=X}for(v=0;v<A;v++){switch(j[v].flags&36){case 0:$+=ee(o,C),C+=2;break;case 4:$-=o[C++];break;case 36:$+=o[C++];break}j[v].y=$}let H=0;for(C=0;C<g;C++){const J=y[C],oe=j.slice(H,J+1);if(oe[0].flags&1)oe.push(oe[0]);else if(oe.at(-1).flags&1)oe.unshift(oe.at(-1));else{const q={flags:1,x:(oe[0].x+oe.at(-1).x)/2,y:(oe[0].y+oe.at(-1).y)/2};oe.unshift(q),oe.push(q)}for(s(oe[0].x,oe[0].y),v=1,m=oe.length;v<m;v++)oe[v].flags&1?r(oe[v].x,oe[v].y):oe[v+1].flags&1?(u(oe[v].x,oe[v].y,oe[v+1].x,oe[v+1].y),v++):u(oe[v].x,oe[v].y,(oe[v].x+oe[v+1].x)/2,(oe[v].y+oe[v+1].y)/2);H=J+1}}}function M(o,l,F,s){function r(v,m){l.push({cmd:"moveTo",args:[v,m]})}function u(v,m){l.push({cmd:"lineTo",args:[v,m]})}function C(v,m,h,A,j,H){l.push({cmd:"bezierCurveTo",args:[v,m,h,A,j,H]})}const g=[];let p=0,X=0,$=0;function y(v){var h;let m=0;for(;m<v.length;){let A=!1,j=v[m++],H,J,oe,q,re,Z,K,S,k;switch(j){case 1:$+=g.length>>1,A=!0;break;case 3:$+=g.length>>1,A=!0;break;case 4:X+=g.pop(),r(p,X),A=!0;break;case 5:for(;g.length>0;)p+=g.shift(),X+=g.shift(),u(p,X);break;case 6:for(;g.length>0&&(p+=g.shift(),u(p,X),g.length!==0);)X+=g.shift(),u(p,X);break;case 7:for(;g.length>0&&(X+=g.shift(),u(p,X),g.length!==0);)p+=g.shift(),u(p,X);break;case 8:for(;g.length>0;)H=p+g.shift(),oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q+g.shift(),C(H,oe,J,q,p,X);break;case 10:if(S=g.pop(),k=null,F.isCFFCIDFont){const _=F.fdSelect.getFDIndex(s);if(_>=0&&_<F.fdArray.length){const G=F.fdArray[_];let Q;(h=G.privateDict)!=null&&h.subrsIndex&&(Q=G.privateDict.subrsIndex.objects),Q&&(S+=f(Q),k=Q[S])}else(0,n.warn)("Invalid fd index for glyph index.")}else k=F.subrs[S+F.subrsBias];k&&y(k);break;case 11:return;case 12:switch(j=v[m++],j){case 34:H=p+g.shift(),J=H+g.shift(),re=X+g.shift(),p=J+g.shift(),C(H,X,J,re,p,re),H=p+g.shift(),J=H+g.shift(),p=J+g.shift(),C(H,re,J,X,p,X);break;case 35:H=p+g.shift(),oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q+g.shift(),C(H,oe,J,q,p,X),H=p+g.shift(),oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q+g.shift(),C(H,oe,J,q,p,X),g.pop();break;case 36:H=p+g.shift(),re=X+g.shift(),J=H+g.shift(),Z=re+g.shift(),p=J+g.shift(),C(H,re,J,Z,p,Z),H=p+g.shift(),J=H+g.shift(),K=Z+g.shift(),p=J+g.shift(),C(H,Z,J,K,p,X);break;case 37:const _=p,G=X;H=p+g.shift(),oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q+g.shift(),C(H,oe,J,q,p,X),H=p+g.shift(),oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J,X=q,Math.abs(p-_)>Math.abs(X-G)?p+=g.shift():X+=g.shift(),C(H,oe,J,q,p,X);break;default:throw new n.FormatError(`unknown operator: 12 ${j}`)}break;case 14:if(g.length>=4){const _=g.pop(),G=g.pop();X=g.pop(),p=g.pop(),l.push({cmd:"save"},{cmd:"translate",args:[p,X]});let Q=w(F.cmap,String.fromCharCode(F.glyphNameMap[e.StandardEncoding[_]]));M(F.glyphs[Q.glyphId],l,F,Q.glyphId),l.push({cmd:"restore"}),Q=w(F.cmap,String.fromCharCode(F.glyphNameMap[e.StandardEncoding[G]])),M(F.glyphs[Q.glyphId],l,F,Q.glyphId)}return;case 18:$+=g.length>>1,A=!0;break;case 19:$+=g.length>>1,m+=$+7>>3,A=!0;break;case 20:$+=g.length>>1,m+=$+7>>3,A=!0;break;case 21:X+=g.pop(),p+=g.pop(),r(p,X),A=!0;break;case 22:p+=g.pop(),r(p,X),A=!0;break;case 23:$+=g.length>>1,A=!0;break;case 24:for(;g.length>2;)H=p+g.shift(),oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q+g.shift(),C(H,oe,J,q,p,X);p+=g.shift(),X+=g.shift(),u(p,X);break;case 25:for(;g.length>6;)p+=g.shift(),X+=g.shift(),u(p,X);H=p+g.shift(),oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q+g.shift(),C(H,oe,J,q,p,X);break;case 26:for(g.length%2&&(p+=g.shift());g.length>0;)H=p,oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J,X=q+g.shift(),C(H,oe,J,q,p,X);break;case 27:for(g.length%2&&(X+=g.shift());g.length>0;)H=p+g.shift(),oe=X,J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q,C(H,oe,J,q,p,X);break;case 28:g.push((v[m]<<24|v[m+1]<<16)>>16),m+=2;break;case 29:S=g.pop()+F.gsubrsBias,k=F.gsubrs[S],k&&y(k);break;case 30:for(;g.length>0&&(H=p,oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q+(g.length===1?g.shift():0),C(H,oe,J,q,p,X),g.length!==0);)H=p+g.shift(),oe=X,J=H+g.shift(),q=oe+g.shift(),X=q+g.shift(),p=J+(g.length===1?g.shift():0),C(H,oe,J,q,p,X);break;case 31:for(;g.length>0&&(H=p+g.shift(),oe=X,J=H+g.shift(),q=oe+g.shift(),X=q+g.shift(),p=J+(g.length===1?g.shift():0),C(H,oe,J,q,p,X),g.length!==0);)H=p,oe=X+g.shift(),J=H+g.shift(),q=oe+g.shift(),p=J+g.shift(),X=q+(g.length===1?g.shift():0),C(H,oe,J,q,p,X);break;default:if(j<32)throw new n.FormatError(`unknown operator: ${j}`);j<247?g.push(j-139):j<251?g.push((j-247)*256+v[m++]+108):j<255?g.push(-(j-251)*256-v[m++]-108):(g.push((v[m]<<24|v[m+1]<<16|v[m+2]<<8|v[m+3])/65536),m+=4);break}A&&(g.length=0)}}y(o)}const B=[];class z{constructor(l){this.constructor===z&&(0,n.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=l,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(l){const{charCode:F,glyphId:s}=w(this.cmap,l);let r=this.compiledGlyphs[s];if(!r)try{r=this.compileGlyph(this.glyphs[s],s),this.compiledGlyphs[s]=r}catch(u){throw this.compiledGlyphs[s]=B,this.compiledCharCodeToGlyphId[F]===void 0&&(this.compiledCharCodeToGlyphId[F]=s),u}return this.compiledCharCodeToGlyphId[F]===void 0&&(this.compiledCharCodeToGlyphId[F]=s),r}compileGlyph(l,F){if(!l||l.length===0||l[0]===14)return B;let s=this.fontMatrix;if(this.isCFFCIDFont){const u=this.fdSelect.getFDIndex(F);u>=0&&u<this.fdArray.length?s=this.fdArray[u].getByName("FontMatrix")||n.FONT_IDENTITY_MATRIX:(0,n.warn)("Invalid fd index for glyph index.")}const r=[{cmd:"save"},{cmd:"transform",args:s.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(l,r,F),r.push({cmd:"restore"}),r}compileGlyphImpl(){(0,n.unreachable)("Children classes should implement this.")}hasBuiltPath(l){const{charCode:F,glyphId:s}=w(this.cmap,l);return this.compiledGlyphs[s]!==void 0&&this.compiledCharCodeToGlyphId[F]!==void 0}}class W extends z{constructor(l,F,s){super(s||[488e-6,0,0,488e-6,0,0]),this.glyphs=l,this.cmap=F}compileGlyphImpl(l,F){O(l,F,this)}}class d extends z{constructor(l,F,s,r){super(s||[.001,0,0,.001,0,0]),this.glyphs=l.glyphs,this.gsubrs=l.gsubrs||[],this.subrs=l.subrs||[],this.cmap=F,this.glyphNameMap=r||(0,D.getGlyphsUnicode)(),this.gsubrsBias=f(this.gsubrs),this.subrsBias=f(this.subrs),this.isCFFCIDFont=l.isCFFCIDFont,this.fdSelect=l.fdSelect,this.fdArray=l.fdArray}compileGlyphImpl(l,F,s){M(l,F,this,s)}}class T{static create(l,F){const s=new Uint8Array(l.data);let r,u,C,g,p,X;const $=Y(s,4);for(let y=0,v=12;y<$;y++,v+=16){const m=(0,n.bytesToString)(s.subarray(v,v+4)),h=c(s,v+8),A=c(s,v+12);switch(m){case"cmap":r=x(s,h);break;case"glyf":u=s.subarray(h,h+A);break;case"loca":C=s.subarray(h,h+A);break;case"head":X=Y(s,h+18),p=Y(s,h+50);break;case"CFF ":g=a(s,h,h+A,F);break}}if(u){const y=X?[1/X,0,0,1/X,0,0]:l.fontMatrix;return new W(E(u,C,p),r,y)}return new d(g,r,l.fontMatrix,l.glyphNameMap)}}b.FontRendererFactory=T},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.getMetrics=b.getFontBasicMetrics=void 0;var n=ce(3);const P=(0,n.getLookupTableFactory)(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,n.getLookupTableFactory)(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),e["Helvetica-Bold"]=(0,n.getLookupTableFactory)(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),e["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),e["Helvetica-Oblique"]=(0,n.getLookupTableFactory)(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),e.Symbol=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=333,t.universal=713,t.numbersign=500,t.existential=549,t.percent=833,t.ampersand=778,t.suchthat=439,t.parenleft=333,t.parenright=333,t.asteriskmath=500,t.plus=549,t.comma=250,t.minus=549,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=549,t.equal=549,t.greater=549,t.question=444,t.congruent=549,t.Alpha=722,t.Beta=667,t.Chi=722,t.Delta=612,t.Epsilon=611,t.Phi=763,t.Gamma=603,t.Eta=722,t.Iota=333,t.theta1=631,t.Kappa=722,t.Lambda=686,t.Mu=889,t.Nu=722,t.Omicron=722,t.Pi=768,t.Theta=741,t.Rho=556,t.Sigma=592,t.Tau=611,t.Upsilon=690,t.sigma1=439,t.Omega=768,t.Xi=645,t.Psi=795,t.Zeta=611,t.bracketleft=333,t.therefore=863,t.bracketright=333,t.perpendicular=658,t.underscore=500,t.radicalex=500,t.alpha=631,t.beta=549,t.chi=549,t.delta=494,t.epsilon=439,t.phi=521,t.gamma=411,t.eta=603,t.iota=329,t.phi1=603,t.kappa=549,t.lambda=549,t.mu=576,t.nu=521,t.omicron=549,t.pi=549,t.theta=521,t.rho=549,t.sigma=603,t.tau=439,t.upsilon=576,t.omega1=713,t.omega=686,t.xi=493,t.psi=686,t.zeta=494,t.braceleft=480,t.bar=200,t.braceright=480,t.similar=549,t.Euro=750,t.Upsilon1=620,t.minute=247,t.lessequal=549,t.fraction=167,t.infinity=713,t.florin=500,t.club=753,t.diamond=753,t.heart=753,t.spade=753,t.arrowboth=1042,t.arrowleft=987,t.arrowup=603,t.arrowright=987,t.arrowdown=603,t.degree=400,t.plusminus=549,t.second=411,t.greaterequal=549,t.multiply=549,t.proportional=713,t.partialdiff=494,t.bullet=460,t.divide=549,t.notequal=549,t.equivalence=549,t.approxequal=549,t.ellipsis=1e3,t.arrowvertex=603,t.arrowhorizex=1e3,t.carriagereturn=658,t.aleph=823,t.Ifraktur=686,t.Rfraktur=795,t.weierstrass=987,t.circlemultiply=768,t.circleplus=768,t.emptyset=823,t.intersection=768,t.union=768,t.propersuperset=713,t.reflexsuperset=713,t.notsubset=713,t.propersubset=713,t.reflexsubset=713,t.element=713,t.notelement=713,t.angle=768,t.gradient=713,t.registerserif=790,t.copyrightserif=790,t.trademarkserif=890,t.product=823,t.radical=549,t.dotmath=250,t.logicalnot=713,t.logicaland=603,t.logicalor=603,t.arrowdblboth=1042,t.arrowdblleft=987,t.arrowdblup=603,t.arrowdblright=987,t.arrowdbldown=603,t.lozenge=494,t.angleleft=329,t.registersans=790,t.copyrightsans=790,t.trademarksans=786,t.summation=713,t.parenlefttp=384,t.parenleftex=384,t.parenleftbt=384,t.bracketlefttp=384,t.bracketleftex=384,t.bracketleftbt=384,t.bracelefttp=494,t.braceleftmid=494,t.braceleftbt=494,t.braceex=494,t.angleright=329,t.integral=274,t.integraltp=686,t.integralex=686,t.integralbt=686,t.parenrighttp=384,t.parenrightex=384,t.parenrightbt=384,t.bracketrighttp=384,t.bracketrightex=384,t.bracketrightbt=384,t.bracerighttp=494,t.bracerightmid=494,t.bracerightbt=494,t.apple=790}),e["Times-Roman"]=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=333,t.quotedbl=408,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=564,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=564,t.equal=564,t.greater=564,t.question=444,t.at=921,t.A=722,t.B=667,t.C=667,t.D=722,t.E=611,t.F=556,t.G=722,t.H=722,t.I=333,t.J=389,t.K=722,t.L=611,t.M=889,t.N=722,t.O=722,t.P=556,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=722,t.W=944,t.X=722,t.Y=722,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=469,t.underscore=500,t.quoteleft=333,t.a=444,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=500,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=500,t.o=500,t.p=500,t.q=500,t.r=333,t.s=389,t.t=278,t.u=500,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=480,t.bar=200,t.braceright=480,t.asciitilde=541,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=180,t.quotedblleft=444,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=453,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=444,t.quotedblright=444,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=444,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=889,t.ordfeminine=276,t.Lslash=611,t.Oslash=722,t.OE=889,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=444,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=722,t.divide=564,t.Yacute=722,t.Acircumflex=722,t.aacute=444,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=444,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=444,t.Ncommaaccent=722,t.lacute=278,t.agrave=444,t.Tcommaaccent=611,t.Cacute=667,t.atilde=444,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=444,t.Amacron=722,t.rcaron=333,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=556,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=588,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=722,t.Abreve=722,t.multiply=564,t.uacute=500,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=444,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=722,t.Iacute=333,t.plusminus=564,t.brokenbar=200,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=333,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=326,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=444,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=344,t.Kcommaaccent=722,t.Lacute=611,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=722,t.zdotaccent=444,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=500,t.minus=564,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=564,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-Bold"]=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=333,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=1e3,t.ampersand=833,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=930,t.A=722,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=778,t.I=389,t.J=500,t.K=778,t.L=667,t.M=944,t.N=722,t.O=778,t.P=611,t.Q=778,t.R=722,t.S=556,t.T=667,t.U=722,t.V=722,t.W=1e3,t.X=722,t.Y=722,t.Z=667,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=581,t.underscore=500,t.quoteleft=333,t.a=500,t.b=556,t.c=444,t.d=556,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=333,t.k=556,t.l=278,t.m=833,t.n=556,t.o=500,t.p=556,t.q=556,t.r=444,t.s=389,t.t=333,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=394,t.bar=220,t.braceright=394,t.asciitilde=520,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=540,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=300,t.Lslash=667,t.Oslash=778,t.OE=1e3,t.ordmasculine=330,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=556,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=722,t.divide=570,t.Yacute=722,t.Acircumflex=722,t.aacute=500,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=667,t.Cacute=722,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=500,t.Amacron=722,t.rcaron=444,t.ccedilla=444,t.Zdotaccent=667,t.Thorn=611,t.Omacron=778,t.Racute=722,t.Sacute=556,t.dcaron=672,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=570,t.uacute=556,t.Tcaron=667,t.partialdiff=494,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=778,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=444,t.omacron=500,t.Zacute=667,t.Zcaron=667,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=416,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=778,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=300,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=556,t.threequarters=750,t.Scedilla=556,t.lcaron=394,t.Kcommaaccent=778,t.Lacute=667,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=667,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=778,t.degree=400,t.ograve=500,t.Ccaron=722,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=444,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=722,t.Lcommaaccent=667,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=444,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=556,t.minus=570,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=333,t.logicalnot=570,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-BoldItalic"]=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=389,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=832,t.A=667,t.B=667,t.C=667,t.D=722,t.E=667,t.F=667,t.G=722,t.H=778,t.I=389,t.J=500,t.K=667,t.L=611,t.M=889,t.N=722,t.O=722,t.P=611,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=667,t.W=889,t.X=667,t.Y=611,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=570,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=556,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=556,t.v=444,t.w=667,t.x=500,t.y=444,t.z=389,t.braceleft=348,t.bar=220,t.braceright=348,t.asciitilde=570,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=500,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=944,t.ordfeminine=266,t.Lslash=611,t.Oslash=722,t.OE=944,t.ordmasculine=300,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=611,t.divide=570,t.Yacute=611,t.Acircumflex=667,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=611,t.Cacute=667,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=556,t.acircumflex=500,t.Amacron=667,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=611,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=608,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=722,t.Agrave=667,t.Abreve=667,t.multiply=570,t.uacute=556,t.Tcaron=611,t.partialdiff=494,t.ydieresis=444,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=722,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=366,t.eogonek=444,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=576,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=382,t.Kcommaaccent=667,t.Lacute=611,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=722,t.zdotaccent=389,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=500,t.minus=606,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=606,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),e["Times-Italic"]=(0,n.getLookupTableFactory)(function(t){t.space=250,t.exclam=333,t.quotedbl=420,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=675,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=675,t.equal=675,t.greater=675,t.question=500,t.at=920,t.A=611,t.B=611,t.C=667,t.D=722,t.E=611,t.F=611,t.G=722,t.H=722,t.I=333,t.J=444,t.K=667,t.L=556,t.M=833,t.N=667,t.O=722,t.P=611,t.Q=722,t.R=611,t.S=500,t.T=556,t.U=722,t.V=611,t.W=833,t.X=611,t.Y=556,t.Z=556,t.bracketleft=389,t.backslash=278,t.bracketright=389,t.asciicircum=422,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=278,t.g=500,t.h=500,t.i=278,t.j=278,t.k=444,t.l=278,t.m=722,t.n=500,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=500,t.v=444,t.w=667,t.x=444,t.y=444,t.z=389,t.braceleft=400,t.bar=275,t.braceright=400,t.asciitilde=541,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=214,t.quotedblleft=556,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=523,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=556,t.quotedblright=556,t.guillemotright=500,t.ellipsis=889,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=889,t.AE=889,t.ordfeminine=276,t.Lslash=556,t.Oslash=722,t.OE=944,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=667,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=500,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=556,t.divide=675,t.Yacute=556,t.Acircumflex=611,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=500,t.Ncommaaccent=667,t.lacute=278,t.agrave=500,t.Tcommaaccent=556,t.Cacute=667,t.atilde=500,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=611,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=500,t.Amacron=611,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=556,t.Thorn=611,t.Omacron=722,t.Racute=611,t.Sacute=500,t.dcaron=544,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=611,t.Abreve=611,t.multiply=675,t.uacute=500,t.Tcaron=556,t.partialdiff=476,t.ydieresis=444,t.Nacute=667,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=667,t.Iacute=333,t.plusminus=675,t.brokenbar=275,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=389,t.omacron=500,t.Zacute=556,t.Zcaron=556,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=300,t.eogonek=444,t.Uogonek=722,t.Aacute=611,t.Adieresis=611,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=500,t.lcaron=300,t.Kcommaaccent=667,t.Lacute=556,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=500,t.Scommaaccent=500,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=667,t.otilde=500,t.Rcommaaccent=611,t.Lcommaaccent=556,t.Atilde=611,t.Aogonek=611,t.Aring=611,t.Otilde=722,t.zdotaccent=389,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=444,t.minus=675,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=675,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),e.ZapfDingbats=(0,n.getLookupTableFactory)(function(t){t.space=278,t.a1=974,t.a2=961,t.a202=974,t.a3=980,t.a4=719,t.a5=789,t.a119=790,t.a118=791,t.a117=690,t.a11=960,t.a12=939,t.a13=549,t.a14=855,t.a15=911,t.a16=933,t.a105=911,t.a17=945,t.a18=974,t.a19=755,t.a20=846,t.a21=762,t.a22=761,t.a23=571,t.a24=677,t.a25=763,t.a26=760,t.a27=759,t.a28=754,t.a6=494,t.a7=552,t.a8=537,t.a9=577,t.a10=692,t.a29=786,t.a30=788,t.a31=788,t.a32=790,t.a33=793,t.a34=794,t.a35=816,t.a36=823,t.a37=789,t.a38=841,t.a39=823,t.a40=833,t.a41=816,t.a42=831,t.a43=923,t.a44=744,t.a45=723,t.a46=749,t.a47=790,t.a48=792,t.a49=695,t.a50=776,t.a51=768,t.a52=792,t.a53=759,t.a54=707,t.a55=708,t.a56=682,t.a57=701,t.a58=826,t.a59=815,t.a60=789,t.a61=789,t.a62=707,t.a63=687,t.a64=696,t.a65=689,t.a66=786,t.a67=787,t.a68=713,t.a69=791,t.a70=785,t.a71=791,t.a72=873,t.a73=761,t.a74=762,t.a203=762,t.a75=759,t.a204=759,t.a76=892,t.a77=892,t.a78=788,t.a79=784,t.a81=438,t.a82=138,t.a83=277,t.a84=415,t.a97=392,t.a98=392,t.a99=668,t.a100=668,t.a89=390,t.a90=390,t.a93=317,t.a94=317,t.a91=276,t.a92=276,t.a205=509,t.a85=509,t.a206=410,t.a86=410,t.a87=234,t.a88=234,t.a95=334,t.a96=334,t.a101=732,t.a102=544,t.a103=544,t.a104=910,t.a106=667,t.a107=760,t.a108=760,t.a112=776,t.a111=595,t.a110=694,t.a109=626,t.a120=788,t.a121=788,t.a122=788,t.a123=788,t.a124=788,t.a125=788,t.a126=788,t.a127=788,t.a128=788,t.a129=788,t.a130=788,t.a131=788,t.a132=788,t.a133=788,t.a134=788,t.a135=788,t.a136=788,t.a137=788,t.a138=788,t.a139=788,t.a140=788,t.a141=788,t.a142=788,t.a143=788,t.a144=788,t.a145=788,t.a146=788,t.a147=788,t.a148=788,t.a149=788,t.a150=788,t.a151=788,t.a152=788,t.a153=788,t.a154=788,t.a155=788,t.a156=788,t.a157=788,t.a158=788,t.a159=788,t.a160=894,t.a161=838,t.a163=1016,t.a164=458,t.a196=748,t.a165=924,t.a192=748,t.a166=918,t.a167=927,t.a168=928,t.a169=928,t.a170=834,t.a171=873,t.a172=828,t.a173=924,t.a162=924,t.a174=917,t.a175=930,t.a176=931,t.a177=463,t.a178=883,t.a179=836,t.a193=836,t.a180=867,t.a199=867,t.a181=696,t.a200=696,t.a182=874,t.a201=874,t.a183=760,t.a184=946,t.a197=771,t.a185=865,t.a194=771,t.a198=888,t.a186=967,t.a195=888,t.a187=831,t.a188=873,t.a189=927,t.a190=970,t.a191=918})});b.getMetrics=P;const D=(0,n.getLookupTableFactory)(function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});b.getFontBasicMetrics=D},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.GlyfTable=void 0;const ce=1<<0,n=1<<1,P=1<<2,D=1<<3,e=1<<4,t=1<<5,c=1<<6,Y=1<<0,ee=1<<1,N=1<<3,I=1<<5,f=1<<6,x=1<<7,a=1<<8;class E{constructor({glyfTable:d,isGlyphLocationsLong:T,locaTable:o,numGlyphs:l}){this.glyphs=[];const F=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new DataView(d.buffer,d.byteOffset,d.byteLength),r=T?4:2;let u=T?F.getUint32(0):2*F.getUint16(0),C=0;for(let g=0;g<l;g++){C+=r;const p=T?F.getUint32(C):2*F.getUint16(C);if(p===u){this.glyphs.push(new w({}));continue}const X=w.parse(u,s);this.glyphs.push(X),u=p}}getSize(){return this.glyphs.reduce((d,T)=>{const o=T.getSize();return d+(o+3&-4)},0)}write(){const d=this.getSize(),T=new DataView(new ArrayBuffer(d)),o=d>131070,l=o?4:2,F=new DataView(new ArrayBuffer((this.glyphs.length+1)*l));o?F.setUint32(0,0):F.setUint16(0,0);let s=0,r=0;for(const u of this.glyphs)s+=u.write(s,T),s=s+3&-4,r+=l,o?F.setUint32(r,s):F.setUint16(r,s>>1);return{isLocationLong:o,loca:new Uint8Array(F.buffer),glyf:new Uint8Array(T.buffer)}}scale(d){for(let T=0,o=this.glyphs.length;T<o;T++)this.glyphs[T].scale(d[T])}}b.GlyfTable=E;class w{constructor({header:d=null,simple:T=null,composites:o=null}){this.header=d,this.simple=T,this.composites=o}static parse(d,T){const[o,l]=O.parse(d,T);if(d+=o,l.numberOfContours<0){const s=[];for(;;){const[r,u]=z.parse(d,T);if(d+=r,s.push(u),!(u.flags&I))break}return new w({header:l,composites:s})}const F=B.parse(d,T,l.numberOfContours);return new w({header:l,simple:F})}getSize(){if(!this.header)return 0;const d=this.simple?this.simple.getSize():this.composites.reduce((T,o)=>T+o.getSize(),0);return this.header.getSize()+d}write(d,T){if(!this.header)return 0;const o=d;if(d+=this.header.write(d,T),this.simple)d+=this.simple.write(d,T);else for(const l of this.composites)d+=l.write(d,T);return d-o}scale(d){if(!this.header)return;const T=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(T,d),this.simple)this.simple.scale(T,d);else for(const o of this.composites)o.scale(T,d)}}class O{constructor({numberOfContours:d,xMin:T,yMin:o,xMax:l,yMax:F}){this.numberOfContours=d,this.xMin=T,this.yMin=o,this.xMax=l,this.yMax=F}static parse(d,T){return[10,new O({numberOfContours:T.getInt16(d),xMin:T.getInt16(d+2),yMin:T.getInt16(d+4),xMax:T.getInt16(d+6),yMax:T.getInt16(d+8)})]}getSize(){return 10}write(d,T){return T.setInt16(d,this.numberOfContours),T.setInt16(d+2,this.xMin),T.setInt16(d+4,this.yMin),T.setInt16(d+6,this.xMax),T.setInt16(d+8,this.yMax),10}scale(d,T){this.xMin=Math.round(d+(this.xMin-d)*T),this.xMax=Math.round(d+(this.xMax-d)*T)}}class M{constructor({flags:d,xCoordinates:T,yCoordinates:o}){this.xCoordinates=T,this.yCoordinates=o,this.flags=d}}class B{constructor({contours:d,instructions:T}){this.contours=d,this.instructions=T}static parse(d,T,o){const l=[];for(let m=0;m<o;m++){const h=T.getUint16(d);d+=2,l.push(h)}const F=l[o-1]+1,s=T.getUint16(d);d+=2;const r=new Uint8Array(T).slice(d,d+s);d+=s;const u=[];for(let m=0;m<F;d++,m++){let h=T.getUint8(d);if(u.push(h),h&D){const A=T.getUint8(++d);h^=D;for(let j=0;j<A;j++)u.push(h);m+=A}}const C=[];let g=[],p=[],X=[];const $=[];let y=0,v=0;for(let m=0;m<F;m++){const h=u[m];if(h&n){const A=T.getUint8(d++);v+=h&e?A:-A,g.push(v)}else h&e||(v+=T.getInt16(d),d+=2),g.push(v);l[y]===m&&(y++,C.push(g),g=[])}v=0,y=0;for(let m=0;m<F;m++){const h=u[m];if(h&P){const A=T.getUint8(d++);v+=h&t?A:-A,p.push(v)}else h&t||(v+=T.getInt16(d),d+=2),p.push(v);X.push(h&ce|h&c),l[y]===m&&(g=C[y],y++,$.push(new M({flags:X,xCoordinates:g,yCoordinates:p})),p=[],X=[])}return new B({contours:$,instructions:r})}getSize(){let d=this.contours.length*2+2+this.instructions.length,T=0,o=0;for(const l of this.contours){d+=l.flags.length;for(let F=0,s=l.xCoordinates.length;F<s;F++){const r=l.xCoordinates[F],u=l.yCoordinates[F];let C=Math.abs(r-T);C>255?d+=2:C>0&&(d+=1),T=r,C=Math.abs(u-o),C>255?d+=2:C>0&&(d+=1),o=u}}return d}write(d,T){const o=d,l=[],F=[],s=[];let r=0,u=0;for(const C of this.contours){for(let g=0,p=C.xCoordinates.length;g<p;g++){let X=C.flags[g];const $=C.xCoordinates[g];let y=$-r;if(y===0)X|=e,l.push(0);else{const m=Math.abs(y);m<=255?(X|=y>=0?n|e:n,l.push(m)):l.push(y)}r=$;const v=C.yCoordinates[g];if(y=v-u,y===0)X|=t,F.push(0);else{const m=Math.abs(y);m<=255?(X|=y>=0?P|t:P,F.push(m)):F.push(y)}u=v,s.push(X)}T.setUint16(d,l.length-1),d+=2}T.setUint16(d,this.instructions.length),d+=2,this.instructions.length&&(new Uint8Array(T.buffer,0,T.buffer.byteLength).set(this.instructions,d),d+=this.instructions.length);for(const C of s)T.setUint8(d++,C);for(let C=0,g=l.length;C<g;C++){const p=l[C],X=s[C];X&n?T.setUint8(d++,p):X&e||(T.setInt16(d,p),d+=2)}for(let C=0,g=F.length;C<g;C++){const p=F[C],X=s[C];X&P?T.setUint8(d++,p):X&t||(T.setInt16(d,p),d+=2)}return d-o}scale(d,T){for(const o of this.contours)if(o.xCoordinates.length!==0)for(let l=0,F=o.xCoordinates.length;l<F;l++)o.xCoordinates[l]=Math.round(d+(o.xCoordinates[l]-d)*T)}}class z{constructor({flags:d,glyphIndex:T,argument1:o,argument2:l,transf:F,instructions:s}){this.flags=d,this.glyphIndex=T,this.argument1=o,this.argument2=l,this.transf=F,this.instructions=s}static parse(d,T){const o=d,l=[];let F=T.getUint16(d);const s=T.getUint16(d+2);d+=4;let r,u;F&Y?(F&ee?(r=T.getInt16(d),u=T.getInt16(d+2)):(r=T.getUint16(d),u=T.getUint16(d+2)),d+=4,F^=Y):(F&ee?(r=T.getInt8(d),u=T.getInt8(d+1)):(r=T.getUint8(d),u=T.getUint8(d+1)),d+=2),F&N?(l.push(T.getUint16(d)),d+=2):F&f?(l.push(T.getUint16(d),T.getUint16(d+2)),d+=4):F&x&&(l.push(T.getUint16(d),T.getUint16(d+2),T.getUint16(d+4),T.getUint16(d+6)),d+=8);let C=null;if(F&a){const g=T.getUint16(d);d+=2,C=new Uint8Array(T).slice(d,d+g),d+=g}return[d-o,new z({flags:F,glyphIndex:s,argument1:r,argument2:u,transf:l,instructions:C})]}getSize(){let d=4+this.transf.length*2;return this.flags&a&&(d+=2+this.instructions.length),d+=2,this.flags&2?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(d+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(d+=2),d}write(d,T){const o=d;return this.flags&ee?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=Y):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=Y),T.setUint16(d,this.flags),T.setUint16(d+2,this.glyphIndex),d+=4,this.flags&Y?(this.flags&ee?(T.setInt16(d,this.argument1),T.setInt16(d+2,this.argument2)):(T.setUint16(d,this.argument1),T.setUint16(d+2,this.argument2)),d+=4):(T.setUint8(d,this.argument1),T.setUint8(d+1,this.argument2),d+=2),this.flags&a&&(T.setUint16(d,this.instructions.length),d+=2,this.instructions.length&&(new Uint8Array(T.buffer,0,T.buffer.byteLength).set(this.instructions,d),d+=this.instructions.length)),d-o}scale(d,T){}}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.OpenTypeFileBuilder=void 0;var n=ce(3),P=ce(2);function D(N,I,f){N[I]=f>>8&255,N[I+1]=f&255}function e(N,I,f){N[I]=f>>24&255,N[I+1]=f>>16&255,N[I+2]=f>>8&255,N[I+3]=f&255}function t(N,I,f){if(f instanceof Uint8Array)N.set(f,I);else if(typeof f=="string")for(let x=0,a=f.length;x<a;x++)N[I++]=f.charCodeAt(x)&255;else for(const x of f)N[I++]=x&255}const c=12,Y=16;class ee{constructor(I){this.sfnt=I,this.tables=Object.create(null)}static getSearchParams(I,f){let x=1,a=0;for(;(x^I)>x;)x<<=1,a++;const E=x*f;return{range:E,entry:a,rangeShift:f*I-E}}toArray(){let I=this.sfnt;const f=this.tables,x=Object.keys(f);x.sort();const a=x.length;let E,w,O,M,B,z=c+a*Y;const W=[z];for(E=0;E<a;E++){M=f[x[E]];const o=(M.length+3&-4)>>>0;z+=o,W.push(z)}const d=new Uint8Array(z);for(E=0;E<a;E++)M=f[x[E]],t(d,W[E],M);I==="true"&&(I=(0,P.string32)(65536)),d[0]=I.charCodeAt(0)&255,d[1]=I.charCodeAt(1)&255,d[2]=I.charCodeAt(2)&255,d[3]=I.charCodeAt(3)&255,D(d,4,a);const T=ee.getSearchParams(a,16);for(D(d,6,T.range),D(d,8,T.entry),D(d,10,T.rangeShift),z=c,E=0;E<a;E++){B=x[E],d[z]=B.charCodeAt(0)&255,d[z+1]=B.charCodeAt(1)&255,d[z+2]=B.charCodeAt(2)&255,d[z+3]=B.charCodeAt(3)&255;let o=0;for(w=W[E],O=W[E+1];w<O;w+=4){const l=(0,n.readUint32)(d,w);o=o+l>>>0}e(d,z+4,o),e(d,z+8,W[E]),e(d,z+12,f[B].length),z+=Y}return d}addTable(I,f){if(I in this.tables)throw new Error("Table "+I+" already exists");this.tables[I]=f}}b.OpenTypeFileBuilder=ee},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Type1Font=void 0;var n=ce(35),P=ce(2),D=ce(38),e=ce(3),t=ce(8),c=ce(49);function Y(f,x,a){const E=f.length,w=x.length,O=E-w;let M=a,B=!1;for(;M<O;){let z=0;for(;z<w&&f[M+z]===x[z];)z++;if(z>=w){for(M+=z;M<E&&(0,e.isWhiteSpace)(f[M]);)M++;B=!0;break}M++}return{found:B,length:M}}function ee(f,x){const a=[101,101,120,101,99],E=f.pos;let w,O,M;try{w=f.getBytes(x),O=w.length}catch(W){}if(O===x&&(M=Y(w,a,x-2*a.length),M.found&&M.length===x))return{stream:new t.Stream(w),length:x};(0,P.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),f.pos=E;const B=2048;let z;for(;;){const W=f.peekBytes(B);if(M=Y(W,a,0),M.length===0)break;if(f.pos+=M.length,M.found){z=f.pos-E;break}}return f.pos=E,z?{stream:new t.Stream(f.getBytes(z)),length:z}:((0,P.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new t.Stream(f.getBytes(x)),length:x})}function N(f,x){const a=f.getBytes();if(a.length===0)throw new P.FormatError("getEexecBlock - no font program found.");return{stream:new t.Stream(a),length:a.length}}class I{constructor(x,a,E){let O=E.length1;E.length2;let M=a.peekBytes(6);const B=M[0]===128&&M[1]===1;B&&(a.skip(6),O=M[5]<<24|M[4]<<16|M[3]<<8|M[2]);const z=ee(a,O);new c.Type1Parser(z.stream,!1,D.SEAC_ANALYSIS_ENABLED).extractFontHeader(E),B&&(M=a.getBytes(6),M[5]<<24|M[4]<<16|M[3]<<8|M[2]);const d=N(a),o=new c.Type1Parser(d.stream,!0,D.SEAC_ANALYSIS_ENABLED).extractFontProgram(E);for(const r in o.properties)E[r]=o.properties[r];const l=o.charstrings,F=this.getType2Charstrings(l),s=this.getType2Subrs(o.subrs);this.charstrings=l,this.data=this.wrap(x,F,this.charstrings,s,E),this.seacs=this.getSeacs(o.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const x=[".notdef"];for(const{glyphName:a}of this.charstrings)x.push(a);return x}getGlyphMapping(x){const a=this.charstrings;if(x.composite){const B=Object.create(null);for(let z=0,W=a.length;z<W;z++){const d=x.cMap.charCodeOf(z);B[d]=z+1}return B}const E=[".notdef"];let w,O;for(O=0;O<a.length;O++)E.push(a[O].glyphName);const M=x.builtInEncoding;if(M){w=Object.create(null);for(const B in M)O=E.indexOf(M[B]),O>=0&&(w[B]=O)}return(0,D.type1FontGlyphMapping)(x,w,E)}hasGlyphId(x){return x<0||x>=this.numGlyphs?!1:x===0?!0:this.charstrings[x-1].charstring.length>0}getSeacs(x){const a=[];for(let E=0,w=x.length;E<w;E++){const O=x[E];O.seac&&(a[E+1]=O.seac)}return a}getType2Charstrings(x){const a=[];for(const E of x)a.push(E.charstring);return a}getType2Subrs(x){let a=0;const E=x.length;E<1133?a=107:E<33769?a=1131:a=32768;const w=[];let O;for(O=0;O<a;O++)w.push([11]);for(O=0;O<E;O++)w.push(x[O]);return w}wrap(x,a,E,w,O){const M=new n.CFF;M.header=new n.CFFHeader(1,0,4,4),M.names=[x];const B=new n.CFFTopDict;B.setByName("version",391),B.setByName("Notice",392),B.setByName("FullName",393),B.setByName("FamilyName",394),B.setByName("Weight",395),B.setByName("Encoding",null),B.setByName("FontMatrix",O.fontMatrix),B.setByName("FontBBox",O.bbox),B.setByName("charset",null),B.setByName("CharStrings",null),B.setByName("Private",null),M.topDict=B;const z=new n.CFFStrings;z.add("Version 0.11"),z.add("See original notice"),z.add(x),z.add(x),z.add("Medium"),M.strings=z,M.globalSubrIndex=new n.CFFIndex;const W=a.length,d=[".notdef"];let T,o;for(T=0;T<W;T++){const C=E[T].glyphName;n.CFFStandardStrings.indexOf(C)===-1&&z.add(C),d.push(C)}M.charset=new n.CFFCharset(!1,0,d);const l=new n.CFFIndex;for(l.add([139,14]),T=0;T<W;T++)l.add(a[T]);M.charStrings=l;const F=new n.CFFPrivateDict;F.setByName("Subrs",null);const s=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(T=0,o=s.length;T<o;T++){const C=s[T];if(!(C in O.privateData))continue;const g=O.privateData[C];if(Array.isArray(g))for(let p=g.length-1;p>0;p--)g[p]-=g[p-1];F.setByName(C,g)}M.topDict.privateDict=F;const r=new n.CFFIndex;for(T=0,o=w.length;T<o;T++)r.add(w[T]);return F.subrsIndex=r,new n.CFFCompiler(M).compile()}}b.Type1Font=I},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Type1Parser=void 0;var n=ce(37),P=ce(3),D=ce(8),e=ce(2);const t=!1,c={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};class Y{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(O,M,B){const z=O.length;let W=!1,d,T,o;for(let l=0;l<z;l++){let F=O[l];if(F<32){switch(F===12&&(F=(F<<8)+O[++l]),F){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){W=!0;break}const g=this.stack.pop();this.stack.push(0,g);break}W=this.executeCommand(1,c.vmoveto);break;case 5:W=this.executeCommand(2,c.rlineto);break;case 6:W=this.executeCommand(1,c.hlineto);break;case 7:W=this.executeCommand(1,c.vlineto);break;case 8:W=this.executeCommand(6,c.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){W=!0;break}if(o=this.stack.pop(),!M[o]){W=!0;break}W=this.convert(M[o],M,B);break;case 11:return W;case 13:if(this.stack.length<2){W=!0;break}d=this.stack.pop(),T=this.stack.pop(),this.lsb=T,this.width=d,this.stack.push(d,T),W=this.executeCommand(2,c.hmoveto);break;case 14:this.output.push(c.endchar[0]);break;case 21:if(this.flexing)break;W=this.executeCommand(2,c.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}W=this.executeCommand(1,c.hmoveto);break;case 30:W=this.executeCommand(4,c.vhcurveto);break;case 31:W=this.executeCommand(4,c.hvcurveto);break;case 3072:this.stack=[];break;case 3073:{this.stack=[];break}case 3074:{this.stack=[];break}case 3078:if(B){const g=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-g,W=this.executeCommand(0,c.endchar)}else W=this.executeCommand(4,c.endchar);break;case 3079:if(this.stack.length<4){W=!0;break}this.stack.pop(),d=this.stack.pop();const s=this.stack.pop();T=this.stack.pop(),this.lsb=T,this.width=d,this.stack.push(d,T,s),W=this.executeCommand(3,c.rmoveto);break;case 3084:if(this.stack.length<2){W=!0;break}const r=this.stack.pop(),u=this.stack.pop();this.stack.push(u/r);break;case 3088:if(this.stack.length<2){W=!0;break}o=this.stack.pop();const C=this.stack.pop();if(o===0&&C===3){const g=this.stack.splice(-17,17);this.stack.push(g[2]+g[0],g[3]+g[1],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14]),W=this.executeCommand(13,c.flex,!0),this.flexing=!1,this.stack.push(g[15],g[16])}else o===1&&C===0&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,e.warn)('Unknown type 1 charstring command of "'+F+'"');break}if(W)break;continue}else F<=246?F-=139:F<=250?F=(F-247)*256+O[++l]+108:F<=254?F=-((F-251)*256)-O[++l]-108:F=(O[++l]&255)<<24|(O[++l]&255)<<16|(O[++l]&255)<<8|(O[++l]&255)<<0;this.stack.push(F)}return W}executeCommand(O,M,B){const z=this.stack.length;if(O>z)return!0;const W=z-O;for(let d=W;d<z;d++){let T=this.stack[d];Number.isInteger(T)?this.output.push(28,T>>8&255,T&255):(T=65536*T|0,this.output.push(255,T>>24&255,T>>16&255,T>>8&255,T&255))}return this.output.push(...M),B?this.stack.splice(W,O):this.stack.length=0,!1}}const ee=55665,N=4330;function I(w){return w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102}function f(w,O,M){if(M>=w.length)return new Uint8Array(0);const B=52845,z=22719;let W=O|0,d,T;for(d=0;d<M;d++)W=(w[d]+W)*B+z&65535;const o=w.length-M,l=new Uint8Array(o);for(d=M,T=0;T<o;d++,T++){const F=w[d];l[T]=F^W>>8,W=(F+W)*B+z&65535}return l}function x(w,O,M){let W=O|0;const d=w.length,T=d>>>1,o=new Uint8Array(T);let l,F;for(l=0,F=0;l<d;l++){const s=w[l];if(!I(s))continue;l++;let r;for(;l<d&&!I(r=w[l]);)l++;if(l<d){const u=parseInt(String.fromCharCode(s,r),16);o[F++]=u^W>>8,W=(u+W)*52845+22719&65535}}return o.slice(M,F)}function a(w){return w===47||w===91||w===93||w===123||w===125||w===40||w===41}class E{constructor(O,M,B){if(M){const z=O.getBytes(),W=!((I(z[0])||(0,P.isWhiteSpace)(z[0]))&&I(z[1])&&I(z[2])&&I(z[3])&&I(z[4])&&I(z[5])&&I(z[6])&&I(z[7]));O=new D.Stream(W?f(z,ee,4):x(z,ee,4))}this.seacAnalysisEnabled=!!B,this.stream=O,this.nextChar()}readNumberArray(){this.getToken();const O=[];for(;;){const M=this.getToken();if(M===null||M==="]"||M==="}")break;O.push(parseFloat(M||0))}return O}readNumber(){const O=this.getToken();return parseFloat(O||0)}readInt(){const O=this.getToken();return parseInt(O||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 O=!1,M=this.currentChar;for(;;){if(M===-1)return null;if(O)(M===10||M===13)&&(O=!1);else if(M===37)O=!0;else if(!(0,P.isWhiteSpace)(M))break;M=this.nextChar()}if(a(M))return this.nextChar(),String.fromCharCode(M);let B="";do B+=String.fromCharCode(M),M=this.nextChar();while(M>=0&&!(0,P.isWhiteSpace)(M)&&!a(M));return B}readCharStrings(O,M){return M===-1?O:f(O,N,M)}extractFontProgram(O){const M=this.stream,B=[],z=[],W=Object.create(null);W.lenIV=4;const d={subrs:[],charstrings:[],properties:{privateData:W}};let T,o,l,F;for(;(T=this.getToken())!==null;)if(T==="/")switch(T=this.getToken(),T){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();T=this.getToken(),!(T===null||T==="end");){if(T!=="/")continue;const r=this.getToken();o=this.readInt(),this.getToken(),l=o>0?M.getBytes(o):new Uint8Array(0),F=d.properties.privateData.lenIV;const u=this.readCharStrings(l,F);this.nextChar(),T=this.getToken(),T==="noaccess"?this.getToken():T==="/"&&this.prevChar(),z.push({glyph:r,encoded:u})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){const r=this.readInt();o=this.readInt(),this.getToken(),l=o>0?M.getBytes(o):new Uint8Array(0),F=d.properties.privateData.lenIV;const u=this.readCharStrings(l,F);this.nextChar(),T=this.getToken(),T==="noaccess"&&this.getToken(),B[r]=u}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const s=this.readNumberArray();s.length>0&&s.length%2===0&&t&&(d.properties.privateData[T]=s);break;case"StemSnapH":case"StemSnapV":d.properties.privateData[T]=this.readNumberArray();break;case"StdHW":case"StdVW":d.properties.privateData[T]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":d.properties.privateData[T]=this.readNumber();break;case"ExpansionFactor":d.properties.privateData[T]=this.readNumber()||.06;break;case"ForceBold":d.properties.privateData[T]=this.readBoolean();break}for(const{encoded:s,glyph:r}of z){const u=new Y,C=u.convert(s,B,this.seacAnalysisEnabled);let g=u.output;C&&(g=[14]);const p={glyphName:r,charstring:g,width:u.width,lsb:u.lsb,seac:u.seac};if(r===".notdef"?d.charstrings.unshift(p):d.charstrings.push(p),O.builtInEncoding){const X=O.builtInEncoding.indexOf(r);X>-1&&O.widths[X]===void 0&&X>=O.firstChar&&X<=O.lastChar&&(O.widths[X]=u.width)}}return d}extractFontHeader(O){let M;for(;(M=this.getToken())!==null;)if(M==="/")switch(M=this.getToken(),M){case"FontMatrix":const B=this.readNumberArray();O.fontMatrix=B;break;case"Encoding":const z=this.getToken();let W;if(!/^\d+$/.test(z))W=(0,n.getEncoding)(z);else{W=[];const T=parseInt(z,10)|0;this.getToken();for(let o=0;o<T;o++){for(M=this.getToken();M!=="dup"&&M!=="def";)if(M=this.getToken(),M===null)return;if(M==="def")break;const l=this.readInt();this.getToken();const F=this.getToken();W[l]=F,this.getToken()}}O.builtInEncoding=W;break;case"FontBBox":const d=this.readNumberArray();O.ascent=Math.max(d[3],d[1]),O.descent=Math.min(d[1],d[3]),O.ascentScaled=!0;break}}}b.Type1Parser=E},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Pattern=void 0,b.clearPatternCaches=a,b.getTilingPatternIR=O;var n=ce(2),P=ce(5),D=ce(12),e=ce(3);const t={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};class c{constructor(){(0,n.unreachable)("Cannot initialize Pattern.")}static parseShading(W,d,T,o,l){const F=W instanceof P.BaseStream?W.dict:W,s=F.get("ShadingType");try{switch(s){case t.AXIAL:case t.RADIAL:return new ee(F,d,T,o,l);case t.FREE_FORM_MESH:case t.LATTICE_FORM_MESH:case t.COONS_PATCH_MESH:case t.TENSOR_PATCH_MESH:return new E(W,d,T,o,l);default:throw new n.FormatError("Unsupported ShadingType: "+s)}}catch(r){if(r instanceof e.MissingDataException)throw r;return(0,n.warn)(r),new w}}}b.Pattern=c;const M=class{constructor(){this.constructor===M&&(0,n.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,n.unreachable)("Abstract method `getIR` called.")}};let Y=M;_t(Y,"SMALL_NUMBER",1e-6);class ee extends Y{constructor(W,d,T,o,l){super(),this.coordsArr=W.getArray("Coords"),this.shadingType=W.get("ShadingType");const F=D.ColorSpace.parse({cs:W.getRaw("CS")||W.getRaw("ColorSpace"),xref:d,resources:T,pdfFunctionFactory:o,localColorSpaceCache:l}),s=W.getArray("BBox");this.bbox=Array.isArray(s)&&s.length===4?n.Util.normalizeRect(s):null;let r=0,u=1;if(W.has("Domain")){const ie=W.getArray("Domain");r=ie[0],u=ie[1]}let C=!1,g=!1;if(W.has("Extend")){const ie=W.getArray("Extend");C=ie[0],g=ie[1]}if(this.shadingType===t.RADIAL&&(!C||!g)){const[ie,ae,U,ne,V,L]=this.coordsArr,te=Math.hypot(ie-ne,ae-V);U<=L+te&&L<=U+te&&(0,n.warn)("Unsupported radial gradient.")}this.extendStart=C,this.extendEnd=g;const p=W.getRaw("Function"),X=o.createFromArray(p),$=840,y=(u-r)/$,v=this.colorStops=[];if(r>=u||y<=0){(0,n.info)("Bad shading domain.");return}const m=new Float32Array(F.numComps),h=new Float32Array(1);let A,j=0;h[0]=r,X(h,0,m,0);let H=F.getRgb(m,0);const J=n.Util.makeHexColor(H[0],H[1],H[2]);v.push([0,J]);let oe=1;h[0]=r+y,X(h,0,m,0);let q=F.getRgb(m,0),re=q[0]-H[0]+1,Z=q[1]-H[1]+1,K=q[2]-H[2]+1,S=q[0]-H[0]-1,k=q[1]-H[1]-1,_=q[2]-H[2]-1;for(let ie=2;ie<$;ie++){h[0]=r+ie*y,X(h,0,m,0),A=F.getRgb(m,0);const ae=ie-j;if(re=Math.min(re,(A[0]-H[0]+1)/ae),Z=Math.min(Z,(A[1]-H[1]+1)/ae),K=Math.min(K,(A[2]-H[2]+1)/ae),S=Math.max(S,(A[0]-H[0]-1)/ae),k=Math.max(k,(A[1]-H[1]-1)/ae),_=Math.max(_,(A[2]-H[2]-1)/ae),!(S<=re&&k<=Z&&_<=K)){const ne=n.Util.makeHexColor(q[0],q[1],q[2]);v.push([oe/$,ne]),re=A[0]-q[0]+1,Z=A[1]-q[1]+1,K=A[2]-q[2]+1,S=A[0]-q[0]-1,k=A[1]-q[1]-1,_=A[2]-q[2]-1,j=oe,H=q}oe=ie,q=A}const G=n.Util.makeHexColor(q[0],q[1],q[2]);v.push([1,G]);let Q="transparent";W.has("Background")&&(A=F.getRgb(W.get("Background"),0),Q=n.Util.makeHexColor(A[0],A[1],A[2])),C||(v.unshift([0,Q]),v[1][0]+=Y.SMALL_NUMBER),g||(v.at(-1)[0]-=Y.SMALL_NUMBER,v.push([1,Q])),this.colorStops=v}getIR(){const W=this.coordsArr,d=this.shadingType;let T,o,l,F,s;return d===t.AXIAL?(o=[W[0],W[1]],l=[W[2],W[3]],F=null,s=null,T="axial"):d===t.RADIAL?(o=[W[0],W[1]],l=[W[3],W[4]],F=W[2],s=W[5],T="radial"):(0,n.unreachable)(`getPattern type unknown: ${d}`),["RadialAxial",T,this.bbox,this.colorStops,o,l,F,s]}}class N{constructor(W,d){this.stream=W,this.context=d,this.buffer=0,this.bufferLength=0;const T=d.numComps;this.tmpCompsBuf=new Float32Array(T);const o=d.colorSpace.numComps;this.tmpCsCompsBuf=d.colorFn?new Float32Array(o):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;const W=this.stream.getByte();return W<0?!1:(this.buffer=W,this.bufferLength=8,!0)}readBits(W){let d=this.buffer,T=this.bufferLength;if(W===32){if(T===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;d=d<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const o=this.stream.getByte();return this.buffer=o&(1<<T)-1,(d<<8-T|(o&255)>>T)>>>0}if(W===8&&T===0)return this.stream.getByte();for(;T<W;)d=d<<8|this.stream.getByte(),T+=8;return T-=W,this.bufferLength=T,this.buffer=d&(1<<T)-1,d>>T}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const W=this.context.bitsPerCoordinate,d=this.readBits(W),T=this.readBits(W),o=this.context.decode,l=W<32?1/((1<<W)-1):23283064365386963e-26;return[d*l*(o[1]-o[0])+o[0],T*l*(o[3]-o[2])+o[2]]}readComponents(){const W=this.context.numComps,d=this.context.bitsPerComponent,T=d<32?1/((1<<d)-1):23283064365386963e-26,o=this.context.decode,l=this.tmpCompsBuf;for(let s=0,r=4;s<W;s++,r+=2){const u=this.readBits(d);l[s]=u*T*(o[r+1]-o[r])+o[r]}const F=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(l,0,F,0),this.context.colorSpace.getRgb(F,0)}}let I=Object.create(null);function f(z){const W=[];for(let d=0;d<=z;d++){const T=d/z,o=1-T;W.push(new Float32Array([Lt(o,3),3*T*Lt(o,2),3*Lt(T,2)*o,Lt(T,3)]))}return W}function x(z){return I[z]||(I[z]=f(z))}function a(){I=Object.create(null)}const B=class extends Y{constructor(W,d,T,o,l){if(super(),!(W instanceof P.BaseStream))throw new n.FormatError("Mesh data is not a stream");const F=W.dict;this.shadingType=F.get("ShadingType");const s=F.getArray("BBox");this.bbox=Array.isArray(s)&&s.length===4?n.Util.normalizeRect(s):null;const r=D.ColorSpace.parse({cs:F.getRaw("CS")||F.getRaw("ColorSpace"),xref:d,resources:T,pdfFunctionFactory:o,localColorSpaceCache:l});this.background=F.has("Background")?r.getRgb(F.get("Background"),0):null;const u=F.getRaw("Function"),C=u?o.createFromArray(u):null;this.coords=[],this.colors=[],this.figures=[];const g={bitsPerCoordinate:F.get("BitsPerCoordinate"),bitsPerComponent:F.get("BitsPerComponent"),bitsPerFlag:F.get("BitsPerFlag"),decode:F.getArray("Decode"),colorFn:C,colorSpace:r,numComps:C?1:r.numComps},p=new N(W,g);let X=!1;switch(this.shadingType){case t.FREE_FORM_MESH:this._decodeType4Shading(p);break;case t.LATTICE_FORM_MESH:const $=F.get("VerticesPerRow")|0;if($<2)throw new n.FormatError("Invalid VerticesPerRow");this._decodeType5Shading(p,$);break;case t.COONS_PATCH_MESH:this._decodeType6Shading(p),X=!0;break;case t.TENSOR_PATCH_MESH:this._decodeType7Shading(p),X=!0;break;default:(0,n.unreachable)("Unsupported mesh type.");break}if(X){this._updateBounds();for(let $=0,y=this.figures.length;$<y;$++)this._buildFigureFromPatch($)}this._updateBounds(),this._packData()}_decodeType4Shading(W){const d=this.coords,T=this.colors,o=[];let l=0;for(;W.hasData;){const F=W.readFlag(),s=W.readCoordinate(),r=W.readComponents();if(l===0){if(!(0<=F&&F<=2))throw new n.FormatError("Unknown type4 flag");switch(F){case 0:l=3;break;case 1:o.push(o.at(-2),o.at(-1)),l=1;break;case 2:o.push(o.at(-3),o.at(-1)),l=1;break}}o.push(d.length),d.push(s),T.push(r),l--,W.align()}this.figures.push({type:"triangles",coords:new Int32Array(o),colors:new Int32Array(o)})}_decodeType5Shading(W,d){const T=this.coords,o=this.colors,l=[];for(;W.hasData;){const F=W.readCoordinate(),s=W.readComponents();l.push(T.length),T.push(F),o.push(s)}this.figures.push({type:"lattice",coords:new Int32Array(l),colors:new Int32Array(l),verticesPerRow:d})}_decodeType6Shading(W){const d=this.coords,T=this.colors,o=new Int32Array(16),l=new Int32Array(4);for(;W.hasData;){const F=W.readFlag();if(!(0<=F&&F<=3))throw new n.FormatError("Unknown type6 flag");const s=d.length;for(let X=0,$=F!==0?8:12;X<$;X++)d.push(W.readCoordinate());const r=T.length;for(let X=0,$=F!==0?2:4;X<$;X++)T.push(W.readComponents());let u,C,g,p;switch(F){case 0:o[12]=s+3,o[13]=s+4,o[14]=s+5,o[15]=s+6,o[8]=s+2,o[11]=s+7,o[4]=s+1,o[7]=s+8,o[0]=s,o[1]=s+11,o[2]=s+10,o[3]=s+9,l[2]=r+1,l[3]=r+2,l[0]=r,l[1]=r+3;break;case 1:u=o[12],C=o[13],g=o[14],p=o[15],o[12]=p,o[13]=s+0,o[14]=s+1,o[15]=s+2,o[8]=g,o[11]=s+3,o[4]=C,o[7]=s+4,o[0]=u,o[1]=s+7,o[2]=s+6,o[3]=s+5,u=l[2],C=l[3],l[2]=C,l[3]=r,l[0]=u,l[1]=r+1;break;case 2:u=o[15],C=o[11],o[12]=o[3],o[13]=s+0,o[14]=s+1,o[15]=s+2,o[8]=o[7],o[11]=s+3,o[4]=C,o[7]=s+4,o[0]=u,o[1]=s+7,o[2]=s+6,o[3]=s+5,u=l[3],l[2]=l[1],l[3]=r,l[0]=u,l[1]=r+1;break;case 3:o[12]=o[0],o[13]=s+0,o[14]=s+1,o[15]=s+2,o[8]=o[1],o[11]=s+3,o[4]=o[2],o[7]=s+4,o[0]=o[3],o[1]=s+7,o[2]=s+6,o[3]=s+5,l[2]=l[0],l[3]=r,l[0]=l[1],l[1]=r+1;break}o[5]=d.length,d.push([(-4*d[o[0]][0]-d[o[15]][0]+6*(d[o[4]][0]+d[o[1]][0])-2*(d[o[12]][0]+d[o[3]][0])+3*(d[o[13]][0]+d[o[7]][0]))/9,(-4*d[o[0]][1]-d[o[15]][1]+6*(d[o[4]][1]+d[o[1]][1])-2*(d[o[12]][1]+d[o[3]][1])+3*(d[o[13]][1]+d[o[7]][1]))/9]),o[6]=d.length,d.push([(-4*d[o[3]][0]-d[o[12]][0]+6*(d[o[2]][0]+d[o[7]][0])-2*(d[o[0]][0]+d[o[15]][0])+3*(d[o[4]][0]+d[o[14]][0]))/9,(-4*d[o[3]][1]-d[o[12]][1]+6*(d[o[2]][1]+d[o[7]][1])-2*(d[o[0]][1]+d[o[15]][1])+3*(d[o[4]][1]+d[o[14]][1]))/9]),o[9]=d.length,d.push([(-4*d[o[12]][0]-d[o[3]][0]+6*(d[o[8]][0]+d[o[13]][0])-2*(d[o[0]][0]+d[o[15]][0])+3*(d[o[11]][0]+d[o[1]][0]))/9,(-4*d[o[12]][1]-d[o[3]][1]+6*(d[o[8]][1]+d[o[13]][1])-2*(d[o[0]][1]+d[o[15]][1])+3*(d[o[11]][1]+d[o[1]][1]))/9]),o[10]=d.length,d.push([(-4*d[o[15]][0]-d[o[0]][0]+6*(d[o[11]][0]+d[o[14]][0])-2*(d[o[12]][0]+d[o[3]][0])+3*(d[o[2]][0]+d[o[8]][0]))/9,(-4*d[o[15]][1]-d[o[0]][1]+6*(d[o[11]][1]+d[o[14]][1])-2*(d[o[12]][1]+d[o[3]][1])+3*(d[o[2]][1]+d[o[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(o),colors:new Int32Array(l)})}}_decodeType7Shading(W){const d=this.coords,T=this.colors,o=new Int32Array(16),l=new Int32Array(4);for(;W.hasData;){const F=W.readFlag();if(!(0<=F&&F<=3))throw new n.FormatError("Unknown type7 flag");const s=d.length;for(let X=0,$=F!==0?12:16;X<$;X++)d.push(W.readCoordinate());const r=T.length;for(let X=0,$=F!==0?2:4;X<$;X++)T.push(W.readComponents());let u,C,g,p;switch(F){case 0:o[12]=s+3,o[13]=s+4,o[14]=s+5,o[15]=s+6,o[8]=s+2,o[9]=s+13,o[10]=s+14,o[11]=s+7,o[4]=s+1,o[5]=s+12,o[6]=s+15,o[7]=s+8,o[0]=s,o[1]=s+11,o[2]=s+10,o[3]=s+9,l[2]=r+1,l[3]=r+2,l[0]=r,l[1]=r+3;break;case 1:u=o[12],C=o[13],g=o[14],p=o[15],o[12]=p,o[13]=s+0,o[14]=s+1,o[15]=s+2,o[8]=g,o[9]=s+9,o[10]=s+10,o[11]=s+3,o[4]=C,o[5]=s+8,o[6]=s+11,o[7]=s+4,o[0]=u,o[1]=s+7,o[2]=s+6,o[3]=s+5,u=l[2],C=l[3],l[2]=C,l[3]=r,l[0]=u,l[1]=r+1;break;case 2:u=o[15],C=o[11],o[12]=o[3],o[13]=s+0,o[14]=s+1,o[15]=s+2,o[8]=o[7],o[9]=s+9,o[10]=s+10,o[11]=s+3,o[4]=C,o[5]=s+8,o[6]=s+11,o[7]=s+4,o[0]=u,o[1]=s+7,o[2]=s+6,o[3]=s+5,u=l[3],l[2]=l[1],l[3]=r,l[0]=u,l[1]=r+1;break;case 3:o[12]=o[0],o[13]=s+0,o[14]=s+1,o[15]=s+2,o[8]=o[1],o[9]=s+9,o[10]=s+10,o[11]=s+3,o[4]=o[2],o[5]=s+8,o[6]=s+11,o[7]=s+4,o[0]=o[3],o[1]=s+7,o[2]=s+6,o[3]=s+5,l[2]=l[0],l[3]=r,l[0]=l[1],l[1]=r+1;break}this.figures.push({type:"patch",coords:new Int32Array(o),colors:new Int32Array(l)})}}_buildFigureFromPatch(W){const d=this.figures[W];(0,n.assert)(d.type==="patch","Unexpected patch mesh figure");const T=this.coords,o=this.colors,l=d.coords,F=d.colors,s=Math.min(T[l[0]][0],T[l[3]][0],T[l[12]][0],T[l[15]][0]),r=Math.min(T[l[0]][1],T[l[3]][1],T[l[12]][1],T[l[15]][1]),u=Math.max(T[l[0]][0],T[l[3]][0],T[l[12]][0],T[l[15]][0]),C=Math.max(T[l[0]][1],T[l[3]][1],T[l[12]][1],T[l[15]][1]);let g=Math.ceil((u-s)*B.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));g=Math.max(B.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(B.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,g));let p=Math.ceil((C-r)*B.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));p=Math.max(B.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(B.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,p));const X=g+1,$=new Int32Array((p+1)*X),y=new Int32Array((p+1)*X);let v=0;const m=new Uint8Array(3),h=new Uint8Array(3),A=o[F[0]],j=o[F[1]],H=o[F[2]],J=o[F[3]],oe=x(p),q=x(g);for(let re=0;re<=p;re++){m[0]=(A[0]*(p-re)+H[0]*re)/p|0,m[1]=(A[1]*(p-re)+H[1]*re)/p|0,m[2]=(A[2]*(p-re)+H[2]*re)/p|0,h[0]=(j[0]*(p-re)+J[0]*re)/p|0,h[1]=(j[1]*(p-re)+J[1]*re)/p|0,h[2]=(j[2]*(p-re)+J[2]*re)/p|0;for(let Z=0;Z<=g;Z++,v++){if((re===0||re===p)&&(Z===0||Z===g))continue;let K=0,S=0,k=0;for(let G=0;G<=3;G++)for(let Q=0;Q<=3;Q++,k++){const ie=oe[re][G]*q[Z][Q];K+=T[l[k]][0]*ie,S+=T[l[k]][1]*ie}$[v]=T.length,T.push([K,S]),y[v]=o.length;const _=new Uint8Array(3);_[0]=(m[0]*(g-Z)+h[0]*Z)/g|0,_[1]=(m[1]*(g-Z)+h[1]*Z)/g|0,_[2]=(m[2]*(g-Z)+h[2]*Z)/g|0,o.push(_)}}$[0]=l[0],y[0]=F[0],$[g]=l[3],y[g]=F[1],$[X*p]=l[12],y[X*p]=F[2],$[X*p+g]=l[15],y[X*p+g]=F[3],this.figures[W]={type:"lattice",coords:$,colors:y,verticesPerRow:X}}_updateBounds(){let W=this.coords[0][0],d=this.coords[0][1],T=W,o=d;for(let l=1,F=this.coords.length;l<F;l++){const s=this.coords[l][0],r=this.coords[l][1];W=W>s?s:W,d=d>r?r:d,T=T<s?s:T,o=o<r?r:o}this.bounds=[W,d,T,o]}_packData(){let W,d,T,o;const l=this.coords,F=new Float32Array(l.length*2);for(W=0,T=0,d=l.length;W<d;W++){const C=l[W];F[T++]=C[0],F[T++]=C[1]}this.coords=F;const s=this.colors,r=new Uint8Array(s.length*3);for(W=0,T=0,d=s.length;W<d;W++){const C=s[W];r[T++]=C[0],r[T++]=C[1],r[T++]=C[2]}this.colors=r;const u=this.figures;for(W=0,d=u.length;W<d;W++){const C=u[W],g=C.coords,p=C.colors;for(T=0,o=g.length;T<o;T++)g[T]*=2,p[T]*=3}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}};let E=B;_t(E,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3),_t(E,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20),_t(E,"TRIANGLE_DENSITY",20);class w extends Y{getIR(){return["Dummy"]}}function O(z,W,d){const T=W.getArray("Matrix"),o=n.Util.normalizeRect(W.getArray("BBox")),l=W.get("XStep"),F=W.get("YStep"),s=W.get("PaintType"),r=W.get("TilingType");if(o[2]-o[0]===0||o[3]-o[1]===0)throw new n.FormatError(`Invalid getTilingPatternIR /BBox array: [${o}].`);return["TilingPattern",d,z,T,o,l,F,s,r]}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.getXfaFontDict=x,b.getXfaFontName=I;var n=ce(52),P=ce(4),D=ce(53),e=ce(54),t=ce(55),c=ce(56),Y=ce(3),ee=ce(38);const N=(0,Y.getLookupTableFactory)(function(a){a["MyriadPro-Regular"]=a["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:t.MyriadProRegularFactors,baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping,metrics:t.MyriadProRegularMetrics},a["MyriadPro-Bold"]=a["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:t.MyriadProBoldFactors,baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping,metrics:t.MyriadProBoldMetrics},a["MyriadPro-It"]=a["MyriadPro-Italic"]=a["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:t.MyriadProItalicFactors,baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping,metrics:t.MyriadProItalicMetrics},a["MyriadPro-BoldIt"]=a["MyriadPro-BoldItalic"]=a["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:t.MyriadProBoldItalicFactors,baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping,metrics:t.MyriadProBoldItalicMetrics},a.ArialMT=a.Arial=a["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping},a["Arial-BoldMT"]=a["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping},a["Arial-ItalicMT"]=a["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping},a["Arial-BoldItalicMT"]=a["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping},a["Calibri-Regular"]={name:"LiberationSans-Regular",factors:n.CalibriRegularFactors,baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping,metrics:n.CalibriRegularMetrics},a["Calibri-Bold"]={name:"LiberationSans-Bold",factors:n.CalibriBoldFactors,baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping,metrics:n.CalibriBoldMetrics},a["Calibri-Italic"]={name:"LiberationSans-Italic",factors:n.CalibriItalicFactors,baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping,metrics:n.CalibriItalicMetrics},a["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:n.CalibriBoldItalicFactors,baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping,metrics:n.CalibriBoldItalicMetrics},a["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:c.SegoeuiRegularFactors,baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping,metrics:c.SegoeuiRegularMetrics},a["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:c.SegoeuiBoldFactors,baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping,metrics:c.SegoeuiBoldMetrics},a["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:c.SegoeuiItalicFactors,baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping,metrics:c.SegoeuiItalicMetrics},a["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:c.SegoeuiBoldItalicFactors,baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping,metrics:c.SegoeuiBoldItalicMetrics},a["Helvetica-Regular"]=a.Helvetica={name:"LiberationSans-Regular",factors:D.HelveticaRegularFactors,baseWidths:e.LiberationSansRegularWidths,baseMapping:e.LiberationSansRegularMapping,metrics:D.HelveticaRegularMetrics},a["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:D.HelveticaBoldFactors,baseWidths:e.LiberationSansBoldWidths,baseMapping:e.LiberationSansBoldMapping,metrics:D.HelveticaBoldMetrics},a["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:D.HelveticaItalicFactors,baseWidths:e.LiberationSansItalicWidths,baseMapping:e.LiberationSansItalicMapping,metrics:D.HelveticaItalicMetrics},a["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:D.HelveticaBoldItalicFactors,baseWidths:e.LiberationSansBoldItalicWidths,baseMapping:e.LiberationSansBoldItalicMapping,metrics:D.HelveticaBoldItalicMetrics}});function I(a){const E=(0,ee.normalizeFontName)(a);return N()[E]}function f(a){const E=I(a);if(!E)return null;const{baseWidths:w,baseMapping:O,factors:M}=E,B=M?w.map((T,o)=>T*M[o]):w;let z=-2,W;const d=[];for(const[T,o]of O.map((l,F)=>[l,F]).sort(([l],[F])=>l-F))T!==-1&&(T===z+1?(W.push(B[o]),z+=1):(z=T,W=[B[o]],d.push(T,W)));return d}function x(a){const E=f(a),w=new P.Dict(null);w.set("BaseFont",P.Name.get(a)),w.set("Type",P.Name.get("Font")),w.set("Subtype",P.Name.get("CIDFontType2")),w.set("Encoding",P.Name.get("Identity-H")),w.set("CIDToGIDMap",P.Name.get("Identity")),w.set("W",E),w.set("FirstChar",E[0]),w.set("LastChar",E.at(-2)+E.at(-1).length-1);const O=new P.Dict(null);w.set("FontDescriptor",O);const M=new P.Dict(null);return M.set("Ordering","Identity"),M.set("Registry","Adobe"),M.set("Supplement",0),w.set("CIDSystemInfo",M),w}},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.CalibriRegularMetrics=b.CalibriRegularFactors=b.CalibriItalicMetrics=b.CalibriItalicFactors=b.CalibriBoldMetrics=b.CalibriBoldItalicMetrics=b.CalibriBoldItalicFactors=b.CalibriBoldFactors=void 0;const ce=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.CalibriBoldFactors=ce;const n={lineHeight:1.2207,lineGap:.2207};b.CalibriBoldMetrics=n;const P=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.CalibriBoldItalicFactors=P;const D={lineHeight:1.2207,lineGap:.2207};b.CalibriBoldItalicMetrics=D;const e=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.CalibriItalicFactors=e;const t={lineHeight:1.2207,lineGap:.2207};b.CalibriItalicMetrics=t;const c=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];b.CalibriRegularFactors=c;const Y={lineHeight:1.2207,lineGap:.2207};b.CalibriRegularMetrics=Y},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.HelveticaRegularMetrics=b.HelveticaRegularFactors=b.HelveticaItalicMetrics=b.HelveticaItalicFactors=b.HelveticaBoldMetrics=b.HelveticaBoldItalicMetrics=b.HelveticaBoldItalicFactors=b.HelveticaBoldFactors=void 0;const ce=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];b.HelveticaBoldFactors=ce;const n={lineHeight:1.2,lineGap:.2};b.HelveticaBoldMetrics=n;const P=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];b.HelveticaBoldItalicFactors=P;const D={lineHeight:1.35,lineGap:.2};b.HelveticaBoldItalicMetrics=D;const e=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];b.HelveticaItalicFactors=e;const t={lineHeight:1.35,lineGap:.2};b.HelveticaItalicMetrics=t;const c=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.HelveticaRegularFactors=c;const Y={lineHeight:1.2,lineGap:.2};b.HelveticaRegularMetrics=Y},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.LiberationSansRegularWidths=b.LiberationSansRegularMapping=b.LiberationSansItalicWidths=b.LiberationSansItalicMapping=b.LiberationSansBoldWidths=b.LiberationSansBoldMapping=b.LiberationSansBoldItalicWidths=b.LiberationSansBoldItalicMapping=void 0;const ce=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];b.LiberationSansBoldWidths=ce;const n=[-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];b.LiberationSansBoldMapping=n;const P=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];b.LiberationSansBoldItalicWidths=P;const D=[-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];b.LiberationSansBoldItalicMapping=D;const e=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];b.LiberationSansItalicWidths=e;const t=[-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];b.LiberationSansItalicMapping=t;const c=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];b.LiberationSansRegularWidths=c;const Y=[-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];b.LiberationSansRegularMapping=Y},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.MyriadProRegularMetrics=b.MyriadProRegularFactors=b.MyriadProItalicMetrics=b.MyriadProItalicFactors=b.MyriadProBoldMetrics=b.MyriadProBoldItalicMetrics=b.MyriadProBoldItalicFactors=b.MyriadProBoldFactors=void 0;const ce=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.MyriadProBoldFactors=ce;const n={lineHeight:1.2,lineGap:.2};b.MyriadProBoldMetrics=n;const P=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.MyriadProBoldItalicFactors=P;const D={lineHeight:1.2,lineGap:.2};b.MyriadProBoldItalicMetrics=D;const e=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.MyriadProItalicFactors=e;const t={lineHeight:1.2,lineGap:.2};b.MyriadProItalicMetrics=t;const c=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.MyriadProRegularFactors=c;const Y={lineHeight:1.2,lineGap:.2};b.MyriadProRegularMetrics=Y},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SegoeuiRegularMetrics=b.SegoeuiRegularFactors=b.SegoeuiItalicMetrics=b.SegoeuiItalicFactors=b.SegoeuiBoldMetrics=b.SegoeuiBoldItalicMetrics=b.SegoeuiBoldItalicFactors=b.SegoeuiBoldFactors=void 0;const ce=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.SegoeuiBoldFactors=ce;const n={lineHeight:1.33008,lineGap:0};b.SegoeuiBoldMetrics=n;const P=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.SegoeuiBoldItalicFactors=P;const D={lineHeight:1.33008,lineGap:0};b.SegoeuiBoldItalicMetrics=D;const e=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];b.SegoeuiItalicFactors=e;const t={lineHeight:1.33008,lineGap:0};b.SegoeuiItalicMetrics=t;const c=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];b.SegoeuiRegularFactors=c;const Y={lineHeight:1.33008,lineGap:0};b.SegoeuiRegularMetrics=Y},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.PostScriptEvaluator=b.PostScriptCompiler=b.PDFFunctionFactory=void 0,b.isPDFFunction=N;var n=ce(4),P=ce(2),D=ce(58),e=ce(5),t=ce(59);class c{constructor({xref:r,isEvalSupported:u=!0}){this.xref=r,this.isEvalSupported=u!==!1}create(r){const u=this.getCached(r);if(u)return u;const C=ee.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:r instanceof n.Ref?this.xref.fetch(r):r});return this._cache(r,C),C}createFromArray(r){const u=this.getCached(r);if(u)return u;const C=ee.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:r instanceof n.Ref?this.xref.fetch(r):r});return this._cache(r,C),C}getCached(r){var C;let u;if(r instanceof n.Ref?u=r:r instanceof n.Dict?u=r.objId:r instanceof e.BaseStream&&(u=(C=r.dict)==null?void 0:C.objId),u){const g=this._localFunctionCache.getByRef(u);if(g)return g}return null}_cache(r,u){var g;if(!u)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let C;r instanceof n.Ref?C=r:r instanceof n.Dict?C=r.objId:r instanceof e.BaseStream&&(C=(g=r.dict)==null?void 0:g.objId),C&&this._localFunctionCache.set(null,C,u)}get _localFunctionCache(){return(0,P.shadow)(this,"_localFunctionCache",new t.LocalFunctionCache)}}b.PDFFunctionFactory=c;function Y(s){if(!Array.isArray(s))return null;const r=s.length;for(let u=0;u<r;u++)if(typeof s[u]!="number"){const C=new Array(r);for(let g=0;g<r;g++)C[g]=+s[g];return C}return s}class ee{static getSampleArray(r,u,C,g){let p,X,$=1;for(p=0,X=r.length;p<X;p++)$*=r[p];$*=u;const y=new Array($);let v=0,m=0;const h=1/(Lt(2,C)-1),A=g.getBytes(($*C+7)/8);let j=0;for(p=0;p<$;p++){for(;v<C;)m<<=8,m|=A[j++],v+=8;v-=C,y[p]=(m>>v)*h,m&=(1<<v)-1}return y}static parse({xref:r,isEvalSupported:u,fn:C}){const g=C.dict||C;switch(g.get("FunctionType")){case 0:return this.constructSampled({xref:r,isEvalSupported:u,fn:C,dict:g});case 1:break;case 2:return this.constructInterpolated({xref:r,isEvalSupported:u,dict:g});case 3:return this.constructStiched({xref:r,isEvalSupported:u,dict:g});case 4:return this.constructPostScript({xref:r,isEvalSupported:u,fn:C,dict:g})}throw new P.FormatError("Unknown type of function")}static parseArray({xref:r,isEvalSupported:u,fnObj:C}){if(!Array.isArray(C))return this.parse({xref:r,isEvalSupported:u,fn:C});const g=[];for(const p of C)g.push(this.parse({xref:r,isEvalSupported:u,fn:r.fetchIfRef(p)}));return function(p,X,$,y){for(let v=0,m=g.length;v<m;v++)g[v](p,X,$,y+v)}}static constructSampled({xref:r,isEvalSupported:u,fn:C,dict:g}){function p(q){const re=q.length,Z=[];let K=0;for(let S=0;S<re;S+=2)Z[K++]=[q[S],q[S+1]];return Z}function X(q,re,Z,K,S){return K+(q-re)*((S-K)/(Z-re))}let $=Y(g.getArray("Domain")),y=Y(g.getArray("Range"));if(!$||!y)throw new P.FormatError("No domain or range");const v=$.length/2,m=y.length/2;$=p($),y=p(y);const h=Y(g.getArray("Size")),A=g.get("BitsPerSample"),j=g.get("Order")||1;j!==1&&(0,P.info)("No support for cubic spline interpolation: "+j);let H=Y(g.getArray("Encode"));if(H)H=p(H);else{H=[];for(let q=0;q<v;++q)H.push([0,h[q]-1])}let J=Y(g.getArray("Decode"));J=J?p(J):y;const oe=this.getSampleArray(h,m,A,C);return function(re,Z,K,S){const k=1<<v,_=new Float64Array(k),G=new Uint32Array(k);let Q,ie;for(ie=0;ie<k;ie++)_[ie]=1;let ae=m,U=1;for(Q=0;Q<v;++Q){const ne=$[Q][0],V=$[Q][1],L=Math.min(Math.max(re[Z+Q],ne),V);let te=X(L,ne,V,H[Q][0],H[Q][1]);const se=h[Q];te=Math.min(Math.max(te,0),se-1);const le=te<se-1?Math.floor(te):te-1,ue=le+1-te,fe=te-le,ge=le*ae,xe=ge+ae;for(ie=0;ie<k;ie++)ie&U?(_[ie]*=fe,G[ie]+=xe):(_[ie]*=ue,G[ie]+=ge);ae*=se,U<<=1}for(ie=0;ie<m;++ie){let ne=0;for(Q=0;Q<k;Q++)ne+=oe[G[Q]+ie]*_[Q];ne=X(ne,0,1,J[ie][0],J[ie][1]),K[S+ie]=Math.min(Math.max(ne,y[ie][0]),y[ie][1])}}}static constructInterpolated({xref:r,isEvalSupported:u,dict:C}){const g=Y(C.getArray("C0"))||[0],p=Y(C.getArray("C1"))||[1],X=C.get("N"),$=[];for(let v=0,m=g.length;v<m;++v)$.push(p[v]-g[v]);const y=$.length;return function(m,h,A,j){const H=X===1?m[h]:Lt(m[h],X);for(let J=0;J<y;++J)A[j+J]=g[J]+H*$[J]}}static constructStiched({xref:r,isEvalSupported:u,dict:C}){const g=Y(C.getArray("Domain"));if(!g)throw new P.FormatError("No domain");if(g.length/2!==1)throw new P.FormatError("Bad domain for stiched function");const X=[];for(const m of C.get("Functions"))X.push(this.parse({xref:r,isEvalSupported:u,fn:r.fetchIfRef(m)}));const $=Y(C.getArray("Bounds")),y=Y(C.getArray("Encode")),v=new Float32Array(1);return function(h,A,j,H){const oe=function(G,Q,ie){return G>ie?G=ie:G<Q&&(G=Q),G}(h[A],g[0],g[1]),q=$.length;let re;for(re=0;re<q&&!(oe<$[re]);++re);let Z=g[0];re>0&&(Z=$[re-1]);let K=g[1];re<$.length&&(K=$[re]);const S=y[2*re],k=y[2*re+1];v[0]=Z===K?S:S+(oe-Z)*(k-S)/(K-Z),X[re](v,0,j,H)}}static constructPostScript({xref:r,isEvalSupported:u,fn:C,dict:g}){const p=Y(g.getArray("Domain")),X=Y(g.getArray("Range"));if(!p)throw new P.FormatError("No domain.");if(!X)throw new P.FormatError("No range.");const $=new D.PostScriptLexer(C),v=new D.PostScriptParser($).parse();if(u&&P.FeatureTest.isEvalSupported){const q=new l().compile(v,p,X);if(q)return new Function("src","srcOffset","dest","destOffset",q)}(0,P.info)("Unable to compile PS function");const m=X.length>>1,h=p.length>>1,A=new f(v),j=Object.create(null);let J=2048*4;const oe=new Float32Array(h);return function(re,Z,K,S){let k,_,G="";const Q=oe;for(k=0;k<h;k++)_=re[Z+k],Q[k]=_,G+=_+"_";const ie=j[G];if(ie!==void 0){K.set(ie,S);return}const ae=new Float32Array(m),U=A.execute(Q),ne=U.length-m;for(k=0;k<m;k++){_=U[ne+k];let V=X[k*2];_<V?_=V:(V=X[k*2+1],_>V&&(_=V)),ae[k]=_}J>0&&(J--,j[G]=ae),K.set(ae,S)}}}function N(s){let r;if(s instanceof n.Dict)r=s;else if(s instanceof e.BaseStream)r=s.dict;else return!1;return r.has("FunctionType")}const F=class{constructor(r){this.stack=r?Array.from(r):[]}push(r){if(this.stack.length>=F.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(r)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(r){if(this.stack.length+r>=F.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const u=this.stack;for(let C=u.length-r,g=r-1;g>=0;g--,C++)u.push(u[C])}index(r){this.push(this.stack[this.stack.length-r-1])}roll(r,u){const C=this.stack,g=C.length-r,p=C.length-1,X=g+(u-Math.floor(u/r)*r);for(let $=g,y=p;$<y;$++,y--){const v=C[$];C[$]=C[y],C[y]=v}for(let $=g,y=X-1;$<y;$++,y--){const v=C[$];C[$]=C[y],C[y]=v}for(let $=X,y=p;$<y;$++,y--){const v=C[$];C[$]=C[y],C[y]=v}}};let I=F;_t(I,"MAX_STACK_SIZE",100);class f{constructor(r){this.operators=r}execute(r){const u=new I(r);let C=0;const g=this.operators,p=g.length;let X,$,y;for(;C<p;){if(X=g[C++],typeof X=="number"){u.push(X);continue}switch(X){case"jz":y=u.pop(),$=u.pop(),$||(C=y);break;case"j":$=u.pop(),C=$;break;case"abs":$=u.pop(),u.push(Math.abs($));break;case"add":y=u.pop(),$=u.pop(),u.push($+y);break;case"and":y=u.pop(),$=u.pop(),typeof $=="boolean"&&typeof y=="boolean"?u.push($&&y):u.push($&y);break;case"atan":y=u.pop(),$=u.pop(),$=Math.atan2($,y)/Math.PI*180,$<0&&($+=360),u.push($);break;case"bitshift":y=u.pop(),$=u.pop(),$>0?u.push($<<y):u.push($>>y);break;case"ceiling":$=u.pop(),u.push(Math.ceil($));break;case"copy":$=u.pop(),u.copy($);break;case"cos":$=u.pop(),u.push(Math.cos($%360/180*Math.PI));break;case"cvi":$=u.pop()|0,u.push($);break;case"cvr":break;case"div":y=u.pop(),$=u.pop(),u.push($/y);break;case"dup":u.copy(1);break;case"eq":y=u.pop(),$=u.pop(),u.push($===y);break;case"exch":u.roll(2,1);break;case"exp":y=u.pop(),$=u.pop(),u.push(Lt($,y));break;case"false":u.push(!1);break;case"floor":$=u.pop(),u.push(Math.floor($));break;case"ge":y=u.pop(),$=u.pop(),u.push($>=y);break;case"gt":y=u.pop(),$=u.pop(),u.push($>y);break;case"idiv":y=u.pop(),$=u.pop(),u.push($/y|0);break;case"index":$=u.pop(),u.index($);break;case"le":y=u.pop(),$=u.pop(),u.push($<=y);break;case"ln":$=u.pop(),u.push(Math.log($));break;case"log":$=u.pop(),u.push(Math.log10($));break;case"lt":y=u.pop(),$=u.pop(),u.push($<y);break;case"mod":y=u.pop(),$=u.pop(),u.push($%y);break;case"mul":y=u.pop(),$=u.pop(),u.push($*y);break;case"ne":y=u.pop(),$=u.pop(),u.push($!==y);break;case"neg":$=u.pop(),u.push(-$);break;case"not":$=u.pop(),typeof $=="boolean"?u.push(!$):u.push(~$);break;case"or":y=u.pop(),$=u.pop(),typeof $=="boolean"&&typeof y=="boolean"?u.push($||y):u.push($|y);break;case"pop":u.pop();break;case"roll":y=u.pop(),$=u.pop(),u.roll($,y);break;case"round":$=u.pop(),u.push(Math.round($));break;case"sin":$=u.pop(),u.push(Math.sin($%360/180*Math.PI));break;case"sqrt":$=u.pop(),u.push(Math.sqrt($));break;case"sub":y=u.pop(),$=u.pop(),u.push($-y);break;case"true":u.push(!0);break;case"truncate":$=u.pop(),$=$<0?Math.ceil($):Math.floor($),u.push($);break;case"xor":y=u.pop(),$=u.pop(),typeof $=="boolean"&&typeof y=="boolean"?u.push($!==y):u.push($^y);break;default:throw new P.FormatError(`Unknown operator ${X}`)}}return u.stack}}b.PostScriptEvaluator=f;class x{constructor(r){this.type=r}visit(r){(0,P.unreachable)("abstract method")}}class a extends x{constructor(r,u,C){super("args"),this.index=r,this.min=u,this.max=C}visit(r){r.visitArgument(this)}}class E extends x{constructor(r){super("literal"),this.number=r,this.min=r,this.max=r}visit(r){r.visitLiteral(this)}}class w extends x{constructor(r,u,C,g,p){super("binary"),this.op=r,this.arg1=u,this.arg2=C,this.min=g,this.max=p}visit(r){r.visitBinaryOperation(this)}}class O extends x{constructor(r,u){super("max"),this.arg=r,this.min=r.min,this.max=u}visit(r){r.visitMin(this)}}class M extends x{constructor(r,u,C){super("var"),this.index=r,this.min=u,this.max=C}visit(r){r.visitVariable(this)}}class B extends x{constructor(r,u){super("definition"),this.variable=r,this.arg=u}visit(r){r.visitVariableDefinition(this)}}class z{constructor(){this.parts=[]}visitArgument(r){this.parts.push("Math.max(",r.min,", Math.min(",r.max,", src[srcOffset + ",r.index,"]))")}visitVariable(r){this.parts.push("v",r.index)}visitLiteral(r){this.parts.push(r.number)}visitBinaryOperation(r){this.parts.push("("),r.arg1.visit(this),this.parts.push(" ",r.op," "),r.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(r){this.parts.push("var "),r.variable.visit(this),this.parts.push(" = "),r.arg.visit(this),this.parts.push(";")}visitMin(r){this.parts.push("Math.min("),r.arg.visit(this),this.parts.push(", ",r.max,")")}toString(){return this.parts.join("")}}function W(s,r){return r.type==="literal"&&r.number===0?s:s.type==="literal"&&s.number===0?r:r.type==="literal"&&s.type==="literal"?new E(s.number+r.number):new w("+",s,r,s.min+r.min,s.max+r.max)}function d(s,r){if(r.type==="literal"){if(r.number===0)return new E(0);if(r.number===1)return s;if(s.type==="literal")return new E(s.number*r.number)}if(s.type==="literal"){if(s.number===0)return new E(0);if(s.number===1)return r}const u=Math.min(s.min*r.min,s.min*r.max,s.max*r.min,s.max*r.max),C=Math.max(s.min*r.min,s.min*r.max,s.max*r.min,s.max*r.max);return new w("*",s,r,u,C)}function T(s,r){if(r.type==="literal"){if(r.number===0)return s;if(s.type==="literal")return new E(s.number-r.number)}return r.type==="binary"&&r.op==="-"&&s.type==="literal"&&s.number===1&&r.arg1.type==="literal"&&r.arg1.number===1?r.arg2:new w("-",s,r,s.min-r.max,s.max-r.min)}function o(s,r){return s.min>=r?new E(r):s.max<=r?s:new O(s,r)}class l{compile(r,u,C){const g=[],p=[],X=u.length>>1,$=C.length>>1;let y=0,v,m,h,A,j,H,J,oe;for(let re=0;re<X;re++)g.push(new a(re,u[re*2],u[re*2+1]));for(let re=0,Z=r.length;re<Z;re++){if(oe=r[re],typeof oe=="number"){g.push(new E(oe));continue}switch(oe){case"add":if(g.length<2)return null;A=g.pop(),h=g.pop(),g.push(W(h,A));break;case"cvr":if(g.length<1)return null;break;case"mul":if(g.length<2)return null;A=g.pop(),h=g.pop(),g.push(d(h,A));break;case"sub":if(g.length<2)return null;A=g.pop(),h=g.pop(),g.push(T(h,A));break;case"exch":if(g.length<2)return null;j=g.pop(),H=g.pop(),g.push(j,H);break;case"pop":if(g.length<1)return null;g.pop();break;case"index":if(g.length<1||(h=g.pop(),h.type!=="literal")||(v=h.number,v<0||!Number.isInteger(v)||g.length<v))return null;if(j=g[g.length-v-1],j.type==="literal"||j.type==="var"){g.push(j);break}J=new M(y++,j.min,j.max),g[g.length-v-1]=J,g.push(J),p.push(new B(J,j));break;case"dup":if(g.length<1)return null;if(typeof r[re+1]=="number"&&r[re+2]==="gt"&&r[re+3]===re+7&&r[re+4]==="jz"&&r[re+5]==="pop"&&r[re+6]===r[re+1]){h=g.pop(),g.push(o(h,r[re+1])),re+=6;break}if(j=g.at(-1),j.type==="literal"||j.type==="var"){g.push(j);break}J=new M(y++,j.min,j.max),g[g.length-1]=J,g.push(J),p.push(new B(J,j));break;case"roll":if(g.length<2||(A=g.pop(),h=g.pop(),A.type!=="literal"||h.type!=="literal")||(m=A.number,v=h.number,v<=0||!Number.isInteger(v)||!Number.isInteger(m)||g.length<v))return null;if(m=(m%v+v)%v,m===0)break;g.push(...g.splice(g.length-v,v-m));break;default:return null}}if(g.length!==$)return null;const q=[];for(const re of p){const Z=new z;re.visit(Z),q.push(Z.toString())}for(let re=0,Z=g.length;re<Z;re++){const K=g[re],S=new z;K.visit(S);const k=C[re*2],_=C[re*2+1],G=[S.toString()];k>K.min&&(G.unshift("Math.max(",k,", "),G.push(")")),_<K.max&&(G.unshift("Math.min(",_,", "),G.push(")")),G.unshift("dest[destOffset + ",re,"] = "),G.push(";"),q.push(G.join(""))}return q.join(`
- `)}}b.PostScriptCompiler=l},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.PostScriptParser=b.PostScriptLexer=void 0;var n=ce(2),P=ce(4),D=ce(3);class e{constructor(N){this.lexer=N,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(N){return this.token.type===N?(this.nextToken(),!0):!1}expect(N){if(this.accept(N))return!0;throw new n.FormatError(`Unexpected symbol: found ${this.token.type} expected ${N}.`)}parse(){return this.nextToken(),this.expect(t.LBRACE),this.parseBlock(),this.expect(t.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(t.NUMBER))this.operators.push(this.prev.value);else if(this.accept(t.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(t.LBRACE))this.parseCondition();else return}parseCondition(){const N=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(t.RBRACE),this.accept(t.IF))this.operators[N]=this.operators.length,this.operators[N+1]="jz";else if(this.accept(t.LBRACE)){const I=this.operators.length;this.operators.push(null,null);const f=this.operators.length;this.parseBlock(),this.expect(t.RBRACE),this.expect(t.IFELSE),this.operators[I]=this.operators.length,this.operators[I+1]="j",this.operators[N]=f,this.operators[N+1]="jz"}else throw new n.FormatError("PS Function: error parsing conditional.")}}b.PostScriptParser=e;const t={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class c{static get opCache(){return(0,n.shadow)(this,"opCache",Object.create(null))}constructor(N,I){this.type=N,this.value=I}static getOperator(N){var I;return(I=c.opCache)[N]||(I[N]=new c(t.OPERATOR,N))}static get LBRACE(){return(0,n.shadow)(this,"LBRACE",new c(t.LBRACE,"{"))}static get RBRACE(){return(0,n.shadow)(this,"RBRACE",new c(t.RBRACE,"}"))}static get IF(){return(0,n.shadow)(this,"IF",new c(t.IF,"IF"))}static get IFELSE(){return(0,n.shadow)(this,"IFELSE",new c(t.IFELSE,"IFELSE"))}}class Y{constructor(N){this.stream=N,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let N=!1,I=this.currentChar;for(;;){if(I<0)return P.EOF;if(N)(I===10||I===13)&&(N=!1);else if(I===37)N=!0;else if(!(0,D.isWhiteSpace)(I))break;I=this.nextChar()}switch(I|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 c(t.NUMBER,this.getNumber());case 123:return this.nextChar(),c.LBRACE;case 125:return this.nextChar(),c.RBRACE}const f=this.strBuf;for(f.length=0,f[0]=String.fromCharCode(I);(I=this.nextChar())>=0&&(I>=65&&I<=90||I>=97&&I<=122);)f.push(String.fromCharCode(I));const x=f.join("");switch(x.toLowerCase()){case"if":return c.IF;case"ifelse":return c.IFELSE;default:return c.getOperator(x)}}getNumber(){let N=this.currentChar;const I=this.strBuf;for(I.length=0,I[0]=String.fromCharCode(N);(N=this.nextChar())>=0&&(N>=48&&N<=57||N===45||N===46);)I.push(String.fromCharCode(N));const f=parseFloat(I.join(""));if(isNaN(f))throw new n.FormatError(`Invalid floating point number: ${f}`);return f}}b.PostScriptLexer=Y},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.RegionalImageCache=b.LocalTilingPatternCache=b.LocalImageCache=b.LocalGStateCache=b.LocalFunctionCache=b.LocalColorSpaceCache=b.GlobalImageCache=void 0;var n=ce(2),P=ce(4);class D{constructor(a){this.constructor===D&&(0,n.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=(a==null?void 0:a.onlyRefs)===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new P.RefSetCache}getByName(a){this._onlyRefs&&(0,n.unreachable)("Should not call `getByName` method.");const E=this._nameRefMap.get(a);return E?this.getByRef(E):this._imageMap.get(a)||null}getByRef(a){return this._imageCache.get(a)||null}set(a,E,w){(0,n.unreachable)("Abstract method `set` called.")}}class e extends D{set(a,E=null,w){if(typeof a!="string")throw new Error('LocalImageCache.set - expected "name" argument.');if(E){if(this._imageCache.has(E))return;this._nameRefMap.set(a,E),this._imageCache.put(E,w);return}this._imageMap.has(a)||this._imageMap.set(a,w)}}b.LocalImageCache=e;class t extends D{set(a=null,E=null,w){if(typeof a!="string"&&!E)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(E){if(this._imageCache.has(E))return;a!==null&&this._nameRefMap.set(a,E),this._imageCache.put(E,w);return}this._imageMap.has(a)||this._imageMap.set(a,w)}}b.LocalColorSpaceCache=t;class c extends D{constructor(a){super({onlyRefs:!0})}set(a=null,E,w){if(!E)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(E)||this._imageCache.put(E,w)}}b.LocalFunctionCache=c;class Y extends D{set(a,E=null,w){if(typeof a!="string")throw new Error('LocalGStateCache.set - expected "name" argument.');if(E){if(this._imageCache.has(E))return;this._nameRefMap.set(a,E),this._imageCache.put(E,w);return}this._imageMap.has(a)||this._imageMap.set(a,w)}}b.LocalGStateCache=Y;class ee extends D{constructor(a){super({onlyRefs:!0})}set(a=null,E,w){if(!E)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(E)||this._imageCache.put(E,w)}}b.LocalTilingPatternCache=ee;class N extends D{constructor(a){super({onlyRefs:!0})}set(a=null,E,w){if(!E)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(E)||this._imageCache.put(E,w)}}b.RegionalImageCache=N;const f=class{constructor(){this._refCache=new P.RefSetCache,this._imageCache=new P.RefSetCache}get _byteSize(){let a=0;for(const E of this._imageCache)a+=E.byteSize;return a}get _cacheLimitReached(){return!(this._imageCache.size<f.MIN_IMAGES_TO_CACHE||this._byteSize<f.MAX_BYTE_SIZE)}shouldCache(a,E){let w=this._refCache.get(a);return w||(w=new Set,this._refCache.put(a,w)),w.add(E),!(w.size<f.NUM_PAGES_THRESHOLD||!this._imageCache.has(a)&&this._cacheLimitReached)}addByteSize(a,E){const w=this._imageCache.get(a);!w||w.byteSize||(w.byteSize=E)}getData(a,E){const w=this._refCache.get(a);if(!w||w.size<f.NUM_PAGES_THRESHOLD)return null;const O=this._imageCache.get(a);return O?(w.add(E),O):null}setData(a,E){if(!this._refCache.has(a))throw new Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');if(!this._imageCache.has(a)){if(this._cacheLimitReached){(0,n.warn)("GlobalImageCache.setData - cache limit reached.");return}this._imageCache.put(a,E)}}clear(a=!1){a||this._refCache.clear(),this._imageCache.clear()}};let I=f;_t(I,"NUM_PAGES_THRESHOLD",2),_t(I,"MIN_IMAGES_TO_CACHE",10),_t(I,"MAX_BYTE_SIZE",5*n.MAX_IMAGE_SIZE_TO_CACHE),b.GlobalImageCache=I},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.bidi=x;var n=ce(2);const P=["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"],D=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function e(a){return(a&1)!==0}function t(a){return(a&1)===0}function c(a,E,w){let O,M;for(O=E,M=a.length;O<M;++O)if(a[O]!==w)return O;return O}function Y(a,E,w,O){for(let M=E;M<w;++M)a[M]=O}function ee(a,E,w){for(let O=E,M=w-1;O<M;++O,--M){const B=a[O];a[O]=a[M],a[M]=B}}function N(a,E,w=!1){let O="ltr";return w?O="ttb":E||(O="rtl"),{str:a,dir:O}}const I=[],f=[];function x(a,E=-1,w=!1){let O=!0;const M=a.length;if(M===0||w)return N(a,O,w);I.length=M,f.length=M;let B=0,z,W;for(z=0;z<M;++z){I[z]=a.charAt(z);const g=a.charCodeAt(z);let p="L";g<=255?p=P[g]:1424<=g&&g<=1524?p="R":1536<=g&&g<=1791?(p=D[g&255],p||(0,n.warn)("Bidi: invalid Unicode character "+g.toString(16))):(1792<=g&&g<=2220||64336<=g&&g<=65023||65136<=g&&g<=65279)&&(p="AL"),(p==="R"||p==="AL"||p==="AN")&&B++,f[z]=p}if(B===0)return O=!0,N(a,O);E===-1&&(B/M<.3&&M>4?(O=!0,E=0):(O=!1,E=1));const d=[];for(z=0;z<M;++z)d[z]=E;const T=e(E)?"R":"L",o=T,l=o;let F=o;for(z=0;z<M;++z)f[z]==="NSM"?f[z]=F:F=f[z];F=o;let s;for(z=0;z<M;++z)s=f[z],s==="EN"?f[z]=F==="AL"?"AN":"EN":(s==="R"||s==="L"||s==="AL")&&(F=s);for(z=0;z<M;++z)s=f[z],s==="AL"&&(f[z]="R");for(z=1;z<M-1;++z)f[z]==="ES"&&f[z-1]==="EN"&&f[z+1]==="EN"&&(f[z]="EN"),f[z]==="CS"&&(f[z-1]==="EN"||f[z-1]==="AN")&&f[z+1]===f[z-1]&&(f[z]=f[z-1]);for(z=0;z<M;++z)if(f[z]==="EN"){for(let g=z-1;g>=0&&f[g]==="ET";--g)f[g]="EN";for(let g=z+1;g<M&&f[g]==="ET";++g)f[g]="EN"}for(z=0;z<M;++z)s=f[z],(s==="WS"||s==="ES"||s==="ET"||s==="CS")&&(f[z]="ON");for(F=o,z=0;z<M;++z)s=f[z],s==="EN"?f[z]=F==="L"?"L":"EN":(s==="R"||s==="L")&&(F=s);for(z=0;z<M;++z)if(f[z]==="ON"){const g=c(f,z+1,"ON");let p=o;z>0&&(p=f[z-1]);let X=l;g+1<M&&(X=f[g+1]),p!=="L"&&(p="R"),X!=="L"&&(X="R"),p===X&&Y(f,z,g,p),z=g-1}for(z=0;z<M;++z)f[z]==="ON"&&(f[z]=T);for(z=0;z<M;++z)s=f[z],t(d[z])?s==="R"?d[z]+=1:(s==="AN"||s==="EN")&&(d[z]+=2):(s==="L"||s==="AN"||s==="EN")&&(d[z]+=1);let r=-1,u=99,C;for(z=0,W=d.length;z<W;++z)C=d[z],r<C&&(r=C),u>C&&e(C)&&(u=C);for(C=r;C>=u;--C){let g=-1;for(z=0,W=d.length;z<W;++z)d[z]<C?g>=0&&(ee(I,g,z),g=-1):g<0&&(g=z);g>=0&&ee(I,g,d.length)}for(z=0,W=I.length;z<W;++z){const g=I[z];(g==="<"||g===">")&&(I[z]="")}return N(I.join(""),O)}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.getFontSubstitution=f;var n=ce(38),P=ce(3);const D={style:"normal",weight:"normal"},e={style:"normal",weight:"bold"},t={style:"italic",weight:"normal"},c={style:"italic",weight:"bold"},Y=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:D,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:e,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:t,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:c,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:D,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:e,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:t,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:c,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:D,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:e,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:t,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:c,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:D,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:e,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:t,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:c,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:D,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:e,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:t,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:c,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:D}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),ee=new Map([["Arial-Black","ArialBlack"]]);function N(x){switch(x){case e:return"Bold";case t:return"Italic";case c:return"Bold Italic";default:if((x==null?void 0:x.weight)==="bold")return"Bold";if((x==null?void 0:x.style)==="italic")return"Italic"}return""}function I({alias:x,local:a,path:E,fallback:w,style:O,ultimate:M},B,z,W=!0,d=!0,T=""){const o={style:null,ultimate:null};if(a){const l=T?` ${T}`:"";for(const F of a)B.push(`local(${F}${l})`)}if(x){const l=Y.get(x),F=T||N(O);Object.assign(o,I(l,B,z,W&&!w,d&&!E,F))}if(O&&(o.style=O),M&&(o.ultimate=M),W&&w){const l=Y.get(w),{ultimate:F}=I(l,B,z,W,d&&!E,T);o.ultimate||(o.ultimate=F)}return d&&E&&z&&B.push(`url(${z}${E})`),o}function f(x,a,E,w,O){w=(0,n.normalizeFontName)(w);const M=w;let B=x.get(M);if(B)return B;let z=Y.get(w);if(!z){for(const[r,u]of ee)if(w.startsWith(r)){w=`${u}${w.substring(r.length)}`,z=Y.get(w);break}}let W=!1;z||(z=Y.get(O),W=!0);const d=`${a.getDocId()}_s${a.createFontId()}`;if(!z){if(!(0,P.validateFontName)(w))return x.set(M,null),null;const r=/bold/gi.test(w),u=/oblique|italic/gi.test(w),C=r&&u&&c||r&&e||u&&t||D;return B={css:d,guessFallback:!0,loadedName:d,baseFontName:w,src:`local(${w})`,style:C},x.set(M,B),B}const T=[];W&&(0,P.validateFontName)(w)&&T.push(`local(${w})`);const{style:o,ultimate:l}=I(z,T,E),F=l===null,s=F?"":`,${l}`;return B={css:`${d}${s}`,guessFallback:F,loadedName:d,baseFontName:w,src:T.join(","),style:o},x.set(M,B),B}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ImageResizer=void 0;var n=ce(2);const P=2048,D=65537,e=128;class t{constructor(Y,ee){this._imgData=Y,this._isMask=ee}static needsToBeResized(Y,ee){if(Y<=this._goodSquareLength&&ee<=this._goodSquareLength)return!1;const{MAX_DIM:N}=this;if(Y>N||ee>N)return!0;const I=Y*ee;if(this._hasMaxArea)return I>this.MAX_AREA;if(I<Lt(this._goodSquareLength,2))return!1;if(this._areGoodDims(Y,ee))return this._goodSquareLength=Math.max(this._goodSquareLength,Math.floor(Math.sqrt(Y*ee))),!1;this._goodSquareLength=this._guessMax(this._goodSquareLength,N,e,0);const f=this.MAX_AREA=Lt(this._goodSquareLength,2);return I>f}static get MAX_DIM(){return(0,n.shadow)(this,"MAX_DIM",this._guessMax(P,D,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,(0,n.shadow)(this,"MAX_AREA",Lt(this._guessMax(t._goodSquareLength,this.MAX_DIM,e,0),2))}static set MAX_AREA(Y){Y>=0&&(this._hasMaxArea=!0,(0,n.shadow)(this,"MAX_AREA",Y))}static setMaxArea(Y){this._hasMaxArea||(this.MAX_AREA=Y>>2)}static _areGoodDims(Y,ee){try{const N=new OffscreenCanvas(Y,ee),I=N.getContext("2d");I.fillRect(0,0,1,1);const f=I.getImageData(0,0,1,1).data[3];return N.width=N.height=1,f!==0}catch(N){return!1}}static _guessMax(Y,ee,N,I){for(;Y+N+1<ee;){const f=Math.floor((Y+ee)/2),x=I||f;this._areGoodDims(f,x)?Y=f:ee=f}return Y}static createImage(Y,ee=!1){return Ue(this,null,function*(){return new t(Y,ee)._createImage()})}_createImage(){return Ue(this,null,function*(){const Y=this._encodeBMP(),ee=new Blob([Y.buffer],{type:"image/bmp"}),N=createImageBitmap(ee),{MAX_AREA:I,MAX_DIM:f}=t,{_imgData:x}=this,{width:a,height:E}=x,w=Math.max(a/f,E/f,Math.sqrt(a*E/I)),O=Math.max(w,2),M=Math.round(10*(w+1.25))/10/O,B=Math.floor(Math.log2(M)),z=new Array(B+2).fill(2);z[0]=O,z.splice(-1,1,M/(1<<B));let W=a,d=E,T=yield N;for(const o of z){const l=W,F=d;W=Math.floor(W/o)-1,d=Math.floor(d/o)-1;const s=new OffscreenCanvas(W,d);s.getContext("2d").drawImage(T,0,0,l,F,0,0,W,d),T=s.transferToImageBitmap()}return x.data=null,x.bitmap=T,x.width=W,x.height=d,x})}_encodeBMP(){const{width:Y,height:ee,kind:N}=this._imgData;let I=this._imgData.data,f,x=new Uint8Array(0),a=x,E=0;switch(N){case n.ImageKind.GRAYSCALE_1BPP:{f=1,x=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);const d=Y+7>>3,T=d+3&-4;if(d!==T){const o=new Uint8Array(T*ee);let l=0;for(let F=0,s=ee*d;F<s;F+=d,l+=T)o.set(I.subarray(F,F+d),l);I=o}break}case n.ImageKind.RGB_24BPP:{if(f=24,Y&3){const d=3*Y,T=d+3&-4,o=T-d,l=new Uint8Array(T*ee);let F=0;for(let s=0,r=ee*d;s<r;s+=d){const u=I.subarray(s,s+d);for(let C=0;C<d;C+=3)l[F++]=u[C+2],l[F++]=u[C+1],l[F++]=u[C];F+=o}I=l}else for(let d=0,T=I.length;d<T;d+=3){const o=I[d];I[d]=I[d+2],I[d+2]=o}break}case n.ImageKind.RGBA_32BPP:f=32,E=3,a=new Uint8Array(68);const W=new DataView(a.buffer);n.FeatureTest.isLittleEndian?(W.setUint32(0,255,!0),W.setUint32(4,65280,!0),W.setUint32(8,16711680,!0),W.setUint32(12,4278190080,!0)):(W.setUint32(0,4278190080,!0),W.setUint32(4,16711680,!0),W.setUint32(8,65280,!0),W.setUint32(12,255,!0));break;default:throw new Error("invalid format")}let w=0;const O=40+a.length,M=14+O+x.length+I.length,B=new Uint8Array(M),z=new DataView(B.buffer);return z.setUint16(w,19778,!0),w+=2,z.setUint32(w,M,!0),w+=4,z.setUint32(w,0,!0),w+=4,z.setUint32(w,14+O+x.length,!0),w+=4,z.setUint32(w,O,!0),w+=4,z.setInt32(w,Y,!0),w+=4,z.setInt32(w,-ee,!0),w+=4,z.setUint16(w,1,!0),w+=2,z.setUint16(w,f,!0),w+=2,z.setUint32(w,E,!0),w+=4,z.setUint32(w,0,!0),w+=4,z.setInt32(w,0,!0),w+=4,z.setInt32(w,0,!0),w+=4,z.setUint32(w,x.length/4,!0),w+=4,z.setUint32(w,0,!0),w+=4,B.set(a,w),w+=a.length,B.set(x,w),w+=x.length,B.set(I,w),B}}b.ImageResizer=t,t._goodSquareLength=P},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.MurmurHash3_64=void 0;var n=ce(2);const P=3285377520,D=4294901760,e=65535;class t{constructor(Y){this.h1=Y?Y&4294967295:P,this.h2=Y?Y&4294967295:P}update(Y){let ee,N;if(typeof Y=="string"){ee=new Uint8Array(Y.length*2),N=0;for(let d=0,T=Y.length;d<T;d++){const o=Y.charCodeAt(d);o<=255?ee[N++]=o:(ee[N++]=o>>>8,ee[N++]=o&255)}}else if((0,n.isArrayBuffer)(Y))ee=Y.slice(),N=ee.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const I=N>>2,f=N-I*4,x=new Uint32Array(ee.buffer,0,I);let a=0,E=0,w=this.h1,O=this.h2;const M=3432918353,B=461845907,z=M&e,W=B&e;for(let d=0;d<I;d++)d&1?(a=x[d],a=a*M&D|a*z&e,a=a<<15|a>>>17,a=a*B&D|a*W&e,w^=a,w=w<<13|w>>>19,w=w*5+3864292196):(E=x[d],E=E*M&D|E*z&e,E=E<<15|E>>>17,E=E*B&D|E*W&e,O^=E,O=O<<13|O>>>19,O=O*5+3864292196);switch(a=0,f){case 3:a^=ee[I*4+2]<<16;case 2:a^=ee[I*4+1]<<8;case 1:a^=ee[I*4],a=a*M&D|a*z&e,a=a<<15|a>>>17,a=a*B&D|a*W&e,I&1?w^=a:O^=a}this.h1=w,this.h2=O}hexdigest(){let Y=this.h1,ee=this.h2;return Y^=ee>>>1,Y=Y*3981806797&D|Y*36045&e,ee=ee*4283543511&D|((ee<<16|Y>>>16)*2950163797&D)>>>16,Y^=ee>>>1,Y=Y*444984403&D|Y*60499&e,ee=ee*3301882366&D|((ee<<16|Y>>>16)*3120437893&D)>>>16,Y^=ee>>>1,(Y>>>0).toString(16).padStart(8,"0")+(ee>>>0).toString(16).padStart(8,"0")}}b.MurmurHash3_64=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.OperatorList=void 0;var n=ce(2);function P(ee,N,I,f,x){let a=ee;for(let E=0,w=N.length-1;E<w;E++){const O=N[E];a=a[O]||(a[O]=[])}a[N.at(-1)]={checkFn:I,iterateFn:f,processFn:x}}const D=[];P(D,[n.OPS.save,n.OPS.transform,n.OPS.paintInlineImageXObject,n.OPS.restore],null,function(N,I){const f=N.fnArray,x=N.iCurr-3,a=(I-x)%4;switch(a){case 0:return f[I]===n.OPS.save;case 1:return f[I]===n.OPS.transform;case 2:return f[I]===n.OPS.paintInlineImageXObject;case 3:return f[I]===n.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${a}`)},function(N,I){const w=N.fnArray,O=N.argsArray,M=N.iCurr,B=M-3,z=M-2,W=M-1,d=Math.min(Math.floor((I-B)/4),200);if(d<10)return I-(I-B)%4;let T=0;const o=[];let l=0,F=1,s=1;for(let X=0;X<d;X++){const $=O[z+(X<<2)],y=O[W+(X<<2)][0];F+y.width>1e3&&(T=Math.max(T,F),s+=l+2,F=0,l=0),o.push({transform:$,x:F,y:s,w:y.width,h:y.height}),F+=y.width+2,l=Math.max(l,y.height)}const r=Math.max(T,F)+1,u=s+l+1,C=new Uint8Array(r*u*4),g=r<<2;for(let X=0;X<d;X++){const $=O[W+(X<<2)][0].data,y=o[X].w<<2;let v=0,m=o[X].x+o[X].y*r<<2;C.set($.subarray(0,y),m-g);for(let h=0,A=o[X].h;h<A;h++)C.set($.subarray(v,v+y),m),v+=y,m+=g;for(C.set($.subarray(v-y,v),m);m>=0;)$[m-4]=$[m],$[m-3]=$[m+1],$[m-2]=$[m+2],$[m-1]=$[m+3],$[m+y]=$[m+y-4],$[m+y+1]=$[m+y-3],$[m+y+2]=$[m+y-2],$[m+y+3]=$[m+y-1],m-=g}const p={width:r,height:u};if(N.isOffscreenCanvasSupported){const X=new OffscreenCanvas(r,u);X.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(C.buffer),r,u),0,0),p.bitmap=X.transferToImageBitmap(),p.data=null}else p.kind=n.ImageKind.RGBA_32BPP,p.data=C;return w.splice(B,d*4,n.OPS.paintInlineImageXObjectGroup),O.splice(B,d*4,[p,o]),B+1}),P(D,[n.OPS.save,n.OPS.transform,n.OPS.paintImageMaskXObject,n.OPS.restore],null,function(N,I){const f=N.fnArray,x=N.iCurr-3,a=(I-x)%4;switch(a){case 0:return f[I]===n.OPS.save;case 1:return f[I]===n.OPS.transform;case 2:return f[I]===n.OPS.paintImageMaskXObject;case 3:return f[I]===n.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${a}`)},function(N,I){const E=N.fnArray,w=N.argsArray,O=N.iCurr,M=O-3,B=O-2,z=O-1;let W=Math.floor((I-M)/4);if(W<10)return I-(I-M)%4;let d=!1,T,o;const l=w[z][0],F=w[B][0],s=w[B][1],r=w[B][2],u=w[B][3];if(s===r){d=!0,T=B+4;let C=z+4;for(let g=1;g<W;g++,T+=4,C+=4)if(o=w[T],w[C][0]!==l||o[0]!==F||o[1]!==s||o[2]!==r||o[3]!==u){g<10?d=!1:W=g;break}}if(d){W=Math.min(W,1e3);const C=new Float32Array(W*2);T=B;for(let g=0;g<W;g++,T+=4)o=w[T],C[g<<1]=o[4],C[(g<<1)+1]=o[5];E.splice(M,W*4,n.OPS.paintImageMaskXObjectRepeat),w.splice(M,W*4,[l,F,s,r,u,C])}else{W=Math.min(W,100);const C=[];for(let g=0;g<W;g++){o=w[B+(g<<2)];const p=w[z+(g<<2)][0];C.push({data:p.data,width:p.width,height:p.height,interpolate:p.interpolate,count:p.count,transform:o})}E.splice(M,W*4,n.OPS.paintImageMaskXObjectGroup),w.splice(M,W*4,[C])}return M+1}),P(D,[n.OPS.save,n.OPS.transform,n.OPS.paintImageXObject,n.OPS.restore],function(ee){const N=ee.argsArray,I=ee.iCurr-2;return N[I][1]===0&&N[I][2]===0},function(N,I){const f=N.fnArray,x=N.argsArray,a=N.iCurr-3,E=(I-a)%4;switch(E){case 0:return f[I]===n.OPS.save;case 1:if(f[I]!==n.OPS.transform)return!1;const w=N.iCurr-2,O=x[w][0],M=x[w][3];return!(x[I][0]!==O||x[I][1]!==0||x[I][2]!==0||x[I][3]!==M);case 2:if(f[I]!==n.OPS.paintImageXObject)return!1;const B=N.iCurr-1,z=x[B][0];return x[I][0]===z;case 3:return f[I]===n.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${E}`)},function(ee,N){const x=ee.fnArray,a=ee.argsArray,E=ee.iCurr,w=E-3,O=E-2,M=E-1,B=a[M][0],z=a[O][0],W=a[O][3],d=Math.min(Math.floor((N-w)/4),1e3);if(d<3)return N-(N-w)%4;const T=new Float32Array(d*2);let o=O;for(let F=0;F<d;F++,o+=4){const s=a[o];T[F<<1]=s[4],T[(F<<1)+1]=s[5]}const l=[B,z,W,T];return x.splice(w,d*4,n.OPS.paintImageXObjectRepeat),a.splice(w,d*4,l),w+1}),P(D,[n.OPS.beginText,n.OPS.setFont,n.OPS.setTextMatrix,n.OPS.showText,n.OPS.endText],null,function(N,I){const f=N.fnArray,x=N.argsArray,a=N.iCurr-4,E=(I-a)%5;switch(E){case 0:return f[I]===n.OPS.beginText;case 1:return f[I]===n.OPS.setFont;case 2:return f[I]===n.OPS.setTextMatrix;case 3:if(f[I]!==n.OPS.showText)return!1;const w=N.iCurr-3,O=x[w][0],M=x[w][1];return!(x[I][0]!==O||x[I][1]!==M);case 4:return f[I]===n.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${E}`)},function(ee,N){const x=ee.fnArray,a=ee.argsArray,E=ee.iCurr,w=E-4,O=E-3,M=E-2,B=E-1,z=E,W=a[O][0],d=a[O][1];let T=Math.min(Math.floor((N-w)/5),1e3);if(T<3)return N-(N-w)%5;let o=w;w>=4&&x[w-4]===x[O]&&x[w-3]===x[M]&&x[w-2]===x[B]&&x[w-1]===x[z]&&a[w-4][0]===W&&a[w-4][1]===d&&(T++,o-=5);let l=o+4;for(let F=1;F<T;F++)x.splice(l,3),a.splice(l,3),l+=2;return l+1});class e{constructor(N){this.queue=N}_optimize(){}push(N,I){this.queue.fnArray.push(N),this.queue.argsArray.push(I),this._optimize()}flush(){}reset(){}}class t extends e{constructor(N){super(N),this.state=null,this.context={iCurr:0,fnArray:N.fnArray,argsArray:N.argsArray,isOffscreenCanvasSupported:!1},this.match=null,this.lastProcessed=0}set isOffscreenCanvasSupported(N){this.context.isOffscreenCanvasSupported=N}_optimize(){const N=this.queue.fnArray;let I=this.lastProcessed,f=N.length,x=this.state,a=this.match;if(!x&&!a&&I+1===f&&!D[N[I]]){this.lastProcessed=f;return}const E=this.context;for(;I<f;){if(a){if((0,a.iterateFn)(E,I)){I++;continue}if(I=(0,a.processFn)(E,I+1),f=N.length,a=null,x=null,I>=f)break}if(x=(x||D)[N[I]],!x||Array.isArray(x)){I++;continue}if(E.iCurr=I,I++,x.checkFn&&!(0,x.checkFn)(E)){x=null;continue}a=x,x=null}this.state=x,this.match=a,this.lastProcessed=I}flush(){for(;this.match;){const N=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,N),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}const Y=class{constructor(N=0,I){this._streamSink=I,this.fnArray=[],this.argsArray=[],this.optimizer=I&&!(N&n.RenderingIntentFlag.OPLIST)?new t(this):new e(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=I?null:Promise.resolve()}set isOffscreenCanvasSupported(N){this.optimizer.isOffscreenCanvasSupported=N}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(N,I){this.optimizer.push(N,I),this.weight++,this._streamSink&&(this.weight>=Y.CHUNK_SIZE?this.flush():this.weight>=Y.CHUNK_SIZE_ABOUT&&(N===n.OPS.restore||N===n.OPS.endText)&&this.flush())}addImageOps(N,I,f){f!==void 0&&this.addOp(n.OPS.beginMarkedContentProps,["OC",f]),this.addOp(N,I),f!==void 0&&this.addOp(n.OPS.endMarkedContent,[])}addDependency(N){this.dependencies.has(N)||(this.dependencies.add(N),this.addOp(n.OPS.dependency,[N]))}addDependencies(N){for(const I of N)this.addDependency(I)}addOpList(N){if(!(N instanceof Y)){(0,n.warn)('addOpList - ignoring invalid "opList" parameter.');return}for(const I of N.dependencies)this.dependencies.add(I);for(let I=0,f=N.length;I<f;I++)this.addOp(N.fnArray[I],N.argsArray[I])}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){var a;const N=[],{fnArray:I,argsArray:f,length:x}=this;for(let E=0;E<x;E++)switch(I[E]){case n.OPS.paintInlineImageXObject:case n.OPS.paintInlineImageXObjectGroup:case n.OPS.paintImageMaskXObject:const w=f[E][0];!w.cached&&((a=w.data)==null?void 0:a.buffer)instanceof ArrayBuffer&&N.push(w.data.buffer);break}return N}flush(N=!1,I=null){this.optimizer.flush();const f=this.length;this._totalLength+=f,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:N,separateAnnots:I,length:f},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}};let c=Y;_t(c,"CHUNK_SIZE",1e3),_t(c,"CHUNK_SIZE_ABOUT",Y.CHUNK_SIZE-5),b.OperatorList=c},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.PDFImage=void 0;var n=ce(2),P=ce(28),D=ce(5),e=ce(12),t=ce(18),c=ce(62),Y=ce(26),ee=ce(30),N=ce(4);function I(a,E,w,O){return a=E+a*w,a<0?a=0:a>O&&(a=O),a}function f(a,E,w,O,M,B){const z=M*B;let W;E<=8?W=new Uint8Array(z):E<=16?W=new Uint16Array(z):W=new Uint32Array(z);const d=w/M,T=O/B;let o,l,F,s=0,r;const u=new Uint16Array(M),C=w;for(o=0;o<M;o++)u[o]=Math.floor(o*d);for(o=0;o<B;o++)for(F=Math.floor(o*T)*C,l=0;l<M;l++)r=F+u[l],W[s++]=a[r];return W}class x{constructor({xref:E,res:w,image:O,isInline:M=!1,smask:B=null,mask:z=null,isMask:W=!1,pdfFunctionFactory:d,localColorSpaceCache:T}){var C;this.image=O;const o=O.dict,l=o.get("F","Filter");let F;if(l instanceof N.Name)F=l.name;else if(Array.isArray(l)){const g=E.fetchIfRef(l[0]);g instanceof N.Name&&(F=g.name)}switch(F){case"JPXDecode":const g=new ee.JpxImage;g.parseImageProperties(O.stream),O.stream.reset(),O.width=g.width,O.height=g.height,O.bitsPerComponent=g.bitsPerComponent,O.numComps=g.componentsCount;break;case"JBIG2Decode":O.bitsPerComponent=1,O.numComps=1;break}let s=o.get("W","Width"),r=o.get("H","Height");if(Number.isInteger(O.width)&&O.width>0&&Number.isInteger(O.height)&&O.height>0&&(O.width!==s||O.height!==r)&&((0,n.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),s=O.width,r=O.height),s<1||r<1)throw new n.FormatError(`Invalid image width: ${s} or height: ${r}`);this.width=s,this.height=r,this.interpolate=o.get("I","Interpolate"),this.imageMask=o.get("IM","ImageMask")||!1,this.matte=o.get("Matte")||!1;let u=O.bitsPerComponent;if(!u&&(u=o.get("BPC","BitsPerComponent"),!u))if(this.imageMask)u=1;else throw new n.FormatError(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=u,!this.imageMask){let g=o.getRaw("CS")||o.getRaw("ColorSpace");if(!g)switch((0,n.info)("JPX images (which do not require color spaces)"),O.numComps){case 1:g=N.Name.get("DeviceGray");break;case 3:g=N.Name.get("DeviceRGB");break;case 4:g=N.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${O.numComps} color components not supported.`)}this.colorSpace=e.ColorSpace.parse({cs:g,xref:E,resources:M?w:null,pdfFunctionFactory:d,localColorSpaceCache:T}),this.numComps=this.colorSpace.numComps}if(this.decode=o.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,u)||W&&!e.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const g=(1<<u)-1;this.decodeCoefficients=[],this.decodeAddends=[];const p=((C=this.colorSpace)==null?void 0:C.name)==="Indexed";for(let X=0,$=0;X<this.decode.length;X+=2,++$){const y=this.decode[X],v=this.decode[X+1];this.decodeCoefficients[$]=p?(v-y)/g:v-y,this.decodeAddends[$]=p?y:g*y}}B?this.smask=new x({xref:E,res:w,image:B,isInline:M,pdfFunctionFactory:d,localColorSpaceCache:T}):z&&(z instanceof D.BaseStream?z.dict.get("IM","ImageMask")?this.mask=new x({xref:E,res:w,image:z,isInline:M,isMask:!0,pdfFunctionFactory:d,localColorSpaceCache:T}):(0,n.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=z)}static buildImage(W){return Ue(this,arguments,function*({xref:E,res:w,image:O,isInline:M=!1,pdfFunctionFactory:B,localColorSpaceCache:z}){const d=O;let T=null,o=null;const l=O.dict.get("SMask"),F=O.dict.get("Mask");return l?l instanceof D.BaseStream?T=l:(0,n.warn)("Unsupported /SMask format."):F&&(F instanceof D.BaseStream||Array.isArray(F)?o=F:(0,n.warn)("Unsupported /Mask format.")),new x({xref:E,res:w,image:d,isInline:M,smask:T,mask:o,pdfFunctionFactory:B,localColorSpaceCache:z})})}static createRawMask({imgArray:E,width:w,height:O,imageIsFromDecodeStream:M,inverseDecode:B,interpolate:z}){const W=(w+7>>3)*O,d=E.byteLength,T=W===d;let o,l;if(M&&(!B||T)?o=E:B?(o=new Uint8Array(W),o.set(E),o.fill(255,d)):o=new Uint8Array(E),B)for(l=0;l<d;l++)o[l]^=255;return{data:o,width:w,height:O,interpolate:z}}static createMask(d){return Ue(this,arguments,function*({imgArray:E,width:w,height:O,imageIsFromDecodeStream:M,inverseDecode:B,interpolate:z,isOffscreenCanvasSupported:W=!1}){const T=w===1&&O===1&&B===(E.length===0||!!(E[0]&128));if(T)return{isSingleOpaquePixel:T};if(W){if(c.ImageResizer.needsToBeResized(w,O)){const r=new Uint8ClampedArray(w*O*4);return(0,P.convertBlackAndWhiteToRGBA)({src:E,dest:r,width:w,height:O,nonBlackColor:0,inverseDecode:B}),c.ImageResizer.createImage({kind:n.ImageKind.RGBA_32BPP,data:r,width:w,height:O,interpolate:z})}const o=new OffscreenCanvas(w,O),l=o.getContext("2d"),F=l.createImageData(w,O);(0,P.convertBlackAndWhiteToRGBA)({src:E,dest:F.data,width:w,height:O,nonBlackColor:0,inverseDecode:B}),l.putImageData(F,0,0);const s=o.transferToImageBitmap();return{data:null,width:w,height:O,interpolate:z,bitmap:s}}return this.createRawMask({imgArray:E,width:w,height:O,inverseDecode:B,imageIsFromDecodeStream:M,interpolate:z})})}get drawWidth(){var E,w;return Math.max(this.width,((E=this.smask)==null?void 0:E.width)||0,((w=this.mask)==null?void 0:w.width)||0)}get drawHeight(){var E,w;return Math.max(this.height,((E=this.smask)==null?void 0:E.height)||0,((w=this.mask)==null?void 0:w.height)||0)}decodeBuffer(E){const w=this.bpc,O=this.numComps,M=this.decodeAddends,B=this.decodeCoefficients,z=(1<<w)-1;let W,d;if(w===1){for(W=0,d=E.length;W<d;W++)E[W]=+!E[W];return}let T=0;for(W=0,d=this.width*this.height;W<d;W++)for(let o=0;o<O;o++)E[T]=I(E[T],M[o],B[o],z),T++}getComponents(E){const w=this.bpc;if(w===8)return E;const O=this.width,M=this.height,B=this.numComps,z=O*M*B;let W=0,d;w<=8?d=new Uint8Array(z):w<=16?d=new Uint16Array(z):d=new Uint32Array(z);const T=O*B,o=(1<<w)-1;let l=0,F,s;if(w===1){let r,u,C;for(let g=0;g<M;g++){for(u=l+(T&-8),C=l+T;l<u;)s=E[W++],d[l]=s>>7&1,d[l+1]=s>>6&1,d[l+2]=s>>5&1,d[l+3]=s>>4&1,d[l+4]=s>>3&1,d[l+5]=s>>2&1,d[l+6]=s>>1&1,d[l+7]=s&1,l+=8;if(l<C)for(s=E[W++],r=128;l<C;)d[l++]=+!!(s&r),r>>=1}}else{let r=0;for(s=0,l=0,F=z;l<F;++l){for(l%T===0&&(s=0,r=0);r<w;)s=s<<8|E[W++],r+=8;const u=r-w;let C=s>>u;C<0?C=0:C>o&&(C=o),d[l]=C,s&=(1<<u)-1,r=u}}return d}fillOpacity(E,w,O,M,B){const z=this.smask,W=this.mask;let d,T,o,l,F,s;if(z)T=z.width,o=z.height,d=new Uint8ClampedArray(T*o),z.fillGrayBuffer(d),(T!==w||o!==O)&&(d=f(d,z.bpc,T,o,w,O));else if(W)if(W instanceof x){for(T=W.width,o=W.height,d=new Uint8ClampedArray(T*o),W.numComps=1,W.fillGrayBuffer(d),l=0,F=T*o;l<F;++l)d[l]=255-d[l];(T!==w||o!==O)&&(d=f(d,W.bpc,T,o,w,O))}else if(Array.isArray(W)){d=new Uint8ClampedArray(w*O);const r=this.numComps;for(l=0,F=w*O;l<F;++l){let u=0;const C=l*r;for(s=0;s<r;++s){const g=B[C+s],p=s*2;if(g<W[p]||g>W[p+1]){u=255;break}}d[l]=u}}else throw new n.FormatError("Unknown mask format.");if(d)for(l=0,s=3,F=w*M;l<F;++l,s+=4)E[s]=d[l];else for(l=0,s=3,F=w*M;l<F;++l,s+=4)E[s]=255}undoPreblend(E,w,O){var o;const M=(o=this.smask)==null?void 0:o.matte;if(!M)return;const B=this.colorSpace.getRgb(M,0),z=B[0],W=B[1],d=B[2],T=w*O*4;for(let l=0;l<T;l+=4){const F=E[l+3];if(F===0){E[l]=255,E[l+1]=255,E[l+2]=255;continue}const s=255/F;E[l]=(E[l]-z)*s+z,E[l+1]=(E[l+1]-W)*s+W,E[l+2]=(E[l+2]-d)*s+d}}createImageData(E=!1,w=!1){return Ue(this,null,function*(){const O=this.drawWidth,M=this.drawHeight,B={width:O,height:M,interpolate:this.interpolate,kind:0,data:null},z=this.numComps,W=this.width,d=this.height,T=this.bpc,o=W*z*T+7>>3,l=w&&c.ImageResizer.needsToBeResized(O,M);if(!E){let y;if(this.colorSpace.name==="DeviceGray"&&T===1?y=n.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&T===8&&!this.needsDecode&&(y=n.ImageKind.RGB_24BPP),y&&!this.smask&&!this.mask&&O===W&&M===d){const v=this.getImageBytes(d*o,{});if(w)return l?c.ImageResizer.createImage({data:v,kind:y,width:O,height:M,interpolate:this.interpolate},this.needsDecode):this.createBitmap(y,W,d,v);if(B.kind=y,B.data=v,this.needsDecode){(0,n.assert)(y===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const m=B.data;for(let h=0,A=m.length;h<A;h++)m[h]^=255}return B}if(this.image instanceof Y.JpegStream&&!this.smask&&!this.mask&&!this.needsDecode){let v=d*o;if(w&&!l){let m=!1;switch(this.colorSpace.name){case"DeviceGray":v*=4,m=!0;break;case"DeviceRGB":v=v/3*4,m=!0;break;case"DeviceCMYK":m=!0;break}if(m){const h=this.getImageBytes(v,{drawWidth:O,drawHeight:M,forceRGBA:!0});return this.createBitmap(n.ImageKind.RGBA_32BPP,O,M,h)}}else switch(this.colorSpace.name){case"DeviceGray":v*=3;case"DeviceRGB":case"DeviceCMYK":return B.kind=n.ImageKind.RGB_24BPP,B.data=this.getImageBytes(v,{drawWidth:O,drawHeight:M,forceRGB:!0}),l?c.ImageResizer.createImage(B):B}}}const F=this.getImageBytes(d*o,{internal:!0}),s=0|F.length/o*M/d,r=this.getComponents(F);let u,C,g,p,X,$;if(w&&!l&&(g=new OffscreenCanvas(O,M),p=g.getContext("2d"),X=p.createImageData(O,M),$=X.data),B.kind=n.ImageKind.RGBA_32BPP,!E&&!this.smask&&!this.mask?(!w||l?(B.kind=n.ImageKind.RGB_24BPP,$=new Uint8ClampedArray(O*M*3),u=0):(new Uint32Array($.buffer).fill(n.FeatureTest.isLittleEndian?4278190080:255),u=1),C=!1):((!w||l)&&($=new Uint8ClampedArray(O*M*4)),u=1,C=!0,this.fillOpacity($,O,M,s,r)),this.needsDecode&&this.decodeBuffer(r),this.colorSpace.fillRgb($,W,d,O,M,s,T,r,u),C&&this.undoPreblend($,O,s),w&&!l){p.putImageData(X,0,0);const y=g.transferToImageBitmap();return{data:null,width:O,height:M,bitmap:y,interpolate:this.interpolate}}return B.data=$,l?c.ImageResizer.createImage(B):B})}fillGrayBuffer(E){const w=this.numComps;if(w!==1)throw new n.FormatError(`Reading gray scale from a color image: ${w}`);const O=this.width,M=this.height,B=this.bpc,z=O*w*B+7>>3,W=this.getImageBytes(M*z,{internal:!0}),d=this.getComponents(W);let T,o;if(B===1){if(o=O*M,this.needsDecode)for(T=0;T<o;++T)E[T]=d[T]-1&255;else for(T=0;T<o;++T)E[T]=-d[T]&255;return}this.needsDecode&&this.decodeBuffer(d),o=O*M;const l=255/((1<<B)-1);for(T=0;T<o;++T)E[T]=l*d[T]}createBitmap(E,w,O,M){const B=new OffscreenCanvas(w,O),z=B.getContext("2d");let W;E===n.ImageKind.RGBA_32BPP?W=new ImageData(M,w,O):(W=z.createImageData(w,O),(0,P.convertToRGBA)({kind:E,src:M,dest:new Uint32Array(W.data.buffer),width:w,height:O,inverseDecode:this.needsDecode})),z.putImageData(W,0,0);const d=B.transferToImageBitmap();return{data:null,width:w,height:O,bitmap:d,interpolate:this.interpolate}}getImageBytes(E,{drawWidth:w,drawHeight:O,forceRGBA:M=!1,forceRGB:B=!1,internal:z=!1}){this.image.reset(),this.image.drawWidth=w||this.width,this.image.drawHeight=O||this.height,this.image.forceRGBA=!!M,this.image.forceRGB=!!B;const W=this.image.getBytes(E);return z||this.image instanceof t.DecodeStream?W:((0,n.assert)(W instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(W))}}b.PDFImage=x},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Catalog=void 0;var n=ce(3),P=ce(2),D=ce(4),e=ce(67),t=ce(5),c=ce(68),Y=ce(12),ee=ce(69),N=ce(59),I=ce(70),f=ce(72);function x(E){return E instanceof D.Dict&&(E=E.get("D")),Array.isArray(E)?E:null}class a{constructor(w,O){if(this.pdfManager=w,this.xref=O,this._catDict=O.getCatalogObj(),!(this._catDict instanceof D.Dict))throw new P.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new D.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new N.GlobalImageCache,this.pageKidsCountCache=new D.RefSetCache,this.pageIndexCache=new D.RefSetCache,this.nonBlendModesSet=new D.RefSet,this.systemFontCache=new Map}cloneDict(){return this._catDict.clone()}get version(){const w=this._catDict.get("Version");if(w instanceof D.Name){if(n.PDF_VERSION_REGEXP.test(w.name))return(0,P.shadow)(this,"version",w.name);(0,P.warn)(`Invalid PDF catalog version: ${w.name}`)}return(0,P.shadow)(this,"version",null)}get lang(){const w=this._catDict.get("Lang");return(0,P.shadow)(this,"lang",typeof w=="string"?(0,P.stringToPDFString)(w):null)}get needsRendering(){const w=this._catDict.get("NeedsRendering");return(0,P.shadow)(this,"needsRendering",typeof w=="boolean"?w:!1)}get collection(){let w=null;try{const O=this._catDict.get("Collection");O instanceof D.Dict&&O.size>0&&(w=O)}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,P.shadow)(this,"collection",w)}get acroForm(){let w=null;try{const O=this._catDict.get("AcroForm");O instanceof D.Dict&&O.size>0&&(w=O)}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,P.shadow)(this,"acroForm",w)}get acroFormRef(){const w=this._catDict.getRaw("AcroForm");return(0,P.shadow)(this,"acroFormRef",w instanceof D.Ref?w:null)}get metadata(){var M;const w=this._catDict.getRaw("Metadata");if(!(w instanceof D.Ref))return(0,P.shadow)(this,"metadata",null);let O=null;try{const B=this.xref.fetch(w,!((M=this.xref.encrypt)!=null&&M.encryptMetadata));if(B instanceof t.BaseStream&&B.dict instanceof D.Dict){const z=B.dict.get("Type"),W=B.dict.get("Subtype");if((0,D.isName)(z,"Metadata")&&(0,D.isName)(W,"XML")){const d=(0,P.stringToUTF8String)(B.getString());d&&(O=new I.MetadataParser(d).serializable)}}}catch(B){if(B instanceof n.MissingDataException)throw B;(0,P.info)(`Skipping invalid Metadata: "${B}".`)}return(0,P.shadow)(this,"metadata",O)}get markInfo(){let w=null;try{w=this._readMarkInfo()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable to read mark info.")}return(0,P.shadow)(this,"markInfo",w)}_readMarkInfo(){const w=this._catDict.get("MarkInfo");if(!(w instanceof D.Dict))return null;const O={Marked:!1,UserProperties:!1,Suspects:!1};for(const M in O){const B=w.get(M);typeof B=="boolean"&&(O[M]=B)}return O}get structTreeRoot(){let w=null;try{w=this._readStructTreeRoot()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable read to structTreeRoot info.")}return(0,P.shadow)(this,"structTreeRoot",w)}_readStructTreeRoot(){const w=this._catDict.getRaw("StructTreeRoot"),O=this.xref.fetchIfRef(w);if(!(O instanceof D.Dict))return null;const M=new f.StructTreeRoot(O,w);return M.init(),M}get toplevelPagesDict(){const w=this._catDict.get("Pages");if(!(w instanceof D.Dict))throw new P.FormatError("Invalid top-level pages dictionary.");return(0,P.shadow)(this,"toplevelPagesDict",w)}get documentOutline(){let w=null;try{w=this._readDocumentOutline()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable to read document outline.")}return(0,P.shadow)(this,"documentOutline",w)}_readDocumentOutline(){let w=this._catDict.get("Outlines");if(!(w instanceof D.Dict)||(w=w.getRaw("First"),!(w instanceof D.Ref)))return null;const O={items:[]},M=[{obj:w,parent:O}],B=new D.RefSet;B.put(w);const z=this.xref,W=new Uint8ClampedArray(3);for(;M.length>0;){const d=M.shift(),T=z.fetchIfRef(d.obj);if(T===null)continue;if(!T.has("Title"))throw new P.FormatError("Invalid outline item encountered.");const o={url:null,dest:null,action:null};a.parseDestDictionary({destDict:T,resultObj:o,docBaseUrl:this.baseUrl,docAttachments:this.attachments});const l=T.get("Title"),F=T.get("F")||0,s=T.getArray("C"),r=T.get("Count");let u=W;Array.isArray(s)&&s.length===3&&(s[0]!==0||s[1]!==0||s[2]!==0)&&(u=Y.ColorSpace.singletons.rgb.getRgb(s,0));const C={action:o.action,attachment:o.attachment,dest:o.dest,url:o.url,unsafeUrl:o.unsafeUrl,newWindow:o.newWindow,setOCGState:o.setOCGState,title:(0,P.stringToPDFString)(l),color:u,count:Number.isInteger(r)?r:void 0,bold:!!(F&2),italic:!!(F&1),items:[]};d.parent.items.push(C),w=T.getRaw("First"),w instanceof D.Ref&&!B.has(w)&&(M.push({obj:w,parent:C}),B.put(w)),w=T.getRaw("Next"),w instanceof D.Ref&&!B.has(w)&&(M.push({obj:w,parent:d.parent}),B.put(w))}return O.items.length>0?O.items:null}get permissions(){let w=null;try{w=this._readPermissions()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable to read permissions.")}return(0,P.shadow)(this,"permissions",w)}_readPermissions(){const w=this.xref.trailer.get("Encrypt");if(!(w instanceof D.Dict))return null;let O=w.get("P");if(typeof O!="number")return null;O+=4294967296;const M=[];for(const B in P.PermissionFlag){const z=P.PermissionFlag[B];O&z&&M.push(z)}return M}get optionalContentConfig(){let w=null;try{const O=this._catDict.get("OCProperties");if(!O)return(0,P.shadow)(this,"optionalContentConfig",null);const M=O.get("D");if(!M)return(0,P.shadow)(this,"optionalContentConfig",null);const B=O.get("OCGs");if(!Array.isArray(B))return(0,P.shadow)(this,"optionalContentConfig",null);const z=[],W=[];for(const d of B){if(!(d instanceof D.Ref))continue;W.push(d);const T=this.xref.fetchIfRef(d);z.push({id:d.toString(),name:typeof T.get("Name")=="string"?(0,P.stringToPDFString)(T.get("Name")):null,intent:typeof T.get("Intent")=="string"?(0,P.stringToPDFString)(T.get("Intent")):null})}w=this._readOptionalContentConfig(M,W),w.groups=z}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)(`Unable to read optional content config: ${O}`)}return(0,P.shadow)(this,"optionalContentConfig",w)}_readOptionalContentConfig(w,O){function M(o){const l=[];if(Array.isArray(o))for(const F of o)F instanceof D.Ref&&O.includes(F)&&l.push(F.toString());return l}function B(o,l=0){if(!Array.isArray(o))return null;const F=[];for(const r of o){if(r instanceof D.Ref&&O.includes(r)){d.put(r),F.push(r.toString());continue}const u=z(r,l);u&&F.push(u)}if(l>0)return F;const s=[];for(const r of O)d.has(r)||s.push(r.toString());return s.length&&F.push({name:null,order:s}),F}function z(o,l){if(++l>T)return(0,P.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const F=W.fetchIfRef(o);if(!Array.isArray(F))return null;const s=W.fetchIfRef(F[0]);if(typeof s!="string")return null;const r=B(F.slice(1),l);return!r||!r.length?null:{name:(0,P.stringToPDFString)(s),order:r}}const W=this.xref,d=new D.RefSet,T=10;return{name:typeof w.get("Name")=="string"?(0,P.stringToPDFString)(w.get("Name")):null,creator:typeof w.get("Creator")=="string"?(0,P.stringToPDFString)(w.get("Creator")):null,baseState:w.get("BaseState")instanceof D.Name?w.get("BaseState").name:null,on:M(w.get("ON")),off:M(w.get("OFF")),order:B(w.get("Order")),groups:null}}setActualNumPages(w=null){this._actualNumPages=w}get hasActualNumPages(){return this._actualNumPages!==null}get _pagesCount(){const w=this.toplevelPagesDict.get("Count");if(!Number.isInteger(w))throw new P.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,P.shadow)(this,"_pagesCount",w)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const w=this._readDests(),O=Object.create(null);if(w instanceof e.NameTree)for(const[M,B]of w.getAll()){const z=x(B);z&&(O[(0,P.stringToPDFString)(M)]=z)}else w instanceof D.Dict&&w.forEach(function(M,B){const z=x(B);z&&(O[M]=z)});return(0,P.shadow)(this,"destinations",O)}getDestination(w){const O=this._readDests();if(O instanceof e.NameTree){const M=x(O.get(w));if(M)return M;const B=this.destinations[w];if(B)return(0,P.warn)(`Found "${w}" at an incorrect position in the NameTree.`),B}else if(O instanceof D.Dict){const M=x(O.get(w));if(M)return M}return null}_readDests(){const w=this._catDict.get("Names");if(w!=null&&w.has("Dests"))return new e.NameTree(w.getRaw("Dests"),this.xref);if(this._catDict.has("Dests"))return this._catDict.get("Dests")}get pageLabels(){let w=null;try{w=this._readPageLabels()}catch(O){if(O instanceof n.MissingDataException)throw O;(0,P.warn)("Unable to read page labels.")}return(0,P.shadow)(this,"pageLabels",w)}_readPageLabels(){const w=this._catDict.getRaw("PageLabels");if(!w)return null;const O=new Array(this.numPages);let M=null,B="";const W=new e.NumberTree(w,this.xref).getAll();let d="",T=1;for(let o=0,l=this.numPages;o<l;o++){const F=W.get(o);if(F!==void 0){if(!(F instanceof D.Dict))throw new P.FormatError("PageLabel is not a dictionary.");if(F.has("Type")&&!(0,D.isName)(F.get("Type"),"PageLabel"))throw new P.FormatError("Invalid type in PageLabel dictionary.");if(F.has("S")){const s=F.get("S");if(!(s instanceof D.Name))throw new P.FormatError("Invalid style in PageLabel dictionary.");M=s.name}else M=null;if(F.has("P")){const s=F.get("P");if(typeof s!="string")throw new P.FormatError("Invalid prefix in PageLabel dictionary.");B=(0,P.stringToPDFString)(s)}else B="";if(F.has("St")){const s=F.get("St");if(!(Number.isInteger(s)&&s>=1))throw new P.FormatError("Invalid start in PageLabel dictionary.");T=s}else T=1}switch(M){case"D":d=T;break;case"R":case"r":d=(0,n.toRomanNumerals)(T,M==="r");break;case"A":case"a":const s=26,C=M==="a"?97:65,g=T-1;d=String.fromCharCode(C+g%s).repeat(Math.floor(g/s)+1);break;default:if(M)throw new P.FormatError(`Invalid style "${M}" in PageLabel dictionary.`);d=""}O[o]=B+d,T++}return O}get pageLayout(){const w=this._catDict.get("PageLayout");let O="";if(w instanceof D.Name)switch(w.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":O=w.name}return(0,P.shadow)(this,"pageLayout",O)}get pageMode(){const w=this._catDict.get("PageMode");let O="UseNone";if(w instanceof D.Name)switch(w.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":O=w.name}return(0,P.shadow)(this,"pageMode",O)}get viewerPreferences(){const w=this._catDict.get("ViewerPreferences");if(!(w instanceof D.Dict))return(0,P.shadow)(this,"viewerPreferences",null);let O=null;for(const M of w.getKeys()){const B=w.get(M);let z;switch(M){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof B=="boolean"&&(z=B);break;case"NonFullScreenPageMode":if(B instanceof D.Name)switch(B.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":z=B.name;break;default:z="UseNone"}break;case"Direction":if(B instanceof D.Name)switch(B.name){case"L2R":case"R2L":z=B.name;break;default:z="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(B instanceof D.Name)switch(B.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":z=B.name;break;default:z="CropBox"}break;case"PrintScaling":if(B instanceof D.Name)switch(B.name){case"None":case"AppDefault":z=B.name;break;default:z="AppDefault"}break;case"Duplex":if(B instanceof D.Name)switch(B.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":z=B.name;break;default:z="None"}break;case"PrintPageRange":Array.isArray(B)&&B.length%2===0&&B.every((d,T,o)=>Number.isInteger(d)&&d>0&&(T===0||d>=o[T-1])&&d<=this.numPages)&&(z=B);break;case"NumCopies":Number.isInteger(B)&&B>0&&(z=B);break;default:(0,P.warn)(`Ignoring non-standard key in ViewerPreferences: ${M}.`);continue}if(z===void 0){(0,P.warn)(`Bad value, for key "${M}", in ViewerPreferences: ${B}.`);continue}O||(O=Object.create(null)),O[M]=z}return(0,P.shadow)(this,"viewerPreferences",O)}get openAction(){const w=this._catDict.get("OpenAction"),O=Object.create(null);if(w instanceof D.Dict){const M=new D.Dict(this.xref);M.set("A",w);const B={url:null,dest:null,action:null};a.parseDestDictionary({destDict:M,resultObj:B}),Array.isArray(B.dest)?O.dest=B.dest:B.action&&(O.action=B.action)}else Array.isArray(w)&&(O.dest=w);return(0,P.shadow)(this,"openAction",(0,P.objectSize)(O)>0?O:null)}get attachments(){const w=this._catDict.get("Names");let O=null;if(w instanceof D.Dict&&w.has("EmbeddedFiles")){const M=new e.NameTree(w.getRaw("EmbeddedFiles"),this.xref);for(const[B,z]of M.getAll()){const W=new ee.FileSpec(z,this.xref);O||(O=Object.create(null)),O[(0,P.stringToPDFString)(B)]=W.serializable}}return(0,P.shadow)(this,"attachments",O)}get xfaImages(){const w=this._catDict.get("Names");let O=null;if(w instanceof D.Dict&&w.has("XFAImages")){const M=new e.NameTree(w.getRaw("XFAImages"),this.xref);for(const[B,z]of M.getAll())O||(O=new D.Dict(this.xref)),O.set((0,P.stringToPDFString)(B),z)}return(0,P.shadow)(this,"xfaImages",O)}_collectJavaScript(){const w=this._catDict.get("Names");let O=null;function M(z,W){if(!(W instanceof D.Dict)||!(0,D.isName)(W.get("S"),"JavaScript"))return;let d=W.get("JS");if(d instanceof t.BaseStream)d=d.getString();else if(typeof d!="string")return;d=(0,P.stringToPDFString)(d).replaceAll("\0",""),d&&(O||(O=new Map)).set(z,d)}if(w instanceof D.Dict&&w.has("JavaScript")){const z=new e.NameTree(w.getRaw("JavaScript"),this.xref);for(const[W,d]of z.getAll())M((0,P.stringToPDFString)(W),d)}const B=this._catDict.get("OpenAction");return B&&M("OpenAction",B),O}get jsActions(){const w=this._collectJavaScript();let O=(0,n.collectActions)(this.xref,this._catDict,P.DocumentActionEventType);if(w){O||(O=Object.create(null));for(const[M,B]of w)M in O?O[M].push(B):O[M]=[B]}return(0,P.shadow)(this,"jsActions",O)}fontFallback(w,O){return Ue(this,null,function*(){const M=yield Promise.all(this.fontCache);for(const B of M)if(B.loadedName===w){B.fallback(O);return}})}cleanup(w=!1){return Ue(this,null,function*(){(0,c.clearGlobalCaches)(),this.globalImageCache.clear(w),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const O=yield Promise.all(this.fontCache);for(const{dict:M}of O)delete M.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()})}getPageDict(w){return Ue(this,null,function*(){const O=[this.toplevelPagesDict],M=new D.RefSet,B=this._catDict.getRaw("Pages");B instanceof D.Ref&&M.put(B);const z=this.xref,W=this.pageKidsCountCache,d=this.pageIndexCache;let T=0;for(;O.length;){const o=O.pop();if(o instanceof D.Ref){const r=W.get(o);if(r>=0&&T+r<=w){T+=r;continue}if(M.has(o))throw new P.FormatError("Pages tree contains circular reference.");M.put(o);const u=yield z.fetchAsync(o);if(u instanceof D.Dict){let C=u.getRaw("Type");if(C instanceof D.Ref&&(C=yield z.fetchAsync(C)),(0,D.isName)(C,"Page")||!u.has("Kids")){if(W.has(o)||W.put(o,1),d.has(o)||d.put(o,T),T===w)return[u,o];T++;continue}}O.push(u);continue}if(!(o instanceof D.Dict))throw new P.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:l}=o;let F=o.getRaw("Count");if(F instanceof D.Ref&&(F=yield z.fetchAsync(F)),Number.isInteger(F)&&F>=0&&(l&&!W.has(l)&&W.put(l,F),T+F<=w)){T+=F;continue}let s=o.getRaw("Kids");if(s instanceof D.Ref&&(s=yield z.fetchAsync(s)),!Array.isArray(s)){let r=o.getRaw("Type");if(r instanceof D.Ref&&(r=yield z.fetchAsync(r)),(0,D.isName)(r,"Page")||!o.has("Kids")){if(T===w)return[o,null];T++;continue}throw new P.FormatError("Page dictionary kids object is not an array.")}for(let r=s.length-1;r>=0;r--)O.push(s[r])}throw new Error(`Page index ${w} not found.`)})}getAllPageDicts(w=!1){return Ue(this,null,function*(){const{ignoreErrors:O}=this.pdfManager.evaluatorOptions,M=[{currentNode:this.toplevelPagesDict,posInKids:0}],B=new D.RefSet,z=this._catDict.getRaw("Pages");z instanceof D.Ref&&B.put(z);const W=new Map,d=this.xref,T=this.pageIndexCache;let o=0;function l(s,r){r&&!T.has(r)&&T.put(r,o),W.set(o++,[s,r])}function F(s){if(s instanceof n.XRefEntryException&&!w)throw s;w&&O&&o===0&&((0,P.warn)(`getAllPageDicts - Skipping invalid first page: "${s}".`),s=D.Dict.empty),W.set(o++,[s,null])}for(;M.length>0;){const s=M.at(-1),{currentNode:r,posInKids:u}=s;let C=r.getRaw("Kids");if(C instanceof D.Ref)try{C=yield d.fetchAsync(C)}catch($){F($);break}if(!Array.isArray(C)){F(new P.FormatError("Page dictionary kids object is not an array."));break}if(u>=C.length){M.pop();continue}const g=C[u];let p;if(g instanceof D.Ref){if(B.has(g)){F(new P.FormatError("Pages tree contains circular reference."));break}B.put(g);try{p=yield d.fetchAsync(g)}catch($){F($);break}}else p=g;if(!(p instanceof D.Dict)){F(new P.FormatError("Page dictionary kid reference points to wrong type of object."));break}let X=p.getRaw("Type");if(X instanceof D.Ref)try{X=yield d.fetchAsync(X)}catch($){F($);break}(0,D.isName)(X,"Page")||!p.has("Kids")?l(p,g instanceof D.Ref?g:null):M.push({currentNode:p,posInKids:0}),s.posInKids++}return W})}getPageIndex(w){const O=this.pageIndexCache.get(w);if(O!==void 0)return Promise.resolve(O);const M=this.xref;function B(d){let T=0,o;return M.fetchAsync(d).then(function(l){if((0,D.isRefsEqual)(d,w)&&!(0,D.isDict)(l,"Page")&&!(l instanceof D.Dict&&!l.has("Type")&&l.has("Contents")))throw new P.FormatError("The reference does not point to a /Page dictionary.");if(!l)return null;if(!(l instanceof D.Dict))throw new P.FormatError("Node must be a dictionary.");return o=l.getRaw("Parent"),l.getAsync("Parent")}).then(function(l){if(!l)return null;if(!(l instanceof D.Dict))throw new P.FormatError("Parent must be a dictionary.");return l.getAsync("Kids")}).then(function(l){if(!l)return null;const F=[];let s=!1;for(const r of l){if(!(r instanceof D.Ref))throw new P.FormatError("Kid must be a reference.");if((0,D.isRefsEqual)(r,d)){s=!0;break}F.push(M.fetchAsync(r).then(function(u){if(!(u instanceof D.Dict))throw new P.FormatError("Kid node must be a dictionary.");u.has("Count")?T+=u.get("Count"):T++}))}if(!s)throw new P.FormatError("Kid reference not found in parent's kids.");return Promise.all(F).then(function(){return[T,o]})})}let z=0;const W=d=>B(d).then(T=>{if(!T)return this.pageIndexCache.put(w,z),z;const[o,l]=T;return z+=o,W(l)});return W(w)}get baseUrl(){const w=this._catDict.get("URI");if(w instanceof D.Dict){const O=w.get("Base");if(typeof O=="string"){const M=(0,P.createValidAbsoluteUrl)(O,null,{tryConvertEncoding:!0});if(M)return(0,P.shadow)(this,"baseUrl",M.href)}}return(0,P.shadow)(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:w,resultObj:O,docBaseUrl:M=null,docAttachments:B=null}){if(!(w instanceof D.Dict)){(0,P.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}let z=w.get("A"),W,d;if(z instanceof D.Dict||(w.has("Dest")?z=w.get("Dest"):(z=w.get("AA"),z instanceof D.Dict&&(z.has("D")?z=z.get("D"):z.has("U")&&(z=z.get("U"))))),z instanceof D.Dict){const T=z.get("S");if(!(T instanceof D.Name)){(0,P.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const o=T.name;switch(o){case"ResetForm":const l=z.get("Flags"),F=((typeof l=="number"?l:0)&1)===0,s=[],r=[];for(const H of z.get("Fields")||[])H instanceof D.Ref?r.push(H.toString()):typeof H=="string"&&s.push((0,P.stringToPDFString)(H));O.resetForm={fields:s,refs:r,include:F};break;case"URI":W=z.get("URI"),W instanceof D.Name&&(W="/"+W.name);break;case"GoTo":d=z.get("D");break;case"Launch":case"GoToR":const u=z.get("F");u instanceof D.Dict?W=u.get("F")||null:typeof u=="string"&&(W=u);let C=z.get("D");if(C&&(C instanceof D.Name&&(C=C.name),typeof W=="string")){const H=W.split("#")[0];typeof C=="string"?W=H+"#"+C:Array.isArray(C)&&(W=H+"#"+JSON.stringify(C))}const g=z.get("NewWindow");typeof g=="boolean"&&(O.newWindow=g);break;case"GoToE":const p=z.get("T");let X;if(B&&p instanceof D.Dict){const H=p.get("R"),J=p.get("N");(0,D.isName)(H,"C")&&typeof J=="string"&&(X=B[(0,P.stringToPDFString)(J)])}X?O.attachment=X:(0,P.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":const $=z.get("N");$ instanceof D.Name&&(O.action=$.name);break;case"SetOCGState":const y=z.get("State"),v=z.get("PreserveRB");if(!Array.isArray(y)||y.length===0)break;const m=[];for(const H of y)if(H instanceof D.Name)switch(H.name){case"ON":case"OFF":case"Toggle":m.push(H.name);break}else H instanceof D.Ref&&m.push(H.toString());if(m.length!==y.length)break;O.setOCGState={state:m,preserveRB:typeof v=="boolean"?v:!0};break;case"JavaScript":const h=z.get("JS");let A;h instanceof t.BaseStream?A=h.getString():typeof h=="string"&&(A=h);const j=A&&(0,n.recoverJsURL)((0,P.stringToPDFString)(A));if(j){W=j.url,O.newWindow=j.newWindow;break}default:if(o==="JavaScript"||o==="SubmitForm")break;(0,P.warn)(`parseDestDictionary - unsupported action: "${o}".`);break}}else w.has("Dest")&&(d=w.get("Dest"));if(typeof W=="string"){const T=(0,P.createValidAbsoluteUrl)(W,M,{addDefaultProtocol:!0,tryConvertEncoding:!0});T&&(O.url=T.href),O.unsafeUrl=W}d&&(d instanceof D.Name&&(d=d.name),typeof d=="string"?O.dest=(0,P.stringToPDFString)(d):Array.isArray(d)&&(O.dest=d))}}b.Catalog=a},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.NumberTree=b.NameTree=void 0;var n=ce(4),P=ce(2);class D{constructor(Y,ee,N){this.constructor===D&&(0,P.unreachable)("Cannot initialize NameOrNumberTree."),this.root=Y,this.xref=ee,this._type=N}getAll(){const Y=new Map;if(!this.root)return Y;const ee=this.xref,N=new n.RefSet;N.put(this.root);const I=[this.root];for(;I.length>0;){const f=ee.fetchIfRef(I.shift());if(!(f instanceof n.Dict))continue;if(f.has("Kids")){const a=f.get("Kids");if(!Array.isArray(a))continue;for(const E of a){if(N.has(E))throw new P.FormatError(`Duplicate entry in "${this._type}" tree.`);I.push(E),N.put(E)}continue}const x=f.get(this._type);if(!!Array.isArray(x))for(let a=0,E=x.length;a<E;a+=2)Y.set(ee.fetchIfRef(x[a]),ee.fetchIfRef(x[a+1]))}return Y}get(Y){if(!this.root)return null;const ee=this.xref;let N=ee.fetchIfRef(this.root),I=0;const f=10;for(;N.has("Kids");){if(++I>f)return(0,P.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const a=N.get("Kids");if(!Array.isArray(a))return null;let E=0,w=a.length-1;for(;E<=w;){const O=E+w>>1,M=ee.fetchIfRef(a[O]),B=M.get("Limits");if(Y<ee.fetchIfRef(B[0]))w=O-1;else if(Y>ee.fetchIfRef(B[1]))E=O+1;else{N=M;break}}if(E>w)return null}const x=N.get(this._type);if(Array.isArray(x)){let a=0,E=x.length-2;for(;a<=E;){const w=a+E>>1,O=w+(w&1),M=ee.fetchIfRef(x[O]);if(Y<M)E=O-2;else if(Y>M)a=O+2;else return ee.fetchIfRef(x[O+1])}}return null}}class e extends D{constructor(Y,ee){super(Y,ee,"Names")}}b.NameTree=e;class t extends D{constructor(Y,ee){super(Y,ee,"Nums")}}b.NumberTree=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.clearGlobalCaches=e;var n=ce(50),P=ce(4),D=ce(40);function e(){(0,n.clearPatternCaches)(),(0,P.clearPrimitiveCaches)(),(0,D.clearUnicodeCaches)()}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.FileSpec=void 0;var n=ce(2),P=ce(5),D=ce(4);function e(c){return c.has("UF")?c.get("UF"):c.has("F")?c.get("F"):c.has("Unix")?c.get("Unix"):c.has("Mac")?c.get("Mac"):c.has("DOS")?c.get("DOS"):null}class t{constructor(Y,ee){Y instanceof D.Dict&&(this.xref=ee,this.root=Y,Y.has("FS")&&(this.fs=Y.get("FS")),this.description=Y.has("Desc")?(0,n.stringToPDFString)(Y.get("Desc")):"",Y.has("RF")&&(0,n.warn)("Related file specifications are not supported"),this.contentAvailable=!0,Y.has("EF")||(this.contentAvailable=!1,(0,n.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const Y=e(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(Y).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=e(this.root.get("EF")));let Y=null;if(this.contentRef){const ee=this.xref.fetchIfRef(this.contentRef);ee instanceof P.BaseStream?Y=ee.getBytes():(0,n.warn)("Embedded file specification points to non-existing/invalid content")}else(0,n.warn)("Embedded file specification does not have a content");return Y}get serializable(){return{filename:this.filename,content:this.content}}}b.FileSpec=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.MetadataParser=void 0;var n=ce(71);class P{constructor(e){e=this._repair(e);const c=new n.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,c&&this._parse(c)}_repair(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,function(t,c){const Y=c.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(N,I,f,x){return String.fromCharCode(I*64+f*8+x*1)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(N,I){switch(I){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${I} isn't defined.`)}),ee=[">"];for(let N=0,I=Y.length;N<I;N+=2){const f=Y.charCodeAt(N)*256+Y.charCodeAt(N+1);f>=32&&f<127&&f!==60&&f!==62&&f!==38?ee.push(String.fromCharCode(f)):ee.push("&#x"+(65536+f).toString(16).substring(1)+";")}return ee.join("")})}_getSequence(e){const t=e.nodeName;return t!=="rdf:bag"&&t!=="rdf:seq"&&t!=="rdf:alt"?null:e.childNodes.filter(c=>c.nodeName==="rdf:li")}_parseArray(e){if(!e.hasChildNodes())return;const[t]=e.childNodes,c=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,c.map(Y=>Y.textContent.trim()))}_parse(e){let t=e.documentElement;if(t.nodeName!=="rdf:rdf")for(t=t.firstChild;t&&t.nodeName!=="rdf:rdf";)t=t.nextSibling;if(!(!t||t.nodeName!=="rdf:rdf"||!t.hasChildNodes())){for(const c of t.childNodes)if(c.nodeName==="rdf:description")for(const Y of c.childNodes){const ee=Y.nodeName;switch(ee){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(Y);continue}this._metadataMap.set(ee,Y.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}b.MetadataParser=P},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.XMLParserErrorCode=b.XMLParserBase=b.SimpleXMLParser=b.SimpleDOMNode=void 0;var n=ce(3);const P={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};b.XMLParserErrorCode=P;function D(ee,N){const I=ee[N];return I===" "||I===`
- `||I==="\r"||I===" "}function e(ee){for(let N=0,I=ee.length;N<I;N++)if(!D(ee,N))return!1;return!0}class t{_resolveEntities(N){return N.replaceAll(/&([^;]+);/g,(I,f)=>{if(f.substring(0,2)==="#x")return String.fromCodePoint(parseInt(f.substring(2),16));if(f.substring(0,1)==="#")return String.fromCodePoint(parseInt(f.substring(1),10));switch(f){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(f)})}_parseContent(N,I){const f=[];let x=I;function a(){for(;x<N.length&&D(N,x);)++x}for(;x<N.length&&!D(N,x)&&N[x]!==">"&&N[x]!=="/";)++x;const E=N.substring(I,x);for(a();x<N.length&&N[x]!==">"&&N[x]!=="/"&&N[x]!=="?";){a();let w="",O="";for(;x<N.length&&!D(N,x)&&N[x]!=="=";)w+=N[x],++x;if(a(),N[x]!=="=")return null;++x,a();const M=N[x];if(M!=='"'&&M!=="'")return null;const B=N.indexOf(M,++x);if(B<0)return null;O=N.substring(x,B),f.push({name:w,value:this._resolveEntities(O)}),x=B+1,a()}return{name:E,attributes:f,parsed:x-I}}_parseProcessingInstruction(N,I){let f=I;function x(){for(;f<N.length&&D(N,f);)++f}for(;f<N.length&&!D(N,f)&&N[f]!==">"&&N[f]!=="?"&&N[f]!=="/";)++f;const a=N.substring(I,f);x();const E=f;for(;f<N.length&&(N[f]!=="?"||N[f+1]!==">");)++f;const w=N.substring(E,f);return{name:a,value:w,parsed:f-I}}parseXml(N){let I=0;for(;I<N.length;){const f=N[I];let x=I;if(f==="<"){++x;const a=N[x];let E;switch(a){case"/":if(++x,E=N.indexOf(">",x),E<0){this.onError(P.UnterminatedElement);return}this.onEndElement(N.substring(x,E)),x=E+1;break;case"?":++x;const w=this._parseProcessingInstruction(N,x);if(N.substring(x+w.parsed,x+w.parsed+2)!=="?>"){this.onError(P.UnterminatedXmlDeclaration);return}this.onPi(w.name,w.value),x+=w.parsed+2;break;case"!":if(N.substring(x+1,x+3)==="--"){if(E=N.indexOf("-->",x+3),E<0){this.onError(P.UnterminatedComment);return}this.onComment(N.substring(x+3,E)),x=E+3}else if(N.substring(x+1,x+8)==="[CDATA["){if(E=N.indexOf("]]>",x+8),E<0){this.onError(P.UnterminatedCdat);return}this.onCdata(N.substring(x+8,E)),x=E+3}else if(N.substring(x+1,x+8)==="DOCTYPE"){const B=N.indexOf("[",x+8);let z=!1;if(E=N.indexOf(">",x+8),E<0){this.onError(P.UnterminatedDoctypeDeclaration);return}if(B>0&&E>B){if(E=N.indexOf("]>",x+8),E<0){this.onError(P.UnterminatedDoctypeDeclaration);return}z=!0}const W=N.substring(x+8,E+(z?1:0));this.onDoctype(W),x=E+(z?2:1)}else{this.onError(P.MalformedElement);return}break;default:const O=this._parseContent(N,x);if(O===null){this.onError(P.MalformedElement);return}let M=!1;if(N.substring(x+O.parsed,x+O.parsed+2)==="/>")M=!0;else if(N.substring(x+O.parsed,x+O.parsed+1)!==">"){this.onError(P.UnterminatedElement);return}this.onBeginElement(O.name,O.attributes,M),x+=O.parsed+(M?2:1);break}}else{for(;x<N.length&&N[x]!=="<";)x++;const a=N.substring(I,x);this.onText(this._resolveEntities(a))}I=x}}onResolveEntity(N){return`&${N};`}onPi(N,I){}onComment(N){}onCdata(N){}onDoctype(N){}onText(N){}onBeginElement(N,I,f){}onEndElement(N){}onError(N){}}b.XMLParserBase=t;class c{constructor(N,I){this.nodeName=N,this.nodeValue=I,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){var N;return(N=this.childNodes)==null?void 0:N[0]}get nextSibling(){const N=this.parentNode.childNodes;if(!N)return;const I=N.indexOf(this);if(I!==-1)return N[I+1]}get textContent(){return this.childNodes?this.childNodes.map(function(N){return N.textContent}).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){var N;return((N=this.childNodes)==null?void 0:N.length)>0}searchNode(N,I){var E;if(I>=N.length)return this;const f=N[I];if(f.name.startsWith("#")&&I<N.length-1)return this.searchNode(N,I+1);const x=[];let a=this;for(;;){if(f.name===a.nodeName)if(f.pos===0){const w=a.searchNode(N,I+1);if(w!==null)return w}else{if(x.length===0)return null;{const[w]=x.pop();let O=0;for(const M of w.childNodes)if(f.name===M.nodeName){if(O===f.pos)return M.searchNode(N,I+1);O++}return a.searchNode(N,I+1)}}if(((E=a.childNodes)==null?void 0:E.length)>0)x.push([a,0]),a=a.childNodes[0];else{if(x.length===0)return null;for(;x.length!==0;){const[w,O]=x.pop(),M=O+1;if(M<w.childNodes.length){x.push([w,M]),a=w.childNodes[M];break}}if(x.length===0)return null}}}dump(N){if(this.nodeName==="#text"){N.push((0,n.encodeToXmlString)(this.nodeValue));return}if(N.push(`<${this.nodeName}`),this.attributes)for(const I of this.attributes)N.push(` ${I.name}="${(0,n.encodeToXmlString)(I.value)}"`);if(this.hasChildNodes()){N.push(">");for(const I of this.childNodes)I.dump(N);N.push(`</${this.nodeName}>`)}else this.nodeValue?N.push(`>${(0,n.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`):N.push("/>")}}b.SimpleDOMNode=c;class Y extends t{constructor({hasAttributes:N=!1,lowerCaseName:I=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=P.NoError,this._hasAttributes=N,this._lowerCaseName=I}parseFromString(N){if(this._currentFragment=[],this._stack=[],this._errorCode=P.NoError,this.parseXml(N),this._errorCode!==P.NoError)return;const[I]=this._currentFragment;if(!!I)return{documentElement:I}}onText(N){if(e(N))return;const I=new c("#text",N);this._currentFragment.push(I)}onCdata(N){const I=new c("#text",N);this._currentFragment.push(I)}onBeginElement(N,I,f){this._lowerCaseName&&(N=N.toLowerCase());const x=new c(N);x.childNodes=[],this._hasAttributes&&(x.attributes=I),this._currentFragment.push(x),!f&&(this._stack.push(this._currentFragment),this._currentFragment=x.childNodes)}onEndElement(N){this._currentFragment=this._stack.pop()||[];const I=this._currentFragment.at(-1);if(!I)return null;for(const f of I.childNodes)f.parentNode=I;return I}onError(N){this._errorCode=N}}b.SimpleXMLParser=Y},(Re,b,ce)=>{var f,na,a,qn,w,aa,M,ia;Object.defineProperty(b,"__esModule",{value:!0}),b.StructTreeRoot=b.StructTreePage=void 0;var n=ce(2),P=ce(4),D=ce(67),e=ce(73);const t=40,c={PAGE_CONTENT:1,STREAM_CONTENT:2,OBJECT:3,ANNOTATION:4,ELEMENT:5},z=class{constructor(d,T){kt(this,f);this.dict=d,this.ref=T instanceof P.Ref?T:null,this.roleMap=new Map,this.structParentIds=null}init(){this.readRoleMap()}addAnnotationIdToPage(d,T){st(this,f,na).call(this,d,T,c.ANNOTATION)}readRoleMap(){const d=this.dict.get("RoleMap");d instanceof P.Dict&&d.forEach((T,o)=>{o instanceof P.Name&&this.roleMap.set(T,o.name)})}static canCreateStructureTree(l){return Ue(this,arguments,function*({catalogRef:d,pdfManager:T,newAnnotationsByPage:o}){var r;if(!(d instanceof P.Ref))return(0,n.warn)("Cannot save the struct tree: no catalog reference."),!1;let F=0,s=!0;for(const[u,C]of o){const{ref:g}=yield T.getPage(u);if(!(g instanceof P.Ref)){(0,n.warn)(`Cannot save the struct tree: page ${u} has no ref.`),s=!0;break}for(const p of C)(r=p.accessibilityData)!=null&&r.type&&(p.parentTreeId=F++,s=!1)}if(s){for(const u of o.values())for(const C of u)delete C.parentTreeId;return!1}return!0})}static createStructureTree(s){return Ue(this,arguments,function*({newAnnotationsByPage:d,xref:T,catalogRef:o,pdfManager:l,newRefs:F}){const r=l.catalog.cloneDict(),u=T.getNewTemporaryRef();r.set("StructTreeRoot",u);const C=[];yield(0,e.writeObject)(o,r,C,T),F.push({ref:o,data:C.join("")});const g=new P.Dict(T);g.set("Type",P.Name.get("StructTreeRoot"));const p=T.getNewTemporaryRef();g.set("ParentTree",p);const X=[];g.set("K",X);const $=new P.Dict(T),y=[];$.set("Nums",y);const v=yield st(this,a,qn).call(this,{newAnnotationsByPage:d,structTreeRootRef:u,kids:X,nums:y,xref:T,pdfManager:l,newRefs:F,buffer:C});g.set("ParentTreeNextKey",v),C.length=0,yield(0,e.writeObject)(p,$,C,T),F.push({ref:p,data:C.join("")}),C.length=0,yield(0,e.writeObject)(u,g,C,T),F.push({ref:u,data:C.join("")})})}canUpdateStructTree(o){return Ue(this,arguments,function*({pdfManager:d,newAnnotationsByPage:T}){var C,g;if(!this.ref)return(0,n.warn)("Cannot update the struct tree: no root reference."),!1;let l=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(l)||l<0)return(0,n.warn)("Cannot update the struct tree: invalid next key."),!1;const F=this.dict.get("ParentTree");if(!(F instanceof P.Dict))return(0,n.warn)("Cannot update the struct tree: ParentTree isn't a dict."),!1;const s=F.get("Nums");if(!Array.isArray(s))return(0,n.warn)("Cannot update the struct tree: nums isn't an array."),!1;const{numPages:r}=d.catalog;for(const p of T.keys()){const{pageDict:X,ref:$}=yield d.getPage(p);if(!($ instanceof P.Ref))return(0,n.warn)(`Cannot save the struct tree: page ${p} has no ref.`),!1;const y=X.get("StructParents");if(!Number.isInteger(y)||y<0||y>=r)return(0,n.warn)(`Cannot save the struct tree: page ${p} has no id.`),!1}let u=!0;for(const[p,X]of T){const{pageDict:$}=yield d.getPage(p);st(C=z,w,aa).call(C,{elements:X,xref:this.dict.xref,pageDict:$,parentTree:F});for(const y of X)(g=y.accessibilityData)!=null&&g.type&&(y.parentTreeId=l++,u=!1)}if(u){for(const p of T.values())for(const X of p)delete X.parentTreeId,delete X.structTreeParent;return!1}return!0})}updateStructureTree(l){return Ue(this,arguments,function*({newAnnotationsByPage:d,pdfManager:T,newRefs:o}){var m;const F=this.dict.xref,s=this.dict.clone(),r=this.ref;let u=s.getRaw("ParentTree"),C;u instanceof P.Ref?C=F.fetch(u):(C=u,u=F.getNewTemporaryRef(),s.set("ParentTree",u)),C=C.clone();let g=C.getRaw("Nums"),p=null;g instanceof P.Ref&&(p=g,g=F.fetch(p)),g=g.slice(),p||C.set("Nums",g);let X=s.getRaw("K"),$=null;X instanceof P.Ref?($=X,X=F.fetch($)):($=F.getNewTemporaryRef(),s.set("K",$)),X=Array.isArray(X)?X.slice():[X];const y=[],v=yield st(m=z,a,qn).call(m,{newAnnotationsByPage:d,structTreeRootRef:r,kids:X,nums:g,xref:F,pdfManager:T,newRefs:o,buffer:y});s.set("ParentTreeNextKey",v),y.length=0,yield(0,e.writeObject)($,X,y,F),o.push({ref:$,data:y.join("")}),p&&(y.length=0,yield(0,e.writeObject)(p,g,y,F),o.push({ref:p,data:y.join("")})),y.length=0,yield(0,e.writeObject)(u,C,y,F),o.push({ref:u,data:y.join("")}),y.length=0,yield(0,e.writeObject)(r,s,y,F),o.push({ref:r,data:y.join("")})})}};let Y=z;f=new WeakSet,na=function(d,T,o){if(!(d instanceof P.Ref)||T<0)return;this.structParentIds||(this.structParentIds=new P.RefSetCache);let l=this.structParentIds.get(d);l||(l=[],this.structParentIds.put(d,l)),l.push([T,o])},a=new WeakSet,qn=function(C){return Ue(this,arguments,function*({newAnnotationsByPage:d,structTreeRootRef:T,kids:o,nums:l,xref:F,pdfManager:s,newRefs:r,buffer:u}){const g=P.Name.get("OBJR");let p=-1/0;for(const[X,$]of d){const{ref:y}=yield s.getPage(X);for(const{accessibilityData:{type:v,title:m,lang:h,alt:A,expanded:j,actualText:H},ref:J,parentTreeId:oe,structTreeParent:q}of $){p=Math.max(p,oe);const re=F.getNewTemporaryRef(),Z=new P.Dict(F);Z.set("S",P.Name.get(v)),m&&Z.set("T",m),h&&Z.set("Lang",h),A&&Z.set("Alt",A),j&&Z.set("E",j),H&&Z.set("ActualText",H),q?yield st(this,M,ia).call(this,{structTreeParent:q,tagDict:Z,newTagRef:re,fallbackRef:T,xref:F,newRefs:r,buffer:u}):Z.set("P",T);const K=new P.Dict(F);Z.set("K",K),K.set("Type",g),K.set("Pg",y),K.set("Obj",J),u.length=0,yield(0,e.writeObject)(re,Z,u,F),r.push({ref:re,data:u.join("")}),l.push(oe,re),o.push(re)}}return p+1})},w=new WeakSet,aa=function({elements:d,xref:T,pageDict:o,parentTree:l}){const F=new Map;for(const g of d)if(g.structTreeParentId){const p=parseInt(g.structTreeParentId.split("_mc")[1],10);F.set(p,g)}const s=o.get("StructParents"),u=new D.NumberTree(l,T).get(s);if(!Array.isArray(u))return;const C=(g,p,X)=>{const $=F.get(g);if($){const y=p.getRaw("P"),v=T.fetchIfRef(y);return y instanceof P.Ref&&v instanceof P.Dict&&($.structTreeParent={ref:X,dict:p}),!0}return!1};for(const g of u){if(!(g instanceof P.Ref))continue;const p=T.fetch(g),X=p.get("K");if(Number.isInteger(X)){C(X,p,g);continue}if(!!Array.isArray(X)){for(let $ of X)if($=T.fetchIfRef($),Number.isInteger($)&&C($,p,g))break}}},M=new WeakSet,ia=function(C){return Ue(this,arguments,function*({structTreeParent:{ref:d,dict:T},tagDict:o,newTagRef:l,fallbackRef:F,xref:s,newRefs:r,buffer:u}){const g=T.getRaw("P");let p=s.fetchIfRef(g);o.set("P",g);let X=!1,$,y=p.getRaw("K");if(y instanceof P.Ref?$=s.fetch(y):($=y,y=s.getNewTemporaryRef(),p=p.clone(),p.set("K",y),X=!0),Array.isArray($)){const v=$.indexOf(d);if(v>=0)$=$.slice(),$.splice(v+1,0,l);else{(0,n.warn)("Cannot update the struct tree: parent kid not found."),o.set("P",F);return}}else $ instanceof P.Dict&&($=[y,l],y=s.getNewTemporaryRef(),p.set("K",y),X=!0);u.length=0,yield(0,e.writeObject)(y,$,u,s),r.push({ref:y,data:u.join("")}),X&&(u.length=0,yield(0,e.writeObject)(g,p,u,s),r.push({ref:g,data:u.join("")}))})},kt(Y,a),kt(Y,w),kt(Y,M),b.StructTreeRoot=Y;class ee{constructor(d,T){this.tree=d,this.dict=T,this.kids=[],this.parseKids()}get role(){const d=this.dict.get("S"),T=d instanceof P.Name?d.name:"",{root:o}=this.tree;return o.roleMap.has(T)?o.roleMap.get(T):T}parseKids(){let d=null;const T=this.dict.getRaw("Pg");T instanceof P.Ref&&(d=T.toString());const o=this.dict.get("K");if(Array.isArray(o))for(const l of o){const F=this.parseKid(d,l);F&&this.kids.push(F)}else{const l=this.parseKid(d,o);l&&this.kids.push(l)}}parseKid(d,T){if(Number.isInteger(T))return this.tree.pageDict.objId!==d?null:new N({type:c.PAGE_CONTENT,mcid:T,pageObjId:d});let o=null;if(T instanceof P.Ref?o=this.dict.xref.fetch(T):T instanceof P.Dict&&(o=T),!o)return null;const l=o.getRaw("Pg");l instanceof P.Ref&&(d=l.toString());const F=o.get("Type")instanceof P.Name?o.get("Type").name:null;if(F==="MCR"){if(this.tree.pageDict.objId!==d)return null;const s=o.getRaw("Stm");return new N({type:c.STREAM_CONTENT,refObjId:s instanceof P.Ref?s.toString():null,pageObjId:d,mcid:o.get("MCID")})}if(F==="OBJR"){if(this.tree.pageDict.objId!==d)return null;const s=o.getRaw("Obj");return new N({type:c.OBJECT,refObjId:s instanceof P.Ref?s.toString():null,pageObjId:d})}return new N({type:c.ELEMENT,dict:o})}}class N{constructor({type:d,dict:T=null,mcid:o=null,pageObjId:l=null,refObjId:F=null}){this.type=d,this.dict=T,this.mcid=o,this.pageObjId=l,this.refObjId=F,this.parentNode=null}}class I{constructor(d,T){this.root=d,this.rootDict=d?d.dict:null,this.pageDict=T,this.nodes=[]}parse(d){var r,u;if(!this.root||!this.rootDict)return;const T=this.rootDict.get("ParentTree");if(!T)return;const o=this.pageDict.get("StructParents"),l=d instanceof P.Ref&&((r=this.root.structParentIds)==null?void 0:r.get(d));if(!Number.isInteger(o)&&!l)return;const F=new Map,s=new D.NumberTree(T,this.rootDict.xref);if(Number.isInteger(o)){const C=s.get(o);if(Array.isArray(C))for(const g of C)g instanceof P.Ref&&this.addNode(this.rootDict.xref.fetch(g),F)}if(!!l)for(const[C,g]of l){const p=s.get(C);if(p){const X=this.addNode(this.rootDict.xref.fetchIfRef(p),F);((u=X==null?void 0:X.kids)==null?void 0:u.length)===1&&X.kids[0].type===c.OBJECT&&(X.kids[0].type=g)}}}addNode(d,T,o=0){if(o>t)return(0,n.warn)("StructTree MAX_DEPTH reached."),null;if(T.has(d))return T.get(d);const l=new ee(this,d);T.set(d,l);const F=d.get("P");if(!F||(0,P.isName)(F.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(d,l)||T.delete(d),l;const s=this.addNode(F,T,o+1);if(!s)return l;let r=!1;for(const u of s.kids)u.type===c.ELEMENT&&u.dict===d&&(u.parentNode=l,r=!0);return r||T.delete(d),l}addTopLevelNode(d,T){const o=this.rootDict.get("K");if(!o)return!1;if(o instanceof P.Dict)return o.objId!==d.objId?!1:(this.nodes[0]=T,!0);if(!Array.isArray(o))return!0;let l=!1;for(let F=0;F<o.length;F++){const s=o[F];(s==null?void 0:s.toString())===d.objId&&(this.nodes[F]=T,l=!0)}return l}get serializable(){function d(o,l,F=0){if(F>t){(0,n.warn)("StructTree too deep to be fully serialized.");return}const s=Object.create(null);s.role=o.role,s.children=[],l.children.push(s);const r=o.dict.get("Alt");typeof r=="string"&&(s.alt=(0,n.stringToPDFString)(r));const u=o.dict.get("Lang");typeof u=="string"&&(s.lang=(0,n.stringToPDFString)(u));for(const C of o.kids){const g=C.type===c.ELEMENT?C.parentNode:null;if(g){d(g,s,F+1);continue}else C.type===c.PAGE_CONTENT||C.type===c.STREAM_CONTENT?s.children.push({type:"content",id:`p${C.pageObjId}_mc${C.mcid}`}):C.type===c.OBJECT?s.children.push({type:"object",id:C.refObjId}):C.type===c.ANNOTATION&&s.children.push({type:"annotation",id:`${n.AnnotationPrefix}${C.refObjId}`})}}const T=Object.create(null);T.children=[],T.role="Root";for(const o of this.nodes)!o||d(o,T);return T}}b.StructTreePage=I},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.incrementalUpdate=B,b.writeDict=ee,b.writeObject=Y;var n=ce(2),P=ce(4),D=ce(3),e=ce(71),t=ce(5),c=ce(74);function Y(o,l,F,s){return Ue(this,arguments,function*(z,W,d,{encrypt:T=null}){const r=T==null?void 0:T.createCipherTransform(z.num,z.gen);d.push(`${z.num} ${z.gen} obj
- `),W instanceof P.Dict?yield ee(W,d,r):W instanceof t.BaseStream?yield N(W,d,r):Array.isArray(W)&&(yield I(W,d,r)),d.push(`
- endobj
- `)})}function ee(z,W,d){return Ue(this,null,function*(){W.push("<<");for(const T of z.getKeys())W.push(` /${(0,D.escapePDFName)(T)} `),yield f(z.getRaw(T),W,d);W.push(">>")})}function N(z,W,d){return Ue(this,null,function*(){let T=z.getString();const{dict:o}=z,[l,F]=yield Promise.all([o.getAsync("Filter"),o.getAsync("DecodeParms")]),s=Array.isArray(l)?yield o.xref.fetchIfRefAsync(l[0]):l,r=(0,P.isName)(s,"FlateDecode"),u=256;if(typeof CompressionStream!="undefined"&&(T.length>=u||r))try{const C=(0,n.stringToBytes)(T),g=new CompressionStream("deflate"),p=g.writable.getWriter();p.write(C),p.close();const X=yield new Response(g.readable).arrayBuffer();T=(0,n.bytesToString)(new Uint8Array(X));let $,y;l?r||($=Array.isArray(l)?[P.Name.get("FlateDecode"),...l]:[P.Name.get("FlateDecode"),l],F&&(y=Array.isArray(F)?[null,...F]:[null,F])):$=P.Name.get("FlateDecode"),$&&o.set("Filter",$),y&&o.set("DecodeParms",y)}catch(C){(0,n.info)(`writeStream - cannot compress data: "${C}".`)}d&&(T=d.encryptString(T)),o.set("Length",T.length),yield ee(o,W,d),W.push(` stream
- `,T,`
- endstream`)})}function I(z,W,d){return Ue(this,null,function*(){W.push("[");let T=!0;for(const o of z)T?T=!1:W.push(" "),yield f(o,W,d);W.push("]")})}function f(z,W,d){return Ue(this,null,function*(){z instanceof P.Name?W.push(`/${(0,D.escapePDFName)(z.name)}`):z instanceof P.Ref?W.push(`${z.num} ${z.gen} R`):Array.isArray(z)?yield I(z,W,d):typeof z=="string"?(d&&(z=d.encryptString(z)),W.push(`(${(0,D.escapeString)(z)})`)):typeof z=="number"?W.push((0,D.numberToString)(z)):typeof z=="boolean"?W.push(z.toString()):z instanceof P.Dict?yield ee(z,W,d):z instanceof t.BaseStream?yield N(z,W,d):z===null?W.push("null"):(0,n.warn)(`Unhandled value in writer: ${typeof z}, please file a bug.`)})}function x(z,W,d,T){for(let o=W+d-1;o>d-1;o--)T[o]=z&255,z>>=8;return d+W}function a(z,W,d){for(let T=0,o=z.length;T<o;T++)d[W+T]=z.charCodeAt(T)&255}function E(z,W){const d=Math.floor(Date.now()/1e3),T=W.filename||"",o=[d.toString(),T,z.toString()];let l=o.reduce((r,u)=>r+u.length,0);for(const r of Object.values(W.info))o.push(r),l+=r.length;const F=new Uint8Array(l);let s=0;for(const r of o)a(r,s,F),s+=r.length;return(0,n.bytesToString)((0,c.calculateMD5)(F))}function w(z,W){const d=new e.SimpleXMLParser({hasAttributes:!0}).parseFromString(z);for(const{xfa:o}of W){if(!o)continue;const{path:l,value:F}=o;if(!l)continue;const s=(0,D.parseXFAPath)(l);let r=d.documentElement.searchNode(s,0);!r&&s.length>1&&(r=d.documentElement.searchNode([s.at(-1)],0)),r?r.childNodes=Array.isArray(F)?F.map(u=>new e.SimpleDOMNode("value",u)):[new e.SimpleDOMNode("#text",F)]:(0,n.warn)(`Node not found for path: ${l}`)}const T=[];return d.documentElement.dump(T),T.join("")}function O(r){return Ue(this,arguments,function*({xref:z,acroForm:W,acroFormRef:d,hasXfa:T,hasXfaDatasetsEntry:o,xfaDatasetsRef:l,needAppearances:F,newRefs:s}){if(T&&!o&&!l&&(0,n.warn)("XFA - Cannot save it"),!F&&(!T||!l||o))return;const u=W.clone();if(T&&!o){const g=W.get("XFA").slice();g.splice(2,0,"datasets"),g.splice(3,0,l),u.set("XFA",g)}F&&u.set("NeedAppearances",!0);const C=[];yield Y(d,u,C,z),s.push({ref:d,data:C.join("")})})}function M({xfaData:z,xfaDatasetsRef:W,newRefs:d,xref:T}){if(z===null){const F=T.fetchIfRef(W);z=w(F.getString(),d)}const o=T.encrypt;o&&(z=o.createCipherTransform(W.num,W.gen).encryptString(z));const l=`${W.num} ${W.gen} obj
- << /Type /EmbeddedFile /Length ${z.length}>>
- stream
- `+z+`
- endstream
- endobj
- `;d.push({ref:W,data:l})}function B(g){return Ue(this,arguments,function*({originalData:z,xrefInfo:W,newRefs:d,xref:T=null,hasXfa:o=!1,xfaDatasetsRef:l=null,hasXfaDatasetsEntry:F=!1,needAppearances:s,acroFormRef:r=null,acroForm:u=null,xfaData:C=null}){yield O({xref:T,acroForm:u,acroFormRef:r,hasXfa:o,hasXfaDatasetsEntry:F,xfaDatasetsRef:l,needAppearances:s,newRefs:d}),o&&M({xfaData:C,xfaDatasetsRef:l,newRefs:d,xref:T});const p=new P.Dict(null),X=W.newRef;let $,y;const v=z.at(-1);v===10||v===13?($=[],y=z.length):($=[`
- `],y=z.length+1),p.set("Size",X.num+1),p.set("Prev",W.startXRef),p.set("Type",P.Name.get("XRef")),W.rootRef!==null&&p.set("Root",W.rootRef),W.infoRef!==null&&p.set("Info",W.infoRef),W.encryptRef!==null&&p.set("Encrypt",W.encryptRef),d.push({ref:X,data:""}),d=d.sort((S,k)=>S.ref.num-k.ref.num);const m=[[0,1,65535]],h=[0,1];let A=0;for(const{ref:S,data:k}of d)A=Math.max(A,y),m.push([1,y,Math.min(S.gen,65535)]),y+=k.length,h.push(S.num,1),$.push(k);if(p.set("Index",h),Array.isArray(W.fileIds)&&W.fileIds.length>0){const S=E(y,W);p.set("ID",[W.fileIds[0],S])}const H=[1,Math.ceil(Math.log2(A)/8),2],oe=(H[0]+H[1]+H[2])*m.length;p.set("W",H),p.set("Length",oe),$.push(`${X.num} ${X.gen} obj
- `),yield ee(p,$,null),$.push(` stream
- `);const q=$.reduce((S,k)=>S+k.length,0),re=`
- endstream
- endobj
- startxref
- ${y}
- %%EOF
- `,Z=new Uint8Array(z.length+q+oe+re.length);Z.set(z);let K=z.length;for(const S of $)a(S,K,Z),K+=S.length;for(const[S,k,_]of m)K=x(S,H[0],K,Z),K=x(k,H[1],K,Z),K=x(_,H[2],K,Z);return a(re,K,Z),Z})}},(Re,b,ce)=>{var B,z,sa,d,Wn,o,ra,F,An,r,Vn;Object.defineProperty(b,"__esModule",{value:!0}),b.calculateSHA256=b.calculateMD5=b.PDF20=b.PDF17=b.CipherTransformFactory=b.ARCFourCipher=b.AES256Cipher=b.AES128Cipher=void 0,b.calculateSHA384=N,b.calculateSHA512=void 0;var n=ce(2),P=ce(4),D=ce(75);class e{constructor(p){this.a=0,this.b=0;const X=new Uint8Array(256),$=p.length;for(let y=0;y<256;++y)X[y]=y;for(let y=0,v=0;y<256;++y){const m=X[y];v=v+m+p[y%$]&255,X[y]=X[v],X[v]=m}this.s=X}encryptBlock(p){let X=this.a,$=this.b;const y=this.s,v=p.length,m=new Uint8Array(v);for(let h=0;h<v;++h){X=X+1&255;const A=y[X];$=$+A&255;const j=y[$];y[X]=j,y[$]=A,m[h]=p[h]^y[A+j&255]}return this.a=X,this.b=$,m}decryptBlock(p){return this.encryptBlock(p)}encrypt(p){return this.encryptBlock(p)}}b.ARCFourCipher=e;const t=function(){const p=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]),X=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function $(y,v,m){let h=1732584193,A=-271733879,j=-1732584194,H=271733878;const J=m+72&-64,oe=new Uint8Array(J);let q,re;for(q=0;q<m;++q)oe[q]=y[v++];oe[q++]=128;const Z=J-8;for(;q<Z;)oe[q++]=0;oe[q++]=m<<3&255,oe[q++]=m>>5&255,oe[q++]=m>>13&255,oe[q++]=m>>21&255,oe[q++]=m>>>29&255,oe[q++]=0,oe[q++]=0,oe[q++]=0;const K=new Int32Array(16);for(q=0;q<J;){for(re=0;re<16;++re,q+=4)K[re]=oe[q]|oe[q+1]<<8|oe[q+2]<<16|oe[q+3]<<24;let S=h,k=A,_=j,G=H,Q,ie;for(re=0;re<64;++re){re<16?(Q=k&_|~k&G,ie=re):re<32?(Q=G&k|~G&_,ie=5*re+1&15):re<48?(Q=k^_^G,ie=3*re+5&15):(Q=_^(k|~G),ie=7*re&15);const ae=G,U=S+Q+X[re]+K[ie]|0,ne=p[re];G=_,_=k,k=k+(U<<ne|U>>>32-ne)|0,S=ae}h=h+S|0,A=A+k|0,j=j+_|0,H=H+G|0}return new Uint8Array([h&255,h>>8&255,h>>16&255,h>>>24&255,A&255,A>>8&255,A>>16&255,A>>>24&255,j&255,j>>8&255,j>>16&255,j>>>24&255,H&255,H>>8&255,H>>16&255,H>>>24&255])}return $}();b.calculateMD5=t;class c{constructor(p,X){this.high=p|0,this.low=X|0}and(p){this.high&=p.high,this.low&=p.low}xor(p){this.high^=p.high,this.low^=p.low}or(p){this.high|=p.high,this.low|=p.low}shiftRight(p){p>=32?(this.low=this.high>>>p-32|0,this.high=0):(this.low=this.low>>>p|this.high<<32-p,this.high=this.high>>>p|0)}shiftLeft(p){p>=32?(this.high=this.low<<p-32,this.low=0):(this.high=this.high<<p|this.low>>>32-p,this.low<<=p)}rotateRight(p){let X,$;p&32?($=this.low,X=this.high):(X=this.low,$=this.high),p&=31,this.low=X>>>p|$<<32-p,this.high=$>>>p|X<<32-p}not(){this.high=~this.high,this.low=~this.low}add(p){const X=(this.low>>>0)+(p.low>>>0);let $=(this.high>>>0)+(p.high>>>0);X>4294967295&&($+=1),this.low=X|0,this.high=$|0}copyTo(p,X){p[X]=this.high>>>24&255,p[X+1]=this.high>>16&255,p[X+2]=this.high>>8&255,p[X+3]=this.high&255,p[X+4]=this.low>>>24&255,p[X+5]=this.low>>16&255,p[X+6]=this.low>>8&255,p[X+7]=this.low&255}assign(p){this.high=p.high,this.low=p.low}}const Y=function(){function p(H,J){return H>>>J|H<<32-J}function X(H,J,oe){return H&J^~H&oe}function $(H,J,oe){return H&J^H&oe^J&oe}function y(H){return p(H,2)^p(H,13)^p(H,22)}function v(H){return p(H,6)^p(H,11)^p(H,25)}function m(H){return p(H,7)^p(H,18)^H>>>3}function h(H){return p(H,17)^p(H,19)^H>>>10}const A=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function j(H,J,oe){let q=1779033703,re=3144134277,Z=1013904242,K=2773480762,S=1359893119,k=2600822924,_=528734635,G=1541459225;const Q=Math.ceil((oe+9)/64)*64,ie=new Uint8Array(Q);let ae,U;for(ae=0;ae<oe;++ae)ie[ae]=H[J++];ie[ae++]=128;const ne=Q-8;for(;ae<ne;)ie[ae++]=0;ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=oe>>>29&255,ie[ae++]=oe>>21&255,ie[ae++]=oe>>13&255,ie[ae++]=oe>>5&255,ie[ae++]=oe<<3&255;const V=new Uint32Array(64);for(ae=0;ae<Q;){for(U=0;U<16;++U)V[U]=ie[ae]<<24|ie[ae+1]<<16|ie[ae+2]<<8|ie[ae+3],ae+=4;for(U=16;U<64;++U)V[U]=h(V[U-2])+V[U-7]+m(V[U-15])+V[U-16]|0;let L=q,te=re,se=Z,le=K,ue=S,fe=k,ge=_,xe=G,me,be;for(U=0;U<64;++U)me=xe+v(ue)+X(ue,fe,ge)+A[U]+V[U],be=y(L)+$(L,te,se),xe=ge,ge=fe,fe=ue,ue=le+me|0,le=se,se=te,te=L,L=me+be|0;q=q+L|0,re=re+te|0,Z=Z+se|0,K=K+le|0,S=S+ue|0,k=k+fe|0,_=_+ge|0,G=G+xe|0}return new Uint8Array([q>>24&255,q>>16&255,q>>8&255,q&255,re>>24&255,re>>16&255,re>>8&255,re&255,Z>>24&255,Z>>16&255,Z>>8&255,Z&255,K>>24&255,K>>16&255,K>>8&255,K&255,S>>24&255,S>>16&255,S>>8&255,S&255,k>>24&255,k>>16&255,k>>8&255,k&255,_>>24&255,_>>16&255,_>>8&255,_&255,G>>24&255,G>>16&255,G>>8&255,G&255])}return j}();b.calculateSHA256=Y;const ee=function(){function p(j,H,J,oe,q){j.assign(H),j.and(J),q.assign(H),q.not(),q.and(oe),j.xor(q)}function X(j,H,J,oe,q){j.assign(H),j.and(J),q.assign(H),q.and(oe),j.xor(q),q.assign(J),q.and(oe),j.xor(q)}function $(j,H,J){j.assign(H),j.rotateRight(28),J.assign(H),J.rotateRight(34),j.xor(J),J.assign(H),J.rotateRight(39),j.xor(J)}function y(j,H,J){j.assign(H),j.rotateRight(14),J.assign(H),J.rotateRight(18),j.xor(J),J.assign(H),J.rotateRight(41),j.xor(J)}function v(j,H,J){j.assign(H),j.rotateRight(1),J.assign(H),J.rotateRight(8),j.xor(J),J.assign(H),J.shiftRight(7),j.xor(J)}function m(j,H,J){j.assign(H),j.rotateRight(19),J.assign(H),J.rotateRight(61),j.xor(J),J.assign(H),J.shiftRight(6),j.xor(J)}const h=[new c(1116352408,3609767458),new c(1899447441,602891725),new c(3049323471,3964484399),new c(3921009573,2173295548),new c(961987163,4081628472),new c(1508970993,3053834265),new c(2453635748,2937671579),new c(2870763221,3664609560),new c(3624381080,2734883394),new c(310598401,1164996542),new c(607225278,1323610764),new c(1426881987,3590304994),new c(1925078388,4068182383),new c(2162078206,991336113),new c(2614888103,633803317),new c(3248222580,3479774868),new c(3835390401,2666613458),new c(4022224774,944711139),new c(264347078,2341262773),new c(604807628,2007800933),new c(770255983,1495990901),new c(1249150122,1856431235),new c(1555081692,3175218132),new c(1996064986,2198950837),new c(2554220882,3999719339),new c(2821834349,766784016),new c(2952996808,2566594879),new c(3210313671,3203337956),new c(3336571891,1034457026),new c(3584528711,2466948901),new c(113926993,3758326383),new c(338241895,168717936),new c(666307205,1188179964),new c(773529912,1546045734),new c(1294757372,1522805485),new c(1396182291,2643833823),new c(1695183700,2343527390),new c(1986661051,1014477480),new c(2177026350,1206759142),new c(2456956037,344077627),new c(2730485921,1290863460),new c(2820302411,3158454273),new c(3259730800,3505952657),new c(3345764771,106217008),new c(3516065817,3606008344),new c(3600352804,1432725776),new c(4094571909,1467031594),new c(275423344,851169720),new c(430227734,3100823752),new c(506948616,1363258195),new c(659060556,3750685593),new c(883997877,3785050280),new c(958139571,3318307427),new c(1322822218,3812723403),new c(1537002063,2003034995),new c(1747873779,3602036899),new c(1955562222,1575990012),new c(2024104815,1125592928),new c(2227730452,2716904306),new c(2361852424,442776044),new c(2428436474,593698344),new c(2756734187,3733110249),new c(3204031479,2999351573),new c(3329325298,3815920427),new c(3391569614,3928383900),new c(3515267271,566280711),new c(3940187606,3454069534),new c(4118630271,4000239992),new c(116418474,1914138554),new c(174292421,2731055270),new c(289380356,3203993006),new c(460393269,320620315),new c(685471733,587496836),new c(852142971,1086792851),new c(1017036298,365543100),new c(1126000580,2618297676),new c(1288033470,3409855158),new c(1501505948,4234509866),new c(1607167915,987167468),new c(1816402316,1246189591)];function A(j,H,J,oe=!1){let q,re,Z,K,S,k,_,G;oe?(q=new c(3418070365,3238371032),re=new c(1654270250,914150663),Z=new c(2438529370,812702999),K=new c(355462360,4144912697),S=new c(1731405415,4290775857),k=new c(2394180231,1750603025),_=new c(3675008525,1694076839),G=new c(1203062813,3204075428)):(q=new c(1779033703,4089235720),re=new c(3144134277,2227873595),Z=new c(1013904242,4271175723),K=new c(2773480762,1595750129),S=new c(1359893119,2917565137),k=new c(2600822924,725511199),_=new c(528734635,4215389547),G=new c(1541459225,327033209));const Q=Math.ceil((J+17)/128)*128,ie=new Uint8Array(Q);let ae,U;for(ae=0;ae<J;++ae)ie[ae]=j[H++];ie[ae++]=128;const ne=Q-16;for(;ae<ne;)ie[ae++]=0;ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=0,ie[ae++]=J>>>29&255,ie[ae++]=J>>21&255,ie[ae++]=J>>13&255,ie[ae++]=J>>5&255,ie[ae++]=J<<3&255;const V=new Array(80);for(ae=0;ae<80;ae++)V[ae]=new c(0,0);let L=new c(0,0),te=new c(0,0),se=new c(0,0),le=new c(0,0),ue=new c(0,0),fe=new c(0,0),ge=new c(0,0),xe=new c(0,0);const me=new c(0,0),be=new c(0,0),ye=new c(0,0),Se=new c(0,0);let pe;for(ae=0;ae<Q;){for(U=0;U<16;++U)V[U].high=ie[ae]<<24|ie[ae+1]<<16|ie[ae+2]<<8|ie[ae+3],V[U].low=ie[ae+4]<<24|ie[ae+5]<<16|ie[ae+6]<<8|ie[ae+7],ae+=8;for(U=16;U<80;++U)pe=V[U],m(pe,V[U-2],Se),pe.add(V[U-7]),v(ye,V[U-15],Se),pe.add(ye),pe.add(V[U-16]);for(L.assign(q),te.assign(re),se.assign(Z),le.assign(K),ue.assign(S),fe.assign(k),ge.assign(_),xe.assign(G),U=0;U<80;++U)me.assign(xe),y(ye,ue,Se),me.add(ye),p(ye,ue,fe,ge,Se),me.add(ye),me.add(h[U]),me.add(V[U]),$(be,L,Se),X(ye,L,te,se,Se),be.add(ye),pe=xe,xe=ge,ge=fe,fe=ue,le.add(me),ue=le,le=se,se=te,te=L,pe.assign(me),pe.add(be),L=pe;q.add(L),re.add(te),Z.add(se),K.add(le),S.add(ue),k.add(fe),_.add(ge),G.add(xe)}let he;return oe?(he=new Uint8Array(48),q.copyTo(he,0),re.copyTo(he,8),Z.copyTo(he,16),K.copyTo(he,24),S.copyTo(he,32),k.copyTo(he,40)):(he=new Uint8Array(64),q.copyTo(he,0),re.copyTo(he,8),Z.copyTo(he,16),K.copyTo(he,24),S.copyTo(he,32),k.copyTo(he,40),_.copyTo(he,48),G.copyTo(he,56)),he}return A}();b.calculateSHA512=ee;function N(g,p,X){return ee(g,p,X,!0)}class I{decryptBlock(p){return p}encrypt(p){return p}}class f{constructor(){this.constructor===f&&(0,n.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let p=0;p<256;p++)this._mixCol[p]=p<128?p<<1:p<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(p){(0,n.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(p,X){let $,y,v;const m=new Uint8Array(16);m.set(p);for(let h=0,A=this._keySize;h<16;++h,++A)m[h]^=X[A];for(let h=this._cyclesOfRepetition-1;h>=1;--h){$=m[13],m[13]=m[9],m[9]=m[5],m[5]=m[1],m[1]=$,$=m[14],y=m[10],m[14]=m[6],m[10]=m[2],m[6]=$,m[2]=y,$=m[15],y=m[11],v=m[7],m[15]=m[3],m[11]=$,m[7]=y,m[3]=v;for(let A=0;A<16;++A)m[A]=this._inv_s[m[A]];for(let A=0,j=h*16;A<16;++A,++j)m[A]^=X[j];for(let A=0;A<16;A+=4){const j=this._mix[m[A]],H=this._mix[m[A+1]],J=this._mix[m[A+2]],oe=this._mix[m[A+3]];$=j^H>>>8^H<<24^J>>>16^J<<16^oe>>>24^oe<<8,m[A]=$>>>24&255,m[A+1]=$>>16&255,m[A+2]=$>>8&255,m[A+3]=$&255}}$=m[13],m[13]=m[9],m[9]=m[5],m[5]=m[1],m[1]=$,$=m[14],y=m[10],m[14]=m[6],m[10]=m[2],m[6]=$,m[2]=y,$=m[15],y=m[11],v=m[7],m[15]=m[3],m[11]=$,m[7]=y,m[3]=v;for(let h=0;h<16;++h)m[h]=this._inv_s[m[h]],m[h]^=X[h];return m}_encrypt(p,X){const $=this._s;let y,v,m;const h=new Uint8Array(16);h.set(p);for(let A=0;A<16;++A)h[A]^=X[A];for(let A=1;A<this._cyclesOfRepetition;A++){for(let j=0;j<16;++j)h[j]=$[h[j]];m=h[1],h[1]=h[5],h[5]=h[9],h[9]=h[13],h[13]=m,m=h[2],v=h[6],h[2]=h[10],h[6]=h[14],h[10]=m,h[14]=v,m=h[3],v=h[7],y=h[11],h[3]=h[15],h[7]=m,h[11]=v,h[15]=y;for(let j=0;j<16;j+=4){const H=h[j+0],J=h[j+1],oe=h[j+2],q=h[j+3];y=H^J^oe^q,h[j+0]^=y^this._mixCol[H^J],h[j+1]^=y^this._mixCol[J^oe],h[j+2]^=y^this._mixCol[oe^q],h[j+3]^=y^this._mixCol[q^H]}for(let j=0,H=A*16;j<16;++j,++H)h[j]^=X[H]}for(let A=0;A<16;++A)h[A]=$[h[A]];m=h[1],h[1]=h[5],h[5]=h[9],h[9]=h[13],h[13]=m,m=h[2],v=h[6],h[2]=h[10],h[6]=h[14],h[10]=m,h[14]=v,m=h[3],v=h[7],y=h[11],h[3]=h[15],h[7]=m,h[11]=v,h[15]=y;for(let A=0,j=this._keySize;A<16;++A,++j)h[A]^=X[j];return h}_decryptBlock2(p,X){const $=p.length;let y=this.buffer,v=this.bufferPosition;const m=[];let h=this.iv;for(let H=0;H<$;++H){if(y[v]=p[H],++v,v<16)continue;const J=this._decrypt(y,this._key);for(let oe=0;oe<16;++oe)J[oe]^=h[oe];h=y,m.push(J),y=new Uint8Array(16),v=0}if(this.buffer=y,this.bufferLength=v,this.iv=h,m.length===0)return new Uint8Array(0);let A=16*m.length;if(X){const H=m.at(-1);let J=H[15];if(J<=16){for(let oe=15,q=16-J;oe>=q;--oe)if(H[oe]!==J){J=0;break}A-=J,m[m.length-1]=H.subarray(0,16-J)}}const j=new Uint8Array(A);for(let H=0,J=0,oe=m.length;H<oe;++H,J+=16)j.set(m[H],J);return j}decryptBlock(p,X,$=null){const y=p.length,v=this.buffer;let m=this.bufferPosition;if($)this.iv=$;else{for(let h=0;m<16&&h<y;++h,++m)v[m]=p[h];if(m<16)return this.bufferLength=m,new Uint8Array(0);this.iv=v,p=p.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(p,X)}encrypt(p,X){const $=p.length;let y=this.buffer,v=this.bufferPosition;const m=[];X||(X=new Uint8Array(16));for(let j=0;j<$;++j){if(y[v]=p[j],++v,v<16)continue;for(let J=0;J<16;++J)y[J]^=X[J];const H=this._encrypt(y,this._key);X=H,m.push(H),y=new Uint8Array(16),v=0}if(this.buffer=y,this.bufferLength=v,this.iv=X,m.length===0)return new Uint8Array(0);const h=16*m.length,A=new Uint8Array(h);for(let j=0,H=0,J=m.length;j<J;++j,H+=16)A.set(m[j],H);return A}}class x extends f{constructor(p){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(p)}_expandKey(p){const $=this._s,y=this._rcon,v=new Uint8Array(176);v.set(p);for(let m=16,h=1;m<176;++h){let A=v[m-3],j=v[m-2],H=v[m-1],J=v[m-4];A=$[A],j=$[j],H=$[H],J=$[J],A^=y[h];for(let oe=0;oe<4;++oe)v[m]=A^=v[m-16],m++,v[m]=j^=v[m-16],m++,v[m]=H^=v[m-16],m++,v[m]=J^=v[m-16],m++}return v}}b.AES128Cipher=x;class a extends f{constructor(p){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(p)}_expandKey(p){const $=this._s,y=new Uint8Array(240);y.set(p);let v=1,m,h,A,j;for(let H=32,J=1;H<240;++J){H%32===16?(m=$[m],h=$[h],A=$[A],j=$[j]):H%32===0&&(m=y[H-3],h=y[H-2],A=y[H-1],j=y[H-4],m=$[m],h=$[h],A=$[A],j=$[j],m^=v,(v<<=1)>=256&&(v=(v^27)&255));for(let oe=0;oe<4;++oe)y[H]=m^=y[H-32],H++,y[H]=h^=y[H-32],H++,y[H]=A^=y[H-32],H++,y[H]=j^=y[H-32],H++}return y}}b.AES256Cipher=a;class E{checkOwnerPassword(p,X,$,y){const v=new Uint8Array(p.length+56);v.set(p,0),v.set(X,p.length),v.set($,p.length+X.length);const m=Y(v,0,v.length);return(0,n.isArrayEqual)(m,y)}checkUserPassword(p,X,$){const y=new Uint8Array(p.length+8);y.set(p,0),y.set(X,p.length);const v=Y(y,0,y.length);return(0,n.isArrayEqual)(v,$)}getOwnerKey(p,X,$,y){const v=new Uint8Array(p.length+56);v.set(p,0),v.set(X,p.length),v.set($,p.length+X.length);const m=Y(v,0,v.length);return new a(m).decryptBlock(y,!1,new Uint8Array(16))}getUserKey(p,X,$){const y=new Uint8Array(p.length+8);y.set(p,0),y.set(X,p.length);const v=Y(y,0,y.length);return new a(v).decryptBlock($,!1,new Uint8Array(16))}}b.PDF17=E;class w{_hash(p,X,$){let y=Y(X,0,X.length).subarray(0,32),v=[0],m=0;for(;m<64||v.at(-1)>m-32;){const h=p.length+y.length+$.length,A=new Uint8Array(h);let j=0;A.set(p,j),j+=p.length,A.set(y,j),j+=y.length,A.set($,j);const H=new Uint8Array(h*64);for(let q=0,re=0;q<64;q++,re+=h)H.set(A,re);v=new x(y.subarray(0,16)).encrypt(H,y.subarray(16,32));const oe=v.slice(0,16).reduce((q,re)=>q+re,0)%3;oe===0?y=Y(v,0,v.length):oe===1?y=N(v,0,v.length):oe===2&&(y=ee(v,0,v.length)),m++}return y.subarray(0,32)}checkOwnerPassword(p,X,$,y){const v=new Uint8Array(p.length+56);v.set(p,0),v.set(X,p.length),v.set($,p.length+X.length);const m=this._hash(p,v,$);return(0,n.isArrayEqual)(m,y)}checkUserPassword(p,X,$){const y=new Uint8Array(p.length+8);y.set(p,0),y.set(X,p.length);const v=this._hash(p,y,[]);return(0,n.isArrayEqual)(v,$)}getOwnerKey(p,X,$,y){const v=new Uint8Array(p.length+56);v.set(p,0),v.set(X,p.length),v.set($,p.length+X.length);const m=this._hash(p,v,$);return new a(m).decryptBlock(y,!1,new Uint8Array(16))}getUserKey(p,X,$){const y=new Uint8Array(p.length+8);y.set(p,0),y.set(X,p.length);const v=this._hash(p,y,[]);return new a(v).decryptBlock($,!1,new Uint8Array(16))}}b.PDF20=w;class O{constructor(p,X){this.StringCipherConstructor=p,this.StreamCipherConstructor=X}createStream(p,X){const $=new this.StreamCipherConstructor;return new D.DecryptStream(p,X,function(v,m){return $.decryptBlock(v,m)})}decryptString(p){const X=new this.StringCipherConstructor;let $=(0,n.stringToBytes)(p);return $=X.decryptBlock($,!0),(0,n.bytesToString)($)}encryptString(p){const X=new this.StringCipherConstructor;if(X instanceof f){const v=16-p.length%16;p+=String.fromCharCode(v).repeat(v);const m=new Uint8Array(16);if(typeof crypto!="undefined")crypto.getRandomValues(m);else for(let j=0;j<16;j++)m[j]=Math.floor(256*Math.random());let h=(0,n.stringToBytes)(p);h=X.encrypt(h,m);const A=new Uint8Array(16+h.length);return A.set(m),A.set(h,16),(0,n.bytesToString)(A)}let $=(0,n.stringToBytes)(p);return $=X.encrypt($),(0,n.bytesToString)($)}}const C=class{constructor(p,X,$){kt(this,z);kt(this,d);kt(this,o);kt(this,F);kt(this,r);const y=p.get("Filter");if(!(0,P.isName)(y,"Standard"))throw new n.FormatError("unknown encryption method");this.filterName=y.name,this.dict=p;const v=p.get("V");if(!Number.isInteger(v)||v!==1&&v!==2&&v!==4&&v!==5)throw new n.FormatError("unsupported encryption algorithm");this.algorithm=v;let m=p.get("Length");if(!m)if(v<=3)m=40;else{const S=p.get("CF"),k=p.get("StmF");if(S instanceof P.Dict&&k instanceof P.Name){S.suppressEncryption=!0;const _=S.get(k.name);m=(_==null?void 0:_.get("Length"))||128,m<40&&(m<<=3)}}if(!Number.isInteger(m)||m<40||m%8!==0)throw new n.FormatError("invalid key length");const h=(0,n.stringToBytes)(p.get("O")),A=(0,n.stringToBytes)(p.get("U")),j=h.subarray(0,32),H=A.subarray(0,32),J=p.get("P"),oe=p.get("R"),q=(v===4||v===5)&&p.get("EncryptMetadata")!==!1;this.encryptMetadata=q;const re=(0,n.stringToBytes)(X);let Z;if($){if(oe===6)try{$=(0,n.utf8StringToString)($)}catch(S){(0,n.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}Z=(0,n.stringToBytes)($)}let K;if(v!==5)K=st(this,d,Wn).call(this,re,Z,j,H,J,oe,m,q);else{const S=h.subarray(32,40),k=h.subarray(40,48),_=A.subarray(0,48),G=A.subarray(32,40),Q=A.subarray(40,48),ie=(0,n.stringToBytes)(p.get("OE")),ae=(0,n.stringToBytes)(p.get("UE")),U=(0,n.stringToBytes)(p.get("Perms"));K=st(this,z,sa).call(this,oe,Z,j,S,k,_,H,G,Q,ie,ae,U)}if(!K&&!$)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);if(!K&&$){const S=st(this,o,ra).call(this,Z,j,oe,m);K=st(this,d,Wn).call(this,re,S,j,H,J,oe,m,q)}if(!K)throw new n.PasswordException("Incorrect Password",n.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=K,v>=4){const S=p.get("CF");S instanceof P.Dict&&(S.suppressEncryption=!0),this.cf=S,this.stmf=p.get("StmF")||P.Name.get("Identity"),this.strf=p.get("StrF")||P.Name.get("Identity"),this.eff=p.get("EFF")||this.stmf}}createCipherTransform(p,X){if(this.algorithm===4||this.algorithm===5)return new O(st(this,r,Vn).call(this,this.cf,this.strf,p,X,this.encryptionKey),st(this,r,Vn).call(this,this.cf,this.stmf,p,X,this.encryptionKey));const $=st(this,F,An).call(this,p,X,this.encryptionKey,!1),y=function(){return new e($)};return new O(y,y)}};let M=C;B=new WeakMap,z=new WeakSet,sa=function(p,X,$,y,v,m,h,A,j,H,J,oe){if(X){const re=Math.min(127,X.length);X=X.subarray(0,re)}else X=[];const q=p===6?new w:new E;return q.checkUserPassword(X,A,h)?q.getUserKey(X,j,J):X.length&&q.checkOwnerPassword(X,y,m,$)?q.getOwnerKey(X,v,m,H):null},d=new WeakSet,Wn=function(p,X,$,y,v,m,h,A){const j=40+$.length+p.length,H=new Uint8Array(j);let J=0,oe,q;if(X)for(q=Math.min(32,X.length);J<q;++J)H[J]=X[J];for(oe=0;J<32;)H[J++]=jt(C,B)[oe++];for(oe=0,q=$.length;oe<q;++oe)H[J++]=$[oe];for(H[J++]=v&255,H[J++]=v>>8&255,H[J++]=v>>16&255,H[J++]=v>>>24&255,oe=0,q=p.length;oe<q;++oe)H[J++]=p[oe];m>=4&&!A&&(H[J++]=255,H[J++]=255,H[J++]=255,H[J++]=255);let re=t(H,0,J);const Z=h>>3;if(m>=3)for(oe=0;oe<50;++oe)re=t(re,0,Z);const K=re.subarray(0,Z);let S,k;if(m>=3){for(J=0;J<32;++J)H[J]=jt(C,B)[J];for(oe=0,q=p.length;oe<q;++oe)H[J++]=p[oe];S=new e(K),k=S.encryptBlock(t(H,0,J)),q=K.length;const _=new Uint8Array(q);for(oe=1;oe<=19;++oe){for(let G=0;G<q;++G)_[G]=K[G]^oe;S=new e(_),k=S.encryptBlock(k)}for(oe=0,q=k.length;oe<q;++oe)if(y[oe]!==k[oe])return null}else for(S=new e(K),k=S.encryptBlock(jt(C,B)),oe=0,q=k.length;oe<q;++oe)if(y[oe]!==k[oe])return null;return K},o=new WeakSet,ra=function(p,X,$,y){const v=new Uint8Array(32);let m=0;const h=Math.min(32,p.length);for(;m<h;++m)v[m]=p[m];let A=0;for(;m<32;)v[m++]=jt(C,B)[A++];let j=t(v,0,m);const H=y>>3;if($>=3)for(A=0;A<50;++A)j=t(j,0,j.length);let J,oe;if($>=3){oe=X;const q=new Uint8Array(H);for(A=19;A>=0;A--){for(let re=0;re<H;++re)q[re]=j[re]^A;J=new e(q),oe=J.encryptBlock(oe)}}else J=new e(j.subarray(0,H)),oe=J.encryptBlock(X);return oe},F=new WeakSet,An=function(p,X,$,y=!1){const v=new Uint8Array($.length+9),m=$.length;let h;for(h=0;h<m;++h)v[h]=$[h];return v[h++]=p&255,v[h++]=p>>8&255,v[h++]=p>>16&255,v[h++]=X&255,v[h++]=X>>8&255,y&&(v[h++]=115,v[h++]=65,v[h++]=108,v[h++]=84),t(v,0,h).subarray(0,Math.min($.length+5,16))},r=new WeakSet,Vn=function(p,X,$,y,v){if(!(X instanceof P.Name))throw new n.FormatError("Invalid crypt filter name.");const m=this,h=p.get(X.name),A=h==null?void 0:h.get("CFM");if(!A||A.name==="None")return function(){return new I};if(A.name==="V2")return function(){var j;return new e(st(j=m,F,An).call(j,$,y,v,!1))};if(A.name==="AESV2")return function(){var j;return new x(st(j=m,F,An).call(j,$,y,v,!0))};if(A.name==="AESV3")return function(){return new a(v)};throw new n.FormatError("Unknown crypto method")},kt(M,B,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])),b.CipherTransformFactory=M},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.DecryptStream=void 0;var n=ce(18);const P=512;class D extends n.DecodeStream{constructor(t,c,Y){super(c),this.str=t,this.dict=t.dict,this.decrypt=Y,this.nextChunk=null,this.initialized=!1}readBlock(){var f;let t;if(this.initialized?t=this.nextChunk:(t=this.str.getBytes(P),this.initialized=!0),!t||t.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(P);const c=((f=this.nextChunk)==null?void 0:f.length)>0,Y=this.decrypt;t=Y(t,!c);const ee=this.bufferLength,N=ee+t.length;this.ensureBuffer(N).set(t,ee),this.bufferLength=N}}b.DecryptStream=D},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ObjectLoader=void 0;var n=ce(4),P=ce(5),D=ce(3),e=ce(2);function t(ee){return ee instanceof n.Ref||ee instanceof n.Dict||ee instanceof P.BaseStream||Array.isArray(ee)}function c(ee,N){if(ee instanceof n.Dict)ee=ee.getRawValues();else if(ee instanceof P.BaseStream)ee=ee.dict.getRawValues();else if(!Array.isArray(ee))return;for(const I of ee)t(I)&&N.push(I)}class Y{constructor(N,I,f){this.dict=N,this.keys=I,this.xref=f,this.refSet=null}load(){return Ue(this,null,function*(){if(this.xref.stream.isDataLoaded)return;const{keys:N,dict:I}=this;this.refSet=new n.RefSet;const f=[];for(const x of N){const a=I.getRaw(x);a!==void 0&&f.push(a)}return this._walk(f)})}_walk(N){return Ue(this,null,function*(){const I=[],f=[];for(;N.length;){let x=N.pop();if(x instanceof n.Ref){if(this.refSet.has(x))continue;try{this.refSet.put(x),x=this.xref.fetch(x)}catch(a){if(!(a instanceof D.MissingDataException)){(0,e.warn)(`ObjectLoader._walk - requesting all data: "${a}".`),this.refSet=null;const{manager:E}=this.xref.stream;return E.requestAllChunks()}I.push(x),f.push({begin:a.begin,end:a.end})}}if(x instanceof P.BaseStream){const a=x.getBaseStreams();if(a){let E=!1;for(const w of a)w.isDataLoaded||(E=!0,f.push({begin:w.start,end:w.end}));E&&I.push(x)}}c(x,N)}if(f.length){yield this.xref.stream.manager.requestRanges(f);for(const x of I)x instanceof n.Ref&&this.refSet.remove(x);return this._walk(I)}this.refSet=null})}}b.ObjectLoader=Y},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.XFAFactory=void 0;var n=ce(78),P=ce(79),D=ce(89),e=ce(85),t=ce(84),c=ce(2),Y=ce(90),ee=ce(100);class N{constructor(f){try{this.root=new Y.XFAParser().parse(N._createDocument(f));const x=new P.Binder(this.root);this.form=x.bind(),this.dataHandler=new D.DataHandler(this.root,x.getData()),this.form[n.$globalData].template=this.form}catch(x){(0,c.warn)(`XFA - an error occurred during parsing and binding: ${x}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const f=this.form[n.$toPages]();return new Promise((x,a)=>{const E=()=>{try{const w=f.next();w.done?x(w.value):setTimeout(E,0)}catch(w){a(w)}};setTimeout(E,0)})}_createPages(){return Ue(this,null,function*(){try{this.pages=yield this._createPagesHelper(),this.dims=this.pages.children.map(f=>{const{width:x,height:a}=f.attributes.style;return[0,0,parseInt(x),parseInt(a)]})}catch(f){(0,c.warn)(`XFA - an error occurred during layout: ${f}`)}})}getBoundingBox(f){return this.dims[f]}getNumPages(){return Ue(this,null,function*(){return this.pages||(yield this._createPages()),this.dims.length})}setImages(f){this.form[n.$globalData].images=f}setFonts(f){this.form[n.$globalData].fontFinder=new e.FontFinder(f);const x=[];for(let a of this.form[n.$globalData].usedTypefaces)a=(0,t.stripQuotes)(a),this.form[n.$globalData].fontFinder.find(a)||x.push(a);return x.length>0?x:null}appendFonts(f,x){this.form[n.$globalData].fontFinder.add(f,x)}getPages(){return Ue(this,null,function*(){this.pages||(yield this._createPages());const f=this.pages;return this.pages=null,f})}serializeData(f){return this.dataHandler.serialize(f)}static _createDocument(f){return f["/xdp:xdp"]?Object.values(f).join(""):f["xdp:xdp"]}static getRichTextAsHtml(f){if(!f||typeof f!="string")return null;try{let x=new Y.XFAParser(ee.XhtmlNamespace,!0).parse(f);if(!["body","xhtml"].includes(x[n.$nodeName])){const O=ee.XhtmlNamespace.body({});O[n.$appendChild](x),x=O}const a=x[n.$toHTML]();if(!a.success)return null;const{html:E}=a,{attributes:w}=E;return w&&(w.class&&(w.class=w.class.filter(O=>!O.startsWith("xfa"))),w.dir="auto"),{html:E,str:x[n.$text]()}}catch(x){(0,c.warn)(`XFA - an error occurred during parsing of rich text: ${x}`)}return null}}b.XFAFactory=N},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.$uid=b.$toStyle=b.$toString=b.$toPages=b.$toHTML=b.$text=b.$tabIndex=b.$setValue=b.$setSetAttributes=b.$setId=b.$searchNode=b.$root=b.$resolvePrototypes=b.$removeChild=b.$pushPara=b.$pushGlyphs=b.$popPara=b.$onText=b.$onChildCheck=b.$onChild=b.$nsAttributes=b.$nodeName=b.$namespaceId=b.$lastAttribute=b.$isUsable=b.$isTransparent=b.$isThereMoreWidth=b.$isSplittable=b.$isNsAgnostic=b.$isDescendent=b.$isDataValue=b.$isCDATAXml=b.$isBindable=b.$insertAt=b.$indexOf=b.$ids=b.$hasSettableValue=b.$globalData=b.$getTemplateRoot=b.$getSubformParent=b.$getRealChildrenByNameIt=b.$getParent=b.$getNextPage=b.$getExtra=b.$getDataValue=b.$getContainedChildren=b.$getChildrenByNameIt=b.$getChildrenByName=b.$getChildrenByClass=b.$getChildren=b.$getAvailableSpace=b.$getAttributes=b.$getAttributeIt=b.$flushHTML=b.$finalize=b.$extra=b.$dump=b.$data=b.$content=b.$consumed=b.$clone=b.$cleanup=b.$cleanPage=b.$clean=b.$childrenToHTML=b.$appendChild=b.$addHTML=b.$acceptWhitespace=void 0;const ce=Symbol();b.$acceptWhitespace=ce;const n=Symbol();b.$addHTML=n;const P=Symbol();b.$appendChild=P;const D=Symbol();b.$childrenToHTML=D;const e=Symbol();b.$clean=e;const t=Symbol();b.$cleanPage=t;const c=Symbol();b.$cleanup=c;const Y=Symbol();b.$clone=Y;const ee=Symbol();b.$consumed=ee;const N=Symbol("content");b.$content=N;const I=Symbol("data");b.$data=I;const f=Symbol();b.$dump=f;const x=Symbol("extra");b.$extra=x;const a=Symbol();b.$finalize=a;const E=Symbol();b.$flushHTML=E;const w=Symbol();b.$getAttributeIt=w;const O=Symbol();b.$getAttributes=O;const M=Symbol();b.$getAvailableSpace=M;const B=Symbol();b.$getChildrenByClass=B;const z=Symbol();b.$getChildrenByName=z;const W=Symbol();b.$getChildrenByNameIt=W;const d=Symbol();b.$getDataValue=d;const T=Symbol();b.$getExtra=T;const o=Symbol();b.$getRealChildrenByNameIt=o;const l=Symbol();b.$getChildren=l;const F=Symbol();b.$getContainedChildren=F;const s=Symbol();b.$getNextPage=s;const r=Symbol();b.$getSubformParent=r;const u=Symbol();b.$getParent=u;const C=Symbol();b.$getTemplateRoot=C;const g=Symbol();b.$globalData=g;const p=Symbol();b.$hasSettableValue=p;const X=Symbol();b.$ids=X;const $=Symbol();b.$indexOf=$;const y=Symbol();b.$insertAt=y;const v=Symbol();b.$isCDATAXml=v;const m=Symbol();b.$isBindable=m;const h=Symbol();b.$isDataValue=h;const A=Symbol();b.$isDescendent=A;const j=Symbol();b.$isNsAgnostic=j;const H=Symbol();b.$isSplittable=H;const J=Symbol();b.$isThereMoreWidth=J;const oe=Symbol();b.$isTransparent=oe;const q=Symbol();b.$isUsable=q;const re=Symbol();b.$lastAttribute=re;const Z=Symbol("namespaceId");b.$namespaceId=Z;const K=Symbol("nodeName");b.$nodeName=K;const S=Symbol();b.$nsAttributes=S;const k=Symbol();b.$onChild=k;const _=Symbol();b.$onChildCheck=_;const G=Symbol();b.$onText=G;const Q=Symbol();b.$pushGlyphs=Q;const ie=Symbol();b.$popPara=ie;const ae=Symbol();b.$pushPara=ae;const U=Symbol();b.$removeChild=U;const ne=Symbol("root");b.$root=ne;const V=Symbol();b.$resolvePrototypes=V;const L=Symbol();b.$searchNode=L;const te=Symbol();b.$setId=te;const se=Symbol();b.$setSetAttributes=se;const le=Symbol();b.$setValue=le;const ue=Symbol();b.$tabIndex=ue;const fe=Symbol();b.$text=fe;const ge=Symbol();b.$toPages=ge;const xe=Symbol();b.$toHTML=xe;const me=Symbol();b.$toString=me;const be=Symbol();b.$toStyle=be;const ye=Symbol("uid");b.$uid=ye},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Binder=void 0;var n=ce(78),P=ce(80),D=ce(88),e=ce(87),t=ce(81),c=ce(2);const Y=t.NamespaceIds.datasets.id;function ee(I){const f=new P.Text({});return f[n.$content]=I,f}class N{constructor(f){var x;this.root=f,this.datasets=f.datasets,this.data=((x=f.datasets)==null?void 0:x.data)||new e.XmlObject(t.NamespaceIds.datasets.id,"data"),this.emptyMerge=this.data[n.$getChildren]().length===0,this.root.form=this.form=f.template[n.$clone]()}_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(f,x,a){var E,w;if(f[n.$data]=x,f[n.$hasSettableValue]())if(x[n.$isDataValue]()){const O=x[n.$getDataValue]();f[n.$setValue](ee(O))}else if(f instanceof P.Field&&((w=(E=f.ui)==null?void 0:E.choiceList)==null?void 0:w.open)==="multiSelect"){const O=x[n.$getChildren]().map(M=>M[n.$content].trim()).join(`
- `);f[n.$setValue](ee(O))}else this._isConsumeData()&&(0,c.warn)("XFA - Nodes haven't the same type.");else!x[n.$isDataValue]()||this._isMatchTemplate()?this._bindElement(f,x):(0,c.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(f,x,a,E){if(!f)return null;let w,O;for(let M=0;M<3;M++){for(w=a[n.$getRealChildrenByNameIt](f,!1,!0);O=w.next().value,!!O;)if(x===O[n.$isDataValue]())return O;if(a[n.$namespaceId]===t.NamespaceIds.datasets.id&&a[n.$nodeName]==="data")break;a=a[n.$getParent]()}return E?(w=this.data[n.$getRealChildrenByNameIt](f,!0,!1),O=w.next().value,O||(w=this.data[n.$getAttributeIt](f,!0),O=w.next().value,O!=null&&O[n.$isDataValue]())?O:null):null}_setProperties(f,x){if(!!f.hasOwnProperty("setProperty"))for(const{ref:a,target:E,connection:w}of f.setProperty.children){if(w||!a)continue;const O=(0,D.searchNode)(this.root,x,a,!1,!1);if(!O){(0,c.warn)(`XFA - Invalid reference: ${a}.`);continue}const[M]=O;if(!M[n.$isDescendent](this.data)){(0,c.warn)("XFA - Invalid node: must be a data node.");continue}const B=(0,D.searchNode)(this.root,f,E,!1,!1);if(!B){(0,c.warn)(`XFA - Invalid target: ${E}.`);continue}const[z]=B;if(!z[n.$isDescendent](f)){(0,c.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const W=z[n.$getParent]();if(z instanceof P.SetProperty||W instanceof P.SetProperty){(0,c.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(z instanceof P.BindItems||W instanceof P.BindItems){(0,c.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const d=M[n.$text](),T=z[n.$nodeName];if(z instanceof e.XFAAttribute){const o=Object.create(null);o[T]=d;const l=Reflect.construct(Object.getPrototypeOf(W).constructor,[o]);W[T]=l[T];continue}if(!z.hasOwnProperty(n.$content)){(0,c.warn)("XFA - Invalid node to use in setProperty");continue}z[n.$data]=M,z[n.$content]=d,z[n.$finalize]()}}_bindItems(f,x){if(!f.hasOwnProperty("items")||!f.hasOwnProperty("bindItems")||f.bindItems.isEmpty())return;for(const w of f.items.children)f[n.$removeChild](w);f.items.clear();const a=new P.Items({}),E=new P.Items({});f[n.$appendChild](a),f.items.push(a),f[n.$appendChild](E),f.items.push(E);for(const{ref:w,labelRef:O,valueRef:M,connection:B}of f.bindItems.children){if(B||!w)continue;const z=(0,D.searchNode)(this.root,x,w,!1,!1);if(!z){(0,c.warn)(`XFA - Invalid reference: ${w}.`);continue}for(const W of z){if(!W[n.$isDescendent](this.datasets)){(0,c.warn)(`XFA - Invalid ref (${w}): must be a datasets child.`);continue}const d=(0,D.searchNode)(this.root,W,O,!0,!1);if(!d){(0,c.warn)(`XFA - Invalid label: ${O}.`);continue}const[T]=d;if(!T[n.$isDescendent](this.datasets)){(0,c.warn)("XFA - Invalid label: must be a datasets child.");continue}const o=(0,D.searchNode)(this.root,W,M,!0,!1);if(!o){(0,c.warn)(`XFA - Invalid value: ${M}.`);continue}const[l]=o;if(!l[n.$isDescendent](this.datasets)){(0,c.warn)("XFA - Invalid value: must be a datasets child.");continue}const F=ee(T[n.$text]()),s=ee(l[n.$text]());a[n.$appendChild](F),a.text.push(F),E[n.$appendChild](s),E.text.push(s)}}}_bindOccurrences(f,x,a){let E;if(x.length>1&&(E=f[n.$clone](),E[n.$removeChild](E.occur),E.occur=null),this._bindValue(f,x[0],a),this._setProperties(f,x[0]),this._bindItems(f,x[0]),x.length===1)return;const w=f[n.$getParent](),O=f[n.$nodeName],M=w[n.$indexOf](f);for(let B=1,z=x.length;B<z;B++){const W=x[B],d=E[n.$clone]();w[O].push(d),w[n.$insertAt](M+B,d),this._bindValue(d,W,a),this._setProperties(d,W),this._bindItems(d,W)}}_createOccurrences(f){if(!this.emptyMerge)return;const{occur:x}=f;if(!x||x.initial<=1)return;const a=f[n.$getParent](),E=f[n.$nodeName];if(!(a[E]instanceof e.XFAObjectArray))return;let w;f.name?w=a[E].children.filter(B=>B.name===f.name).length:w=a[E].children.length;const O=a[n.$indexOf](f)+1,M=x.initial-w;if(M){const B=f[n.$clone]();B[n.$removeChild](B.occur),B.occur=null,a[E].push(B),a[n.$insertAt](O,B);for(let z=1;z<M;z++){const W=B[n.$clone]();a[E].push(W),a[n.$insertAt](O+z,W)}}}_getOccurInfo(f){const{name:x,occur:a}=f;if(!a||!x)return[1,1];const E=a.max===-1?1/0:a.max;return[a.min,E]}_setAndBind(f,x){this._setProperties(f,x),this._bindItems(f,x),this._bindElement(f,x)}_bindElement(f,x){const a=[];this._createOccurrences(f);for(const E of f[n.$getChildren]()){if(E[n.$data])continue;if(this._mergeMode===void 0&&E[n.$nodeName]==="subform"){this._mergeMode=E.mergeMode==="consumeData";const d=x[n.$getChildren]();if(d.length>0)this._bindOccurrences(E,[d[0]],null);else if(this.emptyMerge){const T=x[n.$namespaceId]===Y?-1:x[n.$namespaceId],o=E[n.$data]=new e.XmlObject(T,E.name||"root");x[n.$appendChild](o),this._bindElement(E,o)}continue}if(!E[n.$isBindable]())continue;let w=!1,O=null,M=null,B=null;if(E.bind){switch(E.bind.match){case"none":this._setAndBind(E,x);continue;case"global":w=!0;break;case"dataRef":if(!E.bind.ref){(0,c.warn)(`XFA - ref is empty in node ${E[n.$nodeName]}.`),this._setAndBind(E,x);continue}M=E.bind.ref;break}E.bind.picture&&(O=E.bind.picture[n.$content])}const[z,W]=this._getOccurInfo(E);if(M)if(B=(0,D.searchNode)(this.root,x,M,!0,!1),B===null){if(B=(0,D.createDataNode)(this.data,x,M),!B)continue;this._isConsumeData()&&(B[n.$consumed]=!0),this._setAndBind(E,B);continue}else this._isConsumeData()&&(B=B.filter(d=>!d[n.$consumed])),B.length>W?B=B.slice(0,W):B.length===0&&(B=null),B&&this._isConsumeData()&&B.forEach(d=>{d[n.$consumed]=!0});else{if(!E.name){this._setAndBind(E,x);continue}if(this._isConsumeData()){const d=[];for(;d.length<W;){const T=this._findDataByNameToConsume(E.name,E[n.$hasSettableValue](),x,w);if(!T)break;T[n.$consumed]=!0,d.push(T)}B=d.length>0?d:null}else{if(B=x[n.$getRealChildrenByNameIt](E.name,!1,this.emptyMerge).next().value,!B){if(z===0){a.push(E);continue}const d=x[n.$namespaceId]===Y?-1:x[n.$namespaceId];B=E[n.$data]=new e.XmlObject(d,E.name),this.emptyMerge&&(B[n.$consumed]=!0),x[n.$appendChild](B),this._setAndBind(E,B);continue}this.emptyMerge&&(B[n.$consumed]=!0),B=[B]}}B?this._bindOccurrences(E,B,O):z>0?this._setAndBind(E,x):a.push(E)}a.forEach(E=>E[n.$getParent]()[n.$removeChild](E))}}b.Binder=N},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Value=b.Text=b.TemplateNamespace=b.Template=b.SetProperty=b.Items=b.Field=b.BindItems=void 0;var n=ce(78),P=ce(81),D=ce(82),e=ce(83),t=ce(87),c=ce(84),Y=ce(2),ee=ce(85),N=ce(3),I=ce(88);const f=P.NamespaceIds.template.id,x="http://www.w3.org/2000/svg",a=2,E=3,w=5e3,O=/^H(\d+)$/,M=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"]),B=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function z(ke){if(!ke||!ke.border)return{w:0,h:0};const i=ke.border[n.$getExtra]();return i?{w:i.widths[0]+i.widths[2]+i.insets[0]+i.insets[2],h:i.widths[1]+i.widths[3]+i.insets[1]+i.insets[3]}:{w:0,h:0}}function W(ke){return ke.margin&&(ke.margin.topInset||ke.margin.rightInset||ke.margin.bottomInset||ke.margin.leftInset)}function d(ke,i){if(!ke.value){const R=new an({});ke[n.$appendChild](R),ke.value=R}ke.value[n.$setValue](i)}function*T(ke){for(const i of ke[n.$getChildren]()){if(i instanceof hn){yield*i[n.$getContainedChildren]();continue}yield i}}function o(ke){var i;return((i=ke.validate)==null?void 0:i.nullTest)==="error"}function l(ke){for(;ke;){if(!ke.traversal){ke[n.$tabIndex]=ke[n.$getParent]()[n.$tabIndex];return}if(ke[n.$tabIndex])return;let i=null;for(const ve of ke.traversal[n.$getChildren]())if(ve.operation==="next"){i=ve;break}if(!i||!i.ref){ke[n.$tabIndex]=ke[n.$getParent]()[n.$tabIndex];return}const R=ke[n.$getTemplateRoot]();ke[n.$tabIndex]=++R[n.$tabIndex];const Ae=R[n.$searchNode](i.ref,ke);if(!Ae)return;ke=Ae[0]}}function F(ke,i){var Ae;const R=ke.assist;if(R){const ve=R[n.$toHTML]();ve&&(i.title=ve);const Xe=R.role.match(O);if(Xe){const Ye="heading",Je=Xe[1];i.role=Ye,i["aria-level"]=Je}}if(ke.layout==="table")i.role="table";else if(ke.layout==="row")i.role="row";else{const ve=ke[n.$getParent]();ve.layout==="row"&&(i.role=((Ae=ve.assist)==null?void 0:Ae.role)==="TH"?"columnheader":"cell")}}function s(ke){if(!ke.assist)return null;const i=ke.assist;return i.speak&&i.speak[n.$content]!==""?i.speak[n.$content]:i.toolTip?i.toolTip[n.$content]:null}function r(ke){return c.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:ke}]})}function u(ke){const i=ke[n.$getTemplateRoot]();i[n.$extra].firstUnsplittable===null&&(i[n.$extra].firstUnsplittable=ke,i[n.$extra].noLayoutFailure=!0)}function C(ke){const i=ke[n.$getTemplateRoot]();i[n.$extra].firstUnsplittable===ke&&(i[n.$extra].noLayoutFailure=!1)}function g(ke){if(ke[n.$extra]||(ke[n.$extra]=Object.create(null),ke.targetType==="auto"))return!1;const i=ke[n.$getTemplateRoot]();let R=null;if(ke.target){if(R=i[n.$searchNode](ke.target,ke[n.$getParent]()),!R)return!1;R=R[0]}const{currentPageArea:Ae,currentContentArea:ve}=i[n.$extra];if(ke.targetType==="pageArea")return R instanceof nt||(R=null),ke.startNew?(ke[n.$extra].target=R||Ae,!0):R&&R!==Ae?(ke[n.$extra].target=R,!0):!1;R instanceof ne||(R=null);const Te=R&&R[n.$getParent]();let Xe,Ye=Te;if(ke.startNew)if(R){const Je=Te.contentArea.children,xt=Je.indexOf(ve),wt=Je.indexOf(R);xt!==-1&&xt<wt&&(Ye=null),Xe=wt-1}else Xe=Ae.contentArea.children.indexOf(ve);else if(R&&R!==ve)Xe=Te.contentArea.children.indexOf(R)-1,Ye=Te===Ae?null:Te;else return!1;return ke[n.$extra].target=Ye,ke[n.$extra].index=Xe,!0}function p(ke,i,R){const Ae=ke[n.$getTemplateRoot](),ve=Ae[n.$extra].noLayoutFailure,Te=i[n.$getSubformParent];i[n.$getSubformParent]=()=>ke,Ae[n.$extra].noLayoutFailure=!0;const Xe=i[n.$toHTML](R);ke[n.$addHTML](Xe.html,Xe.bbox),Ae[n.$extra].noLayoutFailure=ve,i[n.$getSubformParent]=Te}class X extends t.StringObject{constructor(i){super(f,"appearanceFilter"),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}}class $ extends t.XFAObject{constructor(i){super(f,"arc",!0),this.circular=(0,c.getInteger)({data:i.circular,defaultValue:0,validate:R=>R===1}),this.hand=(0,c.getStringOption)(i.hand,["even","left","right"]),this.id=i.id||"",this.startAngle=(0,c.getFloat)({data:i.startAngle,defaultValue:0,validate:R=>!0}),this.sweepAngle=(0,c.getFloat)({data:i.sweepAngle,defaultValue:360,validate:R=>!0}),this.use=i.use||"",this.usehref=i.usehref||"",this.edge=null,this.fill=null}[n.$toHTML](){var Je;const i=this.edge||new be({}),R=i[n.$toStyle](),Ae=Object.create(null);((Je=this.fill)==null?void 0:Je.presence)==="visible"?Object.assign(Ae,this.fill[n.$toStyle]()):Ae.fill="transparent",Ae.strokeWidth=(0,e.measureToString)(i.presence==="visible"?i.thickness:0),Ae.stroke=R.color;let ve;const Te={xmlns:x,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)ve={name:"ellipse",attributes:{xmlns:x,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:Ae}};else{const xt=this.startAngle*Math.PI/180,wt=this.sweepAngle*Math.PI/180,Et=this.sweepAngle>180?1:0,[It,Nt,$t,mt]=[50*(1+Math.cos(xt)),50*(1-Math.sin(xt)),50*(1+Math.cos(xt+wt)),50*(1-Math.sin(xt+wt))];ve={name:"path",attributes:{xmlns:x,d:`M ${It} ${Nt} A 50 50 0 ${Et} 0 ${$t} ${mt}`,vectorEffect:"non-scaling-stroke",style:Ae}},Object.assign(Te,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const Xe={name:"svg",children:[ve],attributes:Te},Ye=this[n.$getParent]()[n.$getParent]();return W(Ye)?c.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Xe]}):(Xe.attributes.style.position="absolute",c.HTMLResult.success(Xe))}}class y extends t.XFAObject{constructor(i){super(f,"area",!0),this.colSpan=(0,c.getInteger)({data:i.colSpan,defaultValue:1,validate:R=>R>=1||R===-1}),this.id=i.id||"",this.name=i.name||"",this.relevant=(0,c.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.x=(0,c.getMeasurement)(i.x,"0pt"),this.y=(0,c.getMeasurement)(i.y,"0pt"),this.desc=null,this.extras=null,this.area=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}*[n.$getContainedChildren](){yield*T(this)}[n.$isTransparent](){return!0}[n.$isBindable](){return!0}[n.$addHTML](i,R){const[Ae,ve,Te,Xe]=R;this[n.$extra].width=Math.max(this[n.$extra].width,Ae+Te),this[n.$extra].height=Math.max(this[n.$extra].height,ve+Xe),this[n.$extra].children.push(i)}[n.$getAvailableSpace](){return this[n.$extra].availableSpace}[n.$toHTML](i){const R=(0,e.toStyle)(this,"position"),Ae={style:R,id:this[n.$uid],class:["xfaArea"]};(0,e.isPrintOnly)(this)&&Ae.class.push("xfaPrintOnly"),this.name&&(Ae.xfaName=this.name);const ve=[];this[n.$extra]={children:ve,width:0,height:0,availableSpace:i};const Te=this[n.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!Te.success)return Te.isBreak()?Te:(delete this[n.$extra],c.HTMLResult.FAILURE);R.width=(0,e.measureToString)(this[n.$extra].width),R.height=(0,e.measureToString)(this[n.$extra].height);const Xe={name:"div",attributes:Ae,children:ve},Ye=[this.x,this.y,this[n.$extra].width,this[n.$extra].height];return delete this[n.$extra],c.HTMLResult.success(Xe,Ye)}}class v extends t.XFAObject{constructor(i){super(f,"assist",!0),this.id=i.id||"",this.role=i.role||"",this.use=i.use||"",this.usehref=i.usehref||"",this.speak=null,this.toolTip=null}[n.$toHTML](){var i;return((i=this.toolTip)==null?void 0:i[n.$content])||null}}class m extends t.XFAObject{constructor(i){super(f,"barcode",!0),this.charEncoding=(0,c.getKeyword)({data:i.charEncoding?i.charEncoding.toLowerCase():"",defaultValue:"",validate:R=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(R)||R.match(/iso-8859-\d{2}/)}),this.checksum=(0,c.getStringOption)(i.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,c.getInteger)({data:i.dataColumnCount,defaultValue:-1,validate:R=>R>=0}),this.dataLength=(0,c.getInteger)({data:i.dataLength,defaultValue:-1,validate:R=>R>=0}),this.dataPrep=(0,c.getStringOption)(i.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,c.getInteger)({data:i.dataRowCount,defaultValue:-1,validate:R=>R>=0}),this.endChar=i.endChar||"",this.errorCorrectionLevel=(0,c.getInteger)({data:i.errorCorrectionLevel,defaultValue:-1,validate:R=>R>=0&&R<=8}),this.id=i.id||"",this.moduleHeight=(0,c.getMeasurement)(i.moduleHeight,"5mm"),this.moduleWidth=(0,c.getMeasurement)(i.moduleWidth,"0.25mm"),this.printCheckDigit=(0,c.getInteger)({data:i.printCheckDigit,defaultValue:0,validate:R=>R===1}),this.rowColumnRatio=(0,c.getRatio)(i.rowColumnRatio),this.startChar=i.startChar||"",this.textLocation=(0,c.getStringOption)(i.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,c.getInteger)({data:i.truncate,defaultValue:0,validate:R=>R===1}),this.type=(0,c.getStringOption)(i.type?i.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=(0,c.getStringOption)(i.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=i.use||"",this.usehref=i.usehref||"",this.wideNarrowRatio=(0,c.getRatio)(i.wideNarrowRatio),this.encrypt=null,this.extras=null}}class h extends t.XFAObject{constructor(i){super(f,"bind",!0),this.match=(0,c.getStringOption)(i.match,["once","dataRef","global","none"]),this.ref=i.ref||"",this.picture=null}}class A extends t.XFAObject{constructor(i){super(f,"bindItems"),this.connection=i.connection||"",this.labelRef=i.labelRef||"",this.ref=i.ref||"",this.valueRef=i.valueRef||""}}b.BindItems=A;class j extends t.XFAObject{constructor(i){super(f,"bookend"),this.id=i.id||"",this.leader=i.leader||"",this.trailer=i.trailer||"",this.use=i.use||"",this.usehref=i.usehref||""}}class H extends t.Option01{constructor(i){super(f,"boolean"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$toHTML](i){return r(this[n.$content]===1?"1":"0")}}class J extends t.XFAObject{constructor(i){super(f,"border",!0),this.break=(0,c.getStringOption)(i.break,["close","open"]),this.hand=(0,c.getStringOption)(i.hand,["even","left","right"]),this.id=i.id||"",this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,c.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.corner=new t.XFAObjectArray(4),this.edge=new t.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[n.$getExtra](){if(!this[n.$extra]){const i=this.edge.children.slice();if(i.length<4){const ve=i.at(-1)||new be({});for(let Te=i.length;Te<4;Te++)i.push(ve)}const R=i.map(ve=>ve.thickness),Ae=[0,0,0,0];this.margin&&(Ae[0]=this.margin.topInset,Ae[1]=this.margin.rightInset,Ae[2]=this.margin.bottomInset,Ae[3]=this.margin.leftInset),this[n.$extra]={widths:R,insets:Ae,edges:i}}return this[n.$extra]}[n.$toStyle](){var ve;const{edges:i}=this[n.$getExtra](),R=i.map(Te=>{const Xe=Te[n.$toStyle]();return Xe.color||(Xe.color="#000000"),Xe}),Ae=Object.create(null);if(this.margin&&Object.assign(Ae,this.margin[n.$toStyle]()),((ve=this.fill)==null?void 0:ve.presence)==="visible"&&Object.assign(Ae,this.fill[n.$toStyle]()),this.corner.children.some(Te=>Te.radius!==0)){const Te=this.corner.children.map(Xe=>Xe[n.$toStyle]());if(Te.length===2||Te.length===3){const Xe=Te.at(-1);for(let Ye=Te.length;Ye<4;Ye++)Te.push(Xe)}Ae.borderRadius=Te.map(Xe=>Xe.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":Ae.borderStyle="";break;case"inactive":Ae.borderStyle="none";break;default:Ae.borderStyle=R.map(Te=>Te.style).join(" ");break}return Ae.borderWidth=R.map(Te=>Te.width).join(" "),Ae.borderColor=R.map(Te=>Te.color).join(" "),Ae}}class oe extends t.XFAObject{constructor(i){super(f,"break",!0),this.after=(0,c.getStringOption)(i.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=i.afterTarget||"",this.before=(0,c.getStringOption)(i.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=i.beforeTarget||"",this.bookendLeader=i.bookendLeader||"",this.bookendTrailer=i.bookendTrailer||"",this.id=i.id||"",this.overflowLeader=i.overflowLeader||"",this.overflowTarget=i.overflowTarget||"",this.overflowTrailer=i.overflowTrailer||"",this.startNew=(0,c.getInteger)({data:i.startNew,defaultValue:0,validate:R=>R===1}),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}}class q extends t.XFAObject{constructor(i){super(f,"breakAfter",!0),this.id=i.id||"",this.leader=i.leader||"",this.startNew=(0,c.getInteger)({data:i.startNew,defaultValue:0,validate:R=>R===1}),this.target=i.target||"",this.targetType=(0,c.getStringOption)(i.targetType,["auto","contentArea","pageArea"]),this.trailer=i.trailer||"",this.use=i.use||"",this.usehref=i.usehref||"",this.script=null}}class re extends t.XFAObject{constructor(i){super(f,"breakBefore",!0),this.id=i.id||"",this.leader=i.leader||"",this.startNew=(0,c.getInteger)({data:i.startNew,defaultValue:0,validate:R=>R===1}),this.target=i.target||"",this.targetType=(0,c.getStringOption)(i.targetType,["auto","contentArea","pageArea"]),this.trailer=i.trailer||"",this.use=i.use||"",this.usehref=i.usehref||"",this.script=null}[n.$toHTML](i){return this[n.$extra]={},c.HTMLResult.FAILURE}}class Z extends t.XFAObject{constructor(i){super(f,"button",!0),this.highlight=(0,c.getStringOption)(i.highlight,["inverted","none","outline","push"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}[n.$toHTML](i){const Ae=this[n.$getParent]()[n.$getParent](),ve={name:"button",attributes:{id:this[n.$uid],class:["xfaButton"],style:{}},children:[]};for(const Te of Ae.event.children){if(Te.activity!=="click"||!Te.script)continue;const Xe=(0,N.recoverJsURL)(Te.script[n.$content]);if(!Xe)continue;const Ye=(0,e.fixURL)(Xe.url);!Ye||ve.children.push({name:"a",attributes:{id:"link"+this[n.$uid],href:Ye,newWindow:Xe.newWindow,class:["xfaLink"],style:{}},children:[]})}return c.HTMLResult.success(ve)}}class K extends t.XFAObject{constructor(i){super(f,"calculate",!0),this.id=i.id||"",this.override=(0,c.getStringOption)(i.override,["disabled","error","ignore","warning"]),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.message=null,this.script=null}}class S extends t.XFAObject{constructor(i){super(f,"caption",!0),this.id=i.id||"",this.placement=(0,c.getStringOption)(i.placement,["left","bottom","inline","right","top"]),this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,c.getMeasurement)(i.reserve)),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[n.$setValue](i){d(this,i)}[n.$getExtra](i){if(!this[n.$extra]){let{width:R,height:Ae}=i;switch(this.placement){case"left":case"right":case"inline":R=this.reserve<=0?R:this.reserve;break;case"top":case"bottom":Ae=this.reserve<=0?Ae:this.reserve;break}this[n.$extra]=(0,e.layoutNode)(this,{width:R,height:Ae})}return this[n.$extra]}[n.$toHTML](i){if(!this.value)return c.HTMLResult.EMPTY;this[n.$pushPara]();const R=this.value[n.$toHTML](i).html;if(!R)return this[n.$popPara](),c.HTMLResult.EMPTY;const Ae=this.reserve;if(this.reserve<=0){const{w:Xe,h:Ye}=this[n.$getExtra](i);switch(this.placement){case"left":case"right":case"inline":this.reserve=Xe;break;case"top":case"bottom":this.reserve=Ye;break}}const ve=[];typeof R=="string"?ve.push({name:"#text",value:R}):ve.push(R);const Te=(0,e.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(Te.width=(0,e.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(Te.height=(0,e.measureToString)(this.reserve));break}return(0,e.setPara)(this,null,R),this[n.$popPara](),this.reserve=Ae,c.HTMLResult.success({name:"div",attributes:{style:Te,class:["xfaCaption"]},children:ve})}}class k extends t.StringObject{constructor(i){super(f,"certificate"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}}class _ extends t.XFAObject{constructor(i){super(f,"certificates",!0),this.credentialServerPolicy=(0,c.getStringOption)(i.credentialServerPolicy,["optional","required"]),this.id=i.id||"",this.url=i.url||"",this.urlPolicy=i.urlPolicy||"",this.use=i.use||"",this.usehref=i.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class G extends t.XFAObject{constructor(i){super(f,"checkButton",!0),this.id=i.id||"",this.mark=(0,c.getStringOption)(i.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,c.getStringOption)(i.shape,["square","round"]),this.size=(0,c.getMeasurement)(i.size,"10pt"),this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](i){var Ht,Rt,Kt;const R=(0,e.toStyle)("margin"),Ae=(0,e.measureToString)(this.size);R.width=R.height=Ae;let ve,Te,Xe;const Ye=this[n.$getParent]()[n.$getParent](),Je=Ye.items.children.length&&Ye.items.children[0][n.$toHTML]().html||[],xt={on:(Je[0]!==void 0?Je[0]:"on").toString(),off:(Je[1]!==void 0?Je[1]:"off").toString()},Et=(((Ht=Ye.value)==null?void 0:Ht[n.$text]())||"off")===xt.on||void 0,It=Ye[n.$getSubformParent](),Nt=Ye[n.$uid];let $t;It instanceof Oe?(Xe=It[n.$uid],ve="radio",Te="xfaRadio",$t=((Rt=It[n.$data])==null?void 0:Rt[n.$uid])||It[n.$uid]):(ve="checkbox",Te="xfaCheckbox",$t=((Kt=Ye[n.$data])==null?void 0:Kt[n.$uid])||Ye[n.$uid]);const mt={name:"input",attributes:{class:[Te],style:R,fieldId:Nt,dataId:$t,type:ve,checked:Et,xfaOn:xt.on,xfaOff:xt.off,"aria-label":s(Ye),"aria-required":!1}};return Xe&&(mt.attributes.name=Xe),o(Ye)&&(mt.attributes["aria-required"]=!0,mt.attributes.required=!0),c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[mt]})}}class Q extends t.XFAObject{constructor(i){super(f,"choiceList",!0),this.commitOn=(0,c.getStringOption)(i.commitOn,["select","exit"]),this.id=i.id||"",this.open=(0,c.getStringOption)(i.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,c.getInteger)({data:i.textEntry,defaultValue:0,validate:R=>R===1}),this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](i){var xt,wt,Et;const R=(0,e.toStyle)(this,"border","margin"),ve=this[n.$getParent]()[n.$getParent](),Xe={fontSize:`calc(${((xt=ve.font)==null?void 0:xt.size)||10}px * var(--scale-factor))`},Ye=[];if(ve.items.children.length>0){const It=ve.items;let Nt=0,$t=0;It.children.length===2&&(Nt=It.children[0].save,$t=1-Nt);const mt=It.children[Nt][n.$toHTML]().html,Ht=It.children[$t][n.$toHTML]().html;let Rt=!1;const Kt=((wt=ve.value)==null?void 0:wt[n.$text]())||"";for(let zt=0,At=mt.length;zt<At;zt++){const Qe={name:"option",attributes:{value:Ht[zt]||mt[zt],style:Xe},value:mt[zt]};Ht[zt]===Kt&&(Qe.attributes.selected=Rt=!0),Ye.push(Qe)}Rt||Ye.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const Je={class:["xfaSelect"],fieldId:ve[n.$uid],dataId:((Et=ve[n.$data])==null?void 0:Et[n.$uid])||ve[n.$uid],style:R,"aria-label":s(ve),"aria-required":!1};return o(ve)&&(Je["aria-required"]=!0,Je.required=!0),this.open==="multiSelect"&&(Je.multiple=!0),c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:Ye,attributes:Je}]})}}class ie extends t.XFAObject{constructor(i){super(f,"color",!0),this.cSpace=(0,c.getStringOption)(i.cSpace,["SRGB"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.value=i.value?(0,c.getColor)(i.value):"",this.extras=null}[n.$hasSettableValue](){return!1}[n.$toStyle](){return this.value?Y.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class ae extends t.XFAObject{constructor(i){super(f,"comb"),this.id=i.id||"",this.numberOfCells=(0,c.getInteger)({data:i.numberOfCells,defaultValue:0,validate:R=>R>=0}),this.use=i.use||"",this.usehref=i.usehref||""}}class U extends t.XFAObject{constructor(i){super(f,"connect",!0),this.connection=i.connection||"",this.id=i.id||"",this.ref=i.ref||"",this.usage=(0,c.getStringOption)(i.usage,["exportAndImport","exportOnly","importOnly"]),this.use=i.use||"",this.usehref=i.usehref||"",this.picture=null}}class ne extends t.XFAObject{constructor(i){super(f,"contentArea",!0),this.h=(0,c.getMeasurement)(i.h),this.id=i.id||"",this.name=i.name||"",this.relevant=(0,c.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.w=(0,c.getMeasurement)(i.w),this.x=(0,c.getMeasurement)(i.x,"0pt"),this.y=(0,c.getMeasurement)(i.y,"0pt"),this.desc=null,this.extras=null}[n.$toHTML](i){const R=(0,e.measureToString)(this.x),Ae=(0,e.measureToString)(this.y),ve={left:R,top:Ae,width:(0,e.measureToString)(this.w),height:(0,e.measureToString)(this.h)},Te=["xfaContentarea"];return(0,e.isPrintOnly)(this)&&Te.push("xfaPrintOnly"),c.HTMLResult.success({name:"div",children:[],attributes:{style:ve,class:Te,id:this[n.$uid]}})}}class V extends t.XFAObject{constructor(i){super(f,"corner",!0),this.id=i.id||"",this.inverted=(0,c.getInteger)({data:i.inverted,defaultValue:0,validate:R=>R===1}),this.join=(0,c.getStringOption)(i.join,["square","round"]),this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,c.getMeasurement)(i.radius),this.stroke=(0,c.getStringOption)(i.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,c.getMeasurement)(i.thickness,"0.5pt"),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](){const i=(0,e.toStyle)(this,"visibility");return i.radius=(0,e.measureToString)(this.join==="square"?0:this.radius),i}}class L extends t.ContentObject{constructor(i){super(f,"date"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=this[n.$content].trim();this[n.$content]=i?new Date(i):null}[n.$toHTML](i){return r(this[n.$content]?this[n.$content].toString():"")}}class te extends t.ContentObject{constructor(i){super(f,"dateTime"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=this[n.$content].trim();this[n.$content]=i?new Date(i):null}[n.$toHTML](i){return r(this[n.$content]?this[n.$content].toString():"")}}class se extends t.XFAObject{constructor(i){super(f,"dateTimeEdit",!0),this.hScrollPolicy=(0,c.getStringOption)(i.hScrollPolicy,["auto","off","on"]),this.id=i.id||"",this.picker=(0,c.getStringOption)(i.picker,["host","none"]),this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](i){var Te;const R=(0,e.toStyle)(this,"border","font","margin"),Ae=this[n.$getParent]()[n.$getParent](),ve={name:"input",attributes:{type:"text",fieldId:Ae[n.$uid],dataId:((Te=Ae[n.$data])==null?void 0:Te[n.$uid])||Ae[n.$uid],class:["xfaTextfield"],style:R,"aria-label":s(Ae),"aria-required":!1}};return o(Ae)&&(ve.attributes["aria-required"]=!0,ve.attributes.required=!0),c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[ve]})}}class le extends t.ContentObject{constructor(i){super(f,"decimal"),this.fracDigits=(0,c.getInteger)({data:i.fracDigits,defaultValue:2,validate:R=>!0}),this.id=i.id||"",this.leadDigits=(0,c.getInteger)({data:i.leadDigits,defaultValue:-1,validate:R=>!0}),this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(i)?null:i}[n.$toHTML](i){return r(this[n.$content]!==null?this[n.$content].toString():"")}}class ue extends t.XFAObject{constructor(i){super(f,"defaultUi",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}}class fe extends t.XFAObject{constructor(i){super(f,"desc",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class ge extends t.OptionObject{constructor(i){super(f,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class xe extends t.XFAObject{constructor(i){super(f,"digestMethods",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.digestMethod=new t.XFAObjectArray}}class me extends t.XFAObject{constructor(i){super(f,"draw",!0),this.anchorType=(0,c.getStringOption)(i.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,c.getInteger)({data:i.colSpan,defaultValue:1,validate:R=>R>=1||R===-1}),this.h=i.h?(0,c.getMeasurement)(i.h):"",this.hAlign=(0,c.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.locale=i.locale||"",this.maxH=(0,c.getMeasurement)(i.maxH,"0pt"),this.maxW=(0,c.getMeasurement)(i.maxW,"0pt"),this.minH=(0,c.getMeasurement)(i.minH,"0pt"),this.minW=(0,c.getMeasurement)(i.minW,"0pt"),this.name=i.name||"",this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,c.getRelevant)(i.relevant),this.rotate=(0,c.getInteger)({data:i.rotate,defaultValue:0,validate:R=>R%90===0}),this.use=i.use||"",this.usehref=i.usehref||"",this.w=i.w?(0,c.getMeasurement)(i.w):"",this.x=(0,c.getMeasurement)(i.x,"0pt"),this.y=(0,c.getMeasurement)(i.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 t.XFAObjectArray}[n.$setValue](i){d(this,i)}[n.$toHTML](i){if(l(this),this.presence==="hidden"||this.presence==="inactive")return c.HTMLResult.EMPTY;(0,e.fixDimensions)(this),this[n.$pushPara]();const R=this.w,Ae=this.h,{w:ve,h:Te,isBroken:Xe}=(0,e.layoutNode)(this,i);if(ve&&this.w===""){if(Xe&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),c.HTMLResult.FAILURE;this.w=ve}if(Te&&this.h===""&&(this.h=Te),u(this),!(0,D.checkDimensions)(this,i))return this.w=R,this.h=Ae,this[n.$popPara](),c.HTMLResult.FAILURE;C(this);const Ye=(0,e.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,e.setMinMaxDimensions)(this,Ye),Ye.margin&&(Ye.padding=Ye.margin,delete Ye.margin);const Je=["xfaDraw"];this.font&&Je.push("xfaFont"),(0,e.isPrintOnly)(this)&&Je.push("xfaPrintOnly");const xt={style:Ye,id:this[n.$uid],class:Je};this.name&&(xt.xfaName=this.name);const wt={name:"div",attributes:xt,children:[]};F(this,xt);const Et=(0,e.computeBbox)(this,wt,i),It=this.value?this.value[n.$toHTML](i).html:null;return It===null?(this.w=R,this.h=Ae,this[n.$popPara](),c.HTMLResult.success((0,e.createWrapper)(this,wt),Et)):(wt.children.push(It),(0,e.setPara)(this,Ye,It),this.w=R,this.h=Ae,this[n.$popPara](),c.HTMLResult.success((0,e.createWrapper)(this,wt),Et))}}class be extends t.XFAObject{constructor(i){super(f,"edge",!0),this.cap=(0,c.getStringOption)(i.cap,["square","butt","round"]),this.id=i.id||"",this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,c.getStringOption)(i.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,c.getMeasurement)(i.thickness,"0.5pt"),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](){const i=(0,e.toStyle)(this,"visibility");if(Object.assign(i,{linecap:this.cap,width:(0,e.measureToString)(this.thickness),color:this.color?this.color[n.$toStyle]():"#000000",style:""}),this.presence!=="visible")i.style="none";else switch(this.stroke){case"solid":i.style="solid";break;case"dashDot":i.style="dashed";break;case"dashDotDot":i.style="dashed";break;case"dashed":i.style="dashed";break;case"dotted":i.style="dotted";break;case"embossed":i.style="ridge";break;case"etched":i.style="groove";break;case"lowered":i.style="inset";break;case"raised":i.style="outset";break}return i}}class ye extends t.OptionObject{constructor(i){super(f,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class Se extends t.XFAObject{constructor(i){super(f,"encodings",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.encoding=new t.XFAObjectArray}}class pe extends t.XFAObject{constructor(i){super(f,"encrypt",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.certificate=null}}class he extends t.XFAObject{constructor(i){super(f,"encryptData",!0),this.id=i.id||"",this.operation=(0,c.getStringOption)(i.operation,["encrypt","decrypt"]),this.target=i.target||"",this.use=i.use||"",this.usehref=i.usehref||"",this.filter=null,this.manifest=null}}class de extends t.XFAObject{constructor(i){super(f,"encryption",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.certificate=new t.XFAObjectArray}}class Ce extends t.OptionObject{constructor(i){super(f,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class we extends t.XFAObject{constructor(i){super(f,"encryptionMethods",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.encryptionMethod=new t.XFAObjectArray}}class Le extends t.XFAObject{constructor(i){super(f,"event",!0),this.activity=(0,c.getStringOption)(i.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=i.id||"",this.listen=(0,c.getStringOption)(i.listen,["refOnly","refAndDescendents"]),this.name=i.name||"",this.ref=i.ref||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class Be extends t.ContentObject{constructor(i){super(f,"exData"),this.contentType=i.contentType||"",this.href=i.href||"",this.id=i.id||"",this.maxLength=(0,c.getInteger)({data:i.maxLength,defaultValue:-1,validate:R=>R>=-1}),this.name=i.name||"",this.rid=i.rid||"",this.transferEncoding=(0,c.getStringOption)(i.transferEncoding,["none","base64","package"]),this.use=i.use||"",this.usehref=i.usehref||""}[n.$isCDATAXml](){return this.contentType==="text/html"}[n.$onChild](i){return this.contentType==="text/html"&&i[n.$namespaceId]===P.NamespaceIds.xhtml.id?(this[n.$content]=i,!0):this.contentType==="text/xml"?(this[n.$content]=i,!0):!1}[n.$toHTML](i){return this.contentType!=="text/html"||!this[n.$content]?c.HTMLResult.EMPTY:this[n.$content][n.$toHTML](i)}}class at extends t.XFAObject{constructor(i){super(f,"exObject",!0),this.archive=i.archive||"",this.classId=i.classId||"",this.codeBase=i.codeBase||"",this.codeType=i.codeType||"",this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class Oe extends t.XFAObject{constructor(i){super(f,"exclGroup",!0),this.access=(0,c.getStringOption)(i.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=i.accessKey||"",this.anchorType=(0,c.getStringOption)(i.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,c.getInteger)({data:i.colSpan,defaultValue:1,validate:R=>R>=1||R===-1}),this.h=i.h?(0,c.getMeasurement)(i.h):"",this.hAlign=(0,c.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.layout=(0,c.getStringOption)(i.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,c.getMeasurement)(i.maxH,"0pt"),this.maxW=(0,c.getMeasurement)(i.maxW,"0pt"),this.minH=(0,c.getMeasurement)(i.minH,"0pt"),this.minW=(0,c.getMeasurement)(i.minW,"0pt"),this.name=i.name||"",this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,c.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.w=i.w?(0,c.getMeasurement)(i.w):"",this.x=(0,c.getMeasurement)(i.x,"0pt"),this.y=(0,c.getMeasurement)(i.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 t.XFAObjectArray,this.event=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray}[n.$isBindable](){return!0}[n.$hasSettableValue](){return!0}[n.$setValue](i){for(const R of this.field.children){if(!R.value){const Ae=new an({});R[n.$appendChild](Ae),R.value=Ae}R.value[n.$setValue](i)}}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}[n.$isSplittable](){var R;const i=this[n.$getSubformParent]();return i[n.$isSplittable]()?this[n.$extra]._isSplittable!==void 0?this[n.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[n.$extra]._isSplittable=!1,!1):((R=i.layout)==null?void 0:R.endsWith("-tb"))&&i[n.$extra].numberInLine!==0?!1:(this[n.$extra]._isSplittable=!0,!0):!1}[n.$flushHTML](){return(0,D.flushHTML)(this)}[n.$addHTML](i,R){(0,D.addHTML)(this,i,R)}[n.$getAvailableSpace](){return(0,D.getAvailableSpace)(this)}[n.$toHTML](i){if(l(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return c.HTMLResult.EMPTY;(0,e.fixDimensions)(this);const R=[],Ae={id:this[n.$uid],class:[]};(0,e.setAccess)(this,Ae.class),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:R,attributes:Ae,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,i.width),height:Math.min(this.h||1/0,i.height)},width:0,height:0,prevHeight:0,currentWidth:0});const ve=this[n.$isSplittable]();if(ve||u(this),!(0,D.checkDimensions)(this,i))return c.HTMLResult.FAILURE;const Te=new Set(["field"]);if(this.layout.includes("row")){const Rt=this[n.$getSubformParent]().columnWidths;Array.isArray(Rt)&&Rt.length>0&&(this[n.$extra].columnWidths=Rt,this[n.$extra].currentColumn=0)}const Xe=(0,e.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),Ye=["xfaExclgroup"],Je=(0,e.layoutClass)(this);Je&&Ye.push(Je),(0,e.isPrintOnly)(this)&&Ye.push("xfaPrintOnly"),Ae.style=Xe,Ae.class=Ye,this.name&&(Ae.xfaName=this.name),this[n.$pushPara]();const xt=this.layout==="lr-tb"||this.layout==="rl-tb",wt=xt?a:1;for(;this[n.$extra].attempt<wt;this[n.$extra].attempt++){xt&&this[n.$extra].attempt===a-1&&(this[n.$extra].numberInLine=0);const Rt=this[n.$childrenToHTML]({filter:Te,include:!0});if(Rt.success)break;if(Rt.isBreak())return this[n.$popPara](),Rt;if(xt&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine===0&&!this[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){this[n.$extra].attempt=wt;break}}if(this[n.$popPara](),ve||C(this),this[n.$extra].attempt===wt)return ve||delete this[n.$extra],c.HTMLResult.FAILURE;let Et=0,It=0;this.margin&&(Et=this.margin.leftInset+this.margin.rightInset,It=this.margin.topInset+this.margin.bottomInset);const Nt=Math.max(this[n.$extra].width+Et,this.w||0),$t=Math.max(this[n.$extra].height+It,this.h||0),mt=[this.x,this.y,Nt,$t];this.w===""&&(Xe.width=(0,e.measureToString)(Nt)),this.h===""&&(Xe.height=(0,e.measureToString)($t));const Ht={name:"div",attributes:Ae,children:R};return F(this,Ae),delete this[n.$extra],c.HTMLResult.success((0,e.createWrapper)(this,Ht),mt)}}class Ze extends t.XFAObject{constructor(i){super(f,"execute"),this.connection=i.connection||"",this.executeType=(0,c.getStringOption)(i.executeType,["import","remerge"]),this.id=i.id||"",this.runAt=(0,c.getStringOption)(i.runAt,["client","both","server"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Ke extends t.XFAObject{constructor(i){super(f,"extras",!0),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.extras=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}}class Pe extends t.XFAObject{constructor(i){super(f,"field",!0),this.access=(0,c.getStringOption)(i.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=i.accessKey||"",this.anchorType=(0,c.getStringOption)(i.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,c.getInteger)({data:i.colSpan,defaultValue:1,validate:R=>R>=1||R===-1}),this.h=i.h?(0,c.getMeasurement)(i.h):"",this.hAlign=(0,c.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.locale=i.locale||"",this.maxH=(0,c.getMeasurement)(i.maxH,"0pt"),this.maxW=(0,c.getMeasurement)(i.maxW,"0pt"),this.minH=(0,c.getMeasurement)(i.minH,"0pt"),this.minW=(0,c.getMeasurement)(i.minW,"0pt"),this.name=i.name||"",this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,c.getRelevant)(i.relevant),this.rotate=(0,c.getInteger)({data:i.rotate,defaultValue:0,validate:R=>R%90===0}),this.use=i.use||"",this.usehref=i.usehref||"",this.w=i.w?(0,c.getMeasurement)(i.w):"",this.x=(0,c.getMeasurement)(i.x,"0pt"),this.y=(0,c.getMeasurement)(i.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 t.XFAObjectArray(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 t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray}[n.$isBindable](){return!0}[n.$setValue](i){d(this,i)}[n.$toHTML](i){var Rt,Kt,zt;if(l(this),!this.ui){this.ui=new fn({}),this.ui[n.$globalData]=this[n.$globalData],this[n.$appendChild](this.ui);let At;switch(this.items.children.length){case 0:At=new mn({}),this.ui.textEdit=At;break;case 1:At=new G({}),this.ui.checkButton=At;break;case 2:At=new Q({}),this.ui.choiceList=At;break}this.ui[n.$appendChild](At)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return c.HTMLResult.EMPTY;this.caption&&delete this.caption[n.$extra],this[n.$pushPara]();const R=this.caption?this.caption[n.$toHTML](i).html:null,Ae=this.w,ve=this.h;let Te=0,Xe=0;this.margin&&(Te=this.margin.leftInset+this.margin.rightInset,Xe=this.margin.topInset+this.margin.bottomInset);let Ye=null;if(this.w===""||this.h===""){let At=null,Qe=null,Jt=0,Yt=0;if(this.ui.checkButton)Jt=Yt=this.ui.checkButton.size;else{const{w:en,h:Zt}=(0,e.layoutNode)(this,i);en!==null?(Jt=en,Yt=Zt):Yt=(0,ee.getMetrics)(this.font,!0).lineNoGap}if(Ye=z(this.ui[n.$getExtra]()),Jt+=Ye.w,Yt+=Ye.h,this.caption){const{w:en,h:Zt,isBroken:Gt}=this.caption[n.$getExtra](i);if(Gt&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),c.HTMLResult.FAILURE;switch(At=en,Qe=Zt,this.caption.placement){case"left":case"right":case"inline":At+=Jt;break;case"top":case"bottom":Qe+=Yt;break}}else At=Jt,Qe=Yt;At&&this.w===""&&(At+=Te,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<At?At:this.minW)),Qe&&this.h===""&&(Qe+=Xe,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<Qe?Qe:this.minH))}if(this[n.$popPara](),(0,e.fixDimensions)(this),u(this),!(0,D.checkDimensions)(this,i))return this.w=Ae,this.h=ve,this[n.$popPara](),c.HTMLResult.FAILURE;C(this);const Je=(0,e.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,e.setMinMaxDimensions)(this,Je);const xt=["xfaField"];this.font&&xt.push("xfaFont"),(0,e.isPrintOnly)(this)&&xt.push("xfaPrintOnly");const wt={style:Je,id:this[n.$uid],class:xt};Je.margin&&(Je.padding=Je.margin,delete Je.margin),(0,e.setAccess)(this,xt),this.name&&(wt.xfaName=this.name);const Et=[],It={name:"div",attributes:wt,children:Et};F(this,wt);const Nt=this.border?this.border[n.$toStyle]():null,$t=(0,e.computeBbox)(this,It,i),mt=this.ui[n.$toHTML]().html;if(!mt)return Object.assign(Je,Nt),c.HTMLResult.success((0,e.createWrapper)(this,It),$t);this[n.$tabIndex]&&((Rt=mt.children)!=null&&Rt[0]?mt.children[0].attributes.tabindex=this[n.$tabIndex]:mt.attributes.tabindex=this[n.$tabIndex]),mt.attributes.style||(mt.attributes.style=Object.create(null));let Ht=null;if(this.ui.button?(mt.children.length===1&&([Ht]=mt.children.splice(0,1)),Object.assign(mt.attributes.style,Nt)):Object.assign(Je,Nt),Et.push(mt),this.value){if(this.ui.imageEdit)mt.children.push(this.value[n.$toHTML]().html);else if(!this.ui.button){let At="";if(this.value.exData)At=this.value.exData[n.$text]();else if(this.value.text)At=this.value.text[n.$getExtra]();else{const Qe=this.value[n.$toHTML]().html;Qe!==null&&(At=Qe.children[0].value)}this.ui.textEdit&&((Kt=this.value.text)==null?void 0:Kt.maxChars)&&(mt.children[0].attributes.maxLength=this.value.text.maxChars),At&&(this.ui.numericEdit&&(At=parseFloat(At),At=isNaN(At)?"":At.toString()),mt.children[0].name==="textarea"?mt.children[0].attributes.textContent=At:mt.children[0].attributes.value=At)}}if(!this.ui.imageEdit&&((zt=mt.children)==null?void 0:zt[0])&&this.h){Ye=Ye||z(this.ui[n.$getExtra]());let At=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){At=this.caption.reserve,At<=0&&(At=this.caption[n.$getExtra](i).h);const Qe=this.h-At-Xe-Ye.h;mt.children[0].attributes.style.height=(0,e.measureToString)(Qe)}else mt.children[0].attributes.style.height="100%"}if(Ht&&mt.children.push(Ht),!R)return mt.attributes.class&&mt.attributes.class.push("xfaLeft"),this.w=Ae,this.h=ve,c.HTMLResult.success((0,e.createWrapper)(this,It),$t);if(this.ui.button)return Je.padding&&delete Je.padding,R.name==="div"&&(R.name="span"),mt.children.push(R),c.HTMLResult.success(It,$t);switch(this.ui.checkButton&&(R.attributes.class[0]="xfaCaptionForCheckButton"),mt.attributes.class||(mt.attributes.class=[]),mt.children.splice(0,0,R),this.caption.placement){case"left":mt.attributes.class.push("xfaLeft");break;case"right":mt.attributes.class.push("xfaRight");break;case"top":mt.attributes.class.push("xfaTop");break;case"bottom":mt.attributes.class.push("xfaBottom");break;case"inline":mt.attributes.class.push("xfaLeft");break}return this.w=Ae,this.h=ve,c.HTMLResult.success((0,e.createWrapper)(this,It),$t)}}b.Field=Pe;class qe extends t.XFAObject{constructor(i){super(f,"fill",!0),this.id=i.id||"",this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[n.$toStyle](){var Ye;const i=this[n.$getParent](),Ae=i[n.$getParent]()[n.$getParent](),ve=Object.create(null);let Te="color",Xe=Te;i instanceof J&&(Te="background-color",Xe="background",Ae instanceof fn&&(ve.backgroundColor="white")),(i instanceof ht||i instanceof $)&&(Te=Xe="fill",ve.fill="white");for(const Je of Object.getOwnPropertyNames(this)){if(Je==="extras"||Je==="color")continue;const xt=this[Je];if(!(xt instanceof t.XFAObject))continue;const wt=xt[n.$toStyle](this.color);return wt&&(ve[wt.startsWith("#")?Te:Xe]=wt),ve}if((Ye=this.color)!=null&&Ye.value){const Je=this.color[n.$toStyle]();ve[Je.startsWith("#")?Te:Xe]=Je}return ve}}class gt extends t.XFAObject{constructor(i){super(f,"filter",!0),this.addRevocationInfo=(0,c.getStringOption)(i.addRevocationInfo,["","required","optional","none"]),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||"",this.version=(0,c.getInteger)({data:this.version,defaultValue:5,validate:R=>R>=1&&R<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class De extends t.ContentObject{constructor(i){super(f,"float"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(i)?null:i}[n.$toHTML](i){return r(this[n.$content]!==null?this[n.$content].toString():"")}}class et extends t.XFAObject{constructor(i){super(f,"font",!0),this.baselineShift=(0,c.getMeasurement)(i.baselineShift),this.fontHorizontalScale=(0,c.getFloat)({data:i.fontHorizontalScale,defaultValue:100,validate:R=>R>=0}),this.fontVerticalScale=(0,c.getFloat)({data:i.fontVerticalScale,defaultValue:100,validate:R=>R>=0}),this.id=i.id||"",this.kerningMode=(0,c.getStringOption)(i.kerningMode,["none","pair"]),this.letterSpacing=(0,c.getMeasurement)(i.letterSpacing,"0"),this.lineThrough=(0,c.getInteger)({data:i.lineThrough,defaultValue:0,validate:R=>R===1||R===2}),this.lineThroughPeriod=(0,c.getStringOption)(i.lineThroughPeriod,["all","word"]),this.overline=(0,c.getInteger)({data:i.overline,defaultValue:0,validate:R=>R===1||R===2}),this.overlinePeriod=(0,c.getStringOption)(i.overlinePeriod,["all","word"]),this.posture=(0,c.getStringOption)(i.posture,["normal","italic"]),this.size=(0,c.getMeasurement)(i.size,"10pt"),this.typeface=i.typeface||"Courier",this.underline=(0,c.getInteger)({data:i.underline,defaultValue:0,validate:R=>R===1||R===2}),this.underlinePeriod=(0,c.getStringOption)(i.underlinePeriod,["all","word"]),this.use=i.use||"",this.usehref=i.usehref||"",this.weight=(0,c.getStringOption)(i.weight,["normal","bold"]),this.extras=null,this.fill=null}[n.$clean](i){super[n.$clean](i),this[n.$globalData].usedTypefaces.add(this.typeface)}[n.$toStyle](){const i=(0,e.toStyle)(this,"fill"),R=i.color;return R&&(R==="#000000"?delete i.color:R.startsWith("#")||(i.background=R,i.backgroundClip="text",i.color="transparent")),this.baselineShift&&(i.verticalAlign=(0,e.measureToString)(this.baselineShift)),i.fontKerning=this.kerningMode==="none"?"none":"normal",i.letterSpacing=(0,e.measureToString)(this.letterSpacing),this.lineThrough!==0&&(i.textDecoration="line-through",this.lineThrough===2&&(i.textDecorationStyle="double")),this.overline!==0&&(i.textDecoration="overline",this.overline===2&&(i.textDecorationStyle="double")),i.fontStyle=this.posture,i.fontSize=(0,e.measureToString)(.99*this.size),(0,e.setFontFamily)(this,this,this[n.$globalData].fontFinder,i),this.underline!==0&&(i.textDecoration="underline",this.underline===2&&(i.textDecorationStyle="double")),i.fontWeight=this.weight,i}}class rt extends t.XFAObject{constructor(i){super(f,"format",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.picture=null}}class St extends t.StringObject{constructor(i){super(f,"handler"),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Pt extends t.XFAObject{constructor(i){super(f,"hyphenation"),this.excludeAllCaps=(0,c.getInteger)({data:i.excludeAllCaps,defaultValue:0,validate:R=>R===1}),this.excludeInitialCap=(0,c.getInteger)({data:i.excludeInitialCap,defaultValue:0,validate:R=>R===1}),this.hyphenate=(0,c.getInteger)({data:i.hyphenate,defaultValue:0,validate:R=>R===1}),this.id=i.id||"",this.pushCharacterCount=(0,c.getInteger)({data:i.pushCharacterCount,defaultValue:3,validate:R=>R>=0}),this.remainCharacterCount=(0,c.getInteger)({data:i.remainCharacterCount,defaultValue:3,validate:R=>R>=0}),this.use=i.use||"",this.usehref=i.usehref||"",this.wordCharacterCount=(0,c.getInteger)({data:i.wordCharacterCount,defaultValue:7,validate:R=>R>=0})}}class Ge extends t.StringObject{constructor(i){super(f,"image"),this.aspect=(0,c.getStringOption)(i.aspect,["fit","actual","height","none","width"]),this.contentType=i.contentType||"",this.href=i.href||"",this.id=i.id||"",this.name=i.name||"",this.transferEncoding=(0,c.getStringOption)(i.transferEncoding,["base64","none","package"]),this.use=i.use||"",this.usehref=i.usehref||""}[n.$toHTML](){if(this.contentType&&!M.has(this.contentType.toLowerCase()))return c.HTMLResult.EMPTY;let i=this[n.$globalData].images&&this[n.$globalData].images.get(this.href);if(!i&&(this.href||!this[n.$content])||(!i&&this.transferEncoding==="base64"&&(i=(0,Y.stringToBytes)(atob(this[n.$content]))),!i))return c.HTMLResult.EMPTY;if(!this.contentType){for(const[Te,Xe]of B)if(i.length>Te.length&&Te.every((Ye,Je)=>Ye===i[Je])){this.contentType=Xe;break}if(!this.contentType)return c.HTMLResult.EMPTY}const R=new Blob([i],{type:this.contentType});let Ae;switch(this.aspect){case"fit":case"actual":break;case"height":Ae={height:"100%",objectFit:"fill"};break;case"none":Ae={width:"100%",height:"100%",objectFit:"fill"};break;case"width":Ae={width:"100%",objectFit:"fill"};break}const ve=this[n.$getParent]();return c.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:Ae,src:URL.createObjectURL(R),alt:ve?s(ve[n.$getParent]()):null}})}}class We extends t.XFAObject{constructor(i){super(f,"imageEdit",!0),this.data=(0,c.getStringOption)(i.data,["link","embed"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](i){return this.data==="embed"?c.HTMLResult.success({name:"div",children:[],attributes:{}}):c.HTMLResult.EMPTY}}class _e extends t.ContentObject{constructor(i){super(f,"integer"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=parseInt(this[n.$content].trim(),10);this[n.$content]=isNaN(i)?null:i}[n.$toHTML](i){return r(this[n.$content]!==null?this[n.$content].toString():"")}}class yt extends t.XFAObject{constructor(i){super(f,"issuers",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.certificate=new t.XFAObjectArray}}class Tt extends t.XFAObject{constructor(i){super(f,"items",!0),this.id=i.id||"",this.name=i.name||"",this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.ref=i.ref||"",this.save=(0,c.getInteger)({data:i.save,defaultValue:0,validate:R=>R===1}),this.use=i.use||"",this.usehref=i.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}[n.$toHTML](){const i=[];for(const R of this[n.$getChildren]())i.push(R[n.$text]());return c.HTMLResult.success(i)}}b.Items=Tt;class Ct extends t.XFAObject{constructor(i){super(f,"keep",!0),this.id=i.id||"";const R=["none","contentArea","pageArea"];this.intact=(0,c.getStringOption)(i.intact,R),this.next=(0,c.getStringOption)(i.next,R),this.previous=(0,c.getStringOption)(i.previous,R),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}}class ut extends t.XFAObject{constructor(i){super(f,"keyUsage");const R=["","yes","no"];this.crlSign=(0,c.getStringOption)(i.crlSign,R),this.dataEncipherment=(0,c.getStringOption)(i.dataEncipherment,R),this.decipherOnly=(0,c.getStringOption)(i.decipherOnly,R),this.digitalSignature=(0,c.getStringOption)(i.digitalSignature,R),this.encipherOnly=(0,c.getStringOption)(i.encipherOnly,R),this.id=i.id||"",this.keyAgreement=(0,c.getStringOption)(i.keyAgreement,R),this.keyCertSign=(0,c.getStringOption)(i.keyCertSign,R),this.keyEncipherment=(0,c.getStringOption)(i.keyEncipherment,R),this.nonRepudiation=(0,c.getStringOption)(i.nonRepudiation,R),this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Bt extends t.XFAObject{constructor(i){super(f,"line",!0),this.hand=(0,c.getStringOption)(i.hand,["even","left","right"]),this.id=i.id||"",this.slope=(0,c.getStringOption)(i.slope,["\\","/"]),this.use=i.use||"",this.usehref=i.usehref||"",this.edge=null}[n.$toHTML](){const i=this[n.$getParent]()[n.$getParent](),R=this.edge||new be({}),Ae=R[n.$toStyle](),ve=Object.create(null),Te=R.presence==="visible"?R.thickness:0;ve.strokeWidth=(0,e.measureToString)(Te),ve.stroke=Ae.color;let Xe,Ye,Je,xt,wt="100%",Et="100%";i.w<=Te?([Xe,Ye,Je,xt]=["50%",0,"50%","100%"],wt=ve.strokeWidth):i.h<=Te?([Xe,Ye,Je,xt]=[0,"50%","100%","50%"],Et=ve.strokeWidth):this.slope==="\\"?[Xe,Ye,Je,xt]=[0,0,"100%","100%"]:[Xe,Ye,Je,xt]=[0,"100%","100%",0];const Nt={name:"svg",children:[{name:"line",attributes:{xmlns:x,x1:Xe,y1:Ye,x2:Je,y2:xt,style:ve}}],attributes:{xmlns:x,width:wt,height:Et,style:{overflow:"visible"}}};return W(i)?c.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Nt]}):(Nt.attributes.style.position="absolute",c.HTMLResult.success(Nt))}}class Xt extends t.XFAObject{constructor(i){super(f,"linear",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["toRight","toBottom","toLeft","toTop"]),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](i){i=i?i[n.$toStyle]():"#FFFFFF";const R=this.type.replace(/([RBLT])/," $1").toLowerCase(),Ae=this.color?this.color[n.$toStyle]():"#000000";return`linear-gradient(${R}, ${i}, ${Ae})`}}class Ie extends t.ContentObject{constructor(i){super(f,"lockDocument"),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){this[n.$content]=(0,c.getStringOption)(this[n.$content],["auto","0","1"])}}class Fe extends t.XFAObject{constructor(i){super(f,"manifest",!0),this.action=(0,c.getStringOption)(i.action,["include","all","exclude"]),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.ref=new t.XFAObjectArray}}class Me extends t.XFAObject{constructor(i){super(f,"margin",!0),this.bottomInset=(0,c.getMeasurement)(i.bottomInset,"0"),this.id=i.id||"",this.leftInset=(0,c.getMeasurement)(i.leftInset,"0"),this.rightInset=(0,c.getMeasurement)(i.rightInset,"0"),this.topInset=(0,c.getMeasurement)(i.topInset,"0"),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}[n.$toStyle](){return{margin:(0,e.measureToString)(this.topInset)+" "+(0,e.measureToString)(this.rightInset)+" "+(0,e.measureToString)(this.bottomInset)+" "+(0,e.measureToString)(this.leftInset)}}}class Ne extends t.XFAObject{constructor(i){super(f,"mdp"),this.id=i.id||"",this.permissions=(0,c.getInteger)({data:i.permissions,defaultValue:2,validate:R=>R===1||R===3}),this.signatureType=(0,c.getStringOption)(i.signatureType,["filler","author"]),this.use=i.use||"",this.usehref=i.usehref||""}}class je extends t.XFAObject{constructor(i){super(f,"medium"),this.id=i.id||"",this.imagingBBox=(0,c.getBBox)(i.imagingBBox),this.long=(0,c.getMeasurement)(i.long),this.orientation=(0,c.getStringOption)(i.orientation,["portrait","landscape"]),this.short=(0,c.getMeasurement)(i.short),this.stock=i.stock||"",this.trayIn=(0,c.getStringOption)(i.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,c.getStringOption)(i.trayOut,["auto","delegate"]),this.use=i.use||"",this.usehref=i.usehref||""}}class tt extends t.XFAObject{constructor(i){super(f,"message",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.text=new t.XFAObjectArray}}class $e extends t.XFAObject{constructor(i){super(f,"numericEdit",!0),this.hScrollPolicy=(0,c.getStringOption)(i.hScrollPolicy,["auto","off","on"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](i){var Te;const R=(0,e.toStyle)(this,"border","font","margin"),Ae=this[n.$getParent]()[n.$getParent](),ve={name:"input",attributes:{type:"text",fieldId:Ae[n.$uid],dataId:((Te=Ae[n.$data])==null?void 0:Te[n.$uid])||Ae[n.$uid],class:["xfaTextfield"],style:R,"aria-label":s(Ae),"aria-required":!1}};return o(Ae)&&(ve.attributes["aria-required"]=!0,ve.attributes.required=!0),c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[ve]})}}class Ee extends t.XFAObject{constructor(i){super(f,"occur",!0),this.id=i.id||"",this.initial=i.initial!==""?(0,c.getInteger)({data:i.initial,defaultValue:"",validate:R=>!0}):"",this.max=i.max!==""?(0,c.getInteger)({data:i.max,defaultValue:1,validate:R=>!0}):"",this.min=i.min!==""?(0,c.getInteger)({data:i.min,defaultValue:1,validate:R=>!0}):"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}[n.$clean](){const i=this[n.$getParent](),R=this.min;this.min===""&&(this.min=i instanceof nt||i instanceof it?0:1),this.max===""&&(R===""?this.max=i instanceof nt||i instanceof it?-1:1:this.max=this.min),this.max!==-1&&this.max<this.min&&(this.max=this.min),this.initial===""&&(this.initial=i instanceof un?1:this.min)}}class ze extends t.StringObject{constructor(i){super(f,"oid"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}}class ot extends t.XFAObject{constructor(i){super(f,"oids",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.oid=new t.XFAObjectArray}}class pt extends t.XFAObject{constructor(i){super(f,"overflow"),this.id=i.id||"",this.leader=i.leader||"",this.target=i.target||"",this.trailer=i.trailer||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$getExtra](){if(!this[n.$extra]){const i=this[n.$getParent](),R=this[n.$getTemplateRoot](),Ae=R[n.$searchNode](this.target,i),ve=R[n.$searchNode](this.leader,i),Te=R[n.$searchNode](this.trailer,i);this[n.$extra]={target:(Ae==null?void 0:Ae[0])||null,leader:(ve==null?void 0:ve[0])||null,trailer:(Te==null?void 0:Te[0])||null,addLeader:!1,addTrailer:!1}}return this[n.$extra]}}class nt extends t.XFAObject{constructor(i){super(f,"pageArea",!0),this.blankOrNotBlank=(0,c.getStringOption)(i.blankOrNotBlank,["any","blank","notBlank"]),this.id=i.id||"",this.initialNumber=(0,c.getInteger)({data:i.initialNumber,defaultValue:1,validate:R=>!0}),this.name=i.name||"",this.numbered=(0,c.getInteger)({data:i.numbered,defaultValue:1,validate:R=>!0}),this.oddOrEven=(0,c.getStringOption)(i.oddOrEven,["any","even","odd"]),this.pagePosition=(0,c.getStringOption)(i.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,c.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new t.XFAObjectArray,this.contentArea=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.subform=new t.XFAObjectArray}[n.$isUsable](){return this[n.$extra]?!this.occur||this.occur.max===-1||this[n.$extra].numberOfUse<this.occur.max:(this[n.$extra]={numberOfUse:0},!0)}[n.$cleanPage](){delete this[n.$extra]}[n.$getNextPage](){this[n.$extra]||(this[n.$extra]={numberOfUse:0});const i=this[n.$getParent]();return i.relation==="orderedOccurrence"&&this[n.$isUsable]()?(this[n.$extra].numberOfUse+=1,this):i[n.$getNextPage]()}[n.$getAvailableSpace](){return this[n.$extra].space||{width:0,height:0}}[n.$toHTML](){this[n.$extra]||(this[n.$extra]={numberOfUse:1});const i=[];this[n.$extra].children=i;const R=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(R.width=(0,e.measureToString)(this.medium.short),R.height=(0,e.measureToString)(this.medium.long),this[n.$extra].space={width:this.medium.short,height:this.medium.long},this.medium.orientation==="landscape"){const Ae=R.width;R.width=R.height,R.height=Ae,this[n.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,Y.warn)("XFA - No medium specified in pageArea: please file a bug.");return this[n.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[n.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),c.HTMLResult.success({name:"div",children:i,attributes:{class:["xfaPage"],id:this[n.$uid],style:R,xfaName:this.name}})}}class it extends t.XFAObject{constructor(i){super(f,"pageSet",!0),this.duplexImposition=(0,c.getStringOption)(i.duplexImposition,["longEdge","shortEdge"]),this.id=i.id||"",this.name=i.name||"",this.relation=(0,c.getStringOption)(i.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=(0,c.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.occur=null,this.pageArea=new t.XFAObjectArray,this.pageSet=new t.XFAObjectArray}[n.$cleanPage](){for(const i of this.pageArea.children)i[n.$cleanPage]();for(const i of this.pageSet.children)i[n.$cleanPage]()}[n.$isUsable](){return!this.occur||this.occur.max===-1||this[n.$extra].numberOfUse<this.occur.max}[n.$getNextPage](){if(this[n.$extra]||(this[n.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),this.relation==="orderedOccurrence"){if(this[n.$extra].pageIndex+1<this.pageArea.children.length)return this[n.$extra].pageIndex+=1,this.pageArea.children[this[n.$extra].pageIndex][n.$getNextPage]();if(this[n.$extra].pageSetIndex+1<this.pageSet.children.length)return this[n.$extra].pageSetIndex+=1,this.pageSet.children[this[n.$extra].pageSetIndex][n.$getNextPage]();if(this[n.$isUsable]())return this[n.$extra].numberOfUse+=1,this[n.$extra].pageIndex=-1,this[n.$extra].pageSetIndex=-1,this[n.$getNextPage]();const Te=this[n.$getParent]();return Te instanceof it?Te[n.$getNextPage]():(this[n.$cleanPage](),this[n.$getNextPage]())}const i=this[n.$getTemplateRoot]()[n.$extra].pageNumber,R=i%2===0?"even":"odd",Ae=i===0?"first":"rest";let ve=this.pageArea.children.find(Te=>Te.oddOrEven===R&&Te.pagePosition===Ae);return ve||(ve=this.pageArea.children.find(Te=>Te.oddOrEven==="any"&&Te.pagePosition===Ae),ve)||(ve=this.pageArea.children.find(Te=>Te.oddOrEven==="any"&&Te.pagePosition==="any"),ve)?ve:this.pageArea.children[0]}}class dt extends t.XFAObject{constructor(i){super(f,"para",!0),this.hAlign=(0,c.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.lineHeight=i.lineHeight?(0,c.getMeasurement)(i.lineHeight,"0pt"):"",this.marginLeft=i.marginLeft?(0,c.getMeasurement)(i.marginLeft,"0pt"):"",this.marginRight=i.marginRight?(0,c.getMeasurement)(i.marginRight,"0pt"):"",this.orphans=(0,c.getInteger)({data:i.orphans,defaultValue:0,validate:R=>R>=0}),this.preserve=i.preserve||"",this.radixOffset=i.radixOffset?(0,c.getMeasurement)(i.radixOffset,"0pt"):"",this.spaceAbove=i.spaceAbove?(0,c.getMeasurement)(i.spaceAbove,"0pt"):"",this.spaceBelow=i.spaceBelow?(0,c.getMeasurement)(i.spaceBelow,"0pt"):"",this.tabDefault=i.tabDefault?(0,c.getMeasurement)(this.tabDefault):"",this.tabStops=(i.tabStops||"").trim().split(/\s+/).map((R,Ae)=>Ae%2===1?(0,c.getMeasurement)(R):R),this.textIndent=i.textIndent?(0,c.getMeasurement)(i.textIndent,"0pt"):"",this.use=i.use||"",this.usehref=i.usehref||"",this.vAlign=(0,c.getStringOption)(i.vAlign,["top","bottom","middle"]),this.widows=(0,c.getInteger)({data:i.widows,defaultValue:0,validate:R=>R>=0}),this.hyphenation=null}[n.$toStyle](){const i=(0,e.toStyle)(this,"hAlign");return this.marginLeft!==""&&(i.paddingLeft=(0,e.measureToString)(this.marginLeft)),this.marginRight!==""&&(i.paddingight=(0,e.measureToString)(this.marginRight)),this.spaceAbove!==""&&(i.paddingTop=(0,e.measureToString)(this.spaceAbove)),this.spaceBelow!==""&&(i.paddingBottom=(0,e.measureToString)(this.spaceBelow)),this.textIndent!==""&&(i.textIndent=(0,e.measureToString)(this.textIndent),(0,e.fixTextIndent)(i)),this.lineHeight>0&&(i.lineHeight=(0,e.measureToString)(this.lineHeight)),this.tabDefault!==""&&(i.tabSize=(0,e.measureToString)(this.tabDefault)),this.tabStops.length>0,this.hyphenatation&&Object.assign(i,this.hyphenatation[n.$toStyle]()),i}}class Ve extends t.XFAObject{constructor(i){super(f,"passwordEdit",!0),this.hScrollPolicy=(0,c.getStringOption)(i.hScrollPolicy,["auto","off","on"]),this.id=i.id||"",this.passwordChar=i.passwordChar||"*",this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.margin=null}}class ct extends t.XFAObject{constructor(i){super(f,"pattern",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](i){i=i?i[n.$toStyle]():"#FFFFFF";const R=this.color?this.color[n.$toStyle]():"#000000",Ae=5,ve="repeating-linear-gradient",Te=`${i},${i} ${Ae}px,${R} ${Ae}px,${R} ${2*Ae}px`;switch(this.type){case"crossHatch":return`${ve}(to top,${Te}) ${ve}(to right,${Te})`;case"crossDiagonal":return`${ve}(45deg,${Te}) ${ve}(-45deg,${Te})`;case"diagonalLeft":return`${ve}(45deg,${Te})`;case"diagonalRight":return`${ve}(-45deg,${Te})`;case"horizontal":return`${ve}(to top,${Te})`;case"vertical":return`${ve}(to right,${Te})`}return""}}class He extends t.StringObject{constructor(i){super(f,"picture"),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class ft extends t.XFAObject{constructor(i){super(f,"proto",!0),this.appearanceFilter=new t.XFAObjectArray,this.arc=new t.XFAObjectArray,this.area=new t.XFAObjectArray,this.assist=new t.XFAObjectArray,this.barcode=new t.XFAObjectArray,this.bindItems=new t.XFAObjectArray,this.bookend=new t.XFAObjectArray,this.boolean=new t.XFAObjectArray,this.border=new t.XFAObjectArray,this.break=new t.XFAObjectArray,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.button=new t.XFAObjectArray,this.calculate=new t.XFAObjectArray,this.caption=new t.XFAObjectArray,this.certificate=new t.XFAObjectArray,this.certificates=new t.XFAObjectArray,this.checkButton=new t.XFAObjectArray,this.choiceList=new t.XFAObjectArray,this.color=new t.XFAObjectArray,this.comb=new t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.contentArea=new t.XFAObjectArray,this.corner=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.dateTimeEdit=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.defaultUi=new t.XFAObjectArray,this.desc=new t.XFAObjectArray,this.digestMethod=new t.XFAObjectArray,this.digestMethods=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.edge=new t.XFAObjectArray,this.encoding=new t.XFAObjectArray,this.encodings=new t.XFAObjectArray,this.encrypt=new t.XFAObjectArray,this.encryptData=new t.XFAObjectArray,this.encryption=new t.XFAObjectArray,this.encryptionMethod=new t.XFAObjectArray,this.encryptionMethods=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.execute=new t.XFAObjectArray,this.extras=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.fill=new t.XFAObjectArray,this.filter=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.font=new t.XFAObjectArray,this.format=new t.XFAObjectArray,this.handler=new t.XFAObjectArray,this.hyphenation=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.imageEdit=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.issuers=new t.XFAObjectArray,this.items=new t.XFAObjectArray,this.keep=new t.XFAObjectArray,this.keyUsage=new t.XFAObjectArray,this.line=new t.XFAObjectArray,this.linear=new t.XFAObjectArray,this.lockDocument=new t.XFAObjectArray,this.manifest=new t.XFAObjectArray,this.margin=new t.XFAObjectArray,this.mdp=new t.XFAObjectArray,this.medium=new t.XFAObjectArray,this.message=new t.XFAObjectArray,this.numericEdit=new t.XFAObjectArray,this.occur=new t.XFAObjectArray,this.oid=new t.XFAObjectArray,this.oids=new t.XFAObjectArray,this.overflow=new t.XFAObjectArray,this.pageArea=new t.XFAObjectArray,this.pageSet=new t.XFAObjectArray,this.para=new t.XFAObjectArray,this.passwordEdit=new t.XFAObjectArray,this.pattern=new t.XFAObjectArray,this.picture=new t.XFAObjectArray,this.radial=new t.XFAObjectArray,this.reason=new t.XFAObjectArray,this.reasons=new t.XFAObjectArray,this.rectangle=new t.XFAObjectArray,this.ref=new t.XFAObjectArray,this.script=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray,this.signData=new t.XFAObjectArray,this.signature=new t.XFAObjectArray,this.signing=new t.XFAObjectArray,this.solid=new t.XFAObjectArray,this.speak=new t.XFAObjectArray,this.stipple=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray,this.subjectDN=new t.XFAObjectArray,this.subjectDNs=new t.XFAObjectArray,this.submit=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.textEdit=new t.XFAObjectArray,this.time=new t.XFAObjectArray,this.timeStamp=new t.XFAObjectArray,this.toolTip=new t.XFAObjectArray,this.traversal=new t.XFAObjectArray,this.traverse=new t.XFAObjectArray,this.ui=new t.XFAObjectArray,this.validate=new t.XFAObjectArray,this.value=new t.XFAObjectArray,this.variables=new t.XFAObjectArray}}class bt extends t.XFAObject{constructor(i){super(f,"radial",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["toEdge","toCenter"]),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](i){i=i?i[n.$toStyle]():"#FFFFFF";const R=this.color?this.color[n.$toStyle]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${i},${R}`:`${R},${i}`})`}}class Ut extends t.StringObject{constructor(i){super(f,"reason"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}}class lt extends t.XFAObject{constructor(i){super(f,"reasons",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.reason=new t.XFAObjectArray}}class ht extends t.XFAObject{constructor(i){super(f,"rectangle",!0),this.hand=(0,c.getStringOption)(i.hand,["even","left","right"]),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.corner=new t.XFAObjectArray(4),this.edge=new t.XFAObjectArray(4),this.fill=null}[n.$toHTML](){var xt;const i=this.edge.children.length?this.edge.children[0]:new be({}),R=i[n.$toStyle](),Ae=Object.create(null);((xt=this.fill)==null?void 0:xt.presence)==="visible"?Object.assign(Ae,this.fill[n.$toStyle]()):Ae.fill="transparent",Ae.strokeWidth=(0,e.measureToString)(i.presence==="visible"?i.thickness:0),Ae.stroke=R.color;const Te=(this.corner.children.length?this.corner.children[0]:new V({}))[n.$toStyle](),Ye={name:"svg",children:[{name:"rect",attributes:{xmlns:x,width:"100%",height:"100%",x:0,y:0,rx:Te.radius,ry:Te.radius,style:Ae}}],attributes:{xmlns:x,style:{overflow:"visible"},width:"100%",height:"100%"}},Je=this[n.$getParent]()[n.$getParent]();return W(Je)?c.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Ye]}):(Ye.attributes.style.position="absolute",c.HTMLResult.success(Ye))}}class Ft extends t.StringObject{constructor(i){super(f,"ref"),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||""}}class Dt extends t.StringObject{constructor(i){super(f,"script"),this.binding=i.binding||"",this.contentType=i.contentType||"",this.id=i.id||"",this.name=i.name||"",this.runAt=(0,c.getStringOption)(i.runAt,["client","both","server"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Wt extends t.XFAObject{constructor(i){super(f,"setProperty"),this.connection=i.connection||"",this.ref=i.ref||"",this.target=i.target||""}}b.SetProperty=Wt;class tn extends t.XFAObject{constructor(i){super(f,"signData",!0),this.id=i.id||"",this.operation=(0,c.getStringOption)(i.operation,["sign","clear","verify"]),this.ref=i.ref||"",this.target=i.target||"",this.use=i.use||"",this.usehref=i.usehref||"",this.filter=null,this.manifest=null}}class Cn extends t.XFAObject{constructor(i){super(f,"signature",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["PDF1.3","PDF1.6"]),this.use=i.use||"",this.usehref=i.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class vn extends t.XFAObject{constructor(i){super(f,"signing",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.certificate=new t.XFAObjectArray}}class Fn extends t.XFAObject{constructor(i){super(f,"solid",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null}[n.$toStyle](i){return i?i[n.$toStyle]():"#FFFFFF"}}class In extends t.StringObject{constructor(i){super(f,"speak"),this.disable=(0,c.getInteger)({data:i.disable,defaultValue:0,validate:R=>R===1}),this.id=i.id||"",this.priority=(0,c.getStringOption)(i.priority,["custom","caption","name","toolTip"]),this.rid=i.rid||"",this.use=i.use||"",this.usehref=i.usehref||""}}class On extends t.XFAObject{constructor(i){super(f,"stipple",!0),this.id=i.id||"",this.rate=(0,c.getInteger)({data:i.rate,defaultValue:50,validate:R=>R>=0&&R<=100}),this.use=i.use||"",this.usehref=i.usehref||"",this.color=null,this.extras=null}[n.$toStyle](i){const R=this.rate/100;return Y.Util.makeHexColor(Math.round(i.value.r*(1-R)+this.value.r*R),Math.round(i.value.g*(1-R)+this.value.g*R),Math.round(i.value.b*(1-R)+this.value.b*R))}}class gn extends t.XFAObject{constructor(i){super(f,"subform",!0),this.access=(0,c.getStringOption)(i.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,c.getInteger)({data:i.allowMacro,defaultValue:0,validate:R=>R===1}),this.anchorType=(0,c.getStringOption)(i.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,c.getInteger)({data:i.colSpan,defaultValue:1,validate:R=>R>=1||R===-1}),this.columnWidths=(i.columnWidths||"").trim().split(/\s+/).map(R=>R==="-1"?-1:(0,c.getMeasurement)(R)),this.h=i.h?(0,c.getMeasurement)(i.h):"",this.hAlign=(0,c.getStringOption)(i.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=i.id||"",this.layout=(0,c.getStringOption)(i.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=i.locale||"",this.maxH=(0,c.getMeasurement)(i.maxH,"0pt"),this.maxW=(0,c.getMeasurement)(i.maxW,"0pt"),this.mergeMode=(0,c.getStringOption)(i.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,c.getMeasurement)(i.minH,"0pt"),this.minW=(0,c.getMeasurement)(i.minW,"0pt"),this.name=i.name||"",this.presence=(0,c.getStringOption)(i.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,c.getRelevant)(i.relevant),this.restoreState=(0,c.getStringOption)(i.restoreState,["manual","auto"]),this.scope=(0,c.getStringOption)(i.scope,["name","none"]),this.use=i.use||"",this.usehref=i.usehref||"",this.w=i.w?(0,c.getMeasurement)(i.w):"",this.x=(0,c.getMeasurement)(i.x,"0pt"),this.y=(0,c.getMeasurement)(i.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 t.XFAObjectArray,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.connect=new t.XFAObjectArray,this.draw=new t.XFAObjectArray,this.event=new t.XFAObjectArray,this.exObject=new t.XFAObjectArray,this.exclGroup=new t.XFAObjectArray,this.field=new t.XFAObjectArray,this.proto=new t.XFAObjectArray,this.setProperty=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}[n.$getSubformParent](){const i=this[n.$getParent]();return i instanceof hn?i[n.$getSubformParent]():i}[n.$isBindable](){return!0}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}*[n.$getContainedChildren](){yield*T(this)}[n.$flushHTML](){return(0,D.flushHTML)(this)}[n.$addHTML](i,R){(0,D.addHTML)(this,i,R)}[n.$getAvailableSpace](){return(0,D.getAvailableSpace)(this)}[n.$isSplittable](){var R;const i=this[n.$getSubformParent]();return i[n.$isSplittable]()?this[n.$extra]._isSplittable!==void 0?this[n.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[n.$extra]._isSplittable=!1,!1):this.keep&&this.keep.intact!=="none"?(this[n.$extra]._isSplittable=!1,!1):((R=i.layout)==null?void 0:R.endsWith("-tb"))&&i[n.$extra].numberInLine!==0?!1:(this[n.$extra]._isSplittable=!0,!0):!1}[n.$toHTML](i){var At;if(l(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){const Qe=new q({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});Qe[n.$globalData]=this[n.$globalData],this[n.$appendChild](Qe),this.breakAfter.push(Qe)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){const Qe=new re({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});Qe[n.$globalData]=this[n.$globalData],this[n.$appendChild](Qe),this.breakBefore.push(Qe)}if(this.break.overflowTarget!==""){const Qe=new pt({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});Qe[n.$globalData]=this[n.$globalData],this[n.$appendChild](Qe),this.overflow.push(Qe)}this[n.$removeChild](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return c.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,Y.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const Qe=this.breakBefore.children[0];if(g(Qe))return c.HTMLResult.breakNode(Qe)}if((At=this[n.$extra])!=null&&At.afterBreakAfter)return c.HTMLResult.EMPTY;(0,e.fixDimensions)(this);const R=[],Ae={id:this[n.$uid],class:[]};(0,e.setAccess)(this,Ae.class),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:R,line:null,attributes:Ae,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,i.width),height:Math.min(this.h||1/0,i.height)},width:0,height:0,prevHeight:0,currentWidth:0});const ve=this[n.$getTemplateRoot](),Te=ve[n.$extra].noLayoutFailure,Xe=this[n.$isSplittable]();if(Xe||u(this),!(0,D.checkDimensions)(this,i))return c.HTMLResult.FAILURE;const Ye=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const Qe=this[n.$getSubformParent]().columnWidths;Array.isArray(Qe)&&Qe.length>0&&(this[n.$extra].columnWidths=Qe,this[n.$extra].currentColumn=0)}const Je=(0,e.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),xt=["xfaSubform"],wt=(0,e.layoutClass)(this);if(wt&&xt.push(wt),Ae.style=Je,Ae.class=xt,this.name&&(Ae.xfaName=this.name),this.overflow){const Qe=this.overflow[n.$getExtra]();Qe.addLeader&&(Qe.addLeader=!1,p(this,Qe.leader,i))}this[n.$pushPara]();const Et=this.layout==="lr-tb"||this.layout==="rl-tb",It=Et?a:1;for(;this[n.$extra].attempt<It;this[n.$extra].attempt++){Et&&this[n.$extra].attempt===a-1&&(this[n.$extra].numberInLine=0);const Qe=this[n.$childrenToHTML]({filter:Ye,include:!0});if(Qe.success)break;if(Qe.isBreak())return this[n.$popPara](),Qe;if(Et&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine===0&&!ve[n.$extra].noLayoutFailure){this[n.$extra].attempt=It;break}}if(this[n.$popPara](),Xe||C(this),ve[n.$extra].noLayoutFailure=Te,this[n.$extra].attempt===It)return this.overflow&&(this[n.$getTemplateRoot]()[n.$extra].overflowNode=this.overflow),Xe||delete this[n.$extra],c.HTMLResult.FAILURE;if(this.overflow){const Qe=this.overflow[n.$getExtra]();Qe.addTrailer&&(Qe.addTrailer=!1,p(this,Qe.trailer,i))}let Nt=0,$t=0;this.margin&&(Nt=this.margin.leftInset+this.margin.rightInset,$t=this.margin.topInset+this.margin.bottomInset);const mt=Math.max(this[n.$extra].width+Nt,this.w||0),Ht=Math.max(this[n.$extra].height+$t,this.h||0),Rt=[this.x,this.y,mt,Ht];if(this.w===""&&(Je.width=(0,e.measureToString)(mt)),this.h===""&&(Je.height=(0,e.measureToString)(Ht)),(Je.width==="0px"||Je.height==="0px")&&R.length===0)return c.HTMLResult.EMPTY;const Kt={name:"div",attributes:Ae,children:R};F(this,Ae);const zt=c.HTMLResult.success((0,e.createWrapper)(this,Kt),Rt);if(this.breakAfter.children.length>=1){const Qe=this.breakAfter.children[0];if(g(Qe))return this[n.$extra].afterBreakAfter=zt,c.HTMLResult.breakNode(Qe)}return delete this[n.$extra],zt}}class hn extends t.XFAObject{constructor(i){super(f,"subformSet",!0),this.id=i.id||"",this.name=i.name||"",this.relation=(0,c.getStringOption)(i.relation,["ordered","choice","unordered"]),this.relevant=(0,c.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new t.XFAObjectArray,this.breakBefore=new t.XFAObjectArray,this.subform=new t.XFAObjectArray,this.subformSet=new t.XFAObjectArray}*[n.$getContainedChildren](){yield*T(this)}[n.$getSubformParent](){let i=this[n.$getParent]();for(;!(i instanceof gn);)i=i[n.$getParent]();return i}[n.$isBindable](){return!0}}class Tn extends t.ContentObject{constructor(i){super(f,"subjectDN"),this.delimiter=i.delimiter||",",this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){this[n.$content]=new Map(this[n.$content].split(this.delimiter).map(i=>(i=i.split("=",2),i[0]=i[0].trim(),i)))}}class Mn extends t.XFAObject{constructor(i){super(f,"subjectDNs",!0),this.id=i.id||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||"",this.subjectDN=new t.XFAObjectArray}}class Pn extends t.XFAObject{constructor(i){super(f,"submit",!0),this.embedPDF=(0,c.getInteger)({data:i.embedPDF,defaultValue:0,validate:R=>R===1}),this.format=(0,c.getStringOption)(i.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=i.id||"",this.target=i.target||"",this.textEncoding=(0,c.getKeyword)({data:i.textEncoding?i.textEncoding.toLowerCase():"",defaultValue:"",validate:R=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(R)||R.match(/iso-8859-\d{2}/)}),this.use=i.use||"",this.usehref=i.usehref||"",this.xdpContent=i.xdpContent||"",this.encrypt=null,this.encryptData=new t.XFAObjectArray,this.signData=new t.XFAObjectArray}}class un extends t.XFAObject{constructor(i){super(f,"template",!0),this.baseProfile=(0,c.getStringOption)(i.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new t.XFAObjectArray}[n.$finalize](){this.subform.children.length===0&&(0,Y.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,Y.warn)("XFA - Several subforms in template node: please file a bug."),this[n.$tabIndex]=w}[n.$isSplittable](){return!0}[n.$searchNode](i,R){return i.startsWith("#")?[this[n.$ids].get(i.slice(1))]:(0,I.searchNode)(this,R,i,!0,!0)}*[n.$toPages](){var $t,mt,Ht;if(!this.subform.children.length)return c.HTMLResult.success({name:"div",children:[]});this[n.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const i=this.subform.children[0];i.pageSet[n.$cleanPage]();const R=i.pageSet.pageArea.children,Ae={name:"div",children:[]};let ve=null,Te=null,Xe=null;if(i.breakBefore.children.length>=1?(Te=i.breakBefore.children[0],Xe=Te.target):i.subform.children.length>=1&&i.subform.children[0].breakBefore.children.length>=1?(Te=i.subform.children[0].breakBefore.children[0],Xe=Te.target):($t=i.break)!=null&&$t.beforeTarget?(Te=i.break,Xe=Te.beforeTarget):i.subform.children.length>=1&&((mt=i.subform.children[0].break)==null?void 0:mt.beforeTarget)&&(Te=i.subform.children[0].break,Xe=Te.beforeTarget),Te){const Rt=this[n.$searchNode](Xe,Te[n.$getParent]());Rt instanceof nt&&(ve=Rt,Te[n.$extra]={})}ve||(ve=R[0]),ve[n.$extra]={numberOfUse:1};const Ye=ve[n.$getParent]();Ye[n.$extra]={numberOfUse:1,pageIndex:Ye.pageArea.children.indexOf(ve),pageSetIndex:0};let Je,xt=null,wt=null,Et=!0,It=0,Nt=0;for(;;){if(Et)It=0;else if(Ae.children.pop(),++It===E)return(0,Y.warn)("XFA - Something goes wrong: please file a bug."),Ae;Je=null,this[n.$extra].currentPageArea=ve;const Rt=ve[n.$toHTML]().html;Ae.children.push(Rt),xt&&(this[n.$extra].noLayoutFailure=!0,Rt.children.push(xt[n.$toHTML](ve[n.$extra].space).html),xt=null),wt&&(this[n.$extra].noLayoutFailure=!0,Rt.children.push(wt[n.$toHTML](ve[n.$extra].space).html),wt=null);const Kt=ve.contentArea.children,zt=Rt.children.filter(Qe=>Qe.attributes.class.includes("xfaContentarea"));Et=!1,this[n.$extra].firstUnsplittable=null,this[n.$extra].noLayoutFailure=!1;const At=Qe=>{var Yt;const Jt=i[n.$flushHTML]();Jt&&(Et||(Et=((Yt=Jt.children)==null?void 0:Yt.length)>0),zt[Qe].children.push(Jt))};for(let Qe=Nt,Jt=Kt.length;Qe<Jt;Qe++){const Yt=this[n.$extra].currentContentArea=Kt[Qe],en={width:Yt.w,height:Yt.h};Nt=0,xt&&(zt[Qe].children.push(xt[n.$toHTML](en).html),xt=null),wt&&(zt[Qe].children.push(wt[n.$toHTML](en).html),wt=null);const Zt=i[n.$toHTML](en);if(Zt.success)return Zt.html?(Et||(Et=((Ht=Zt.html.children)==null?void 0:Ht.length)>0),zt[Qe].children.push(Zt.html)):!Et&&Ae.children.length>1&&Ae.children.pop(),Ae;if(Zt.isBreak()){const Gt=Zt.breakNode;if(At(Qe),Gt.targetType==="auto")continue;Gt.leader&&(xt=this[n.$searchNode](Gt.leader,Gt[n.$getParent]()),xt=xt?xt[0]:null),Gt.trailer&&(wt=this[n.$searchNode](Gt.trailer,Gt[n.$getParent]()),wt=wt?wt[0]:null),Gt.targetType==="pageArea"?(Je=Gt[n.$extra].target,Qe=1/0):Gt[n.$extra].target?(Je=Gt[n.$extra].target,Nt=Gt[n.$extra].index+1,Qe=1/0):Qe=Gt[n.$extra].index;continue}if(this[n.$extra].overflowNode){const Gt=this[n.$extra].overflowNode;this[n.$extra].overflowNode=null;const dn=Gt[n.$getExtra](),rn=dn.target;dn.addLeader=dn.leader!==null,dn.addTrailer=dn.trailer!==null,At(Qe);const la=Qe;if(Qe=1/0,rn instanceof nt)Je=rn;else if(rn instanceof ne){const pn=Kt.indexOf(rn);pn!==-1?pn>la?Qe=pn-1:Nt=pn:(Je=rn[n.$getParent](),Nt=Je.contentArea.children.indexOf(rn))}continue}At(Qe)}this[n.$extra].pageNumber+=1,Je&&(Je[n.$isUsable]()?Je[n.$extra].numberOfUse+=1:Je=null),ve=Je||ve[n.$getNextPage](),yield null}}}b.Template=un;class xn extends t.ContentObject{constructor(i){super(f,"text"),this.id=i.id||"",this.maxChars=(0,c.getInteger)({data:i.maxChars,defaultValue:0,validate:R=>R>=0}),this.name=i.name||"",this.rid=i.rid||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$acceptWhitespace](){return!0}[n.$onChild](i){return i[n.$namespaceId]===P.NamespaceIds.xhtml.id?(this[n.$content]=i,!0):((0,Y.warn)(`XFA - Invalid content in Text: ${i[n.$nodeName]}.`),!1)}[n.$onText](i){this[n.$content]instanceof t.XFAObject||super[n.$onText](i)}[n.$finalize](){typeof this[n.$content]=="string"&&(this[n.$content]=this[n.$content].replaceAll(`\r
- `,`
- `))}[n.$getExtra](){return typeof this[n.$content]=="string"?this[n.$content].split(/[\u2029\u2028\n]/).reduce((i,R)=>(R&&i.push(R),i),[]).join(`
- `):this[n.$content][n.$text]()}[n.$toHTML](i){if(typeof this[n.$content]=="string"){const R=r(this[n.$content]).html;return this[n.$content].includes("\u2029")?(R.name="div",R.children=[],this[n.$content].split("\u2029").map(Ae=>Ae.split(/[\u2028\n]/).reduce((ve,Te)=>(ve.push({name:"span",value:Te},{name:"br"}),ve),[])).forEach(Ae=>{R.children.push({name:"p",children:Ae})})):/[\u2028\n]/.test(this[n.$content])&&(R.name="div",R.children=[],this[n.$content].split(/[\u2028\n]/).forEach(Ae=>{R.children.push({name:"span",value:Ae},{name:"br"})})),c.HTMLResult.success(R)}return this[n.$content][n.$toHTML](i)}}b.Text=xn;class mn extends t.XFAObject{constructor(i){super(f,"textEdit",!0),this.allowRichText=(0,c.getInteger)({data:i.allowRichText,defaultValue:0,validate:R=>R===1}),this.hScrollPolicy=(0,c.getStringOption)(i.hScrollPolicy,["auto","off","on"]),this.id=i.id||"",this.multiLine=(0,c.getInteger)({data:i.multiLine,defaultValue:"",validate:R=>R===0||R===1}),this.use=i.use||"",this.usehref=i.usehref||"",this.vScrollPolicy=(0,c.getStringOption)(i.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](i){var Te,Xe;const R=(0,e.toStyle)(this,"border","font","margin");let Ae;const ve=this[n.$getParent]()[n.$getParent]();return this.multiLine===""&&(this.multiLine=ve instanceof me?1:0),this.multiLine===1?Ae={name:"textarea",attributes:{dataId:((Te=ve[n.$data])==null?void 0:Te[n.$uid])||ve[n.$uid],fieldId:ve[n.$uid],class:["xfaTextfield"],style:R,"aria-label":s(ve),"aria-required":!1}}:Ae={name:"input",attributes:{type:"text",dataId:((Xe=ve[n.$data])==null?void 0:Xe[n.$uid])||ve[n.$uid],fieldId:ve[n.$uid],class:["xfaTextfield"],style:R,"aria-label":s(ve),"aria-required":!1}},o(ve)&&(Ae.attributes["aria-required"]=!0,Ae.attributes.required=!0),c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Ae]})}}class En extends t.StringObject{constructor(i){super(f,"time"),this.id=i.id||"",this.name=i.name||"",this.use=i.use||"",this.usehref=i.usehref||""}[n.$finalize](){const i=this[n.$content].trim();this[n.$content]=i?new Date(i):null}[n.$toHTML](i){return r(this[n.$content]?this[n.$content].toString():"")}}class Nn extends t.XFAObject{constructor(i){super(f,"timeStamp"),this.id=i.id||"",this.server=i.server||"",this.type=(0,c.getStringOption)(i.type,["optional","required"]),this.use=i.use||"",this.usehref=i.usehref||""}}class Dn extends t.StringObject{constructor(i){super(f,"toolTip"),this.id=i.id||"",this.rid=i.rid||"",this.use=i.use||"",this.usehref=i.usehref||""}}class Rn extends t.XFAObject{constructor(i){super(f,"traversal",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.traverse=new t.XFAObjectArray}}class Bn extends t.XFAObject{constructor(i){super(f,"traverse",!0),this.id=i.id||"",this.operation=(0,c.getStringOption)(i.operation,["next","back","down","first","left","right","up"]),this.ref=i.ref||"",this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[n.$isTransparent](){return!1}}class fn extends t.XFAObject{constructor(i){super(f,"ui",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.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}[n.$getExtra](){if(this[n.$extra]===void 0){for(const i of Object.getOwnPropertyNames(this)){if(i==="extras"||i==="picture")continue;const R=this[i];if(R instanceof t.XFAObject)return this[n.$extra]=R,R}this[n.$extra]=null}return this[n.$extra]}[n.$toHTML](i){const R=this[n.$getExtra]();return R?R[n.$toHTML](i):c.HTMLResult.EMPTY}}class Ln extends t.XFAObject{constructor(i){super(f,"validate",!0),this.formatTest=(0,c.getStringOption)(i.formatTest,["warning","disabled","error"]),this.id=i.id||"",this.nullTest=(0,c.getStringOption)(i.nullTest,["disabled","error","warning"]),this.scriptTest=(0,c.getStringOption)(i.scriptTest,["error","disabled","warning"]),this.use=i.use||"",this.usehref=i.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class an extends t.XFAObject{constructor(i){super(f,"value",!0),this.id=i.id||"",this.override=(0,c.getInteger)({data:i.override,defaultValue:0,validate:R=>R===1}),this.relevant=(0,c.getRelevant)(i.relevant),this.use=i.use||"",this.usehref=i.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}[n.$setValue](i){var ve;const R=this[n.$getParent]();if(R instanceof Pe&&(ve=R.ui)!=null&&ve.imageEdit){this.image||(this.image=new Ge({}),this[n.$appendChild](this.image)),this.image[n.$content]=i[n.$content];return}const Ae=i[n.$nodeName];if(this[Ae]!==null){this[Ae][n.$content]=i[n.$content];return}for(const Te of Object.getOwnPropertyNames(this)){const Xe=this[Te];Xe instanceof t.XFAObject&&(this[Te]=null,this[n.$removeChild](Xe))}this[i[n.$nodeName]]=i,this[n.$appendChild](i)}[n.$text](){if(this.exData)return typeof this.exData[n.$content]=="string"?this.exData[n.$content].trim():this.exData[n.$content][n.$text]().trim();for(const i of Object.getOwnPropertyNames(this)){if(i==="image")continue;const R=this[i];if(R instanceof t.XFAObject)return(R[n.$content]||"").toString().trim()}return null}[n.$toHTML](i){for(const R of Object.getOwnPropertyNames(this)){const Ae=this[R];if(Ae instanceof t.XFAObject)return Ae[n.$toHTML](i)}return c.HTMLResult.EMPTY}}b.Value=an;class $n extends t.XFAObject{constructor(i){super(f,"variables",!0),this.id=i.id||"",this.use=i.use||"",this.usehref=i.usehref||"",this.boolean=new t.XFAObjectArray,this.date=new t.XFAObjectArray,this.dateTime=new t.XFAObjectArray,this.decimal=new t.XFAObjectArray,this.exData=new t.XFAObjectArray,this.float=new t.XFAObjectArray,this.image=new t.XFAObjectArray,this.integer=new t.XFAObjectArray,this.manifest=new t.XFAObjectArray,this.script=new t.XFAObjectArray,this.text=new t.XFAObjectArray,this.time=new t.XFAObjectArray}[n.$isTransparent](){return!0}}class sn{static[P.$buildXFAObject](i,R){if(sn.hasOwnProperty(i)){const Ae=sn[i](R);return Ae[n.$setSetAttributes](R),Ae}}static appearanceFilter(i){return new X(i)}static arc(i){return new $(i)}static area(i){return new y(i)}static assist(i){return new v(i)}static barcode(i){return new m(i)}static bind(i){return new h(i)}static bindItems(i){return new A(i)}static bookend(i){return new j(i)}static boolean(i){return new H(i)}static border(i){return new J(i)}static break(i){return new oe(i)}static breakAfter(i){return new q(i)}static breakBefore(i){return new re(i)}static button(i){return new Z(i)}static calculate(i){return new K(i)}static caption(i){return new S(i)}static certificate(i){return new k(i)}static certificates(i){return new _(i)}static checkButton(i){return new G(i)}static choiceList(i){return new Q(i)}static color(i){return new ie(i)}static comb(i){return new ae(i)}static connect(i){return new U(i)}static contentArea(i){return new ne(i)}static corner(i){return new V(i)}static date(i){return new L(i)}static dateTime(i){return new te(i)}static dateTimeEdit(i){return new se(i)}static decimal(i){return new le(i)}static defaultUi(i){return new ue(i)}static desc(i){return new fe(i)}static digestMethod(i){return new ge(i)}static digestMethods(i){return new xe(i)}static draw(i){return new me(i)}static edge(i){return new be(i)}static encoding(i){return new ye(i)}static encodings(i){return new Se(i)}static encrypt(i){return new pe(i)}static encryptData(i){return new he(i)}static encryption(i){return new de(i)}static encryptionMethod(i){return new Ce(i)}static encryptionMethods(i){return new we(i)}static event(i){return new Le(i)}static exData(i){return new Be(i)}static exObject(i){return new at(i)}static exclGroup(i){return new Oe(i)}static execute(i){return new Ze(i)}static extras(i){return new Ke(i)}static field(i){return new Pe(i)}static fill(i){return new qe(i)}static filter(i){return new gt(i)}static float(i){return new De(i)}static font(i){return new et(i)}static format(i){return new rt(i)}static handler(i){return new St(i)}static hyphenation(i){return new Pt(i)}static image(i){return new Ge(i)}static imageEdit(i){return new We(i)}static integer(i){return new _e(i)}static issuers(i){return new yt(i)}static items(i){return new Tt(i)}static keep(i){return new Ct(i)}static keyUsage(i){return new ut(i)}static line(i){return new Bt(i)}static linear(i){return new Xt(i)}static lockDocument(i){return new Ie(i)}static manifest(i){return new Fe(i)}static margin(i){return new Me(i)}static mdp(i){return new Ne(i)}static medium(i){return new je(i)}static message(i){return new tt(i)}static numericEdit(i){return new $e(i)}static occur(i){return new Ee(i)}static oid(i){return new ze(i)}static oids(i){return new ot(i)}static overflow(i){return new pt(i)}static pageArea(i){return new nt(i)}static pageSet(i){return new it(i)}static para(i){return new dt(i)}static passwordEdit(i){return new Ve(i)}static pattern(i){return new ct(i)}static picture(i){return new He(i)}static proto(i){return new ft(i)}static radial(i){return new bt(i)}static reason(i){return new Ut(i)}static reasons(i){return new lt(i)}static rectangle(i){return new ht(i)}static ref(i){return new Ft(i)}static script(i){return new Dt(i)}static setProperty(i){return new Wt(i)}static signData(i){return new tn(i)}static signature(i){return new Cn(i)}static signing(i){return new vn(i)}static solid(i){return new Fn(i)}static speak(i){return new In(i)}static stipple(i){return new On(i)}static subform(i){return new gn(i)}static subformSet(i){return new hn(i)}static subjectDN(i){return new Tn(i)}static subjectDNs(i){return new Mn(i)}static submit(i){return new Pn(i)}static template(i){return new un(i)}static text(i){return new xn(i)}static textEdit(i){return new mn(i)}static time(i){return new En(i)}static timeStamp(i){return new Nn(i)}static toolTip(i){return new Dn(i)}static traversal(i){return new Rn(i)}static traverse(i){return new Bn(i)}static ui(i){return new fn(i)}static validate(i){return new Ln(i)}static value(i){return new an(i)}static variables(i){return new $n(i)}}b.TemplateNamespace=sn},(Re,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.NamespaceIds=b.$buildXFAObject=void 0;const ce=Symbol();b.$buildXFAObject=ce;const n={config:{id:0,check:P=>P.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:P=>P==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:P=>P==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:P=>P==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:P=>P.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:P=>P.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:P=>P==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:P=>P==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:P=>P==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:P=>P==="http://ns.adobe.com/xmpmeta/"}};b.NamespaceIds=n},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.addHTML=t,b.checkDimensions=ee,b.flushHTML=e,b.getAvailableSpace=c;var n=ce(78),P=ce(83);function D(N,I){return{name:"div",attributes:{class:[N.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:I}}function e(N){if(!N[n.$extra])return null;const f={name:"div",attributes:N[n.$extra].attributes,children:N[n.$extra].children};if(N[n.$extra].failingNode){const x=N[n.$extra].failingNode[n.$flushHTML]();x&&(N.layout.endsWith("-tb")?f.children.push(D(N,[x])):f.children.push(x))}return f.children.length===0?null:f}function t(N,I,f){const x=N[n.$extra],a=x.availableSpace,[E,w,O,M]=f;switch(N.layout){case"position":{x.width=Math.max(x.width,E+O),x.height=Math.max(x.height,w+M),x.children.push(I);break}case"lr-tb":case"rl-tb":(!x.line||x.attempt===1)&&(x.line=D(N,[]),x.children.push(x.line),x.numberInLine=0),x.numberInLine+=1,x.line.children.push(I),x.attempt===0?(x.currentWidth+=O,x.height=Math.max(x.height,x.prevHeight+M)):(x.currentWidth=O,x.prevHeight=x.height,x.height+=M,x.attempt=0),x.width=Math.max(x.width,x.currentWidth);break;case"rl-row":case"row":{x.children.push(I),x.width+=O,x.height=Math.max(x.height,M);const B=(0,P.measureToString)(x.height);for(const z of x.children)z.attributes.style.height=B;break}case"table":{x.width=Math.min(a.width,Math.max(x.width,O)),x.height+=M,x.children.push(I);break}case"tb":{x.width=Math.min(a.width,Math.max(x.width,O)),x.height+=M,x.children.push(I);break}}}function c(N){const I=N[n.$extra].availableSpace,f=N.margin?N.margin.topInset+N.margin.bottomInset:0,x=N.margin?N.margin.leftInset+N.margin.rightInset:0;switch(N.layout){case"lr-tb":case"rl-tb":return N[n.$extra].attempt===0?{width:I.width-x-N[n.$extra].currentWidth,height:I.height-f-N[n.$extra].prevHeight}:{width:I.width-x,height:I.height-f-N[n.$extra].height};case"rl-row":case"row":return{width:N[n.$extra].columnWidths.slice(N[n.$extra].currentColumn).reduce((E,w)=>E+w),height:I.height-x};case"table":case"tb":return{width:I.width-x,height:I.height-f-N[n.$extra].height};case"position":default:return I}}function Y(N){let I=N.w===""?NaN:N.w,f=N.h===""?NaN:N.h,[x,a]=[0,0];switch(N.anchorType||""){case"bottomCenter":[x,a]=[I/2,f];break;case"bottomLeft":[x,a]=[0,f];break;case"bottomRight":[x,a]=[I,f];break;case"middleCenter":[x,a]=[I/2,f/2];break;case"middleLeft":[x,a]=[0,f/2];break;case"middleRight":[x,a]=[I,f/2];break;case"topCenter":[x,a]=[I/2,0];break;case"topRight":[x,a]=[I,0];break}let E,w;switch(N.rotate||0){case 0:[E,w]=[-x,-a];break;case 90:[E,w]=[-a,x],[I,f]=[f,-I];break;case 180:[E,w]=[x,a],[I,f]=[-I,-f];break;case 270:[E,w]=[a,-x],[I,f]=[-f,I];break}return[N.x+E+Math.min(0,I),N.y+w+Math.min(0,f),Math.abs(I),Math.abs(f)]}function ee(N,I){var M;if(N[n.$getTemplateRoot]()[n.$extra].firstUnsplittable===null||N.w===0||N.h===0)return!0;const f=2,x=N[n.$getSubformParent](),a=((M=x[n.$extra])==null?void 0:M.attempt)||0,[,E,w,O]=Y(N);switch(x.layout){case"lr-tb":case"rl-tb":return a===0?N[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?N.w!==""?Math.round(w-I.width)<=f:I.width>f:N.h!==""&&Math.round(O-I.height)>f?!1:N.w!==""?Math.round(w-I.width)<=f?!0:x[n.$extra].numberInLine===0?I.height>f:!1:I.width>f:N[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:N.h!==""&&Math.round(O-I.height)>f?!1:N.w===""||Math.round(w-I.width)<=f?I.height>f:x[n.$isThereMoreWidth]()?!1:I.height>f;case"table":case"tb":return N[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:N.h!==""&&!N[n.$isSplittable]()?Math.round(O-I.height)<=f:N.w===""||Math.round(w-I.width)<=f?I.height>f:x[n.$isThereMoreWidth]()?!1:I.height>f;case"position":if(N[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||N.h===""||Math.round(O+E-I.height)<=f)return!0;const B=N[n.$getTemplateRoot]()[n.$extra].currentContentArea;return O+E>B.h;case"rl-row":case"row":return N[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:N.h!==""?Math.round(O-I.height)<=f:!0;default:return!0}}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.computeBbox=x,b.createWrapper=O,b.fixDimensions=a,b.fixTextIndent=M,b.fixURL=o,b.isPrintOnly=z,b.layoutClass=E,b.layoutNode=f,b.measureToString=Y,b.setAccess=B,b.setFontFamily=T,b.setMinMaxDimensions=N,b.setPara=d,b.toStyle=w;var n=ce(78),P=ce(2),D=ce(84),e=ce(85),t=ce(86),c=ce(87);function Y(l){return typeof l=="string"?"0px":Number.isInteger(l)?`${l}px`:`${l.toFixed(2)}px`}const ee={anchorType(l,F){const s=l[n.$getSubformParent]();if(!(!s||s.layout&&s.layout!=="position"))switch("transform"in F||(F.transform=""),l.anchorType){case"bottomCenter":F.transform+="translate(-50%, -100%)";break;case"bottomLeft":F.transform+="translate(0,-100%)";break;case"bottomRight":F.transform+="translate(-100%,-100%)";break;case"middleCenter":F.transform+="translate(-50%,-50%)";break;case"middleLeft":F.transform+="translate(0,-50%)";break;case"middleRight":F.transform+="translate(-100%,-50%)";break;case"topCenter":F.transform+="translate(-50%,0)";break;case"topRight":F.transform+="translate(-100%,0)";break}},dimensions(l,F){var C;const s=l[n.$getSubformParent]();let r=l.w;const u=l.h;if((C=s.layout)!=null&&C.includes("row")){const g=s[n.$extra],p=l.colSpan;let X;p===-1?(X=g.columnWidths.slice(g.currentColumn).reduce(($,y)=>$+y,0),g.currentColumn=0):(X=g.columnWidths.slice(g.currentColumn,g.currentColumn+p).reduce(($,y)=>$+y,0),g.currentColumn=(g.currentColumn+l.colSpan)%g.columnWidths.length),isNaN(X)||(r=l.w=X)}F.width=r!==""?Y(r):"auto",F.height=u!==""?Y(u):"auto"},position(l,F){const s=l[n.$getSubformParent]();(s==null?void 0:s.layout)&&s.layout!=="position"||(F.position="absolute",F.left=Y(l.x),F.top=Y(l.y))},rotate(l,F){l.rotate&&("transform"in F||(F.transform=""),F.transform+=`rotate(-${l.rotate}deg)`,F.transformOrigin="top left")},presence(l,F){switch(l.presence){case"invisible":F.visibility="hidden";break;case"hidden":case"inactive":F.display="none";break}},hAlign(l,F){if(l[n.$nodeName]==="para")switch(l.hAlign){case"justifyAll":F.textAlign="justify-all";break;case"radix":F.textAlign="left";break;default:F.textAlign=l.hAlign}else switch(l.hAlign){case"left":F.alignSelf="start";break;case"center":F.alignSelf="center";break;case"right":F.alignSelf="end";break}},margin(l,F){l.margin&&(F.margin=l.margin[n.$toStyle]().margin)}};function N(l,F){l[n.$getSubformParent]().layout==="position"&&(l.minW>0&&(F.minWidth=Y(l.minW)),l.maxW>0&&(F.maxWidth=Y(l.maxW)),l.minH>0&&(F.minHeight=Y(l.minH)),l.maxH>0&&(F.maxHeight=Y(l.maxH)))}function I(l,F,s,r,u,C){const g=new t.TextMeasure(F,s,r,u);return typeof l=="string"?g.addString(l):l[n.$pushGlyphs](g),g.compute(C)}function f(l,F){let s=null,r=null,u=!1;if((!l.w||!l.h)&&l.value){let C=0,g=0;l.margin&&(C=l.margin.leftInset+l.margin.rightInset,g=l.margin.topInset+l.margin.bottomInset);let p=null,X=null;l.para&&(X=Object.create(null),p=l.para.lineHeight===""?null:l.para.lineHeight,X.top=l.para.spaceAbove===""?0:l.para.spaceAbove,X.bottom=l.para.spaceBelow===""?0:l.para.spaceBelow,X.left=l.para.marginLeft===""?0:l.para.marginLeft,X.right=l.para.marginRight===""?0:l.para.marginRight);let $=l.font;if(!$){const m=l[n.$getTemplateRoot]();let h=l[n.$getParent]();for(;h&&h!==m;){if(h.font){$=h.font;break}h=h[n.$getParent]()}}const y=(l.w||F.width)-C,v=l[n.$globalData].fontFinder;if(l.value.exData&&l.value.exData[n.$content]&&l.value.exData.contentType==="text/html"){const m=I(l.value.exData[n.$content],$,X,p,v,y);r=m.width,s=m.height,u=m.isBroken}else{const m=l.value[n.$text]();if(m){const h=I(m,$,X,p,v,y);r=h.width,s=h.height,u=h.isBroken}}r!==null&&!l.w&&(r+=C),s!==null&&!l.h&&(s+=g)}return{w:r,h:s,isBroken:u}}function x(l,F,s){let r;if(l.w!==""&&l.h!=="")r=[l.x,l.y,l.w,l.h];else{if(!s)return null;let u=l.w;if(u===""){if(l.maxW===0){const g=l[n.$getSubformParent]();u=g.layout==="position"&&g.w!==""?0:l.minW}else u=Math.min(l.maxW,s.width);F.attributes.style.width=Y(u)}let C=l.h;if(C===""){if(l.maxH===0){const g=l[n.$getSubformParent]();C=g.layout==="position"&&g.h!==""?0:l.minH}else C=Math.min(l.maxH,s.height);F.attributes.style.height=Y(C)}r=[l.x,l.y,u,C]}return r}function a(l){var s;const F=l[n.$getSubformParent]();if((s=F.layout)!=null&&s.includes("row")){const r=F[n.$extra],u=l.colSpan;let C;u===-1?C=r.columnWidths.slice(r.currentColumn).reduce((g,p)=>g+p,0):C=r.columnWidths.slice(r.currentColumn,r.currentColumn+u).reduce((g,p)=>g+p,0),isNaN(C)||(l.w=C)}F.layout&&F.layout!=="position"&&(l.x=l.y=0),l.layout==="table"&&l.w===""&&Array.isArray(l.columnWidths)&&(l.w=l.columnWidths.reduce((r,u)=>r+u,0))}function E(l){switch(l.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 w(l,...F){const s=Object.create(null);for(const r of F){const u=l[r];if(u!==null){if(ee.hasOwnProperty(r)){ee[r](l,s);continue}if(u instanceof c.XFAObject){const C=u[n.$toStyle]();C?Object.assign(s,C):(0,P.warn)(`(DEBUG) - XFA - style for ${r} not implemented yet`)}}}return s}function O(l,F){const{attributes:s}=F,{style:r}=s,u={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(s.class.push("xfaWrapped"),l.border){const{widths:C,insets:g}=l.border[n.$extra];let p,X,$=g[0],y=g[3];const v=g[0]+g[2],m=g[1]+g[3];switch(l.border.hand){case"even":$-=C[0]/2,y-=C[3]/2,p=`calc(100% + ${(C[1]+C[3])/2-m}px)`,X=`calc(100% + ${(C[0]+C[2])/2-v}px)`;break;case"left":$-=C[0],y-=C[3],p=`calc(100% + ${C[1]+C[3]-m}px)`,X=`calc(100% + ${C[0]+C[2]-v}px)`;break;case"right":p=m?`calc(100% - ${m}px)`:"100%",X=v?`calc(100% - ${v}px)`:"100%";break}const h=["xfaBorder"];z(l.border)&&h.push("xfaPrintOnly");const A={name:"div",attributes:{class:h,style:{top:`${$}px`,left:`${y}px`,width:p,height:X}},children:[]};for(const j of["border","borderWidth","borderColor","borderRadius","borderStyle"])r[j]!==void 0&&(A.attributes.style[j]=r[j],delete r[j]);u.children.push(A,F)}else u.children.push(F);for(const C of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])r[C]!==void 0&&(u.attributes.style[C]=r[C],delete r[C]);return u.attributes.style.position=r.position==="absolute"?"absolute":"relative",delete r.position,r.alignSelf&&(u.attributes.style.alignSelf=r.alignSelf,delete r.alignSelf),u}function M(l){const F=(0,D.getMeasurement)(l.textIndent,"0px");if(F>=0)return;const r="padding"+((l.textAlign==="right"?"right":"left")==="left"?"Left":"Right"),u=(0,D.getMeasurement)(l[r],"0px");l[r]=`${u-F}px`}function B(l,F){switch(l.access){case"nonInteractive":F.push("xfaNonInteractive");break;case"readOnly":F.push("xfaReadOnly");break;case"protected":F.push("xfaDisabled");break}}function z(l){return l.relevant.length>0&&!l.relevant[0].excluded&&l.relevant[0].viewname==="print"}function W(l){const F=l[n.$getTemplateRoot]()[n.$extra].paraStack;return F.length?F.at(-1):null}function d(l,F,s){var r;if((r=s.attributes.class)!=null&&r.includes("xfaRich")){F&&(l.h===""&&(F.height="auto"),l.w===""&&(F.width="auto"));const u=W(l);if(u){const C=s.attributes.style;switch(C.display="flex",C.flexDirection="column",u.vAlign){case"top":C.justifyContent="start";break;case"bottom":C.justifyContent="end";break;case"middle":C.justifyContent="center";break}const g=u[n.$toStyle]();for(const[p,X]of Object.entries(g))p in C||(C[p]=X)}}}function T(l,F,s,r){if(!s){delete r.fontFamily;return}const u=(0,D.stripQuotes)(l.typeface);r.fontFamily=`"${u}"`;const C=s.find(u);if(C){const{fontFamily:g}=C.regular.cssFontInfo;g!==u&&(r.fontFamily=`"${g}"`);const p=W(F);if(p&&p.lineHeight!==""||r.lineHeight)return;const X=(0,e.selectFont)(l,C);X&&(r.lineHeight=Math.max(1.2,X.lineHeight))}}function o(l){const F=(0,P.createValidAbsoluteUrl)(l,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return F?F.href:null}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.HTMLResult=void 0,b.getBBox=a,b.getColor=x,b.getFloat=c,b.getInteger=t,b.getKeyword=Y,b.getMeasurement=N,b.getRatio=I,b.getRelevant=f,b.getStringOption=ee,b.stripQuotes=e;var n=ce(2);const P={pt:w=>w,cm:w=>w/2.54*72,mm:w=>w/(10*2.54)*72,in:w=>w*72,px:w=>w},D=/([+-]?\d+\.?\d*)(.*)/;function e(w){return w.startsWith("'")||w.startsWith('"')?w.slice(1,-1):w}function t({data:w,defaultValue:O,validate:M}){if(!w)return O;w=w.trim();const B=parseInt(w,10);return!isNaN(B)&&M(B)?B:O}function c({data:w,defaultValue:O,validate:M}){if(!w)return O;w=w.trim();const B=parseFloat(w);return!isNaN(B)&&M(B)?B:O}function Y({data:w,defaultValue:O,validate:M}){return w?(w=w.trim(),M(w)?w:O):O}function ee(w,O){return Y({data:w,defaultValue:O[0],validate:M=>O.includes(M)})}function N(w,O="0"){if(O||(O="0"),!w)return N(O);const M=w.trim().match(D);if(!M)return N(O);const[,B,z]=M,W=parseFloat(B);if(isNaN(W))return N(O);if(W===0)return 0;const d=P[z];return d?d(W):W}function I(w){if(!w)return{num:1,den:1};const O=w.trim().split(/\s*:\s*/).map(z=>parseFloat(z)).filter(z=>!isNaN(z));if(O.length===1&&O.push(1),O.length===0)return{num:1,den:1};const[M,B]=O;return{num:M,den:B}}function f(w){return w?w.trim().split(/\s+/).map(O=>({excluded:O[0]==="-",viewname:O.substring(1)})):[]}function x(w,O=[0,0,0]){let[M,B,z]=O;if(!w)return{r:M,g:B,b:z};const W=w.trim().split(/\s*,\s*/).map(d=>Math.min(Math.max(0,parseInt(d.trim(),10)),255)).map(d=>isNaN(d)?0:d);return W.length<3?{r:M,g:B,b:z}:([M,B,z]=W,{r:M,g:B,b:z})}function a(w){if(!w)return{x:-1,y:-1,width:-1,height:-1};const M=w.trim().split(/\s*,\s*/).map(T=>N(T,"-1"));if(M.length<4||M[2]<0||M[3]<0)return{x:-1,y:-1,width:-1,height:-1};const[B,z,W,d]=M;return{x:B,y:z,width:W,height:d}}class E{static get FAILURE(){return(0,n.shadow)(this,"FAILURE",new E(!1,null,null,null))}static get EMPTY(){return(0,n.shadow)(this,"EMPTY",new E(!0,null,null,null))}constructor(O,M,B,z){this.success=O,this.html=M,this.bbox=B,this.breakNode=z}isBreak(){return!!this.breakNode}static breakNode(O){return new E(!1,null,null,O)}static success(O,M=null){return new E(!0,O,M,null)}}b.HTMLResult=E},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.FontFinder=void 0,b.getMetrics=c,b.selectFont=t;var n=ce(78),P=ce(84),D=ce(2);class e{constructor(ee){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(ee)}add(ee,N=null){for(const f of ee)this.addPdfFont(f);for(const f of this.fonts.values())f.regular||(f.regular=f.italic||f.bold||f.bolditalic);if(!N||N.size===0)return;const I=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const f of N)this.fonts.set(f,I)}addPdfFont(ee){var E,w,O;const N=ee.cssFontInfo,I=N.fontFamily;let f=this.fonts.get(I);f||(f=Object.create(null),this.fonts.set(I,f),this.defaultFont||(this.defaultFont=f));let x="";const a=parseFloat(N.fontWeight);parseFloat(N.italicAngle)!==0?x=a>=700?"bolditalic":"italic":a>=700&&(x="bold"),x||((ee.name.includes("Bold")||((E=ee.psName)==null?void 0:E.includes("Bold")))&&(x="bold"),(ee.name.includes("Italic")||ee.name.endsWith("It")||((w=ee.psName)==null?void 0:w.includes("Italic"))||((O=ee.psName)==null?void 0:O.endsWith("It")))&&(x+="italic")),x||(x="regular"),f[x]=ee}getDefault(){return this.defaultFont}find(ee,N=!0){var E,w;let I=this.fonts.get(ee)||this.cache.get(ee);if(I)return I;const f=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let x=ee.replaceAll(f,"");if(I=this.fonts.get(x),I)return this.cache.set(ee,I),I;x=x.toLowerCase();const a=[];for(const[O,M]of this.fonts.entries())O.replaceAll(f,"").toLowerCase().startsWith(x)&&a.push(M);if(a.length===0)for(const[,O]of this.fonts.entries())(E=O.regular.name)!=null&&E.replaceAll(f,"").toLowerCase().startsWith(x)&&a.push(O);if(a.length===0){x=x.replaceAll(/psmt|mt/gi,"");for(const[O,M]of this.fonts.entries())O.replaceAll(f,"").toLowerCase().startsWith(x)&&a.push(M)}if(a.length===0)for(const O of this.fonts.values())(w=O.regular.name)!=null&&w.replaceAll(f,"").toLowerCase().startsWith(x)&&a.push(O);return a.length>=1?(a.length!==1&&N&&(0,D.warn)(`XFA - Too many choices to guess the correct font: ${ee}`),this.cache.set(ee,a[0]),a[0]):(N&&!this.warned.has(ee)&&(this.warned.add(ee),(0,D.warn)(`XFA - Cannot find the font: ${ee}`)),null)}}b.FontFinder=e;function t(Y,ee){return Y.posture==="italic"?Y.weight==="bold"?ee.bolditalic:ee.italic:Y.weight==="bold"?ee.bold:ee.regular}function c(Y,ee=!1){let N=null;if(Y){const a=(0,P.stripQuotes)(Y.typeface),E=Y[n.$globalData].fontFinder.find(a);N=t(Y,E)}if(!N)return{lineHeight:12,lineGap:2,lineNoGap:10};const I=Y.size||10,f=N.lineHeight?Math.max(ee?0:1.2,N.lineHeight):1.2,x=N.lineGap===void 0?.2:N.lineGap;return{lineHeight:f*I,lineGap:x*I,lineNoGap:Math.max(1,f-x)*I}}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.TextMeasure=void 0;var n=ce(85);const P=1.02;class D{constructor(Y,ee,N,I){if(this.lineHeight=N,this.paraMargin=ee||{top:0,bottom:0,left:0,right:0},!Y){[this.pdfFont,this.xfaFont]=this.defaultFont(I);return}this.xfaFont={typeface:Y.typeface,posture:Y.posture,weight:Y.weight,size:Y.size,letterSpacing:Y.letterSpacing};const f=I.find(Y.typeface);if(!f){[this.pdfFont,this.xfaFont]=this.defaultFont(I);return}this.pdfFont=(0,n.selectFont)(Y,f),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(I))}defaultFont(Y){const ee=Y.find("Helvetica",!1)||Y.find("Myriad Pro",!1)||Y.find("Arial",!1)||Y.getDefault();if(ee!=null&&ee.regular){const I=ee.regular,x={typeface:I.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[I,x]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class e{constructor(Y,ee,N,I){this.fontFinder=I,this.stack=[new D(Y,ee,N,I)]}pushData(Y,ee,N){const I=this.stack.at(-1);for(const x of["typeface","posture","weight","size","letterSpacing"])Y[x]||(Y[x]=I.xfaFont[x]);for(const x of["top","bottom","left","right"])isNaN(ee[x])&&(ee[x]=I.paraMargin[x]);const f=new D(Y,ee,N||I.lineHeight,this.fontFinder);f.pdfFont||(f.pdfFont=I.pdfFont),this.stack.push(f)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class t{constructor(Y,ee,N,I){this.glyphs=[],this.fontSelector=new e(Y,ee,N,I),this.extraHeight=0}pushData(Y,ee,N){this.fontSelector.pushData(Y,ee,N)}popFont(Y){return this.fontSelector.popFont()}addPara(){const Y=this.fontSelector.topFont();this.extraHeight+=Y.paraMargin.top+Y.paraMargin.bottom}addString(Y){if(!Y)return;const ee=this.fontSelector.topFont(),N=ee.xfaFont.size;if(ee.pdfFont){const I=ee.xfaFont.letterSpacing,f=ee.pdfFont,x=f.lineHeight||1.2,a=ee.lineHeight||Math.max(1.2,x)*N,E=f.lineGap===void 0?.2:f.lineGap,w=x-E,O=Math.max(1,w)*N,M=N/1e3,B=f.defaultWidth||f.charsToGlyphs(" ")[0].width;for(const z of Y.split(/[\u2029\n]/)){const W=f.encodeString(z).join(""),d=f.charsToGlyphs(W);for(const T of d){const o=T.width||B;this.glyphs.push([o*M+I,a,O,T.unicode,!1])}this.glyphs.push([0,0,0,`
- `,!0])}this.glyphs.pop();return}for(const I of Y.split(/[\u2029\n]/)){for(const f of I.split(""))this.glyphs.push([N,1.2*N,N,f,!1]);this.glyphs.push([0,0,0,`
- `,!0])}this.glyphs.pop()}compute(Y){let ee=-1,N=0,I=0,f=0,x=0,a=0,E=!1,w=!0;for(let O=0,M=this.glyphs.length;O<M;O++){const[B,z,W,d,T]=this.glyphs[O],o=d===" ",l=w?W:z;if(T){I=Math.max(I,x),x=0,f+=a,a=l,ee=-1,N=0,w=!1;continue}if(o){x+B>Y?(I=Math.max(I,x),x=0,f+=a,a=l,ee=-1,N=0,E=!0,w=!1):(a=Math.max(l,a),N=x,x+=B,ee=O);continue}if(x+B>Y){f+=a,a=l,ee!==-1?(O=ee,I=Math.max(I,N),x=0,ee=-1,N=0):(I=Math.max(I,x),x=B),E=!0,w=!1;continue}x+=B,a=Math.max(l,a)}return I=Math.max(I,x),f+=a+this.extraHeight,{width:P*I,height:f,isBroken:E}}}b.TextMeasure=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.XmlObject=b.XFAObjectArray=b.XFAObject=b.XFAAttribute=b.StringObject=b.OptionObject=b.Option10=b.Option01=b.IntegerObject=b.ContentObject=void 0;var n=ce(78),P=ce(84),D=ce(2),e=ce(3),t=ce(81),c=ce(88);const Y=Symbol(),ee=Symbol(),N=Symbol(),I=Symbol("_children"),f=Symbol(),x=Symbol(),a=Symbol(),E=Symbol(),w=Symbol(),O=Symbol(),M=Symbol(),B=Symbol(),z=Symbol(),W=Symbol("parent"),d=Symbol(),T=Symbol(),o=Symbol();let l=0;const F=t.NamespaceIds.datasets.id;class s{constructor(h,A,j=!1){this[n.$namespaceId]=h,this[n.$nodeName]=A,this[M]=j,this[W]=null,this[I]=[],this[n.$uid]=`${A}${l++}`,this[n.$globalData]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(h){let A=this,j=null;for(const{name:H,index:J}of h){for(let oe=0,q=isFinite(J)?J:0;oe<=q;oe++){const re=A[n.$namespaceId]===F?-1:A[n.$namespaceId];j=new C(re,H),A[n.$appendChild](j)}A=j}return j}[n.$onChild](h){if(!this[M]||!this[n.$onChildCheck](h))return!1;const A=h[n.$nodeName],j=this[A];if(j instanceof r){if(j.push(h))return this[n.$appendChild](h),!0}else return j!==null&&this[n.$removeChild](j),this[A]=h,this[n.$appendChild](h),!0;let H="";return this.id?H=` (id: ${this.id})`:this.name&&(H=` (name: ${this.name} ${this.h.value})`),(0,D.warn)(`XFA - node "${this[n.$nodeName]}"${H} has already enough "${A}"!`),!1}[n.$onChildCheck](h){return this.hasOwnProperty(h[n.$nodeName])&&h[n.$namespaceId]===this[n.$namespaceId]}[n.$isNsAgnostic](){return!1}[n.$acceptWhitespace](){return!1}[n.$isCDATAXml](){return!1}[n.$isBindable](){return!1}[n.$popPara](){this.para&&this[n.$getTemplateRoot]()[n.$extra].paraStack.pop()}[n.$pushPara](){this[n.$getTemplateRoot]()[n.$extra].paraStack.push(this.para)}[n.$setId](h){this.id&&this[n.$namespaceId]===t.NamespaceIds.template.id&&h.set(this.id,this)}[n.$getTemplateRoot](){return this[n.$globalData].template}[n.$isSplittable](){return!1}[n.$isThereMoreWidth](){return!1}[n.$appendChild](h){h[W]=this,this[I].push(h),!h[n.$globalData]&&this[n.$globalData]&&(h[n.$globalData]=this[n.$globalData])}[n.$removeChild](h){const A=this[I].indexOf(h);this[I].splice(A,1)}[n.$hasSettableValue](){return this.hasOwnProperty("value")}[n.$setValue](h){}[n.$onText](h){}[n.$finalize](){}[n.$clean](h){delete this[M],this[n.$cleanup]&&(h.clean(this[n.$cleanup]),delete this[n.$cleanup])}[n.$indexOf](h){return this[I].indexOf(h)}[n.$insertAt](h,A){A[W]=this,this[I].splice(h,0,A),!A[n.$globalData]&&this[n.$globalData]&&(A[n.$globalData]=this[n.$globalData])}[n.$isTransparent](){return!this.name}[n.$lastAttribute](){return""}[n.$text](){return this[I].length===0?this[n.$content]:this[I].map(h=>h[n.$text]()).join("")}get[N](){const h=Object.getPrototypeOf(this);if(!h._attributes){const A=h._attributes=new Set;for(const j of Object.getOwnPropertyNames(this)){if(this[j]===null||this[j]instanceof s||this[j]instanceof r)break;A.add(j)}}return(0,D.shadow)(this,N,h._attributes)}[n.$isDescendent](h){let A=this;for(;A;){if(A===h)return!0;A=A[n.$getParent]()}return!1}[n.$getParent](){return this[W]}[n.$getSubformParent](){return this[n.$getParent]()}[n.$getChildren](h=null){return h?this[h]:this[I]}[n.$dump](){const h=Object.create(null);this[n.$content]&&(h.$content=this[n.$content]);for(const A of Object.getOwnPropertyNames(this)){const j=this[A];j!==null&&(j instanceof s?h[A]=j[n.$dump]():j instanceof r?j.isEmpty()||(h[A]=j.dump()):h[A]=j)}return h}[n.$toStyle](){return null}[n.$toHTML](){return P.HTMLResult.EMPTY}*[n.$getContainedChildren](){for(const h of this[n.$getChildren]())yield h}*[E](h,A){for(const j of this[n.$getContainedChildren]())if(!h||A===h.has(j[n.$nodeName])){const H=this[n.$getAvailableSpace](),J=j[n.$toHTML](H);J.success||(this[n.$extra].failingNode=j),yield J}}[n.$flushHTML](){return null}[n.$addHTML](h,A){this[n.$extra].children.push(h)}[n.$getAvailableSpace](){}[n.$childrenToHTML]({filter:h=null,include:A=!0}){if(!this[n.$extra].generator)this[n.$extra].generator=this[E](h,A);else{const j=this[n.$getAvailableSpace](),H=this[n.$extra].failingNode[n.$toHTML](j);if(!H.success)return H;H.html&&this[n.$addHTML](H.html,H.bbox),delete this[n.$extra].failingNode}for(;;){const j=this[n.$extra].generator.next();if(j.done)break;const H=j.value;if(!H.success)return H;H.html&&this[n.$addHTML](H.html,H.bbox)}return this[n.$extra].generator=null,P.HTMLResult.EMPTY}[n.$setSetAttributes](h){this[T]=new Set(Object.keys(h))}[O](h){const A=this[N],j=this[T];return[...h].filter(H=>A.has(H)&&!j.has(H))}[n.$resolvePrototypes](h,A=new Set){for(const j of this[I])j[d](h,A)}[d](h,A){const j=this[w](h,A);j?this[Y](j,h,A):this[n.$resolvePrototypes](h,A)}[w](h,A){const{use:j,usehref:H}=this;if(!j&&!H)return null;let J=null,oe=null,q=null,re=j;if(H?(re=H,H.startsWith("#som(")&&H.endsWith(")")?oe=H.slice(5,-1):H.startsWith(".#som(")&&H.endsWith(")")?oe=H.slice(6,-1):H.startsWith("#")?q=H.slice(1):H.startsWith(".#")&&(q=H.slice(2))):j.startsWith("#")?q=j.slice(1):oe=j,this.use=this.usehref="",q?J=h.get(q):(J=(0,c.searchNode)(h.get(n.$root),this,oe,!0,!1),J&&(J=J[0])),!J)return(0,D.warn)(`XFA - Invalid prototype reference: ${re}.`),null;if(J[n.$nodeName]!==this[n.$nodeName])return(0,D.warn)(`XFA - Incompatible prototype: ${J[n.$nodeName]} !== ${this[n.$nodeName]}.`),null;if(A.has(J))return(0,D.warn)("XFA - Cycle detected in prototypes use."),null;A.add(J);const Z=J[w](h,A);return Z&&J[Y](Z,h,A),J[n.$resolvePrototypes](h,A),A.delete(J),J}[Y](h,A,j){if(j.has(h)){(0,D.warn)("XFA - Cycle detected in prototypes use.");return}!this[n.$content]&&h[n.$content]&&(this[n.$content]=h[n.$content]),new Set(j).add(h);for(const J of this[O](h[T]))this[J]=h[J],this[T]&&this[T].add(J);for(const J of Object.getOwnPropertyNames(this)){if(this[N].has(J))continue;const oe=this[J],q=h[J];if(oe instanceof r){for(const re of oe[I])re[d](A,j);for(let re=oe[I].length,Z=q[I].length;re<Z;re++){const K=h[I][re][n.$clone]();if(oe.push(K))K[W]=this,this[I].push(K),K[d](A,j);else break}continue}if(oe!==null){oe[n.$resolvePrototypes](A,j),q&&oe[Y](q,A,j);continue}if(q!==null){const re=q[n.$clone]();re[W]=this,this[J]=re,this[I].push(re),re[d](A,j)}}}static[f](h){return Array.isArray(h)?h.map(A=>s[f](A)):typeof h=="object"&&h!==null?Object.assign({},h):h}[n.$clone](){const h=Object.create(Object.getPrototypeOf(this));for(const A of Object.getOwnPropertySymbols(this))try{h[A]=this[A]}catch(j){(0,D.shadow)(h,A,this[A])}h[n.$uid]=`${h[n.$nodeName]}${l++}`,h[I]=[];for(const A of Object.getOwnPropertyNames(this)){if(this[N].has(A)){h[A]=s[f](this[A]);continue}const j=this[A];h[A]=j instanceof r?new r(j[B]):null}for(const A of this[I]){const j=A[n.$nodeName],H=A[n.$clone]();h[I].push(H),H[W]=h,h[j]===null?h[j]=H:h[j][I].push(H)}return h}[n.$getChildren](h=null){return h?this[I].filter(A=>A[n.$nodeName]===h):this[I]}[n.$getChildrenByClass](h){return this[h]}[n.$getChildrenByName](h,A,j=!0){return Array.from(this[n.$getChildrenByNameIt](h,A,j))}*[n.$getChildrenByNameIt](h,A,j=!0){if(h==="parent"){yield this[W];return}for(const H of this[I])H[n.$nodeName]===h&&(yield H),H.name===h&&(yield H),(A||H[n.$isTransparent]())&&(yield*H[n.$getChildrenByNameIt](h,A,!1));j&&this[N].has(h)&&(yield new u(this,h,this[h]))}}b.XFAObject=s;class r{constructor(h=1/0){this[B]=h,this[I]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(h){return this[I].length<=this[B]?(this[I].push(h),!0):((0,D.warn)(`XFA - node "${h[n.$nodeName]}" accepts no more than ${this[B]} children`),!1)}isEmpty(){return this[I].length===0}dump(){return this[I].length===1?this[I][0][n.$dump]():this[I].map(h=>h[n.$dump]())}[n.$clone](){const h=new r(this[B]);return h[I]=this[I].map(A=>A[n.$clone]()),h}get children(){return this[I]}clear(){this[I].length=0}}b.XFAObjectArray=r;class u{constructor(h,A,j){this[W]=h,this[n.$nodeName]=A,this[n.$content]=j,this[n.$consumed]=!1,this[n.$uid]=`attribute${l++}`}[n.$getParent](){return this[W]}[n.$isDataValue](){return!0}[n.$getDataValue](){return this[n.$content].trim()}[n.$setValue](h){h=h.value||"",this[n.$content]=h.toString()}[n.$text](){return this[n.$content]}[n.$isDescendent](h){return this[W]===h||this[W][n.$isDescendent](h)}}b.XFAAttribute=u;class C extends s{constructor(h,A,j={}){if(super(h,A),this[n.$content]="",this[x]=null,A!=="#text"){const H=new Map;this[ee]=H;for(const[J,oe]of Object.entries(j))H.set(J,new u(this,J,oe));if(j.hasOwnProperty(n.$nsAttributes)){const J=j[n.$nsAttributes].xfa.dataNode;J!==void 0&&(J==="dataGroup"?this[x]=!1:J==="dataValue"&&(this[x]=!0))}}this[n.$consumed]=!1}[n.$toString](h){const A=this[n.$nodeName];if(A==="#text"){h.push((0,e.encodeToXmlString)(this[n.$content]));return}const j=(0,D.utf8StringToString)(A),H=this[n.$namespaceId]===F?"xfa:":"";h.push(`<${H}${j}`);for(const[J,oe]of this[ee].entries()){const q=(0,D.utf8StringToString)(J);h.push(` ${q}="${(0,e.encodeToXmlString)(oe[n.$content])}"`)}if(this[x]!==null&&(this[x]?h.push(' xfa:dataNode="dataValue"'):h.push(' xfa:dataNode="dataGroup"')),!this[n.$content]&&this[I].length===0){h.push("/>");return}if(h.push(">"),this[n.$content])typeof this[n.$content]=="string"?h.push((0,e.encodeToXmlString)(this[n.$content])):this[n.$content][n.$toString](h);else for(const J of this[I])J[n.$toString](h);h.push(`</${H}${j}>`)}[n.$onChild](h){if(this[n.$content]){const A=new C(this[n.$namespaceId],"#text");this[n.$appendChild](A),A[n.$content]=this[n.$content],this[n.$content]=""}return this[n.$appendChild](h),!0}[n.$onText](h){this[n.$content]+=h}[n.$finalize](){if(this[n.$content]&&this[I].length>0){const h=new C(this[n.$namespaceId],"#text");this[n.$appendChild](h),h[n.$content]=this[n.$content],delete this[n.$content]}}[n.$toHTML](){return this[n.$nodeName]==="#text"?P.HTMLResult.success({name:"#text",value:this[n.$content]}):P.HTMLResult.EMPTY}[n.$getChildren](h=null){return h?this[I].filter(A=>A[n.$nodeName]===h):this[I]}[n.$getAttributes](){return this[ee]}[n.$getChildrenByClass](h){const A=this[ee].get(h);return A!==void 0?A:this[n.$getChildren](h)}*[n.$getChildrenByNameIt](h,A){const j=this[ee].get(h);j&&(yield j);for(const H of this[I])H[n.$nodeName]===h&&(yield H),A&&(yield*H[n.$getChildrenByNameIt](h,A))}*[n.$getAttributeIt](h,A){const j=this[ee].get(h);j&&(!A||!j[n.$consumed])&&(yield j);for(const H of this[I])yield*H[n.$getAttributeIt](h,A)}*[n.$getRealChildrenByNameIt](h,A,j){for(const H of this[I])H[n.$nodeName]===h&&(!j||!H[n.$consumed])&&(yield H),A&&(yield*H[n.$getRealChildrenByNameIt](h,A,j))}[n.$isDataValue](){return this[x]===null?this[I].length===0||this[I][0][n.$namespaceId]===t.NamespaceIds.xhtml.id:this[x]}[n.$getDataValue](){return this[x]===null?this[I].length===0?this[n.$content].trim():this[I][0][n.$namespaceId]===t.NamespaceIds.xhtml.id?this[I][0][n.$text]().trim():null:this[n.$content].trim()}[n.$setValue](h){h=h.value||"",this[n.$content]=h.toString()}[n.$dump](h=!1){const A=Object.create(null);h&&(A.$ns=this[n.$namespaceId]),this[n.$content]&&(A.$content=this[n.$content]),A.$name=this[n.$nodeName],A.children=[];for(const j of this[I])A.children.push(j[n.$dump](h));A.attributes=Object.create(null);for(const[j,H]of this[ee])A.attributes[j]=H[n.$content];return A}}b.XmlObject=C;class g extends s{constructor(h,A){super(h,A),this[n.$content]=""}[n.$onText](h){this[n.$content]+=h}[n.$finalize](){}}b.ContentObject=g;class p extends g{constructor(h,A,j){super(h,A),this[z]=j}[n.$finalize](){this[n.$content]=(0,P.getKeyword)({data:this[n.$content],defaultValue:this[z][0],validate:h=>this[z].includes(h)})}[n.$clean](h){super[n.$clean](h),delete this[z]}}b.OptionObject=p;class X extends g{[n.$finalize](){this[n.$content]=this[n.$content].trim()}}b.StringObject=X;class $ extends g{constructor(h,A,j,H){super(h,A),this[a]=j,this[o]=H}[n.$finalize](){this[n.$content]=(0,P.getInteger)({data:this[n.$content],defaultValue:this[a],validate:this[o]})}[n.$clean](h){super[n.$clean](h),delete this[a],delete this[o]}}b.IntegerObject=$;class y extends ${constructor(h,A){super(h,A,0,j=>j===1)}}b.Option01=y;class v extends ${constructor(h,A){super(h,A,1,j=>j===0)}}b.Option10=v},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.createDataNode=f,b.searchNode=I;var n=ce(78),P=ce(2);const D=/^[^.[]+/,e=/^[^\]]+/,t={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},c=new Map([["$data",(x,a)=>x.datasets?x.datasets.data:x],["$record",(x,a)=>(x.datasets?x.datasets.data:x)[n.$getChildren]()[0]],["$template",(x,a)=>x.template],["$connectionSet",(x,a)=>x.connectionSet],["$form",(x,a)=>x.form],["$layout",(x,a)=>x.layout],["$host",(x,a)=>x.host],["$dataWindow",(x,a)=>x.dataWindow],["$event",(x,a)=>x.event],["!",(x,a)=>x.datasets],["$xfa",(x,a)=>x],["xfa",(x,a)=>x],["$",(x,a)=>a]]),Y=new WeakMap;function ee(x){return x=x.trim(),x==="*"?1/0:parseInt(x,10)||0}function N(x,a,E=!0){let w=x.match(D);if(!w)return null;let[O]=w;const M=[{name:O,cacheName:"."+O,index:0,js:null,formCalc:null,operator:t.dot}];let B=O.length;for(;B<x.length;){const z=B;if(x.charAt(B++)==="["){if(w=x.slice(B).match(e),!w)return(0,P.warn)("XFA - Invalid index in SOM expression"),null;M.at(-1).index=ee(w[0]),B+=w[0].length+1;continue}let d;switch(x.charAt(B)){case".":if(!a)return null;B++,d=t.dotDot;break;case"#":B++,d=t.dotHash;break;case"[":if(E)return(0,P.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;d=t.dotBracket;break;case"(":if(E)return(0,P.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;d=t.dotParen;break;default:d=t.dot;break}if(w=x.slice(B).match(D),!w)break;[O]=w,B+=O.length,M.push({name:O,cacheName:x.slice(z,B),operator:d,index:0,js:null,formCalc:null})}return M}function I(x,a,E,w=!0,O=!0){const M=N(E,w);if(!M)return null;const B=c.get(M[0].name);let z=0,W;B?(W=!0,x=[B(x,a)],z=1):(W=a===null,x=[a||x]);for(let d=M.length;z<d;z++){const{name:T,cacheName:o,operator:l,index:F}=M[z],s=[];for(const r of x){if(!r.isXFAObject)continue;let u,C;if(O&&(C=Y.get(r),C||(C=new Map,Y.set(r,C)),u=C.get(o)),!u){switch(l){case t.dot:u=r[n.$getChildrenByName](T,!1);break;case t.dotDot:u=r[n.$getChildrenByName](T,!0);break;case t.dotHash:u=r[n.$getChildrenByClass](T),u=u.isXFAObjectArray?u.children:[u];break}O&&C.set(o,u)}u.length>0&&s.push(u)}if(s.length===0&&!W&&z===0){if(a=a[n.$getParent](),!a)return null;z=-1,x=[a];continue}x=isFinite(F)?s.filter(r=>F<r.length).map(r=>r[F]):s.flat()}return x.length===0?null:x}function f(x,a,E){const w=N(E);if(!w||w.some(B=>B.operator===t.dotDot))return null;const O=c.get(w[0].name);let M=0;O?(x=O(x,a),M=1):x=a||x;for(let B=w.length;M<B;M++){const{name:z,operator:W,index:d}=w[M];if(!isFinite(d))return w[M].index=0,x.createNodes(w.slice(M));let T;switch(W){case t.dot:T=x[n.$getChildrenByName](z,!1);break;case t.dotDot:T=x[n.$getChildrenByName](z,!0);break;case t.dotHash:T=x[n.$getChildrenByClass](z),T=T.isXFAObjectArray?T.children:[T];break}if(T.length===0)return x.createNodes(w.slice(M));if(d<T.length){const o=T[d];if(!o.isXFAObject)return(0,P.warn)("XFA - Cannot create a node."),null;x=o}else return w[M].index=d-T.length,x.createNodes(w.slice(M))}return null}},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.DataHandler=void 0;var n=ce(78);class P{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[n.$getChildren]()]];for(;t.length>0;){const Y=t.at(-1),[ee,N]=Y;if(ee+1===N.length){t.pop();continue}const I=N[++Y[0]],f=e.get(I[n.$uid]);if(f)I[n.$setValue](f);else{const a=I[n.$getAttributes]();for(const E of a.values()){const w=e.get(E[n.$uid]);if(w){E[n.$setValue](w);break}}}const x=I[n.$getChildren]();x.length>0&&t.push([-1,x])}const c=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(const Y of this.dataset[n.$getChildren]())Y[n.$nodeName]!=="data"&&Y[n.$toString](c);return this.data[n.$toString](c),c.push("</xfa:datasets>"),c.join("")}}b.DataHandler=P},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.XFAParser=void 0;var n=ce(78),P=ce(71),D=ce(91),e=ce(2);class t extends P.XMLParserBase{constructor(Y=null,ee=!1){super(),this._builder=new D.Builder(Y),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=P.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=ee}parse(Y){if(this.parseXml(Y),this._errorCode===P.XMLParserErrorCode.NoError)return this._current[n.$finalize](),this._current.element}onText(Y){if(Y=Y.replace(this._nbsps,ee=>ee.slice(1)+" "),this._richText||this._current[n.$acceptWhitespace]()){this._current[n.$onText](Y,this._richText);return}this._whiteRegex.test(Y)||this._current[n.$onText](Y.trim())}onCdata(Y){this._current[n.$onText](Y)}_mkAttributes(Y,ee){let N=null,I=null;const f=Object.create({});for(const{name:x,value:a}of Y)if(x==="xmlns")N?(0,e.warn)(`XFA - multiple namespace definition in <${ee}>`):N=a;else if(x.startsWith("xmlns:")){const E=x.substring(6);I||(I=[]),I.push({prefix:E,value:a})}else{const E=x.indexOf(":");if(E===-1)f[x]=a;else{let w=f[n.$nsAttributes];w||(w=f[n.$nsAttributes]=Object.create(null));const[O,M]=[x.slice(0,E),x.slice(E+1)],B=w[O]||(w[O]=Object.create(null));B[M]=a}}return[N,I,f]}_getNameAndPrefix(Y,ee){const N=Y.indexOf(":");return N===-1?[Y,null]:[Y.substring(N+1),ee?"":Y.substring(0,N)]}onBeginElement(Y,ee,N){const[I,f,x]=this._mkAttributes(ee,Y),[a,E]=this._getNameAndPrefix(Y,this._builder.isNsAgnostic()),w=this._builder.build({nsPrefix:E,name:a,attributes:x,namespace:I,prefixes:f});if(w[n.$globalData]=this._globalData,N){w[n.$finalize](),this._current[n.$onChild](w)&&w[n.$setId](this._ids),w[n.$clean](this._builder);return}this._stack.push(this._current),this._current=w}onEndElement(Y){const ee=this._current;if(ee[n.$isCDATAXml]()&&typeof ee[n.$content]=="string"){const N=new t;N._globalData=this._globalData;const I=N.parse(ee[n.$content]);ee[n.$content]=null,ee[n.$onChild](I)}ee[n.$finalize](),this._current=this._stack.pop(),this._current[n.$onChild](ee)&&ee[n.$setId](this._ids),ee[n.$clean](this._builder)}onError(Y){this._errorCode=Y}}b.XFAParser=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Builder=void 0;var n=ce(81),P=ce(78),D=ce(92),e=ce(80),t=ce(101),c=ce(2),Y=ce(87);class ee extends Y.XFAObject{constructor(x){super(-1,"root",Object.create(null)),this.element=null,this[P.$ids]=x}[P.$onChild](x){return this.element=x,!0}[P.$finalize](){super[P.$finalize](),this.element.template instanceof e.Template&&(this[P.$ids].set(P.$root,this.element),this.element.template[P.$resolvePrototypes](this[P.$ids]),this.element.template[P.$ids]=this[P.$ids])}}class N extends Y.XFAObject{constructor(){super(-1,"",Object.create(null))}[P.$onChild](x){return!1}}class I{constructor(x=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(n.NamespaceIds).map(({id:a})=>a)),this._currentNamespace=x||new t.UnknownNamespace(++this._nextNsId)}buildRoot(x){return new ee(x)}build({nsPrefix:x,name:a,attributes:E,namespace:w,prefixes:O}){const M=w!==null;if(M&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(w)),O&&this._addNamespacePrefix(O),E.hasOwnProperty(P.$nsAttributes)){const W=D.NamespaceSetUp.datasets,d=E[P.$nsAttributes];let T=null;for(const[o,l]of Object.entries(d))if(this._getNamespaceToUse(o)===W){T={xfa:l};break}T?E[P.$nsAttributes]=T:delete E[P.$nsAttributes]}const B=this._getNamespaceToUse(x),z=(B==null?void 0:B[n.$buildXFAObject](a,E))||new N;return z[P.$isNsAgnostic]()&&this._nsAgnosticLevel++,(M||O||z[P.$isNsAgnostic]())&&(z[P.$cleanup]={hasNamespace:M,prefixes:O,nsAgnostic:z[P.$isNsAgnostic]()}),z}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(x){let a=this._namespaces.get(x);if(a)return a;for(const[E,{check:w}]of Object.entries(n.NamespaceIds))if(w(x)){if(a=D.NamespaceSetUp[E],a)return this._namespaces.set(x,a),a;break}return a=new t.UnknownNamespace(++this._nextNsId),this._namespaces.set(x,a),a}_addNamespacePrefix(x){for(const{prefix:a,value:E}of x){const w=this._searchNamespace(E);let O=this._namespacePrefixes.get(a);O||(O=[],this._namespacePrefixes.set(a,O)),O.push(w)}}_getNamespaceToUse(x){if(!x)return this._currentNamespace;const a=this._namespacePrefixes.get(x);return(a==null?void 0:a.length)>0?a.at(-1):((0,c.warn)(`Unknown namespace prefix: ${x}.`),null)}clean(x){const{hasNamespace:a,prefixes:E,nsAgnostic:w}=x;a&&(this._currentNamespace=this._namespaceStack.pop()),E&&E.forEach(({prefix:O})=>{this._namespacePrefixes.get(O).pop()}),w&&this._nsAgnosticLevel--}}b.Builder=I},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.NamespaceSetUp=void 0;var n=ce(93),P=ce(94),D=ce(95),e=ce(96),t=ce(97),c=ce(98),Y=ce(80),ee=ce(99),N=ce(100);const I={config:n.ConfigNamespace,connection:P.ConnectionSetNamespace,datasets:D.DatasetsNamespace,localeSet:e.LocaleSetNamespace,signature:t.SignatureNamespace,stylesheet:c.StylesheetNamespace,template:Y.TemplateNamespace,xdp:ee.XdpNamespace,xhtml:N.XhtmlNamespace};b.NamespaceSetUp=I},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ConfigNamespace=void 0;var n=ce(81),P=ce(78),D=ce(87),e=ce(84),t=ce(2);const c=n.NamespaceIds.config.id;class Y extends D.XFAObject{constructor(R){super(c,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new D.XFAObjectArray}}class ee extends D.XFAObject{constructor(R){super(c,"acrobat7",!0),this.dynamicRender=null}}class N extends D.OptionObject{constructor(R){super(c,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class I extends D.OptionObject{constructor(R){super(c,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class f extends D.Option01{constructor(R){super(c,"addSilentPrint")}}class x extends D.Option01{constructor(R){super(c,"addViewerPreferences")}}class a extends D.Option10{constructor(R){super(c,"adjustData")}}class E extends D.IntegerObject{constructor(R){super(c,"adobeExtensionLevel",0,Ae=>Ae>=1&&Ae<=8)}}class w extends D.XFAObject{constructor(R){super(c,"agent",!0),this.name=R.name?R.name.trim():"",this.common=new D.XFAObjectArray}}class O extends D.ContentObject{constructor(R){super(c,"alwaysEmbed")}}class M extends D.StringObject{constructor(R){super(c,"amd")}}class B extends D.XFAObject{constructor(R){super(c,"area"),this.level=(0,e.getInteger)({data:R.level,defaultValue:0,validate:Ae=>Ae>=1&&Ae<=3}),this.name=(0,e.getStringOption)(R.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class z extends D.OptionObject{constructor(R){super(c,"attributes",["preserve","delegate","ignore"])}}class W extends D.OptionObject{constructor(R){super(c,"autoSave",["disabled","enabled"])}}class d extends D.StringObject{constructor(R){super(c,"base")}}class T extends D.XFAObject{constructor(R){super(c,"batchOutput"),this.format=(0,e.getStringOption)(R.format,["none","concat","zip","zipCompress"])}}class o extends D.ContentObject{constructor(R){super(c,"behaviorOverride")}[P.$finalize](){this[P.$content]=new Map(this[P.$content].trim().split(/\s+/).filter(R=>R.includes(":")).map(R=>R.split(":",2)))}}class l extends D.XFAObject{constructor(R){super(c,"cache",!0),this.templateCache=null}}class F extends D.Option01{constructor(R){super(c,"change")}}class s extends D.XFAObject{constructor(R){super(c,"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 D.XFAObjectArray}}class r extends D.XFAObject{constructor(R){super(c,"compress"),this.scope=(0,e.getStringOption)(R.scope,["imageOnly","document"])}}class u extends D.Option01{constructor(R){super(c,"compressLogicalStructure")}}class C extends D.Option10{constructor(R){super(c,"compressObjectStream")}}class g extends D.XFAObject{constructor(R){super(c,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class p extends D.XFAObject{constructor(R){super(c,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new D.XFAObjectArray}}class X extends D.OptionObject{constructor(R){super(c,"conformance",["A","B"])}}class $ extends D.Option01{constructor(R){super(c,"contentCopy")}}class y extends D.IntegerObject{constructor(R){super(c,"copies",1,Ae=>Ae>=1)}}class v extends D.StringObject{constructor(R){super(c,"creator")}}class m extends D.IntegerObject{constructor(R){super(c,"currentPage",0,Ae=>Ae>=0)}}class h extends D.XFAObject{constructor(R){super(c,"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 D.XFAObjectArray,this.transform=new D.XFAObjectArray}}class A extends D.XFAObject{constructor(R){super(c,"debug",!0),this.uri=null}}class j extends D.ContentObject{constructor(R){super(c,"defaultTypeface"),this.writingScript=(0,e.getStringOption)(R.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class H extends D.OptionObject{constructor(R){super(c,"destination",["pdf","pcl","ps","webClient","zpl"])}}class J extends D.Option01{constructor(R){super(c,"documentAssembly")}}class oe extends D.XFAObject{constructor(R){super(c,"driver",!0),this.name=R.name?R.name.trim():"",this.fontInfo=null,this.xdc=null}}class q extends D.OptionObject{constructor(R){super(c,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class re extends D.OptionObject{constructor(R){super(c,"dynamicRender",["forbidden","required"])}}class Z extends D.Option01{constructor(R){super(c,"embed")}}class K extends D.Option01{constructor(R){super(c,"encrypt")}}class S extends D.XFAObject{constructor(R){super(c,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class k extends D.OptionObject{constructor(R){super(c,"encryptionLevel",["40bit","128bit"])}}class _ extends D.StringObject{constructor(R){super(c,"enforce")}}class G extends D.XFAObject{constructor(R){super(c,"equate"),this.force=(0,e.getInteger)({data:R.force,defaultValue:1,validate:Ae=>Ae===0}),this.from=R.from||"",this.to=R.to||""}}class Q extends D.XFAObject{constructor(R){super(c,"equateRange"),this.from=R.from||"",this.to=R.to||"",this._unicodeRange=R.unicodeRange||""}get unicodeRange(){const R=[],Ae=/U\+([0-9a-fA-F]+)/,ve=this._unicodeRange;for(let Te of ve.split(",").map(Xe=>Xe.trim()).filter(Xe=>!!Xe))Te=Te.split("-",2).map(Xe=>{const Ye=Xe.match(Ae);return Ye?parseInt(Ye[1],16):0}),Te.length===1&&Te.push(Te[0]),R.push(Te);return(0,t.shadow)(this,"unicodeRange",R)}}class ie extends D.ContentObject{constructor(R){super(c,"exclude")}[P.$finalize](){this[P.$content]=this[P.$content].trim().split(/\s+/).filter(R=>R&&["calculate","close","enter","exit","initialize","ready","validate"].includes(R))}}class ae extends D.StringObject{constructor(R){super(c,"excludeNS")}}class U extends D.OptionObject{constructor(R){super(c,"flipLabel",["usePrinterSetting","on","off"])}}class ne extends D.XFAObject{constructor(R){super(c,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new D.XFAObjectArray,this.defaultTypeface=new D.XFAObjectArray,this.neverEmbed=new D.XFAObjectArray}}class V extends D.Option01{constructor(R){super(c,"formFieldFilling")}}class L extends D.StringObject{constructor(R){super(c,"groupParent")}}class te extends D.OptionObject{constructor(R){super(c,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class se extends D.StringObject{constructor(R){super(c,"includeXDPContent")}}class le extends D.OptionObject{constructor(R){super(c,"incrementalLoad",["none","forwardOnly"])}}class ue extends D.Option01{constructor(R){super(c,"incrementalMerge")}}class fe extends D.Option01{constructor(R){super(c,"interactive")}}class ge extends D.OptionObject{constructor(R){super(c,"jog",["usePrinterSetting","none","pageSet"])}}class xe extends D.XFAObject{constructor(R){super(c,"labelPrinter",!0),this.name=(0,e.getStringOption)(R.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class me extends D.OptionObject{constructor(R){super(c,"layout",["paginate","panel"])}}class be extends D.IntegerObject{constructor(R){super(c,"level",0,Ae=>Ae>0)}}class ye extends D.Option01{constructor(R){super(c,"linearized")}}class Se extends D.StringObject{constructor(R){super(c,"locale")}}class pe extends D.StringObject{constructor(R){super(c,"localeSet")}}class he extends D.XFAObject{constructor(R){super(c,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class de extends D.XFAObject{constructor(R){super(c,"map",!0),this.equate=new D.XFAObjectArray,this.equateRange=new D.XFAObjectArray}}class Ce extends D.XFAObject{constructor(R){super(c,"mediumInfo",!0),this.map=null}}class we extends D.XFAObject{constructor(R){super(c,"message",!0),this.msgId=null,this.severity=null}}class Le extends D.XFAObject{constructor(R){super(c,"messaging",!0),this.message=new D.XFAObjectArray}}class Be extends D.OptionObject{constructor(R){super(c,"mode",["append","overwrite"])}}class at extends D.Option01{constructor(R){super(c,"modifyAnnots")}}class Oe extends D.IntegerObject{constructor(R){super(c,"msgId",1,Ae=>Ae>=1)}}class Ze extends D.StringObject{constructor(R){super(c,"nameAttr")}}class Ke extends D.ContentObject{constructor(R){super(c,"neverEmbed")}}class Pe extends D.IntegerObject{constructor(R){super(c,"numberOfCopies",null,Ae=>Ae>=2&&Ae<=5)}}class qe extends D.XFAObject{constructor(R){super(c,"openAction",!0),this.destination=null}}class gt extends D.XFAObject{constructor(R){super(c,"output",!0),this.to=null,this.type=null,this.uri=null}}class De extends D.StringObject{constructor(R){super(c,"outputBin")}}class et extends D.XFAObject{constructor(R){super(c,"outputXSL",!0),this.uri=null}}class rt extends D.OptionObject{constructor(R){super(c,"overprint",["none","both","draw","field"])}}class St extends D.StringObject{constructor(R){super(c,"packets")}[P.$finalize](){this[P.$content]!=="*"&&(this[P.$content]=this[P.$content].trim().split(/\s+/).filter(R=>["config","datasets","template","xfdf","xslt"].includes(R)))}}class Pt extends D.XFAObject{constructor(R){super(c,"pageOffset"),this.x=(0,e.getInteger)({data:R.x,defaultValue:"useXDCSetting",validate:Ae=>!0}),this.y=(0,e.getInteger)({data:R.y,defaultValue:"useXDCSetting",validate:Ae=>!0})}}class Ge extends D.StringObject{constructor(R){super(c,"pageRange")}[P.$finalize](){const R=this[P.$content].trim().split(/\s+/).map(ve=>parseInt(ve,10)),Ae=[];for(let ve=0,Te=R.length;ve<Te;ve+=2)Ae.push(R.slice(ve,ve+2));this[P.$content]=Ae}}class We extends D.OptionObject{constructor(R){super(c,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class _e extends D.OptionObject{constructor(R){super(c,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class yt extends D.IntegerObject{constructor(R){super(c,"part",1,Ae=>!1)}}class Tt extends D.XFAObject{constructor(R){super(c,"pcl",!0),this.name=R.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}}class Ct extends D.XFAObject{constructor(R){super(c,"pdf",!0),this.name=R.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}}class ut extends D.XFAObject{constructor(R){super(c,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class Bt extends D.XFAObject{constructor(R){super(c,"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}}class Xt extends D.Option01{constructor(R){super(c,"pickTrayByPDFSize")}}class Ie extends D.StringObject{constructor(R){super(c,"picture")}}class Fe extends D.Option01{constructor(R){super(c,"plaintextMetadata")}}class Me extends D.OptionObject{constructor(R){super(c,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Ne extends D.XFAObject{constructor(R){super(c,"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 D.XFAObjectArray,this.labelPrinter=new D.XFAObjectArray,this.pcl=new D.XFAObjectArray,this.pdf=new D.XFAObjectArray,this.ps=new D.XFAObjectArray,this.submitUrl=new D.XFAObjectArray,this.webClient=new D.XFAObjectArray,this.zpl=new D.XFAObjectArray}}class je extends D.Option01{constructor(R){super(c,"print")}}class tt extends D.Option01{constructor(R){super(c,"printHighQuality")}}class $e extends D.OptionObject{constructor(R){super(c,"printScaling",["appdefault","noScaling"])}}class Ee extends D.StringObject{constructor(R){super(c,"printerName")}}class ze extends D.StringObject{constructor(R){super(c,"producer")}}class ot extends D.XFAObject{constructor(R){super(c,"ps",!0),this.name=R.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class pt extends D.ContentObject{constructor(R){super(c,"range")}[P.$finalize](){this[P.$content]=this[P.$content].trim().split(/\s*,\s*/,2).map(R=>R.split("-").map(Ae=>parseInt(Ae.trim(),10))).filter(R=>R.every(Ae=>!isNaN(Ae))).map(R=>(R.length===1&&R.push(R[0]),R))}}class nt extends D.ContentObject{constructor(R){super(c,"record")}[P.$finalize](){this[P.$content]=this[P.$content].trim();const R=parseInt(this[P.$content],10);!isNaN(R)&&R>=0&&(this[P.$content]=R)}}class it extends D.ContentObject{constructor(R){super(c,"relevant")}[P.$finalize](){this[P.$content]=this[P.$content].trim().split(/\s+/)}}class dt extends D.ContentObject{constructor(R){super(c,"rename")}[P.$finalize](){this[P.$content]=this[P.$content].trim(),(this[P.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[P.$content]))&&(0,t.warn)("XFA - Rename: invalid XFA name")}}class Ve extends D.OptionObject{constructor(R){super(c,"renderPolicy",["server","client"])}}class ct extends D.OptionObject{constructor(R){super(c,"runScripts",["both","client","none","server"])}}class He extends D.XFAObject{constructor(R){super(c,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class ft extends D.OptionObject{constructor(R){super(c,"scriptModel",["XFA","none"])}}class bt extends D.OptionObject{constructor(R){super(c,"severity",["ignore","error","information","trace","warning"])}}class Ut extends D.XFAObject{constructor(R){super(c,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class lt extends D.XFAObject{constructor(R){super(c,"staple"),this.mode=(0,e.getStringOption)(R.mode,["usePrinterSetting","on","off"])}}class ht extends D.StringObject{constructor(R){super(c,"startNode")}}class Ft extends D.IntegerObject{constructor(R){super(c,"startPage",0,Ae=>!0)}}class Dt extends D.OptionObject{constructor(R){super(c,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class Wt extends D.StringObject{constructor(R){super(c,"submitUrl")}}class tn extends D.IntegerObject{constructor(R){super(c,"subsetBelow",100,Ae=>Ae>=0&&Ae<=100)}}class Cn extends D.Option01{constructor(R){super(c,"suppressBanner")}}class vn extends D.Option01{constructor(R){super(c,"tagged")}}class Fn extends D.XFAObject{constructor(R){super(c,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class In extends D.OptionObject{constructor(R){super(c,"threshold",["trace","error","information","warning"])}}class On extends D.OptionObject{constructor(R){super(c,"to",["null","memory","stderr","stdout","system","uri"])}}class gn extends D.XFAObject{constructor(R){super(c,"templateCache"),this.maxEntries=(0,e.getInteger)({data:R.maxEntries,defaultValue:5,validate:Ae=>Ae>=0})}}class hn extends D.XFAObject{constructor(R){super(c,"trace",!0),this.area=new D.XFAObjectArray}}class Tn extends D.XFAObject{constructor(R){super(c,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class Mn extends D.OptionObject{constructor(R){super(c,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Pn extends D.StringObject{constructor(R){super(c,"uri")}}class un extends D.OptionObject{constructor(R){super(c,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class xn extends D.ContentObject{constructor(R){super(c,"validateApprovalSignatures")}[P.$finalize](){this[P.$content]=this[P.$content].trim().split(/\s+/).filter(R=>["docReady","postSign"].includes(R))}}class mn extends D.OptionObject{constructor(R){super(c,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class En extends D.OptionObject{constructor(R){super(c,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Nn extends D.XFAObject{constructor(R){super(c,"VersionControl"),this.outputBelow=(0,e.getStringOption)(R.outputBelow,["warn","error","update"]),this.sourceAbove=(0,e.getStringOption)(R.sourceAbove,["warn","error"]),this.sourceBelow=(0,e.getStringOption)(R.sourceBelow,["update","maintain"])}}class Dn extends D.XFAObject{constructor(R){super(c,"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}}class Rn extends D.XFAObject{constructor(R){super(c,"webClient",!0),this.name=R.name?R.name.trim():"",this.fontInfo=null,this.xdc=null}}class Bn extends D.OptionObject{constructor(R){super(c,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class fn extends D.ContentObject{constructor(R){super(c,"window")}[P.$finalize](){const R=this[P.$content].trim().split(/\s*,\s*/,2).map(Ae=>parseInt(Ae,10));if(R.some(Ae=>isNaN(Ae))){this[P.$content]=[0,0];return}R.length===1&&R.push(R[0]),this[P.$content]=R}}class Ln extends D.XFAObject{constructor(R){super(c,"xdc",!0),this.uri=new D.XFAObjectArray,this.xsl=new D.XFAObjectArray}}class an extends D.XFAObject{constructor(R){super(c,"xdp",!0),this.packets=null}}class $n extends D.XFAObject{constructor(R){super(c,"xsl",!0),this.debug=null,this.uri=null}}class sn extends D.XFAObject{constructor(R){super(c,"zpl",!0),this.name=R.name?R.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class ke{static[n.$buildXFAObject](R,Ae){if(ke.hasOwnProperty(R))return ke[R](Ae)}static acrobat(R){return new Y(R)}static acrobat7(R){return new ee(R)}static ADBE_JSConsole(R){return new N(R)}static ADBE_JSDebugger(R){return new I(R)}static addSilentPrint(R){return new f(R)}static addViewerPreferences(R){return new x(R)}static adjustData(R){return new a(R)}static adobeExtensionLevel(R){return new E(R)}static agent(R){return new w(R)}static alwaysEmbed(R){return new O(R)}static amd(R){return new M(R)}static area(R){return new B(R)}static attributes(R){return new z(R)}static autoSave(R){return new W(R)}static base(R){return new d(R)}static batchOutput(R){return new T(R)}static behaviorOverride(R){return new o(R)}static cache(R){return new l(R)}static change(R){return new F(R)}static common(R){return new s(R)}static compress(R){return new r(R)}static compressLogicalStructure(R){return new u(R)}static compressObjectStream(R){return new C(R)}static compression(R){return new g(R)}static config(R){return new p(R)}static conformance(R){return new X(R)}static contentCopy(R){return new $(R)}static copies(R){return new y(R)}static creator(R){return new v(R)}static currentPage(R){return new m(R)}static data(R){return new h(R)}static debug(R){return new A(R)}static defaultTypeface(R){return new j(R)}static destination(R){return new H(R)}static documentAssembly(R){return new J(R)}static driver(R){return new oe(R)}static duplexOption(R){return new q(R)}static dynamicRender(R){return new re(R)}static embed(R){return new Z(R)}static encrypt(R){return new K(R)}static encryption(R){return new S(R)}static encryptionLevel(R){return new k(R)}static enforce(R){return new _(R)}static equate(R){return new G(R)}static equateRange(R){return new Q(R)}static exclude(R){return new ie(R)}static excludeNS(R){return new ae(R)}static flipLabel(R){return new U(R)}static fontInfo(R){return new ne(R)}static formFieldFilling(R){return new V(R)}static groupParent(R){return new L(R)}static ifEmpty(R){return new te(R)}static includeXDPContent(R){return new se(R)}static incrementalLoad(R){return new le(R)}static incrementalMerge(R){return new ue(R)}static interactive(R){return new fe(R)}static jog(R){return new ge(R)}static labelPrinter(R){return new xe(R)}static layout(R){return new me(R)}static level(R){return new be(R)}static linearized(R){return new ye(R)}static locale(R){return new Se(R)}static localeSet(R){return new pe(R)}static log(R){return new he(R)}static map(R){return new de(R)}static mediumInfo(R){return new Ce(R)}static message(R){return new we(R)}static messaging(R){return new Le(R)}static mode(R){return new Be(R)}static modifyAnnots(R){return new at(R)}static msgId(R){return new Oe(R)}static nameAttr(R){return new Ze(R)}static neverEmbed(R){return new Ke(R)}static numberOfCopies(R){return new Pe(R)}static openAction(R){return new qe(R)}static output(R){return new gt(R)}static outputBin(R){return new De(R)}static outputXSL(R){return new et(R)}static overprint(R){return new rt(R)}static packets(R){return new St(R)}static pageOffset(R){return new Pt(R)}static pageRange(R){return new Ge(R)}static pagination(R){return new We(R)}static paginationOverride(R){return new _e(R)}static part(R){return new yt(R)}static pcl(R){return new Tt(R)}static pdf(R){return new Ct(R)}static pdfa(R){return new ut(R)}static permissions(R){return new Bt(R)}static pickTrayByPDFSize(R){return new Xt(R)}static picture(R){return new Ie(R)}static plaintextMetadata(R){return new Fe(R)}static presence(R){return new Me(R)}static present(R){return new Ne(R)}static print(R){return new je(R)}static printHighQuality(R){return new tt(R)}static printScaling(R){return new $e(R)}static printerName(R){return new Ee(R)}static producer(R){return new ze(R)}static ps(R){return new ot(R)}static range(R){return new pt(R)}static record(R){return new nt(R)}static relevant(R){return new it(R)}static rename(R){return new dt(R)}static renderPolicy(R){return new Ve(R)}static runScripts(R){return new ct(R)}static script(R){return new He(R)}static scriptModel(R){return new ft(R)}static severity(R){return new bt(R)}static silentPrint(R){return new Ut(R)}static staple(R){return new lt(R)}static startNode(R){return new ht(R)}static startPage(R){return new Ft(R)}static submitFormat(R){return new Dt(R)}static submitUrl(R){return new Wt(R)}static subsetBelow(R){return new tn(R)}static suppressBanner(R){return new Cn(R)}static tagged(R){return new vn(R)}static template(R){return new Fn(R)}static templateCache(R){return new gn(R)}static threshold(R){return new In(R)}static to(R){return new On(R)}static trace(R){return new hn(R)}static transform(R){return new Tn(R)}static type(R){return new Mn(R)}static uri(R){return new Pn(R)}static validate(R){return new un(R)}static validateApprovalSignatures(R){return new xn(R)}static validationMessaging(R){return new mn(R)}static version(R){return new En(R)}static versionControl(R){return new Nn(R)}static viewerPreferences(R){return new Dn(R)}static webClient(R){return new Rn(R)}static whitespace(R){return new Bn(R)}static window(R){return new fn(R)}static xdc(R){return new Ln(R)}static xdp(R){return new an(R)}static xsl(R){return new $n(R)}static zpl(R){return new sn(R)}}b.ConfigNamespace=ke},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ConnectionSetNamespace=void 0;var n=ce(81),P=ce(87);const D=n.NamespaceIds.connectionSet.id;class e extends P.XFAObject{constructor(B){super(D,"connectionSet",!0),this.wsdlConnection=new P.XFAObjectArray,this.xmlConnection=new P.XFAObjectArray,this.xsdConnection=new P.XFAObjectArray}}class t extends P.XFAObject{constructor(B){super(D,"effectiveInputPolicy"),this.id=B.id||"",this.name=B.name||"",this.use=B.use||"",this.usehref=B.usehref||""}}class c extends P.XFAObject{constructor(B){super(D,"effectiveOutputPolicy"),this.id=B.id||"",this.name=B.name||"",this.use=B.use||"",this.usehref=B.usehref||""}}class Y extends P.StringObject{constructor(B){super(D,"operation"),this.id=B.id||"",this.input=B.input||"",this.name=B.name||"",this.output=B.output||"",this.use=B.use||"",this.usehref=B.usehref||""}}class ee extends P.StringObject{constructor(B){super(D,"rootElement"),this.id=B.id||"",this.name=B.name||"",this.use=B.use||"",this.usehref=B.usehref||""}}class N extends P.StringObject{constructor(B){super(D,"soapAction"),this.id=B.id||"",this.name=B.name||"",this.use=B.use||"",this.usehref=B.usehref||""}}class I extends P.StringObject{constructor(B){super(D,"soapAddress"),this.id=B.id||"",this.name=B.name||"",this.use=B.use||"",this.usehref=B.usehref||""}}class f extends P.StringObject{constructor(B){super(D,"uri"),this.id=B.id||"",this.name=B.name||"",this.use=B.use||"",this.usehref=B.usehref||""}}class x extends P.StringObject{constructor(B){super(D,"wsdlAddress"),this.id=B.id||"",this.name=B.name||"",this.use=B.use||"",this.usehref=B.usehref||""}}class a extends P.XFAObject{constructor(B){super(D,"wsdlConnection",!0),this.dataDescription=B.dataDescription||"",this.name=B.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class E extends P.XFAObject{constructor(B){super(D,"xmlConnection",!0),this.dataDescription=B.dataDescription||"",this.name=B.name||"",this.uri=null}}class w extends P.XFAObject{constructor(B){super(D,"xsdConnection",!0),this.dataDescription=B.dataDescription||"",this.name=B.name||"",this.rootElement=null,this.uri=null}}class O{static[n.$buildXFAObject](B,z){if(O.hasOwnProperty(B))return O[B](z)}static connectionSet(B){return new e(B)}static effectiveInputPolicy(B){return new t(B)}static effectiveOutputPolicy(B){return new c(B)}static operation(B){return new Y(B)}static rootElement(B){return new ee(B)}static soapAction(B){return new N(B)}static soapAddress(B){return new I(B)}static uri(B){return new f(B)}static wsdlAddress(B){return new x(B)}static wsdlConnection(B){return new a(B)}static xmlConnection(B){return new E(B)}static xsdConnection(B){return new w(B)}}b.ConnectionSetNamespace=O},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.DatasetsNamespace=void 0;var n=ce(78),P=ce(81),D=ce(87);const e=P.NamespaceIds.datasets.id;class t extends D.XmlObject{constructor(N){super(e,"data",N)}[n.$isNsAgnostic](){return!0}}class c extends D.XFAObject{constructor(N){super(e,"datasets",!0),this.data=null,this.Signature=null}[n.$onChild](N){const I=N[n.$nodeName];(I==="data"&&N[n.$namespaceId]===e||I==="Signature"&&N[n.$namespaceId]===P.NamespaceIds.signature.id)&&(this[I]=N),this[n.$appendChild](N)}}class Y{static[P.$buildXFAObject](N,I){if(Y.hasOwnProperty(N))return Y[N](I)}static datasets(N){return new c(N)}static data(N){return new t(N)}}b.DatasetsNamespace=Y},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.LocaleSetNamespace=void 0;var n=ce(81),P=ce(87),D=ce(84);const e=n.NamespaceIds.localeSet.id;class t extends P.XFAObject{constructor(p){super(e,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new P.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new P.XFAObjectArray(2)}}class c extends P.StringObject{constructor(p){super(e,"currencySymbol"),this.name=(0,D.getStringOption)(p.name,["symbol","isoname","decimal"])}}class Y extends P.XFAObject{constructor(p){super(e,"currencySymbols",!0),this.currencySymbol=new P.XFAObjectArray(3)}}class ee extends P.StringObject{constructor(p){super(e,"datePattern"),this.name=(0,D.getStringOption)(p.name,["full","long","med","short"])}}class N extends P.XFAObject{constructor(p){super(e,"datePatterns",!0),this.datePattern=new P.XFAObjectArray(4)}}class I extends P.ContentObject{constructor(p){super(e,"dateTimeSymbols")}}class f extends P.StringObject{constructor(p){super(e,"day")}}class x extends P.XFAObject{constructor(p){super(e,"dayNames",!0),this.abbr=(0,D.getInteger)({data:p.abbr,defaultValue:0,validate:X=>X===1}),this.day=new P.XFAObjectArray(7)}}class a extends P.StringObject{constructor(p){super(e,"era")}}class E extends P.XFAObject{constructor(p){super(e,"eraNames",!0),this.era=new P.XFAObjectArray(2)}}class w extends P.XFAObject{constructor(p){super(e,"locale",!0),this.desc=p.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}}class O extends P.XFAObject{constructor(p){super(e,"localeSet",!0),this.locale=new P.XFAObjectArray}}class M extends P.StringObject{constructor(p){super(e,"meridiem")}}class B extends P.XFAObject{constructor(p){super(e,"meridiemNames",!0),this.meridiem=new P.XFAObjectArray(2)}}class z extends P.StringObject{constructor(p){super(e,"month")}}class W extends P.XFAObject{constructor(p){super(e,"monthNames",!0),this.abbr=(0,D.getInteger)({data:p.abbr,defaultValue:0,validate:X=>X===1}),this.month=new P.XFAObjectArray(12)}}class d extends P.StringObject{constructor(p){super(e,"numberPattern"),this.name=(0,D.getStringOption)(p.name,["full","long","med","short"])}}class T extends P.XFAObject{constructor(p){super(e,"numberPatterns",!0),this.numberPattern=new P.XFAObjectArray(4)}}class o extends P.StringObject{constructor(p){super(e,"numberSymbol"),this.name=(0,D.getStringOption)(p.name,["decimal","grouping","percent","minus","zero"])}}class l extends P.XFAObject{constructor(p){super(e,"numberSymbols",!0),this.numberSymbol=new P.XFAObjectArray(5)}}class F extends P.StringObject{constructor(p){super(e,"timePattern"),this.name=(0,D.getStringOption)(p.name,["full","long","med","short"])}}class s extends P.XFAObject{constructor(p){super(e,"timePatterns",!0),this.timePattern=new P.XFAObjectArray(4)}}class r extends P.XFAObject{constructor(p){super(e,"typeFace",!0),this.name=p.name|""}}class u extends P.XFAObject{constructor(p){super(e,"typeFaces",!0),this.typeFace=new P.XFAObjectArray}}class C{static[n.$buildXFAObject](p,X){if(C.hasOwnProperty(p))return C[p](X)}static calendarSymbols(p){return new t(p)}static currencySymbol(p){return new c(p)}static currencySymbols(p){return new Y(p)}static datePattern(p){return new ee(p)}static datePatterns(p){return new N(p)}static dateTimeSymbols(p){return new I(p)}static day(p){return new f(p)}static dayNames(p){return new x(p)}static era(p){return new a(p)}static eraNames(p){return new E(p)}static locale(p){return new w(p)}static localeSet(p){return new O(p)}static meridiem(p){return new M(p)}static meridiemNames(p){return new B(p)}static month(p){return new z(p)}static monthNames(p){return new W(p)}static numberPattern(p){return new d(p)}static numberPatterns(p){return new T(p)}static numberSymbol(p){return new o(p)}static numberSymbols(p){return new l(p)}static timePattern(p){return new F(p)}static timePatterns(p){return new s(p)}static typeFace(p){return new r(p)}static typeFaces(p){return new u(p)}}b.LocaleSetNamespace=C},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SignatureNamespace=void 0;var n=ce(81),P=ce(87);const D=n.NamespaceIds.signature.id;class e extends P.XFAObject{constructor(Y){super(D,"signature",!0)}}class t{static[n.$buildXFAObject](Y,ee){if(t.hasOwnProperty(Y))return t[Y](ee)}static signature(Y){return new e(Y)}}b.SignatureNamespace=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.StylesheetNamespace=void 0;var n=ce(81),P=ce(87);const D=n.NamespaceIds.stylesheet.id;class e extends P.XFAObject{constructor(Y){super(D,"stylesheet",!0)}}class t{static[n.$buildXFAObject](Y,ee){if(t.hasOwnProperty(Y))return t[Y](ee)}static stylesheet(Y){return new e(Y)}}b.StylesheetNamespace=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.XdpNamespace=void 0;var n=ce(81),P=ce(78),D=ce(87);const e=n.NamespaceIds.xdp.id;class t extends D.XFAObject{constructor(ee){super(e,"xdp",!0),this.uuid=ee.uuid||"",this.timeStamp=ee.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new D.XFAObjectArray,this.template=null}[P.$onChildCheck](ee){const N=n.NamespaceIds[ee[P.$nodeName]];return N&&ee[P.$namespaceId]===N.id}}class c{static[n.$buildXFAObject](ee,N){if(c.hasOwnProperty(ee))return c[ee](N)}static xdp(ee){return new t(ee)}}b.XdpNamespace=c},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.XhtmlNamespace=void 0;var n=ce(78),P=ce(81),D=ce(83),e=ce(84),t=ce(87);const c=P.NamespaceIds.xhtml.id,Y=Symbol(),ee=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"]),N=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",p=>p==="none"?"none":"normal"],["xfa-font-horizontal-scale",p=>`scaleX(${Math.max(0,Math.min(parseInt(p)/100)).toFixed(2)})`],["xfa-font-vertical-scale",p=>`scaleY(${Math.max(0,Math.min(parseInt(p)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(p,X)=>(p=X.fontSize=(0,e.getMeasurement)(p),(0,D.measureToString)(.99*p))],["letter-spacing",p=>(0,D.measureToString)((0,e.getMeasurement)(p))],["line-height",p=>(0,D.measureToString)((0,e.getMeasurement)(p))],["margin",p=>(0,D.measureToString)((0,e.getMeasurement)(p))],["margin-bottom",p=>(0,D.measureToString)((0,e.getMeasurement)(p))],["margin-left",p=>(0,D.measureToString)((0,e.getMeasurement)(p))],["margin-right",p=>(0,D.measureToString)((0,e.getMeasurement)(p))],["margin-top",p=>(0,D.measureToString)((0,e.getMeasurement)(p))],["text-indent",p=>(0,D.measureToString)((0,e.getMeasurement)(p))],["font-family",p=>p],["vertical-align",p=>(0,D.measureToString)((0,e.getMeasurement)(p))]]),I=/\s+/g,f=/[\r\n]+/g,x=/\r\n?/g;function a(p,X,$){const y=Object.create(null);if(!p)return y;const v=Object.create(null);for(const[m,h]of p.split(";").map(A=>A.split(":",2))){const A=N.get(m);if(A==="")continue;let j=h;A&&(j=typeof A=="string"?A:A(h,v)),m.endsWith("scale")?y.transform=y.transform?`${y[m]} ${j}`:j:y[m.replaceAll(/-([a-zA-Z])/g,(H,J)=>J.toUpperCase())]=j}if(y.fontFamily&&(0,D.setFontFamily)({typeface:y.fontFamily,weight:y.fontWeight||"normal",posture:y.fontStyle||"normal",size:v.fontSize||0},X,X[n.$globalData].fontFinder,y),$&&y.verticalAlign&&y.verticalAlign!=="0px"&&y.fontSize){const A=(0,e.getMeasurement)(y.fontSize);y.fontSize=(0,D.measureToString)(A*.583),y.verticalAlign=(0,D.measureToString)(Math.sign((0,e.getMeasurement)(y.verticalAlign))*A*.333)}return $&&y.fontSize&&(y.fontSize=`calc(${y.fontSize} * var(--scale-factor))`),(0,D.fixTextIndent)(y),y}function E(p){return p.style?p.style.trim().split(/\s*;\s*/).filter(X=>!!X).map(X=>X.split(/\s*:\s*/,2)).filter(([X,$])=>(X==="font-family"&&p[n.$globalData].usedTypefaces.add($),ee.has(X))).map(X=>X.join(":")).join(";"):""}const w=new Set(["body","html"]);class O extends t.XmlObject{constructor(X,$){super(c,$),this[Y]=!1,this.style=X.style||""}[n.$clean](X){super[n.$clean](X),this.style=E(this)}[n.$acceptWhitespace](){return!w.has(this[n.$nodeName])}[n.$onText](X,$=!1){$?this[Y]=!0:(X=X.replaceAll(f,""),this.style.includes("xfa-spacerun:yes")||(X=X.replaceAll(I," "))),X&&(this[n.$content]+=X)}[n.$pushGlyphs](X,$=!0){const y=Object.create(null),v={top:NaN,bottom:NaN,left:NaN,right:NaN};let m=null;for(const[h,A]of this.style.split(";").map(j=>j.split(":",2)))switch(h){case"font-family":y.typeface=(0,e.stripQuotes)(A);break;case"font-size":y.size=(0,e.getMeasurement)(A);break;case"font-weight":y.weight=A;break;case"font-style":y.posture=A;break;case"letter-spacing":y.letterSpacing=(0,e.getMeasurement)(A);break;case"margin":const j=A.split(/ \t/).map(H=>(0,e.getMeasurement)(H));switch(j.length){case 1:v.top=v.bottom=v.left=v.right=j[0];break;case 2:v.top=v.bottom=j[0],v.left=v.right=j[1];break;case 3:v.top=j[0],v.bottom=j[2],v.left=v.right=j[1];break;case 4:v.top=j[0],v.left=j[1],v.bottom=j[2],v.right=j[3];break}break;case"margin-top":v.top=(0,e.getMeasurement)(A);break;case"margin-bottom":v.bottom=(0,e.getMeasurement)(A);break;case"margin-left":v.left=(0,e.getMeasurement)(A);break;case"margin-right":v.right=(0,e.getMeasurement)(A);break;case"line-height":m=(0,e.getMeasurement)(A);break}if(X.pushData(y,v,m),this[n.$content])X.addString(this[n.$content]);else for(const h of this[n.$getChildren]()){if(h[n.$nodeName]==="#text"){X.addString(h[n.$content]);continue}h[n.$pushGlyphs](X)}$&&X.popFont()}[n.$toHTML](X){const $=[];if(this[n.$extra]={children:$},this[n.$childrenToHTML]({}),$.length===0&&!this[n.$content])return e.HTMLResult.EMPTY;let y;return this[Y]?y=this[n.$content]?this[n.$content].replaceAll(x,`
- `):void 0:y=this[n.$content]||void 0,e.HTMLResult.success({name:this[n.$nodeName],attributes:{href:this.href,style:a(this.style,this,this[Y])},children:$,value:y})}}class M extends O{constructor(X){super(X,"a"),this.href=(0,D.fixURL)(X.href)||""}}class B extends O{constructor(X){super(X,"b")}[n.$pushGlyphs](X){X.pushFont({weight:"bold"}),super[n.$pushGlyphs](X),X.popFont()}}class z extends O{constructor(X){super(X,"body")}[n.$toHTML](X){const $=super[n.$toHTML](X),{html:y}=$;return y?(y.name="div",y.attributes.class=["xfaRich"],$):e.HTMLResult.EMPTY}}class W extends O{constructor(X){super(X,"br")}[n.$text](){return`
- `}[n.$pushGlyphs](X){X.addString(`
- `)}[n.$toHTML](X){return e.HTMLResult.success({name:"br"})}}class d extends O{constructor(X){super(X,"html")}[n.$toHTML](X){var y;const $=[];if(this[n.$extra]={children:$},this[n.$childrenToHTML]({}),$.length===0)return e.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[n.$content]||""});if($.length===1){const v=$[0];if((y=v.attributes)!=null&&y.class.includes("xfaRich"))return e.HTMLResult.success(v)}return e.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:$})}}class T extends O{constructor(X){super(X,"i")}[n.$pushGlyphs](X){X.pushFont({posture:"italic"}),super[n.$pushGlyphs](X),X.popFont()}}class o extends O{constructor(X){super(X,"li")}}class l extends O{constructor(X){super(X,"ol")}}class F extends O{constructor(X){super(X,"p")}[n.$pushGlyphs](X){super[n.$pushGlyphs](X,!1),X.addString(`
- `),X.addPara(),X.popFont()}[n.$text](){return this[n.$getParent]()[n.$getChildren]().at(-1)===this?super[n.$text]():super[n.$text]()+`
- `}}class s extends O{constructor(X){super(X,"span")}}class r extends O{constructor(X){super(X,"sub")}}class u extends O{constructor(X){super(X,"sup")}}class C extends O{constructor(X){super(X,"ul")}}class g{static[P.$buildXFAObject](X,$){if(g.hasOwnProperty(X))return g[X]($)}static a(X){return new M(X)}static b(X){return new B(X)}static body(X){return new z(X)}static br(X){return new W(X)}static html(X){return new d(X)}static i(X){return new T(X)}static li(X){return new o(X)}static ol(X){return new l(X)}static p(X){return new F(X)}static span(X){return new s(X)}static sub(X){return new r(X)}static sup(X){return new u(X)}static ul(X){return new C(X)}}b.XhtmlNamespace=g},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.UnknownNamespace=void 0;var n=ce(81),P=ce(87);class D{constructor(t){this.namespaceId=t}[n.$buildXFAObject](t,c){return new P.XmlObject(this.namespaceId,t,c)}}b.UnknownNamespace=D},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.DatasetReader=void 0;var n=ce(2),P=ce(3),D=ce(71);function e(Y){try{return(0,n.stringToUTF8String)(Y)}catch(ee){return(0,n.warn)(`UTF-8 decoding failed: "${ee}".`),Y}}class t extends D.SimpleXMLParser{constructor(ee){super(ee),this.node=null}onEndElement(ee){const N=super.onEndElement(ee);if(N&&ee==="xfa:datasets")throw this.node=N,new Error("Aborting DatasetXMLParser.")}}class c{constructor(ee){if(ee.datasets)this.node=new D.SimpleXMLParser({hasAttributes:!0}).parseFromString(ee.datasets).documentElement;else{const N=new t({hasAttributes:!0});try{N.parseFromString(ee["xdp:xdp"])}catch(I){}this.node=N.node}}getValue(ee){if(!this.node||!ee)return"";const N=this.node.searchNode((0,P.parseXFAPath)(ee),0);if(!N)return"";const I=N.firstChild;return(I==null?void 0:I.nodeName)==="value"?N.children.map(f=>e(f.textContent)):e(N.textContent)}}b.DatasetReader=c},(Re,b,ce)=>{var ee;Object.defineProperty(b,"__esModule",{value:!0}),b.XRef=void 0;var n=ce(2),P=ce(4),D=ce(16),e=ce(3),t=ce(5),c=ce(74);class Y{constructor(I,f){kt(this,ee,null);this.stream=I,this.pdfManager=f,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new P.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}getNewPersistentRef(I){this._newPersistentRefNum===null&&(this._newPersistentRefNum=this.entries.length||1);const f=this._newPersistentRefNum++;return this._cacheMap.set(f,I),P.Ref.get(f,0)}getNewTemporaryRef(){return this._newTemporaryRefNum===null&&(this._newTemporaryRefNum=this.entries.length||1),P.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(I){this.startXRefQueue=[I]}parse(I=!1){let f;I?((0,n.warn)("Indexing all PDF objects"),f=this.indexObjects()):f=this.readXRef(),f.assignXref(this),this.trailer=f;let x;try{x=f.get("Encrypt")}catch(E){if(E instanceof e.MissingDataException)throw E;(0,n.warn)(`XRef.parse - Invalid "Encrypt" reference: "${E}".`)}if(x instanceof P.Dict){const E=f.get("ID"),w=E!=null&&E.length?E[0]:"";x.suppressEncryption=!0,this.encrypt=new c.CipherTransformFactory(x,w,this.pdfManager.password)}let a;try{a=f.get("Root")}catch(E){if(E instanceof e.MissingDataException)throw E;(0,n.warn)(`XRef.parse - Invalid "Root" reference: "${E}".`)}if(a instanceof P.Dict)try{if(a.get("Pages")instanceof P.Dict){this.root=a;return}}catch(E){if(E instanceof e.MissingDataException)throw E;(0,n.warn)(`XRef.parse - Invalid "Pages" reference: "${E}".`)}throw I?new n.InvalidPDFException("Invalid Root reference."):new e.XRefParseException}processXRefTable(I){"tableState"in this||(this.tableState={entryNum:0,streamPos:I.lexer.stream.pos,parserBuf1:I.buf1,parserBuf2:I.buf2});const f=this.readXRefTable(I);if(!(0,P.isCmd)(f,"trailer"))throw new n.FormatError("Invalid XRef table: could not find trailer dictionary");let x=I.getObj();if(!(x instanceof P.Dict)&&x.dict&&(x=x.dict),!(x instanceof P.Dict))throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,x}readXRefTable(I){const f=I.lexer.stream,x=this.tableState;f.pos=x.streamPos,I.buf1=x.parserBuf1,I.buf2=x.parserBuf2;let a;for(;;){if(!("firstEntryNum"in x)||!("entryCount"in x)){if((0,P.isCmd)(a=I.getObj(),"trailer"))break;x.firstEntryNum=a,x.entryCount=I.getObj()}let E=x.firstEntryNum;const w=x.entryCount;if(!Number.isInteger(E)||!Number.isInteger(w))throw new n.FormatError("Invalid XRef table: wrong types in subsection header");for(let O=x.entryNum;O<w;O++){x.streamPos=f.pos,x.entryNum=O,x.parserBuf1=I.buf1,x.parserBuf2=I.buf2;const M={};M.offset=I.getObj(),M.gen=I.getObj();const B=I.getObj();if(B instanceof P.Cmd)switch(B.cmd){case"f":M.free=!0;break;case"n":M.uncompressed=!0;break}if(!Number.isInteger(M.offset)||!Number.isInteger(M.gen)||!(M.free||M.uncompressed))throw new n.FormatError(`Invalid entry in XRef subsection: ${E}, ${w}`);O===0&&M.free&&E===1&&(E=0),this.entries[O+E]||(this.entries[O+E]=M)}x.entryNum=0,x.streamPos=f.pos,x.parserBuf1=I.buf1,x.parserBuf2=I.buf2,delete x.firstEntryNum,delete x.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new n.FormatError("Invalid XRef table: unexpected first object");return a}processXRefStream(I){if(!("streamState"in this)){const f=I.dict,x=f.get("W");let a=f.get("Index");a||(a=[0,f.get("Size")]),this.streamState={entryRanges:a,byteWidths:x,entryNum:0,streamPos:I.pos}}return this.readXRefStream(I),delete this.streamState,I.dict}readXRefStream(I){const f=this.streamState;I.pos=f.streamPos;const[x,a,E]=f.byteWidths,w=f.entryRanges;for(;w.length>0;){const[O,M]=w;if(!Number.isInteger(O)||!Number.isInteger(M))throw new n.FormatError(`Invalid XRef range fields: ${O}, ${M}`);if(!Number.isInteger(x)||!Number.isInteger(a)||!Number.isInteger(E))throw new n.FormatError(`Invalid XRef entry fields length: ${O}, ${M}`);for(let B=f.entryNum;B<M;++B){f.entryNum=B,f.streamPos=I.pos;let z=0,W=0,d=0;for(let o=0;o<x;++o){const l=I.getByte();if(l===-1)throw new n.FormatError("Invalid XRef byteWidths 'type'.");z=z<<8|l}x===0&&(z=1);for(let o=0;o<a;++o){const l=I.getByte();if(l===-1)throw new n.FormatError("Invalid XRef byteWidths 'offset'.");W=W<<8|l}for(let o=0;o<E;++o){const l=I.getByte();if(l===-1)throw new n.FormatError("Invalid XRef byteWidths 'generation'.");d=d<<8|l}const T={};switch(T.offset=W,T.gen=d,z){case 0:T.free=!0;break;case 1:T.uncompressed=!0;break;case 2:break;default:throw new n.FormatError(`Invalid XRef entry type: ${z}`)}this.entries[O+B]||(this.entries[O+B]=T)}f.entryNum=0,f.streamPos=I.pos,w.splice(0,2)}}indexObjects(){function O(v,m){let h="",A=v[m];for(;A!==10&&A!==13&&A!==60&&!(++m>=v.length);)h+=String.fromCharCode(A),A=v[m];return h}function M(v,m,h){const A=h.length,j=v.length;let H=0;for(;m<j;){let J=0;for(;J<A&&v[m+J]===h[J];)++J;if(J>=A)break;m++,H++}return H}const B=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,z=/\b(startxref|\d+\s+\d+\s+obj)\b/g,W=/^(\d+)\s+(\d+)\s+obj\b/,d=new Uint8Array([116,114,97,105,108,101,114]),T=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();const l=this.stream;l.pos=0;const F=l.getBytes(),s=(0,n.bytesToString)(F),r=F.length;let u=l.start;const C=[],g=[];for(;u<r;){let v=F[u];if(v===9||v===10||v===13||v===32){++u;continue}if(v===37){do{if(++u,u>=r)break;v=F[u]}while(v!==10&&v!==13);continue}const m=O(F,u);let h;if(m.startsWith("xref")&&(m.length===4||/\s/.test(m[4])))u+=M(F,u,d),C.push(u),u+=M(F,u,T);else if(h=W.exec(m)){const A=h[1]|0,j=h[2]|0,H=u+m.length;let J,oe=!1;if(!this.entries[A])oe=!0;else if(this.entries[A].gen===j)try{new D.Parser({lexer:new D.Lexer(l.makeSubStream(H))}).getObj(),oe=!0}catch(K){K instanceof e.ParserEOFException?(0,n.warn)(`indexObjects -- checking object (${m}): "${K}".`):oe=!0}oe&&(this.entries[A]={offset:u-l.start,gen:j,uncompressed:!0}),B.lastIndex=H;const q=B.exec(s);q?(J=B.lastIndex+1-u,q[1]!=="endobj"&&((0,n.warn)(`indexObjects: Found "${q[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),J-=q[1].length+1)):J=r-u;const re=F.subarray(u,u+J),Z=M(re,0,o);Z<J&&re[Z+5]<64&&(g.push(u-l.start),this._xrefStms.add(u-l.start)),u+=J}else if(m.startsWith("trailer")&&(m.length===7||/\s/.test(m[7]))){C.push(u);const A=u+m.length;let j;z.lastIndex=A;const H=z.exec(s);H?(j=z.lastIndex+1-u,H[1]!=="startxref"&&((0,n.warn)(`indexObjects: Found "${H[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),j-=H[1].length+1)):j=r-u,u+=j}else u+=m.length+1}for(const v of g)this.startXRefQueue.push(v),this.readXRef(!0);const p=[];let X=!1;for(const v of C){l.pos=v;const m=new D.Parser({lexer:new D.Lexer(l),xref:this,allowStreams:!0,recoveryMode:!0}),h=m.getObj();if(!(0,P.isCmd)(h,"trailer"))continue;const A=m.getObj();A instanceof P.Dict&&(p.push(A),A.has("Encrypt")&&(X=!0))}let $,y;for(const v of[...p,"genFallback",...p]){if(v==="genFallback"){if(!y)break;this._generationFallback=!0;continue}let m=!1;try{const h=v.get("Root");if(!(h instanceof P.Dict))continue;const A=h.get("Pages");if(!(A instanceof P.Dict))continue;const j=A.get("Count");Number.isInteger(j)&&(m=!0)}catch(h){y=h;continue}if(m&&(!X||v.has("Encrypt"))&&v.has("ID"))return v;$=v}if($)return $;if(this.topDict)return this.topDict;throw new n.InvalidPDFException("Invalid PDF structure.")}readXRef(I=!1){var a;const f=this.stream,x=new Set;for(;this.startXRefQueue.length;){try{const E=this.startXRefQueue[0];if(x.has(E)){(0,n.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}x.add(E),f.pos=E+f.start;const w=new D.Parser({lexer:new D.Lexer(f),xref:this,allowStreams:!0});let O=w.getObj(),M;if((0,P.isCmd)(O,"xref"))M=this.processXRefTable(w),this.topDict||(this.topDict=M),O=M.get("XRefStm"),Number.isInteger(O)&&!this._xrefStms.has(O)&&(this._xrefStms.add(O),this.startXRefQueue.push(O),(a=jt(this,ee))!=null||bn(this,ee,O));else if(Number.isInteger(O)){if(!Number.isInteger(w.getObj())||!(0,P.isCmd)(w.getObj(),"obj")||!((O=w.getObj())instanceof t.BaseStream))throw new n.FormatError("Invalid XRef stream");if(M=this.processXRefStream(O),this.topDict||(this.topDict=M),!M)throw new n.FormatError("Failed to read XRef stream")}else throw new n.FormatError("Invalid XRef stream header");O=M.get("Prev"),Number.isInteger(O)?this.startXRefQueue.push(O):O instanceof P.Ref&&this.startXRefQueue.push(O.num)}catch(E){if(E instanceof e.MissingDataException)throw E;(0,n.info)("(while reading XRef): "+E)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!I)throw new e.XRefParseException}get lastXRefStreamPos(){var I;return(I=jt(this,ee))!=null?I:this._xrefStms.size>0?Math.max(...this._xrefStms):null}getEntry(I){const f=this.entries[I];return f&&!f.free&&f.offset?f:null}fetchIfRef(I,f=!1){return I instanceof P.Ref?this.fetch(I,f):I}fetch(I,f=!1){if(!(I instanceof P.Ref))throw new Error("ref object is not a reference");const x=I.num,a=this._cacheMap.get(x);if(a!==void 0)return a instanceof P.Dict&&!a.objId&&(a.objId=I.toString()),a;let E=this.getEntry(x);if(E===null)return this._cacheMap.set(x,E),E;if(this._pendingRefs.has(I))return this._pendingRefs.remove(I),(0,n.warn)(`Ignoring circular reference: ${I}.`),P.CIRCULAR_REF;this._pendingRefs.put(I);try{E=E.uncompressed?this.fetchUncompressed(I,E,f):this.fetchCompressed(I,E,f),this._pendingRefs.remove(I)}catch(w){throw this._pendingRefs.remove(I),w}return E instanceof P.Dict?E.objId=I.toString():E instanceof t.BaseStream&&(E.dict.objId=I.toString()),E}fetchUncompressed(I,f,x=!1){const a=I.gen;let E=I.num;if(f.gen!==a){const W=`Inconsistent generation in XRef: ${I}`;if(this._generationFallback&&f.gen<a)return(0,n.warn)(W),this.fetchUncompressed(P.Ref.get(E,f.gen),f,x);throw new e.XRefEntryException(W)}const w=this.stream.makeSubStream(f.offset+this.stream.start),O=new D.Parser({lexer:new D.Lexer(w),xref:this,allowStreams:!0}),M=O.getObj(),B=O.getObj(),z=O.getObj();if(M!==E||B!==a||!(z instanceof P.Cmd))throw new e.XRefEntryException(`Bad (uncompressed) XRef entry: ${I}`);if(z.cmd!=="obj"){if(z.cmd.startsWith("obj")&&(E=parseInt(z.cmd.substring(3),10),!Number.isNaN(E)))return E;throw new e.XRefEntryException(`Bad (uncompressed) XRef entry: ${I}`)}return f=this.encrypt&&!x?O.getObj(this.encrypt.createCipherTransform(E,a)):O.getObj(),f instanceof t.BaseStream||this._cacheMap.set(E,f),f}fetchCompressed(I,f,x=!1){const a=f.offset,E=this.fetch(P.Ref.get(a,0));if(!(E instanceof t.BaseStream))throw new n.FormatError("bad ObjStm stream");const w=E.dict.get("First"),O=E.dict.get("N");if(!Number.isInteger(w)||!Number.isInteger(O))throw new n.FormatError("invalid first and n parameters for ObjStm stream");let M=new D.Parser({lexer:new D.Lexer(E),xref:this,allowStreams:!0});const B=new Array(O),z=new Array(O);for(let T=0;T<O;++T){const o=M.getObj();if(!Number.isInteger(o))throw new n.FormatError(`invalid object number in the ObjStm stream: ${o}`);const l=M.getObj();if(!Number.isInteger(l))throw new n.FormatError(`invalid object offset in the ObjStm stream: ${l}`);B[T]=o,z[T]=l}const W=(E.start||0)+w,d=new Array(O);for(let T=0;T<O;++T){const o=T<O-1?z[T+1]-z[T]:void 0;if(o<0)throw new n.FormatError("Invalid offset in the ObjStm stream.");M=new D.Parser({lexer:new D.Lexer(E.makeSubStream(W+z[T],o,E.dict)),xref:this,allowStreams:!0});const l=M.getObj();if(d[T]=l,l instanceof t.BaseStream)continue;const F=B[T],s=this.entries[F];s&&s.offset===a&&s.gen===T&&this._cacheMap.set(F,l)}if(f=d[f.gen],f===void 0)throw new e.XRefEntryException(`Bad (compressed) XRef entry: ${I}`);return f}fetchIfRefAsync(I,f){return Ue(this,null,function*(){return I instanceof P.Ref?this.fetchAsync(I,f):I})}fetchAsync(I,f){return Ue(this,null,function*(){try{return this.fetch(I,f)}catch(x){if(!(x instanceof e.MissingDataException))throw x;return yield this.pdfManager.requestRange(x.begin,x.end),this.fetchAsync(I,f)}})}getCatalogObj(){return this.root}}ee=new WeakMap,b.XRef=Y},(Re,b,ce)=>{var c,oa,ee,ca,I,kn;Object.defineProperty(b,"__esModule",{value:!0}),b.MessageHandler=void 0;var n=ce(2);const P={UNKNOWN:0,DATA:1,ERROR:2},D={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function e(x){switch(x instanceof Error||typeof x=="object"&&x!==null||(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),x.name){case"AbortException":return new n.AbortException(x.message);case"MissingPDFException":return new n.MissingPDFException(x.message);case"PasswordException":return new n.PasswordException(x.message,x.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(x.message,x.status);case"UnknownErrorException":return new n.UnknownErrorException(x.message,x.details);default:return new n.UnknownErrorException(x.message,x.toString())}}class t{constructor(a,E,w){kt(this,c);kt(this,ee);kt(this,I);this.sourceName=a,this.targetName=E,this.comObj=w,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),this._onComObjOnMessage=O=>{const M=O.data;if(M.targetName!==this.sourceName)return;if(M.stream){st(this,ee,ca).call(this,M);return}if(M.callback){const z=M.callbackId,W=this.callbackCapabilities[z];if(!W)throw new Error(`Cannot resolve callback ${z}`);if(delete this.callbackCapabilities[z],M.callback===P.DATA)W.resolve(M.data);else if(M.callback===P.ERROR)W.reject(e(M.reason));else throw new Error("Unexpected callback case");return}const B=this.actionHandler[M.action];if(!B)throw new Error(`Unknown action from worker: ${M.action}`);if(M.callbackId){const z=this.sourceName,W=M.sourceName;new Promise(function(d){d(B(M.data))}).then(function(d){w.postMessage({sourceName:z,targetName:W,callback:P.DATA,callbackId:M.callbackId,data:d})},function(d){w.postMessage({sourceName:z,targetName:W,callback:P.ERROR,callbackId:M.callbackId,reason:e(d)})});return}if(M.streamId){st(this,c,oa).call(this,M);return}B(M.data)},w.addEventListener("message",this._onComObjOnMessage)}on(a,E){const w=this.actionHandler;if(w[a])throw new Error(`There is already an actionName called "${a}"`);w[a]=E}send(a,E,w){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:a,data:E},w)}sendWithPromise(a,E,w){const O=this.callbackId++,M=new n.PromiseCapability;this.callbackCapabilities[O]=M;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:a,callbackId:O,data:E},w)}catch(B){M.reject(B)}return M.promise}sendWithStream(a,E,w,O){const M=this.streamId++,B=this.sourceName,z=this.targetName,W=this.comObj;return new ReadableStream({start:d=>{const T=new n.PromiseCapability;return this.streamControllers[M]={controller:d,startCall:T,pullCall:null,cancelCall:null,isClosed:!1},W.postMessage({sourceName:B,targetName:z,action:a,streamId:M,data:E,desiredSize:d.desiredSize},O),T.promise},pull:d=>{const T=new n.PromiseCapability;return this.streamControllers[M].pullCall=T,W.postMessage({sourceName:B,targetName:z,stream:D.PULL,streamId:M,desiredSize:d.desiredSize}),T.promise},cancel:d=>{(0,n.assert)(d instanceof Error,"cancel must have a valid reason");const T=new n.PromiseCapability;return this.streamControllers[M].cancelCall=T,this.streamControllers[M].isClosed=!0,W.postMessage({sourceName:B,targetName:z,stream:D.CANCEL,streamId:M,reason:e(d)}),T.promise}},w)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}c=new WeakSet,oa=function(a){const E=a.streamId,w=this.sourceName,O=a.sourceName,M=this.comObj,B=this,z=this.actionHandler[a.action],W={enqueue(d,T=1,o){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=T,l>0&&this.desiredSize<=0&&(this.sinkCapability=new n.PromiseCapability,this.ready=this.sinkCapability.promise),M.postMessage({sourceName:w,targetName:O,stream:D.ENQUEUE,streamId:E,chunk:d},o)},close(){this.isCancelled||(this.isCancelled=!0,M.postMessage({sourceName:w,targetName:O,stream:D.CLOSE,streamId:E}),delete B.streamSinks[E])},error(d){(0,n.assert)(d instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,M.postMessage({sourceName:w,targetName:O,stream:D.ERROR,streamId:E,reason:e(d)}))},sinkCapability:new n.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:a.desiredSize,ready:null};W.sinkCapability.resolve(),W.ready=W.sinkCapability.promise,this.streamSinks[E]=W,new Promise(function(d){d(z(a.data,W))}).then(function(){M.postMessage({sourceName:w,targetName:O,stream:D.START_COMPLETE,streamId:E,success:!0})},function(d){M.postMessage({sourceName:w,targetName:O,stream:D.START_COMPLETE,streamId:E,reason:e(d)})})},ee=new WeakSet,ca=function(a){const E=a.streamId,w=this.sourceName,O=a.sourceName,M=this.comObj,B=this.streamControllers[E],z=this.streamSinks[E];switch(a.stream){case D.START_COMPLETE:a.success?B.startCall.resolve():B.startCall.reject(e(a.reason));break;case D.PULL_COMPLETE:a.success?B.pullCall.resolve():B.pullCall.reject(e(a.reason));break;case D.PULL:if(!z){M.postMessage({sourceName:w,targetName:O,stream:D.PULL_COMPLETE,streamId:E,success:!0});break}z.desiredSize<=0&&a.desiredSize>0&&z.sinkCapability.resolve(),z.desiredSize=a.desiredSize,new Promise(function(W){var d;W((d=z.onPull)==null?void 0:d.call(z))}).then(function(){M.postMessage({sourceName:w,targetName:O,stream:D.PULL_COMPLETE,streamId:E,success:!0})},function(W){M.postMessage({sourceName:w,targetName:O,stream:D.PULL_COMPLETE,streamId:E,reason:e(W)})});break;case D.ENQUEUE:if((0,n.assert)(B,"enqueue should have stream controller"),B.isClosed)break;B.controller.enqueue(a.chunk);break;case D.CLOSE:if((0,n.assert)(B,"close should have stream controller"),B.isClosed)break;B.isClosed=!0,B.controller.close(),st(this,I,kn).call(this,B,E);break;case D.ERROR:(0,n.assert)(B,"error should have stream controller"),B.controller.error(e(a.reason)),st(this,I,kn).call(this,B,E);break;case D.CANCEL_COMPLETE:a.success?B.cancelCall.resolve():B.cancelCall.reject(e(a.reason)),st(this,I,kn).call(this,B,E);break;case D.CANCEL:if(!z)break;new Promise(function(W){var d;W((d=z.onCancel)==null?void 0:d.call(z,e(a.reason)))}).then(function(){M.postMessage({sourceName:w,targetName:O,stream:D.CANCEL_COMPLETE,streamId:E,success:!0})},function(W){M.postMessage({sourceName:w,targetName:O,stream:D.CANCEL_COMPLETE,streamId:E,reason:e(W)})}),z.sinkCapability.reject(e(a.reason)),z.isCancelled=!0,delete this.streamSinks[E];break;default:throw new Error("Unexpected stream case")}},I=new WeakSet,kn=function(a,E){return Ue(this,null,function*(){var w,O,M;yield Promise.allSettled([(w=a.startCall)==null?void 0:w.promise,(O=a.pullCall)==null?void 0:O.promise,(M=a.cancelCall)==null?void 0:M.promise]),delete this.streamControllers[E]})},b.MessageHandler=t},(Re,b,ce)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.PDFWorkerStream=void 0;var n=ce(2);class P{constructor(c){this._msgHandler=c,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new D(this._msgHandler),this._fullRequestReader}getRangeReader(c,Y){const ee=new e(c,Y,this._msgHandler);return this._rangeRequestReaders.push(ee),ee}cancelAllRequests(c){var Y;(Y=this._fullRequestReader)==null||Y.cancel(c);for(const ee of this._rangeRequestReaders.slice(0))ee.cancel(c)}}b.PDFWorkerStream=P;class D{constructor(c){this._msgHandler=c,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const Y=this._msgHandler.sendWithStream("GetReader");this._reader=Y.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(ee=>{this._isStreamingSupported=ee.isStreamingSupported,this._isRangeSupported=ee.isRangeSupported,this._contentLength=ee.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}read(){return Ue(this,null,function*(){const{value:c,done:Y}=yield this._reader.read();return Y?{value:void 0,done:!0}:{value:c.buffer,done:!1}})}cancel(c){this._reader.cancel(c)}}class e{constructor(c,Y,ee){this._msgHandler=ee,this.onProgress=null;const N=this._msgHandler.sendWithStream("GetRangeReader",{begin:c,end:Y});this._reader=N.getReader()}get isStreamingSupported(){return!1}read(){return Ue(this,null,function*(){const{value:c,done:Y}=yield this._reader.read();return Y?{value:void 0,done:!0}:{value:c.buffer,done:!1}})}cancel(c){this._reader.cancel(c)}}}],qt={};function Vt(Re){var b=qt[Re];if(b!==void 0)return b.exports;var ce=qt[Re]={exports:{}};return vt[Re](ce,ce.exports,Vt),ce.exports}var Qt={};return(()=>{var Re=Qt;Object.defineProperty(Re,"__esModule",{value:!0}),Object.defineProperty(Re,"WorkerMessageHandler",{enumerable:!0,get:function(){return b.WorkerMessageHandler}});var b=Vt(1)})(),Qt})())})(Yn);(typeof window!="undefined"?window:{}).pdfjsWorker=Yn.exports;const ma=ga({__proto__:null,default:Kn},[Kn]);export{ma as p};
|